]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
4bebc8dfc352161f3d5a83fb29d1bf4058ea7b9d
[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 cat >>confdefs.h <<_ACEOF
6740 #define SYSCONFDIR "$sysconfdir"
6741 _ACEOF
6742
6743
6744 # -------------------------------------------------------------------------
6745 #  If the user has not set --exec-prefix, we default to ${prefix}
6746 # -------------------------------------------------------------------------
6747 if test x${exec_prefix} = xNONE ; then
6748     exec_prefix=${prefix}
6749 fi
6750
6751 # ------------------------------------------------------------------
6752 # If the user has not set --sbindir, we set our default as /sbin
6753 # ------------------------------------------------------------------
6754 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6755     sbindir=${exec_prefix}/sbin
6756 fi
6757 sbindir=`eval echo ${sbindir}`
6758
6759 # -------------------------------------------------------------------------
6760 #  If the user has not set --mandir, we default to /usr/share/man
6761 # -------------------------------------------------------------------------
6762 if test x$mandir = x'${prefix}/man' ; then
6763    mandir=/usr/share/man
6764 fi
6765
6766
6767 # ------------------------------------------------------------------
6768 # All list of languages for which a translation exist. Each
6769 #  language is separated by a space.
6770 # ------------------------------------------------------------------
6771 ALL_LINGUAS=""
6772
6773 for ac_prog in msgfmt
6774 do
6775   # Extract the first word of "$ac_prog", so it can be a program name with args.
6776 set dummy $ac_prog; ac_word=$2
6777 echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_path_MSGFMT+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   case $MSGFMT in
6783   [\\/]* | ?:[\\/]*)
6784   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6785   ;;
6786   *)
6787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800
6801   ;;
6802 esac
6803 fi
6804 MSGFMT=$ac_cv_path_MSGFMT
6805
6806 if test -n "$MSGFMT"; then
6807   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6808 echo "${ECHO_T}$MSGFMT" >&6
6809 else
6810   echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6812 fi
6813
6814   test -n "$MSGFMT" && break
6815 done
6816 test -n "$MSGFMT" || MSGFMT="no"
6817
6818 if test "$MSGFMT" = "no"
6819 then
6820    echo 'msgfmt program not found, disabling NLS !'
6821    USE_NLS=no
6822    USE_INCLUDED_LIBINTL=no
6823 #else
6824
6825     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6826 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6827 if test "${ac_cv_gnu_library_2+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h.  */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h.  */
6836
6837 #include <features.h>
6838 #ifdef __GNU_LIBRARY__
6839  #if (__GLIBC__ >= 2)
6840   Lucky GNU user
6841  #endif
6842 #endif
6843
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6847   ac_cv_gnu_library_2=yes
6848 else
6849   ac_cv_gnu_library_2=no
6850 fi
6851 rm -f conftest*
6852
6853
6854
6855 fi
6856 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6857 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6858
6859     GLIBC2="$ac_cv_gnu_library_2"
6860
6861
6862 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6863 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6864 if test "${ac_cv_search_strerror+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   ac_func_search_save_LIBS=$LIBS
6868 ac_cv_search_strerror=no
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875
6876 /* Override any gcc2 internal prototype to avoid an error.  */
6877 #ifdef __cplusplus
6878 extern "C"
6879 #endif
6880 /* We use char because int might match the return type of a gcc2
6881    builtin and then its argument prototype would still apply.  */
6882 char strerror ();
6883 int
6884 main ()
6885 {
6886 strerror ();
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893   (eval $ac_link) 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } &&
6900          { ac_try='test -z "$ac_c_werror_flag"
6901                          || test ! -s conftest.err'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; } &&
6907          { ac_try='test -s conftest$ac_exeext'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; }; then
6913   ac_cv_search_strerror="none required"
6914 else
6915   echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 fi
6919 rm -f conftest.err conftest.$ac_objext \
6920       conftest$ac_exeext conftest.$ac_ext
6921 if test "$ac_cv_search_strerror" = no; then
6922   for ac_lib in cposix; do
6923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6924     cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h.  */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h.  */
6930
6931 /* Override any gcc2 internal prototype to avoid an error.  */
6932 #ifdef __cplusplus
6933 extern "C"
6934 #endif
6935 /* We use char because int might match the return type of a gcc2
6936    builtin and then its argument prototype would still apply.  */
6937 char strerror ();
6938 int
6939 main ()
6940 {
6941 strerror ();
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948   (eval $ac_link) 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } &&
6955          { ac_try='test -z "$ac_c_werror_flag"
6956                          || test ! -s conftest.err'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; } &&
6962          { ac_try='test -s conftest$ac_exeext'
6963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964   (eval $ac_try) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; }; then
6968   ac_cv_search_strerror="-l$ac_lib"
6969 break
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 fi
6975 rm -f conftest.err conftest.$ac_objext \
6976       conftest$ac_exeext conftest.$ac_ext
6977   done
6978 fi
6979 LIBS=$ac_func_search_save_LIBS
6980 fi
6981 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6982 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6983 if test "$ac_cv_search_strerror" != no; then
6984   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6985
6986 fi
6987
6988 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6989 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6990 if test "${ac_cv_header_stdc+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999 #include <stdlib.h>
7000 #include <stdarg.h>
7001 #include <string.h>
7002 #include <float.h>
7003
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014   (eval $ac_compile) 2>conftest.er1
7015   ac_status=$?
7016   grep -v '^ *+' conftest.er1 >conftest.err
7017   rm -f conftest.er1
7018   cat conftest.err >&5
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); } &&
7021          { ac_try='test -z "$ac_c_werror_flag"
7022                          || test ! -s conftest.err'
7023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024   (eval $ac_try) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; } &&
7028          { ac_try='test -s conftest.$ac_objext'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; }; then
7034   ac_cv_header_stdc=yes
7035 else
7036   echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cv_header_stdc=no
7040 fi
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042
7043 if test $ac_cv_header_stdc = yes; then
7044   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7045   cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 #include <string.h>
7052
7053 _ACEOF
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055   $EGREP "memchr" >/dev/null 2>&1; then
7056   :
7057 else
7058   ac_cv_header_stdc=no
7059 fi
7060 rm -f conftest*
7061
7062 fi
7063
7064 if test $ac_cv_header_stdc = yes; then
7065   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066   cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h.  */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h.  */
7072 #include <stdlib.h>
7073
7074 _ACEOF
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076   $EGREP "free" >/dev/null 2>&1; then
7077   :
7078 else
7079   ac_cv_header_stdc=no
7080 fi
7081 rm -f conftest*
7082
7083 fi
7084
7085 if test $ac_cv_header_stdc = yes; then
7086   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7087   if test "$cross_compiling" = yes; then
7088   :
7089 else
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <ctype.h>
7097 #if ((' ' & 0x0FF) == 0x020)
7098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7100 #else
7101 # define ISLOWER(c) \
7102                    (('a' <= (c) && (c) <= 'i') \
7103                      || ('j' <= (c) && (c) <= 'r') \
7104                      || ('s' <= (c) && (c) <= 'z'))
7105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7106 #endif
7107
7108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7109 int
7110 main ()
7111 {
7112   int i;
7113   for (i = 0; i < 256; i++)
7114     if (XOR (islower (i), ISLOWER (i))
7115         || toupper (i) != TOUPPER (i))
7116       exit(2);
7117   exit (0);
7118 }
7119 _ACEOF
7120 rm -f conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122   (eval $ac_link) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   :
7132 else
7133   echo "$as_me: program exited with status $ac_status" >&5
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 ( exit $ac_status )
7138 ac_cv_header_stdc=no
7139 fi
7140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 fi
7143 fi
7144 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7145 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7146 if test $ac_cv_header_stdc = yes; then
7147
7148 cat >>confdefs.h <<\_ACEOF
7149 #define STDC_HEADERS 1
7150 _ACEOF
7151
7152 fi
7153
7154 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7155 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7156 if test "${ac_cv_c_const+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h.  */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h.  */
7165
7166 int
7167 main ()
7168 {
7169 /* FIXME: Include the comments suggested by Paul. */
7170 #ifndef __cplusplus
7171   /* Ultrix mips cc rejects this.  */
7172   typedef int charset[2];
7173   const charset x;
7174   /* SunOS 4.1.1 cc rejects this.  */
7175   char const *const *ccp;
7176   char **p;
7177   /* NEC SVR4.0.2 mips cc rejects this.  */
7178   struct point {int x, y;};
7179   static struct point const zero = {0,0};
7180   /* AIX XL C 1.02.0.0 rejects this.
7181      It does not let you subtract one const X* pointer from another in
7182      an arm of an if-expression whose if-part is not a constant
7183      expression */
7184   const char *g = "string";
7185   ccp = &g + (g ? g-g : 0);
7186   /* HPUX 7.0 cc rejects these. */
7187   ++ccp;
7188   p = (char**) ccp;
7189   ccp = (char const *const *) p;
7190   { /* SCO 3.2v4 cc rejects this.  */
7191     char *t;
7192     char const *s = 0 ? (char *) 0 : (char const *) 0;
7193
7194     *t++ = 0;
7195   }
7196   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7197     int x[] = {25, 17};
7198     const int *foo = &x[0];
7199     ++foo;
7200   }
7201   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7202     typedef const int *iptr;
7203     iptr p = 0;
7204     ++p;
7205   }
7206   { /* AIX XL C 1.02.0.0 rejects this saying
7207        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7208     struct s { int j; const int *ap[3]; };
7209     struct s *b; b->j = 5;
7210   }
7211   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7212     const int foo = 10;
7213   }
7214 #endif
7215
7216   ;
7217   return 0;
7218 }
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222   (eval $ac_compile) 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -z "$ac_c_werror_flag"
7230                          || test ! -s conftest.err'
7231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232   (eval $ac_try) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); }; } &&
7236          { ac_try='test -s conftest.$ac_objext'
7237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238   (eval $ac_try) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; }; then
7242   ac_cv_c_const=yes
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 ac_cv_c_const=no
7248 fi
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7252 echo "${ECHO_T}$ac_cv_c_const" >&6
7253 if test $ac_cv_c_const = no; then
7254
7255 cat >>confdefs.h <<\_ACEOF
7256 #define const
7257 _ACEOF
7258
7259 fi
7260
7261
7262   echo "$as_me:$LINENO: checking for signed" >&5
7263 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7264 if test "${bh_cv_c_signed+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273
7274 int
7275 main ()
7276 {
7277 signed char x;
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284   (eval $ac_compile) 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -z "$ac_c_werror_flag"
7292                          || test ! -s conftest.err'
7293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294   (eval $ac_try) 2>&5
7295   ac_status=$?
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); }; } &&
7298          { ac_try='test -s conftest.$ac_objext'
7299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300   (eval $ac_try) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; }; then
7304   bh_cv_c_signed=yes
7305 else
7306   echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 bh_cv_c_signed=no
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7314 echo "${ECHO_T}$bh_cv_c_signed" >&6
7315   if test $bh_cv_c_signed = no; then
7316
7317 cat >>confdefs.h <<\_ACEOF
7318 #define signed
7319 _ACEOF
7320
7321   fi
7322
7323 echo "$as_me:$LINENO: checking for inline" >&5
7324 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7325 if test "${ac_cv_c_inline+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   ac_cv_c_inline=no
7329 for ac_kw in inline __inline__ __inline; do
7330   cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h.  */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h.  */
7336 #ifndef __cplusplus
7337 typedef int foo_t;
7338 static $ac_kw foo_t static_foo () {return 0; }
7339 $ac_kw foo_t foo () {return 0; }
7340 #endif
7341
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345   (eval $ac_compile) 2>conftest.er1
7346   ac_status=$?
7347   grep -v '^ *+' conftest.er1 >conftest.err
7348   rm -f conftest.er1
7349   cat conftest.err >&5
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } &&
7352          { ac_try='test -z "$ac_c_werror_flag"
7353                          || test ! -s conftest.err'
7354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355   (eval $ac_try) 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; } &&
7359          { ac_try='test -s conftest.$ac_objext'
7360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361   (eval $ac_try) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); }; }; then
7365   ac_cv_c_inline=$ac_kw; break
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 fi
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372 done
7373
7374 fi
7375 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7376 echo "${ECHO_T}$ac_cv_c_inline" >&6
7377
7378
7379 case $ac_cv_c_inline in
7380   inline | yes) ;;
7381   *)
7382     case $ac_cv_c_inline in
7383       no) ac_val=;;
7384       *) ac_val=$ac_cv_c_inline;;
7385     esac
7386     cat >>confdefs.h <<_ACEOF
7387 #ifndef __cplusplus
7388 #define inline $ac_val
7389 #endif
7390 _ACEOF
7391     ;;
7392 esac
7393
7394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7405                   inttypes.h stdint.h unistd.h
7406 do
7407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 echo "$as_me:$LINENO: checking for $ac_header" >&5
7409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 $ac_includes_default
7420
7421 #include <$ac_header>
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425   (eval $ac_compile) 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } &&
7432          { ac_try='test -z "$ac_c_werror_flag"
7433                          || test ! -s conftest.err'
7434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435   (eval $ac_try) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); }; } &&
7439          { ac_try='test -s conftest.$ac_objext'
7440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441   (eval $ac_try) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }; }; then
7445   eval "$as_ac_Header=yes"
7446 else
7447   echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450 eval "$as_ac_Header=no"
7451 fi
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457   cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 _ACEOF
7460
7461 fi
7462
7463 done
7464
7465
7466 echo "$as_me:$LINENO: checking for off_t" >&5
7467 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7468 if test "${ac_cv_type_off_t+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 $ac_includes_default
7478 int
7479 main ()
7480 {
7481 if ((off_t *) 0)
7482   return 0;
7483 if (sizeof (off_t))
7484   return 0;
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest.$ac_objext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7491   (eval $ac_compile) 2>conftest.er1
7492   ac_status=$?
7493   grep -v '^ *+' conftest.er1 >conftest.err
7494   rm -f conftest.er1
7495   cat conftest.err >&5
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); } &&
7498          { ac_try='test -z "$ac_c_werror_flag"
7499                          || test ! -s conftest.err'
7500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; } &&
7505          { ac_try='test -s conftest.$ac_objext'
7506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507   (eval $ac_try) 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); }; }; then
7511   ac_cv_type_off_t=yes
7512 else
7513   echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516 ac_cv_type_off_t=no
7517 fi
7518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7519 fi
7520 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7521 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7522 if test $ac_cv_type_off_t = yes; then
7523   :
7524 else
7525
7526 cat >>confdefs.h <<_ACEOF
7527 #define off_t long
7528 _ACEOF
7529
7530 fi
7531
7532 echo "$as_me:$LINENO: checking for size_t" >&5
7533 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7534 if test "${ac_cv_type_size_t+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543 $ac_includes_default
7544 int
7545 main ()
7546 {
7547 if ((size_t *) 0)
7548   return 0;
7549 if (sizeof (size_t))
7550   return 0;
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557   (eval $ac_compile) 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -z "$ac_c_werror_flag"
7565                          || test ! -s conftest.err'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; } &&
7571          { ac_try='test -s conftest.$ac_objext'
7572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573   (eval $ac_try) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; }; then
7577   ac_cv_type_size_t=yes
7578 else
7579   echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582 ac_cv_type_size_t=no
7583 fi
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585 fi
7586 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7587 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7588 if test $ac_cv_type_size_t = yes; then
7589   :
7590 else
7591
7592 cat >>confdefs.h <<_ACEOF
7593 #define size_t unsigned
7594 _ACEOF
7595
7596 fi
7597
7598
7599   echo "$as_me:$LINENO: checking for long long" >&5
7600 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7601 if test "${ac_cv_type_long_long+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 long long ll = 1LL; int i = 63;
7611 int
7612 main ()
7613 {
7614 long long llmax = (long long) -1;
7615      return ll << i | ll >> i | llmax / ll | llmax % ll;
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622   (eval $ac_link) 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } &&
7629          { ac_try='test -z "$ac_c_werror_flag"
7630                          || test ! -s conftest.err'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; } &&
7636          { ac_try='test -s conftest$ac_exeext'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642   ac_cv_type_long_long=yes
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_cv_type_long_long=no
7648 fi
7649 rm -f conftest.err conftest.$ac_objext \
7650       conftest$ac_exeext conftest.$ac_ext
7651 fi
7652 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7653 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7654   if test $ac_cv_type_long_long = yes; then
7655
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_LONG_LONG 1
7658 _ACEOF
7659
7660   fi
7661
7662
7663   echo "$as_me:$LINENO: checking for long double" >&5
7664 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7665 if test "${gt_cv_c_long_double+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   if test "$GCC" = yes; then
7669        gt_cv_c_long_double=yes
7670      else
7671        cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h.  */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h.  */
7677
7678          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7679          long double foo = 0.0;
7680          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7681          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7682
7683 int
7684 main ()
7685 {
7686
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693   (eval $ac_compile) 2>conftest.er1
7694   ac_status=$?
7695   grep -v '^ *+' conftest.er1 >conftest.err
7696   rm -f conftest.er1
7697   cat conftest.err >&5
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } &&
7700          { ac_try='test -z "$ac_c_werror_flag"
7701                          || test ! -s conftest.err'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; } &&
7707          { ac_try='test -s conftest.$ac_objext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   gt_cv_c_long_double=yes
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 gt_cv_c_long_double=no
7719 fi
7720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7721      fi
7722 fi
7723 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7724 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7725   if test $gt_cv_c_long_double = yes; then
7726
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_LONG_DOUBLE 1
7729 _ACEOF
7730
7731   fi
7732
7733
7734   echo "$as_me:$LINENO: checking for wchar_t" >&5
7735 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7736 if test "${gt_cv_c_wchar_t+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745 #include <stddef.h>
7746        wchar_t foo = (wchar_t)'\0';
7747 int
7748 main ()
7749 {
7750
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757   (eval $ac_compile) 2>conftest.er1
7758   ac_status=$?
7759   grep -v '^ *+' conftest.er1 >conftest.err
7760   rm -f conftest.er1
7761   cat conftest.err >&5
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } &&
7764          { ac_try='test -z "$ac_c_werror_flag"
7765                          || test ! -s conftest.err'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; } &&
7771          { ac_try='test -s conftest.$ac_objext'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   gt_cv_c_wchar_t=yes
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 gt_cv_c_wchar_t=no
7783 fi
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785 fi
7786 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7787 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7788   if test $gt_cv_c_wchar_t = yes; then
7789
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_WCHAR_T 1
7792 _ACEOF
7793
7794   fi
7795
7796
7797   echo "$as_me:$LINENO: checking for wint_t" >&5
7798 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7799 if test "${gt_cv_c_wint_t+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h.  */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h.  */
7808 #include <wchar.h>
7809        wint_t foo = (wchar_t)'\0';
7810 int
7811 main ()
7812 {
7813
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820   (eval $ac_compile) 2>conftest.er1
7821   ac_status=$?
7822   grep -v '^ *+' conftest.er1 >conftest.err
7823   rm -f conftest.er1
7824   cat conftest.err >&5
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -z "$ac_c_werror_flag"
7828                          || test ! -s conftest.err'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest.$ac_objext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   gt_cv_c_wint_t=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 gt_cv_c_wint_t=no
7846 fi
7847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848 fi
7849 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7850 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7851   if test $gt_cv_c_wint_t = yes; then
7852
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_WINT_T 1
7855 _ACEOF
7856
7857   fi
7858
7859
7860   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7861 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7862 if test "${gl_cv_header_inttypes_h+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871 #include <sys/types.h>
7872 #include <inttypes.h>
7873 int
7874 main ()
7875 {
7876 uintmax_t i = (uintmax_t) -1;
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883   (eval $ac_compile) 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -z "$ac_c_werror_flag"
7891                          || test ! -s conftest.err'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; } &&
7897          { ac_try='test -s conftest.$ac_objext'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903   gl_cv_header_inttypes_h=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 gl_cv_header_inttypes_h=no
7909 fi
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 fi
7912 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7913 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7914   if test $gl_cv_header_inttypes_h = yes; then
7915
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7918 _ACEOF
7919
7920   fi
7921
7922
7923   echo "$as_me:$LINENO: checking for stdint.h" >&5
7924 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7925 if test "${gl_cv_header_stdint_h+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 #include <sys/types.h>
7935 #include <stdint.h>
7936 int
7937 main ()
7938 {
7939 uintmax_t i = (uintmax_t) -1;
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946   (eval $ac_compile) 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag"
7954                          || test ! -s conftest.err'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest.$ac_objext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   gl_cv_header_stdint_h=yes
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 gl_cv_header_stdint_h=no
7972 fi
7973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7976 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7977   if test $gl_cv_header_stdint_h = yes; then
7978
7979 cat >>confdefs.h <<_ACEOF
7980 #define HAVE_STDINT_H_WITH_UINTMAX 1
7981 _ACEOF
7982
7983   fi
7984
7985
7986
7987
7988   echo "$as_me:$LINENO: checking for intmax_t" >&5
7989 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7990 if test "${gt_cv_c_intmax_t+set}" = set; then
7991   echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993   cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999
8000 #include <stddef.h>
8001 #include <stdlib.h>
8002 #if HAVE_STDINT_H_WITH_UINTMAX
8003 #include <stdint.h>
8004 #endif
8005 #if HAVE_INTTYPES_H_WITH_UINTMAX
8006 #include <inttypes.h>
8007 #endif
8008
8009 int
8010 main ()
8011 {
8012 intmax_t x = -1;
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019   (eval $ac_compile) 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -z "$ac_c_werror_flag"
8027                          || test ! -s conftest.err'
8028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029   (eval $ac_try) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }; } &&
8033          { ac_try='test -s conftest.$ac_objext'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; }; then
8039   gt_cv_c_intmax_t=yes
8040 else
8041   echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8043
8044 gt_cv_c_intmax_t=no
8045 fi
8046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8049 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8050   if test $gt_cv_c_intmax_t = yes; then
8051
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_INTMAX_T 1
8054 _ACEOF
8055
8056   fi
8057
8058
8059
8060   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8061 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8062 if test "${gt_cv_func_printf_posix+set}" = set; then
8063   echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065
8066       if test "$cross_compiling" = yes; then
8067
8068         cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h.  */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h.  */
8074
8075 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8076   notposix
8077 #endif
8078
8079 _ACEOF
8080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8081   $EGREP "notposix" >/dev/null 2>&1; then
8082   gt_cv_func_printf_posix="guessing no"
8083 else
8084   gt_cv_func_printf_posix="guessing yes"
8085 fi
8086 rm -f conftest*
8087
8088
8089 else
8090   cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h.  */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h.  */
8096
8097 #include <stdio.h>
8098 #include <string.h>
8099 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8100    dollar expansion (possibly an autoconf bug).  */
8101 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8102 static char buf[100];
8103 int main ()
8104 {
8105   sprintf (buf, format, 33, 55);
8106   return (strcmp (buf, "55 33") != 0);
8107 }
8108 _ACEOF
8109 rm -f conftest$ac_exeext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111   (eval $ac_link) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   gt_cv_func_printf_posix=yes
8121 else
8122   echo "$as_me: program exited with status $ac_status" >&5
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 ( exit $ac_status )
8127 gt_cv_func_printf_posix=no
8128 fi
8129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8130 fi
8131
8132 fi
8133 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8134 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8135   case $gt_cv_func_printf_posix in
8136     *yes)
8137
8138 cat >>confdefs.h <<\_ACEOF
8139 #define HAVE_POSIX_PRINTF 1
8140 _ACEOF
8141
8142       ;;
8143   esac
8144
8145 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8146 # for constant arguments.  Useless!
8147 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8148 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8149 if test "${ac_cv_working_alloca_h+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158 #include <alloca.h>
8159 int
8160 main ()
8161 {
8162 char *p = (char *) alloca (2 * sizeof (int));
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169   (eval $ac_link) 2>conftest.er1
8170   ac_status=$?
8171   grep -v '^ *+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } &&
8176          { ac_try='test -z "$ac_c_werror_flag"
8177                          || test ! -s conftest.err'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; } &&
8183          { ac_try='test -s conftest$ac_exeext'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_working_alloca_h=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_working_alloca_h=no
8195 fi
8196 rm -f conftest.err conftest.$ac_objext \
8197       conftest$ac_exeext conftest.$ac_ext
8198 fi
8199 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8200 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8201 if test $ac_cv_working_alloca_h = yes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_ALLOCA_H 1
8205 _ACEOF
8206
8207 fi
8208
8209 echo "$as_me:$LINENO: checking for alloca" >&5
8210 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8211 if test "${ac_cv_func_alloca_works+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 #ifdef __GNUC__
8221 # define alloca __builtin_alloca
8222 #else
8223 # ifdef _MSC_VER
8224 #  include <malloc.h>
8225 #  define alloca _alloca
8226 # else
8227 #  if HAVE_ALLOCA_H
8228 #   include <alloca.h>
8229 #  else
8230 #   ifdef _AIX
8231  #pragma alloca
8232 #   else
8233 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8234 char *alloca ();
8235 #    endif
8236 #   endif
8237 #  endif
8238 # endif
8239 #endif
8240
8241 int
8242 main ()
8243 {
8244 char *p = (char *) alloca (1);
8245   ;
8246   return 0;
8247 }
8248 _ACEOF
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251   (eval $ac_link) 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } &&
8258          { ac_try='test -z "$ac_c_werror_flag"
8259                          || test ! -s conftest.err'
8260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261   (eval $ac_try) 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; } &&
8265          { ac_try='test -s conftest$ac_exeext'
8266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267   (eval $ac_try) 2>&5
8268   ac_status=$?
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); }; }; then
8271   ac_cv_func_alloca_works=yes
8272 else
8273   echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8275
8276 ac_cv_func_alloca_works=no
8277 fi
8278 rm -f conftest.err conftest.$ac_objext \
8279       conftest$ac_exeext conftest.$ac_ext
8280 fi
8281 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8282 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8283
8284 if test $ac_cv_func_alloca_works = yes; then
8285
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_ALLOCA 1
8288 _ACEOF
8289
8290 else
8291   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8292 # that cause trouble.  Some versions do not even contain alloca or
8293 # contain a buggy version.  If you still want to use their alloca,
8294 # use ar to extract alloca.o from them instead of compiling alloca.c.
8295
8296 ALLOCA=alloca.$ac_objext
8297
8298 cat >>confdefs.h <<\_ACEOF
8299 #define C_ALLOCA 1
8300 _ACEOF
8301
8302
8303 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8304 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8305 if test "${ac_cv_os_cray+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 #if defined(CRAY) && ! defined(CRAY2)
8315 webecray
8316 #else
8317 wenotbecray
8318 #endif
8319
8320 _ACEOF
8321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8322   $EGREP "webecray" >/dev/null 2>&1; then
8323   ac_cv_os_cray=yes
8324 else
8325   ac_cv_os_cray=no
8326 fi
8327 rm -f conftest*
8328
8329 fi
8330 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8331 echo "${ECHO_T}$ac_cv_os_cray" >&6
8332 if test $ac_cv_os_cray = yes; then
8333   for ac_func in _getb67 GETB67 getb67; do
8334     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8335 echo "$as_me:$LINENO: checking for $ac_func" >&5
8336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8337 if eval "test \"\${$as_ac_var+set}\" = set"; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8348 #define $ac_func innocuous_$ac_func
8349
8350 /* System header to define __stub macros and hopefully few prototypes,
8351     which can conflict with char $ac_func (); below.
8352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8353     <limits.h> exists even on freestanding compilers.  */
8354
8355 #ifdef __STDC__
8356 # include <limits.h>
8357 #else
8358 # include <assert.h>
8359 #endif
8360
8361 #undef $ac_func
8362
8363 /* Override any gcc2 internal prototype to avoid an error.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 {
8367 #endif
8368 /* We use char because int might match the return type of a gcc2
8369    builtin and then its argument prototype would still apply.  */
8370 char $ac_func ();
8371 /* The GNU C library defines this for functions which it implements
8372     to always fail with ENOSYS.  Some functions are actually named
8373     something starting with __ and the normal name is an alias.  */
8374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8375 choke me
8376 #else
8377 char (*f) () = $ac_func;
8378 #endif
8379 #ifdef __cplusplus
8380 }
8381 #endif
8382
8383 int
8384 main ()
8385 {
8386 return f != $ac_func;
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393   (eval $ac_link) 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -z "$ac_c_werror_flag"
8401                          || test ! -s conftest.err'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest$ac_exeext'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then
8413   eval "$as_ac_var=yes"
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418 eval "$as_ac_var=no"
8419 fi
8420 rm -f conftest.err conftest.$ac_objext \
8421       conftest$ac_exeext conftest.$ac_ext
8422 fi
8423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8425 if test `eval echo '${'$as_ac_var'}'` = yes; then
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define CRAY_STACKSEG_END $ac_func
8429 _ACEOF
8430
8431     break
8432 fi
8433
8434   done
8435 fi
8436
8437 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8438 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8439 if test "${ac_cv_c_stack_direction+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   if test "$cross_compiling" = yes; then
8443   ac_cv_c_stack_direction=0
8444 else
8445   cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451 int
8452 find_stack_direction ()
8453 {
8454   static char *addr = 0;
8455   auto char dummy;
8456   if (addr == 0)
8457     {
8458       addr = &dummy;
8459       return find_stack_direction ();
8460     }
8461   else
8462     return (&dummy > addr) ? 1 : -1;
8463 }
8464
8465 int
8466 main ()
8467 {
8468   exit (find_stack_direction () < 0);
8469 }
8470 _ACEOF
8471 rm -f conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473   (eval $ac_link) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   ac_cv_c_stack_direction=1
8483 else
8484   echo "$as_me: program exited with status $ac_status" >&5
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8487
8488 ( exit $ac_status )
8489 ac_cv_c_stack_direction=-1
8490 fi
8491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 fi
8494 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8495 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8496
8497 cat >>confdefs.h <<_ACEOF
8498 #define STACK_DIRECTION $ac_cv_c_stack_direction
8499 _ACEOF
8500
8501
8502 fi
8503
8504
8505
8506 for ac_header in stdlib.h unistd.h
8507 do
8508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510   echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 fi
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8517 else
8518   # Is the header compilable?
8519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h.  */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h.  */
8527 $ac_includes_default
8528 #include <$ac_header>
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532   (eval $ac_compile) 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } &&
8539          { ac_try='test -z "$ac_c_werror_flag"
8540                          || test ! -s conftest.err'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_header_compiler=yes
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 ac_header_compiler=no
8558 fi
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8561 echo "${ECHO_T}$ac_header_compiler" >&6
8562
8563 # Is the header present?
8564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 #include <$ac_header>
8573 _ACEOF
8574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } >/dev/null; then
8582   if test -s conftest.err; then
8583     ac_cpp_err=$ac_c_preproc_warn_flag
8584     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8585   else
8586     ac_cpp_err=
8587   fi
8588 else
8589   ac_cpp_err=yes
8590 fi
8591 if test -z "$ac_cpp_err"; then
8592   ac_header_preproc=yes
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597   ac_header_preproc=no
8598 fi
8599 rm -f conftest.err conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8601 echo "${ECHO_T}$ac_header_preproc" >&6
8602
8603 # So?  What about this header?
8604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8605   yes:no: )
8606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8610     ac_header_preproc=yes
8611     ;;
8612   no:yes:* )
8613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8625     (
8626       cat <<\_ASBOX
8627 ## ------------------------------------------ ##
8628 ## Report this to the AC_PACKAGE_NAME lists.  ##
8629 ## ------------------------------------------ ##
8630 _ASBOX
8631     ) |
8632       sed "s/^/$as_me: WARNING:     /" >&2
8633     ;;
8634 esac
8635 echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   eval "$as_ac_Header=\$ac_header_preproc"
8641 fi
8642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8644
8645 fi
8646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8647   cat >>confdefs.h <<_ACEOF
8648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8649 _ACEOF
8650
8651 fi
8652
8653 done
8654
8655
8656 for ac_func in getpagesize
8657 do
8658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 echo "$as_me:$LINENO: checking for $ac_func" >&5
8660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_var+set}\" = set"; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8672 #define $ac_func innocuous_$ac_func
8673
8674 /* System header to define __stub macros and hopefully few prototypes,
8675     which can conflict with char $ac_func (); below.
8676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677     <limits.h> exists even on freestanding compilers.  */
8678
8679 #ifdef __STDC__
8680 # include <limits.h>
8681 #else
8682 # include <assert.h>
8683 #endif
8684
8685 #undef $ac_func
8686
8687 /* Override any gcc2 internal prototype to avoid an error.  */
8688 #ifdef __cplusplus
8689 extern "C"
8690 {
8691 #endif
8692 /* We use char because int might match the return type of a gcc2
8693    builtin and then its argument prototype would still apply.  */
8694 char $ac_func ();
8695 /* The GNU C library defines this for functions which it implements
8696     to always fail with ENOSYS.  Some functions are actually named
8697     something starting with __ and the normal name is an alias.  */
8698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8699 choke me
8700 #else
8701 char (*f) () = $ac_func;
8702 #endif
8703 #ifdef __cplusplus
8704 }
8705 #endif
8706
8707 int
8708 main ()
8709 {
8710 return f != $ac_func;
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717   (eval $ac_link) 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -z "$ac_c_werror_flag"
8725                          || test ! -s conftest.err'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; } &&
8731          { ac_try='test -s conftest$ac_exeext'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; }; then
8737   eval "$as_ac_var=yes"
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 eval "$as_ac_var=no"
8743 fi
8744 rm -f conftest.err conftest.$ac_objext \
8745       conftest$ac_exeext conftest.$ac_ext
8746 fi
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8749 if test `eval echo '${'$as_ac_var'}'` = yes; then
8750   cat >>confdefs.h <<_ACEOF
8751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8752 _ACEOF
8753
8754 fi
8755 done
8756
8757 echo "$as_me:$LINENO: checking for working mmap" >&5
8758 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8759 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   if test "$cross_compiling" = yes; then
8763   ac_cv_func_mmap_fixed_mapped=no
8764 else
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 $ac_includes_default
8772 /* malloc might have been renamed as rpl_malloc. */
8773 #undef malloc
8774
8775 /* Thanks to Mike Haertel and Jim Avera for this test.
8776    Here is a matrix of mmap possibilities:
8777         mmap private not fixed
8778         mmap private fixed at somewhere currently unmapped
8779         mmap private fixed at somewhere already mapped
8780         mmap shared not fixed
8781         mmap shared fixed at somewhere currently unmapped
8782         mmap shared fixed at somewhere already mapped
8783    For private mappings, we should verify that changes cannot be read()
8784    back from the file, nor mmap's back from the file at a different
8785    address.  (There have been systems where private was not correctly
8786    implemented like the infamous i386 svr4.0, and systems where the
8787    VM page cache was not coherent with the file system buffer cache
8788    like early versions of FreeBSD and possibly contemporary NetBSD.)
8789    For shared mappings, we should conversely verify that changes get
8790    propagated back to all the places they're supposed to be.
8791
8792    Grep wants private fixed already mapped.
8793    The main things grep needs to know about mmap are:
8794    * does it exist and is it safe to write into the mmap'd area
8795    * how to use it (BSD variants)  */
8796
8797 #include <fcntl.h>
8798 #include <sys/mman.h>
8799
8800 #if !STDC_HEADERS && !HAVE_STDLIB_H
8801 char *malloc ();
8802 #endif
8803
8804 /* This mess was copied from the GNU getpagesize.h.  */
8805 #if !HAVE_GETPAGESIZE
8806 /* Assume that all systems that can run configure have sys/param.h.  */
8807 # if !HAVE_SYS_PARAM_H
8808 #  define HAVE_SYS_PARAM_H 1
8809 # endif
8810
8811 # ifdef _SC_PAGESIZE
8812 #  define getpagesize() sysconf(_SC_PAGESIZE)
8813 # else /* no _SC_PAGESIZE */
8814 #  if HAVE_SYS_PARAM_H
8815 #   include <sys/param.h>
8816 #   ifdef EXEC_PAGESIZE
8817 #    define getpagesize() EXEC_PAGESIZE
8818 #   else /* no EXEC_PAGESIZE */
8819 #    ifdef NBPG
8820 #     define getpagesize() NBPG * CLSIZE
8821 #     ifndef CLSIZE
8822 #      define CLSIZE 1
8823 #     endif /* no CLSIZE */
8824 #    else /* no NBPG */
8825 #     ifdef NBPC
8826 #      define getpagesize() NBPC
8827 #     else /* no NBPC */
8828 #      ifdef PAGESIZE
8829 #       define getpagesize() PAGESIZE
8830 #      endif /* PAGESIZE */
8831 #     endif /* no NBPC */
8832 #    endif /* no NBPG */
8833 #   endif /* no EXEC_PAGESIZE */
8834 #  else /* no HAVE_SYS_PARAM_H */
8835 #   define getpagesize() 8192   /* punt totally */
8836 #  endif /* no HAVE_SYS_PARAM_H */
8837 # endif /* no _SC_PAGESIZE */
8838
8839 #endif /* no HAVE_GETPAGESIZE */
8840
8841 int
8842 main ()
8843 {
8844   char *data, *data2, *data3;
8845   int i, pagesize;
8846   int fd;
8847
8848   pagesize = getpagesize ();
8849
8850   /* First, make a file with some known garbage in it. */
8851   data = (char *) malloc (pagesize);
8852   if (!data)
8853     exit (1);
8854   for (i = 0; i < pagesize; ++i)
8855     *(data + i) = rand ();
8856   umask (0);
8857   fd = creat ("conftest.mmap", 0600);
8858   if (fd < 0)
8859     exit (1);
8860   if (write (fd, data, pagesize) != pagesize)
8861     exit (1);
8862   close (fd);
8863
8864   /* Next, try to mmap the file at a fixed address which already has
8865      something else allocated at it.  If we can, also make sure that
8866      we see the same garbage.  */
8867   fd = open ("conftest.mmap", O_RDWR);
8868   if (fd < 0)
8869     exit (1);
8870   data2 = (char *) malloc (2 * pagesize);
8871   if (!data2)
8872     exit (1);
8873   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8874   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8875                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8876     exit (1);
8877   for (i = 0; i < pagesize; ++i)
8878     if (*(data + i) != *(data2 + i))
8879       exit (1);
8880
8881   /* Finally, make sure that changes to the mapped area do not
8882      percolate back to the file as seen by read().  (This is a bug on
8883      some variants of i386 svr4.0.)  */
8884   for (i = 0; i < pagesize; ++i)
8885     *(data2 + i) = *(data2 + i) + 1;
8886   data3 = (char *) malloc (pagesize);
8887   if (!data3)
8888     exit (1);
8889   if (read (fd, data3, pagesize) != pagesize)
8890     exit (1);
8891   for (i = 0; i < pagesize; ++i)
8892     if (*(data + i) != *(data3 + i))
8893       exit (1);
8894   close (fd);
8895   exit (0);
8896 }
8897 _ACEOF
8898 rm -f conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900   (eval $ac_link) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905   (eval $ac_try) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; }; then
8909   ac_cv_func_mmap_fixed_mapped=yes
8910 else
8911   echo "$as_me: program exited with status $ac_status" >&5
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ( exit $ac_status )
8916 ac_cv_func_mmap_fixed_mapped=no
8917 fi
8918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8919 fi
8920 fi
8921 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8922 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8923 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8924
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_MMAP 1
8927 _ACEOF
8928
8929 fi
8930 rm -f conftest.mmap
8931
8932
8933     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8934 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8935 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944
8945 #include <features.h>
8946 #ifdef __GNU_LIBRARY__
8947  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8948   Lucky GNU user
8949  #endif
8950 #endif
8951
8952 _ACEOF
8953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8954   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8955   ac_cv_gnu_library_2_1=yes
8956 else
8957   ac_cv_gnu_library_2_1=no
8958 fi
8959 rm -f conftest*
8960
8961
8962
8963 fi
8964 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8965 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8966
8967     GLIBC21="$ac_cv_gnu_library_2_1"
8968
8969
8970
8971
8972   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8973 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8974 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977
8978       if test "$cross_compiling" = yes; then
8979
8980           # Guess based on the CPU.
8981           case "$host_cpu" in
8982             alpha* | i3456786 | m68k | s390*)
8983               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8984             *)
8985               gt_cv_int_divbyzero_sigfpe="guessing no";;
8986           esac
8987
8988 else
8989   cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995
8996 #include <stdlib.h>
8997 #include <signal.h>
8998
8999 static void
9000 #ifdef __cplusplus
9001 sigfpe_handler (int sig)
9002 #else
9003 sigfpe_handler (sig) int sig;
9004 #endif
9005 {
9006   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9007   exit (sig != SIGFPE);
9008 }
9009
9010 int x = 1;
9011 int y = 0;
9012 int z;
9013 int nan;
9014
9015 int main ()
9016 {
9017   signal (SIGFPE, sigfpe_handler);
9018 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9019 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9020   signal (SIGTRAP, sigfpe_handler);
9021 #endif
9022 /* Linux/SPARC yields signal SIGILL.  */
9023 #if defined (__sparc__) && defined (__linux__)
9024   signal (SIGILL, sigfpe_handler);
9025 #endif
9026
9027   z = x / y;
9028   nan = y / y;
9029   exit (1);
9030 }
9031
9032 _ACEOF
9033 rm -f conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035   (eval $ac_link) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; }; then
9044   gt_cv_int_divbyzero_sigfpe=yes
9045 else
9046   echo "$as_me: program exited with status $ac_status" >&5
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 ( exit $ac_status )
9051 gt_cv_int_divbyzero_sigfpe=no
9052 fi
9053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9054 fi
9055
9056 fi
9057 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9058 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9059   case "$gt_cv_int_divbyzero_sigfpe" in
9060     *yes) value=1;;
9061     *) value=0;;
9062   esac
9063
9064 cat >>confdefs.h <<_ACEOF
9065 #define INTDIV0_RAISES_SIGFPE $value
9066 _ACEOF
9067
9068
9069
9070   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9071 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9072 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075   cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081 unsigned long long ull = 1ULL; int i = 63;
9082 int
9083 main ()
9084 {
9085 unsigned long long ullmax = (unsigned long long) -1;
9086      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093   (eval $ac_link) 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } &&
9100          { ac_try='test -z "$ac_c_werror_flag"
9101                          || test ! -s conftest.err'
9102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103   (eval $ac_try) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; } &&
9107          { ac_try='test -s conftest$ac_exeext'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; }; then
9113   ac_cv_type_unsigned_long_long=yes
9114 else
9115   echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118 ac_cv_type_unsigned_long_long=no
9119 fi
9120 rm -f conftest.err conftest.$ac_objext \
9121       conftest$ac_exeext conftest.$ac_ext
9122 fi
9123 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9124 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9125   if test $ac_cv_type_unsigned_long_long = yes; then
9126
9127 cat >>confdefs.h <<\_ACEOF
9128 #define HAVE_UNSIGNED_LONG_LONG 1
9129 _ACEOF
9130
9131   fi
9132
9133
9134
9135
9136   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9137
9138     test $ac_cv_type_unsigned_long_long = yes \
9139       && ac_type='unsigned long long' \
9140       || ac_type='unsigned long'
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define uintmax_t $ac_type
9144 _ACEOF
9145
9146   else
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_UINTMAX_T 1
9150 _ACEOF
9151
9152   fi
9153
9154
9155   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9156 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9157 if test "${gt_cv_header_inttypes_h+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160
9161     cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h.  */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h.  */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9169 int
9170 main ()
9171 {
9172
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179   (eval $ac_compile) 2>conftest.er1
9180   ac_status=$?
9181   grep -v '^ *+' conftest.er1 >conftest.err
9182   rm -f conftest.er1
9183   cat conftest.err >&5
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); } &&
9186          { ac_try='test -z "$ac_c_werror_flag"
9187                          || test ! -s conftest.err'
9188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189   (eval $ac_try) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); }; } &&
9193          { ac_try='test -s conftest.$ac_objext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   gt_cv_header_inttypes_h=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 gt_cv_header_inttypes_h=no
9205 fi
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207
9208 fi
9209 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9211   if test $gt_cv_header_inttypes_h = yes; then
9212
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_INTTYPES_H 1
9215 _ACEOF
9216
9217   fi
9218
9219
9220
9221   if test $gt_cv_header_inttypes_h = yes; then
9222     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9223 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9224 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227
9228         cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 #include <inttypes.h>
9235 #ifdef PRId32
9236 char *p = PRId32;
9237 #endif
9238
9239 int
9240 main ()
9241 {
9242
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249   (eval $ac_compile) 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } &&
9256          { ac_try='test -z "$ac_c_werror_flag"
9257                          || test ! -s conftest.err'
9258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259   (eval $ac_try) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); }; } &&
9263          { ac_try='test -s conftest.$ac_objext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   gt_cv_inttypes_pri_broken=no
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 gt_cv_inttypes_pri_broken=yes
9275 fi
9276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9277
9278 fi
9279 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9280 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9281   fi
9282   if test "$gt_cv_inttypes_pri_broken" = yes; then
9283
9284 cat >>confdefs.h <<_ACEOF
9285 #define PRI_MACROS_BROKEN 1
9286 _ACEOF
9287
9288   fi
9289
9290
9291
9292 for ac_header in stdint.h
9293 do
9294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296   echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 fi
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9303 else
9304   # Is the header compilable?
9305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h.  */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h.  */
9313 $ac_includes_default
9314 #include <$ac_header>
9315 _ACEOF
9316 rm -f conftest.$ac_objext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9318   (eval $ac_compile) 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } &&
9325          { ac_try='test -z "$ac_c_werror_flag"
9326                          || test ! -s conftest.err'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; } &&
9332          { ac_try='test -s conftest.$ac_objext'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; }; then
9338   ac_header_compiler=yes
9339 else
9340   echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 ac_header_compiler=no
9344 fi
9345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9347 echo "${ECHO_T}$ac_header_compiler" >&6
9348
9349 # Is the header present?
9350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h.  */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h.  */
9358 #include <$ac_header>
9359 _ACEOF
9360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9362   ac_status=$?
9363   grep -v '^ *+' conftest.er1 >conftest.err
9364   rm -f conftest.er1
9365   cat conftest.err >&5
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } >/dev/null; then
9368   if test -s conftest.err; then
9369     ac_cpp_err=$ac_c_preproc_warn_flag
9370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371   else
9372     ac_cpp_err=
9373   fi
9374 else
9375   ac_cpp_err=yes
9376 fi
9377 if test -z "$ac_cpp_err"; then
9378   ac_header_preproc=yes
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383   ac_header_preproc=no
9384 fi
9385 rm -f conftest.err conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6
9388
9389 # So?  What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9391   yes:no: )
9392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396     ac_header_preproc=yes
9397     ;;
9398   no:yes:* )
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9411     (
9412       cat <<\_ASBOX
9413 ## ------------------------------------------ ##
9414 ## Report this to the AC_PACKAGE_NAME lists.  ##
9415 ## ------------------------------------------ ##
9416 _ASBOX
9417     ) |
9418       sed "s/^/$as_me: WARNING:     /" >&2
9419     ;;
9420 esac
9421 echo "$as_me:$LINENO: checking for $ac_header" >&5
9422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   eval "$as_ac_Header=\$ac_header_preproc"
9427 fi
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9430
9431 fi
9432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433   cat >>confdefs.h <<_ACEOF
9434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9435 _ACEOF
9436
9437 fi
9438
9439 done
9440
9441     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9442 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9443   result=
9444   cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450
9451 #include <limits.h>
9452 #if HAVE_STDINT_H
9453 #include <stdint.h>
9454 #endif
9455 #ifdef SIZE_MAX
9456 Found it
9457 #endif
9458
9459 _ACEOF
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461   $EGREP "Found it" >/dev/null 2>&1; then
9462   result=yes
9463 fi
9464 rm -f conftest*
9465
9466   if test -z "$result"; then
9467                     if test "$cross_compiling" = yes; then
9468   # Depending upon the size, compute the lo and hi bounds.
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h.  */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h.  */
9475 #include <stddef.h>
9476 int
9477 main ()
9478 {
9479 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9480 test_array [0] = 0
9481
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488   (eval $ac_compile) 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } &&
9495          { ac_try='test -z "$ac_c_werror_flag"
9496                          || test ! -s conftest.err'
9497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498   (eval $ac_try) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; } &&
9502          { ac_try='test -s conftest.$ac_objext'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; }; then
9508   ac_lo=0 ac_mid=0
9509   while :; do
9510     cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 #include <stddef.h>
9517 int
9518 main ()
9519 {
9520 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9521 test_array [0] = 0
9522
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529   (eval $ac_compile) 2>conftest.er1
9530   ac_status=$?
9531   grep -v '^ *+' conftest.er1 >conftest.err
9532   rm -f conftest.er1
9533   cat conftest.err >&5
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } &&
9536          { ac_try='test -z "$ac_c_werror_flag"
9537                          || test ! -s conftest.err'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; } &&
9543          { ac_try='test -s conftest.$ac_objext'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; }; then
9549   ac_hi=$ac_mid; break
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_lo=`expr $ac_mid + 1`
9555                     if test $ac_lo -le $ac_mid; then
9556                       ac_lo= ac_hi=
9557                       break
9558                     fi
9559                     ac_mid=`expr 2 '*' $ac_mid + 1`
9560 fi
9561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562   done
9563 else
9564   echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 #include <stddef.h>
9574 int
9575 main ()
9576 {
9577 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9578 test_array [0] = 0
9579
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586   (eval $ac_compile) 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -z "$ac_c_werror_flag"
9594                          || test ! -s conftest.err'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }; then
9606   ac_hi=-1 ac_mid=-1
9607   while :; do
9608     cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 #include <stddef.h>
9615 int
9616 main ()
9617 {
9618 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9619 test_array [0] = 0
9620
9621   ;
9622   return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627   (eval $ac_compile) 2>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } &&
9634          { ac_try='test -z "$ac_c_werror_flag"
9635                          || test ! -s conftest.err'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; } &&
9641          { ac_try='test -s conftest.$ac_objext'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; }; then
9647   ac_lo=$ac_mid; break
9648 else
9649   echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9651
9652 ac_hi=`expr '(' $ac_mid ')' - 1`
9653                        if test $ac_mid -le $ac_hi; then
9654                          ac_lo= ac_hi=
9655                          break
9656                        fi
9657                        ac_mid=`expr 2 '*' $ac_mid`
9658 fi
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9660   done
9661 else
9662   echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9664
9665 ac_lo= ac_hi=
9666 fi
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9670 # Binary search between lo and hi bounds.
9671 while test "x$ac_lo" != "x$ac_hi"; do
9672   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9673   cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h.  */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h.  */
9679 #include <stddef.h>
9680 int
9681 main ()
9682 {
9683 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9684 test_array [0] = 0
9685
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692   (eval $ac_compile) 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag"
9700                          || test ! -s conftest.err'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; } &&
9706          { ac_try='test -s conftest.$ac_objext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   ac_hi=$ac_mid
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_lo=`expr '(' $ac_mid ')' + 1`
9718 fi
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 done
9721 case $ac_lo in
9722 ?*) res_hi=$ac_lo;;
9723 '') result=? ;;
9724 esac
9725 else
9726   if test "$cross_compiling" = yes; then
9727   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9728 See \`config.log' for more details." >&5
9729 echo "$as_me: error: cannot run test program while cross compiling
9730 See \`config.log' for more details." >&2;}
9731    { (exit 1); exit 1; }; }
9732 else
9733   cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739 #include <stddef.h>
9740 long longval () { return ~(size_t)0 / 10; }
9741 unsigned long ulongval () { return ~(size_t)0 / 10; }
9742 #include <stdio.h>
9743 #include <stdlib.h>
9744 int
9745 main ()
9746 {
9747
9748   FILE *f = fopen ("conftest.val", "w");
9749   if (! f)
9750     exit (1);
9751   if ((~(size_t)0 / 10) < 0)
9752     {
9753       long i = longval ();
9754       if (i != (~(size_t)0 / 10))
9755         exit (1);
9756       fprintf (f, "%ld\n", i);
9757     }
9758   else
9759     {
9760       unsigned long i = ulongval ();
9761       if (i != (~(size_t)0 / 10))
9762         exit (1);
9763       fprintf (f, "%lu\n", i);
9764     }
9765   exit (ferror (f) || fclose (f) != 0);
9766
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773   (eval $ac_link) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   res_hi=`cat conftest.val`
9783 else
9784   echo "$as_me: program exited with status $ac_status" >&5
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788 ( exit $ac_status )
9789 result=?
9790 fi
9791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 fi
9794 rm -f conftest.val
9795     if test "$cross_compiling" = yes; then
9796   # Depending upon the size, compute the lo and hi bounds.
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803 #include <stddef.h>
9804 int
9805 main ()
9806 {
9807 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9808 test_array [0] = 0
9809
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816   (eval $ac_compile) 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag"
9824                          || test ! -s conftest.err'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; } &&
9830          { ac_try='test -s conftest.$ac_objext'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   ac_lo=0 ac_mid=0
9837   while :; do
9838     cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844 #include <stddef.h>
9845 int
9846 main ()
9847 {
9848 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9849 test_array [0] = 0
9850
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857   (eval $ac_compile) 2>conftest.er1
9858   ac_status=$?
9859   grep -v '^ *+' conftest.er1 >conftest.err
9860   rm -f conftest.er1
9861   cat conftest.err >&5
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); } &&
9864          { ac_try='test -z "$ac_c_werror_flag"
9865                          || test ! -s conftest.err'
9866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867   (eval $ac_try) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; } &&
9871          { ac_try='test -s conftest.$ac_objext'
9872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873   (eval $ac_try) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; }; then
9877   ac_hi=$ac_mid; break
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_lo=`expr $ac_mid + 1`
9883                     if test $ac_lo -le $ac_mid; then
9884                       ac_lo= ac_hi=
9885                       break
9886                     fi
9887                     ac_mid=`expr 2 '*' $ac_mid + 1`
9888 fi
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890   done
9891 else
9892   echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901 #include <stddef.h>
9902 int
9903 main ()
9904 {
9905 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9906 test_array [0] = 0
9907
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914   (eval $ac_compile) 2>conftest.er1
9915   ac_status=$?
9916   grep -v '^ *+' conftest.er1 >conftest.err
9917   rm -f conftest.er1
9918   cat conftest.err >&5
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); } &&
9921          { ac_try='test -z "$ac_c_werror_flag"
9922                          || test ! -s conftest.err'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; } &&
9928          { ac_try='test -s conftest.$ac_objext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_hi=-1 ac_mid=-1
9935   while :; do
9936     cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942 #include <stddef.h>
9943 int
9944 main ()
9945 {
9946 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9947 test_array [0] = 0
9948
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955   (eval $ac_compile) 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_c_werror_flag"
9963                          || test ! -s conftest.err'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest.$ac_objext'
9970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971   (eval $ac_try) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975   ac_lo=$ac_mid; break
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_hi=`expr '(' $ac_mid ')' - 1`
9981                        if test $ac_mid -le $ac_hi; then
9982                          ac_lo= ac_hi=
9983                          break
9984                        fi
9985                        ac_mid=`expr 2 '*' $ac_mid`
9986 fi
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988   done
9989 else
9990   echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ac_lo= ac_hi=
9994 fi
9995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9996 fi
9997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9998 # Binary search between lo and hi bounds.
9999 while test "x$ac_lo" != "x$ac_hi"; do
10000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10001   cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007 #include <stddef.h>
10008 int
10009 main ()
10010 {
10011 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10012 test_array [0] = 0
10013
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020   (eval $ac_compile) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag"
10028                          || test ! -s conftest.err'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; } &&
10034          { ac_try='test -s conftest.$ac_objext'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   ac_hi=$ac_mid
10041 else
10042   echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 ac_lo=`expr '(' $ac_mid ')' + 1`
10046 fi
10047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10048 done
10049 case $ac_lo in
10050 ?*) res_lo=$ac_lo;;
10051 '') result=? ;;
10052 esac
10053 else
10054   if test "$cross_compiling" = yes; then
10055   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10056 See \`config.log' for more details." >&5
10057 echo "$as_me: error: cannot run test program while cross compiling
10058 See \`config.log' for more details." >&2;}
10059    { (exit 1); exit 1; }; }
10060 else
10061   cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h.  */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h.  */
10067 #include <stddef.h>
10068 long longval () { return ~(size_t)0 % 10; }
10069 unsigned long ulongval () { return ~(size_t)0 % 10; }
10070 #include <stdio.h>
10071 #include <stdlib.h>
10072 int
10073 main ()
10074 {
10075
10076   FILE *f = fopen ("conftest.val", "w");
10077   if (! f)
10078     exit (1);
10079   if ((~(size_t)0 % 10) < 0)
10080     {
10081       long i = longval ();
10082       if (i != (~(size_t)0 % 10))
10083         exit (1);
10084       fprintf (f, "%ld\n", i);
10085     }
10086   else
10087     {
10088       unsigned long i = ulongval ();
10089       if (i != (~(size_t)0 % 10))
10090         exit (1);
10091       fprintf (f, "%lu\n", i);
10092     }
10093   exit (ferror (f) || fclose (f) != 0);
10094
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest$ac_exeext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10101   (eval $ac_link) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; }; then
10110   res_lo=`cat conftest.val`
10111 else
10112   echo "$as_me: program exited with status $ac_status" >&5
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ( exit $ac_status )
10117 result=?
10118 fi
10119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10120 fi
10121 fi
10122 rm -f conftest.val
10123     if test "$cross_compiling" = yes; then
10124   # Depending upon the size, compute the lo and hi bounds.
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131 #include <stddef.h>
10132 int
10133 main ()
10134 {
10135 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10136 test_array [0] = 0
10137
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144   (eval $ac_compile) 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -z "$ac_c_werror_flag"
10152                          || test ! -s conftest.err'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; } &&
10158          { ac_try='test -s conftest.$ac_objext'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }; then
10164   ac_lo=0 ac_mid=0
10165   while :; do
10166     cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172 #include <stddef.h>
10173 int
10174 main ()
10175 {
10176 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10177 test_array [0] = 0
10178
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185   (eval $ac_compile) 2>conftest.er1
10186   ac_status=$?
10187   grep -v '^ *+' conftest.er1 >conftest.err
10188   rm -f conftest.er1
10189   cat conftest.err >&5
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } &&
10192          { ac_try='test -z "$ac_c_werror_flag"
10193                          || test ! -s conftest.err'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; } &&
10199          { ac_try='test -s conftest.$ac_objext'
10200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201   (eval $ac_try) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   ac_hi=$ac_mid; break
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 ac_lo=`expr $ac_mid + 1`
10211                     if test $ac_lo -le $ac_mid; then
10212                       ac_lo= ac_hi=
10213                       break
10214                     fi
10215                     ac_mid=`expr 2 '*' $ac_mid + 1`
10216 fi
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218   done
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h.  */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h.  */
10229 #include <stddef.h>
10230 int
10231 main ()
10232 {
10233 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10234 test_array [0] = 0
10235
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242   (eval $ac_compile) 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -z "$ac_c_werror_flag"
10250                          || test ! -s conftest.err'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; } &&
10256          { ac_try='test -s conftest.$ac_objext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_hi=-1 ac_mid=-1
10263   while :; do
10264     cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h.  */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h.  */
10270 #include <stddef.h>
10271 int
10272 main ()
10273 {
10274 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10275 test_array [0] = 0
10276
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283   (eval $ac_compile) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest.$ac_objext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_lo=$ac_mid; break
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_hi=`expr '(' $ac_mid ')' - 1`
10309                        if test $ac_mid -le $ac_hi; then
10310                          ac_lo= ac_hi=
10311                          break
10312                        fi
10313                        ac_mid=`expr 2 '*' $ac_mid`
10314 fi
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10316   done
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321 ac_lo= ac_hi=
10322 fi
10323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10326 # Binary search between lo and hi bounds.
10327 while test "x$ac_lo" != "x$ac_hi"; do
10328   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10329   cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 #include <stddef.h>
10336 int
10337 main ()
10338 {
10339 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10340 test_array [0] = 0
10341
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10348   (eval $ac_compile) 2>conftest.er1
10349   ac_status=$?
10350   grep -v '^ *+' conftest.er1 >conftest.err
10351   rm -f conftest.er1
10352   cat conftest.err >&5
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -z "$ac_c_werror_flag"
10356                          || test ! -s conftest.err'
10357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358   (eval $ac_try) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; } &&
10362          { ac_try='test -s conftest.$ac_objext'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   ac_hi=$ac_mid
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373 ac_lo=`expr '(' $ac_mid ')' + 1`
10374 fi
10375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10376 done
10377 case $ac_lo in
10378 ?*) fits_in_uint=$ac_lo;;
10379 '') result=? ;;
10380 esac
10381 else
10382   if test "$cross_compiling" = yes; then
10383   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10384 See \`config.log' for more details." >&5
10385 echo "$as_me: error: cannot run test program while cross compiling
10386 See \`config.log' for more details." >&2;}
10387    { (exit 1); exit 1; }; }
10388 else
10389   cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <stddef.h>
10396 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10397 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10398 #include <stdio.h>
10399 #include <stdlib.h>
10400 int
10401 main ()
10402 {
10403
10404   FILE *f = fopen ("conftest.val", "w");
10405   if (! f)
10406     exit (1);
10407   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10408     {
10409       long i = longval ();
10410       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10411         exit (1);
10412       fprintf (f, "%ld\n", i);
10413     }
10414   else
10415     {
10416       unsigned long i = ulongval ();
10417       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10418         exit (1);
10419       fprintf (f, "%lu\n", i);
10420     }
10421   exit (ferror (f) || fclose (f) != 0);
10422
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 rm -f conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429   (eval $ac_link) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   fits_in_uint=`cat conftest.val`
10439 else
10440   echo "$as_me: program exited with status $ac_status" >&5
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444 ( exit $ac_status )
10445 result=?
10446 fi
10447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10448 fi
10449 fi
10450 rm -f conftest.val
10451     if test "$fits_in_uint" = 1; then
10452                   cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458 #include <stddef.h>
10459         extern size_t foo;
10460         extern unsigned long foo;
10461
10462 int
10463 main ()
10464 {
10465
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472   (eval $ac_compile) 2>conftest.er1
10473   ac_status=$?
10474   grep -v '^ *+' conftest.er1 >conftest.err
10475   rm -f conftest.er1
10476   cat conftest.err >&5
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } &&
10479          { ac_try='test -z "$ac_c_werror_flag"
10480                          || test ! -s conftest.err'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; } &&
10486          { ac_try='test -s conftest.$ac_objext'
10487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488   (eval $ac_try) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; }; then
10492   fits_in_uint=0
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 fi
10498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10499     fi
10500     if test -z "$result"; then
10501       if test "$fits_in_uint" = 1; then
10502         result="$res_hi$res_lo"U
10503       else
10504         result="$res_hi$res_lo"UL
10505       fi
10506     else
10507             result='~(size_t)0'
10508     fi
10509   fi
10510   echo "$as_me:$LINENO: result: $result" >&5
10511 echo "${ECHO_T}$result" >&6
10512   if test "$result" != yes; then
10513
10514 cat >>confdefs.h <<_ACEOF
10515 #define SIZE_MAX $result
10516 _ACEOF
10517
10518   fi
10519
10520
10521
10522
10523
10524 for ac_header in stdint.h
10525 do
10526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10528   echo "$as_me:$LINENO: checking for $ac_header" >&5
10529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 fi
10533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10535 else
10536   # Is the header compilable?
10537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h.  */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h.  */
10545 $ac_includes_default
10546 #include <$ac_header>
10547 _ACEOF
10548 rm -f conftest.$ac_objext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550   (eval $ac_compile) 2>conftest.er1
10551   ac_status=$?
10552   grep -v '^ *+' conftest.er1 >conftest.err
10553   rm -f conftest.er1
10554   cat conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } &&
10557          { ac_try='test -z "$ac_c_werror_flag"
10558                          || test ! -s conftest.err'
10559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560   (eval $ac_try) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); }; } &&
10564          { ac_try='test -s conftest.$ac_objext'
10565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566   (eval $ac_try) 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; }; then
10570   ac_header_compiler=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_header_compiler=no
10576 fi
10577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6
10580
10581 # Is the header present?
10582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <$ac_header>
10591 _ACEOF
10592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } >/dev/null; then
10600   if test -s conftest.err; then
10601     ac_cpp_err=$ac_c_preproc_warn_flag
10602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10603   else
10604     ac_cpp_err=
10605   fi
10606 else
10607   ac_cpp_err=yes
10608 fi
10609 if test -z "$ac_cpp_err"; then
10610   ac_header_preproc=yes
10611 else
10612   echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615   ac_header_preproc=no
10616 fi
10617 rm -f conftest.err conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6
10620
10621 # So?  What about this header?
10622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10623   yes:no: )
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628     ac_header_preproc=yes
10629     ;;
10630   no:yes:* )
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10634 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10638 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10643     (
10644       cat <<\_ASBOX
10645 ## ------------------------------------------ ##
10646 ## Report this to the AC_PACKAGE_NAME lists.  ##
10647 ## ------------------------------------------ ##
10648 _ASBOX
10649     ) |
10650       sed "s/^/$as_me: WARNING:     /" >&2
10651     ;;
10652 esac
10653 echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   eval "$as_ac_Header=\$ac_header_preproc"
10659 fi
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10662
10663 fi
10664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10665   cat >>confdefs.h <<_ACEOF
10666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10667 _ACEOF
10668
10669 fi
10670
10671 done
10672
10673
10674
10675
10676
10677
10678
10679
10680   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10681 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10682 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691 $ac_includes_default
10692 int
10693 main ()
10694 {
10695 if ((ptrdiff_t *) 0)
10696   return 0;
10697 if (sizeof (ptrdiff_t))
10698   return 0;
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705   (eval $ac_compile) 2>conftest.er1
10706   ac_status=$?
10707   grep -v '^ *+' conftest.er1 >conftest.err
10708   rm -f conftest.er1
10709   cat conftest.err >&5
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } &&
10712          { ac_try='test -z "$ac_c_werror_flag"
10713                          || test ! -s conftest.err'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; } &&
10719          { ac_try='test -s conftest.$ac_objext'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_cv_type_ptrdiff_t=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 ac_cv_type_ptrdiff_t=no
10731 fi
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10735 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10736 if test $ac_cv_type_ptrdiff_t = yes; then
10737   :
10738 else
10739
10740 cat >>confdefs.h <<\_ACEOF
10741 #define ptrdiff_t long
10742 _ACEOF
10743
10744
10745 fi
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10758 stdlib.h string.h unistd.h sys/param.h
10759 do
10760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10762   echo "$as_me:$LINENO: checking for $ac_header" >&5
10763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10765   echo $ECHO_N "(cached) $ECHO_C" >&6
10766 fi
10767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10769 else
10770   # Is the header compilable?
10771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 $ac_includes_default
10780 #include <$ac_header>
10781 _ACEOF
10782 rm -f conftest.$ac_objext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784   (eval $ac_compile) 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } &&
10791          { ac_try='test -z "$ac_c_werror_flag"
10792                          || test ! -s conftest.err'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest.$ac_objext'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   ac_header_compiler=yes
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 ac_header_compiler=no
10810 fi
10811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10814
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 #include <$ac_header>
10825 _ACEOF
10826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } >/dev/null; then
10834   if test -s conftest.err; then
10835     ac_cpp_err=$ac_c_preproc_warn_flag
10836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837   else
10838     ac_cpp_err=
10839   fi
10840 else
10841   ac_cpp_err=yes
10842 fi
10843 if test -z "$ac_cpp_err"; then
10844   ac_header_preproc=yes
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849   ac_header_preproc=no
10850 fi
10851 rm -f conftest.err conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853 echo "${ECHO_T}$ac_header_preproc" >&6
10854
10855 # So?  What about this header?
10856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10857   yes:no: )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10862     ac_header_preproc=yes
10863     ;;
10864   no:yes:* )
10865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10868 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10872 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10877     (
10878       cat <<\_ASBOX
10879 ## ------------------------------------------ ##
10880 ## Report this to the AC_PACKAGE_NAME lists.  ##
10881 ## ------------------------------------------ ##
10882 _ASBOX
10883     ) |
10884       sed "s/^/$as_me: WARNING:     /" >&2
10885     ;;
10886 esac
10887 echo "$as_me:$LINENO: checking for $ac_header" >&5
10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   eval "$as_ac_Header=\$ac_header_preproc"
10893 fi
10894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10896
10897 fi
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10902
10903 fi
10904
10905 done
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10931 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10932 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10933 __fsetlocking
10934 do
10935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 echo "$as_me:$LINENO: checking for $ac_func" >&5
10937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10938 if eval "test \"\${$as_ac_var+set}\" = set"; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10949 #define $ac_func innocuous_$ac_func
10950
10951 /* System header to define __stub macros and hopefully few prototypes,
10952     which can conflict with char $ac_func (); below.
10953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954     <limits.h> exists even on freestanding compilers.  */
10955
10956 #ifdef __STDC__
10957 # include <limits.h>
10958 #else
10959 # include <assert.h>
10960 #endif
10961
10962 #undef $ac_func
10963
10964 /* Override any gcc2 internal prototype to avoid an error.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 {
10968 #endif
10969 /* We use char because int might match the return type of a gcc2
10970    builtin and then its argument prototype would still apply.  */
10971 char $ac_func ();
10972 /* The GNU C library defines this for functions which it implements
10973     to always fail with ENOSYS.  Some functions are actually named
10974     something starting with __ and the normal name is an alias.  */
10975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10976 choke me
10977 #else
10978 char (*f) () = $ac_func;
10979 #endif
10980 #ifdef __cplusplus
10981 }
10982 #endif
10983
10984 int
10985 main ()
10986 {
10987 return f != $ac_func;
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994   (eval $ac_link) 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } &&
11001          { ac_try='test -z "$ac_c_werror_flag"
11002                          || test ! -s conftest.err'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; } &&
11008          { ac_try='test -s conftest$ac_exeext'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; }; then
11014   eval "$as_ac_var=yes"
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 eval "$as_ac_var=no"
11020 fi
11021 rm -f conftest.err conftest.$ac_objext \
11022       conftest$ac_exeext conftest.$ac_ext
11023 fi
11024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11026 if test `eval echo '${'$as_ac_var'}'` = yes; then
11027   cat >>confdefs.h <<_ACEOF
11028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11029 _ACEOF
11030
11031 fi
11032 done
11033
11034
11035
11036   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11037 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11038 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11039   echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041   cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047 #include <stdio.h>
11048 int
11049 main ()
11050 {
11051
11052 #ifndef _snprintf
11053   char *p = (char *) _snprintf;
11054 #endif
11055
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062   (eval $ac_compile) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag"
11070                          || test ! -s conftest.err'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; } &&
11076          { ac_try='test -s conftest.$ac_objext'
11077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078   (eval $ac_try) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; }; then
11082   ac_cv_have_decl__snprintf=yes
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 ac_cv_have_decl__snprintf=no
11088 fi
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11090 fi
11091 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11092 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11093   if test $ac_cv_have_decl__snprintf = yes; then
11094     gt_value=1
11095   else
11096     gt_value=0
11097   fi
11098
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_DECL__SNPRINTF $gt_value
11101 _ACEOF
11102
11103
11104
11105   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11106 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11107 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <stdio.h>
11117 int
11118 main ()
11119 {
11120
11121 #ifndef _snwprintf
11122   char *p = (char *) _snwprintf;
11123 #endif
11124
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11131   (eval $ac_compile) 2>conftest.er1
11132   ac_status=$?
11133   grep -v '^ *+' conftest.er1 >conftest.err
11134   rm -f conftest.er1
11135   cat conftest.err >&5
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); } &&
11138          { ac_try='test -z "$ac_c_werror_flag"
11139                          || test ! -s conftest.err'
11140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141   (eval $ac_try) 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; } &&
11145          { ac_try='test -s conftest.$ac_objext'
11146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147   (eval $ac_try) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; }; then
11151   ac_cv_have_decl__snwprintf=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_cv_have_decl__snwprintf=no
11157 fi
11158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11161 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11162   if test $ac_cv_have_decl__snwprintf = yes; then
11163     gt_value=1
11164   else
11165     gt_value=0
11166   fi
11167
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_DECL__SNWPRINTF $gt_value
11170 _ACEOF
11171
11172
11173
11174
11175   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11176 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11177 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 #include <stdio.h>
11187 int
11188 main ()
11189 {
11190
11191 #ifndef feof_unlocked
11192   char *p = (char *) feof_unlocked;
11193 #endif
11194
11195   ;
11196   return 0;
11197 }
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201   (eval $ac_compile) 2>conftest.er1
11202   ac_status=$?
11203   grep -v '^ *+' conftest.er1 >conftest.err
11204   rm -f conftest.er1
11205   cat conftest.err >&5
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } &&
11208          { ac_try='test -z "$ac_c_werror_flag"
11209                          || test ! -s conftest.err'
11210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211   (eval $ac_try) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; } &&
11215          { ac_try='test -s conftest.$ac_objext'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; }; then
11221   ac_cv_have_decl_feof_unlocked=yes
11222 else
11223   echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226 ac_cv_have_decl_feof_unlocked=no
11227 fi
11228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11229 fi
11230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11231 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11232   if test $ac_cv_have_decl_feof_unlocked = yes; then
11233     gt_value=1
11234   else
11235     gt_value=0
11236   fi
11237
11238 cat >>confdefs.h <<_ACEOF
11239 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11240 _ACEOF
11241
11242
11243
11244   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11245 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11246 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 #include <stdio.h>
11256 int
11257 main ()
11258 {
11259
11260 #ifndef fgets_unlocked
11261   char *p = (char *) fgets_unlocked;
11262 #endif
11263
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270   (eval $ac_compile) 2>conftest.er1
11271   ac_status=$?
11272   grep -v '^ *+' conftest.er1 >conftest.err
11273   rm -f conftest.er1
11274   cat conftest.err >&5
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); } &&
11277          { ac_try='test -z "$ac_c_werror_flag"
11278                          || test ! -s conftest.err'
11279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280   (eval $ac_try) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest.$ac_objext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   ac_cv_have_decl_fgets_unlocked=yes
11291 else
11292   echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 ac_cv_have_decl_fgets_unlocked=no
11296 fi
11297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298 fi
11299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11300 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11301   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11302     gt_value=1
11303   else
11304     gt_value=0
11305   fi
11306
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11309 _ACEOF
11310
11311
11312
11313   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11314 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11315 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 #include <stdio.h>
11325 int
11326 main ()
11327 {
11328
11329 #ifndef getc_unlocked
11330   char *p = (char *) getc_unlocked;
11331 #endif
11332
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339   (eval $ac_compile) 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } &&
11346          { ac_try='test -z "$ac_c_werror_flag"
11347                          || test ! -s conftest.err'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; } &&
11353          { ac_try='test -s conftest.$ac_objext'
11354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355   (eval $ac_try) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   ac_cv_have_decl_getc_unlocked=yes
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ac_cv_have_decl_getc_unlocked=no
11365 fi
11366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11367 fi
11368 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11369 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11370   if test $ac_cv_have_decl_getc_unlocked = yes; then
11371     gt_value=1
11372   else
11373     gt_value=0
11374   fi
11375
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11378 _ACEOF
11379
11380
11381
11382   case $gt_cv_func_printf_posix in
11383     *yes) HAVE_POSIX_PRINTF=1 ;;
11384     *) HAVE_POSIX_PRINTF=0 ;;
11385   esac
11386
11387   if test "$ac_cv_func_asprintf" = yes; then
11388     HAVE_ASPRINTF=1
11389   else
11390     HAVE_ASPRINTF=0
11391   fi
11392
11393   if test "$ac_cv_func_snprintf" = yes; then
11394     HAVE_SNPRINTF=1
11395   else
11396     HAVE_SNPRINTF=0
11397   fi
11398
11399   if test "$ac_cv_func_wprintf" = yes; then
11400     HAVE_WPRINTF=1
11401   else
11402     HAVE_WPRINTF=0
11403   fi
11404
11405
11406
11407
11408
11409
11410
11411           am_save_CPPFLAGS="$CPPFLAGS"
11412
11413   for element in $INCICONV; do
11414     haveit=
11415     for x in $CPPFLAGS; do
11416
11417   acl_save_prefix="$prefix"
11418   prefix="$acl_final_prefix"
11419   acl_save_exec_prefix="$exec_prefix"
11420   exec_prefix="$acl_final_exec_prefix"
11421   eval x=\"$x\"
11422   exec_prefix="$acl_save_exec_prefix"
11423   prefix="$acl_save_prefix"
11424
11425       if test "X$x" = "X$element"; then
11426         haveit=yes
11427         break
11428       fi
11429     done
11430     if test -z "$haveit"; then
11431       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11432     fi
11433   done
11434
11435
11436   echo "$as_me:$LINENO: checking for iconv" >&5
11437 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11438 if test "${am_cv_func_iconv+set}" = set; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441
11442     am_cv_func_iconv="no, consider installing GNU libiconv"
11443     am_cv_lib_iconv=no
11444     cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h.  */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h.  */
11450 #include <stdlib.h>
11451 #include <iconv.h>
11452 int
11453 main ()
11454 {
11455 iconv_t cd = iconv_open("","");
11456        iconv(cd,NULL,NULL,NULL,NULL);
11457        iconv_close(cd);
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464   (eval $ac_link) 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } &&
11471          { ac_try='test -z "$ac_c_werror_flag"
11472                          || test ! -s conftest.err'
11473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474   (eval $ac_try) 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; } &&
11478          { ac_try='test -s conftest$ac_exeext'
11479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480   (eval $ac_try) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; }; then
11484   am_cv_func_iconv=yes
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 fi
11490 rm -f conftest.err conftest.$ac_objext \
11491       conftest$ac_exeext conftest.$ac_ext
11492     if test "$am_cv_func_iconv" != yes; then
11493       am_save_LIBS="$LIBS"
11494       LIBS="$LIBS $LIBICONV"
11495       cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <stdlib.h>
11502 #include <iconv.h>
11503 int
11504 main ()
11505 {
11506 iconv_t cd = iconv_open("","");
11507          iconv(cd,NULL,NULL,NULL,NULL);
11508          iconv_close(cd);
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515   (eval $ac_link) 2>conftest.er1
11516   ac_status=$?
11517   grep -v '^ *+' conftest.er1 >conftest.err
11518   rm -f conftest.er1
11519   cat conftest.err >&5
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } &&
11522          { ac_try='test -z "$ac_c_werror_flag"
11523                          || test ! -s conftest.err'
11524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525   (eval $ac_try) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); }; } &&
11529          { ac_try='test -s conftest$ac_exeext'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; }; then
11535   am_cv_lib_iconv=yes
11536         am_cv_func_iconv=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 fi
11542 rm -f conftest.err conftest.$ac_objext \
11543       conftest$ac_exeext conftest.$ac_ext
11544       LIBS="$am_save_LIBS"
11545     fi
11546
11547 fi
11548 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11549 echo "${ECHO_T}$am_cv_func_iconv" >&6
11550   if test "$am_cv_func_iconv" = yes; then
11551
11552 cat >>confdefs.h <<\_ACEOF
11553 #define HAVE_ICONV 1
11554 _ACEOF
11555
11556   fi
11557   if test "$am_cv_lib_iconv" = yes; then
11558     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11559 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11560     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11561 echo "${ECHO_T}$LIBICONV" >&6
11562   else
11563             CPPFLAGS="$am_save_CPPFLAGS"
11564     LIBICONV=
11565     LTLIBICONV=
11566   fi
11567
11568
11569
11570   if test "$am_cv_func_iconv" = yes; then
11571     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11572 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11573     if test "${am_cv_proto_iconv+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576
11577       cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h.  */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h.  */
11583
11584 #include <stdlib.h>
11585 #include <iconv.h>
11586 extern
11587 #ifdef __cplusplus
11588 "C"
11589 #endif
11590 #if defined(__STDC__) || defined(__cplusplus)
11591 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11592 #else
11593 size_t iconv();
11594 #endif
11595
11596 int
11597 main ()
11598 {
11599
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606   (eval $ac_compile) 2>conftest.er1
11607   ac_status=$?
11608   grep -v '^ *+' conftest.er1 >conftest.err
11609   rm -f conftest.er1
11610   cat conftest.err >&5
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); } &&
11613          { ac_try='test -z "$ac_c_werror_flag"
11614                          || test ! -s conftest.err'
11615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616   (eval $ac_try) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; } &&
11620          { ac_try='test -s conftest.$ac_objext'
11621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622   (eval $ac_try) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   am_cv_proto_iconv_arg1=""
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 am_cv_proto_iconv_arg1="const"
11632 fi
11633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634       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);"
11635 fi
11636
11637     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11638     echo "$as_me:$LINENO: result: ${ac_t:-
11639          }$am_cv_proto_iconv" >&5
11640 echo "${ECHO_T}${ac_t:-
11641          }$am_cv_proto_iconv" >&6
11642
11643 cat >>confdefs.h <<_ACEOF
11644 #define ICONV_CONST $am_cv_proto_iconv_arg1
11645 _ACEOF
11646
11647   fi
11648
11649
11650   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11651 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11652 if test "${am_cv_langinfo_codeset+set}" = set; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655   cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 #include <langinfo.h>
11662 int
11663 main ()
11664 {
11665 char* cs = nl_langinfo(CODESET);
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672   (eval $ac_link) 2>conftest.er1
11673   ac_status=$?
11674   grep -v '^ *+' conftest.er1 >conftest.err
11675   rm -f conftest.er1
11676   cat conftest.err >&5
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); } &&
11679          { ac_try='test -z "$ac_c_werror_flag"
11680                          || test ! -s conftest.err'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; } &&
11686          { ac_try='test -s conftest$ac_exeext'
11687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688   (eval $ac_try) 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; }; then
11692   am_cv_langinfo_codeset=yes
11693 else
11694   echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 am_cv_langinfo_codeset=no
11698 fi
11699 rm -f conftest.err conftest.$ac_objext \
11700       conftest$ac_exeext conftest.$ac_ext
11701
11702 fi
11703 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11704 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11705   if test $am_cv_langinfo_codeset = yes; then
11706
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_LANGINFO_CODESET 1
11709 _ACEOF
11710
11711   fi
11712
11713   if test $ac_cv_header_locale_h = yes; then
11714
11715   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11716 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11717 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11718   echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720   cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726 #include <locale.h>
11727 int
11728 main ()
11729 {
11730 return LC_MESSAGES
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737   (eval $ac_link) 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } &&
11744          { ac_try='test -z "$ac_c_werror_flag"
11745                          || test ! -s conftest.err'
11746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747   (eval $ac_try) 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; } &&
11751          { ac_try='test -s conftest$ac_exeext'
11752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753   (eval $ac_try) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; }; then
11757   gt_cv_val_LC_MESSAGES=yes
11758 else
11759   echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11761
11762 gt_cv_val_LC_MESSAGES=no
11763 fi
11764 rm -f conftest.err conftest.$ac_objext \
11765       conftest$ac_exeext conftest.$ac_ext
11766 fi
11767 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11768 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11769   if test $gt_cv_val_LC_MESSAGES = yes; then
11770
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_LC_MESSAGES 1
11773 _ACEOF
11774
11775   fi
11776
11777   fi
11778
11779   if test -n "$INTL_MACOSX_LIBS"; then
11780     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11781   fi
11782
11783                       for ac_prog in bison
11784 do
11785   # Extract the first word of "$ac_prog", so it can be a program name with args.
11786 set dummy $ac_prog; ac_word=$2
11787 echo "$as_me:$LINENO: checking for $ac_word" >&5
11788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   if test -n "$INTLBISON"; then
11793   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11794 else
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11797 do
11798   IFS=$as_save_IFS
11799   test -z "$as_dir" && as_dir=.
11800   for ac_exec_ext in '' $ac_executable_extensions; do
11801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802     ac_cv_prog_INTLBISON="$ac_prog"
11803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804     break 2
11805   fi
11806 done
11807 done
11808
11809 fi
11810 fi
11811 INTLBISON=$ac_cv_prog_INTLBISON
11812 if test -n "$INTLBISON"; then
11813   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11814 echo "${ECHO_T}$INTLBISON" >&6
11815 else
11816   echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6
11818 fi
11819
11820   test -n "$INTLBISON" && break
11821 done
11822
11823   if test -z "$INTLBISON"; then
11824     ac_verc_fail=yes
11825   else
11826         echo "$as_me:$LINENO: checking version of bison" >&5
11827 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11828     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11829     case $ac_prog_version in
11830       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11831       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11832          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11833       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11834     esac
11835     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11836 echo "${ECHO_T}$ac_prog_version" >&6
11837   fi
11838   if test $ac_verc_fail = yes; then
11839     INTLBISON=:
11840   fi
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11858 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11859 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   gt_save_CPPFLAGS="$CPPFLAGS"
11863      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11864      gt_save_LIBS="$LIBS"
11865      LIBS="$LIBS -framework CoreFoundation"
11866      cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 #include <CFPreferences.h>
11873 int
11874 main ()
11875 {
11876 CFPreferencesCopyAppValue(NULL, NULL)
11877   ;
11878   return 0;
11879 }
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883   (eval $ac_link) 2>conftest.er1
11884   ac_status=$?
11885   grep -v '^ *+' conftest.er1 >conftest.err
11886   rm -f conftest.er1
11887   cat conftest.err >&5
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } &&
11890          { ac_try='test -z "$ac_c_werror_flag"
11891                          || test ! -s conftest.err'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; } &&
11897          { ac_try='test -s conftest$ac_exeext'
11898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899   (eval $ac_try) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; }; then
11903   gt_cv_func_CFPreferencesCopyAppValue=yes
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908 gt_cv_func_CFPreferencesCopyAppValue=no
11909 fi
11910 rm -f conftest.err conftest.$ac_objext \
11911       conftest$ac_exeext conftest.$ac_ext
11912      CPPFLAGS="$gt_save_CPPFLAGS"
11913      LIBS="$gt_save_LIBS"
11914 fi
11915 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11916 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11917   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11918
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11921 _ACEOF
11922
11923   fi
11924     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11925 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11926 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   gt_save_CPPFLAGS="$CPPFLAGS"
11930      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11931      gt_save_LIBS="$LIBS"
11932      LIBS="$LIBS -framework CoreFoundation"
11933      cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939 #include <CFLocale.h>
11940 int
11941 main ()
11942 {
11943 CFLocaleCopyCurrent();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950   (eval $ac_link) 2>conftest.er1
11951   ac_status=$?
11952   grep -v '^ *+' conftest.er1 >conftest.err
11953   rm -f conftest.er1
11954   cat conftest.err >&5
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } &&
11957          { ac_try='test -z "$ac_c_werror_flag"
11958                          || test ! -s conftest.err'
11959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960   (eval $ac_try) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; } &&
11964          { ac_try='test -s conftest$ac_exeext'
11965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966   (eval $ac_try) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; }; then
11970   gt_cv_func_CFLocaleCopyCurrent=yes
11971 else
11972   echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11974
11975 gt_cv_func_CFLocaleCopyCurrent=no
11976 fi
11977 rm -f conftest.err conftest.$ac_objext \
11978       conftest$ac_exeext conftest.$ac_ext
11979      CPPFLAGS="$gt_save_CPPFLAGS"
11980      LIBS="$gt_save_LIBS"
11981 fi
11982 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11983 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11984   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11985
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_CFLOCALECOPYCURRENT 1
11988 _ACEOF
11989
11990   fi
11991   INTL_MACOSX_LIBS=
11992   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11993     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11994   fi
11995
11996
11997
11998
11999   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12000 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12001     # Check whether --enable-nls or --disable-nls was given.
12002 if test "${enable_nls+set}" = set; then
12003   enableval="$enable_nls"
12004   USE_NLS=$enableval
12005 else
12006   USE_NLS=yes
12007 fi;
12008   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12009 echo "${ECHO_T}$USE_NLS" >&6
12010
12011
12012
12013
12014     BUILD_INCLUDED_LIBINTL=no
12015     USE_INCLUDED_LIBINTL=no
12016
12017   LIBINTL=
12018   LTLIBINTL=
12019   POSUB=
12020
12021     if test "$USE_NLS" = "yes"; then
12022     gt_use_preinstalled_gnugettext=no
12023
12024       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12025 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12026
12027 # Check whether --with-included-gettext or --without-included-gettext was given.
12028 if test "${with_included_gettext+set}" = set; then
12029   withval="$with_included_gettext"
12030   nls_cv_force_use_gnu_gettext=$withval
12031 else
12032   nls_cv_force_use_gnu_gettext=no
12033 fi;
12034       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12035 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12036
12037       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12038       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12039
12040
12041
12042
12043
12044
12045         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12046 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12047 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 #include <libintl.h>
12057 extern int _nl_msg_cat_cntr;
12058 extern int *_nl_domain_bindings;
12059 int
12060 main ()
12061 {
12062 bindtextdomain ("", "");
12063 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070   (eval $ac_link) 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -z "$ac_c_werror_flag"
12078                          || test ! -s conftest.err'
12079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080   (eval $ac_try) 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; } &&
12084          { ac_try='test -s conftest$ac_exeext'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; }; then
12090   gt_cv_func_gnugettext1_libc=yes
12091 else
12092   echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095 gt_cv_func_gnugettext1_libc=no
12096 fi
12097 rm -f conftest.err conftest.$ac_objext \
12098       conftest$ac_exeext conftest.$ac_ext
12099 fi
12100 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12101 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12102
12103         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12104
12105
12106
12107     use_additional=yes
12108
12109   acl_save_prefix="$prefix"
12110   prefix="$acl_final_prefix"
12111   acl_save_exec_prefix="$exec_prefix"
12112   exec_prefix="$acl_final_exec_prefix"
12113
12114     eval additional_includedir=\"$includedir\"
12115     eval additional_libdir=\"$libdir\"
12116
12117   exec_prefix="$acl_save_exec_prefix"
12118   prefix="$acl_save_prefix"
12119
12120
12121 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12122 if test "${with_libintl_prefix+set}" = set; then
12123   withval="$with_libintl_prefix"
12124
12125     if test "X$withval" = "Xno"; then
12126       use_additional=no
12127     else
12128       if test "X$withval" = "X"; then
12129
12130   acl_save_prefix="$prefix"
12131   prefix="$acl_final_prefix"
12132   acl_save_exec_prefix="$exec_prefix"
12133   exec_prefix="$acl_final_exec_prefix"
12134
12135           eval additional_includedir=\"$includedir\"
12136           eval additional_libdir=\"$libdir\"
12137
12138   exec_prefix="$acl_save_exec_prefix"
12139   prefix="$acl_save_prefix"
12140
12141       else
12142         additional_includedir="$withval/include"
12143         additional_libdir="$withval/lib"
12144       fi
12145     fi
12146
12147 fi;
12148       LIBINTL=
12149   LTLIBINTL=
12150   INCINTL=
12151   rpathdirs=
12152   ltrpathdirs=
12153   names_already_handled=
12154   names_next_round='intl '
12155   while test -n "$names_next_round"; do
12156     names_this_round="$names_next_round"
12157     names_next_round=
12158     for name in $names_this_round; do
12159       already_handled=
12160       for n in $names_already_handled; do
12161         if test "$n" = "$name"; then
12162           already_handled=yes
12163           break
12164         fi
12165       done
12166       if test -z "$already_handled"; then
12167         names_already_handled="$names_already_handled $name"
12168                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12169         eval value=\"\$HAVE_LIB$uppername\"
12170         if test -n "$value"; then
12171           if test "$value" = yes; then
12172             eval value=\"\$LIB$uppername\"
12173             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12174             eval value=\"\$LTLIB$uppername\"
12175             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12176           else
12177                                     :
12178           fi
12179         else
12180                               found_dir=
12181           found_la=
12182           found_so=
12183           found_a=
12184           if test $use_additional = yes; then
12185             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12186               found_dir="$additional_libdir"
12187               found_so="$additional_libdir/lib$name.$shlibext"
12188               if test -f "$additional_libdir/lib$name.la"; then
12189                 found_la="$additional_libdir/lib$name.la"
12190               fi
12191             else
12192               if test -f "$additional_libdir/lib$name.$libext"; then
12193                 found_dir="$additional_libdir"
12194                 found_a="$additional_libdir/lib$name.$libext"
12195                 if test -f "$additional_libdir/lib$name.la"; then
12196                   found_la="$additional_libdir/lib$name.la"
12197                 fi
12198               fi
12199             fi
12200           fi
12201           if test "X$found_dir" = "X"; then
12202             for x in $LDFLAGS $LTLIBINTL; do
12203
12204   acl_save_prefix="$prefix"
12205   prefix="$acl_final_prefix"
12206   acl_save_exec_prefix="$exec_prefix"
12207   exec_prefix="$acl_final_exec_prefix"
12208   eval x=\"$x\"
12209   exec_prefix="$acl_save_exec_prefix"
12210   prefix="$acl_save_prefix"
12211
12212               case "$x" in
12213                 -L*)
12214                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12215                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12216                     found_dir="$dir"
12217                     found_so="$dir/lib$name.$shlibext"
12218                     if test -f "$dir/lib$name.la"; then
12219                       found_la="$dir/lib$name.la"
12220                     fi
12221                   else
12222                     if test -f "$dir/lib$name.$libext"; then
12223                       found_dir="$dir"
12224                       found_a="$dir/lib$name.$libext"
12225                       if test -f "$dir/lib$name.la"; then
12226                         found_la="$dir/lib$name.la"
12227                       fi
12228                     fi
12229                   fi
12230                   ;;
12231               esac
12232               if test "X$found_dir" != "X"; then
12233                 break
12234               fi
12235             done
12236           fi
12237           if test "X$found_dir" != "X"; then
12238                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12239             if test "X$found_so" != "X"; then
12240                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12241                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12242               else
12243                                                                                 haveit=
12244                 for x in $ltrpathdirs; do
12245                   if test "X$x" = "X$found_dir"; then
12246                     haveit=yes
12247                     break
12248                   fi
12249                 done
12250                 if test -z "$haveit"; then
12251                   ltrpathdirs="$ltrpathdirs $found_dir"
12252                 fi
12253                                 if test "$hardcode_direct" = yes; then
12254                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12255                 else
12256                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12257                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12258                                                             haveit=
12259                     for x in $rpathdirs; do
12260                       if test "X$x" = "X$found_dir"; then
12261                         haveit=yes
12262                         break
12263                       fi
12264                     done
12265                     if test -z "$haveit"; then
12266                       rpathdirs="$rpathdirs $found_dir"
12267                     fi
12268                   else
12269                                                                                 haveit=
12270                     for x in $LDFLAGS $LIBINTL; do
12271
12272   acl_save_prefix="$prefix"
12273   prefix="$acl_final_prefix"
12274   acl_save_exec_prefix="$exec_prefix"
12275   exec_prefix="$acl_final_exec_prefix"
12276   eval x=\"$x\"
12277   exec_prefix="$acl_save_exec_prefix"
12278   prefix="$acl_save_prefix"
12279
12280                       if test "X$x" = "X-L$found_dir"; then
12281                         haveit=yes
12282                         break
12283                       fi
12284                     done
12285                     if test -z "$haveit"; then
12286                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12287                     fi
12288                     if test "$hardcode_minus_L" != no; then
12289                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12290                     else
12291                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12292                     fi
12293                   fi
12294                 fi
12295               fi
12296             else
12297               if test "X$found_a" != "X"; then
12298                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12299               else
12300                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12301               fi
12302             fi
12303                         additional_includedir=
12304             case "$found_dir" in
12305               */lib | */lib/)
12306                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12307                 additional_includedir="$basedir/include"
12308                 ;;
12309             esac
12310             if test "X$additional_includedir" != "X"; then
12311                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12312                 haveit=
12313                 if test "X$additional_includedir" = "X/usr/local/include"; then
12314                   if test -n "$GCC"; then
12315                     case $host_os in
12316                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12317                     esac
12318                   fi
12319                 fi
12320                 if test -z "$haveit"; then
12321                   for x in $CPPFLAGS $INCINTL; do
12322
12323   acl_save_prefix="$prefix"
12324   prefix="$acl_final_prefix"
12325   acl_save_exec_prefix="$exec_prefix"
12326   exec_prefix="$acl_final_exec_prefix"
12327   eval x=\"$x\"
12328   exec_prefix="$acl_save_exec_prefix"
12329   prefix="$acl_save_prefix"
12330
12331                     if test "X$x" = "X-I$additional_includedir"; then
12332                       haveit=yes
12333                       break
12334                     fi
12335                   done
12336                   if test -z "$haveit"; then
12337                     if test -d "$additional_includedir"; then
12338                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12339                     fi
12340                   fi
12341                 fi
12342               fi
12343             fi
12344                         if test -n "$found_la"; then
12345                                                         save_libdir="$libdir"
12346               case "$found_la" in
12347                 */* | *\\*) . "$found_la" ;;
12348                 *) . "./$found_la" ;;
12349               esac
12350               libdir="$save_libdir"
12351                             for dep in $dependency_libs; do
12352                 case "$dep" in
12353                   -L*)
12354                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12355                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12356                       haveit=
12357                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12358                         if test -n "$GCC"; then
12359                           case $host_os in
12360                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12361                           esac
12362                         fi
12363                       fi
12364                       if test -z "$haveit"; then
12365                         haveit=
12366                         for x in $LDFLAGS $LIBINTL; do
12367
12368   acl_save_prefix="$prefix"
12369   prefix="$acl_final_prefix"
12370   acl_save_exec_prefix="$exec_prefix"
12371   exec_prefix="$acl_final_exec_prefix"
12372   eval x=\"$x\"
12373   exec_prefix="$acl_save_exec_prefix"
12374   prefix="$acl_save_prefix"
12375
12376                           if test "X$x" = "X-L$additional_libdir"; then
12377                             haveit=yes
12378                             break
12379                           fi
12380                         done
12381                         if test -z "$haveit"; then
12382                           if test -d "$additional_libdir"; then
12383                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12384                           fi
12385                         fi
12386                         haveit=
12387                         for x in $LDFLAGS $LTLIBINTL; do
12388
12389   acl_save_prefix="$prefix"
12390   prefix="$acl_final_prefix"
12391   acl_save_exec_prefix="$exec_prefix"
12392   exec_prefix="$acl_final_exec_prefix"
12393   eval x=\"$x\"
12394   exec_prefix="$acl_save_exec_prefix"
12395   prefix="$acl_save_prefix"
12396
12397                           if test "X$x" = "X-L$additional_libdir"; then
12398                             haveit=yes
12399                             break
12400                           fi
12401                         done
12402                         if test -z "$haveit"; then
12403                           if test -d "$additional_libdir"; then
12404                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12405                           fi
12406                         fi
12407                       fi
12408                     fi
12409                     ;;
12410                   -R*)
12411                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12412                     if test "$enable_rpath" != no; then
12413                                                                   haveit=
12414                       for x in $rpathdirs; do
12415                         if test "X$x" = "X$dir"; then
12416                           haveit=yes
12417                           break
12418                         fi
12419                       done
12420                       if test -z "$haveit"; then
12421                         rpathdirs="$rpathdirs $dir"
12422                       fi
12423                                                                   haveit=
12424                       for x in $ltrpathdirs; do
12425                         if test "X$x" = "X$dir"; then
12426                           haveit=yes
12427                           break
12428                         fi
12429                       done
12430                       if test -z "$haveit"; then
12431                         ltrpathdirs="$ltrpathdirs $dir"
12432                       fi
12433                     fi
12434                     ;;
12435                   -l*)
12436                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12437                     ;;
12438                   *.la)
12439                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12440                     ;;
12441                   *)
12442                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12443                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12444                     ;;
12445                 esac
12446               done
12447             fi
12448           else
12449                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12450             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12451           fi
12452         fi
12453       fi
12454     done
12455   done
12456   if test "X$rpathdirs" != "X"; then
12457     if test -n "$hardcode_libdir_separator"; then
12458                         alldirs=
12459       for found_dir in $rpathdirs; do
12460         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12461       done
12462             acl_save_libdir="$libdir"
12463       libdir="$alldirs"
12464       eval flag=\"$hardcode_libdir_flag_spec\"
12465       libdir="$acl_save_libdir"
12466       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12467     else
12468             for found_dir in $rpathdirs; do
12469         acl_save_libdir="$libdir"
12470         libdir="$found_dir"
12471         eval flag=\"$hardcode_libdir_flag_spec\"
12472         libdir="$acl_save_libdir"
12473         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12474       done
12475     fi
12476   fi
12477   if test "X$ltrpathdirs" != "X"; then
12478             for found_dir in $ltrpathdirs; do
12479       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12480     done
12481   fi
12482
12483           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12484 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12485 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488   gt_save_CPPFLAGS="$CPPFLAGS"
12489             CPPFLAGS="$CPPFLAGS $INCINTL"
12490             gt_save_LIBS="$LIBS"
12491             LIBS="$LIBS $LIBINTL"
12492                         cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 #include <libintl.h>
12499 extern int _nl_msg_cat_cntr;
12500 extern
12501 #ifdef __cplusplus
12502 "C"
12503 #endif
12504 const char *_nl_expand_alias (const char *);
12505 int
12506 main ()
12507 {
12508 bindtextdomain ("", "");
12509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516   (eval $ac_link) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"
12524                          || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536   gt_cv_func_gnugettext1_libintl=yes
12537 else
12538   echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 gt_cv_func_gnugettext1_libintl=no
12542 fi
12543 rm -f conftest.err conftest.$ac_objext \
12544       conftest$ac_exeext conftest.$ac_ext
12545                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12546               LIBS="$LIBS $LIBICONV"
12547               cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553 #include <libintl.h>
12554 extern int _nl_msg_cat_cntr;
12555 extern
12556 #ifdef __cplusplus
12557 "C"
12558 #endif
12559 const char *_nl_expand_alias (const char *);
12560 int
12561 main ()
12562 {
12563 bindtextdomain ("", "");
12564 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571   (eval $ac_link) 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -z "$ac_c_werror_flag"
12579                          || test ! -s conftest.err'
12580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581   (eval $ac_try) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; } &&
12585          { ac_try='test -s conftest$ac_exeext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   LIBINTL="$LIBINTL $LIBICONV"
12592                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12593                 gt_cv_func_gnugettext1_libintl=yes
12594
12595 else
12596   echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 fi
12600 rm -f conftest.err conftest.$ac_objext \
12601       conftest$ac_exeext conftest.$ac_ext
12602             fi
12603             CPPFLAGS="$gt_save_CPPFLAGS"
12604             LIBS="$gt_save_LIBS"
12605 fi
12606 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12607 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12608         fi
12609
12610                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12611            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12612                 && test "$PACKAGE" != gettext-runtime \
12613                 && test "$PACKAGE" != gettext-tools; }; then
12614           gt_use_preinstalled_gnugettext=yes
12615         else
12616                     LIBINTL=
12617           LTLIBINTL=
12618           INCINTL=
12619         fi
12620
12621
12622         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12623                               nls_cv_use_gnu_gettext=yes
12624         fi
12625       fi
12626
12627       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12628                 BUILD_INCLUDED_LIBINTL=yes
12629         USE_INCLUDED_LIBINTL=yes
12630         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12631         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12632         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12633       fi
12634
12635       CATOBJEXT=
12636       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12638                 CATOBJEXT=.gmo
12639       fi
12640
12641
12642     if test -n "$INTL_MACOSX_LIBS"; then
12643       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12646         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12647       fi
12648     fi
12649
12650     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12651        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12652
12653 cat >>confdefs.h <<\_ACEOF
12654 #define ENABLE_NLS 1
12655 _ACEOF
12656
12657     else
12658       USE_NLS=no
12659     fi
12660   fi
12661
12662   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12663 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12664   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12665 echo "${ECHO_T}$USE_NLS" >&6
12666   if test "$USE_NLS" = "yes"; then
12667     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12668 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12669     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12670       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12671         gt_source="external libintl"
12672       else
12673         gt_source="libc"
12674       fi
12675     else
12676       gt_source="included intl directory"
12677     fi
12678     echo "$as_me:$LINENO: result: $gt_source" >&5
12679 echo "${ECHO_T}$gt_source" >&6
12680   fi
12681
12682   if test "$USE_NLS" = "yes"; then
12683
12684     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12685       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12686         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12687 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12688         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12689 echo "${ECHO_T}$LIBINTL" >&6
12690
12691   for element in $INCINTL; do
12692     haveit=
12693     for x in $CPPFLAGS; do
12694
12695   acl_save_prefix="$prefix"
12696   prefix="$acl_final_prefix"
12697   acl_save_exec_prefix="$exec_prefix"
12698   exec_prefix="$acl_final_exec_prefix"
12699   eval x=\"$x\"
12700   exec_prefix="$acl_save_exec_prefix"
12701   prefix="$acl_save_prefix"
12702
12703       if test "X$x" = "X$element"; then
12704         haveit=yes
12705         break
12706       fi
12707     done
12708     if test -z "$haveit"; then
12709       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12710     fi
12711   done
12712
12713       fi
12714
12715
12716 cat >>confdefs.h <<\_ACEOF
12717 #define HAVE_GETTEXT 1
12718 _ACEOF
12719
12720
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_DCGETTEXT 1
12723 _ACEOF
12724
12725     fi
12726
12727         POSUB=po
12728   fi
12729
12730
12731             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12732       BUILD_INCLUDED_LIBINTL=yes
12733     fi
12734
12735
12736
12737
12738
12739         nls_cv_header_intl=
12740     nls_cv_header_libgt=
12741
12742         DATADIRNAME=share
12743
12744
12745         INSTOBJEXT=.mo
12746
12747
12748         GENCAT=gencat
12749
12750
12751         INTLOBJS=
12752     if test "$USE_INCLUDED_LIBINTL" = yes; then
12753       INTLOBJS="\$(GETTOBJS)"
12754     fi
12755
12756
12757         INTL_LIBTOOL_SUFFIX_PREFIX=
12758
12759
12760
12761     INTLLIBS="$LIBINTL"
12762
12763
12764
12765
12766
12767
12768 fi
12769
12770
12771 support_mysql=no
12772 support_sqlite=no
12773 support_sqlite3=no
12774 support_postgresql=no
12775 support_smartalloc=yes
12776 support_readline=yes
12777 support_conio=yes
12778 support_gnome=no
12779 support_wx_console=no
12780 support_tls=no
12781 support_crypto=no
12782 gnome_version=
12783 wx_version=
12784 support_static_tools=no
12785 support_static_fd=no
12786 support_static_sd=no
12787 support_static_dir=no
12788 support_static_cons=no
12789 support_python=no
12790 build_client_only=no
12791 build_dird=yes
12792 build_stored=yes
12793 cats=
12794 db_name=Internal
12795 DB_NAME=bdb
12796
12797
12798 # -------------------------------------------
12799 # gnome (default off)
12800 # -------------------------------------------
12801 # Check whether --enable-gnome or --disable-gnome was given.
12802 if test "${enable_gnome+set}" = set; then
12803   enableval="$enable_gnome"
12804   if test x$enableval = xyes; then
12805     support_gnome=yes
12806   fi
12807 fi;
12808
12809 GNOME_DIR=
12810 if test x$support_gnome = xyes; then
12811   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12812   pkg=$?
12813   if test $pkg = 0; then
12814      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12815      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12816      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12817      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12818
12819
12820
12821
12822      GNOME_DIR=src/gnome2-console
12823      gnome_version="Version 2.x"
12824   else
12825      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12826 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12827    { (exit 1); exit 1; }; }
12828   fi
12829 fi
12830
12831
12832
12833 # -------------------------------------------
12834 # wx-console (default off)
12835 # -------------------------------------------
12836 # Check whether --enable-wx-console or --disable-wx-console was given.
12837 if test "${enable_wx_console+set}" = set; then
12838   enableval="$enable_wx_console"
12839   if test x$enableval = xyes; then
12840     support_wx_console=yes
12841   fi
12842 fi;
12843
12844 WX_DIR=
12845 if test x$support_wx_console = xyes; then
12846   abc=`$WXCONFIG $WXFLAGS --cppflags`
12847   pkg=$?
12848   if test $pkg = 0; then
12849      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12850      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12851      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12852
12853
12854
12855      WX_DIR=src/wx-console
12856   else
12857      echo " "
12858      echo "wx-config program not found. wx-console disabled."
12859      echo " "
12860      support_wx_console=no
12861   fi
12862 fi
12863
12864
12865
12866 # -------------------------------------------
12867 # tray-monitor (default off)
12868 # -------------------------------------------
12869 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12870 if test "${enable_tray_monitor+set}" = set; then
12871   enableval="$enable_tray_monitor"
12872   if test x$enableval = xyes; then
12873     support_tray_monitor=yes
12874   fi
12875 fi;
12876
12877 TRAY_MONITOR_DIR=
12878 if test x$support_tray_monitor = xyes; then
12879   abc=`$PKGCONFIG --exists gtk+-2.0`
12880   pkg=$?
12881   if test $pkg = 0; then
12882      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12883      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12884
12885
12886      TRAY_MONITOR_DIR=src/tray-monitor
12887      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12888      pkg=$?
12889      if test $pkg = 0; then
12890      cat >>confdefs.h <<\_ACEOF
12891 #define HAVE_GTK_2_4 1
12892 _ACEOF
12893
12894      fi
12895   fi
12896 fi
12897
12898
12899 # -------------------------------------------
12900 # smartalloc (default off)
12901 # -------------------------------------------
12902 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12903 if test "${enable_smartalloc+set}" = set; then
12904   enableval="$enable_smartalloc"
12905   if test x$enableval = xno; then
12906     support_smartalloc=no
12907   fi
12908 fi;
12909
12910 if test x$support_smartalloc = xyes; then
12911    cat >>confdefs.h <<\_ACEOF
12912 #define SMARTALLOC 1
12913 _ACEOF
12914
12915 fi
12916
12917 # -------------------------------------------
12918 # static-tools (default off)
12919 # -------------------------------------------
12920 # Check whether --enable-static-tools or --disable-static-tools was given.
12921 if test "${enable_static_tools+set}" = set; then
12922   enableval="$enable_static_tools"
12923   if test x$enableval = xyes; then
12924      support_static_tools=yes
12925    fi
12926 fi;
12927
12928 TTOOL_LDFLAGS=
12929 if test x$support_static_tools = xyes; then
12930    TTOOL_LDFLAGS="-static"
12931 fi
12932
12933
12934 # -------------------------------------------
12935 # static-fd    (default off)
12936 # -------------------------------------------
12937 # Check whether --enable-static-fd or --disable-static-fd was given.
12938 if test "${enable_static_fd+set}" = set; then
12939   enableval="$enable_static_fd"
12940   if test x$enableval = xyes; then
12941      support_static_fd=yes
12942    fi
12943 fi;
12944
12945 STATIC_FD=
12946 if test x$support_static_fd = xyes; then
12947    STATIC_FD="static-bacula-fd"
12948 fi
12949
12950
12951 # -------------------------------------------
12952 # static-sd    (default off)
12953 # -------------------------------------------
12954 # Check whether --enable-static-sd or --disable-static-sd was given.
12955 if test "${enable_static_sd+set}" = set; then
12956   enableval="$enable_static_sd"
12957   if test x$enableval = xyes; then
12958      support_static_sd=yes
12959    fi
12960 fi;
12961
12962 STATIC_SD=
12963 if test x$support_static_sd = xyes; then
12964    STATIC_SD="static-bacula-sd"
12965 fi
12966
12967
12968 # -------------------------------------------
12969 # static-dir   (default off)
12970 # -------------------------------------------
12971 # Check whether --enable-static-dir or --disable-static-dir was given.
12972 if test "${enable_static_dir+set}" = set; then
12973   enableval="$enable_static_dir"
12974   if test x$enableval = xyes; then
12975      support_static_dir=yes
12976    fi
12977 fi;
12978
12979 STATIC_DIR=
12980 if test x$support_static_dir = xyes; then
12981    STATIC_DIR="static-bacula-dir"
12982 fi
12983
12984
12985 # -------------------------------------------
12986 # static-cons  (default off)
12987 # -------------------------------------------
12988 # Check whether --enable-static-cons or --disable-static-cons was given.
12989 if test "${enable_static_cons+set}" = set; then
12990   enableval="$enable_static_cons"
12991   if test x$enableval = xyes; then
12992      support_static_cons=yes
12993    fi
12994 fi;
12995
12996 STATIC_CONS=
12997 STATIC_GNOME_CONS=
12998 STATIC_WX_CONS=
12999 if test x$support_static_cons = xyes; then
13000    STATIC_CONS="static-bconsole"
13001    STATIC_GNOME_CONS="static-gnome-console"
13002    STATIC_WX_CONS="static-wx-console"
13003 fi
13004
13005
13006
13007
13008 # -------------------------------------------
13009 # client_only  (default off)
13010 # -------------------------------------------
13011 # Check whether --enable-client-only or --disable-client-only was given.
13012 if test "${enable_client_only+set}" = set; then
13013   enableval="$enable_client_only"
13014   if test x$enableval = xyes; then
13015       build_client_only=yes
13016       db_name=None
13017       DB_NAME=none
13018    fi
13019 fi;
13020 if test x$build_client_only = xno; then
13021    ALL_DIRS="subdirs"
13022 else
13023    ALL_DIRS=""
13024 fi
13025
13026
13027 # -------------------------------------------
13028 # director  (default on)
13029 # -------------------------------------------
13030 # Check whether --enable-build-dird or --disable-build-dird was given.
13031 if test "${enable_build_dird+set}" = set; then
13032   enableval="$enable_build_dird"
13033   if test x$enableval = xno; then
13034       build_dird=no
13035    fi
13036 fi;
13037 if test x$build_dird = xyes; then
13038    DIRD_DIR="src/dird"
13039    DIR_TOOLS="DIRTOOLS"
13040 else
13041    DIRD_DIR=""
13042    DIR_TOOLS="NODIRTOOLS"
13043 fi
13044
13045
13046
13047 # -------------------------------------------
13048 # stored  (default on)
13049 # -------------------------------------------
13050 # Check whether --enable-build-stored or --disable-build-stored was given.
13051 if test "${enable_build_stored+set}" = set; then
13052   enableval="$enable_build_stored"
13053   if test x$enableval = xno; then
13054       build_stored=no
13055    fi
13056 fi;
13057 if test x$build_stored = xyes; then
13058    STORED_DIR="src/stored"
13059 else
13060    STORED_DIR=""
13061 fi
13062
13063
13064 # ---------------------------------------------------
13065 # Check for conio (Bacula readline substitute)(
13066 # ---------------------------------------------------
13067 # this allows you to turn it completely off
13068 # Check whether --enable-conio or --disable-conio was given.
13069 if test "${enable_conio+set}" = set; then
13070   enableval="$enable_conio"
13071   if test x$enableval = xno; then
13072     support_conio=no
13073   fi
13074 fi;
13075
13076 got_conio="no"
13077 if test x$support_conio = xyes; then
13078    if test "${ac_cv_header_termcap_h+set}" = set; then
13079   echo "$as_me:$LINENO: checking for termcap.h" >&5
13080 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13081 if test "${ac_cv_header_termcap_h+set}" = set; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 fi
13084 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13085 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13086 else
13087   # Is the header compilable?
13088 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13089 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13090 cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h.  */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h.  */
13096 $ac_includes_default
13097 #include <termcap.h>
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101   (eval $ac_compile) 2>conftest.er1
13102   ac_status=$?
13103   grep -v '^ *+' conftest.er1 >conftest.err
13104   rm -f conftest.er1
13105   cat conftest.err >&5
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); } &&
13108          { ac_try='test -z "$ac_c_werror_flag"
13109                          || test ! -s conftest.err'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; } &&
13115          { ac_try='test -s conftest.$ac_objext'
13116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117   (eval $ac_try) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); }; }; then
13121   ac_header_compiler=yes
13122 else
13123   echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_header_compiler=no
13127 fi
13128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13130 echo "${ECHO_T}$ac_header_compiler" >&6
13131
13132 # Is the header present?
13133 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13134 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141 #include <termcap.h>
13142 _ACEOF
13143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13145   ac_status=$?
13146   grep -v '^ *+' conftest.er1 >conftest.err
13147   rm -f conftest.er1
13148   cat conftest.err >&5
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } >/dev/null; then
13151   if test -s conftest.err; then
13152     ac_cpp_err=$ac_c_preproc_warn_flag
13153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13154   else
13155     ac_cpp_err=
13156   fi
13157 else
13158   ac_cpp_err=yes
13159 fi
13160 if test -z "$ac_cpp_err"; then
13161   ac_header_preproc=yes
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166   ac_header_preproc=no
13167 fi
13168 rm -f conftest.err conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13170 echo "${ECHO_T}$ac_header_preproc" >&6
13171
13172 # So?  What about this header?
13173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13174   yes:no: )
13175     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13176 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13177     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13178 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13179     ac_header_preproc=yes
13180     ;;
13181   no:yes:* )
13182     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13183 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13184     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13185 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13186     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13187 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13188     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13189 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13190     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13192     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13193 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13194     (
13195       cat <<\_ASBOX
13196 ## ------------------------------------------ ##
13197 ## Report this to the AC_PACKAGE_NAME lists.  ##
13198 ## ------------------------------------------ ##
13199 _ASBOX
13200     ) |
13201       sed "s/^/$as_me: WARNING:     /" >&2
13202     ;;
13203 esac
13204 echo "$as_me:$LINENO: checking for termcap.h" >&5
13205 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13206 if test "${ac_cv_header_termcap_h+set}" = set; then
13207   echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209   ac_cv_header_termcap_h=$ac_header_preproc
13210 fi
13211 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13212 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13213
13214 fi
13215 if test $ac_cv_header_termcap_h = yes; then
13216    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13217 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13218 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   ac_check_lib_save_LIBS=$LIBS
13222 LIBS="-ltermcap  $LIBS"
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229
13230 /* Override any gcc2 internal prototype to avoid an error.  */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 /* We use char because int might match the return type of a gcc2
13235    builtin and then its argument prototype would still apply.  */
13236 char tgetent ();
13237 int
13238 main ()
13239 {
13240 tgetent ();
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13247   (eval $ac_link) 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } &&
13254          { ac_try='test -z "$ac_c_werror_flag"
13255                          || test ! -s conftest.err'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; } &&
13261          { ac_try='test -s conftest$ac_exeext'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   ac_cv_lib_termcap_tgetent=yes
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 ac_cv_lib_termcap_tgetent=no
13273 fi
13274 rm -f conftest.err conftest.$ac_objext \
13275       conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13277 fi
13278 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13279 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13280 if test $ac_cv_lib_termcap_tgetent = yes; then
13281    CONS_LIBS="-ltermcap"
13282          CONS_OBJ="conio.o"
13283          CONS_SRC="conio.c"
13284          got_conio="yes"
13285          support_readline=no
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_CONIO 1
13289 _ACEOF
13290
13291
13292 else
13293    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13294 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13295 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298   ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-lncurses  $LIBS"
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306
13307 /* Override any gcc2 internal prototype to avoid an error.  */
13308 #ifdef __cplusplus
13309 extern "C"
13310 #endif
13311 /* We use char because int might match the return type of a gcc2
13312    builtin and then its argument prototype would still apply.  */
13313 char tgetent ();
13314 int
13315 main ()
13316 {
13317 tgetent ();
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324   (eval $ac_link) 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } &&
13331          { ac_try='test -z "$ac_c_werror_flag"
13332                          || test ! -s conftest.err'
13333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334   (eval $ac_try) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest$ac_exeext'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344   ac_cv_lib_ncurses_tgetent=yes
13345 else
13346   echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_cv_lib_ncurses_tgetent=no
13350 fi
13351 rm -f conftest.err conftest.$ac_objext \
13352       conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13354 fi
13355 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13356 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13357 if test $ac_cv_lib_ncurses_tgetent = yes; then
13358    CONS_LIBS="-lncurses"
13359            CONS_OBJ="conio.o"
13360            CONS_SRC="conio.c"
13361            got_conio="yes"
13362            support_readline=no
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_CONIO 1
13366 _ACEOF
13367
13368
13369 fi
13370
13371
13372 fi
13373
13374
13375 else
13376
13377
13378 for ac_header in curses.h
13379 do
13380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13382   echo "$as_me:$LINENO: checking for $ac_header" >&5
13383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 fi
13387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13389 else
13390   # Is the header compilable?
13391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 $ac_includes_default
13400 #include <$ac_header>
13401 _ACEOF
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404   (eval $ac_compile) 2>conftest.er1
13405   ac_status=$?
13406   grep -v '^ *+' conftest.er1 >conftest.err
13407   rm -f conftest.er1
13408   cat conftest.err >&5
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); } &&
13411          { ac_try='test -z "$ac_c_werror_flag"
13412                          || test ! -s conftest.err'
13413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414   (eval $ac_try) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; } &&
13418          { ac_try='test -s conftest.$ac_objext'
13419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420   (eval $ac_try) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; }; then
13424   ac_header_compiler=yes
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429 ac_header_compiler=no
13430 fi
13431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13433 echo "${ECHO_T}$ac_header_compiler" >&6
13434
13435 # Is the header present?
13436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 #include <$ac_header>
13445 _ACEOF
13446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13448   ac_status=$?
13449   grep -v '^ *+' conftest.er1 >conftest.err
13450   rm -f conftest.er1
13451   cat conftest.err >&5
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } >/dev/null; then
13454   if test -s conftest.err; then
13455     ac_cpp_err=$ac_c_preproc_warn_flag
13456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13457   else
13458     ac_cpp_err=
13459   fi
13460 else
13461   ac_cpp_err=yes
13462 fi
13463 if test -z "$ac_cpp_err"; then
13464   ac_header_preproc=yes
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469   ac_header_preproc=no
13470 fi
13471 rm -f conftest.err conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13473 echo "${ECHO_T}$ac_header_preproc" >&6
13474
13475 # So?  What about this header?
13476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13477   yes:no: )
13478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13482     ac_header_preproc=yes
13483     ;;
13484   no:yes:* )
13485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13497     (
13498       cat <<\_ASBOX
13499 ## ------------------------------------------ ##
13500 ## Report this to the AC_PACKAGE_NAME lists.  ##
13501 ## ------------------------------------------ ##
13502 _ASBOX
13503     ) |
13504       sed "s/^/$as_me: WARNING:     /" >&2
13505     ;;
13506 esac
13507 echo "$as_me:$LINENO: checking for $ac_header" >&5
13508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510   echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512   eval "$as_ac_Header=\$ac_header_preproc"
13513 fi
13514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13516
13517 fi
13518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519   cat >>confdefs.h <<_ACEOF
13520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13521 _ACEOF
13522
13523 fi
13524
13525 done
13526
13527          echo "$as_me:$LINENO: checking for term.h" >&5
13528 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13529 if test "${ac_cv_header_term_h+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h.  */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h.  */
13538 #if HAVE_CURSES_H
13539 #include <curses.h>
13540 #endif
13541
13542
13543 #include <term.h>
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547   (eval $ac_compile) 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } &&
13554          { ac_try='test -z "$ac_c_werror_flag"
13555                          || test ! -s conftest.err'
13556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557   (eval $ac_try) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; } &&
13561          { ac_try='test -s conftest.$ac_objext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   ac_cv_header_term_h=yes
13568 else
13569   echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 ac_cv_header_term_h=no
13573 fi
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13577 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13578 if test $ac_cv_header_term_h = yes; then
13579    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13580 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13581 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-lcurses  $LIBS"
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h.  */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h.  */
13592
13593 /* Override any gcc2 internal prototype to avoid an error.  */
13594 #ifdef __cplusplus
13595 extern "C"
13596 #endif
13597 /* We use char because int might match the return type of a gcc2
13598    builtin and then its argument prototype would still apply.  */
13599 char tgetent ();
13600 int
13601 main ()
13602 {
13603 tgetent ();
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610   (eval $ac_link) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_c_werror_flag"
13618                          || test ! -s conftest.err'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest$ac_exeext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630   ac_cv_lib_curses_tgetent=yes
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_cv_lib_curses_tgetent=no
13636 fi
13637 rm -f conftest.err conftest.$ac_objext \
13638       conftest$ac_exeext conftest.$ac_ext
13639 LIBS=$ac_check_lib_save_LIBS
13640 fi
13641 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13642 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13643 if test $ac_cv_lib_curses_tgetent = yes; then
13644    CONS_LIBS="-lcurses"
13645                    CONS_OBJ="conio.o"
13646                    CONS_SRC="conio.c"
13647                    got_conio="yes"
13648                    support_readline=no
13649
13650 cat >>confdefs.h <<\_ACEOF
13651 #define HAVE_CONIO 1
13652 _ACEOF
13653
13654
13655 fi
13656
13657
13658 else
13659    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13660 fi
13661
13662
13663
13664 fi
13665
13666
13667 fi
13668
13669
13670 # ---------------------------------------------------
13671 # Check for readline support/directory (default off)
13672 # ---------------------------------------------------
13673 # this allows you to turn it completely off
13674 # Check whether --enable-readline or --disable-readline was given.
13675 if test "${enable_readline+set}" = set; then
13676   enableval="$enable_readline"
13677   if test x$enableval = xno; then
13678     support_readline=no
13679   fi
13680 fi;
13681
13682 got_readline="no"
13683 READLINE_SRC=
13684 if test x$support_readline = xyes; then
13685
13686 # Check whether --with-readline or --without-readline was given.
13687 if test "${with_readline+set}" = set; then
13688   withval="$with_readline"
13689
13690         case "$with_readline" in
13691         no) : ;;
13692         yes|*)
13693           if test -f ${with_readline}/readline.h; then
13694              CONS_INC="-I${with_readline}"
13695              CONS_LDFLAGS="-L$with_readline"
13696           elif test -f ${with_readline}/include/readline/readline.h; then
13697              CONS_INC="-I${with_readline}/include/readline"
13698              CONS_LDFLAGS="-L${with_readline}/lib"
13699              with_readline="${with_readline}/include/readline"
13700           else
13701              with_readline="/usr/include/readline"
13702           fi
13703           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13705   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13706 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 fi
13710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13712 else
13713   # Is the header compilable?
13714 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13715 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 $ac_includes_default
13723 #include <${with_readline}/readline.h>
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727   (eval $ac_compile) 2>conftest.er1
13728   ac_status=$?
13729   grep -v '^ *+' conftest.er1 >conftest.err
13730   rm -f conftest.er1
13731   cat conftest.err >&5
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } &&
13734          { ac_try='test -z "$ac_c_werror_flag"
13735                          || test ! -s conftest.err'
13736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737   (eval $ac_try) 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; } &&
13741          { ac_try='test -s conftest.$ac_objext'
13742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743   (eval $ac_try) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; }; then
13747   ac_header_compiler=yes
13748 else
13749   echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_header_compiler=no
13753 fi
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6
13757
13758 # Is the header present?
13759 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13760 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767 #include <${with_readline}/readline.h>
13768 _ACEOF
13769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } >/dev/null; then
13777   if test -s conftest.err; then
13778     ac_cpp_err=$ac_c_preproc_warn_flag
13779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13780   else
13781     ac_cpp_err=
13782   fi
13783 else
13784   ac_cpp_err=yes
13785 fi
13786 if test -z "$ac_cpp_err"; then
13787   ac_header_preproc=yes
13788 else
13789   echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792   ac_header_preproc=no
13793 fi
13794 rm -f conftest.err conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13796 echo "${ECHO_T}$ac_header_preproc" >&6
13797
13798 # So?  What about this header?
13799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13800   yes:no: )
13801     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13803     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13805     ac_header_preproc=yes
13806     ;;
13807   no:yes:* )
13808     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13809 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13810     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13811 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13812     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13813 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13814     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13815 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13816     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13817 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13818     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13819 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13820     (
13821       cat <<\_ASBOX
13822 ## ------------------------------------------ ##
13823 ## Report this to the AC_PACKAGE_NAME lists.  ##
13824 ## ------------------------------------------ ##
13825 _ASBOX
13826     ) |
13827       sed "s/^/$as_me: WARNING:     /" >&2
13828     ;;
13829 esac
13830 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13831 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   eval "$as_ac_Header=\$ac_header_preproc"
13836 fi
13837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13839
13840 fi
13841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13842    cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_READLINE 1
13844 _ACEOF
13845
13846                CONS_LIBS="-lreadline -lhistory -ltermcap"
13847                got_readline="yes"
13848
13849 else
13850    echo " "
13851                echo "readline.h not found. readline turned off ..."
13852                echo " "
13853
13854
13855 fi
13856
13857
13858           ;;
13859         esac
13860
13861 else
13862
13863        # check for standard readline library
13864        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13865   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13866 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13867 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 fi
13870 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13871 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13872 else
13873   # Is the header compilable?
13874 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13875 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 $ac_includes_default
13883 #include </usr/include/readline/readline.h>
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887   (eval $ac_compile) 2>conftest.er1
13888   ac_status=$?
13889   grep -v '^ *+' conftest.er1 >conftest.err
13890   rm -f conftest.er1
13891   cat conftest.err >&5
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -z "$ac_c_werror_flag"
13895                          || test ! -s conftest.err'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; } &&
13901          { ac_try='test -s conftest.$ac_objext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_header_compiler=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 ac_header_compiler=no
13913 fi
13914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6
13917
13918 # Is the header present?
13919 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13920 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927 #include </usr/include/readline/readline.h>
13928 _ACEOF
13929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } >/dev/null; then
13937   if test -s conftest.err; then
13938     ac_cpp_err=$ac_c_preproc_warn_flag
13939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13940   else
13941     ac_cpp_err=
13942   fi
13943 else
13944   ac_cpp_err=yes
13945 fi
13946 if test -z "$ac_cpp_err"; then
13947   ac_header_preproc=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952   ac_header_preproc=no
13953 fi
13954 rm -f conftest.err conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13956 echo "${ECHO_T}$ac_header_preproc" >&6
13957
13958 # So?  What about this header?
13959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13960   yes:no: )
13961     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13965     ac_header_preproc=yes
13966     ;;
13967   no:yes:* )
13968     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13969 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13970     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
13971 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
13972     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13973 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13974     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13975 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13976     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13977 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13978     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13979 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13980     (
13981       cat <<\_ASBOX
13982 ## ------------------------------------------ ##
13983 ## Report this to the AC_PACKAGE_NAME lists.  ##
13984 ## ------------------------------------------ ##
13985 _ASBOX
13986     ) |
13987       sed "s/^/$as_me: WARNING:     /" >&2
13988     ;;
13989 esac
13990 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13991 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13992 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13996 fi
13997 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13998 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13999
14000 fi
14001 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14002    cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_READLINE 1
14004 _ACEOF
14005
14006            got_readline="yes"
14007            CONS_INC="-I/usr/include/readline"
14008            CONS_LIBS="-lreadline -ltermcap"
14009
14010 else
14011
14012            # Did not find standard library, so try Bacula's default
14013             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14016 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 fi
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022 else
14023   # Is the header compilable?
14024 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14025 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14026 cat >conftest.$ac_ext <<_ACEOF
14027 /* confdefs.h.  */
14028 _ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h.  */
14032 $ac_includes_default
14033 #include <${TOP_DIR}/depkgs/readline/readline.h>
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037   (eval $ac_compile) 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -z "$ac_c_werror_flag"
14045                          || test ! -s conftest.err'
14046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047   (eval $ac_try) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; } &&
14051          { ac_try='test -s conftest.$ac_objext'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; }; then
14057   ac_header_compiler=yes
14058 else
14059   echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_header_compiler=no
14063 fi
14064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14066 echo "${ECHO_T}$ac_header_compiler" >&6
14067
14068 # Is the header present?
14069 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14070 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077 #include <${TOP_DIR}/depkgs/readline/readline.h>
14078 _ACEOF
14079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } >/dev/null; then
14087   if test -s conftest.err; then
14088     ac_cpp_err=$ac_c_preproc_warn_flag
14089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14090   else
14091     ac_cpp_err=
14092   fi
14093 else
14094   ac_cpp_err=yes
14095 fi
14096 if test -z "$ac_cpp_err"; then
14097   ac_header_preproc=yes
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102   ac_header_preproc=no
14103 fi
14104 rm -f conftest.err conftest.$ac_ext
14105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6
14107
14108 # So?  What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14110   yes:no: )
14111     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14115     ac_header_preproc=yes
14116     ;;
14117   no:yes:* )
14118     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14120     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14122     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14124     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14126     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14128     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14130     (
14131       cat <<\_ASBOX
14132 ## ------------------------------------------ ##
14133 ## Report this to the AC_PACKAGE_NAME lists.  ##
14134 ## ------------------------------------------ ##
14135 _ASBOX
14136     ) |
14137       sed "s/^/$as_me: WARNING:     /" >&2
14138     ;;
14139 esac
14140 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14141 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145   eval "$as_ac_Header=\$ac_header_preproc"
14146 fi
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14149
14150 fi
14151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14152    cat >>confdefs.h <<\_ACEOF
14153 #define HAVE_READLINE 1
14154 _ACEOF
14155
14156                  got_readline="yes"
14157                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14158                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14159                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14160                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14161
14162 else
14163    echo " "
14164                 echo "readline.h not found. readline turned off ..."
14165                 echo " "
14166
14167
14168 fi
14169
14170
14171
14172
14173 fi
14174
14175
14176
14177
14178 fi;
14179 fi
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190 # Minimal stuff for readline Makefile configuration
14191 MAKE_SHELL=/bin/sh
14192
14193 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14194 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14195 if test "${ac_cv_header_stat_broken+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204 #include <sys/types.h>
14205 #include <sys/stat.h>
14206
14207 #if defined(S_ISBLK) && defined(S_IFDIR)
14208 # if S_ISBLK (S_IFDIR)
14209 You lose.
14210 # endif
14211 #endif
14212
14213 #if defined(S_ISBLK) && defined(S_IFCHR)
14214 # if S_ISBLK (S_IFCHR)
14215 You lose.
14216 # endif
14217 #endif
14218
14219 #if defined(S_ISLNK) && defined(S_IFREG)
14220 # if S_ISLNK (S_IFREG)
14221 You lose.
14222 # endif
14223 #endif
14224
14225 #if defined(S_ISSOCK) && defined(S_IFREG)
14226 # if S_ISSOCK (S_IFREG)
14227 You lose.
14228 # endif
14229 #endif
14230
14231 _ACEOF
14232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14233   $EGREP "You lose" >/dev/null 2>&1; then
14234   ac_cv_header_stat_broken=yes
14235 else
14236   ac_cv_header_stat_broken=no
14237 fi
14238 rm -f conftest*
14239
14240 fi
14241 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14242 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14243 if test $ac_cv_header_stat_broken = yes; then
14244
14245 cat >>confdefs.h <<\_ACEOF
14246 #define STAT_MACROS_BROKEN 1
14247 _ACEOF
14248
14249 fi
14250
14251
14252
14253
14254
14255
14256 ac_header_dirent=no
14257 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14258   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14259 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14260 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262   echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264   cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h.  */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h.  */
14270 #include <sys/types.h>
14271 #include <$ac_hdr>
14272
14273 int
14274 main ()
14275 {
14276 if ((DIR *) 0)
14277 return 0;
14278   ;
14279   return 0;
14280 }
14281 _ACEOF
14282 rm -f conftest.$ac_objext
14283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14284   (eval $ac_compile) 2>conftest.er1
14285   ac_status=$?
14286   grep -v '^ *+' conftest.er1 >conftest.err
14287   rm -f conftest.er1
14288   cat conftest.err >&5
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } &&
14291          { ac_try='test -z "$ac_c_werror_flag"
14292                          || test ! -s conftest.err'
14293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294   (eval $ac_try) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); }; } &&
14298          { ac_try='test -s conftest.$ac_objext'
14299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300   (eval $ac_try) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; }; then
14304   eval "$as_ac_Header=yes"
14305 else
14306   echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309 eval "$as_ac_Header=no"
14310 fi
14311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14312 fi
14313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14316   cat >>confdefs.h <<_ACEOF
14317 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14318 _ACEOF
14319
14320 ac_header_dirent=$ac_hdr; break
14321 fi
14322
14323 done
14324 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14325 if test $ac_header_dirent = dirent.h; then
14326   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14327 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14328 if test "${ac_cv_search_opendir+set}" = set; then
14329   echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331   ac_func_search_save_LIBS=$LIBS
14332 ac_cv_search_opendir=no
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339
14340 /* Override any gcc2 internal prototype to avoid an error.  */
14341 #ifdef __cplusplus
14342 extern "C"
14343 #endif
14344 /* We use char because int might match the return type of a gcc2
14345    builtin and then its argument prototype would still apply.  */
14346 char opendir ();
14347 int
14348 main ()
14349 {
14350 opendir ();
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357   (eval $ac_link) 2>conftest.er1
14358   ac_status=$?
14359   grep -v '^ *+' conftest.er1 >conftest.err
14360   rm -f conftest.er1
14361   cat conftest.err >&5
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); } &&
14364          { ac_try='test -z "$ac_c_werror_flag"
14365                          || test ! -s conftest.err'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; } &&
14371          { ac_try='test -s conftest$ac_exeext'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_cv_search_opendir="none required"
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 fi
14383 rm -f conftest.err conftest.$ac_objext \
14384       conftest$ac_exeext conftest.$ac_ext
14385 if test "$ac_cv_search_opendir" = no; then
14386   for ac_lib in dir; do
14387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14388     cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h.  */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h.  */
14394
14395 /* Override any gcc2 internal prototype to avoid an error.  */
14396 #ifdef __cplusplus
14397 extern "C"
14398 #endif
14399 /* We use char because int might match the return type of a gcc2
14400    builtin and then its argument prototype would still apply.  */
14401 char opendir ();
14402 int
14403 main ()
14404 {
14405 opendir ();
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412   (eval $ac_link) 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -z "$ac_c_werror_flag"
14420                          || test ! -s conftest.err'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } &&
14426          { ac_try='test -s conftest$ac_exeext'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   ac_cv_search_opendir="-l$ac_lib"
14433 break
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 fi
14439 rm -f conftest.err conftest.$ac_objext \
14440       conftest$ac_exeext conftest.$ac_ext
14441   done
14442 fi
14443 LIBS=$ac_func_search_save_LIBS
14444 fi
14445 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14447 if test "$ac_cv_search_opendir" != no; then
14448   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14449
14450 fi
14451
14452 else
14453   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14454 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14455 if test "${ac_cv_search_opendir+set}" = set; then
14456   echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14458   ac_func_search_save_LIBS=$LIBS
14459 ac_cv_search_opendir=no
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466
14467 /* Override any gcc2 internal prototype to avoid an error.  */
14468 #ifdef __cplusplus
14469 extern "C"
14470 #endif
14471 /* We use char because int might match the return type of a gcc2
14472    builtin and then its argument prototype would still apply.  */
14473 char opendir ();
14474 int
14475 main ()
14476 {
14477 opendir ();
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484   (eval $ac_link) 2>conftest.er1
14485   ac_status=$?
14486   grep -v '^ *+' conftest.er1 >conftest.err
14487   rm -f conftest.er1
14488   cat conftest.err >&5
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } &&
14491          { ac_try='test -z "$ac_c_werror_flag"
14492                          || test ! -s conftest.err'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; } &&
14498          { ac_try='test -s conftest$ac_exeext'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; }; then
14504   ac_cv_search_opendir="none required"
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 fi
14510 rm -f conftest.err conftest.$ac_objext \
14511       conftest$ac_exeext conftest.$ac_ext
14512 if test "$ac_cv_search_opendir" = no; then
14513   for ac_lib in x; do
14514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14515     cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521
14522 /* Override any gcc2 internal prototype to avoid an error.  */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 /* We use char because int might match the return type of a gcc2
14527    builtin and then its argument prototype would still apply.  */
14528 char opendir ();
14529 int
14530 main ()
14531 {
14532 opendir ();
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539   (eval $ac_link) 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag"
14547                          || test ! -s conftest.err'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; } &&
14553          { ac_try='test -s conftest$ac_exeext'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   ac_cv_search_opendir="-l$ac_lib"
14560 break
14561 else
14562   echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 fi
14566 rm -f conftest.err conftest.$ac_objext \
14567       conftest$ac_exeext conftest.$ac_ext
14568   done
14569 fi
14570 LIBS=$ac_func_search_save_LIBS
14571 fi
14572 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14573 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14574 if test "$ac_cv_search_opendir" != no; then
14575   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14576
14577 fi
14578
14579 fi
14580
14581
14582
14583
14584
14585
14586
14587
14588 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14589 do
14590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 echo "$as_me:$LINENO: checking for $ac_func" >&5
14592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14593 if eval "test \"\${$as_ac_var+set}\" = set"; then
14594   echo $ECHO_N "(cached) $ECHO_C" >&6
14595 else
14596   cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14604 #define $ac_func innocuous_$ac_func
14605
14606 /* System header to define __stub macros and hopefully few prototypes,
14607     which can conflict with char $ac_func (); below.
14608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609     <limits.h> exists even on freestanding compilers.  */
14610
14611 #ifdef __STDC__
14612 # include <limits.h>
14613 #else
14614 # include <assert.h>
14615 #endif
14616
14617 #undef $ac_func
14618
14619 /* Override any gcc2 internal prototype to avoid an error.  */
14620 #ifdef __cplusplus
14621 extern "C"
14622 {
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625    builtin and then its argument prototype would still apply.  */
14626 char $ac_func ();
14627 /* The GNU C library defines this for functions which it implements
14628     to always fail with ENOSYS.  Some functions are actually named
14629     something starting with __ and the normal name is an alias.  */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 char (*f) () = $ac_func;
14634 #endif
14635 #ifdef __cplusplus
14636 }
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642 return f != $ac_func;
14643   ;
14644   return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649   (eval $ac_link) 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } &&
14656          { ac_try='test -z "$ac_c_werror_flag"
14657                          || test ! -s conftest.err'
14658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659   (eval $ac_try) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; } &&
14663          { ac_try='test -s conftest$ac_exeext'
14664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665   (eval $ac_try) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; }; then
14669   eval "$as_ac_var=yes"
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 eval "$as_ac_var=no"
14675 fi
14676 rm -f conftest.err conftest.$ac_objext \
14677       conftest$ac_exeext conftest.$ac_ext
14678 fi
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14681 if test `eval echo '${'$as_ac_var'}'` = yes; then
14682   cat >>confdefs.h <<_ACEOF
14683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14684 _ACEOF
14685
14686 fi
14687 done
14688
14689
14690
14691 for ac_func in nanosleep nl_langinfo
14692 do
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699   cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14707 #define $ac_func innocuous_$ac_func
14708
14709 /* System header to define __stub macros and hopefully few prototypes,
14710     which can conflict with char $ac_func (); below.
14711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14712     <limits.h> exists even on freestanding compilers.  */
14713
14714 #ifdef __STDC__
14715 # include <limits.h>
14716 #else
14717 # include <assert.h>
14718 #endif
14719
14720 #undef $ac_func
14721
14722 /* Override any gcc2 internal prototype to avoid an error.  */
14723 #ifdef __cplusplus
14724 extern "C"
14725 {
14726 #endif
14727 /* We use char because int might match the return type of a gcc2
14728    builtin and then its argument prototype would still apply.  */
14729 char $ac_func ();
14730 /* The GNU C library defines this for functions which it implements
14731     to always fail with ENOSYS.  Some functions are actually named
14732     something starting with __ and the normal name is an alias.  */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14734 choke me
14735 #else
14736 char (*f) () = $ac_func;
14737 #endif
14738 #ifdef __cplusplus
14739 }
14740 #endif
14741
14742 int
14743 main ()
14744 {
14745 return f != $ac_func;
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14752   (eval $ac_link) 2>conftest.er1
14753   ac_status=$?
14754   grep -v '^ *+' conftest.er1 >conftest.err
14755   rm -f conftest.er1
14756   cat conftest.err >&5
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); } &&
14759          { ac_try='test -z "$ac_c_werror_flag"
14760                          || test ! -s conftest.err'
14761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762   (eval $ac_try) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; } &&
14766          { ac_try='test -s conftest$ac_exeext'
14767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768   (eval $ac_try) 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; }; then
14772   eval "$as_ac_var=yes"
14773 else
14774   echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777 eval "$as_ac_var=no"
14778 fi
14779 rm -f conftest.err conftest.$ac_objext \
14780       conftest$ac_exeext conftest.$ac_ext
14781 fi
14782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14784 if test `eval echo '${'$as_ac_var'}'` = yes; then
14785   cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14787 _ACEOF
14788
14789 fi
14790 done
14791
14792
14793 for ac_header in varargs.h
14794 do
14795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14797   echo "$as_me:$LINENO: checking for $ac_header" >&5
14798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 fi
14802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14804 else
14805   # Is the header compilable?
14806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h.  */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h.  */
14814 $ac_includes_default
14815 #include <$ac_header>
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819   (eval $ac_compile) 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } &&
14826          { ac_try='test -z "$ac_c_werror_flag"
14827                          || test ! -s conftest.err'
14828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829   (eval $ac_try) 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; } &&
14833          { ac_try='test -s conftest.$ac_objext'
14834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835   (eval $ac_try) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); }; }; then
14839   ac_header_compiler=yes
14840 else
14841   echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844 ac_header_compiler=no
14845 fi
14846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848 echo "${ECHO_T}$ac_header_compiler" >&6
14849
14850 # Is the header present?
14851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859 #include <$ac_header>
14860 _ACEOF
14861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14863   ac_status=$?
14864   grep -v '^ *+' conftest.er1 >conftest.err
14865   rm -f conftest.er1
14866   cat conftest.err >&5
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); } >/dev/null; then
14869   if test -s conftest.err; then
14870     ac_cpp_err=$ac_c_preproc_warn_flag
14871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14872   else
14873     ac_cpp_err=
14874   fi
14875 else
14876   ac_cpp_err=yes
14877 fi
14878 if test -z "$ac_cpp_err"; then
14879   ac_header_preproc=yes
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884   ac_header_preproc=no
14885 fi
14886 rm -f conftest.err conftest.$ac_ext
14887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14888 echo "${ECHO_T}$ac_header_preproc" >&6
14889
14890 # So?  What about this header?
14891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14892   yes:no: )
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14897     ac_header_preproc=yes
14898     ;;
14899   no:yes:* )
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14912     (
14913       cat <<\_ASBOX
14914 ## ------------------------------------------ ##
14915 ## Report this to the AC_PACKAGE_NAME lists.  ##
14916 ## ------------------------------------------ ##
14917 _ASBOX
14918     ) |
14919       sed "s/^/$as_me: WARNING:     /" >&2
14920     ;;
14921 esac
14922 echo "$as_me:$LINENO: checking for $ac_header" >&5
14923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925   echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927   eval "$as_ac_Header=\$ac_header_preproc"
14928 fi
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14931
14932 fi
14933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14934   cat >>confdefs.h <<_ACEOF
14935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 _ACEOF
14937
14938 fi
14939
14940 done
14941
14942
14943 # End of readline/conio stuff
14944 # -----------------------------------------------------------------------
14945
14946 # -----------------------------------------------------------------------
14947 #  Check for Python support
14948 #
14949 echo "$as_me:$LINENO: checking for Python support" >&5
14950 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14951
14952 # Check whether --with-python or --without-python was given.
14953 if test "${with_python+set}" = set; then
14954   withval="$with_python"
14955
14956   PYTHON_INCDIR=
14957   PYTHON_LIBS=
14958   if test "$withval" != "no"; then
14959      if test "$withval" = "yes"; then
14960         for python_root in /usr /usr/local /usr/sfw; do
14961           if test -f $python_root/include/python2.2/Python.h; then
14962              PYTHON_INCDIR=-I$python_root/include/python2.2
14963              if test -d $python_root/lib64/python2.2/config; then
14964                 PYTHON_LIBS="-L$python_root/lib64/python2.2/config -lpython2.2"
14965              else
14966                 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14967              fi
14968              break
14969           elif test -f $python_root/include/python2.3/Python.h; then
14970              PYTHON_INCDIR=-I$python_root/include/python2.3
14971              if test -d $python_root/lib64/python2.3/config; then
14972                 PYTHON_LIBS="-L$python_root/lib64/python2.3/config -lpython2.3"
14973              else
14974                 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14975              fi
14976              break
14977           elif test -f $python_root/include/python2.4/Python.h; then
14978              PYTHON_INCDIR=-I$python_root/include/python2.4
14979              if test -d $python_root/lib64/python2.4/config; then
14980                 PYTHON_LIBS="-L$python_root/lib64/python2.4/config -lpython2.4"
14981              else
14982                 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14983              fi
14984              break
14985           fi
14986         done
14987         if test x$PYTHON_INCDIR = x; then
14988           if test -f $prefix/include/Python.h; then
14989              PYTHON_INCDIR=-I$prefix/include
14990              if test -d $prefix/lib64/config; then
14991                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
14992              else
14993                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14994              fi
14995           else
14996            echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6
14998            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14999 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15000    { (exit 1); exit 1; }; }
15001           fi
15002         fi
15003      else
15004         if test -f $withval/Python.h; then
15005            PYTHON_INCDIR=-I$withval
15006            PYTHON_LIBS="-L$withval/config -lpython"
15007         elif test -f $withval/include/Python.h; then
15008            PYTHON_INCDIR=-I$withval/include
15009            if test -d $withval/lib64/config; then
15010               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15011            else
15012               PYTHON_LIBS="-L$withval/lib/config -lpython"
15013            fi
15014         elif test -f $withval/include/python/Python.h; then
15015            PYTHON_INCDIR=-I$withval/include/python
15016            if test -d $withval/lib64/python/config; then
15017               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15018            else
15019               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15020            fi
15021         else
15022            echo "$as_me:$LINENO: result: no" >&5
15023 echo "${ECHO_T}no" >&6
15024            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15025 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15026    { (exit 1); exit 1; }; }
15027         fi
15028      fi
15029      cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_PYTHON 1
15031 _ACEOF
15032
15033      echo "$as_me:$LINENO: result: yes" >&5
15034 echo "${ECHO_T}yes" >&6
15035      support_python=yes
15036      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15037 echo "$as_me: checking for more Python libs" >&6;}
15038      saved_LIBS="$LIBS"; LIBS=
15039      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15040 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15041 if test "${ac_cv_search_shm_open+set}" = set; then
15042   echo $ECHO_N "(cached) $ECHO_C" >&6
15043 else
15044   ac_func_search_save_LIBS=$LIBS
15045 ac_cv_search_shm_open=no
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h.  */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h.  */
15052
15053 /* Override any gcc2 internal prototype to avoid an error.  */
15054 #ifdef __cplusplus
15055 extern "C"
15056 #endif
15057 /* We use char because int might match the return type of a gcc2
15058    builtin and then its argument prototype would still apply.  */
15059 char shm_open ();
15060 int
15061 main ()
15062 {
15063 shm_open ();
15064   ;
15065   return 0;
15066 }
15067 _ACEOF
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15070   (eval $ac_link) 2>conftest.er1
15071   ac_status=$?
15072   grep -v '^ *+' conftest.er1 >conftest.err
15073   rm -f conftest.er1
15074   cat conftest.err >&5
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } &&
15077          { ac_try='test -z "$ac_c_werror_flag"
15078                          || test ! -s conftest.err'
15079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080   (eval $ac_try) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; } &&
15084          { ac_try='test -s conftest$ac_exeext'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; }; then
15090   ac_cv_search_shm_open="none required"
15091 else
15092   echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15094
15095 fi
15096 rm -f conftest.err conftest.$ac_objext \
15097       conftest$ac_exeext conftest.$ac_ext
15098 if test "$ac_cv_search_shm_open" = no; then
15099   for ac_lib in rt; do
15100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15101     cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107
15108 /* Override any gcc2 internal prototype to avoid an error.  */
15109 #ifdef __cplusplus
15110 extern "C"
15111 #endif
15112 /* We use char because int might match the return type of a gcc2
15113    builtin and then its argument prototype would still apply.  */
15114 char shm_open ();
15115 int
15116 main ()
15117 {
15118 shm_open ();
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125   (eval $ac_link) 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } &&
15132          { ac_try='test -z "$ac_c_werror_flag"
15133                          || test ! -s conftest.err'
15134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135   (eval $ac_try) 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); }; } &&
15139          { ac_try='test -s conftest$ac_exeext'
15140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141   (eval $ac_try) 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   ac_cv_search_shm_open="-l$ac_lib"
15146 break
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 fi
15152 rm -f conftest.err conftest.$ac_objext \
15153       conftest$ac_exeext conftest.$ac_ext
15154   done
15155 fi
15156 LIBS=$ac_func_search_save_LIBS
15157 fi
15158 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15159 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15160 if test "$ac_cv_search_shm_open" != no; then
15161   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15162
15163 fi
15164
15165
15166 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15167 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15168 if test "${ac_cv_lib_util_openpty+set}" = set; then
15169   echo $ECHO_N "(cached) $ECHO_C" >&6
15170 else
15171   ac_check_lib_save_LIBS=$LIBS
15172 LIBS="-lutil  $LIBS"
15173 cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179
15180 /* Override any gcc2 internal prototype to avoid an error.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 /* We use char because int might match the return type of a gcc2
15185    builtin and then its argument prototype would still apply.  */
15186 char openpty ();
15187 int
15188 main ()
15189 {
15190 openpty ();
15191   ;
15192   return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197   (eval $ac_link) 2>conftest.er1
15198   ac_status=$?
15199   grep -v '^ *+' conftest.er1 >conftest.err
15200   rm -f conftest.er1
15201   cat conftest.err >&5
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); } &&
15204          { ac_try='test -z "$ac_c_werror_flag"
15205                          || test ! -s conftest.err'
15206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207   (eval $ac_try) 2>&5
15208   ac_status=$?
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); }; } &&
15211          { ac_try='test -s conftest$ac_exeext'
15212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213   (eval $ac_try) 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); }; }; then
15217   ac_cv_lib_util_openpty=yes
15218 else
15219   echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15221
15222 ac_cv_lib_util_openpty=no
15223 fi
15224 rm -f conftest.err conftest.$ac_objext \
15225       conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15227 fi
15228 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15229 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15230 if test $ac_cv_lib_util_openpty = yes; then
15231   cat >>confdefs.h <<_ACEOF
15232 #define HAVE_LIBUTIL 1
15233 _ACEOF
15234
15235   LIBS="-lutil $LIBS"
15236
15237 fi
15238
15239      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15240      LIBS="$saved_LIBS"
15241   else
15242      echo "$as_me:$LINENO: result: no" >&5
15243 echo "${ECHO_T}no" >&6
15244   fi
15245
15246 else
15247
15248   echo "$as_me:$LINENO: result: no" >&5
15249 echo "${ECHO_T}no" >&6
15250
15251 fi;
15252
15253
15254
15255
15256 #
15257 # Find where sockets are (especially for Solaris)
15258 # Do this before the TCP Wrappers test since tcp wrappers
15259 # uses the socket library and some linkers are stupid.
15260 #
15261 echo "$as_me:$LINENO: checking for socket" >&5
15262 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15263 if test "${ac_cv_func_socket+set}" = set; then
15264   echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266   cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h.  */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h.  */
15272 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15274 #define socket innocuous_socket
15275
15276 /* System header to define __stub macros and hopefully few prototypes,
15277     which can conflict with char socket (); below.
15278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15279     <limits.h> exists even on freestanding compilers.  */
15280
15281 #ifdef __STDC__
15282 # include <limits.h>
15283 #else
15284 # include <assert.h>
15285 #endif
15286
15287 #undef socket
15288
15289 /* Override any gcc2 internal prototype to avoid an error.  */
15290 #ifdef __cplusplus
15291 extern "C"
15292 {
15293 #endif
15294 /* We use char because int might match the return type of a gcc2
15295    builtin and then its argument prototype would still apply.  */
15296 char socket ();
15297 /* The GNU C library defines this for functions which it implements
15298     to always fail with ENOSYS.  Some functions are actually named
15299     something starting with __ and the normal name is an alias.  */
15300 #if defined (__stub_socket) || defined (__stub___socket)
15301 choke me
15302 #else
15303 char (*f) () = socket;
15304 #endif
15305 #ifdef __cplusplus
15306 }
15307 #endif
15308
15309 int
15310 main ()
15311 {
15312 return f != socket;
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319   (eval $ac_link) 2>conftest.er1
15320   ac_status=$?
15321   grep -v '^ *+' conftest.er1 >conftest.err
15322   rm -f conftest.er1
15323   cat conftest.err >&5
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); } &&
15326          { ac_try='test -z "$ac_c_werror_flag"
15327                          || test ! -s conftest.err'
15328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329   (eval $ac_try) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; } &&
15333          { ac_try='test -s conftest$ac_exeext'
15334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335   (eval $ac_try) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   ac_cv_func_socket=yes
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 ac_cv_func_socket=no
15345 fi
15346 rm -f conftest.err conftest.$ac_objext \
15347       conftest$ac_exeext conftest.$ac_ext
15348 fi
15349 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15350 echo "${ECHO_T}$ac_cv_func_socket" >&6
15351 if test $ac_cv_func_socket = yes; then
15352   echo "$as_me:$LINENO: result: using libc's socket" >&5
15353 echo "${ECHO_T}using libc's socket" >&6
15354 else
15355
15356 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15357 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15358 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15359   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361   ac_check_lib_save_LIBS=$LIBS
15362 LIBS="-lxnet  $LIBS"
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h.  */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h.  */
15369
15370 /* Override any gcc2 internal prototype to avoid an error.  */
15371 #ifdef __cplusplus
15372 extern "C"
15373 #endif
15374 /* We use char because int might match the return type of a gcc2
15375    builtin and then its argument prototype would still apply.  */
15376 char socket ();
15377 int
15378 main ()
15379 {
15380 socket ();
15381   ;
15382   return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15387   (eval $ac_link) 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_c_werror_flag"
15395                          || test ! -s conftest.err'
15396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397   (eval $ac_try) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; } &&
15401          { ac_try='test -s conftest$ac_exeext'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407   ac_cv_lib_xnet_socket=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_cv_lib_xnet_socket=no
15413 fi
15414 rm -f conftest.err conftest.$ac_objext \
15415       conftest$ac_exeext conftest.$ac_ext
15416 LIBS=$ac_check_lib_save_LIBS
15417 fi
15418 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15419 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15420 if test $ac_cv_lib_xnet_socket = yes; then
15421   cat >>confdefs.h <<_ACEOF
15422 #define HAVE_LIBXNET 1
15423 _ACEOF
15424
15425   LIBS="-lxnet $LIBS"
15426
15427 fi
15428
15429
15430 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15431 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15432 if test "${ac_cv_lib_socket_socket+set}" = set; then
15433   echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435   ac_check_lib_save_LIBS=$LIBS
15436 LIBS="-lsocket  $LIBS"
15437 cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h.  */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h.  */
15443
15444 /* Override any gcc2 internal prototype to avoid an error.  */
15445 #ifdef __cplusplus
15446 extern "C"
15447 #endif
15448 /* We use char because int might match the return type of a gcc2
15449    builtin and then its argument prototype would still apply.  */
15450 char socket ();
15451 int
15452 main ()
15453 {
15454 socket ();
15455   ;
15456   return 0;
15457 }
15458 _ACEOF
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15461   (eval $ac_link) 2>conftest.er1
15462   ac_status=$?
15463   grep -v '^ *+' conftest.er1 >conftest.err
15464   rm -f conftest.er1
15465   cat conftest.err >&5
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -z "$ac_c_werror_flag"
15469                          || test ! -s conftest.err'
15470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471   (eval $ac_try) 2>&5
15472   ac_status=$?
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); }; } &&
15475          { ac_try='test -s conftest$ac_exeext'
15476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477   (eval $ac_try) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; }; then
15481   ac_cv_lib_socket_socket=yes
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 ac_cv_lib_socket_socket=no
15487 fi
15488 rm -f conftest.err conftest.$ac_objext \
15489       conftest$ac_exeext conftest.$ac_ext
15490 LIBS=$ac_check_lib_save_LIBS
15491 fi
15492 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15493 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15494 if test $ac_cv_lib_socket_socket = yes; then
15495   cat >>confdefs.h <<_ACEOF
15496 #define HAVE_LIBSOCKET 1
15497 _ACEOF
15498
15499   LIBS="-lsocket $LIBS"
15500
15501 fi
15502
15503
15504 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15505 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15506 if test "${ac_cv_lib_inet_socket+set}" = set; then
15507   echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509   ac_check_lib_save_LIBS=$LIBS
15510 LIBS="-linet  $LIBS"
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h.  */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h.  */
15517
15518 /* Override any gcc2 internal prototype to avoid an error.  */
15519 #ifdef __cplusplus
15520 extern "C"
15521 #endif
15522 /* We use char because int might match the return type of a gcc2
15523    builtin and then its argument prototype would still apply.  */
15524 char socket ();
15525 int
15526 main ()
15527 {
15528 socket ();
15529   ;
15530   return 0;
15531 }
15532 _ACEOF
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535   (eval $ac_link) 2>conftest.er1
15536   ac_status=$?
15537   grep -v '^ *+' conftest.er1 >conftest.err
15538   rm -f conftest.er1
15539   cat conftest.err >&5
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } &&
15542          { ac_try='test -z "$ac_c_werror_flag"
15543                          || test ! -s conftest.err'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; } &&
15549          { ac_try='test -s conftest$ac_exeext'
15550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551   (eval $ac_try) 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; }; then
15555   ac_cv_lib_inet_socket=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560 ac_cv_lib_inet_socket=no
15561 fi
15562 rm -f conftest.err conftest.$ac_objext \
15563       conftest$ac_exeext conftest.$ac_ext
15564 LIBS=$ac_check_lib_save_LIBS
15565 fi
15566 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15567 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15568 if test $ac_cv_lib_inet_socket = yes; then
15569   cat >>confdefs.h <<_ACEOF
15570 #define HAVE_LIBINET 1
15571 _ACEOF
15572
15573   LIBS="-linet $LIBS"
15574
15575 fi
15576
15577 fi
15578
15579
15580
15581 # -----------------------------------------------------------
15582 # Check whether user wants TCP wrappers support (default off)
15583 # -----------------------------------------------------------
15584 TCPW_MSG="no"
15585 WRAPLIBS=""
15586
15587 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15588 if test "${with_tcp_wrappers+set}" = set; then
15589   withval="$with_tcp_wrappers"
15590
15591     if test "x$withval" != "xno" ; then
15592        saved_LIBS="$LIBS"
15593        LIBS="$saved_LIBS -lwrap"
15594        echo "$as_me:$LINENO: checking for libwrap" >&5
15595 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15596        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15597 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15598 if test "${ac_cv_search_nanosleep+set}" = set; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   ac_func_search_save_LIBS=$LIBS
15602 ac_cv_search_nanosleep=no
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h.  */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h.  */
15609
15610 /* Override any gcc2 internal prototype to avoid an error.  */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 /* We use char because int might match the return type of a gcc2
15615    builtin and then its argument prototype would still apply.  */
15616 char nanosleep ();
15617 int
15618 main ()
15619 {
15620 nanosleep ();
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627   (eval $ac_link) 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag"
15635                          || test ! -s conftest.err'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; } &&
15641          { ac_try='test -s conftest$ac_exeext'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   ac_cv_search_nanosleep="none required"
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 fi
15653 rm -f conftest.err conftest.$ac_objext \
15654       conftest$ac_exeext conftest.$ac_ext
15655 if test "$ac_cv_search_nanosleep" = no; then
15656   for ac_lib in rt; do
15657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15658     cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h.  */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h.  */
15664
15665 /* Override any gcc2 internal prototype to avoid an error.  */
15666 #ifdef __cplusplus
15667 extern "C"
15668 #endif
15669 /* We use char because int might match the return type of a gcc2
15670    builtin and then its argument prototype would still apply.  */
15671 char nanosleep ();
15672 int
15673 main ()
15674 {
15675 nanosleep ();
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682   (eval $ac_link) 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } &&
15689          { ac_try='test -z "$ac_c_werror_flag"
15690                          || test ! -s conftest.err'
15691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692   (eval $ac_try) 2>&5
15693   ac_status=$?
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); }; } &&
15696          { ac_try='test -s conftest$ac_exeext'
15697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698   (eval $ac_try) 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702   ac_cv_search_nanosleep="-l$ac_lib"
15703 break
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708 fi
15709 rm -f conftest.err conftest.$ac_objext \
15710       conftest$ac_exeext conftest.$ac_ext
15711   done
15712 fi
15713 LIBS=$ac_func_search_save_LIBS
15714 fi
15715 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15716 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15717 if test "$ac_cv_search_nanosleep" != no; then
15718   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15719
15720 fi
15721
15722        cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728  #include <sys/types.h>
15729             #include <tcpd.h>
15730              int deny_severity = 0;
15731              int allow_severity = 0;
15732              struct request_info *req;
15733 int
15734 main ()
15735 {
15736  hosts_access(req);
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15743   (eval $ac_link) 2>conftest.er1
15744   ac_status=$?
15745   grep -v '^ *+' conftest.er1 >conftest.err
15746   rm -f conftest.er1
15747   cat conftest.err >&5
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); } &&
15750          { ac_try='test -z "$ac_c_werror_flag"
15751                          || test ! -s conftest.err'
15752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753   (eval $ac_try) 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; } &&
15757          { ac_try='test -s conftest$ac_exeext'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763
15764             echo "$as_me:$LINENO: result: yes" >&5
15765 echo "${ECHO_T}yes" >&6
15766             cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_LIBWRAP 1
15768 _ACEOF
15769
15770             TCPW_MSG="yes"
15771             LIBS="$saved_LIBS"
15772             WRAPLIBS="-lwrap"
15773
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778
15779             LIBS="$saved_LIBS -lwrap -lnsl"
15780             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15781             cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787  #include <sys/types.h>
15788                  #include <tcpd.h>
15789                  int deny_severity = 0;
15790                  int allow_severity = 0;
15791                  struct request_info *req;
15792 int
15793 main ()
15794 {
15795  hosts_access(req);
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802   (eval $ac_link) 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } &&
15809          { ac_try='test -z "$ac_c_werror_flag"
15810                          || test ! -s conftest.err'
15811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812   (eval $ac_try) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }; } &&
15816          { ac_try='test -s conftest$ac_exeext'
15817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818   (eval $ac_try) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; }; then
15822
15823                  echo "$as_me:$LINENO: result: yes" >&5
15824 echo "${ECHO_T}yes" >&6
15825                  cat >>confdefs.h <<\_ACEOF
15826 #define HAVE_LIBWRAP 1
15827 _ACEOF
15828
15829                  TCPW_MSG="yes"
15830                  LIBS="$saved_LIBS"
15831                  WRAPLIBS="-lwrap"
15832
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15838 echo "$as_me: error: *** libwrap missing" >&2;}
15839    { (exit 1); exit 1; }; }
15840
15841 fi
15842 rm -f conftest.err conftest.$ac_objext \
15843       conftest$ac_exeext conftest.$ac_ext
15844
15845 fi
15846 rm -f conftest.err conftest.$ac_objext \
15847       conftest$ac_exeext conftest.$ac_ext
15848     fi
15849
15850
15851 fi;
15852
15853 # -----------------------------------------------------------
15854 # Check whether OpenSSL is available
15855 # -----------------------------------------------------------
15856 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15857 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15858
15859 # Check whether --with-openssl or --without-openssl was given.
15860 if test "${with_openssl+set}" = set; then
15861   withval="$with_openssl"
15862   with_openssl_directory=${withval}
15863 fi;
15864
15865 if test "x$with_openssl_directory" != "x"; then
15866         OPENSSL_LIBS="-lssl -lcrypto"
15867         OPENSSL_INC=""
15868
15869         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15870                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15871                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15872         fi
15873
15874         saved_LIBS="$LIBS"
15875         saved_CFLAGS="$CFLAGS"
15876         LIBS="$saved_LIBS $OPENSSL_LIBS"
15877         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15878
15879         cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885  #include <openssl/ssl.h>
15886 int
15887 main ()
15888 {
15889  CRYPTO_set_id_callback(NULL);
15890   ;
15891   return 0;
15892 }
15893 _ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15896   (eval $ac_link) 2>conftest.er1
15897   ac_status=$?
15898   grep -v '^ *+' conftest.er1 >conftest.err
15899   rm -f conftest.er1
15900   cat conftest.err >&5
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); } &&
15903          { ac_try='test -z "$ac_c_werror_flag"
15904                          || test ! -s conftest.err'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; } &&
15910          { ac_try='test -s conftest$ac_exeext'
15911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912   (eval $ac_try) 2>&5
15913   ac_status=$?
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); }; }; then
15916
15917                         support_tls="yes"
15918                         support_crypto="yes"
15919
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924  support_tls="no"
15925
15926 fi
15927 rm -f conftest.err conftest.$ac_objext \
15928       conftest$ac_exeext conftest.$ac_ext
15929
15930         cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936  #include <openssl/evp.h>
15937 int
15938 main ()
15939 {
15940  EVP_sha512();
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947   (eval $ac_link) 2>conftest.er1
15948   ac_status=$?
15949   grep -v '^ *+' conftest.er1 >conftest.err
15950   rm -f conftest.er1
15951   cat conftest.err >&5
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); } &&
15954          { ac_try='test -z "$ac_c_werror_flag"
15955                          || test ! -s conftest.err'
15956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957   (eval $ac_try) 2>&5
15958   ac_status=$?
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); }; } &&
15961          { ac_try='test -s conftest$ac_exeext'
15962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963   (eval $ac_try) 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); }; }; then
15967    ac_cv_openssl_sha2="yes"
15968 else
15969   echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15971
15972  ac_cv_openssl_sha2="no"
15973
15974 fi
15975 rm -f conftest.err conftest.$ac_objext \
15976       conftest$ac_exeext conftest.$ac_ext
15977
15978         LIBS="$saved_LIBS"
15979         CFLAGS="$saved_CFLAGS"
15980
15981         if test "$support_tls" = "yes"; then
15982
15983 cat >>confdefs.h <<\_ACEOF
15984 #define HAVE_OPENSSL 1
15985 _ACEOF
15986
15987
15988 cat >>confdefs.h <<\_ACEOF
15989 #define HAVE_TLS 1
15990 _ACEOF
15991
15992
15993 cat >>confdefs.h <<\_ACEOF
15994 #define HAVE_CRYPTO 1
15995 _ACEOF
15996
15997         fi
15998
15999         if test "$ac_cv_openssl_sha2" = "yes"; then
16000
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_SHA2 1
16003 _ACEOF
16004
16005         fi
16006 else
16007         support_tls="no"
16008         support_crypto="no"
16009         OPENSSL_LIBS=""
16010         OPENSSL_INC=""
16011 fi
16012
16013 echo "$as_me:$LINENO: result: $support_tls" >&5
16014 echo "${ECHO_T}$support_tls" >&6
16015
16016
16017
16018
16019 # -----------------------------------------------------------
16020 # Python and OpenSSL are using dlopen
16021 # -----------------------------------------------------------
16022
16023 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16024    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16025 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16026 if test "${ac_cv_search_dlopen+set}" = set; then
16027   echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029   ac_func_search_save_LIBS=$LIBS
16030 ac_cv_search_dlopen=no
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037
16038 /* Override any gcc2 internal prototype to avoid an error.  */
16039 #ifdef __cplusplus
16040 extern "C"
16041 #endif
16042 /* We use char because int might match the return type of a gcc2
16043    builtin and then its argument prototype would still apply.  */
16044 char dlopen ();
16045 int
16046 main ()
16047 {
16048 dlopen ();
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055   (eval $ac_link) 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } &&
16062          { ac_try='test -z "$ac_c_werror_flag"
16063                          || test ! -s conftest.err'
16064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065   (eval $ac_try) 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest$ac_exeext'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; }; then
16075   ac_cv_search_dlopen="none required"
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080 fi
16081 rm -f conftest.err conftest.$ac_objext \
16082       conftest$ac_exeext conftest.$ac_ext
16083 if test "$ac_cv_search_dlopen" = no; then
16084   for ac_lib in dl; do
16085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16086     cat >conftest.$ac_ext <<_ACEOF
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092
16093 /* Override any gcc2 internal prototype to avoid an error.  */
16094 #ifdef __cplusplus
16095 extern "C"
16096 #endif
16097 /* We use char because int might match the return type of a gcc2
16098    builtin and then its argument prototype would still apply.  */
16099 char dlopen ();
16100 int
16101 main ()
16102 {
16103 dlopen ();
16104   ;
16105   return 0;
16106 }
16107 _ACEOF
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16110   (eval $ac_link) 2>conftest.er1
16111   ac_status=$?
16112   grep -v '^ *+' conftest.er1 >conftest.err
16113   rm -f conftest.er1
16114   cat conftest.err >&5
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } &&
16117          { ac_try='test -z "$ac_c_werror_flag"
16118                          || test ! -s conftest.err'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; } &&
16124          { ac_try='test -s conftest$ac_exeext'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; }; then
16130   ac_cv_search_dlopen="-l$ac_lib"
16131 break
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136 fi
16137 rm -f conftest.err conftest.$ac_objext \
16138       conftest$ac_exeext conftest.$ac_ext
16139   done
16140 fi
16141 LIBS=$ac_func_search_save_LIBS
16142 fi
16143 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16144 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16145 if test "$ac_cv_search_dlopen" != no; then
16146   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16147
16148 fi
16149
16150 fi
16151
16152 # ------------------------------------------
16153 # Where to place working dir
16154 # ------------------------------------------
16155 working_dir=`eval echo ${prefix}/var/bacula/working`
16156
16157 # Check whether --with-working-dir or --without-working-dir was given.
16158 if test "${with_working_dir+set}" = set; then
16159   withval="$with_working_dir"
16160
16161        if test "x$withval" != "xno" ; then
16162               working_dir=$withval
16163        fi
16164
16165
16166 fi;
16167
16168
16169
16170
16171 # ------------------------------------------
16172 # Where to place scriptdir (script files)
16173 # ------------------------------------------
16174 scriptdir=`eval echo ${sysconfdir}`
16175
16176 # Check whether --with-scriptdir or --without-scriptdir was given.
16177 if test "${with_scriptdir+set}" = set; then
16178   withval="$with_scriptdir"
16179
16180        if test "x$withval" != "xno" ; then
16181               scriptdir=$withval
16182        fi
16183
16184
16185 fi;
16186
16187
16188
16189
16190 # ------------------------------------------
16191 # Where to send dump email
16192 # ------------------------------------------
16193 dump_email=root@localhost
16194
16195 # Check whether --with-dump-email or --without-dump-email was given.
16196 if test "${with_dump_email+set}" = set; then
16197   withval="$with_dump_email"
16198
16199        if test "x$withval" != "xno" ; then
16200               dump_email=$withval
16201        fi
16202
16203
16204 fi;
16205
16206
16207
16208 # ------------------------------------------
16209 # Where to send job email
16210 # ------------------------------------------
16211 job_email=root@localhost
16212
16213 # Check whether --with-job-email or --without-job-email was given.
16214 if test "${with_job_email+set}" = set; then
16215   withval="$with_job_email"
16216
16217        if test "x$withval" != "xno" ; then
16218               job_email=$withval
16219        fi
16220
16221
16222 fi;
16223
16224
16225
16226 # ------------------------------------------
16227 # Where to find smtp host
16228 # ------------------------------------------
16229 smtp_host=localhost
16230
16231 # Check whether --with-smtp_host or --without-smtp_host was given.
16232 if test "${with_smtp_host+set}" = set; then
16233   withval="$with_smtp_host"
16234
16235        if test "x$withval" != "xno" ; then
16236               smtp_host=$withval
16237        fi
16238
16239
16240 fi;
16241
16242
16243
16244
16245 # ------------------------------------
16246 # Where to place pid files
16247 # ------------------------------------
16248 piddir=/var/run
16249
16250 # Check whether --with-pid-dir or --without-pid-dir was given.
16251 if test "${with_pid_dir+set}" = set; then
16252   withval="$with_pid_dir"
16253
16254         if test "x$withval" != "xno" ; then
16255             piddir=$withval
16256         fi
16257
16258
16259 fi;
16260
16261 cat >>confdefs.h <<_ACEOF
16262 #define _PATH_BACULA_PIDDIR "$piddir"
16263 _ACEOF
16264
16265
16266
16267
16268 # ------------------------------------
16269 # Where to place subsys "lock file"
16270 # ------------------------------------
16271 subsysdir=/var/run/subsys
16272
16273 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16274 if test "${with_subsys_dir+set}" = set; then
16275   withval="$with_subsys_dir"
16276
16277         if test "x$withval" != "xno" ; then
16278             subsysdir=$withval
16279         fi
16280
16281
16282 fi;
16283
16284
16285
16286
16287
16288 # ------------------------------------
16289 # Where to start assigning ports
16290 # ------------------------------------
16291 baseport=9101
16292
16293 # Check whether --with-baseport or --without-baseport was given.
16294 if test "${with_baseport+set}" = set; then
16295   withval="$with_baseport"
16296
16297         if test "x$withval" != "xno" ; then
16298              baseport=$withval
16299         fi
16300
16301
16302 fi;
16303
16304
16305 dir_port=`expr $baseport`
16306 fd_port=`expr $baseport + 1`
16307 sd_port=`expr $fd_port + 1`
16308
16309
16310
16311
16312
16313
16314 # ------------------------------------------
16315 # Generate passwords
16316 # ------------------------------------------
16317 dir_password=
16318
16319 # Check whether --with-dir-password or --without-dir-password was given.
16320 if test "${with_dir_password+set}" = set; then
16321   withval="$with_dir_password"
16322
16323        if test "x$withval" != "xno" ; then
16324            dir_password=$withval
16325        fi
16326
16327
16328 fi;
16329
16330 if test "x$dir_password" = "x" ; then
16331    if test "x$OPENSSL" = "xnone" ; then
16332       key=`autoconf/randpass 33`
16333    else
16334       key=`openssl rand -base64 33`
16335    fi
16336    dir_password=$key
16337 fi
16338
16339 fd_password=
16340
16341 # Check whether --with-fd-password or --without-fd-password was given.
16342 if test "${with_fd_password+set}" = set; then
16343   withval="$with_fd_password"
16344
16345        if test "x$withval" != "xno" ; then
16346            fd_password=$withval
16347        fi
16348
16349
16350 fi;
16351
16352 if test "x$fd_password" = "x" ; then
16353    if test "x$OPENSSL" = "xnone" ; then
16354       key=`autoconf/randpass 37`
16355    else
16356       key=`openssl rand -base64 33`
16357    fi
16358    fd_password=$key
16359 fi
16360
16361 sd_password=
16362
16363 # Check whether --with-sd-password or --without-sd-password was given.
16364 if test "${with_sd_password+set}" = set; then
16365   withval="$with_sd_password"
16366
16367        if test "x$withval" != "xno" ; then
16368            sd_password=$withval
16369        fi
16370
16371
16372 fi;
16373
16374 if test "x$sd_password" = "x" ; then
16375    if test "x$OPENSSL" = "xnone" ; then
16376       key=`autoconf/randpass 41`
16377    else
16378       key=`openssl rand -base64 33`
16379    fi
16380    sd_password=$key
16381 fi
16382
16383 mon_dir_password=
16384
16385 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16386 if test "${with_mon_dir_password+set}" = set; then
16387   withval="$with_mon_dir_password"
16388
16389        if test "x$withval" != "xno" ; then
16390            mon_dir_password=$withval
16391        fi
16392
16393
16394 fi;
16395
16396 if test "x$mon_dir_password" = "x" ; then
16397    if test "x$OPENSSL" = "xnone" ; then
16398       key=`autoconf/randpass 33`
16399    else
16400       key=`openssl rand -base64 33`
16401    fi
16402    mon_dir_password=$key
16403 fi
16404
16405 mon_fd_password=
16406
16407 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16408 if test "${with_mon_fd_password+set}" = set; then
16409   withval="$with_mon_fd_password"
16410
16411        if test "x$withval" != "xno" ; then
16412            mon_fd_password=$withval
16413        fi
16414
16415
16416 fi;
16417
16418 if test "x$mon_fd_password" = "x" ; then
16419    if test "x$OPENSSL" = "xnone" ; then
16420       key=`autoconf/randpass 37`
16421    else
16422       key=`openssl rand -base64 33`
16423    fi
16424    mon_fd_password=$key
16425 fi
16426
16427 mon_sd_password=
16428
16429 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16430 if test "${with_mon_sd_password+set}" = set; then
16431   withval="$with_mon_sd_password"
16432
16433        if test "x$withval" != "xno" ; then
16434            mon_sd_password=$withval
16435        fi
16436
16437
16438 fi;
16439
16440 if test "x$mon_sd_password" = "x" ; then
16441    if test "x$OPENSSL" = "xnone" ; then
16442       key=`autoconf/randpass 41`
16443    else
16444       key=`openssl rand -base64 33`
16445    fi
16446    mon_sd_password=$key
16447 fi
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457 #
16458 # Handle users and groups for each daemon
16459 #
16460 dir_user=
16461
16462 # Check whether --with-dir_user or --without-dir_user was given.
16463 if test "${with_dir_user+set}" = set; then
16464   withval="$with_dir_user"
16465
16466         if test "x$withval" != "x" ; then
16467              dir_user=$withval
16468         fi
16469
16470
16471 fi;
16472
16473 dir_group=
16474
16475 # Check whether --with-dir_group or --without-dir_group was given.
16476 if test "${with_dir_group+set}" = set; then
16477   withval="$with_dir_group"
16478
16479         if test "x$withval" != "x" ; then
16480              dir_group=$withval
16481         fi
16482
16483
16484 fi;
16485
16486 sd_user=
16487
16488 # Check whether --with-sd_user or --without-sd_user was given.
16489 if test "${with_sd_user+set}" = set; then
16490   withval="$with_sd_user"
16491
16492         if test "x$withval" != "x" ; then
16493              sd_user=$withval
16494         fi
16495
16496
16497 fi;
16498
16499 sd_group=
16500
16501 # Check whether --with-sd_group or --without-sd_group was given.
16502 if test "${with_sd_group+set}" = set; then
16503   withval="$with_sd_group"
16504
16505         if test "x$withval" != "x" ; then
16506              sd_group=$withval
16507         fi
16508
16509
16510 fi;
16511
16512 fd_user=
16513
16514 # Check whether --with-fd_user or --without-fd_user was given.
16515 if test "${with_fd_user+set}" = set; then
16516   withval="$with_fd_user"
16517
16518         if test "x$withval" != "x" ; then
16519              fd_user=$withval
16520         fi
16521
16522
16523 fi;
16524
16525 fd_group=
16526
16527 # Check whether --with-fd_group or --without-fd_group was given.
16528 if test "${with_fd_group+set}" = set; then
16529   withval="$with_fd_group"
16530
16531         if test "x$withval" != "x" ; then
16532              fd_group=$withval
16533         fi
16534
16535
16536 fi;
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548 #
16549 # allow setting default executable permissions
16550 #
16551 SBINPERM=0754
16552
16553 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16554 if test "${with_sbin_perm+set}" = set; then
16555   withval="$with_sbin_perm"
16556
16557         if test "x$withval" != "x" ; then
16558             SBINPERM=$withval
16559         fi
16560
16561
16562 fi;
16563
16564
16565
16566 # ------------------------------------------------
16567 # Bacula check for various SQL database engines
16568 # ------------------------------------------------
16569
16570 db_found=no
16571 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16572 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16573
16574 # Check whether --with-postgresql or --without-postgresql was given.
16575 if test "${with_postgresql+set}" = set; then
16576   withval="$with_postgresql"
16577
16578   if test "$withval" != "no"; then
16579       if test "$db_found" = "yes"; then
16580           echo "$as_me:$LINENO: result: error" >&5
16581 echo "${ECHO_T}error" >&6
16582           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16583 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16584    { (exit 1); exit 1; }; };
16585       fi
16586       if test "$withval" = "yes"; then
16587           PG_CONFIG=`which pg_config`
16588           if test -n "$PG_CONFIG";then
16589               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16590               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16591               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16592           elif test -f /usr/local/include/libpq-fe.h; then
16593               POSTGRESQL_INCDIR=/usr/local/include
16594               if test -d /usr/local/lib64; then
16595                  POSTGRESQL_LIBDIR=/usr/local/lib64
16596               else
16597                  POSTGRESQL_LIBDIR=/usr/local/lib
16598               fi
16599               POSTGRESQL_BINDIR=/usr/local/bin
16600           elif test -f /usr/include/libpq-fe.h; then
16601               POSTGRESQL_INCDIR=/usr/include
16602               if test -d /usr/lib64; then
16603                  POSTGRESQL_LIBDIR=/usr/lib64
16604               else
16605                  POSTGRESQL_LIBDIR=/usr/lib
16606               fi
16607               POSTGRESQL_BINDIR=/usr/bin
16608           elif test -f /usr/include/pgsql/libpq-fe.h; then
16609               POSTGRESQL_INCDIR=/usr/include/pgsql
16610               if test -d /usr/lib64/pgsql; then
16611                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16612               else
16613                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16614               fi
16615               POSTGRESQL_BINDIR=/usr/bin
16616           elif test -f /usr/include/postgresql/libpq-fe.h; then
16617               POSTGRESQL_INCDIR=/usr/include/postgresql
16618               if test -d /usr/lib64/postgresql; then
16619                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16620               else
16621                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16622               fi
16623               POSTGRESQL_BINDIR=/usr/bin
16624           else
16625               echo "$as_me:$LINENO: result: no" >&5
16626 echo "${ECHO_T}no" >&6
16627               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16628 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16629    { (exit 1); exit 1; }; }
16630           fi
16631       elif test -f $withval/include/libpq-fe.h; then
16632           POSTGRESQL_INCDIR=$withval/include
16633           POSTGRESQL_LIBDIR=$withval/lib
16634           POSTGRESQL_BINDIR=$withval/bin
16635       elif test -f $withval/include/postgresql/libpq-fe.h; then
16636           POSTGRESQL_INCDIR=$withval/include/postgresql
16637      if test -d $withval/lib64; then
16638          POSTGRESQL_LIBDIR=$withval/lib64
16639      else
16640          POSTGRESQL_LIBDIR=$withval/lib
16641      fi
16642           POSTGRESQL_BINDIR=$withval/bin
16643       else
16644           echo "$as_me:$LINENO: result: no" >&5
16645 echo "${ECHO_T}no" >&6
16646           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16647 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16648    { (exit 1); exit 1; }; }
16649       fi
16650       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16651       echo "$as_me:$LINENO: checking for crypt" >&5
16652 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16653 if test "${ac_cv_func_crypt+set}" = set; then
16654   echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656   cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h.  */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h.  */
16662 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16664 #define crypt innocuous_crypt
16665
16666 /* System header to define __stub macros and hopefully few prototypes,
16667     which can conflict with char crypt (); below.
16668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669     <limits.h> exists even on freestanding compilers.  */
16670
16671 #ifdef __STDC__
16672 # include <limits.h>
16673 #else
16674 # include <assert.h>
16675 #endif
16676
16677 #undef crypt
16678
16679 /* Override any gcc2 internal prototype to avoid an error.  */
16680 #ifdef __cplusplus
16681 extern "C"
16682 {
16683 #endif
16684 /* We use char because int might match the return type of a gcc2
16685    builtin and then its argument prototype would still apply.  */
16686 char crypt ();
16687 /* The GNU C library defines this for functions which it implements
16688     to always fail with ENOSYS.  Some functions are actually named
16689     something starting with __ and the normal name is an alias.  */
16690 #if defined (__stub_crypt) || defined (__stub___crypt)
16691 choke me
16692 #else
16693 char (*f) () = crypt;
16694 #endif
16695 #ifdef __cplusplus
16696 }
16697 #endif
16698
16699 int
16700 main ()
16701 {
16702 return f != crypt;
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709   (eval $ac_link) 2>conftest.er1
16710   ac_status=$?
16711   grep -v '^ *+' conftest.er1 >conftest.err
16712   rm -f conftest.er1
16713   cat conftest.err >&5
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); } &&
16716          { ac_try='test -z "$ac_c_werror_flag"
16717                          || test ! -s conftest.err'
16718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719   (eval $ac_try) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; } &&
16723          { ac_try='test -s conftest$ac_exeext'
16724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725   (eval $ac_try) 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   ac_cv_func_crypt=yes
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 ac_cv_func_crypt=no
16735 fi
16736 rm -f conftest.err conftest.$ac_objext \
16737       conftest$ac_exeext conftest.$ac_ext
16738 fi
16739 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16740 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16741 if test $ac_cv_func_crypt = yes; then
16742   :
16743 else
16744   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16745 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16746 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16747   echo $ECHO_N "(cached) $ECHO_C" >&6
16748 else
16749   ac_check_lib_save_LIBS=$LIBS
16750 LIBS="-lcrypt  $LIBS"
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h.  */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h.  */
16757
16758 /* Override any gcc2 internal prototype to avoid an error.  */
16759 #ifdef __cplusplus
16760 extern "C"
16761 #endif
16762 /* We use char because int might match the return type of a gcc2
16763    builtin and then its argument prototype would still apply.  */
16764 char crypt ();
16765 int
16766 main ()
16767 {
16768 crypt ();
16769   ;
16770   return 0;
16771 }
16772 _ACEOF
16773 rm -f conftest.$ac_objext conftest$ac_exeext
16774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775   (eval $ac_link) 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } &&
16782          { ac_try='test -z "$ac_c_werror_flag"
16783                          || test ! -s conftest.err'
16784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785   (eval $ac_try) 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; } &&
16789          { ac_try='test -s conftest$ac_exeext'
16790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791   (eval $ac_try) 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; }; then
16795   ac_cv_lib_crypt_crypt=yes
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800 ac_cv_lib_crypt_crypt=no
16801 fi
16802 rm -f conftest.err conftest.$ac_objext \
16803       conftest$ac_exeext conftest.$ac_ext
16804 LIBS=$ac_check_lib_save_LIBS
16805 fi
16806 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16807 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16808 if test $ac_cv_lib_crypt_crypt = yes; then
16809   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16810 fi
16811
16812 fi
16813
16814       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16815       SQL_LFLAGS=$POSTGRESQL_LFLAGS
16816       SQL_BINDIR=$POSTGRESQL_BINDIR
16817       cat >>confdefs.h <<\_ACEOF
16818 #define HAVE_POSTGRESQL 1
16819 _ACEOF
16820
16821       echo "$as_me:$LINENO: result: yes" >&5
16822 echo "${ECHO_T}yes" >&6
16823       db_found=yes
16824       support_postgresql=yes
16825       db_name=PostgreSQL
16826       DB_NAME=postgresql
16827   else
16828       echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6
16830   fi
16831
16832 else
16833
16834   echo "$as_me:$LINENO: result: no" >&5
16835 echo "${ECHO_T}no" >&6
16836
16837 fi;
16838
16839
16840
16841
16842
16843
16844
16845 db_found=no
16846 echo "$as_me:$LINENO: checking for MySQL support" >&5
16847 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16848
16849 # Check whether --with-mysql or --without-mysql was given.
16850 if test "${with_mysql+set}" = set; then
16851   withval="$with_mysql"
16852
16853   if test "$withval" != "no"; then
16854         if test "$withval" = "yes"; then
16855            if test -f /usr/local/mysql/include/mysql/mysql.h; then
16856                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
16857                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
16858                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16859                    else
16860                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16861                    fi
16862                    MYSQL_BINDIR=/usr/local/mysql/bin
16863            elif test -f /usr/include/mysql/mysql.h; then
16864                    MYSQL_INCDIR=/usr/include/mysql
16865                    if test -f /usr/lib64/mysql/libmysqlclient.a; then
16866                            MYSQL_LIBDIR=/usr/lib64/mysql
16867                    else
16868                            MYSQL_LIBDIR=/usr/lib/mysql
16869                    fi
16870                    MYSQL_BINDIR=/usr/bin
16871            elif test -f /usr/include/mysql.h; then
16872                    MYSQL_INCDIR=/usr/include
16873                    if test -f /usr/lib64/libmysqlclient.a; then
16874                            MYSQL_LIBDIR=/usr/lib64
16875                    else
16876                            MYSQL_LIBDIR=/usr/lib
16877                    fi
16878                    MYSQL_BINDIR=/usr/bin
16879            elif test -f /usr/local/include/mysql/mysql.h; then
16880                    MYSQL_INCDIR=/usr/local/include/mysql
16881                    if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
16882                            MYSQL_LIBDIR=/usr/local/lib64/mysql
16883                    else
16884                            MYSQL_LIBDIR=/usr/local/lib/mysql
16885                    fi
16886                    MYSQL_BINDIR=/usr/local/bin
16887            elif test -f /usr/local/include/mysql.h; then
16888                    MYSQL_INCDIR=/usr/local/include
16889                    if test -f /usr/local/lib64/libmysqlclient.a; then
16890                            MYSQL_LIBDIR=/usr/local/lib64
16891                    else
16892                            MYSQL_LIBDIR=/usr/local/lib
16893                    fi
16894                    MYSQL_BINDIR=/usr/local/bin
16895            else
16896               echo "$as_me:$LINENO: result: no" >&5
16897 echo "${ECHO_T}no" >&6
16898               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16899 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16900    { (exit 1); exit 1; }; }
16901            fi
16902         else
16903            if test -f $withval/include/mysql/mysql.h; then
16904               MYSQL_INCDIR=$withval/include/mysql
16905               if test -f $withval/lib64/mysql/libmysqlclient.a; then
16906                  MYSQL_LIBDIR=$withval/lib64/mysql
16907               else
16908                  MYSQL_LIBDIR=$withval/lib/mysql
16909                  # Solaris ...
16910                  if test -f $withval/lib/libmysqlclient.so; then
16911                     MYSQL_LIBDIR=$withval/lib
16912                  fi
16913               fi
16914               MYSQL_BINDIR=$withval/bin
16915            elif test -f $withval/include/mysql.h; then
16916               MYSQL_INCDIR=$withval/include
16917               if test -f "$withval/lib64/libmysqlclient.a"; then
16918                  MYSQL_LIBDIR=$withval/lib64
16919               else
16920                  MYSQL_LIBDIR=$withval/lib
16921               fi
16922               MYSQL_BINDIR=$withval/bin
16923            else
16924               echo "$as_me:$LINENO: result: no" >&5
16925 echo "${ECHO_T}no" >&6
16926               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16927 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16928    { (exit 1); exit 1; }; }
16929            fi
16930         fi
16931     SQL_INCLUDE=-I$MYSQL_INCDIR
16932     if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
16933        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16934        cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_THREAD_SAFE_MYSQL 1
16936 _ACEOF
16937
16938     else
16939        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16940     fi
16941     SQL_BINDIR=$MYSQL_BINDIR
16942
16943     cat >>confdefs.h <<\_ACEOF
16944 #define HAVE_MYSQL 1
16945 _ACEOF
16946
16947     echo "$as_me:$LINENO: result: yes" >&5
16948 echo "${ECHO_T}yes" >&6
16949     db_found=yes
16950     support_mysql=yes
16951     db_name=MySQL
16952     DB_NAME=mysql
16953
16954   else
16955         echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6
16957   fi
16958
16959
16960 fi;
16961
16962
16963 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16964 if test "${with_embedded_mysql+set}" = set; then
16965   withval="$with_embedded_mysql"
16966
16967   if test "$withval" != "no"; then
16968         if test "$withval" = "yes"; then
16969                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16970                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16971                         if test -d /usr/local/mysql/lib64/mysql; then
16972                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16973                         else
16974                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16975                         fi
16976                         MYSQL_BINDIR=/usr/local/mysql/bin
16977                 elif test -f /usr/include/mysql/mysql.h; then
16978                         MYSQL_INCDIR=/usr/include/mysql
16979                         if test -d /usr/lib64/mysql; then
16980                                 MYSQL_LIBDIR=/usr/lib64/mysql
16981                         else
16982                                 MYSQL_LIBDIR=/usr/lib/mysql
16983                         fi
16984                         MYSQL_BINDIR=/usr/bin
16985                 elif test -f /usr/include/mysql.h; then
16986                         MYSQL_INCDIR=/usr/include
16987                         if test -d /usr/lib64; then
16988                                 MYSQL_LIBDIR=/usr/lib64
16989                         else
16990                                 MYSQL_LIBDIR=/usr/lib
16991                         fi
16992                         MYSQL_BINDIR=/usr/bin
16993                 elif test -f /usr/local/include/mysql/mysql.h; then
16994                         MYSQL_INCDIR=/usr/local/include/mysql
16995                         if test -d /usr/local/lib64/mysql; then
16996                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
16997                         else
16998                                 MYSQL_LIBDIR=/usr/local/lib/mysql
16999                         fi
17000                         MYSQL_BINDIR=/usr/local/bin
17001                 elif test -f /usr/local/include/mysql.h; then
17002                         MYSQL_INCDIR=/usr/local/include
17003                         if test -d /usr/local/lib64; then
17004                                 MYSQL_LIBDIR=/usr/local/lib64
17005                         else
17006                                 MYSQL_LIBDIR=/usr/local/lib
17007                         fi
17008                         MYSQL_BINDIR=/usr/local/bin
17009                 else
17010                    echo "$as_me:$LINENO: result: no" >&5
17011 echo "${ECHO_T}no" >&6
17012                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17013 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17014    { (exit 1); exit 1; }; }
17015                 fi
17016         else
17017                 if test -f $withval/include/mysql/mysql.h; then
17018                         MYSQL_INCDIR=$withval/include/mysql
17019                         if test -d $withval/lib64/mysql; then
17020                                 MYSQL_LIBDIR=$withval/lib64/mysql
17021                         else
17022                                 MYSQL_LIBDIR=$withval/lib/mysql
17023                         fi
17024                         MYSQL_BINDIR=$withval/bin
17025                 elif test -f $withval/include/mysql.h; then
17026                         MYSQL_INCDIR=$withval/include
17027                         if test -d $withval/lib64; then
17028                                 MYSQL_LIBDIR=$withval/lib64
17029                         else
17030                                 MYSQL_LIBDIR=$withval/lib
17031                         fi
17032                         MYSQL_BINDIR=$withval/bin
17033                 else
17034                    echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6
17036                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17037 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17038    { (exit 1); exit 1; }; }
17039                 fi
17040         fi
17041     SQL_INCLUDE=-I$MYSQL_INCDIR
17042     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17043     SQL_BINDIR=$MYSQL_BINDIR
17044
17045     cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_MYSQL 1
17047 _ACEOF
17048
17049     cat >>confdefs.h <<\_ACEOF
17050 #define HAVE_EMBEDDED_MYSQL 1
17051 _ACEOF
17052
17053     echo "$as_me:$LINENO: result: yes" >&5
17054 echo "${ECHO_T}yes" >&6
17055     db_found=yes
17056     support_mysql=yes
17057     db_name=MySQL
17058     DB_NAME=mysql
17059
17060   else
17061         echo "$as_me:$LINENO: result: no" >&5
17062 echo "${ECHO_T}no" >&6
17063   fi
17064
17065
17066 fi;
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076 db_found=no
17077 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17078 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17079
17080 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17081 if test "${with_sqlite3+set}" = set; then
17082   withval="$with_sqlite3"
17083
17084   if test "$withval" != "no"; then
17085      if test "$withval" = "yes"; then
17086         if test -f /usr/local/include/sqlite3.h; then
17087            SQLITE_INCDIR=/usr/local/include
17088            if test -d /usr/local/lib64; then
17089               SQLITE_LIBDIR=/usr/local/lib64
17090            else
17091               SQLITE_LIBDIR=/usr/local/lib
17092            fi
17093            SQLITE_BINDIR=/usr/local/bin
17094         elif test -f /usr/include/sqlite3.h; then
17095            SQLITE_INCDIR=/usr/include
17096            if test -d /usr/lib64; then
17097               SQLITE_LIBDIR=/usr/lib64
17098            else
17099               SQLITE_LIBDIR=/usr/lib
17100            fi
17101            SQLITE_BINDIR=/usr/bin
17102         elif test -f $prefix/include/sqlite3.h; then
17103            SQLITE_INCDIR=$prefix/include
17104            if test -d $prefix/lib64; then
17105               SQLITE_LIBDIR=$prefix/lib64
17106            else
17107               SQLITE_LIBDIR=$prefix/lib
17108            fi
17109            SQLITE_BINDIR=$prefix/bin
17110         else
17111            echo "$as_me:$LINENO: result: no" >&5
17112 echo "${ECHO_T}no" >&6
17113            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17114 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17115    { (exit 1); exit 1; }; }
17116         fi
17117      else
17118         if test -f $withval/sqlite3.h; then
17119            SQLITE_INCDIR=$withval
17120            SQLITE_LIBDIR=$withval
17121            SQLITE_BINDIR=$withval
17122         elif test -f $withval/include/sqlite3.h; then
17123            SQLITE_INCDIR=$withval/include
17124            if test -d $withval/lib64; then
17125               SQLITE_LIBDIR=$withval/lib64
17126            else
17127               SQLITE_LIBDIR=$withval/lib
17128            fi
17129            SQLITE_BINDIR=$withval/bin
17130         else
17131            echo "$as_me:$LINENO: result: no" >&5
17132 echo "${ECHO_T}no" >&6
17133            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17134 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17135    { (exit 1); exit 1; }; }
17136         fi
17137      fi
17138      SQL_INCLUDE=-I$SQLITE_INCDIR
17139      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17140      SQL_BINDIR=$SQLITE_BINDIR
17141
17142      cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_SQLITE3 1
17144 _ACEOF
17145
17146      echo "$as_me:$LINENO: result: yes" >&5
17147 echo "${ECHO_T}yes" >&6
17148      db_found=yes
17149      support_sqlite3=yes
17150      db_name=SQLite3
17151      DB_NAME=sqlite3
17152
17153   else
17154      echo "$as_me:$LINENO: result: no" >&5
17155 echo "${ECHO_T}no" >&6
17156   fi
17157
17158 else
17159
17160   echo "$as_me:$LINENO: result: no" >&5
17161 echo "${ECHO_T}no" >&6
17162
17163 fi;
17164
17165
17166
17167
17168
17169
17170
17171 db_found=no
17172 echo "$as_me:$LINENO: checking for SQLite support" >&5
17173 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17174
17175 # Check whether --with-sqlite or --without-sqlite was given.
17176 if test "${with_sqlite+set}" = set; then
17177   withval="$with_sqlite"
17178
17179   if test "$withval" != "no"; then
17180      if test "$withval" = "yes"; then
17181         if test -f /usr/local/include/sqlite.h; then
17182            SQLITE_INCDIR=/usr/local/include
17183            if test -d /usr/local/lib64; then
17184               SQLITE_LIBDIR=/usr/local/lib64
17185            else
17186               SQLITE_LIBDIR=/usr/local/lib
17187            fi
17188            SQLITE_BINDIR=/usr/local/bin
17189         elif test -f /usr/include/sqlite.h; then
17190            SQLITE_INCDIR=/usr/include
17191            if test -d /usr/lib64; then
17192               SQLITE_LIBDIR=/usr/lib64
17193            else
17194               SQLITE_LIBDIR=/usr/lib
17195            fi
17196            SQLITE_BINDIR=/usr/bin
17197         elif test -f $prefix/include/sqlite.h; then
17198            SQLITE_INCDIR=$prefix/include
17199            if test -d $prefix/lib64; then
17200               SQLITE_LIBDIR=$prefix/lib64
17201            else
17202               SQLITE_LIBDIR=$prefix/lib
17203            fi
17204            SQLITE_BINDIR=$prefix/bin
17205         else
17206            echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6
17208            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17209 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17210    { (exit 1); exit 1; }; }
17211         fi
17212      else
17213         if test -f $withval/sqlite.h; then
17214            SQLITE_INCDIR=$withval
17215            SQLITE_LIBDIR=$withval
17216            SQLITE_BINDIR=$withval
17217         elif test -f $withval/include/sqlite.h; then
17218            SQLITE_INCDIR=$withval/include
17219            if test -d $withval/lib64; then
17220               SQLITE_LIBDIR=$withval/lib64
17221            else
17222               SQLITE_LIBDIR=$withval/lib
17223            fi
17224            SQLITE_BINDIR=$withval/bin
17225         else
17226            echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6
17228            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17229 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17230    { (exit 1); exit 1; }; }
17231         fi
17232      fi
17233      SQL_INCLUDE=-I$SQLITE_INCDIR
17234      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17235      SQL_BINDIR=$SQLITE_BINDIR
17236
17237      cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_SQLITE 1
17239 _ACEOF
17240
17241      echo "$as_me:$LINENO: result: yes" >&5
17242 echo "${ECHO_T}yes" >&6
17243      db_found=yes
17244      support_sqlite=yes
17245      db_name=SQLite
17246      DB_NAME=sqlite
17247
17248   else
17249      echo "$as_me:$LINENO: result: no" >&5
17250 echo "${ECHO_T}no" >&6
17251   fi
17252
17253 else
17254
17255   echo "$as_me:$LINENO: result: no" >&5
17256 echo "${ECHO_T}no" >&6
17257
17258 fi;
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268 cat >>confdefs.h <<\_ACEOF
17269 #define PROTOTYPES 1
17270 _ACEOF
17271
17272
17273 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17274     if test -z "$CCOPTS"; then
17275         CCOPTS='-g -O2 -Wall'
17276     fi
17277     CFLAGS="$CCOPTS"
17278 fi
17279
17280
17281
17282
17283 largefile_support="no"
17284
17285    # Check whether --enable-largefile or --disable-largefile was given.
17286 if test "${enable_largefile+set}" = set; then
17287   enableval="$enable_largefile"
17288
17289 fi;
17290    if test "$enable_largefile" != no; then
17291      if test -n "$ac_tool_prefix"; then
17292   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17293 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17294 echo "$as_me:$LINENO: checking for $ac_word" >&5
17295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17296 if test "${ac_cv_prog_GETCONF+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   if test -n "$GETCONF"; then
17300   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17301 else
17302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH
17304 do
17305   IFS=$as_save_IFS
17306   test -z "$as_dir" && as_dir=.
17307   for ac_exec_ext in '' $ac_executable_extensions; do
17308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17309     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17311     break 2
17312   fi
17313 done
17314 done
17315
17316 fi
17317 fi
17318 GETCONF=$ac_cv_prog_GETCONF
17319 if test -n "$GETCONF"; then
17320   echo "$as_me:$LINENO: result: $GETCONF" >&5
17321 echo "${ECHO_T}$GETCONF" >&6
17322 else
17323   echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6
17325 fi
17326
17327 fi
17328 if test -z "$ac_cv_prog_GETCONF"; then
17329   ac_ct_GETCONF=$GETCONF
17330   # Extract the first word of "getconf", so it can be a program name with args.
17331 set dummy getconf; ac_word=$2
17332 echo "$as_me:$LINENO: checking for $ac_word" >&5
17333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17334 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337   if test -n "$ac_ct_GETCONF"; then
17338   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17339 else
17340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17341 for as_dir in $PATH
17342 do
17343   IFS=$as_save_IFS
17344   test -z "$as_dir" && as_dir=.
17345   for ac_exec_ext in '' $ac_executable_extensions; do
17346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17347     ac_cv_prog_ac_ct_GETCONF="getconf"
17348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17349     break 2
17350   fi
17351 done
17352 done
17353
17354 fi
17355 fi
17356 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17357 if test -n "$ac_ct_GETCONF"; then
17358   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17359 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17360 else
17361   echo "$as_me:$LINENO: result: no" >&5
17362 echo "${ECHO_T}no" >&6
17363 fi
17364
17365   GETCONF=$ac_ct_GETCONF
17366 else
17367   GETCONF="$ac_cv_prog_GETCONF"
17368 fi
17369
17370      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17371 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17372 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17376         ac_cv_sys_largefile_CFLAGS=no
17377         case "$host_os" in
17378            # IRIX 6.2 and later require cc -n32.
17379            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17380              if test "$GCC" != yes; then
17381                ac_cv_sys_largefile_CFLAGS=-n32
17382              fi
17383              ac_save_CC="$CC"
17384              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17385              cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391
17392 int
17393 main ()
17394 {
17395
17396   ;
17397   return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402   (eval $ac_link) 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } &&
17409          { ac_try='test -z "$ac_c_werror_flag"
17410                          || test ! -s conftest.err'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; } &&
17416          { ac_try='test -s conftest$ac_exeext'
17417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418   (eval $ac_try) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   :
17423 else
17424   echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427 ac_cv_sys_largefile_CFLAGS=no
17428 fi
17429 rm -f conftest.err conftest.$ac_objext \
17430       conftest$ac_exeext conftest.$ac_ext
17431              CC="$ac_save_CC"
17432            esac
17433       }
17434 fi
17435 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17436 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17437      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17438 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17439 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17440   echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17443         ac_cv_sys_largefile_LDFLAGS=no
17444
17445       }
17446 fi
17447 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17448 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17449      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17450 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17451 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17455         ac_cv_sys_largefile_LIBS=no
17456
17457       }
17458 fi
17459 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17460 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17461
17462      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17463        case "$ac_flag" in
17464        no) ;;
17465        -D_FILE_OFFSET_BITS=*) ;;
17466        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17467        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17468        -D?* | -I?*)
17469          case "$ac_flag" in
17470    no) ;;
17471    ?*)
17472      case "$CPPFLAGS" in
17473      '') CPPFLAGS="$ac_flag" ;;
17474      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17475      esac ;;
17476    esac ;;
17477        *)
17478          case "$ac_flag" in
17479    no) ;;
17480    ?*)
17481      case "$CFLAGS" in
17482      '') CFLAGS="$ac_flag" ;;
17483      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17484      esac ;;
17485    esac ;;
17486        esac
17487      done
17488      case "$ac_cv_sys_largefile_LDFLAGS" in
17489    no) ;;
17490    ?*)
17491      case "$LDFLAGS" in
17492      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17493      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17494      esac ;;
17495    esac
17496      case "$ac_cv_sys_largefile_LIBS" in
17497    no) ;;
17498    ?*)
17499      case "$LIBS" in
17500      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17501      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17502      esac ;;
17503    esac
17504      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17505 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   ac_cv_sys_file_offset_bits=no
17510       ac_cv_sys_file_offset_bits=64
17511       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17512         case "$ac_flag" in
17513         -D_FILE_OFFSET_BITS)
17514           ac_cv_sys_file_offset_bits=1 ;;
17515         -D_FILE_OFFSET_BITS=*)
17516           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17517         esac
17518       done
17519
17520 fi
17521 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17522 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17523    if test "$ac_cv_sys_file_offset_bits" != no; then
17524
17525 cat >>confdefs.h <<_ACEOF
17526 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17527 _ACEOF
17528
17529    fi
17530      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17531 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17532 if test "${ac_cv_sys_largefile_source+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535   ac_cv_sys_largefile_source=no
17536       ac_cv_sys_largefile_source=1
17537       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17538         case "$ac_flag" in
17539         -D_LARGEFILE_SOURCE)
17540           ac_cv_sys_largefile_source=1 ;;
17541         -D_LARGEFILE_SOURCE=*)
17542           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17543         esac
17544       done
17545
17546 fi
17547 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17548 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17549    if test "$ac_cv_sys_largefile_source" != no; then
17550
17551 cat >>confdefs.h <<_ACEOF
17552 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17553 _ACEOF
17554
17555    fi
17556      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17557 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17558 if test "${ac_cv_sys_large_files+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   ac_cv_sys_large_files=no
17562       ac_cv_sys_large_files=1
17563       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17564         case "$ac_flag" in
17565         -D_LARGE_FILES)
17566           ac_cv_sys_large_files=1 ;;
17567         -D_LARGE_FILES=*)
17568           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17569         esac
17570       done
17571
17572 fi
17573 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17574 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17575    if test "$ac_cv_sys_large_files" != no; then
17576
17577 cat >>confdefs.h <<_ACEOF
17578 #define _LARGE_FILES $ac_cv_sys_large_files
17579 _ACEOF
17580
17581    fi
17582    fi
17583
17584
17585
17586 echo "$as_me:$LINENO: checking for X" >&5
17587 echo $ECHO_N "checking for X... $ECHO_C" >&6
17588
17589
17590 # Check whether --with-x or --without-x was given.
17591 if test "${with_x+set}" = set; then
17592   withval="$with_x"
17593
17594 fi;
17595 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17596 if test "x$with_x" = xno; then
17597   # The user explicitly disabled X.
17598   have_x=disabled
17599 else
17600   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17601     # Both variables are already set.
17602     have_x=yes
17603   else
17604     if test "${ac_cv_have_x+set}" = set; then
17605   echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607   # One or both of the vars are not set, and there is no cached value.
17608 ac_x_includes=no ac_x_libraries=no
17609 rm -fr conftest.dir
17610 if mkdir conftest.dir; then
17611   cd conftest.dir
17612   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17613   cat >Imakefile <<'_ACEOF'
17614 acfindx:
17615         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17616 _ACEOF
17617   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17618     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17619     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17620     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17621     for ac_extension in a so sl; do
17622       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17623          test -f $ac_im_libdir/libX11.$ac_extension; then
17624         ac_im_usrlibdir=$ac_im_libdir; break
17625       fi
17626     done
17627     # Screen out bogus values from the imake configuration.  They are
17628     # bogus both because they are the default anyway, and because
17629     # using them would break gcc on systems where it needs fixed includes.
17630     case $ac_im_incroot in
17631         /usr/include) ;;
17632         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17633     esac
17634     case $ac_im_usrlibdir in
17635         /usr/lib | /lib) ;;
17636         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17637     esac
17638   fi
17639   cd ..
17640   rm -fr conftest.dir
17641 fi
17642
17643 # Standard set of common directories for X headers.
17644 # Check X11 before X11Rn because it is often a symlink to the current release.
17645 ac_x_header_dirs='
17646 /usr/X11/include
17647 /usr/X11R6/include
17648 /usr/X11R5/include
17649 /usr/X11R4/include
17650
17651 /usr/include/X11
17652 /usr/include/X11R6
17653 /usr/include/X11R5
17654 /usr/include/X11R4
17655
17656 /usr/local/X11/include
17657 /usr/local/X11R6/include
17658 /usr/local/X11R5/include
17659 /usr/local/X11R4/include
17660
17661 /usr/local/include/X11
17662 /usr/local/include/X11R6
17663 /usr/local/include/X11R5
17664 /usr/local/include/X11R4
17665
17666 /usr/X386/include
17667 /usr/x386/include
17668 /usr/XFree86/include/X11
17669
17670 /usr/include
17671 /usr/local/include
17672 /usr/unsupported/include
17673 /usr/athena/include
17674 /usr/local/x11r5/include
17675 /usr/lpp/Xamples/include
17676
17677 /usr/openwin/include
17678 /usr/openwin/share/include'
17679
17680 if test "$ac_x_includes" = no; then
17681   # Guess where to find include files, by looking for Intrinsic.h.
17682   # First, try using that file with no special directory specified.
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689 #include <X11/Intrinsic.h>
17690 _ACEOF
17691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } >/dev/null; then
17699   if test -s conftest.err; then
17700     ac_cpp_err=$ac_c_preproc_warn_flag
17701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17702   else
17703     ac_cpp_err=
17704   fi
17705 else
17706   ac_cpp_err=yes
17707 fi
17708 if test -z "$ac_cpp_err"; then
17709   # We can compile using X headers with no special include directory.
17710 ac_x_includes=
17711 else
17712   echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715   for ac_dir in $ac_x_header_dirs; do
17716   if test -r "$ac_dir/X11/Intrinsic.h"; then
17717     ac_x_includes=$ac_dir
17718     break
17719   fi
17720 done
17721 fi
17722 rm -f conftest.err conftest.$ac_ext
17723 fi # $ac_x_includes = no
17724
17725 if test "$ac_x_libraries" = no; then
17726   # Check for the libraries.
17727   # See if we find them without any special options.
17728   # Don't add to $LIBS permanently.
17729   ac_save_LIBS=$LIBS
17730   LIBS="-lXt $LIBS"
17731   cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h.  */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h.  */
17737 #include <X11/Intrinsic.h>
17738 int
17739 main ()
17740 {
17741 XtMalloc (0)
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748   (eval $ac_link) 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_c_werror_flag"
17756                          || test ! -s conftest.err'
17757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758   (eval $ac_try) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest$ac_exeext'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; }; then
17768   LIBS=$ac_save_LIBS
17769 # We can link X programs with no special library path.
17770 ac_x_libraries=
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775 LIBS=$ac_save_LIBS
17776 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17777 do
17778   # Don't even attempt the hair of trying to link an X program!
17779   for ac_extension in a so sl; do
17780     if test -r $ac_dir/libXt.$ac_extension; then
17781       ac_x_libraries=$ac_dir
17782       break 2
17783     fi
17784   done
17785 done
17786 fi
17787 rm -f conftest.err conftest.$ac_objext \
17788       conftest$ac_exeext conftest.$ac_ext
17789 fi # $ac_x_libraries = no
17790
17791 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17792   # Didn't find X anywhere.  Cache the known absence of X.
17793   ac_cv_have_x="have_x=no"
17794 else
17795   # Record where we found X for the cache.
17796   ac_cv_have_x="have_x=yes \
17797                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17798 fi
17799 fi
17800
17801   fi
17802   eval "$ac_cv_have_x"
17803 fi # $with_x != no
17804
17805 if test "$have_x" != yes; then
17806   echo "$as_me:$LINENO: result: $have_x" >&5
17807 echo "${ECHO_T}$have_x" >&6
17808   no_x=yes
17809 else
17810   # If each of the values was on the command line, it overrides each guess.
17811   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17812   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17813   # Update the cache value to reflect the command line values.
17814   ac_cv_have_x="have_x=yes \
17815                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17816   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17817 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17818 fi
17819
17820 if test "$no_x" = yes; then
17821   # Not all programs may use this symbol, but it does not hurt to define it.
17822
17823 cat >>confdefs.h <<\_ACEOF
17824 #define X_DISPLAY_MISSING 1
17825 _ACEOF
17826
17827   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17828 else
17829   if test -n "$x_includes"; then
17830     X_CFLAGS="$X_CFLAGS -I$x_includes"
17831   fi
17832
17833   # It would also be nice to do this for all -L options, not just this one.
17834   if test -n "$x_libraries"; then
17835     X_LIBS="$X_LIBS -L$x_libraries"
17836     # For Solaris; some versions of Sun CC require a space after -R and
17837     # others require no space.  Words are not sufficient . . . .
17838     case `(uname -sr) 2>/dev/null` in
17839     "SunOS 5"*)
17840       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17841 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17842       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17843       cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849
17850 int
17851 main ()
17852 {
17853
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17860   (eval $ac_link) 2>conftest.er1
17861   ac_status=$?
17862   grep -v '^ *+' conftest.er1 >conftest.err
17863   rm -f conftest.er1
17864   cat conftest.err >&5
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } &&
17867          { ac_try='test -z "$ac_c_werror_flag"
17868                          || test ! -s conftest.err'
17869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870   (eval $ac_try) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); }; } &&
17874          { ac_try='test -s conftest$ac_exeext'
17875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876   (eval $ac_try) 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); }; }; then
17880   ac_R_nospace=yes
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 ac_R_nospace=no
17886 fi
17887 rm -f conftest.err conftest.$ac_objext \
17888       conftest$ac_exeext conftest.$ac_ext
17889       if test $ac_R_nospace = yes; then
17890         echo "$as_me:$LINENO: result: no" >&5
17891 echo "${ECHO_T}no" >&6
17892         X_LIBS="$X_LIBS -R$x_libraries"
17893       else
17894         LIBS="$ac_xsave_LIBS -R $x_libraries"
17895         cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h.  */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h.  */
17901
17902 int
17903 main ()
17904 {
17905
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912   (eval $ac_link) 2>conftest.er1
17913   ac_status=$?
17914   grep -v '^ *+' conftest.er1 >conftest.err
17915   rm -f conftest.er1
17916   cat conftest.err >&5
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); } &&
17919          { ac_try='test -z "$ac_c_werror_flag"
17920                          || test ! -s conftest.err'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; } &&
17926          { ac_try='test -s conftest$ac_exeext'
17927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928   (eval $ac_try) 2>&5
17929   ac_status=$?
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); }; }; then
17932   ac_R_space=yes
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_R_space=no
17938 fi
17939 rm -f conftest.err conftest.$ac_objext \
17940       conftest$ac_exeext conftest.$ac_ext
17941         if test $ac_R_space = yes; then
17942           echo "$as_me:$LINENO: result: yes" >&5
17943 echo "${ECHO_T}yes" >&6
17944           X_LIBS="$X_LIBS -R $x_libraries"
17945         else
17946           echo "$as_me:$LINENO: result: neither works" >&5
17947 echo "${ECHO_T}neither works" >&6
17948         fi
17949       fi
17950       LIBS=$ac_xsave_LIBS
17951     esac
17952   fi
17953
17954   # Check for system-dependent libraries X programs must link with.
17955   # Do this before checking for the system-independent R6 libraries
17956   # (-lICE), since we may need -lsocket or whatever for X linking.
17957
17958   if test "$ISC" = yes; then
17959     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17960   else
17961     # Martyn Johnson says this is needed for Ultrix, if the X
17962     # libraries were built with DECnet support.  And Karl Berry says
17963     # the Alpha needs dnet_stub (dnet does not exist).
17964     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17965     cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971
17972 /* Override any gcc2 internal prototype to avoid an error.  */
17973 #ifdef __cplusplus
17974 extern "C"
17975 #endif
17976 /* We use char because int might match the return type of a gcc2
17977    builtin and then its argument prototype would still apply.  */
17978 char XOpenDisplay ();
17979 int
17980 main ()
17981 {
17982 XOpenDisplay ();
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17989   (eval $ac_link) 2>conftest.er1
17990   ac_status=$?
17991   grep -v '^ *+' conftest.er1 >conftest.err
17992   rm -f conftest.er1
17993   cat conftest.err >&5
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } &&
17996          { ac_try='test -z "$ac_c_werror_flag"
17997                          || test ! -s conftest.err'
17998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999   (eval $ac_try) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } &&
18003          { ac_try='test -s conftest$ac_exeext'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   :
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18015 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18016 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18017   echo $ECHO_N "(cached) $ECHO_C" >&6
18018 else
18019   ac_check_lib_save_LIBS=$LIBS
18020 LIBS="-ldnet  $LIBS"
18021 cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027
18028 /* Override any gcc2 internal prototype to avoid an error.  */
18029 #ifdef __cplusplus
18030 extern "C"
18031 #endif
18032 /* We use char because int might match the return type of a gcc2
18033    builtin and then its argument prototype would still apply.  */
18034 char dnet_ntoa ();
18035 int
18036 main ()
18037 {
18038 dnet_ntoa ();
18039   ;
18040   return 0;
18041 }
18042 _ACEOF
18043 rm -f conftest.$ac_objext conftest$ac_exeext
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045   (eval $ac_link) 2>conftest.er1
18046   ac_status=$?
18047   grep -v '^ *+' conftest.er1 >conftest.err
18048   rm -f conftest.er1
18049   cat conftest.err >&5
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); } &&
18052          { ac_try='test -z "$ac_c_werror_flag"
18053                          || test ! -s conftest.err'
18054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055   (eval $ac_try) 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; } &&
18059          { ac_try='test -s conftest$ac_exeext'
18060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061   (eval $ac_try) 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); }; }; then
18065   ac_cv_lib_dnet_dnet_ntoa=yes
18066 else
18067   echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ac_cv_lib_dnet_dnet_ntoa=no
18071 fi
18072 rm -f conftest.err conftest.$ac_objext \
18073       conftest$ac_exeext conftest.$ac_ext
18074 LIBS=$ac_check_lib_save_LIBS
18075 fi
18076 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18077 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18078 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18079   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18080 fi
18081
18082     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18083       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18084 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18085 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18086   echo $ECHO_N "(cached) $ECHO_C" >&6
18087 else
18088   ac_check_lib_save_LIBS=$LIBS
18089 LIBS="-ldnet_stub  $LIBS"
18090 cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096
18097 /* Override any gcc2 internal prototype to avoid an error.  */
18098 #ifdef __cplusplus
18099 extern "C"
18100 #endif
18101 /* We use char because int might match the return type of a gcc2
18102    builtin and then its argument prototype would still apply.  */
18103 char dnet_ntoa ();
18104 int
18105 main ()
18106 {
18107 dnet_ntoa ();
18108   ;
18109   return 0;
18110 }
18111 _ACEOF
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18114   (eval $ac_link) 2>conftest.er1
18115   ac_status=$?
18116   grep -v '^ *+' conftest.er1 >conftest.err
18117   rm -f conftest.er1
18118   cat conftest.err >&5
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); } &&
18121          { ac_try='test -z "$ac_c_werror_flag"
18122                          || test ! -s conftest.err'
18123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124   (eval $ac_try) 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; } &&
18128          { ac_try='test -s conftest$ac_exeext'
18129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130   (eval $ac_try) 2>&5
18131   ac_status=$?
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); }; }; then
18134   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18135 else
18136   echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 ac_cv_lib_dnet_stub_dnet_ntoa=no
18140 fi
18141 rm -f conftest.err conftest.$ac_objext \
18142       conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$ac_check_lib_save_LIBS
18144 fi
18145 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18146 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18147 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18148   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18149 fi
18150
18151     fi
18152 fi
18153 rm -f conftest.err conftest.$ac_objext \
18154       conftest$ac_exeext conftest.$ac_ext
18155     LIBS="$ac_xsave_LIBS"
18156
18157     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18158     # to get the SysV transport functions.
18159     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18160     # needs -lnsl.
18161     # The nsl library prevents programs from opening the X display
18162     # on Irix 5.2, according to T.E. Dickey.
18163     # The functions gethostbyname, getservbyname, and inet_addr are
18164     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18165     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18166 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18167 if test "${ac_cv_func_gethostbyname+set}" = set; then
18168   echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170   cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18178 #define gethostbyname innocuous_gethostbyname
18179
18180 /* System header to define __stub macros and hopefully few prototypes,
18181     which can conflict with char gethostbyname (); below.
18182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183     <limits.h> exists even on freestanding compilers.  */
18184
18185 #ifdef __STDC__
18186 # include <limits.h>
18187 #else
18188 # include <assert.h>
18189 #endif
18190
18191 #undef gethostbyname
18192
18193 /* Override any gcc2 internal prototype to avoid an error.  */
18194 #ifdef __cplusplus
18195 extern "C"
18196 {
18197 #endif
18198 /* We use char because int might match the return type of a gcc2
18199    builtin and then its argument prototype would still apply.  */
18200 char gethostbyname ();
18201 /* The GNU C library defines this for functions which it implements
18202     to always fail with ENOSYS.  Some functions are actually named
18203     something starting with __ and the normal name is an alias.  */
18204 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18205 choke me
18206 #else
18207 char (*f) () = gethostbyname;
18208 #endif
18209 #ifdef __cplusplus
18210 }
18211 #endif
18212
18213 int
18214 main ()
18215 {
18216 return f != gethostbyname;
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18223   (eval $ac_link) 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -z "$ac_c_werror_flag"
18231                          || test ! -s conftest.err'
18232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233   (eval $ac_try) 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; } &&
18237          { ac_try='test -s conftest$ac_exeext'
18238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239   (eval $ac_try) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; }; then
18243   ac_cv_func_gethostbyname=yes
18244 else
18245   echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18247
18248 ac_cv_func_gethostbyname=no
18249 fi
18250 rm -f conftest.err conftest.$ac_objext \
18251       conftest$ac_exeext conftest.$ac_ext
18252 fi
18253 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18254 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18255
18256     if test $ac_cv_func_gethostbyname = no; then
18257       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18258 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18259 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262   ac_check_lib_save_LIBS=$LIBS
18263 LIBS="-lnsl  $LIBS"
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h.  */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h.  */
18270
18271 /* Override any gcc2 internal prototype to avoid an error.  */
18272 #ifdef __cplusplus
18273 extern "C"
18274 #endif
18275 /* We use char because int might match the return type of a gcc2
18276    builtin and then its argument prototype would still apply.  */
18277 char gethostbyname ();
18278 int
18279 main ()
18280 {
18281 gethostbyname ();
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 rm -f conftest.$ac_objext conftest$ac_exeext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18288   (eval $ac_link) 2>conftest.er1
18289   ac_status=$?
18290   grep -v '^ *+' conftest.er1 >conftest.err
18291   rm -f conftest.er1
18292   cat conftest.err >&5
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); } &&
18295          { ac_try='test -z "$ac_c_werror_flag"
18296                          || test ! -s conftest.err'
18297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298   (eval $ac_try) 2>&5
18299   ac_status=$?
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); }; } &&
18302          { ac_try='test -s conftest$ac_exeext'
18303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304   (eval $ac_try) 2>&5
18305   ac_status=$?
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); }; }; then
18308   ac_cv_lib_nsl_gethostbyname=yes
18309 else
18310   echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313 ac_cv_lib_nsl_gethostbyname=no
18314 fi
18315 rm -f conftest.err conftest.$ac_objext \
18316       conftest$ac_exeext conftest.$ac_ext
18317 LIBS=$ac_check_lib_save_LIBS
18318 fi
18319 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18320 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18321 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18322   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18323 fi
18324
18325       if test $ac_cv_lib_nsl_gethostbyname = no; then
18326         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18327 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18328 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   ac_check_lib_save_LIBS=$LIBS
18332 LIBS="-lbsd  $LIBS"
18333 cat >conftest.$ac_ext <<_ACEOF
18334 /* confdefs.h.  */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h.  */
18339
18340 /* Override any gcc2 internal prototype to avoid an error.  */
18341 #ifdef __cplusplus
18342 extern "C"
18343 #endif
18344 /* We use char because int might match the return type of a gcc2
18345    builtin and then its argument prototype would still apply.  */
18346 char gethostbyname ();
18347 int
18348 main ()
18349 {
18350 gethostbyname ();
18351   ;
18352   return 0;
18353 }
18354 _ACEOF
18355 rm -f conftest.$ac_objext conftest$ac_exeext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357   (eval $ac_link) 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } &&
18364          { ac_try='test -z "$ac_c_werror_flag"
18365                          || test ! -s conftest.err'
18366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367   (eval $ac_try) 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; } &&
18371          { ac_try='test -s conftest$ac_exeext'
18372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373   (eval $ac_try) 2>&5
18374   ac_status=$?
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); }; }; then
18377   ac_cv_lib_bsd_gethostbyname=yes
18378 else
18379   echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18381
18382 ac_cv_lib_bsd_gethostbyname=no
18383 fi
18384 rm -f conftest.err conftest.$ac_objext \
18385       conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18387 fi
18388 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18389 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18390 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18391   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18392 fi
18393
18394       fi
18395     fi
18396
18397     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18398     # socket/setsockopt and other routines are undefined under SCO ODT
18399     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18400     # on later versions), says Simon Leinen: it contains gethostby*
18401     # variants that don't use the name server (or something).  -lsocket
18402     # must be given before -lnsl if both are needed.  We assume that
18403     # if connect needs -lnsl, so does gethostbyname.
18404     echo "$as_me:$LINENO: checking for connect" >&5
18405 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18406 if test "${ac_cv_func_connect+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h.  */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h.  */
18415 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18417 #define connect innocuous_connect
18418
18419 /* System header to define __stub macros and hopefully few prototypes,
18420     which can conflict with char connect (); below.
18421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18422     <limits.h> exists even on freestanding compilers.  */
18423
18424 #ifdef __STDC__
18425 # include <limits.h>
18426 #else
18427 # include <assert.h>
18428 #endif
18429
18430 #undef connect
18431
18432 /* Override any gcc2 internal prototype to avoid an error.  */
18433 #ifdef __cplusplus
18434 extern "C"
18435 {
18436 #endif
18437 /* We use char because int might match the return type of a gcc2
18438    builtin and then its argument prototype would still apply.  */
18439 char connect ();
18440 /* The GNU C library defines this for functions which it implements
18441     to always fail with ENOSYS.  Some functions are actually named
18442     something starting with __ and the normal name is an alias.  */
18443 #if defined (__stub_connect) || defined (__stub___connect)
18444 choke me
18445 #else
18446 char (*f) () = connect;
18447 #endif
18448 #ifdef __cplusplus
18449 }
18450 #endif
18451
18452 int
18453 main ()
18454 {
18455 return f != connect;
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462   (eval $ac_link) 2>conftest.er1
18463   ac_status=$?
18464   grep -v '^ *+' conftest.er1 >conftest.err
18465   rm -f conftest.er1
18466   cat conftest.err >&5
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } &&
18469          { ac_try='test -z "$ac_c_werror_flag"
18470                          || test ! -s conftest.err'
18471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472   (eval $ac_try) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; } &&
18476          { ac_try='test -s conftest$ac_exeext'
18477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478   (eval $ac_try) 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); }; }; then
18482   ac_cv_func_connect=yes
18483 else
18484   echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 ac_cv_func_connect=no
18488 fi
18489 rm -f conftest.err conftest.$ac_objext \
18490       conftest$ac_exeext conftest.$ac_ext
18491 fi
18492 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18493 echo "${ECHO_T}$ac_cv_func_connect" >&6
18494
18495     if test $ac_cv_func_connect = no; then
18496       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18497 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18498 if test "${ac_cv_lib_socket_connect+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501   ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h.  */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h.  */
18509
18510 /* Override any gcc2 internal prototype to avoid an error.  */
18511 #ifdef __cplusplus
18512 extern "C"
18513 #endif
18514 /* We use char because int might match the return type of a gcc2
18515    builtin and then its argument prototype would still apply.  */
18516 char connect ();
18517 int
18518 main ()
18519 {
18520 connect ();
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18527   (eval $ac_link) 2>conftest.er1
18528   ac_status=$?
18529   grep -v '^ *+' conftest.er1 >conftest.err
18530   rm -f conftest.er1
18531   cat conftest.err >&5
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); } &&
18534          { ac_try='test -z "$ac_c_werror_flag"
18535                          || test ! -s conftest.err'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; } &&
18541          { ac_try='test -s conftest$ac_exeext'
18542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543   (eval $ac_try) 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; }; then
18547   ac_cv_lib_socket_connect=yes
18548 else
18549   echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552 ac_cv_lib_socket_connect=no
18553 fi
18554 rm -f conftest.err conftest.$ac_objext \
18555       conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18557 fi
18558 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18559 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18560 if test $ac_cv_lib_socket_connect = yes; then
18561   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18562 fi
18563
18564     fi
18565
18566     # Guillermo Gomez says -lposix is necessary on A/UX.
18567     echo "$as_me:$LINENO: checking for remove" >&5
18568 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18569 if test "${ac_cv_func_remove+set}" = set; then
18570   echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572   cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h.  */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h.  */
18578 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18580 #define remove innocuous_remove
18581
18582 /* System header to define __stub macros and hopefully few prototypes,
18583     which can conflict with char remove (); below.
18584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585     <limits.h> exists even on freestanding compilers.  */
18586
18587 #ifdef __STDC__
18588 # include <limits.h>
18589 #else
18590 # include <assert.h>
18591 #endif
18592
18593 #undef remove
18594
18595 /* Override any gcc2 internal prototype to avoid an error.  */
18596 #ifdef __cplusplus
18597 extern "C"
18598 {
18599 #endif
18600 /* We use char because int might match the return type of a gcc2
18601    builtin and then its argument prototype would still apply.  */
18602 char remove ();
18603 /* The GNU C library defines this for functions which it implements
18604     to always fail with ENOSYS.  Some functions are actually named
18605     something starting with __ and the normal name is an alias.  */
18606 #if defined (__stub_remove) || defined (__stub___remove)
18607 choke me
18608 #else
18609 char (*f) () = remove;
18610 #endif
18611 #ifdef __cplusplus
18612 }
18613 #endif
18614
18615 int
18616 main ()
18617 {
18618 return f != remove;
18619   ;
18620   return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625   (eval $ac_link) 2>conftest.er1
18626   ac_status=$?
18627   grep -v '^ *+' conftest.er1 >conftest.err
18628   rm -f conftest.er1
18629   cat conftest.err >&5
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); } &&
18632          { ac_try='test -z "$ac_c_werror_flag"
18633                          || test ! -s conftest.err'
18634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635   (eval $ac_try) 2>&5
18636   ac_status=$?
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); }; } &&
18639          { ac_try='test -s conftest$ac_exeext'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; }; then
18645   ac_cv_func_remove=yes
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 ac_cv_func_remove=no
18651 fi
18652 rm -f conftest.err conftest.$ac_objext \
18653       conftest$ac_exeext conftest.$ac_ext
18654 fi
18655 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18656 echo "${ECHO_T}$ac_cv_func_remove" >&6
18657
18658     if test $ac_cv_func_remove = no; then
18659       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18660 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18661 if test "${ac_cv_lib_posix_remove+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lposix  $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672
18673 /* Override any gcc2 internal prototype to avoid an error.  */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 /* We use char because int might match the return type of a gcc2
18678    builtin and then its argument prototype would still apply.  */
18679 char remove ();
18680 int
18681 main ()
18682 {
18683 remove ();
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690   (eval $ac_link) 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } &&
18697          { ac_try='test -z "$ac_c_werror_flag"
18698                          || test ! -s conftest.err'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; } &&
18704          { ac_try='test -s conftest$ac_exeext'
18705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706   (eval $ac_try) 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; }; then
18710   ac_cv_lib_posix_remove=yes
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 ac_cv_lib_posix_remove=no
18716 fi
18717 rm -f conftest.err conftest.$ac_objext \
18718       conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18720 fi
18721 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18722 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18723 if test $ac_cv_lib_posix_remove = yes; then
18724   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18725 fi
18726
18727     fi
18728
18729     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18730     echo "$as_me:$LINENO: checking for shmat" >&5
18731 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18732 if test "${ac_cv_func_shmat+set}" = set; then
18733   echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735   cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h.  */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h.  */
18741 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18743 #define shmat innocuous_shmat
18744
18745 /* System header to define __stub macros and hopefully few prototypes,
18746     which can conflict with char shmat (); below.
18747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18748     <limits.h> exists even on freestanding compilers.  */
18749
18750 #ifdef __STDC__
18751 # include <limits.h>
18752 #else
18753 # include <assert.h>
18754 #endif
18755
18756 #undef shmat
18757
18758 /* Override any gcc2 internal prototype to avoid an error.  */
18759 #ifdef __cplusplus
18760 extern "C"
18761 {
18762 #endif
18763 /* We use char because int might match the return type of a gcc2
18764    builtin and then its argument prototype would still apply.  */
18765 char shmat ();
18766 /* The GNU C library defines this for functions which it implements
18767     to always fail with ENOSYS.  Some functions are actually named
18768     something starting with __ and the normal name is an alias.  */
18769 #if defined (__stub_shmat) || defined (__stub___shmat)
18770 choke me
18771 #else
18772 char (*f) () = shmat;
18773 #endif
18774 #ifdef __cplusplus
18775 }
18776 #endif
18777
18778 int
18779 main ()
18780 {
18781 return f != shmat;
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788   (eval $ac_link) 2>conftest.er1
18789   ac_status=$?
18790   grep -v '^ *+' conftest.er1 >conftest.err
18791   rm -f conftest.er1
18792   cat conftest.err >&5
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } &&
18795          { ac_try='test -z "$ac_c_werror_flag"
18796                          || test ! -s conftest.err'
18797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798   (eval $ac_try) 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; } &&
18802          { ac_try='test -s conftest$ac_exeext'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; }; then
18808   ac_cv_func_shmat=yes
18809 else
18810   echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18812
18813 ac_cv_func_shmat=no
18814 fi
18815 rm -f conftest.err conftest.$ac_objext \
18816       conftest$ac_exeext conftest.$ac_ext
18817 fi
18818 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18819 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18820
18821     if test $ac_cv_func_shmat = no; then
18822       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18823 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18824 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lipc  $LIBS"
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835
18836 /* Override any gcc2 internal prototype to avoid an error.  */
18837 #ifdef __cplusplus
18838 extern "C"
18839 #endif
18840 /* We use char because int might match the return type of a gcc2
18841    builtin and then its argument prototype would still apply.  */
18842 char shmat ();
18843 int
18844 main ()
18845 {
18846 shmat ();
18847   ;
18848   return 0;
18849 }
18850 _ACEOF
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18853   (eval $ac_link) 2>conftest.er1
18854   ac_status=$?
18855   grep -v '^ *+' conftest.er1 >conftest.err
18856   rm -f conftest.er1
18857   cat conftest.err >&5
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); } &&
18860          { ac_try='test -z "$ac_c_werror_flag"
18861                          || test ! -s conftest.err'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; } &&
18867          { ac_try='test -s conftest$ac_exeext'
18868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869   (eval $ac_try) 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; }; then
18873   ac_cv_lib_ipc_shmat=yes
18874 else
18875   echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 ac_cv_lib_ipc_shmat=no
18879 fi
18880 rm -f conftest.err conftest.$ac_objext \
18881       conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18883 fi
18884 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18885 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18886 if test $ac_cv_lib_ipc_shmat = yes; then
18887   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18888 fi
18889
18890     fi
18891   fi
18892
18893   # Check for libraries that X11R6 Xt/Xaw programs need.
18894   ac_save_LDFLAGS=$LDFLAGS
18895   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18896   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18897   # check for ICE first), but we must link in the order -lSM -lICE or
18898   # we get undefined symbols.  So assume we have SM if we have ICE.
18899   # These have to be linked with before -lX11, unlike the other
18900   # libraries we check for below, so use a different variable.
18901   # John Interrante, Karl Berry
18902   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18903 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18904 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18905   echo $ECHO_N "(cached) $ECHO_C" >&6
18906 else
18907   ac_check_lib_save_LIBS=$LIBS
18908 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h.  */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h.  */
18915
18916 /* Override any gcc2 internal prototype to avoid an error.  */
18917 #ifdef __cplusplus
18918 extern "C"
18919 #endif
18920 /* We use char because int might match the return type of a gcc2
18921    builtin and then its argument prototype would still apply.  */
18922 char IceConnectionNumber ();
18923 int
18924 main ()
18925 {
18926 IceConnectionNumber ();
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933   (eval $ac_link) 2>conftest.er1
18934   ac_status=$?
18935   grep -v '^ *+' conftest.er1 >conftest.err
18936   rm -f conftest.er1
18937   cat conftest.err >&5
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } &&
18940          { ac_try='test -z "$ac_c_werror_flag"
18941                          || test ! -s conftest.err'
18942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943   (eval $ac_try) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; } &&
18947          { ac_try='test -s conftest$ac_exeext'
18948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949   (eval $ac_try) 2>&5
18950   ac_status=$?
18951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952   (exit $ac_status); }; }; then
18953   ac_cv_lib_ICE_IceConnectionNumber=yes
18954 else
18955   echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 ac_cv_lib_ICE_IceConnectionNumber=no
18959 fi
18960 rm -f conftest.err conftest.$ac_objext \
18961       conftest$ac_exeext conftest.$ac_ext
18962 LIBS=$ac_check_lib_save_LIBS
18963 fi
18964 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18965 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18966 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18967   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18968 fi
18969
18970   LDFLAGS=$ac_save_LDFLAGS
18971
18972 fi
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
18999
19000
19001
19002 for ac_header in \
19003         assert.h \
19004         fcntl.h \
19005         grp.h \
19006         pwd.h \
19007         libc.h \
19008         limits.h \
19009         stdarg.h \
19010         stdlib.h \
19011         stdint.h \
19012         string.h \
19013         termios.h \
19014         termcap.h \
19015         term.h \
19016         unistd.h \
19017         sys/bitypes.h \
19018         sys/byteorder.h \
19019         sys/ioctl.h \
19020         sys/select.h \
19021         sys/sockio.h \
19022         sys/time.h \
19023         sys/socket.h \
19024         arpa/nameser.h \
19025         resolv.h \
19026         mtio.h \
19027         sys/mtio.h \
19028         sys/tape.h \
19029         regex.h \
19030
19031 do
19032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19034   echo "$as_me:$LINENO: checking for $ac_header" >&5
19035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 fi
19039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19041 else
19042   # Is the header compilable?
19043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 $ac_includes_default
19052 #include <$ac_header>
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056   (eval $ac_compile) 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_c_werror_flag"
19064                          || test ! -s conftest.err'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; } &&
19070          { ac_try='test -s conftest.$ac_objext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   ac_header_compiler=yes
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_header_compiler=no
19082 fi
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19085 echo "${ECHO_T}$ac_header_compiler" >&6
19086
19087 # Is the header present?
19088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19090 cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096 #include <$ac_header>
19097 _ACEOF
19098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19100   ac_status=$?
19101   grep -v '^ *+' conftest.er1 >conftest.err
19102   rm -f conftest.er1
19103   cat conftest.err >&5
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } >/dev/null; then
19106   if test -s conftest.err; then
19107     ac_cpp_err=$ac_c_preproc_warn_flag
19108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19109   else
19110     ac_cpp_err=
19111   fi
19112 else
19113   ac_cpp_err=yes
19114 fi
19115 if test -z "$ac_cpp_err"; then
19116   ac_header_preproc=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121   ac_header_preproc=no
19122 fi
19123 rm -f conftest.err conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19125 echo "${ECHO_T}$ac_header_preproc" >&6
19126
19127 # So?  What about this header?
19128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19129   yes:no: )
19130     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19134     ac_header_preproc=yes
19135     ;;
19136   no:yes:* )
19137     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19139     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19140 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19141     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19143     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19144 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19147     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19149     (
19150       cat <<\_ASBOX
19151 ## ------------------------------------------ ##
19152 ## Report this to the AC_PACKAGE_NAME lists.  ##
19153 ## ------------------------------------------ ##
19154 _ASBOX
19155     ) |
19156       sed "s/^/$as_me: WARNING:     /" >&2
19157     ;;
19158 esac
19159 echo "$as_me:$LINENO: checking for $ac_header" >&5
19160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   eval "$as_ac_Header=\$ac_header_preproc"
19165 fi
19166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19168
19169 fi
19170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19171   cat >>confdefs.h <<_ACEOF
19172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19173 _ACEOF
19174
19175 fi
19176
19177 done
19178
19179 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19181 if test "${ac_cv_header_stdc+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h.  */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h.  */
19190 #include <stdlib.h>
19191 #include <stdarg.h>
19192 #include <string.h>
19193 #include <float.h>
19194
19195 int
19196 main ()
19197 {
19198
19199   ;
19200   return 0;
19201 }
19202 _ACEOF
19203 rm -f conftest.$ac_objext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19205   (eval $ac_compile) 2>conftest.er1
19206   ac_status=$?
19207   grep -v '^ *+' conftest.er1 >conftest.err
19208   rm -f conftest.er1
19209   cat conftest.err >&5
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); } &&
19212          { ac_try='test -z "$ac_c_werror_flag"
19213                          || test ! -s conftest.err'
19214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215   (eval $ac_try) 2>&5
19216   ac_status=$?
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); }; } &&
19219          { ac_try='test -s conftest.$ac_objext'
19220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221   (eval $ac_try) 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; }; then
19225   ac_cv_header_stdc=yes
19226 else
19227   echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 ac_cv_header_stdc=no
19231 fi
19232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19233
19234 if test $ac_cv_header_stdc = yes; then
19235   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19236   cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 #include <string.h>
19243
19244 _ACEOF
19245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19246   $EGREP "memchr" >/dev/null 2>&1; then
19247   :
19248 else
19249   ac_cv_header_stdc=no
19250 fi
19251 rm -f conftest*
19252
19253 fi
19254
19255 if test $ac_cv_header_stdc = yes; then
19256   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19257   cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <stdlib.h>
19264
19265 _ACEOF
19266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19267   $EGREP "free" >/dev/null 2>&1; then
19268   :
19269 else
19270   ac_cv_header_stdc=no
19271 fi
19272 rm -f conftest*
19273
19274 fi
19275
19276 if test $ac_cv_header_stdc = yes; then
19277   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19278   if test "$cross_compiling" = yes; then
19279   :
19280 else
19281   cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h.  */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h.  */
19287 #include <ctype.h>
19288 #if ((' ' & 0x0FF) == 0x020)
19289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19291 #else
19292 # define ISLOWER(c) \
19293                    (('a' <= (c) && (c) <= 'i') \
19294                      || ('j' <= (c) && (c) <= 'r') \
19295                      || ('s' <= (c) && (c) <= 'z'))
19296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19297 #endif
19298
19299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19300 int
19301 main ()
19302 {
19303   int i;
19304   for (i = 0; i < 256; i++)
19305     if (XOR (islower (i), ISLOWER (i))
19306         || toupper (i) != TOUPPER (i))
19307       exit(2);
19308   exit (0);
19309 }
19310 _ACEOF
19311 rm -f conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313   (eval $ac_link) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318   (eval $ac_try) 2>&5
19319   ac_status=$?
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); }; }; then
19322   :
19323 else
19324   echo "$as_me: program exited with status $ac_status" >&5
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 ( exit $ac_status )
19329 ac_cv_header_stdc=no
19330 fi
19331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19332 fi
19333 fi
19334 fi
19335 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19336 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19337 if test $ac_cv_header_stdc = yes; then
19338
19339 cat >>confdefs.h <<\_ACEOF
19340 #define STDC_HEADERS 1
19341 _ACEOF
19342
19343 fi
19344
19345 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19346 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19347 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356 #include <sys/types.h>
19357 int
19358 main ()
19359 {
19360 return makedev(0, 0);
19361   ;
19362   return 0;
19363 }
19364 _ACEOF
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19367   (eval $ac_link) 2>conftest.er1
19368   ac_status=$?
19369   grep -v '^ *+' conftest.er1 >conftest.err
19370   rm -f conftest.er1
19371   cat conftest.err >&5
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); } &&
19374          { ac_try='test -z "$ac_c_werror_flag"
19375                          || test ! -s conftest.err'
19376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377   (eval $ac_try) 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); }; } &&
19381          { ac_try='test -s conftest$ac_exeext'
19382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383   (eval $ac_try) 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; }; then
19387   ac_cv_header_sys_types_h_makedev=yes
19388 else
19389   echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19391
19392 ac_cv_header_sys_types_h_makedev=no
19393 fi
19394 rm -f conftest.err conftest.$ac_objext \
19395       conftest$ac_exeext conftest.$ac_ext
19396
19397 fi
19398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19399 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19400
19401 if test $ac_cv_header_sys_types_h_makedev = no; then
19402 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19403   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19404 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19405 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19406   echo $ECHO_N "(cached) $ECHO_C" >&6
19407 fi
19408 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19409 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19410 else
19411   # Is the header compilable?
19412 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19413 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420 $ac_includes_default
19421 #include <sys/mkdev.h>
19422 _ACEOF
19423 rm -f conftest.$ac_objext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425   (eval $ac_compile) 2>conftest.er1
19426   ac_status=$?
19427   grep -v '^ *+' conftest.er1 >conftest.err
19428   rm -f conftest.er1
19429   cat conftest.err >&5
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); } &&
19432          { ac_try='test -z "$ac_c_werror_flag"
19433                          || test ! -s conftest.err'
19434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435   (eval $ac_try) 2>&5
19436   ac_status=$?
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); }; } &&
19439          { ac_try='test -s conftest.$ac_objext'
19440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441   (eval $ac_try) 2>&5
19442   ac_status=$?
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); }; }; then
19445   ac_header_compiler=yes
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450 ac_header_compiler=no
19451 fi
19452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19454 echo "${ECHO_T}$ac_header_compiler" >&6
19455
19456 # Is the header present?
19457 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19458 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465 #include <sys/mkdev.h>
19466 _ACEOF
19467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19469   ac_status=$?
19470   grep -v '^ *+' conftest.er1 >conftest.err
19471   rm -f conftest.er1
19472   cat conftest.err >&5
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } >/dev/null; then
19475   if test -s conftest.err; then
19476     ac_cpp_err=$ac_c_preproc_warn_flag
19477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19478   else
19479     ac_cpp_err=
19480   fi
19481 else
19482   ac_cpp_err=yes
19483 fi
19484 if test -z "$ac_cpp_err"; then
19485   ac_header_preproc=yes
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490   ac_header_preproc=no
19491 fi
19492 rm -f conftest.err conftest.$ac_ext
19493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19494 echo "${ECHO_T}$ac_header_preproc" >&6
19495
19496 # So?  What about this header?
19497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19498   yes:no: )
19499     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19500 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19501     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19502 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19503     ac_header_preproc=yes
19504     ;;
19505   no:yes:* )
19506     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19507 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19508     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19509 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19510     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19511 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19512     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19513 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19514     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19515 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19516     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19517 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19518     (
19519       cat <<\_ASBOX
19520 ## ------------------------------------------ ##
19521 ## Report this to the AC_PACKAGE_NAME lists.  ##
19522 ## ------------------------------------------ ##
19523 _ASBOX
19524     ) |
19525       sed "s/^/$as_me: WARNING:     /" >&2
19526     ;;
19527 esac
19528 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19529 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19530 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19534 fi
19535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19536 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19537
19538 fi
19539 if test $ac_cv_header_sys_mkdev_h = yes; then
19540
19541 cat >>confdefs.h <<\_ACEOF
19542 #define MAJOR_IN_MKDEV 1
19543 _ACEOF
19544
19545 fi
19546
19547
19548
19549   if test $ac_cv_header_sys_mkdev_h = no; then
19550     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19551   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19552 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19553 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 fi
19556 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19557 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19558 else
19559   # Is the header compilable?
19560 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19561 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568 $ac_includes_default
19569 #include <sys/sysmacros.h>
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573   (eval $ac_compile) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_c_werror_flag"
19581                          || test ! -s conftest.err'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest.$ac_objext'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593   ac_header_compiler=yes
19594 else
19595   echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 ac_header_compiler=no
19599 fi
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19602 echo "${ECHO_T}$ac_header_compiler" >&6
19603
19604 # Is the header present?
19605 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19606 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 #include <sys/sysmacros.h>
19614 _ACEOF
19615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19617   ac_status=$?
19618   grep -v '^ *+' conftest.er1 >conftest.err
19619   rm -f conftest.er1
19620   cat conftest.err >&5
19621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622   (exit $ac_status); } >/dev/null; then
19623   if test -s conftest.err; then
19624     ac_cpp_err=$ac_c_preproc_warn_flag
19625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19626   else
19627     ac_cpp_err=
19628   fi
19629 else
19630   ac_cpp_err=yes
19631 fi
19632 if test -z "$ac_cpp_err"; then
19633   ac_header_preproc=yes
19634 else
19635   echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638   ac_header_preproc=no
19639 fi
19640 rm -f conftest.err conftest.$ac_ext
19641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19642 echo "${ECHO_T}$ac_header_preproc" >&6
19643
19644 # So?  What about this header?
19645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19646   yes:no: )
19647     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19648 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19649     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19650 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19651     ac_header_preproc=yes
19652     ;;
19653   no:yes:* )
19654     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19655 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19656     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19657 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19658     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19659 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19660     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19661 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19662     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19663 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19664     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19665 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19666     (
19667       cat <<\_ASBOX
19668 ## ------------------------------------------ ##
19669 ## Report this to the AC_PACKAGE_NAME lists.  ##
19670 ## ------------------------------------------ ##
19671 _ASBOX
19672     ) |
19673       sed "s/^/$as_me: WARNING:     /" >&2
19674     ;;
19675 esac
19676 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19677 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19678 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19682 fi
19683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19684 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19685
19686 fi
19687 if test $ac_cv_header_sys_sysmacros_h = yes; then
19688
19689 cat >>confdefs.h <<\_ACEOF
19690 #define MAJOR_IN_SYSMACROS 1
19691 _ACEOF
19692
19693 fi
19694
19695
19696   fi
19697 fi
19698
19699
19700
19701
19702
19703
19704 ac_header_dirent=no
19705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19706   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19707 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19710   echo $ECHO_N "(cached) $ECHO_C" >&6
19711 else
19712   cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718 #include <sys/types.h>
19719 #include <$ac_hdr>
19720
19721 int
19722 main ()
19723 {
19724 if ((DIR *) 0)
19725 return 0;
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732   (eval $ac_compile) 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -z "$ac_c_werror_flag"
19740                          || test ! -s conftest.err'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; } &&
19746          { ac_try='test -s conftest.$ac_objext'
19747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748   (eval $ac_try) 2>&5
19749   ac_status=$?
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); }; }; then
19752   eval "$as_ac_Header=yes"
19753 else
19754   echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 eval "$as_ac_Header=no"
19758 fi
19759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19760 fi
19761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19764   cat >>confdefs.h <<_ACEOF
19765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19766 _ACEOF
19767
19768 ac_header_dirent=$ac_hdr; break
19769 fi
19770
19771 done
19772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19773 if test $ac_header_dirent = dirent.h; then
19774   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19776 if test "${ac_cv_search_opendir+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   ac_func_search_save_LIBS=$LIBS
19780 ac_cv_search_opendir=no
19781 cat >conftest.$ac_ext <<_ACEOF
19782 /* confdefs.h.  */
19783 _ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h.  */
19787
19788 /* Override any gcc2 internal prototype to avoid an error.  */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 /* We use char because int might match the return type of a gcc2
19793    builtin and then its argument prototype would still apply.  */
19794 char opendir ();
19795 int
19796 main ()
19797 {
19798 opendir ();
19799   ;
19800   return 0;
19801 }
19802 _ACEOF
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19805   (eval $ac_link) 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } &&
19812          { ac_try='test -z "$ac_c_werror_flag"
19813                          || test ! -s conftest.err'
19814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815   (eval $ac_try) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; } &&
19819          { ac_try='test -s conftest$ac_exeext'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; }; then
19825   ac_cv_search_opendir="none required"
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 fi
19831 rm -f conftest.err conftest.$ac_objext \
19832       conftest$ac_exeext conftest.$ac_ext
19833 if test "$ac_cv_search_opendir" = no; then
19834   for ac_lib in dir; do
19835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19836     cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h.  */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h.  */
19842
19843 /* Override any gcc2 internal prototype to avoid an error.  */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 /* We use char because int might match the return type of a gcc2
19848    builtin and then its argument prototype would still apply.  */
19849 char opendir ();
19850 int
19851 main ()
19852 {
19853 opendir ();
19854   ;
19855   return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19860   (eval $ac_link) 2>conftest.er1
19861   ac_status=$?
19862   grep -v '^ *+' conftest.er1 >conftest.err
19863   rm -f conftest.er1
19864   cat conftest.err >&5
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } &&
19867          { ac_try='test -z "$ac_c_werror_flag"
19868                          || test ! -s conftest.err'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; } &&
19874          { ac_try='test -s conftest$ac_exeext'
19875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876   (eval $ac_try) 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; }; then
19880   ac_cv_search_opendir="-l$ac_lib"
19881 break
19882 else
19883   echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886 fi
19887 rm -f conftest.err conftest.$ac_objext \
19888       conftest$ac_exeext conftest.$ac_ext
19889   done
19890 fi
19891 LIBS=$ac_func_search_save_LIBS
19892 fi
19893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19895 if test "$ac_cv_search_opendir" != no; then
19896   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19897
19898 fi
19899
19900 else
19901   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19903 if test "${ac_cv_search_opendir+set}" = set; then
19904   echo $ECHO_N "(cached) $ECHO_C" >&6
19905 else
19906   ac_func_search_save_LIBS=$LIBS
19907 ac_cv_search_opendir=no
19908 cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914
19915 /* Override any gcc2 internal prototype to avoid an error.  */
19916 #ifdef __cplusplus
19917 extern "C"
19918 #endif
19919 /* We use char because int might match the return type of a gcc2
19920    builtin and then its argument prototype would still apply.  */
19921 char opendir ();
19922 int
19923 main ()
19924 {
19925 opendir ();
19926   ;
19927   return 0;
19928 }
19929 _ACEOF
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19932   (eval $ac_link) 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } &&
19939          { ac_try='test -z "$ac_c_werror_flag"
19940                          || test ! -s conftest.err'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; } &&
19946          { ac_try='test -s conftest$ac_exeext'
19947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948   (eval $ac_try) 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; }; then
19952   ac_cv_search_opendir="none required"
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957 fi
19958 rm -f conftest.err conftest.$ac_objext \
19959       conftest$ac_exeext conftest.$ac_ext
19960 if test "$ac_cv_search_opendir" = no; then
19961   for ac_lib in x; do
19962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19963     cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969
19970 /* Override any gcc2 internal prototype to avoid an error.  */
19971 #ifdef __cplusplus
19972 extern "C"
19973 #endif
19974 /* We use char because int might match the return type of a gcc2
19975    builtin and then its argument prototype would still apply.  */
19976 char opendir ();
19977 int
19978 main ()
19979 {
19980 opendir ();
19981   ;
19982   return 0;
19983 }
19984 _ACEOF
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19987   (eval $ac_link) 2>conftest.er1
19988   ac_status=$?
19989   grep -v '^ *+' conftest.er1 >conftest.err
19990   rm -f conftest.er1
19991   cat conftest.err >&5
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); } &&
19994          { ac_try='test -z "$ac_c_werror_flag"
19995                          || test ! -s conftest.err'
19996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997   (eval $ac_try) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; } &&
20001          { ac_try='test -s conftest$ac_exeext'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; }; then
20007   ac_cv_search_opendir="-l$ac_lib"
20008 break
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 fi
20014 rm -f conftest.err conftest.$ac_objext \
20015       conftest$ac_exeext conftest.$ac_ext
20016   done
20017 fi
20018 LIBS=$ac_func_search_save_LIBS
20019 fi
20020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20022 if test "$ac_cv_search_opendir" != no; then
20023   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20024
20025 fi
20026
20027 fi
20028
20029 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20030 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20031 if test "${ac_cv_header_stat_broken+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034   cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 #include <sys/types.h>
20041 #include <sys/stat.h>
20042
20043 #if defined(S_ISBLK) && defined(S_IFDIR)
20044 # if S_ISBLK (S_IFDIR)
20045 You lose.
20046 # endif
20047 #endif
20048
20049 #if defined(S_ISBLK) && defined(S_IFCHR)
20050 # if S_ISBLK (S_IFCHR)
20051 You lose.
20052 # endif
20053 #endif
20054
20055 #if defined(S_ISLNK) && defined(S_IFREG)
20056 # if S_ISLNK (S_IFREG)
20057 You lose.
20058 # endif
20059 #endif
20060
20061 #if defined(S_ISSOCK) && defined(S_IFREG)
20062 # if S_ISSOCK (S_IFREG)
20063 You lose.
20064 # endif
20065 #endif
20066
20067 _ACEOF
20068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20069   $EGREP "You lose" >/dev/null 2>&1; then
20070   ac_cv_header_stat_broken=yes
20071 else
20072   ac_cv_header_stat_broken=no
20073 fi
20074 rm -f conftest*
20075
20076 fi
20077 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20078 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20079 if test $ac_cv_header_stat_broken = yes; then
20080
20081 cat >>confdefs.h <<\_ACEOF
20082 #define STAT_MACROS_BROKEN 1
20083 _ACEOF
20084
20085 fi
20086
20087 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20088 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20089 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20090   echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092   cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h.  */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h.  */
20098 #include <sys/types.h>
20099 #include <sys/wait.h>
20100 #ifndef WEXITSTATUS
20101 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20102 #endif
20103 #ifndef WIFEXITED
20104 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20105 #endif
20106
20107 int
20108 main ()
20109 {
20110   int s;
20111   wait (&s);
20112   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 rm -f conftest.$ac_objext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119   (eval $ac_compile) 2>conftest.er1
20120   ac_status=$?
20121   grep -v '^ *+' conftest.er1 >conftest.err
20122   rm -f conftest.er1
20123   cat conftest.err >&5
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); } &&
20126          { ac_try='test -z "$ac_c_werror_flag"
20127                          || test ! -s conftest.err'
20128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129   (eval $ac_try) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); }; } &&
20133          { ac_try='test -s conftest.$ac_objext'
20134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135   (eval $ac_try) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; }; then
20139   ac_cv_header_sys_wait_h=yes
20140 else
20141   echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144 ac_cv_header_sys_wait_h=no
20145 fi
20146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20147 fi
20148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20149 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20150 if test $ac_cv_header_sys_wait_h = yes; then
20151
20152 cat >>confdefs.h <<\_ACEOF
20153 #define HAVE_SYS_WAIT_H 1
20154 _ACEOF
20155
20156 fi
20157
20158 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20159 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20160 if test "${ac_cv_header_time+set}" = set; then
20161   echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163   cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <sys/types.h>
20170 #include <sys/time.h>
20171 #include <time.h>
20172
20173 int
20174 main ()
20175 {
20176 if ((struct tm *) 0)
20177 return 0;
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184   (eval $ac_compile) 2>conftest.er1
20185   ac_status=$?
20186   grep -v '^ *+' conftest.er1 >conftest.err
20187   rm -f conftest.er1
20188   cat conftest.err >&5
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); } &&
20191          { ac_try='test -z "$ac_c_werror_flag"
20192                          || test ! -s conftest.err'
20193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194   (eval $ac_try) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; } &&
20198          { ac_try='test -s conftest.$ac_objext'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; }; then
20204   ac_cv_header_time=yes
20205 else
20206   echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 ac_cv_header_time=no
20210 fi
20211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20212 fi
20213 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20214 echo "${ECHO_T}$ac_cv_header_time" >&6
20215 if test $ac_cv_header_time = yes; then
20216
20217 cat >>confdefs.h <<\_ACEOF
20218 #define TIME_WITH_SYS_TIME 1
20219 _ACEOF
20220
20221 fi
20222
20223
20224 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20225 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20226 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229   cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235 $ac_includes_default
20236 int
20237 main ()
20238 {
20239 static struct stat ac_aggr;
20240 if (ac_aggr.st_blksize)
20241 return 0;
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248   (eval $ac_compile) 2>conftest.er1
20249   ac_status=$?
20250   grep -v '^ *+' conftest.er1 >conftest.err
20251   rm -f conftest.er1
20252   cat conftest.err >&5
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); } &&
20255          { ac_try='test -z "$ac_c_werror_flag"
20256                          || test ! -s conftest.err'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; } &&
20262          { ac_try='test -s conftest.$ac_objext'
20263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264   (eval $ac_try) 2>&5
20265   ac_status=$?
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); }; }; then
20268   ac_cv_member_struct_stat_st_blksize=yes
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279 $ac_includes_default
20280 int
20281 main ()
20282 {
20283 static struct stat ac_aggr;
20284 if (sizeof ac_aggr.st_blksize)
20285 return 0;
20286   ;
20287   return 0;
20288 }
20289 _ACEOF
20290 rm -f conftest.$ac_objext
20291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20292   (eval $ac_compile) 2>conftest.er1
20293   ac_status=$?
20294   grep -v '^ *+' conftest.er1 >conftest.err
20295   rm -f conftest.er1
20296   cat conftest.err >&5
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); } &&
20299          { ac_try='test -z "$ac_c_werror_flag"
20300                          || test ! -s conftest.err'
20301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302   (eval $ac_try) 2>&5
20303   ac_status=$?
20304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305   (exit $ac_status); }; } &&
20306          { ac_try='test -s conftest.$ac_objext'
20307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308   (eval $ac_try) 2>&5
20309   ac_status=$?
20310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311   (exit $ac_status); }; }; then
20312   ac_cv_member_struct_stat_st_blksize=yes
20313 else
20314   echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20316
20317 ac_cv_member_struct_stat_st_blksize=no
20318 fi
20319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20320 fi
20321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20322 fi
20323 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20324 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20325 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20326
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20329 _ACEOF
20330
20331
20332 cat >>confdefs.h <<\_ACEOF
20333 #define HAVE_ST_BLKSIZE 1
20334 _ACEOF
20335
20336 fi
20337
20338
20339 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20340 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20341 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344   cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 $ac_includes_default
20351 int
20352 main ()
20353 {
20354 static struct stat ac_aggr;
20355 if (ac_aggr.st_blocks)
20356 return 0;
20357   ;
20358   return 0;
20359 }
20360 _ACEOF
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363   (eval $ac_compile) 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } &&
20370          { ac_try='test -z "$ac_c_werror_flag"
20371                          || test ! -s conftest.err'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; } &&
20377          { ac_try='test -s conftest.$ac_objext'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_cv_member_struct_stat_st_blocks=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 $ac_includes_default
20395 int
20396 main ()
20397 {
20398 static struct stat ac_aggr;
20399 if (sizeof ac_aggr.st_blocks)
20400 return 0;
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407   (eval $ac_compile) 2>conftest.er1
20408   ac_status=$?
20409   grep -v '^ *+' conftest.er1 >conftest.err
20410   rm -f conftest.er1
20411   cat conftest.err >&5
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } &&
20414          { ac_try='test -z "$ac_c_werror_flag"
20415                          || test ! -s conftest.err'
20416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417   (eval $ac_try) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; } &&
20421          { ac_try='test -s conftest.$ac_objext'
20422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423   (eval $ac_try) 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   ac_cv_member_struct_stat_st_blocks=yes
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 ac_cv_member_struct_stat_st_blocks=no
20433 fi
20434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20435 fi
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20437 fi
20438 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20439 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20440 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20441
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20444 _ACEOF
20445
20446
20447 cat >>confdefs.h <<\_ACEOF
20448 #define HAVE_ST_BLOCKS 1
20449 _ACEOF
20450
20451 else
20452   case $LIBOBJS in
20453     "fileblocks.$ac_objext"   | \
20454   *" fileblocks.$ac_objext"   | \
20455     "fileblocks.$ac_objext "* | \
20456   *" fileblocks.$ac_objext "* ) ;;
20457   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20458 esac
20459
20460 fi
20461
20462
20463 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20464 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20465 if test "${ac_cv_struct_tm+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 #include <sys/types.h>
20475 #include <time.h>
20476
20477 int
20478 main ()
20479 {
20480 struct tm *tp; tp->tm_sec;
20481   ;
20482   return 0;
20483 }
20484 _ACEOF
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487   (eval $ac_compile) 2>conftest.er1
20488   ac_status=$?
20489   grep -v '^ *+' conftest.er1 >conftest.err
20490   rm -f conftest.er1
20491   cat conftest.err >&5
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); } &&
20494          { ac_try='test -z "$ac_c_werror_flag"
20495                          || test ! -s conftest.err'
20496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497   (eval $ac_try) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; } &&
20501          { ac_try='test -s conftest.$ac_objext'
20502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503   (eval $ac_try) 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507   ac_cv_struct_tm=time.h
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_cv_struct_tm=sys/time.h
20513 fi
20514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20517 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20518 if test $ac_cv_struct_tm = sys/time.h; then
20519
20520 cat >>confdefs.h <<\_ACEOF
20521 #define TM_IN_SYS_TIME 1
20522 _ACEOF
20523
20524 fi
20525
20526 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20527 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20528 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531   cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 #include <sys/types.h>
20538 #include <$ac_cv_struct_tm>
20539
20540
20541 int
20542 main ()
20543 {
20544 static struct tm ac_aggr;
20545 if (ac_aggr.tm_zone)
20546 return 0;
20547   ;
20548   return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553   (eval $ac_compile) 2>conftest.er1
20554   ac_status=$?
20555   grep -v '^ *+' conftest.er1 >conftest.err
20556   rm -f conftest.er1
20557   cat conftest.err >&5
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); } &&
20560          { ac_try='test -z "$ac_c_werror_flag"
20561                          || test ! -s conftest.err'
20562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563   (eval $ac_try) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; } &&
20567          { ac_try='test -s conftest.$ac_objext'
20568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569   (eval $ac_try) 2>&5
20570   ac_status=$?
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); }; }; then
20573   ac_cv_member_struct_tm_tm_zone=yes
20574 else
20575   echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584 #include <sys/types.h>
20585 #include <$ac_cv_struct_tm>
20586
20587
20588 int
20589 main ()
20590 {
20591 static struct tm ac_aggr;
20592 if (sizeof ac_aggr.tm_zone)
20593 return 0;
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600   (eval $ac_compile) 2>conftest.er1
20601   ac_status=$?
20602   grep -v '^ *+' conftest.er1 >conftest.err
20603   rm -f conftest.er1
20604   cat conftest.err >&5
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); } &&
20607          { ac_try='test -z "$ac_c_werror_flag"
20608                          || test ! -s conftest.err'
20609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610   (eval $ac_try) 2>&5
20611   ac_status=$?
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); }; } &&
20614          { ac_try='test -s conftest.$ac_objext'
20615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616   (eval $ac_try) 2>&5
20617   ac_status=$?
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); }; }; then
20620   ac_cv_member_struct_tm_tm_zone=yes
20621 else
20622   echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625 ac_cv_member_struct_tm_tm_zone=no
20626 fi
20627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20628 fi
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 fi
20631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20632 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20633 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20634
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_STRUCT_TM_TM_ZONE 1
20637 _ACEOF
20638
20639
20640 fi
20641
20642 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20643
20644 cat >>confdefs.h <<\_ACEOF
20645 #define HAVE_TM_ZONE 1
20646 _ACEOF
20647
20648 else
20649   echo "$as_me:$LINENO: checking for tzname" >&5
20650 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20651 if test "${ac_cv_var_tzname+set}" = set; then
20652   echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654   cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 #include <time.h>
20661 #ifndef tzname /* For SGI.  */
20662 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20663 #endif
20664
20665 int
20666 main ()
20667 {
20668 atoi(*tzname);
20669   ;
20670   return 0;
20671 }
20672 _ACEOF
20673 rm -f conftest.$ac_objext conftest$ac_exeext
20674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20675   (eval $ac_link) 2>conftest.er1
20676   ac_status=$?
20677   grep -v '^ *+' conftest.er1 >conftest.err
20678   rm -f conftest.er1
20679   cat conftest.err >&5
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); } &&
20682          { ac_try='test -z "$ac_c_werror_flag"
20683                          || test ! -s conftest.err'
20684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685   (eval $ac_try) 2>&5
20686   ac_status=$?
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); }; } &&
20689          { ac_try='test -s conftest$ac_exeext'
20690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691   (eval $ac_try) 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }; }; then
20695   ac_cv_var_tzname=yes
20696 else
20697   echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 ac_cv_var_tzname=no
20701 fi
20702 rm -f conftest.err conftest.$ac_objext \
20703       conftest$ac_exeext conftest.$ac_ext
20704 fi
20705 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20706 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20707   if test $ac_cv_var_tzname = yes; then
20708
20709 cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_TZNAME 1
20711 _ACEOF
20712
20713   fi
20714 fi
20715
20716
20717 echo "$as_me:$LINENO: checking for utime.h" >&5
20718 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20719 if test "${ba_cv_header_utime_h+set}" = set; then
20720   echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20722   cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728
20729 #include <sys/types.h>
20730 #include <utime.h>
20731 int
20732 main ()
20733 {
20734 struct utimbuf foo
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20741   (eval $ac_compile) 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -z "$ac_c_werror_flag"
20749                          || test ! -s conftest.err'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ba_cv_header_utime_h=yes
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 ba_cv_header_utime_h=no
20767 fi
20768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20769 fi
20770 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20771 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20772 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20773 #define HAVE_UTIME_H 1
20774 _ACEOF
20775
20776
20777 echo "$as_me:$LINENO: checking for socklen_t" >&5
20778 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20779 if test "${ba_cv_header_socklen_t+set}" = set; then
20780   echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782   cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h.  */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h.  */
20788
20789 #include <sys/types.h>
20790 #include <sys/socket.h>
20791 int
20792 main ()
20793 {
20794 socklen_t x
20795   ;
20796   return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801   (eval $ac_compile) 2>conftest.er1
20802   ac_status=$?
20803   grep -v '^ *+' conftest.er1 >conftest.err
20804   rm -f conftest.er1
20805   cat conftest.err >&5
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -z "$ac_c_werror_flag"
20809                          || test ! -s conftest.err'
20810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811   (eval $ac_try) 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; } &&
20815          { ac_try='test -s conftest.$ac_objext'
20816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817   (eval $ac_try) 2>&5
20818   ac_status=$?
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); }; }; then
20821   ba_cv_header_socklen_t=yes
20822 else
20823   echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826 ba_cv_header_socklen_t=no
20827 fi
20828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20829 fi
20830 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20831 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20832 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20833 #define HAVE_SOCKLEN_T 1
20834 _ACEOF
20835
20836
20837 echo "$as_me:$LINENO: checking for bigendian" >&5
20838 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20839 if test "${ba_cv_bigendian+set}" = set; then
20840   echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842   if test "$cross_compiling" = yes; then
20843   ba_cv_bigendian=no
20844 else
20845   cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20852 _ACEOF
20853 rm -f conftest$ac_exeext
20854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20855   (eval $ac_link) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; }; then
20864   ba_cv_bigendian=yes
20865 else
20866   echo "$as_me: program exited with status $ac_status" >&5
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870 ( exit $ac_status )
20871 ba_cv_bigendian=no
20872 fi
20873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20874 fi
20875 fi
20876 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20877 echo "${ECHO_T}$ba_cv_bigendian" >&6
20878 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20879 #define HAVE_BIGENDIAN 1
20880 _ACEOF
20881
20882
20883 ac_ext=cc
20884 ac_cpp='$CXXCPP $CPPFLAGS'
20885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20888
20889
20890 echo "$as_me:$LINENO: checking for typeof" >&5
20891 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20892 if test "${ba_cv_have_typeof+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   if test "$cross_compiling" = yes; then
20896   ba_cv_have_typeof=no
20897 else
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 main(){char *a = 0; a = (typeof a)a;}
20905 _ACEOF
20906 rm -f conftest$ac_exeext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20908   (eval $ac_link) 2>&5
20909   ac_status=$?
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913   (eval $ac_try) 2>&5
20914   ac_status=$?
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); }; }; then
20917   ba_cv_have_typeof=yes
20918 else
20919   echo "$as_me: program exited with status $ac_status" >&5
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923 ( exit $ac_status )
20924 ba_cv_have_typeof=no
20925 fi
20926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20927 fi
20928 fi
20929 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20930 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20931 test $ba_cv_have_typeof = yes &&
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_TYPEOF 1
20934 _ACEOF
20935
20936 ac_ext=c
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20941
20942
20943 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20944 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20945 if test "${ac_cv_c_const+set}" = set; then
20946   echo $ECHO_N "(cached) $ECHO_C" >&6
20947 else
20948   cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954
20955 int
20956 main ()
20957 {
20958 /* FIXME: Include the comments suggested by Paul. */
20959 #ifndef __cplusplus
20960   /* Ultrix mips cc rejects this.  */
20961   typedef int charset[2];
20962   const charset x;
20963   /* SunOS 4.1.1 cc rejects this.  */
20964   char const *const *ccp;
20965   char **p;
20966   /* NEC SVR4.0.2 mips cc rejects this.  */
20967   struct point {int x, y;};
20968   static struct point const zero = {0,0};
20969   /* AIX XL C 1.02.0.0 rejects this.
20970      It does not let you subtract one const X* pointer from another in
20971      an arm of an if-expression whose if-part is not a constant
20972      expression */
20973   const char *g = "string";
20974   ccp = &g + (g ? g-g : 0);
20975   /* HPUX 7.0 cc rejects these. */
20976   ++ccp;
20977   p = (char**) ccp;
20978   ccp = (char const *const *) p;
20979   { /* SCO 3.2v4 cc rejects this.  */
20980     char *t;
20981     char const *s = 0 ? (char *) 0 : (char const *) 0;
20982
20983     *t++ = 0;
20984   }
20985   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20986     int x[] = {25, 17};
20987     const int *foo = &x[0];
20988     ++foo;
20989   }
20990   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20991     typedef const int *iptr;
20992     iptr p = 0;
20993     ++p;
20994   }
20995   { /* AIX XL C 1.02.0.0 rejects this saying
20996        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20997     struct s { int j; const int *ap[3]; };
20998     struct s *b; b->j = 5;
20999   }
21000   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21001     const int foo = 10;
21002   }
21003 #endif
21004
21005   ;
21006   return 0;
21007 }
21008 _ACEOF
21009 rm -f conftest.$ac_objext
21010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21011   (eval $ac_compile) 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } &&
21018          { ac_try='test -z "$ac_c_werror_flag"
21019                          || test ! -s conftest.err'
21020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021   (eval $ac_try) 2>&5
21022   ac_status=$?
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); }; } &&
21025          { ac_try='test -s conftest.$ac_objext'
21026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027   (eval $ac_try) 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; }; then
21031   ac_cv_c_const=yes
21032 else
21033   echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 ac_cv_c_const=no
21037 fi
21038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21039 fi
21040 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21041 echo "${ECHO_T}$ac_cv_c_const" >&6
21042 if test $ac_cv_c_const = no; then
21043
21044 cat >>confdefs.h <<\_ACEOF
21045 #define const
21046 _ACEOF
21047
21048 fi
21049
21050
21051
21052 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21053 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21054 fstype=no
21055 # The order of these tests is important.
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h.  */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h.  */
21062 #include <sys/statvfs.h>
21063 #include <sys/fstyp.h>
21064 _ACEOF
21065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21066   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21067   ac_status=$?
21068   grep -v '^ *+' conftest.er1 >conftest.err
21069   rm -f conftest.er1
21070   cat conftest.err >&5
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); } >/dev/null; then
21073   if test -s conftest.err; then
21074     ac_cpp_err=$ac_c_preproc_warn_flag
21075     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21076   else
21077     ac_cpp_err=
21078   fi
21079 else
21080   ac_cpp_err=yes
21081 fi
21082 if test -z "$ac_cpp_err"; then
21083   cat >>confdefs.h <<\_ACEOF
21084 #define FSTYPE_STATVFS 1
21085 _ACEOF
21086  fstype=SVR4
21087 else
21088   echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091
21092 fi
21093 rm -f conftest.err conftest.$ac_ext
21094 if test $fstype = no; then
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h.  */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h.  */
21101 #include <sys/statfs.h>
21102 #include <sys/fstyp.h>
21103 _ACEOF
21104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21106   ac_status=$?
21107   grep -v '^ *+' conftest.er1 >conftest.err
21108   rm -f conftest.er1
21109   cat conftest.err >&5
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); } >/dev/null; then
21112   if test -s conftest.err; then
21113     ac_cpp_err=$ac_c_preproc_warn_flag
21114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21115   else
21116     ac_cpp_err=
21117   fi
21118 else
21119   ac_cpp_err=yes
21120 fi
21121 if test -z "$ac_cpp_err"; then
21122   cat >>confdefs.h <<\_ACEOF
21123 #define FSTYPE_USG_STATFS 1
21124 _ACEOF
21125  fstype=SVR3
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130
21131 fi
21132 rm -f conftest.err conftest.$ac_ext
21133 fi
21134 if test $fstype = no; then
21135 cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141 #include <sys/statfs.h>
21142 #include <sys/vmount.h>
21143 _ACEOF
21144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21146   ac_status=$?
21147   grep -v '^ *+' conftest.er1 >conftest.err
21148   rm -f conftest.er1
21149   cat conftest.err >&5
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } >/dev/null; then
21152   if test -s conftest.err; then
21153     ac_cpp_err=$ac_c_preproc_warn_flag
21154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21155   else
21156     ac_cpp_err=
21157   fi
21158 else
21159   ac_cpp_err=yes
21160 fi
21161 if test -z "$ac_cpp_err"; then
21162   cat >>confdefs.h <<\_ACEOF
21163 #define FSTYPE_AIX_STATFS 1
21164 _ACEOF
21165  fstype=AIX
21166 else
21167   echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170
21171 fi
21172 rm -f conftest.err conftest.$ac_ext
21173 fi
21174 if test $fstype = no; then
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181 #include <mntent.h>
21182 _ACEOF
21183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21185   ac_status=$?
21186   grep -v '^ *+' conftest.er1 >conftest.err
21187   rm -f conftest.er1
21188   cat conftest.err >&5
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } >/dev/null; then
21191   if test -s conftest.err; then
21192     ac_cpp_err=$ac_c_preproc_warn_flag
21193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21194   else
21195     ac_cpp_err=
21196   fi
21197 else
21198   ac_cpp_err=yes
21199 fi
21200 if test -z "$ac_cpp_err"; then
21201   cat >>confdefs.h <<\_ACEOF
21202 #define FSTYPE_MNTENT 1
21203 _ACEOF
21204  fstype=4.3BSD
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209
21210 fi
21211 rm -f conftest.err conftest.$ac_ext
21212 fi
21213 if test $fstype = no; then
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h.  */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h.  */
21220 #include <sys/mount.h>
21221
21222 _ACEOF
21223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21224   $EGREP "f_type;" >/dev/null 2>&1; then
21225   cat >>confdefs.h <<\_ACEOF
21226 #define FSTYPE_STATFS 1
21227 _ACEOF
21228  fstype=4.4BSD/OSF1
21229 fi
21230 rm -f conftest*
21231
21232 fi
21233 if test $fstype = no; then
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <sys/mount.h>
21241 #include <sys/fs_types.h>
21242 _ACEOF
21243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } >/dev/null; then
21251   if test -s conftest.err; then
21252     ac_cpp_err=$ac_c_preproc_warn_flag
21253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21254   else
21255     ac_cpp_err=
21256   fi
21257 else
21258   ac_cpp_err=yes
21259 fi
21260 if test -z "$ac_cpp_err"; then
21261   cat >>confdefs.h <<\_ACEOF
21262 #define FSTYPE_GETMNT 1
21263 _ACEOF
21264  fstype=Ultrix
21265 else
21266   echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21268
21269
21270 fi
21271 rm -f conftest.err conftest.$ac_ext
21272 fi
21273 echo "$as_me:$LINENO: result: $fstype" >&5
21274 echo "${ECHO_T}$fstype" >&6
21275
21276 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21277   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21278 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21279 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21280   echo $ECHO_N "(cached) $ECHO_C" >&6
21281 fi
21282 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21283 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21284 else
21285   # Is the header compilable?
21286 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21287 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h.  */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h.  */
21294 $ac_includes_default
21295 #include <sys/statvfs.h>
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299   (eval $ac_compile) 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -z "$ac_c_werror_flag"
21307                          || test ! -s conftest.err'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest.$ac_objext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_header_compiler=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_header_compiler=no
21325 fi
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21328 echo "${ECHO_T}$ac_header_compiler" >&6
21329
21330 # Is the header present?
21331 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21332 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 #include <sys/statvfs.h>
21340 _ACEOF
21341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21343   ac_status=$?
21344   grep -v '^ *+' conftest.er1 >conftest.err
21345   rm -f conftest.er1
21346   cat conftest.err >&5
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); } >/dev/null; then
21349   if test -s conftest.err; then
21350     ac_cpp_err=$ac_c_preproc_warn_flag
21351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21352   else
21353     ac_cpp_err=
21354   fi
21355 else
21356   ac_cpp_err=yes
21357 fi
21358 if test -z "$ac_cpp_err"; then
21359   ac_header_preproc=yes
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364   ac_header_preproc=no
21365 fi
21366 rm -f conftest.err conftest.$ac_ext
21367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368 echo "${ECHO_T}$ac_header_preproc" >&6
21369
21370 # So?  What about this header?
21371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21372   yes:no: )
21373     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21374 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21376 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21377     ac_header_preproc=yes
21378     ;;
21379   no:yes:* )
21380     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21381 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21382     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21383 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21384     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21385 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21386     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21387 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21388     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21389 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21390     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21391 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21392     (
21393       cat <<\_ASBOX
21394 ## ------------------------------------------ ##
21395 ## Report this to the AC_PACKAGE_NAME lists.  ##
21396 ## ------------------------------------------ ##
21397 _ASBOX
21398     ) |
21399       sed "s/^/$as_me: WARNING:     /" >&2
21400     ;;
21401 esac
21402 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21403 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21404 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21408 fi
21409 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21410 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21411
21412 fi
21413 if test $ac_cv_header_sys_statvfs_h = yes; then
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_SYS_STATVFS_H 1
21417 _ACEOF
21418
21419 fi
21420
21421
21422
21423 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21424 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21425 if test "${ac_cv_type_signal+set}" = set; then
21426   echo $ECHO_N "(cached) $ECHO_C" >&6
21427 else
21428   cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h.  */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h.  */
21434 #include <sys/types.h>
21435 #include <signal.h>
21436 #ifdef signal
21437 # undef signal
21438 #endif
21439 #ifdef __cplusplus
21440 extern "C" void (*signal (int, void (*)(int)))(int);
21441 #else
21442 void (*signal ()) ();
21443 #endif
21444
21445 int
21446 main ()
21447 {
21448 int i;
21449   ;
21450   return 0;
21451 }
21452 _ACEOF
21453 rm -f conftest.$ac_objext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21455   (eval $ac_compile) 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } &&
21462          { ac_try='test -z "$ac_c_werror_flag"
21463                          || test ! -s conftest.err'
21464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465   (eval $ac_try) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; } &&
21469          { ac_try='test -s conftest.$ac_objext'
21470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471   (eval $ac_try) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); }; }; then
21475   ac_cv_type_signal=void
21476 else
21477   echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480 ac_cv_type_signal=int
21481 fi
21482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21483 fi
21484 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21485 echo "${ECHO_T}$ac_cv_type_signal" >&6
21486
21487 cat >>confdefs.h <<_ACEOF
21488 #define RETSIGTYPE $ac_cv_type_signal
21489 _ACEOF
21490
21491
21492
21493   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21494 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21495   if test "${bash_cv_signal_vintage+set}" = set; then
21496   echo $ECHO_N "(cached) $ECHO_C" >&6
21497 else
21498
21499     cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 #include <signal.h>
21506 int
21507 main ()
21508 {
21509
21510       sigset_t ss;
21511       struct sigaction sa;
21512       sigemptyset(&ss); sigsuspend(&ss);
21513       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21514       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21515
21516   ;
21517   return 0;
21518 }
21519 _ACEOF
21520 rm -f conftest.$ac_objext conftest$ac_exeext
21521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21522   (eval $ac_link) 2>conftest.er1
21523   ac_status=$?
21524   grep -v '^ *+' conftest.er1 >conftest.err
21525   rm -f conftest.er1
21526   cat conftest.err >&5
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } &&
21529          { ac_try='test -z "$ac_c_werror_flag"
21530                          || test ! -s conftest.err'
21531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532   (eval $ac_try) 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; } &&
21536          { ac_try='test -s conftest$ac_exeext'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; }; then
21542   bash_cv_signal_vintage="posix"
21543 else
21544   echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547
21548       cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h.  */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h.  */
21554 #include <signal.h>
21555 int
21556 main ()
21557 {
21558
21559           int mask = sigmask(SIGINT);
21560           sigsetmask(mask); sigblock(mask); sigpause(mask);
21561
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568   (eval $ac_link) 2>conftest.er1
21569   ac_status=$?
21570   grep -v '^ *+' conftest.er1 >conftest.err
21571   rm -f conftest.er1
21572   cat conftest.err >&5
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); } &&
21575          { ac_try='test -z "$ac_c_werror_flag"
21576                          || test ! -s conftest.err'
21577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578   (eval $ac_try) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; } &&
21582          { ac_try='test -s conftest$ac_exeext'
21583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); }; }; then
21588   bash_cv_signal_vintage="4.2bsd"
21589 else
21590   echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593
21594         cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600
21601           #include <signal.h>
21602           RETSIGTYPE foo() { }
21603 int
21604 main ()
21605 {
21606
21607                   int mask = sigmask(SIGINT);
21608                   sigset(SIGINT, foo); sigrelse(SIGINT);
21609                   sighold(SIGINT); sigpause(SIGINT);
21610
21611   ;
21612   return 0;
21613 }
21614 _ACEOF
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21617   (eval $ac_link) 2>conftest.er1
21618   ac_status=$?
21619   grep -v '^ *+' conftest.er1 >conftest.err
21620   rm -f conftest.er1
21621   cat conftest.err >&5
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); } &&
21624          { ac_try='test -z "$ac_c_werror_flag"
21625                          || test ! -s conftest.err'
21626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627   (eval $ac_try) 2>&5
21628   ac_status=$?
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); }; } &&
21631          { ac_try='test -s conftest$ac_exeext'
21632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633   (eval $ac_try) 2>&5
21634   ac_status=$?
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); }; }; then
21637   bash_cv_signal_vintage="svr3"
21638 else
21639   echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21641
21642 bash_cv_signal_vintage="v7"
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 rm -f conftest.err conftest.$ac_objext \
21654       conftest$ac_exeext conftest.$ac_ext
21655
21656 fi
21657
21658   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21659 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21660   if test "$bash_cv_signal_vintage" = "posix"; then
21661     cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_POSIX_SIGNALS 1
21663 _ACEOF
21664
21665   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21666     cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_BSD_SIGNALS 1
21668 _ACEOF
21669
21670   elif test "$bash_cv_signal_vintage" = "svr3"; then
21671     cat >>confdefs.h <<\_ACEOF
21672 #define HAVE_USG_SIGHOLD 1
21673 _ACEOF
21674
21675   fi
21676
21677 echo "$as_me:$LINENO: checking for mode_t" >&5
21678 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21679 if test "${ac_cv_type_mode_t+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688 $ac_includes_default
21689 int
21690 main ()
21691 {
21692 if ((mode_t *) 0)
21693   return 0;
21694 if (sizeof (mode_t))
21695   return 0;
21696   ;
21697   return 0;
21698 }
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21702   (eval $ac_compile) 2>conftest.er1
21703   ac_status=$?
21704   grep -v '^ *+' conftest.er1 >conftest.err
21705   rm -f conftest.er1
21706   cat conftest.err >&5
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); } &&
21709          { ac_try='test -z "$ac_c_werror_flag"
21710                          || test ! -s conftest.err'
21711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712   (eval $ac_try) 2>&5
21713   ac_status=$?
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); }; } &&
21716          { ac_try='test -s conftest.$ac_objext'
21717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718   (eval $ac_try) 2>&5
21719   ac_status=$?
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); }; }; then
21722   ac_cv_type_mode_t=yes
21723 else
21724   echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727 ac_cv_type_mode_t=no
21728 fi
21729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21730 fi
21731 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21732 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21733 if test $ac_cv_type_mode_t = yes; then
21734   :
21735 else
21736
21737 cat >>confdefs.h <<_ACEOF
21738 #define mode_t int
21739 _ACEOF
21740
21741 fi
21742
21743 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21744 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21745 if test "${ac_cv_type_uid_t+set}" = set; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 else
21748   cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754 #include <sys/types.h>
21755
21756 _ACEOF
21757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21758   $EGREP "uid_t" >/dev/null 2>&1; then
21759   ac_cv_type_uid_t=yes
21760 else
21761   ac_cv_type_uid_t=no
21762 fi
21763 rm -f conftest*
21764
21765 fi
21766 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21767 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21768 if test $ac_cv_type_uid_t = no; then
21769
21770 cat >>confdefs.h <<\_ACEOF
21771 #define uid_t int
21772 _ACEOF
21773
21774
21775 cat >>confdefs.h <<\_ACEOF
21776 #define gid_t int
21777 _ACEOF
21778
21779 fi
21780
21781 echo "$as_me:$LINENO: checking for size_t" >&5
21782 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21783 if test "${ac_cv_type_size_t+set}" = set; then
21784   echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786   cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 $ac_includes_default
21793 int
21794 main ()
21795 {
21796 if ((size_t *) 0)
21797   return 0;
21798 if (sizeof (size_t))
21799   return 0;
21800   ;
21801   return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest.$ac_objext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806   (eval $ac_compile) 2>conftest.er1
21807   ac_status=$?
21808   grep -v '^ *+' conftest.er1 >conftest.err
21809   rm -f conftest.er1
21810   cat conftest.err >&5
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); } &&
21813          { ac_try='test -z "$ac_c_werror_flag"
21814                          || test ! -s conftest.err'
21815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816   (eval $ac_try) 2>&5
21817   ac_status=$?
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); }; } &&
21820          { ac_try='test -s conftest.$ac_objext'
21821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822   (eval $ac_try) 2>&5
21823   ac_status=$?
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); }; }; then
21826   ac_cv_type_size_t=yes
21827 else
21828   echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831 ac_cv_type_size_t=no
21832 fi
21833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21834 fi
21835 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21836 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21837 if test $ac_cv_type_size_t = yes; then
21838   :
21839 else
21840
21841 cat >>confdefs.h <<_ACEOF
21842 #define size_t unsigned
21843 _ACEOF
21844
21845 fi
21846
21847 echo "$as_me:$LINENO: checking for pid_t" >&5
21848 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21849 if test "${ac_cv_type_pid_t+set}" = set; then
21850   echo $ECHO_N "(cached) $ECHO_C" >&6
21851 else
21852   cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858 $ac_includes_default
21859 int
21860 main ()
21861 {
21862 if ((pid_t *) 0)
21863   return 0;
21864 if (sizeof (pid_t))
21865   return 0;
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21872   (eval $ac_compile) 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -z "$ac_c_werror_flag"
21880                          || test ! -s conftest.err'
21881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882   (eval $ac_try) 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); }; } &&
21886          { ac_try='test -s conftest.$ac_objext'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; }; then
21892   ac_cv_type_pid_t=yes
21893 else
21894   echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 ac_cv_type_pid_t=no
21898 fi
21899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21900 fi
21901 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21902 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21903 if test $ac_cv_type_pid_t = yes; then
21904   :
21905 else
21906
21907 cat >>confdefs.h <<_ACEOF
21908 #define pid_t int
21909 _ACEOF
21910
21911 fi
21912
21913 echo "$as_me:$LINENO: checking for off_t" >&5
21914 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21915 if test "${ac_cv_type_off_t+set}" = set; then
21916   echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918   cat >conftest.$ac_ext <<_ACEOF
21919 /* confdefs.h.  */
21920 _ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h.  */
21924 $ac_includes_default
21925 int
21926 main ()
21927 {
21928 if ((off_t *) 0)
21929   return 0;
21930 if (sizeof (off_t))
21931   return 0;
21932   ;
21933   return 0;
21934 }
21935 _ACEOF
21936 rm -f conftest.$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938   (eval $ac_compile) 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } &&
21945          { ac_try='test -z "$ac_c_werror_flag"
21946                          || test ! -s conftest.err'
21947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948   (eval $ac_try) 2>&5
21949   ac_status=$?
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); }; } &&
21952          { ac_try='test -s conftest.$ac_objext'
21953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954   (eval $ac_try) 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); }; }; then
21958   ac_cv_type_off_t=yes
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963 ac_cv_type_off_t=no
21964 fi
21965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21966 fi
21967 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21968 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21969 if test $ac_cv_type_off_t = yes; then
21970   :
21971 else
21972
21973 cat >>confdefs.h <<_ACEOF
21974 #define off_t long
21975 _ACEOF
21976
21977 fi
21978
21979 echo "$as_me:$LINENO: checking for ino_t" >&5
21980 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21981 if test "${ac_cv_type_ino_t+set}" = set; then
21982   echo $ECHO_N "(cached) $ECHO_C" >&6
21983 else
21984   cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990 $ac_includes_default
21991 int
21992 main ()
21993 {
21994 if ((ino_t *) 0)
21995   return 0;
21996 if (sizeof (ino_t))
21997   return 0;
21998   ;
21999   return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004   (eval $ac_compile) 2>conftest.er1
22005   ac_status=$?
22006   grep -v '^ *+' conftest.er1 >conftest.err
22007   rm -f conftest.er1
22008   cat conftest.err >&5
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); } &&
22011          { ac_try='test -z "$ac_c_werror_flag"
22012                          || test ! -s conftest.err'
22013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014   (eval $ac_try) 2>&5
22015   ac_status=$?
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); }; } &&
22018          { ac_try='test -s conftest.$ac_objext'
22019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020   (eval $ac_try) 2>&5
22021   ac_status=$?
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); }; }; then
22024   ac_cv_type_ino_t=yes
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ac_cv_type_ino_t=no
22030 fi
22031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22032 fi
22033 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22034 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22035 if test $ac_cv_type_ino_t = yes; then
22036   :
22037 else
22038
22039 cat >>confdefs.h <<_ACEOF
22040 #define ino_t unsigned long
22041 _ACEOF
22042
22043 fi
22044
22045 echo "$as_me:$LINENO: checking for dev_t" >&5
22046 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22047 if test "${ac_cv_type_dev_t+set}" = set; then
22048   echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050   cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056 $ac_includes_default
22057 int
22058 main ()
22059 {
22060 if ((dev_t *) 0)
22061   return 0;
22062 if (sizeof (dev_t))
22063   return 0;
22064   ;
22065   return 0;
22066 }
22067 _ACEOF
22068 rm -f conftest.$ac_objext
22069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22070   (eval $ac_compile) 2>conftest.er1
22071   ac_status=$?
22072   grep -v '^ *+' conftest.er1 >conftest.err
22073   rm -f conftest.er1
22074   cat conftest.err >&5
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); } &&
22077          { ac_try='test -z "$ac_c_werror_flag"
22078                          || test ! -s conftest.err'
22079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); }; } &&
22084          { ac_try='test -s conftest.$ac_objext'
22085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086   (eval $ac_try) 2>&5
22087   ac_status=$?
22088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); }; }; then
22090   ac_cv_type_dev_t=yes
22091 else
22092   echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095 ac_cv_type_dev_t=no
22096 fi
22097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22098 fi
22099 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22100 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22101 if test $ac_cv_type_dev_t = yes; then
22102   :
22103 else
22104
22105 cat >>confdefs.h <<_ACEOF
22106 #define dev_t unsigned long
22107 _ACEOF
22108
22109 fi
22110
22111 echo "$as_me:$LINENO: checking for daddr_t" >&5
22112 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22113 if test "${ac_cv_type_daddr_t+set}" = set; then
22114   echo $ECHO_N "(cached) $ECHO_C" >&6
22115 else
22116   cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 $ac_includes_default
22123 int
22124 main ()
22125 {
22126 if ((daddr_t *) 0)
22127   return 0;
22128 if (sizeof (daddr_t))
22129   return 0;
22130   ;
22131   return 0;
22132 }
22133 _ACEOF
22134 rm -f conftest.$ac_objext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22136   (eval $ac_compile) 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } &&
22143          { ac_try='test -z "$ac_c_werror_flag"
22144                          || test ! -s conftest.err'
22145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146   (eval $ac_try) 2>&5
22147   ac_status=$?
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); }; } &&
22150          { ac_try='test -s conftest.$ac_objext'
22151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152   (eval $ac_try) 2>&5
22153   ac_status=$?
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); }; }; then
22156   ac_cv_type_daddr_t=yes
22157 else
22158   echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22160
22161 ac_cv_type_daddr_t=no
22162 fi
22163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22164 fi
22165 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22166 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22167 if test $ac_cv_type_daddr_t = yes; then
22168   :
22169 else
22170
22171 cat >>confdefs.h <<_ACEOF
22172 #define daddr_t long
22173 _ACEOF
22174
22175 fi
22176
22177 echo "$as_me:$LINENO: checking for major_t" >&5
22178 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22179 if test "${ac_cv_type_major_t+set}" = set; then
22180   echo $ECHO_N "(cached) $ECHO_C" >&6
22181 else
22182   cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h.  */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h.  */
22188 $ac_includes_default
22189 int
22190 main ()
22191 {
22192 if ((major_t *) 0)
22193   return 0;
22194 if (sizeof (major_t))
22195   return 0;
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202   (eval $ac_compile) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } &&
22209          { ac_try='test -z "$ac_c_werror_flag"
22210                          || test ! -s conftest.err'
22211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; } &&
22216          { ac_try='test -s conftest.$ac_objext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ac_cv_type_major_t=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 ac_cv_type_major_t=no
22228 fi
22229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22230 fi
22231 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22232 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22233 if test $ac_cv_type_major_t = yes; then
22234   :
22235 else
22236
22237 cat >>confdefs.h <<_ACEOF
22238 #define major_t int
22239 _ACEOF
22240
22241 fi
22242
22243 echo "$as_me:$LINENO: checking for minor_t" >&5
22244 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22245 if test "${ac_cv_type_minor_t+set}" = set; then
22246   echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248   cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254 $ac_includes_default
22255 int
22256 main ()
22257 {
22258 if ((minor_t *) 0)
22259   return 0;
22260 if (sizeof (minor_t))
22261   return 0;
22262   ;
22263   return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22268   (eval $ac_compile) 2>conftest.er1
22269   ac_status=$?
22270   grep -v '^ *+' conftest.er1 >conftest.err
22271   rm -f conftest.er1
22272   cat conftest.err >&5
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); } &&
22275          { ac_try='test -z "$ac_c_werror_flag"
22276                          || test ! -s conftest.err'
22277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278   (eval $ac_try) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; } &&
22282          { ac_try='test -s conftest.$ac_objext'
22283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284   (eval $ac_try) 2>&5
22285   ac_status=$?
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); }; }; then
22288   ac_cv_type_minor_t=yes
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293 ac_cv_type_minor_t=no
22294 fi
22295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22296 fi
22297 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22298 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22299 if test $ac_cv_type_minor_t = yes; then
22300   :
22301 else
22302
22303 cat >>confdefs.h <<_ACEOF
22304 #define minor_t int
22305 _ACEOF
22306
22307 fi
22308
22309 echo "$as_me:$LINENO: checking for ssize_t" >&5
22310 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22311 if test "${ac_cv_type_ssize_t+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320 $ac_includes_default
22321 int
22322 main ()
22323 {
22324 if ((ssize_t *) 0)
22325   return 0;
22326 if (sizeof (ssize_t))
22327   return 0;
22328   ;
22329   return 0;
22330 }
22331 _ACEOF
22332 rm -f conftest.$ac_objext
22333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22334   (eval $ac_compile) 2>conftest.er1
22335   ac_status=$?
22336   grep -v '^ *+' conftest.er1 >conftest.err
22337   rm -f conftest.er1
22338   cat conftest.err >&5
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); } &&
22341          { ac_try='test -z "$ac_c_werror_flag"
22342                          || test ! -s conftest.err'
22343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344   (eval $ac_try) 2>&5
22345   ac_status=$?
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); }; } &&
22348          { ac_try='test -s conftest.$ac_objext'
22349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350   (eval $ac_try) 2>&5
22351   ac_status=$?
22352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353   (exit $ac_status); }; }; then
22354   ac_cv_type_ssize_t=yes
22355 else
22356   echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359 ac_cv_type_ssize_t=no
22360 fi
22361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22362 fi
22363 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22364 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22365 if test $ac_cv_type_ssize_t = yes; then
22366   :
22367 else
22368
22369 cat >>confdefs.h <<_ACEOF
22370 #define ssize_t int
22371 _ACEOF
22372
22373 fi
22374
22375 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22376 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22377 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22378   echo $ECHO_N "(cached) $ECHO_C" >&6
22379 else
22380   cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h.  */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h.  */
22386 $ac_includes_default
22387 int
22388 main ()
22389 {
22390 static struct stat ac_aggr;
22391 if (ac_aggr.st_blocks)
22392 return 0;
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22399   (eval $ac_compile) 2>conftest.er1
22400   ac_status=$?
22401   grep -v '^ *+' conftest.er1 >conftest.err
22402   rm -f conftest.er1
22403   cat conftest.err >&5
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } &&
22406          { ac_try='test -z "$ac_c_werror_flag"
22407                          || test ! -s conftest.err'
22408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409   (eval $ac_try) 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); }; } &&
22413          { ac_try='test -s conftest.$ac_objext'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; }; then
22419   ac_cv_member_struct_stat_st_blocks=yes
22420 else
22421   echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22423
22424 cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h.  */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h.  */
22430 $ac_includes_default
22431 int
22432 main ()
22433 {
22434 static struct stat ac_aggr;
22435 if (sizeof ac_aggr.st_blocks)
22436 return 0;
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443   (eval $ac_compile) 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } &&
22450          { ac_try='test -z "$ac_c_werror_flag"
22451                          || test ! -s conftest.err'
22452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453   (eval $ac_try) 2>&5
22454   ac_status=$?
22455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456   (exit $ac_status); }; } &&
22457          { ac_try='test -s conftest.$ac_objext'
22458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459   (eval $ac_try) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); }; }; then
22463   ac_cv_member_struct_stat_st_blocks=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 ac_cv_member_struct_stat_st_blocks=no
22469 fi
22470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22471 fi
22472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22473 fi
22474 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22475 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22476 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22477
22478 cat >>confdefs.h <<_ACEOF
22479 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22480 _ACEOF
22481
22482
22483 cat >>confdefs.h <<\_ACEOF
22484 #define HAVE_ST_BLOCKS 1
22485 _ACEOF
22486
22487 else
22488   case $LIBOBJS in
22489     "fileblocks.$ac_objext"   | \
22490   *" fileblocks.$ac_objext"   | \
22491     "fileblocks.$ac_objext "* | \
22492   *" fileblocks.$ac_objext "* ) ;;
22493   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22494 esac
22495
22496 fi
22497
22498
22499
22500 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22501 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22502 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22503   echo $ECHO_N "(cached) $ECHO_C" >&6
22504 else
22505   cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h.  */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h.  */
22511 $ac_includes_default
22512 int
22513 main ()
22514 {
22515 static struct stat ac_aggr;
22516 if (ac_aggr.st_rdev)
22517 return 0;
22518   ;
22519   return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524   (eval $ac_compile) 2>conftest.er1
22525   ac_status=$?
22526   grep -v '^ *+' conftest.er1 >conftest.err
22527   rm -f conftest.er1
22528   cat conftest.err >&5
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } &&
22531          { ac_try='test -z "$ac_c_werror_flag"
22532                          || test ! -s conftest.err'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; } &&
22538          { ac_try='test -s conftest.$ac_objext'
22539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540   (eval $ac_try) 2>&5
22541   ac_status=$?
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); }; }; then
22544   ac_cv_member_struct_stat_st_rdev=yes
22545 else
22546   echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549 cat >conftest.$ac_ext <<_ACEOF
22550 /* confdefs.h.  */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h.  */
22555 $ac_includes_default
22556 int
22557 main ()
22558 {
22559 static struct stat ac_aggr;
22560 if (sizeof ac_aggr.st_rdev)
22561 return 0;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22568   (eval $ac_compile) 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } &&
22575          { ac_try='test -z "$ac_c_werror_flag"
22576                          || test ! -s conftest.err'
22577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578   (eval $ac_try) 2>&5
22579   ac_status=$?
22580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581   (exit $ac_status); }; } &&
22582          { ac_try='test -s conftest.$ac_objext'
22583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584   (eval $ac_try) 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); }; }; then
22588   ac_cv_member_struct_stat_st_rdev=yes
22589 else
22590   echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593 ac_cv_member_struct_stat_st_rdev=no
22594 fi
22595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22596 fi
22597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22598 fi
22599 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22600 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22601 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22602
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_STRUCT_STAT_ST_RDEV 1
22605 _ACEOF
22606
22607
22608 cat >>confdefs.h <<\_ACEOF
22609 #define HAVE_ST_RDEV 1
22610 _ACEOF
22611
22612 fi
22613
22614
22615 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22616 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22617 if test "${ac_cv_struct_tm+set}" = set; then
22618   echo $ECHO_N "(cached) $ECHO_C" >&6
22619 else
22620   cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h.  */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h.  */
22626 #include <sys/types.h>
22627 #include <time.h>
22628
22629 int
22630 main ()
22631 {
22632 struct tm *tp; tp->tm_sec;
22633   ;
22634   return 0;
22635 }
22636 _ACEOF
22637 rm -f conftest.$ac_objext
22638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22639   (eval $ac_compile) 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } &&
22646          { ac_try='test -z "$ac_c_werror_flag"
22647                          || test ! -s conftest.err'
22648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649   (eval $ac_try) 2>&5
22650   ac_status=$?
22651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652   (exit $ac_status); }; } &&
22653          { ac_try='test -s conftest.$ac_objext'
22654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655   (eval $ac_try) 2>&5
22656   ac_status=$?
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); }; }; then
22659   ac_cv_struct_tm=time.h
22660 else
22661   echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22663
22664 ac_cv_struct_tm=sys/time.h
22665 fi
22666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22667 fi
22668 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22669 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22670 if test $ac_cv_struct_tm = sys/time.h; then
22671
22672 cat >>confdefs.h <<\_ACEOF
22673 #define TM_IN_SYS_TIME 1
22674 _ACEOF
22675
22676 fi
22677
22678 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22680 if test "${ac_cv_c_const+set}" = set; then
22681   echo $ECHO_N "(cached) $ECHO_C" >&6
22682 else
22683   cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689
22690 int
22691 main ()
22692 {
22693 /* FIXME: Include the comments suggested by Paul. */
22694 #ifndef __cplusplus
22695   /* Ultrix mips cc rejects this.  */
22696   typedef int charset[2];
22697   const charset x;
22698   /* SunOS 4.1.1 cc rejects this.  */
22699   char const *const *ccp;
22700   char **p;
22701   /* NEC SVR4.0.2 mips cc rejects this.  */
22702   struct point {int x, y;};
22703   static struct point const zero = {0,0};
22704   /* AIX XL C 1.02.0.0 rejects this.
22705      It does not let you subtract one const X* pointer from another in
22706      an arm of an if-expression whose if-part is not a constant
22707      expression */
22708   const char *g = "string";
22709   ccp = &g + (g ? g-g : 0);
22710   /* HPUX 7.0 cc rejects these. */
22711   ++ccp;
22712   p = (char**) ccp;
22713   ccp = (char const *const *) p;
22714   { /* SCO 3.2v4 cc rejects this.  */
22715     char *t;
22716     char const *s = 0 ? (char *) 0 : (char const *) 0;
22717
22718     *t++ = 0;
22719   }
22720   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22721     int x[] = {25, 17};
22722     const int *foo = &x[0];
22723     ++foo;
22724   }
22725   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22726     typedef const int *iptr;
22727     iptr p = 0;
22728     ++p;
22729   }
22730   { /* AIX XL C 1.02.0.0 rejects this saying
22731        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22732     struct s { int j; const int *ap[3]; };
22733     struct s *b; b->j = 5;
22734   }
22735   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22736     const int foo = 10;
22737   }
22738 #endif
22739
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest.$ac_objext
22745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746   (eval $ac_compile) 2>conftest.er1
22747   ac_status=$?
22748   grep -v '^ *+' conftest.er1 >conftest.err
22749   rm -f conftest.er1
22750   cat conftest.err >&5
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); } &&
22753          { ac_try='test -z "$ac_c_werror_flag"
22754                          || test ! -s conftest.err'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; } &&
22760          { ac_try='test -s conftest.$ac_objext'
22761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762   (eval $ac_try) 2>&5
22763   ac_status=$?
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); }; }; then
22766   ac_cv_c_const=yes
22767 else
22768   echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771 ac_cv_c_const=no
22772 fi
22773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22774 fi
22775 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22776 echo "${ECHO_T}$ac_cv_c_const" >&6
22777 if test $ac_cv_c_const = no; then
22778
22779 cat >>confdefs.h <<\_ACEOF
22780 #define const
22781 _ACEOF
22782
22783 fi
22784
22785
22786
22787 echo "$as_me:$LINENO: checking for char" >&5
22788 echo $ECHO_N "checking for char... $ECHO_C" >&6
22789 if test "${ac_cv_type_char+set}" = set; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798 $ac_includes_default
22799 int
22800 main ()
22801 {
22802 if ((char *) 0)
22803   return 0;
22804 if (sizeof (char))
22805   return 0;
22806   ;
22807   return 0;
22808 }
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812   (eval $ac_compile) 2>conftest.er1
22813   ac_status=$?
22814   grep -v '^ *+' conftest.er1 >conftest.err
22815   rm -f conftest.er1
22816   cat conftest.err >&5
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); } &&
22819          { ac_try='test -z "$ac_c_werror_flag"
22820                          || test ! -s conftest.err'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; } &&
22826          { ac_try='test -s conftest.$ac_objext'
22827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828   (eval $ac_try) 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); }; }; then
22832   ac_cv_type_char=yes
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 ac_cv_type_char=no
22838 fi
22839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22840 fi
22841 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22842 echo "${ECHO_T}$ac_cv_type_char" >&6
22843
22844 echo "$as_me:$LINENO: checking size of char" >&5
22845 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22846 if test "${ac_cv_sizeof_char+set}" = set; then
22847   echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849   if test "$ac_cv_type_char" = yes; then
22850   # The cast to unsigned long works around a bug in the HP C Compiler
22851   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22852   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22853   # This bug is HP SR number 8606223364.
22854   if test "$cross_compiling" = yes; then
22855   # Depending upon the size, compute the lo and hi bounds.
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 $ac_includes_default
22863 int
22864 main ()
22865 {
22866 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22867 test_array [0] = 0
22868
22869   ;
22870   return 0;
22871 }
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22875   (eval $ac_compile) 2>conftest.er1
22876   ac_status=$?
22877   grep -v '^ *+' conftest.er1 >conftest.err
22878   rm -f conftest.er1
22879   cat conftest.err >&5
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); } &&
22882          { ac_try='test -z "$ac_c_werror_flag"
22883                          || test ! -s conftest.err'
22884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885   (eval $ac_try) 2>&5
22886   ac_status=$?
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); }; } &&
22889          { ac_try='test -s conftest.$ac_objext'
22890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891   (eval $ac_try) 2>&5
22892   ac_status=$?
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); }; }; then
22895   ac_lo=0 ac_mid=0
22896   while :; do
22897     cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h.  */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h.  */
22903 $ac_includes_default
22904 int
22905 main ()
22906 {
22907 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22908 test_array [0] = 0
22909
22910   ;
22911   return 0;
22912 }
22913 _ACEOF
22914 rm -f conftest.$ac_objext
22915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22916   (eval $ac_compile) 2>conftest.er1
22917   ac_status=$?
22918   grep -v '^ *+' conftest.er1 >conftest.err
22919   rm -f conftest.er1
22920   cat conftest.err >&5
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); } &&
22923          { ac_try='test -z "$ac_c_werror_flag"
22924                          || test ! -s conftest.err'
22925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926   (eval $ac_try) 2>&5
22927   ac_status=$?
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; } &&
22930          { ac_try='test -s conftest.$ac_objext'
22931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932   (eval $ac_try) 2>&5
22933   ac_status=$?
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); }; }; then
22936   ac_hi=$ac_mid; break
22937 else
22938   echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941 ac_lo=`expr $ac_mid + 1`
22942                     if test $ac_lo -le $ac_mid; then
22943                       ac_lo= ac_hi=
22944                       break
22945                     fi
22946                     ac_mid=`expr 2 '*' $ac_mid + 1`
22947 fi
22948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22949   done
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 cat >conftest.$ac_ext <<_ACEOF
22955 /* confdefs.h.  */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h.  */
22960 $ac_includes_default
22961 int
22962 main ()
22963 {
22964 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22965 test_array [0] = 0
22966
22967   ;
22968   return 0;
22969 }
22970 _ACEOF
22971 rm -f conftest.$ac_objext
22972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22973   (eval $ac_compile) 2>conftest.er1
22974   ac_status=$?
22975   grep -v '^ *+' conftest.er1 >conftest.err
22976   rm -f conftest.er1
22977   cat conftest.err >&5
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } &&
22980          { ac_try='test -z "$ac_c_werror_flag"
22981                          || test ! -s conftest.err'
22982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; } &&
22987          { ac_try='test -s conftest.$ac_objext'
22988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); }; }; then
22993   ac_hi=-1 ac_mid=-1
22994   while :; do
22995     cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001 $ac_includes_default
23002 int
23003 main ()
23004 {
23005 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23006 test_array [0] = 0
23007
23008   ;
23009   return 0;
23010 }
23011 _ACEOF
23012 rm -f conftest.$ac_objext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23014   (eval $ac_compile) 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } &&
23021          { ac_try='test -z "$ac_c_werror_flag"
23022                          || test ! -s conftest.err'
23023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024   (eval $ac_try) 2>&5
23025   ac_status=$?
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); }; } &&
23028          { ac_try='test -s conftest.$ac_objext'
23029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030   (eval $ac_try) 2>&5
23031   ac_status=$?
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); }; }; then
23034   ac_lo=$ac_mid; break
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039 ac_hi=`expr '(' $ac_mid ')' - 1`
23040                        if test $ac_mid -le $ac_hi; then
23041                          ac_lo= ac_hi=
23042                          break
23043                        fi
23044                        ac_mid=`expr 2 '*' $ac_mid`
23045 fi
23046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23047   done
23048 else
23049   echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23051
23052 ac_lo= ac_hi=
23053 fi
23054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23055 fi
23056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23057 # Binary search between lo and hi bounds.
23058 while test "x$ac_lo" != "x$ac_hi"; do
23059   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23060   cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066 $ac_includes_default
23067 int
23068 main ()
23069 {
23070 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23071 test_array [0] = 0
23072
23073   ;
23074   return 0;
23075 }
23076 _ACEOF
23077 rm -f conftest.$ac_objext
23078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23079   (eval $ac_compile) 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } &&
23086          { ac_try='test -z "$ac_c_werror_flag"
23087                          || test ! -s conftest.err'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; } &&
23093          { ac_try='test -s conftest.$ac_objext'
23094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095   (eval $ac_try) 2>&5
23096   ac_status=$?
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); }; }; then
23099   ac_hi=$ac_mid
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104 ac_lo=`expr '(' $ac_mid ')' + 1`
23105 fi
23106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23107 done
23108 case $ac_lo in
23109 ?*) ac_cv_sizeof_char=$ac_lo;;
23110 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23111 See \`config.log' for more details." >&5
23112 echo "$as_me: error: cannot compute sizeof (char), 77
23113 See \`config.log' for more details." >&2;}
23114    { (exit 1); exit 1; }; } ;;
23115 esac
23116 else
23117   if test "$cross_compiling" = yes; then
23118   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23119 See \`config.log' for more details." >&5
23120 echo "$as_me: error: cannot run test program while cross compiling
23121 See \`config.log' for more details." >&2;}
23122    { (exit 1); exit 1; }; }
23123 else
23124   cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h.  */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h.  */
23130 $ac_includes_default
23131 long longval () { return (long) (sizeof (char)); }
23132 unsigned long ulongval () { return (long) (sizeof (char)); }
23133 #include <stdio.h>
23134 #include <stdlib.h>
23135 int
23136 main ()
23137 {
23138
23139   FILE *f = fopen ("conftest.val", "w");
23140   if (! f)
23141     exit (1);
23142   if (((long) (sizeof (char))) < 0)
23143     {
23144       long i = longval ();
23145       if (i != ((long) (sizeof (char))))
23146         exit (1);
23147       fprintf (f, "%ld\n", i);
23148     }
23149   else
23150     {
23151       unsigned long i = ulongval ();
23152       if (i != ((long) (sizeof (char))))
23153         exit (1);
23154       fprintf (f, "%lu\n", i);
23155     }
23156   exit (ferror (f) || fclose (f) != 0);
23157
23158   ;
23159   return 0;
23160 }
23161 _ACEOF
23162 rm -f conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164   (eval $ac_link) 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169   (eval $ac_try) 2>&5
23170   ac_status=$?
23171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); }; }; then
23173   ac_cv_sizeof_char=`cat conftest.val`
23174 else
23175   echo "$as_me: program exited with status $ac_status" >&5
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23178
23179 ( exit $ac_status )
23180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23181 See \`config.log' for more details." >&5
23182 echo "$as_me: error: cannot compute sizeof (char), 77
23183 See \`config.log' for more details." >&2;}
23184    { (exit 1); exit 1; }; }
23185 fi
23186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23187 fi
23188 fi
23189 rm -f conftest.val
23190 else
23191   ac_cv_sizeof_char=0
23192 fi
23193 fi
23194 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23195 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23196 cat >>confdefs.h <<_ACEOF
23197 #define SIZEOF_CHAR $ac_cv_sizeof_char
23198 _ACEOF
23199
23200
23201 echo "$as_me:$LINENO: checking for short int" >&5
23202 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23203 if test "${ac_cv_type_short_int+set}" = set; then
23204   echo $ECHO_N "(cached) $ECHO_C" >&6
23205 else
23206   cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h.  */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h.  */
23212 $ac_includes_default
23213 int
23214 main ()
23215 {
23216 if ((short int *) 0)
23217   return 0;
23218 if (sizeof (short int))
23219   return 0;
23220   ;
23221   return 0;
23222 }
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23226   (eval $ac_compile) 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } &&
23233          { ac_try='test -z "$ac_c_werror_flag"
23234                          || test ! -s conftest.err'
23235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236   (eval $ac_try) 2>&5
23237   ac_status=$?
23238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239   (exit $ac_status); }; } &&
23240          { ac_try='test -s conftest.$ac_objext'
23241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242   (eval $ac_try) 2>&5
23243   ac_status=$?
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); }; }; then
23246   ac_cv_type_short_int=yes
23247 else
23248   echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23250
23251 ac_cv_type_short_int=no
23252 fi
23253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23254 fi
23255 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23256 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23257
23258 echo "$as_me:$LINENO: checking size of short int" >&5
23259 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23260 if test "${ac_cv_sizeof_short_int+set}" = set; then
23261   echo $ECHO_N "(cached) $ECHO_C" >&6
23262 else
23263   if test "$ac_cv_type_short_int" = yes; then
23264   # The cast to unsigned long works around a bug in the HP C Compiler
23265   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23266   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23267   # This bug is HP SR number 8606223364.
23268   if test "$cross_compiling" = yes; then
23269   # Depending upon the size, compute the lo and hi bounds.
23270 cat >conftest.$ac_ext <<_ACEOF
23271 /* confdefs.h.  */
23272 _ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h.  */
23276 $ac_includes_default
23277 int
23278 main ()
23279 {
23280 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23281 test_array [0] = 0
23282
23283   ;
23284   return 0;
23285 }
23286 _ACEOF
23287 rm -f conftest.$ac_objext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289   (eval $ac_compile) 2>conftest.er1
23290   ac_status=$?
23291   grep -v '^ *+' conftest.er1 >conftest.err
23292   rm -f conftest.er1
23293   cat conftest.err >&5
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); } &&
23296          { ac_try='test -z "$ac_c_werror_flag"
23297                          || test ! -s conftest.err'
23298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299   (eval $ac_try) 2>&5
23300   ac_status=$?
23301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302   (exit $ac_status); }; } &&
23303          { ac_try='test -s conftest.$ac_objext'
23304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305   (eval $ac_try) 2>&5
23306   ac_status=$?
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); }; }; then
23309   ac_lo=0 ac_mid=0
23310   while :; do
23311     cat >conftest.$ac_ext <<_ACEOF
23312 /* confdefs.h.  */
23313 _ACEOF
23314 cat confdefs.h >>conftest.$ac_ext
23315 cat >>conftest.$ac_ext <<_ACEOF
23316 /* end confdefs.h.  */
23317 $ac_includes_default
23318 int
23319 main ()
23320 {
23321 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23322 test_array [0] = 0
23323
23324   ;
23325   return 0;
23326 }
23327 _ACEOF
23328 rm -f conftest.$ac_objext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23330   (eval $ac_compile) 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } &&
23337          { ac_try='test -z "$ac_c_werror_flag"
23338                          || test ! -s conftest.err'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; } &&
23344          { ac_try='test -s conftest.$ac_objext'
23345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; }; then
23350   ac_hi=$ac_mid; break
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355 ac_lo=`expr $ac_mid + 1`
23356                     if test $ac_lo -le $ac_mid; then
23357                       ac_lo= ac_hi=
23358                       break
23359                     fi
23360                     ac_mid=`expr 2 '*' $ac_mid + 1`
23361 fi
23362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23363   done
23364 else
23365   echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368 cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374 $ac_includes_default
23375 int
23376 main ()
23377 {
23378 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23379 test_array [0] = 0
23380
23381   ;
23382   return 0;
23383 }
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23387   (eval $ac_compile) 2>conftest.er1
23388   ac_status=$?
23389   grep -v '^ *+' conftest.er1 >conftest.err
23390   rm -f conftest.er1
23391   cat conftest.err >&5
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); } &&
23394          { ac_try='test -z "$ac_c_werror_flag"
23395                          || test ! -s conftest.err'
23396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397   (eval $ac_try) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; } &&
23401          { ac_try='test -s conftest.$ac_objext'
23402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403   (eval $ac_try) 2>&5
23404   ac_status=$?
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); }; }; then
23407   ac_hi=-1 ac_mid=-1
23408   while :; do
23409     cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415 $ac_includes_default
23416 int
23417 main ()
23418 {
23419 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23420 test_array [0] = 0
23421
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 rm -f conftest.$ac_objext
23427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23428   (eval $ac_compile) 2>conftest.er1
23429   ac_status=$?
23430   grep -v '^ *+' conftest.er1 >conftest.err
23431   rm -f conftest.er1
23432   cat conftest.err >&5
23433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434   (exit $ac_status); } &&
23435          { ac_try='test -z "$ac_c_werror_flag"
23436                          || test ! -s conftest.err'
23437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438   (eval $ac_try) 2>&5
23439   ac_status=$?
23440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); }; } &&
23442          { ac_try='test -s conftest.$ac_objext'
23443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444   (eval $ac_try) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); }; }; then
23448   ac_lo=$ac_mid; break
23449 else
23450   echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23452
23453 ac_hi=`expr '(' $ac_mid ')' - 1`
23454                        if test $ac_mid -le $ac_hi; then
23455                          ac_lo= ac_hi=
23456                          break
23457                        fi
23458                        ac_mid=`expr 2 '*' $ac_mid`
23459 fi
23460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23461   done
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466 ac_lo= ac_hi=
23467 fi
23468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23469 fi
23470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23471 # Binary search between lo and hi bounds.
23472 while test "x$ac_lo" != "x$ac_hi"; do
23473   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23474   cat >conftest.$ac_ext <<_ACEOF
23475 /* confdefs.h.  */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h.  */
23480 $ac_includes_default
23481 int
23482 main ()
23483 {
23484 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23485 test_array [0] = 0
23486
23487   ;
23488   return 0;
23489 }
23490 _ACEOF
23491 rm -f conftest.$ac_objext
23492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23493   (eval $ac_compile) 2>conftest.er1
23494   ac_status=$?
23495   grep -v '^ *+' conftest.er1 >conftest.err
23496   rm -f conftest.er1
23497   cat conftest.err >&5
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } &&
23500          { ac_try='test -z "$ac_c_werror_flag"
23501                          || test ! -s conftest.err'
23502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503   (eval $ac_try) 2>&5
23504   ac_status=$?
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); }; } &&
23507          { ac_try='test -s conftest.$ac_objext'
23508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509   (eval $ac_try) 2>&5
23510   ac_status=$?
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); }; }; then
23513   ac_hi=$ac_mid
23514 else
23515   echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23517
23518 ac_lo=`expr '(' $ac_mid ')' + 1`
23519 fi
23520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23521 done
23522 case $ac_lo in
23523 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23524 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23525 See \`config.log' for more details." >&5
23526 echo "$as_me: error: cannot compute sizeof (short int), 77
23527 See \`config.log' for more details." >&2;}
23528    { (exit 1); exit 1; }; } ;;
23529 esac
23530 else
23531   if test "$cross_compiling" = yes; then
23532   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23533 See \`config.log' for more details." >&5
23534 echo "$as_me: error: cannot run test program while cross compiling
23535 See \`config.log' for more details." >&2;}
23536    { (exit 1); exit 1; }; }
23537 else
23538   cat >conftest.$ac_ext <<_ACEOF
23539 /* confdefs.h.  */
23540 _ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h.  */
23544 $ac_includes_default
23545 long longval () { return (long) (sizeof (short int)); }
23546 unsigned long ulongval () { return (long) (sizeof (short int)); }
23547 #include <stdio.h>
23548 #include <stdlib.h>
23549 int
23550 main ()
23551 {
23552
23553   FILE *f = fopen ("conftest.val", "w");
23554   if (! f)
23555     exit (1);
23556   if (((long) (sizeof (short int))) < 0)
23557     {
23558       long i = longval ();
23559       if (i != ((long) (sizeof (short int))))
23560         exit (1);
23561       fprintf (f, "%ld\n", i);
23562     }
23563   else
23564     {
23565       unsigned long i = ulongval ();
23566       if (i != ((long) (sizeof (short int))))
23567         exit (1);
23568       fprintf (f, "%lu\n", i);
23569     }
23570   exit (ferror (f) || fclose (f) != 0);
23571
23572   ;
23573   return 0;
23574 }
23575 _ACEOF
23576 rm -f conftest$ac_exeext
23577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23578   (eval $ac_link) 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583   (eval $ac_try) 2>&5
23584   ac_status=$?
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); }; }; then
23587   ac_cv_sizeof_short_int=`cat conftest.val`
23588 else
23589   echo "$as_me: program exited with status $ac_status" >&5
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23592
23593 ( exit $ac_status )
23594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23595 See \`config.log' for more details." >&5
23596 echo "$as_me: error: cannot compute sizeof (short int), 77
23597 See \`config.log' for more details." >&2;}
23598    { (exit 1); exit 1; }; }
23599 fi
23600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23601 fi
23602 fi
23603 rm -f conftest.val
23604 else
23605   ac_cv_sizeof_short_int=0
23606 fi
23607 fi
23608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23609 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23610 cat >>confdefs.h <<_ACEOF
23611 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23612 _ACEOF
23613
23614
23615 echo "$as_me:$LINENO: checking for int" >&5
23616 echo $ECHO_N "checking for int... $ECHO_C" >&6
23617 if test "${ac_cv_type_int+set}" = set; then
23618   echo $ECHO_N "(cached) $ECHO_C" >&6
23619 else
23620   cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h.  */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h.  */
23626 $ac_includes_default
23627 int
23628 main ()
23629 {
23630 if ((int *) 0)
23631   return 0;
23632 if (sizeof (int))
23633   return 0;
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 rm -f conftest.$ac_objext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23640   (eval $ac_compile) 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } &&
23647          { ac_try='test -z "$ac_c_werror_flag"
23648                          || test ! -s conftest.err'
23649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650   (eval $ac_try) 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); }; } &&
23654          { ac_try='test -s conftest.$ac_objext'
23655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656   (eval $ac_try) 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; }; then
23660   ac_cv_type_int=yes
23661 else
23662   echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665 ac_cv_type_int=no
23666 fi
23667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23668 fi
23669 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23670 echo "${ECHO_T}$ac_cv_type_int" >&6
23671
23672 echo "$as_me:$LINENO: checking size of int" >&5
23673 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23674 if test "${ac_cv_sizeof_int+set}" = set; then
23675   echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677   if test "$ac_cv_type_int" = yes; then
23678   # The cast to unsigned long works around a bug in the HP C Compiler
23679   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23680   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23681   # This bug is HP SR number 8606223364.
23682   if test "$cross_compiling" = yes; then
23683   # Depending upon the size, compute the lo and hi bounds.
23684 cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690 $ac_includes_default
23691 int
23692 main ()
23693 {
23694 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23695 test_array [0] = 0
23696
23697   ;
23698   return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23703   (eval $ac_compile) 2>conftest.er1
23704   ac_status=$?
23705   grep -v '^ *+' conftest.er1 >conftest.err
23706   rm -f conftest.er1
23707   cat conftest.err >&5
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); } &&
23710          { ac_try='test -z "$ac_c_werror_flag"
23711                          || test ! -s conftest.err'
23712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713   (eval $ac_try) 2>&5
23714   ac_status=$?
23715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716   (exit $ac_status); }; } &&
23717          { ac_try='test -s conftest.$ac_objext'
23718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719   (eval $ac_try) 2>&5
23720   ac_status=$?
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); }; }; then
23723   ac_lo=0 ac_mid=0
23724   while :; do
23725     cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h.  */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h.  */
23731 $ac_includes_default
23732 int
23733 main ()
23734 {
23735 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23736 test_array [0] = 0
23737
23738   ;
23739   return 0;
23740 }
23741 _ACEOF
23742 rm -f conftest.$ac_objext
23743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23744   (eval $ac_compile) 2>conftest.er1
23745   ac_status=$?
23746   grep -v '^ *+' conftest.er1 >conftest.err
23747   rm -f conftest.er1
23748   cat conftest.err >&5
23749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750   (exit $ac_status); } &&
23751          { ac_try='test -z "$ac_c_werror_flag"
23752                          || test ! -s conftest.err'
23753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754   (eval $ac_try) 2>&5
23755   ac_status=$?
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; } &&
23758          { ac_try='test -s conftest.$ac_objext'
23759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760   (eval $ac_try) 2>&5
23761   ac_status=$?
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); }; }; then
23764   ac_hi=$ac_mid; break
23765 else
23766   echo "$as_me: failed program was:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23768
23769 ac_lo=`expr $ac_mid + 1`
23770                     if test $ac_lo -le $ac_mid; then
23771                       ac_lo= ac_hi=
23772                       break
23773                     fi
23774                     ac_mid=`expr 2 '*' $ac_mid + 1`
23775 fi
23776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23777   done
23778 else
23779   echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23781
23782 cat >conftest.$ac_ext <<_ACEOF
23783 /* confdefs.h.  */
23784 _ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h.  */
23788 $ac_includes_default
23789 int
23790 main ()
23791 {
23792 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23793 test_array [0] = 0
23794
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23801   (eval $ac_compile) 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } &&
23808          { ac_try='test -z "$ac_c_werror_flag"
23809                          || test ! -s conftest.err'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; } &&
23815          { ac_try='test -s conftest.$ac_objext'
23816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); }; }; then
23821   ac_hi=-1 ac_mid=-1
23822   while :; do
23823     cat >conftest.$ac_ext <<_ACEOF
23824 /* confdefs.h.  */
23825 _ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h.  */
23829 $ac_includes_default
23830 int
23831 main ()
23832 {
23833 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23834 test_array [0] = 0
23835
23836   ;
23837   return 0;
23838 }
23839 _ACEOF
23840 rm -f conftest.$ac_objext
23841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23842   (eval $ac_compile) 2>conftest.er1
23843   ac_status=$?
23844   grep -v '^ *+' conftest.er1 >conftest.err
23845   rm -f conftest.er1
23846   cat conftest.err >&5
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); } &&
23849          { ac_try='test -z "$ac_c_werror_flag"
23850                          || test ! -s conftest.err'
23851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852   (eval $ac_try) 2>&5
23853   ac_status=$?
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); }; } &&
23856          { ac_try='test -s conftest.$ac_objext'
23857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858   (eval $ac_try) 2>&5
23859   ac_status=$?
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); }; }; then
23862   ac_lo=$ac_mid; break
23863 else
23864   echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23866
23867 ac_hi=`expr '(' $ac_mid ')' - 1`
23868                        if test $ac_mid -le $ac_hi; then
23869                          ac_lo= ac_hi=
23870                          break
23871                        fi
23872                        ac_mid=`expr 2 '*' $ac_mid`
23873 fi
23874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23875   done
23876 else
23877   echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23879
23880 ac_lo= ac_hi=
23881 fi
23882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23883 fi
23884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23885 # Binary search between lo and hi bounds.
23886 while test "x$ac_lo" != "x$ac_hi"; do
23887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23888   cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894 $ac_includes_default
23895 int
23896 main ()
23897 {
23898 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23899 test_array [0] = 0
23900
23901   ;
23902   return 0;
23903 }
23904 _ACEOF
23905 rm -f conftest.$ac_objext
23906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23907   (eval $ac_compile) 2>conftest.er1
23908   ac_status=$?
23909   grep -v '^ *+' conftest.er1 >conftest.err
23910   rm -f conftest.er1
23911   cat conftest.err >&5
23912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); } &&
23914          { ac_try='test -z "$ac_c_werror_flag"
23915                          || test ! -s conftest.err'
23916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917   (eval $ac_try) 2>&5
23918   ac_status=$?
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); }; } &&
23921          { ac_try='test -s conftest.$ac_objext'
23922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923   (eval $ac_try) 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; }; then
23927   ac_hi=$ac_mid
23928 else
23929   echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932 ac_lo=`expr '(' $ac_mid ')' + 1`
23933 fi
23934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23935 done
23936 case $ac_lo in
23937 ?*) ac_cv_sizeof_int=$ac_lo;;
23938 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23939 See \`config.log' for more details." >&5
23940 echo "$as_me: error: cannot compute sizeof (int), 77
23941 See \`config.log' for more details." >&2;}
23942    { (exit 1); exit 1; }; } ;;
23943 esac
23944 else
23945   if test "$cross_compiling" = yes; then
23946   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23947 See \`config.log' for more details." >&5
23948 echo "$as_me: error: cannot run test program while cross compiling
23949 See \`config.log' for more details." >&2;}
23950    { (exit 1); exit 1; }; }
23951 else
23952   cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958 $ac_includes_default
23959 long longval () { return (long) (sizeof (int)); }
23960 unsigned long ulongval () { return (long) (sizeof (int)); }
23961 #include <stdio.h>
23962 #include <stdlib.h>
23963 int
23964 main ()
23965 {
23966
23967   FILE *f = fopen ("conftest.val", "w");
23968   if (! f)
23969     exit (1);
23970   if (((long) (sizeof (int))) < 0)
23971     {
23972       long i = longval ();
23973       if (i != ((long) (sizeof (int))))
23974         exit (1);
23975       fprintf (f, "%ld\n", i);
23976     }
23977   else
23978     {
23979       unsigned long i = ulongval ();
23980       if (i != ((long) (sizeof (int))))
23981         exit (1);
23982       fprintf (f, "%lu\n", i);
23983     }
23984   exit (ferror (f) || fclose (f) != 0);
23985
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest$ac_exeext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992   (eval $ac_link) 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997   (eval $ac_try) 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; }; then
24001   ac_cv_sizeof_int=`cat conftest.val`
24002 else
24003   echo "$as_me: program exited with status $ac_status" >&5
24004 echo "$as_me: failed program was:" >&5
24005 sed 's/^/| /' conftest.$ac_ext >&5
24006
24007 ( exit $ac_status )
24008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24009 See \`config.log' for more details." >&5
24010 echo "$as_me: error: cannot compute sizeof (int), 77
24011 See \`config.log' for more details." >&2;}
24012    { (exit 1); exit 1; }; }
24013 fi
24014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24015 fi
24016 fi
24017 rm -f conftest.val
24018 else
24019   ac_cv_sizeof_int=0
24020 fi
24021 fi
24022 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24023 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24024 cat >>confdefs.h <<_ACEOF
24025 #define SIZEOF_INT $ac_cv_sizeof_int
24026 _ACEOF
24027
24028
24029 echo "$as_me:$LINENO: checking for long int" >&5
24030 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24031 if test "${ac_cv_type_long_int+set}" = set; then
24032   echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034   cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h.  */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h.  */
24040 $ac_includes_default
24041 int
24042 main ()
24043 {
24044 if ((long int *) 0)
24045   return 0;
24046 if (sizeof (long int))
24047   return 0;
24048   ;
24049   return 0;
24050 }
24051 _ACEOF
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054   (eval $ac_compile) 2>conftest.er1
24055   ac_status=$?
24056   grep -v '^ *+' conftest.er1 >conftest.err
24057   rm -f conftest.er1
24058   cat conftest.err >&5
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); } &&
24061          { ac_try='test -z "$ac_c_werror_flag"
24062                          || test ! -s conftest.err'
24063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064   (eval $ac_try) 2>&5
24065   ac_status=$?
24066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); }; } &&
24068          { ac_try='test -s conftest.$ac_objext'
24069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070   (eval $ac_try) 2>&5
24071   ac_status=$?
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); }; }; then
24074   ac_cv_type_long_int=yes
24075 else
24076   echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24078
24079 ac_cv_type_long_int=no
24080 fi
24081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24082 fi
24083 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24084 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24085
24086 echo "$as_me:$LINENO: checking size of long int" >&5
24087 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24088 if test "${ac_cv_sizeof_long_int+set}" = set; then
24089   echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091   if test "$ac_cv_type_long_int" = yes; then
24092   # The cast to unsigned long works around a bug in the HP C Compiler
24093   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24094   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24095   # This bug is HP SR number 8606223364.
24096   if test "$cross_compiling" = yes; then
24097   # Depending upon the size, compute the lo and hi bounds.
24098 cat >conftest.$ac_ext <<_ACEOF
24099 /* confdefs.h.  */
24100 _ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h.  */
24104 $ac_includes_default
24105 int
24106 main ()
24107 {
24108 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24109 test_array [0] = 0
24110
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext
24116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24117   (eval $ac_compile) 2>conftest.er1
24118   ac_status=$?
24119   grep -v '^ *+' conftest.er1 >conftest.err
24120   rm -f conftest.er1
24121   cat conftest.err >&5
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); } &&
24124          { ac_try='test -z "$ac_c_werror_flag"
24125                          || test ! -s conftest.err'
24126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); }; } &&
24131          { ac_try='test -s conftest.$ac_objext'
24132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133   (eval $ac_try) 2>&5
24134   ac_status=$?
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); }; }; then
24137   ac_lo=0 ac_mid=0
24138   while :; do
24139     cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h.  */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h.  */
24145 $ac_includes_default
24146 int
24147 main ()
24148 {
24149 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24150 test_array [0] = 0
24151
24152   ;
24153   return 0;
24154 }
24155 _ACEOF
24156 rm -f conftest.$ac_objext
24157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24158   (eval $ac_compile) 2>conftest.er1
24159   ac_status=$?
24160   grep -v '^ *+' conftest.er1 >conftest.err
24161   rm -f conftest.er1
24162   cat conftest.err >&5
24163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164   (exit $ac_status); } &&
24165          { ac_try='test -z "$ac_c_werror_flag"
24166                          || test ! -s conftest.err'
24167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168   (eval $ac_try) 2>&5
24169   ac_status=$?
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); }; } &&
24172          { ac_try='test -s conftest.$ac_objext'
24173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174   (eval $ac_try) 2>&5
24175   ac_status=$?
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); }; }; then
24178   ac_hi=$ac_mid; break
24179 else
24180   echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24182
24183 ac_lo=`expr $ac_mid + 1`
24184                     if test $ac_lo -le $ac_mid; then
24185                       ac_lo= ac_hi=
24186                       break
24187                     fi
24188                     ac_mid=`expr 2 '*' $ac_mid + 1`
24189 fi
24190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24191   done
24192 else
24193   echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24195
24196 cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202 $ac_includes_default
24203 int
24204 main ()
24205 {
24206 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24207 test_array [0] = 0
24208
24209   ;
24210   return 0;
24211 }
24212 _ACEOF
24213 rm -f conftest.$ac_objext
24214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24215   (eval $ac_compile) 2>conftest.er1
24216   ac_status=$?
24217   grep -v '^ *+' conftest.er1 >conftest.err
24218   rm -f conftest.er1
24219   cat conftest.err >&5
24220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221   (exit $ac_status); } &&
24222          { ac_try='test -z "$ac_c_werror_flag"
24223                          || test ! -s conftest.err'
24224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225   (eval $ac_try) 2>&5
24226   ac_status=$?
24227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228   (exit $ac_status); }; } &&
24229          { ac_try='test -s conftest.$ac_objext'
24230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231   (eval $ac_try) 2>&5
24232   ac_status=$?
24233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234   (exit $ac_status); }; }; then
24235   ac_hi=-1 ac_mid=-1
24236   while :; do
24237     cat >conftest.$ac_ext <<_ACEOF
24238 /* confdefs.h.  */
24239 _ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h.  */
24243 $ac_includes_default
24244 int
24245 main ()
24246 {
24247 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24248 test_array [0] = 0
24249
24250   ;
24251   return 0;
24252 }
24253 _ACEOF
24254 rm -f conftest.$ac_objext
24255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24256   (eval $ac_compile) 2>conftest.er1
24257   ac_status=$?
24258   grep -v '^ *+' conftest.er1 >conftest.err
24259   rm -f conftest.er1
24260   cat conftest.err >&5
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); } &&
24263          { ac_try='test -z "$ac_c_werror_flag"
24264                          || test ! -s conftest.err'
24265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266   (eval $ac_try) 2>&5
24267   ac_status=$?
24268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269   (exit $ac_status); }; } &&
24270          { ac_try='test -s conftest.$ac_objext'
24271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272   (eval $ac_try) 2>&5
24273   ac_status=$?
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); }; }; then
24276   ac_lo=$ac_mid; break
24277 else
24278   echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24280
24281 ac_hi=`expr '(' $ac_mid ')' - 1`
24282                        if test $ac_mid -le $ac_hi; then
24283                          ac_lo= ac_hi=
24284                          break
24285                        fi
24286                        ac_mid=`expr 2 '*' $ac_mid`
24287 fi
24288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24289   done
24290 else
24291   echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24293
24294 ac_lo= ac_hi=
24295 fi
24296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24297 fi
24298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24299 # Binary search between lo and hi bounds.
24300 while test "x$ac_lo" != "x$ac_hi"; do
24301   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308 $ac_includes_default
24309 int
24310 main ()
24311 {
24312 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24313 test_array [0] = 0
24314
24315   ;
24316   return 0;
24317 }
24318 _ACEOF
24319 rm -f conftest.$ac_objext
24320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24321   (eval $ac_compile) 2>conftest.er1
24322   ac_status=$?
24323   grep -v '^ *+' conftest.er1 >conftest.err
24324   rm -f conftest.er1
24325   cat conftest.err >&5
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); } &&
24328          { ac_try='test -z "$ac_c_werror_flag"
24329                          || test ! -s conftest.err'
24330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331   (eval $ac_try) 2>&5
24332   ac_status=$?
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); }; } &&
24335          { ac_try='test -s conftest.$ac_objext'
24336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337   (eval $ac_try) 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; }; then
24341   ac_hi=$ac_mid
24342 else
24343   echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24345
24346 ac_lo=`expr '(' $ac_mid ')' + 1`
24347 fi
24348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24349 done
24350 case $ac_lo in
24351 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24352 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24353 See \`config.log' for more details." >&5
24354 echo "$as_me: error: cannot compute sizeof (long int), 77
24355 See \`config.log' for more details." >&2;}
24356    { (exit 1); exit 1; }; } ;;
24357 esac
24358 else
24359   if test "$cross_compiling" = yes; then
24360   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24361 See \`config.log' for more details." >&5
24362 echo "$as_me: error: cannot run test program while cross compiling
24363 See \`config.log' for more details." >&2;}
24364    { (exit 1); exit 1; }; }
24365 else
24366   cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h.  */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h.  */
24372 $ac_includes_default
24373 long longval () { return (long) (sizeof (long int)); }
24374 unsigned long ulongval () { return (long) (sizeof (long int)); }
24375 #include <stdio.h>
24376 #include <stdlib.h>
24377 int
24378 main ()
24379 {
24380
24381   FILE *f = fopen ("conftest.val", "w");
24382   if (! f)
24383     exit (1);
24384   if (((long) (sizeof (long int))) < 0)
24385     {
24386       long i = longval ();
24387       if (i != ((long) (sizeof (long int))))
24388         exit (1);
24389       fprintf (f, "%ld\n", i);
24390     }
24391   else
24392     {
24393       unsigned long i = ulongval ();
24394       if (i != ((long) (sizeof (long int))))
24395         exit (1);
24396       fprintf (f, "%lu\n", i);
24397     }
24398   exit (ferror (f) || fclose (f) != 0);
24399
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 rm -f conftest$ac_exeext
24405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24406   (eval $ac_link) 2>&5
24407   ac_status=$?
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24411   (eval $ac_try) 2>&5
24412   ac_status=$?
24413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); }; }; then
24415   ac_cv_sizeof_long_int=`cat conftest.val`
24416 else
24417   echo "$as_me: program exited with status $ac_status" >&5
24418 echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24420
24421 ( exit $ac_status )
24422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24423 See \`config.log' for more details." >&5
24424 echo "$as_me: error: cannot compute sizeof (long int), 77
24425 See \`config.log' for more details." >&2;}
24426    { (exit 1); exit 1; }; }
24427 fi
24428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24429 fi
24430 fi
24431 rm -f conftest.val
24432 else
24433   ac_cv_sizeof_long_int=0
24434 fi
24435 fi
24436 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24437 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24438 cat >>confdefs.h <<_ACEOF
24439 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24440 _ACEOF
24441
24442
24443 echo "$as_me:$LINENO: checking for long long int" >&5
24444 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24445 if test "${ac_cv_type_long_long_int+set}" = set; then
24446   echo $ECHO_N "(cached) $ECHO_C" >&6
24447 else
24448   cat >conftest.$ac_ext <<_ACEOF
24449 /* confdefs.h.  */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h.  */
24454 $ac_includes_default
24455 int
24456 main ()
24457 {
24458 if ((long long int *) 0)
24459   return 0;
24460 if (sizeof (long long int))
24461   return 0;
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24468   (eval $ac_compile) 2>conftest.er1
24469   ac_status=$?
24470   grep -v '^ *+' conftest.er1 >conftest.err
24471   rm -f conftest.er1
24472   cat conftest.err >&5
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); } &&
24475          { ac_try='test -z "$ac_c_werror_flag"
24476                          || test ! -s conftest.err'
24477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); }; } &&
24482          { ac_try='test -s conftest.$ac_objext'
24483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484   (eval $ac_try) 2>&5
24485   ac_status=$?
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); }; }; then
24488   ac_cv_type_long_long_int=yes
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493 ac_cv_type_long_long_int=no
24494 fi
24495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24496 fi
24497 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24498 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24499
24500 echo "$as_me:$LINENO: checking size of long long int" >&5
24501 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24502 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24503   echo $ECHO_N "(cached) $ECHO_C" >&6
24504 else
24505   if test "$ac_cv_type_long_long_int" = yes; then
24506   # The cast to unsigned long works around a bug in the HP C Compiler
24507   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24508   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24509   # This bug is HP SR number 8606223364.
24510   if test "$cross_compiling" = yes; then
24511   # Depending upon the size, compute the lo and hi bounds.
24512 cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 $ac_includes_default
24519 int
24520 main ()
24521 {
24522 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24523 test_array [0] = 0
24524
24525   ;
24526   return 0;
24527 }
24528 _ACEOF
24529 rm -f conftest.$ac_objext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24531   (eval $ac_compile) 2>conftest.er1
24532   ac_status=$?
24533   grep -v '^ *+' conftest.er1 >conftest.err
24534   rm -f conftest.er1
24535   cat conftest.err >&5
24536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537   (exit $ac_status); } &&
24538          { ac_try='test -z "$ac_c_werror_flag"
24539                          || test ! -s conftest.err'
24540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541   (eval $ac_try) 2>&5
24542   ac_status=$?
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; } &&
24545          { ac_try='test -s conftest.$ac_objext'
24546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547   (eval $ac_try) 2>&5
24548   ac_status=$?
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); }; }; then
24551   ac_lo=0 ac_mid=0
24552   while :; do
24553     cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h.  */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h.  */
24559 $ac_includes_default
24560 int
24561 main ()
24562 {
24563 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24564 test_array [0] = 0
24565
24566   ;
24567   return 0;
24568 }
24569 _ACEOF
24570 rm -f conftest.$ac_objext
24571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24572   (eval $ac_compile) 2>conftest.er1
24573   ac_status=$?
24574   grep -v '^ *+' conftest.er1 >conftest.err
24575   rm -f conftest.er1
24576   cat conftest.err >&5
24577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578   (exit $ac_status); } &&
24579          { ac_try='test -z "$ac_c_werror_flag"
24580                          || test ! -s conftest.err'
24581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582   (eval $ac_try) 2>&5
24583   ac_status=$?
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); }; } &&
24586          { ac_try='test -s conftest.$ac_objext'
24587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588   (eval $ac_try) 2>&5
24589   ac_status=$?
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); }; }; then
24592   ac_hi=$ac_mid; break
24593 else
24594   echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24596
24597 ac_lo=`expr $ac_mid + 1`
24598                     if test $ac_lo -le $ac_mid; then
24599                       ac_lo= ac_hi=
24600                       break
24601                     fi
24602                     ac_mid=`expr 2 '*' $ac_mid + 1`
24603 fi
24604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24605   done
24606 else
24607   echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24609
24610 cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h.  */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h.  */
24616 $ac_includes_default
24617 int
24618 main ()
24619 {
24620 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24621 test_array [0] = 0
24622
24623   ;
24624   return 0;
24625 }
24626 _ACEOF
24627 rm -f conftest.$ac_objext
24628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24629   (eval $ac_compile) 2>conftest.er1
24630   ac_status=$?
24631   grep -v '^ *+' conftest.er1 >conftest.err
24632   rm -f conftest.er1
24633   cat conftest.err >&5
24634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635   (exit $ac_status); } &&
24636          { ac_try='test -z "$ac_c_werror_flag"
24637                          || test ! -s conftest.err'
24638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); }; } &&
24643          { ac_try='test -s conftest.$ac_objext'
24644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645   (eval $ac_try) 2>&5
24646   ac_status=$?
24647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648   (exit $ac_status); }; }; then
24649   ac_hi=-1 ac_mid=-1
24650   while :; do
24651     cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657 $ac_includes_default
24658 int
24659 main ()
24660 {
24661 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24662 test_array [0] = 0
24663
24664   ;
24665   return 0;
24666 }
24667 _ACEOF
24668 rm -f conftest.$ac_objext
24669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24670   (eval $ac_compile) 2>conftest.er1
24671   ac_status=$?
24672   grep -v '^ *+' conftest.er1 >conftest.err
24673   rm -f conftest.er1
24674   cat conftest.err >&5
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); } &&
24677          { ac_try='test -z "$ac_c_werror_flag"
24678                          || test ! -s conftest.err'
24679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680   (eval $ac_try) 2>&5
24681   ac_status=$?
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); }; } &&
24684          { ac_try='test -s conftest.$ac_objext'
24685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686   (eval $ac_try) 2>&5
24687   ac_status=$?
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); }; }; then
24690   ac_lo=$ac_mid; break
24691 else
24692   echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24694
24695 ac_hi=`expr '(' $ac_mid ')' - 1`
24696                        if test $ac_mid -le $ac_hi; then
24697                          ac_lo= ac_hi=
24698                          break
24699                        fi
24700                        ac_mid=`expr 2 '*' $ac_mid`
24701 fi
24702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24703   done
24704 else
24705   echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708 ac_lo= ac_hi=
24709 fi
24710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24711 fi
24712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24713 # Binary search between lo and hi bounds.
24714 while test "x$ac_lo" != "x$ac_hi"; do
24715   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24716   cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722 $ac_includes_default
24723 int
24724 main ()
24725 {
24726 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24727 test_array [0] = 0
24728
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24735   (eval $ac_compile) 2>conftest.er1
24736   ac_status=$?
24737   grep -v '^ *+' conftest.er1 >conftest.err
24738   rm -f conftest.er1
24739   cat conftest.err >&5
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); } &&
24742          { ac_try='test -z "$ac_c_werror_flag"
24743                          || test ! -s conftest.err'
24744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745   (eval $ac_try) 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; } &&
24749          { ac_try='test -s conftest.$ac_objext'
24750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751   (eval $ac_try) 2>&5
24752   ac_status=$?
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); }; }; then
24755   ac_hi=$ac_mid
24756 else
24757   echo "$as_me: failed program was:" >&5
24758 sed 's/^/| /' conftest.$ac_ext >&5
24759
24760 ac_lo=`expr '(' $ac_mid ')' + 1`
24761 fi
24762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24763 done
24764 case $ac_lo in
24765 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24766 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24767 See \`config.log' for more details." >&5
24768 echo "$as_me: error: cannot compute sizeof (long long int), 77
24769 See \`config.log' for more details." >&2;}
24770    { (exit 1); exit 1; }; } ;;
24771 esac
24772 else
24773   if test "$cross_compiling" = yes; then
24774   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24775 See \`config.log' for more details." >&5
24776 echo "$as_me: error: cannot run test program while cross compiling
24777 See \`config.log' for more details." >&2;}
24778    { (exit 1); exit 1; }; }
24779 else
24780   cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h.  */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h.  */
24786 $ac_includes_default
24787 long longval () { return (long) (sizeof (long long int)); }
24788 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24789 #include <stdio.h>
24790 #include <stdlib.h>
24791 int
24792 main ()
24793 {
24794
24795   FILE *f = fopen ("conftest.val", "w");
24796   if (! f)
24797     exit (1);
24798   if (((long) (sizeof (long long int))) < 0)
24799     {
24800       long i = longval ();
24801       if (i != ((long) (sizeof (long long int))))
24802         exit (1);
24803       fprintf (f, "%ld\n", i);
24804     }
24805   else
24806     {
24807       unsigned long i = ulongval ();
24808       if (i != ((long) (sizeof (long long int))))
24809         exit (1);
24810       fprintf (f, "%lu\n", i);
24811     }
24812   exit (ferror (f) || fclose (f) != 0);
24813
24814   ;
24815   return 0;
24816 }
24817 _ACEOF
24818 rm -f conftest$ac_exeext
24819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24820   (eval $ac_link) 2>&5
24821   ac_status=$?
24822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24825   (eval $ac_try) 2>&5
24826   ac_status=$?
24827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828   (exit $ac_status); }; }; then
24829   ac_cv_sizeof_long_long_int=`cat conftest.val`
24830 else
24831   echo "$as_me: program exited with status $ac_status" >&5
24832 echo "$as_me: failed program was:" >&5
24833 sed 's/^/| /' conftest.$ac_ext >&5
24834
24835 ( exit $ac_status )
24836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24837 See \`config.log' for more details." >&5
24838 echo "$as_me: error: cannot compute sizeof (long long int), 77
24839 See \`config.log' for more details." >&2;}
24840    { (exit 1); exit 1; }; }
24841 fi
24842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24843 fi
24844 fi
24845 rm -f conftest.val
24846 else
24847   ac_cv_sizeof_long_long_int=0
24848 fi
24849 fi
24850 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24851 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24852 cat >>confdefs.h <<_ACEOF
24853 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24854 _ACEOF
24855
24856
24857 echo "$as_me:$LINENO: checking for int *" >&5
24858 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24859 if test "${ac_cv_type_int_p+set}" = set; then
24860   echo $ECHO_N "(cached) $ECHO_C" >&6
24861 else
24862   cat >conftest.$ac_ext <<_ACEOF
24863 /* confdefs.h.  */
24864 _ACEOF
24865 cat confdefs.h >>conftest.$ac_ext
24866 cat >>conftest.$ac_ext <<_ACEOF
24867 /* end confdefs.h.  */
24868 $ac_includes_default
24869 int
24870 main ()
24871 {
24872 if ((int * *) 0)
24873   return 0;
24874 if (sizeof (int *))
24875   return 0;
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 rm -f conftest.$ac_objext
24881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882   (eval $ac_compile) 2>conftest.er1
24883   ac_status=$?
24884   grep -v '^ *+' conftest.er1 >conftest.err
24885   rm -f conftest.er1
24886   cat conftest.err >&5
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); } &&
24889          { ac_try='test -z "$ac_c_werror_flag"
24890                          || test ! -s conftest.err'
24891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); }; } &&
24896          { ac_try='test -s conftest.$ac_objext'
24897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898   (eval $ac_try) 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; }; then
24902   ac_cv_type_int_p=yes
24903 else
24904   echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24906
24907 ac_cv_type_int_p=no
24908 fi
24909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24910 fi
24911 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24912 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24913
24914 echo "$as_me:$LINENO: checking size of int *" >&5
24915 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24916 if test "${ac_cv_sizeof_int_p+set}" = set; then
24917   echo $ECHO_N "(cached) $ECHO_C" >&6
24918 else
24919   if test "$ac_cv_type_int_p" = yes; then
24920   # The cast to unsigned long works around a bug in the HP C Compiler
24921   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24922   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24923   # This bug is HP SR number 8606223364.
24924   if test "$cross_compiling" = yes; then
24925   # Depending upon the size, compute the lo and hi bounds.
24926 cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932 $ac_includes_default
24933 int
24934 main ()
24935 {
24936 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24937 test_array [0] = 0
24938
24939   ;
24940   return 0;
24941 }
24942 _ACEOF
24943 rm -f conftest.$ac_objext
24944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24945   (eval $ac_compile) 2>conftest.er1
24946   ac_status=$?
24947   grep -v '^ *+' conftest.er1 >conftest.err
24948   rm -f conftest.er1
24949   cat conftest.err >&5
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); } &&
24952          { ac_try='test -z "$ac_c_werror_flag"
24953                          || test ! -s conftest.err'
24954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); }; } &&
24959          { ac_try='test -s conftest.$ac_objext'
24960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961   (eval $ac_try) 2>&5
24962   ac_status=$?
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); }; }; then
24965   ac_lo=0 ac_mid=0
24966   while :; do
24967     cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h.  */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h.  */
24973 $ac_includes_default
24974 int
24975 main ()
24976 {
24977 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24978 test_array [0] = 0
24979
24980   ;
24981   return 0;
24982 }
24983 _ACEOF
24984 rm -f conftest.$ac_objext
24985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24986   (eval $ac_compile) 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } &&
24993          { ac_try='test -z "$ac_c_werror_flag"
24994                          || test ! -s conftest.err'
24995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996   (eval $ac_try) 2>&5
24997   ac_status=$?
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); }; } &&
25000          { ac_try='test -s conftest.$ac_objext'
25001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002   (eval $ac_try) 2>&5
25003   ac_status=$?
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); }; }; then
25006   ac_hi=$ac_mid; break
25007 else
25008   echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25010
25011 ac_lo=`expr $ac_mid + 1`
25012                     if test $ac_lo -le $ac_mid; then
25013                       ac_lo= ac_hi=
25014                       break
25015                     fi
25016                     ac_mid=`expr 2 '*' $ac_mid + 1`
25017 fi
25018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25019   done
25020 else
25021   echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25023
25024 cat >conftest.$ac_ext <<_ACEOF
25025 /* confdefs.h.  */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h.  */
25030 $ac_includes_default
25031 int
25032 main ()
25033 {
25034 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25035 test_array [0] = 0
25036
25037   ;
25038   return 0;
25039 }
25040 _ACEOF
25041 rm -f conftest.$ac_objext
25042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25043   (eval $ac_compile) 2>conftest.er1
25044   ac_status=$?
25045   grep -v '^ *+' conftest.er1 >conftest.err
25046   rm -f conftest.er1
25047   cat conftest.err >&5
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); } &&
25050          { ac_try='test -z "$ac_c_werror_flag"
25051                          || test ! -s conftest.err'
25052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25053   (eval $ac_try) 2>&5
25054   ac_status=$?
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); }; } &&
25057          { ac_try='test -s conftest.$ac_objext'
25058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059   (eval $ac_try) 2>&5
25060   ac_status=$?
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); }; }; then
25063   ac_hi=-1 ac_mid=-1
25064   while :; do
25065     cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h.  */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h.  */
25071 $ac_includes_default
25072 int
25073 main ()
25074 {
25075 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25076 test_array [0] = 0
25077
25078   ;
25079   return 0;
25080 }
25081 _ACEOF
25082 rm -f conftest.$ac_objext
25083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25084   (eval $ac_compile) 2>conftest.er1
25085   ac_status=$?
25086   grep -v '^ *+' conftest.er1 >conftest.err
25087   rm -f conftest.er1
25088   cat conftest.err >&5
25089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090   (exit $ac_status); } &&
25091          { ac_try='test -z "$ac_c_werror_flag"
25092                          || test ! -s conftest.err'
25093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25094   (eval $ac_try) 2>&5
25095   ac_status=$?
25096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); }; } &&
25098          { ac_try='test -s conftest.$ac_objext'
25099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25100   (eval $ac_try) 2>&5
25101   ac_status=$?
25102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103   (exit $ac_status); }; }; then
25104   ac_lo=$ac_mid; break
25105 else
25106   echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25108
25109 ac_hi=`expr '(' $ac_mid ')' - 1`
25110                        if test $ac_mid -le $ac_hi; then
25111                          ac_lo= ac_hi=
25112                          break
25113                        fi
25114                        ac_mid=`expr 2 '*' $ac_mid`
25115 fi
25116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25117   done
25118 else
25119   echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122 ac_lo= ac_hi=
25123 fi
25124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25125 fi
25126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25127 # Binary search between lo and hi bounds.
25128 while test "x$ac_lo" != "x$ac_hi"; do
25129   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25130   cat >conftest.$ac_ext <<_ACEOF
25131 /* confdefs.h.  */
25132 _ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h.  */
25136 $ac_includes_default
25137 int
25138 main ()
25139 {
25140 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25141 test_array [0] = 0
25142
25143   ;
25144   return 0;
25145 }
25146 _ACEOF
25147 rm -f conftest.$ac_objext
25148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25149   (eval $ac_compile) 2>conftest.er1
25150   ac_status=$?
25151   grep -v '^ *+' conftest.er1 >conftest.err
25152   rm -f conftest.er1
25153   cat conftest.err >&5
25154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155   (exit $ac_status); } &&
25156          { ac_try='test -z "$ac_c_werror_flag"
25157                          || test ! -s conftest.err'
25158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159   (eval $ac_try) 2>&5
25160   ac_status=$?
25161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162   (exit $ac_status); }; } &&
25163          { ac_try='test -s conftest.$ac_objext'
25164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165   (eval $ac_try) 2>&5
25166   ac_status=$?
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); }; }; then
25169   ac_hi=$ac_mid
25170 else
25171   echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25173
25174 ac_lo=`expr '(' $ac_mid ')' + 1`
25175 fi
25176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25177 done
25178 case $ac_lo in
25179 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25180 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25181 See \`config.log' for more details." >&5
25182 echo "$as_me: error: cannot compute sizeof (int *), 77
25183 See \`config.log' for more details." >&2;}
25184    { (exit 1); exit 1; }; } ;;
25185 esac
25186 else
25187   if test "$cross_compiling" = yes; then
25188   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25189 See \`config.log' for more details." >&5
25190 echo "$as_me: error: cannot run test program while cross compiling
25191 See \`config.log' for more details." >&2;}
25192    { (exit 1); exit 1; }; }
25193 else
25194   cat >conftest.$ac_ext <<_ACEOF
25195 /* confdefs.h.  */
25196 _ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h.  */
25200 $ac_includes_default
25201 long longval () { return (long) (sizeof (int *)); }
25202 unsigned long ulongval () { return (long) (sizeof (int *)); }
25203 #include <stdio.h>
25204 #include <stdlib.h>
25205 int
25206 main ()
25207 {
25208
25209   FILE *f = fopen ("conftest.val", "w");
25210   if (! f)
25211     exit (1);
25212   if (((long) (sizeof (int *))) < 0)
25213     {
25214       long i = longval ();
25215       if (i != ((long) (sizeof (int *))))
25216         exit (1);
25217       fprintf (f, "%ld\n", i);
25218     }
25219   else
25220     {
25221       unsigned long i = ulongval ();
25222       if (i != ((long) (sizeof (int *))))
25223         exit (1);
25224       fprintf (f, "%lu\n", i);
25225     }
25226   exit (ferror (f) || fclose (f) != 0);
25227
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 rm -f conftest$ac_exeext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234   (eval $ac_link) 2>&5
25235   ac_status=$?
25236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239   (eval $ac_try) 2>&5
25240   ac_status=$?
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); }; }; then
25243   ac_cv_sizeof_int_p=`cat conftest.val`
25244 else
25245   echo "$as_me: program exited with status $ac_status" >&5
25246 echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25248
25249 ( exit $ac_status )
25250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25251 See \`config.log' for more details." >&5
25252 echo "$as_me: error: cannot compute sizeof (int *), 77
25253 See \`config.log' for more details." >&2;}
25254    { (exit 1); exit 1; }; }
25255 fi
25256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25257 fi
25258 fi
25259 rm -f conftest.val
25260 else
25261   ac_cv_sizeof_int_p=0
25262 fi
25263 fi
25264 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25265 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25266 cat >>confdefs.h <<_ACEOF
25267 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25268 _ACEOF
25269
25270
25271
25272 # Check for sys/types.h types
25273 echo "$as_me:$LINENO: checking for u_int type" >&5
25274 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25275 if test "${ac_cv_have_u_int+set}" = set; then
25276   echo $ECHO_N "(cached) $ECHO_C" >&6
25277 else
25278
25279     cat >conftest.$ac_ext <<_ACEOF
25280 /* confdefs.h.  */
25281 _ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h.  */
25285  #include <sys/types.h>
25286 int
25287 main ()
25288 {
25289  u_int a; a = 1;
25290   ;
25291   return 0;
25292 }
25293 _ACEOF
25294 rm -f conftest.$ac_objext
25295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25296   (eval $ac_compile) 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } &&
25303          { ac_try='test -z "$ac_c_werror_flag"
25304                          || test ! -s conftest.err'
25305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306   (eval $ac_try) 2>&5
25307   ac_status=$?
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); }; } &&
25310          { ac_try='test -s conftest.$ac_objext'
25311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312   (eval $ac_try) 2>&5
25313   ac_status=$?
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); }; }; then
25316    ac_cv_have_u_int="yes"
25317 else
25318   echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25320
25321  ac_cv_have_u_int="no"
25322
25323 fi
25324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25325
25326 fi
25327 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25328 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25329 if test "x$ac_cv_have_u_int" = "xyes" ; then
25330    cat >>confdefs.h <<\_ACEOF
25331 #define HAVE_U_INT 1
25332 _ACEOF
25333
25334    have_u_int=1
25335 fi
25336
25337 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25338 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25339 if test "${ac_cv_have_intmax_t+set}" = set; then
25340   echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342
25343    cat >conftest.$ac_ext <<_ACEOF
25344 /* confdefs.h.  */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h.  */
25349  #include <sys/types.h>
25350 int
25351 main ()
25352 {
25353  intmax_t a; a = 1;
25354   ;
25355   return 0;
25356 }
25357 _ACEOF
25358 rm -f conftest.$ac_objext
25359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25360   (eval $ac_compile) 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } &&
25367          { ac_try='test -z "$ac_c_werror_flag"
25368                          || test ! -s conftest.err'
25369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370   (eval $ac_try) 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); }; } &&
25374          { ac_try='test -s conftest.$ac_objext'
25375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376   (eval $ac_try) 2>&5
25377   ac_status=$?
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); }; }; then
25380    ac_cv_have_intmax_t="yes"
25381 else
25382   echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25384
25385
25386          cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392  #include <stdint.h>
25393 int
25394 main ()
25395 {
25396  intmax_t a; a = 1;
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 rm -f conftest.$ac_objext
25402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403   (eval $ac_compile) 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } &&
25410          { ac_try='test -z "$ac_c_werror_flag"
25411                          || test ! -s conftest.err'
25412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413   (eval $ac_try) 2>&5
25414   ac_status=$?
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); }; } &&
25417          { ac_try='test -s conftest.$ac_objext'
25418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419   (eval $ac_try) 2>&5
25420   ac_status=$?
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); }; }; then
25423    ac_cv_have_intmax_t="yes"
25424 else
25425   echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25427
25428  ac_cv_have_intmax_t="no"
25429
25430 fi
25431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25432
25433
25434 fi
25435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25436
25437
25438 fi
25439 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25440 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25441 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25442    cat >>confdefs.h <<\_ACEOF
25443 #define HAVE_INTMAX_T 1
25444 _ACEOF
25445
25446    have_intmax_t=1
25447 fi
25448
25449
25450 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25451 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25452 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25453   echo $ECHO_N "(cached) $ECHO_C" >&6
25454 else
25455
25456    cat >conftest.$ac_ext <<_ACEOF
25457 /* confdefs.h.  */
25458 _ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h.  */
25462  #include <sys/types.h>
25463 int
25464 main ()
25465 {
25466  u_intmax_t a; a = 1;
25467   ;
25468   return 0;
25469 }
25470 _ACEOF
25471 rm -f conftest.$ac_objext
25472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25473   (eval $ac_compile) 2>conftest.er1
25474   ac_status=$?
25475   grep -v '^ *+' conftest.er1 >conftest.err
25476   rm -f conftest.er1
25477   cat conftest.err >&5
25478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479   (exit $ac_status); } &&
25480          { ac_try='test -z "$ac_c_werror_flag"
25481                          || test ! -s conftest.err'
25482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25483   (eval $ac_try) 2>&5
25484   ac_status=$?
25485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486   (exit $ac_status); }; } &&
25487          { ac_try='test -s conftest.$ac_objext'
25488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489   (eval $ac_try) 2>&5
25490   ac_status=$?
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); }; }; then
25493    ac_cv_have_u_intmax_t="yes"
25494 else
25495   echo "$as_me: failed program was:" >&5
25496 sed 's/^/| /' conftest.$ac_ext >&5
25497
25498
25499          cat >conftest.$ac_ext <<_ACEOF
25500 /* confdefs.h.  */
25501 _ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h.  */
25505  #include <stdint.h>
25506 int
25507 main ()
25508 {
25509  u_intmax_t a; a = 1;
25510   ;
25511   return 0;
25512 }
25513 _ACEOF
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516   (eval $ac_compile) 2>conftest.er1
25517   ac_status=$?
25518   grep -v '^ *+' conftest.er1 >conftest.err
25519   rm -f conftest.er1
25520   cat conftest.err >&5
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); } &&
25523          { ac_try='test -z "$ac_c_werror_flag"
25524                          || test ! -s conftest.err'
25525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); }; } &&
25530          { ac_try='test -s conftest.$ac_objext'
25531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532   (eval $ac_try) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; }; then
25536    ac_cv_have_u_intmax_t="yes"
25537 else
25538   echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25540
25541  ac_cv_have_u_intmax_t="no"
25542
25543 fi
25544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25545
25546
25547 fi
25548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25549
25550 fi
25551 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25552 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25553 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25554    cat >>confdefs.h <<\_ACEOF
25555 #define HAVE_U_INTMAX_T 1
25556 _ACEOF
25557
25558    have_u_intmax_t=1
25559 fi
25560
25561
25562 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25563 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25564 if test "${ac_cv_have_intxx_t+set}" = set; then
25565   echo $ECHO_N "(cached) $ECHO_C" >&6
25566 else
25567
25568    cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h.  */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h.  */
25574  #include <sys/types.h>
25575 int
25576 main ()
25577 {
25578  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25579   ;
25580   return 0;
25581 }
25582 _ACEOF
25583 rm -f conftest.$ac_objext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25585   (eval $ac_compile) 2>conftest.er1
25586   ac_status=$?
25587   grep -v '^ *+' conftest.er1 >conftest.err
25588   rm -f conftest.er1
25589   cat conftest.err >&5
25590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); } &&
25592          { ac_try='test -z "$ac_c_werror_flag"
25593                          || test ! -s conftest.err'
25594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595   (eval $ac_try) 2>&5
25596   ac_status=$?
25597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598   (exit $ac_status); }; } &&
25599          { ac_try='test -s conftest.$ac_objext'
25600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601   (eval $ac_try) 2>&5
25602   ac_status=$?
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); }; }; then
25605    ac_cv_have_intxx_t="yes"
25606 else
25607   echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610  ac_cv_have_intxx_t="no"
25611
25612 fi
25613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25614
25615 fi
25616 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25617 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25618 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25619    cat >>confdefs.h <<\_ACEOF
25620 #define HAVE_INTXX_T 1
25621 _ACEOF
25622
25623    have_intxx_t=1
25624 fi
25625
25626 echo "$as_me:$LINENO: checking for int64_t type" >&5
25627 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25628 if test "${ac_cv_have_int64_t+set}" = set; then
25629   echo $ECHO_N "(cached) $ECHO_C" >&6
25630 else
25631
25632    cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638  #include <sys/types.h>
25639 int
25640 main ()
25641 {
25642  int64_t a; a = 1;
25643   ;
25644   return 0;
25645 }
25646 _ACEOF
25647 rm -f conftest.$ac_objext
25648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25649   (eval $ac_compile) 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } &&
25656          { ac_try='test -z "$ac_c_werror_flag"
25657                          || test ! -s conftest.err'
25658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659   (eval $ac_try) 2>&5
25660   ac_status=$?
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); }; } &&
25663          { ac_try='test -s conftest.$ac_objext'
25664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665   (eval $ac_try) 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; }; then
25669    ac_cv_have_int64_t="yes"
25670 else
25671   echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25673
25674  ac_cv_have_int64_t="no"
25675
25676 fi
25677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25678
25679 fi
25680 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25681 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25682 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25683    cat >>confdefs.h <<\_ACEOF
25684 #define HAVE_INT64_T 1
25685 _ACEOF
25686
25687    have_int64_t=1
25688 fi
25689
25690 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25691 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25692 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25693   echo $ECHO_N "(cached) $ECHO_C" >&6
25694 else
25695
25696    cat >conftest.$ac_ext <<_ACEOF
25697 /* confdefs.h.  */
25698 _ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h.  */
25702  #include <sys/types.h>
25703 int
25704 main ()
25705 {
25706  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25707   ;
25708   return 0;
25709 }
25710 _ACEOF
25711 rm -f conftest.$ac_objext
25712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25713   (eval $ac_compile) 2>conftest.er1
25714   ac_status=$?
25715   grep -v '^ *+' conftest.er1 >conftest.err
25716   rm -f conftest.er1
25717   cat conftest.err >&5
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); } &&
25720          { ac_try='test -z "$ac_c_werror_flag"
25721                          || test ! -s conftest.err'
25722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723   (eval $ac_try) 2>&5
25724   ac_status=$?
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); }; } &&
25727          { ac_try='test -s conftest.$ac_objext'
25728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729   (eval $ac_try) 2>&5
25730   ac_status=$?
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); }; }; then
25733    ac_cv_have_u_intxx_t="yes"
25734 else
25735   echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25737
25738  ac_cv_have_u_intxx_t="no"
25739
25740 fi
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25742
25743 fi
25744 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25745 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25746 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25747    cat >>confdefs.h <<\_ACEOF
25748 #define HAVE_U_INTXX_T 1
25749 _ACEOF
25750
25751    have_u_intxx_t=1
25752 fi
25753
25754 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25755 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25756 if test "${ac_cv_have_u_int64_t+set}" = set; then
25757   echo $ECHO_N "(cached) $ECHO_C" >&6
25758 else
25759
25760    cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h.  */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h.  */
25766  #include <sys/types.h>
25767 int
25768 main ()
25769 {
25770  u_int64_t a; a = 1;
25771   ;
25772   return 0;
25773 }
25774 _ACEOF
25775 rm -f conftest.$ac_objext
25776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25777   (eval $ac_compile) 2>conftest.er1
25778   ac_status=$?
25779   grep -v '^ *+' conftest.er1 >conftest.err
25780   rm -f conftest.er1
25781   cat conftest.err >&5
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); } &&
25784          { ac_try='test -z "$ac_c_werror_flag"
25785                          || test ! -s conftest.err'
25786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787   (eval $ac_try) 2>&5
25788   ac_status=$?
25789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790   (exit $ac_status); }; } &&
25791          { ac_try='test -s conftest.$ac_objext'
25792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793   (eval $ac_try) 2>&5
25794   ac_status=$?
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); }; }; then
25797    ac_cv_have_u_int64_t="yes"
25798 else
25799   echo "$as_me: failed program was:" >&5
25800 sed 's/^/| /' conftest.$ac_ext >&5
25801
25802  ac_cv_have_u_int64_t="no"
25803
25804 fi
25805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25806
25807 fi
25808 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25809 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25810 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25811    cat >>confdefs.h <<\_ACEOF
25812 #define HAVE_U_INT64_T 1
25813 _ACEOF
25814
25815    have_u_int64_t=1
25816 fi
25817
25818 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25819            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25820 then
25821    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25822 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25823    cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829  #include <sys/bitypes.h>
25830 int
25831 main ()
25832 {
25833  int8_t a; int16_t b; int32_t c;
25834         u_int8_t e; u_int16_t f; u_int32_t g;
25835         a = b = c = e = f = g = 1;
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25842   (eval $ac_compile) 2>conftest.er1
25843   ac_status=$?
25844   grep -v '^ *+' conftest.er1 >conftest.err
25845   rm -f conftest.er1
25846   cat conftest.err >&5
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); } &&
25849          { ac_try='test -z "$ac_c_werror_flag"
25850                          || test ! -s conftest.err'
25851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852   (eval $ac_try) 2>&5
25853   ac_status=$?
25854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855   (exit $ac_status); }; } &&
25856          { ac_try='test -s conftest.$ac_objext'
25857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858   (eval $ac_try) 2>&5
25859   ac_status=$?
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); }; }; then
25862    cat >>confdefs.h <<\_ACEOF
25863 #define HAVE_U_INTXX_T 1
25864 _ACEOF
25865
25866         cat >>confdefs.h <<\_ACEOF
25867 #define HAVE_INTXX_T 1
25868 _ACEOF
25869
25870         cat >>confdefs.h <<\_ACEOF
25871 #define HAVE_SYS_BITYPES_H 1
25872 _ACEOF
25873
25874         echo "$as_me:$LINENO: result: yes" >&5
25875 echo "${ECHO_T}yes" >&6
25876 else
25877   echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25879
25880  echo "$as_me:$LINENO: result: no" >&5
25881 echo "${ECHO_T}no" >&6
25882
25883 fi
25884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25885 fi
25886
25887 if test -z "$have_u_intxx_t" ; then
25888    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25889 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25890 if test "${ac_cv_have_uintxx_t+set}" = set; then
25891   echo $ECHO_N "(cached) $ECHO_C" >&6
25892 else
25893
25894       cat >conftest.$ac_ext <<_ACEOF
25895 /* confdefs.h.  */
25896 _ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h.  */
25900  #include <sys/types.h>
25901 int
25902 main ()
25903 {
25904  uint8_t a; uint16_t b;
25905            uint32_t c; a = b = c = 1;
25906   ;
25907   return 0;
25908 }
25909 _ACEOF
25910 rm -f conftest.$ac_objext
25911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25912   (eval $ac_compile) 2>conftest.er1
25913   ac_status=$?
25914   grep -v '^ *+' conftest.er1 >conftest.err
25915   rm -f conftest.er1
25916   cat conftest.err >&5
25917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918   (exit $ac_status); } &&
25919          { ac_try='test -z "$ac_c_werror_flag"
25920                          || test ! -s conftest.err'
25921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25922   (eval $ac_try) 2>&5
25923   ac_status=$?
25924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925   (exit $ac_status); }; } &&
25926          { ac_try='test -s conftest.$ac_objext'
25927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928   (eval $ac_try) 2>&5
25929   ac_status=$?
25930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); }; }; then
25932    ac_cv_have_uintxx_t="yes"
25933 else
25934   echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25936
25937  ac_cv_have_uintxx_t="no"
25938
25939 fi
25940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25941
25942 fi
25943 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25944 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25945    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25946       cat >>confdefs.h <<\_ACEOF
25947 #define HAVE_UINTXX_T 1
25948 _ACEOF
25949
25950    fi
25951 fi
25952
25953 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25954           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25955 then
25956    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25957 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25958    cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964  #include <sys/bitypes.h>
25965 int
25966 main ()
25967 {
25968  int64_t a; u_int64_t b;
25969        a = b = 1;
25970   ;
25971   return 0;
25972 }
25973 _ACEOF
25974 rm -f conftest.$ac_objext
25975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25976   (eval $ac_compile) 2>conftest.er1
25977   ac_status=$?
25978   grep -v '^ *+' conftest.er1 >conftest.err
25979   rm -f conftest.er1
25980   cat conftest.err >&5
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); } &&
25983          { ac_try='test -z "$ac_c_werror_flag"
25984                          || test ! -s conftest.err'
25985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986   (eval $ac_try) 2>&5
25987   ac_status=$?
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); }; } &&
25990          { ac_try='test -s conftest.$ac_objext'
25991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992   (eval $ac_try) 2>&5
25993   ac_status=$?
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); }; }; then
25996    cat >>confdefs.h <<\_ACEOF
25997 #define HAVE_U_INT64_T 1
25998 _ACEOF
25999
26000        cat >>confdefs.h <<\_ACEOF
26001 #define HAVE_INT64_T 1
26002 _ACEOF
26003
26004        echo "$as_me:$LINENO: result: yes" >&5
26005 echo "${ECHO_T}yes" >&6
26006 else
26007   echo "$as_me: failed program was:" >&5
26008 sed 's/^/| /' conftest.$ac_ext >&5
26009
26010  echo "$as_me:$LINENO: result: no" >&5
26011 echo "${ECHO_T}no" >&6
26012
26013 fi
26014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26015 fi
26016
26017 if (test -z "$have_uintxx_t" && \
26018           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26019 then
26020    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26021 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26022    cat >conftest.$ac_ext <<_ACEOF
26023 /* confdefs.h.  */
26024 _ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h.  */
26028  #include <sys/bitypes.h>
26029 int
26030 main ()
26031 {
26032  uint8_t a; uint16_t b;
26033           uint32_t c; a = b = c = 1;
26034   ;
26035   return 0;
26036 }
26037 _ACEOF
26038 rm -f conftest.$ac_objext
26039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26040   (eval $ac_compile) 2>conftest.er1
26041   ac_status=$?
26042   grep -v '^ *+' conftest.er1 >conftest.err
26043   rm -f conftest.er1
26044   cat conftest.err >&5
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); } &&
26047          { ac_try='test -z "$ac_c_werror_flag"
26048                          || test ! -s conftest.err'
26049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050   (eval $ac_try) 2>&5
26051   ac_status=$?
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); }; } &&
26054          { ac_try='test -s conftest.$ac_objext'
26055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056   (eval $ac_try) 2>&5
26057   ac_status=$?
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); }; }; then
26060    cat >>confdefs.h <<\_ACEOF
26061 #define HAVE_UINTXX_T 1
26062 _ACEOF
26063
26064        echo "$as_me:$LINENO: result: yes" >&5
26065 echo "${ECHO_T}yes" >&6
26066 else
26067   echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26069
26070  echo "$as_me:$LINENO: result: no" >&5
26071 echo "${ECHO_T}no" >&6
26072
26073 fi
26074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26075
26076 fi
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094 for ac_func in \
26095         fork \
26096         getcwd \
26097         gethostname \
26098         getpid \
26099         gettimeofday \
26100         setpgid \
26101         setpgrp \
26102         setsid \
26103         signal \
26104         strerror \
26105         strncmp \
26106         strncpy \
26107         vfprintf \
26108
26109 do
26110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26111 echo "$as_me:$LINENO: checking for $ac_func" >&5
26112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26113 if eval "test \"\${$as_ac_var+set}\" = set"; then
26114   echo $ECHO_N "(cached) $ECHO_C" >&6
26115 else
26116   cat >conftest.$ac_ext <<_ACEOF
26117 /* confdefs.h.  */
26118 _ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h.  */
26122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26124 #define $ac_func innocuous_$ac_func
26125
26126 /* System header to define __stub macros and hopefully few prototypes,
26127     which can conflict with char $ac_func (); below.
26128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26129     <limits.h> exists even on freestanding compilers.  */
26130
26131 #ifdef __STDC__
26132 # include <limits.h>
26133 #else
26134 # include <assert.h>
26135 #endif
26136
26137 #undef $ac_func
26138
26139 /* Override any gcc2 internal prototype to avoid an error.  */
26140 #ifdef __cplusplus
26141 extern "C"
26142 {
26143 #endif
26144 /* We use char because int might match the return type of a gcc2
26145    builtin and then its argument prototype would still apply.  */
26146 char $ac_func ();
26147 /* The GNU C library defines this for functions which it implements
26148     to always fail with ENOSYS.  Some functions are actually named
26149     something starting with __ and the normal name is an alias.  */
26150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26151 choke me
26152 #else
26153 char (*f) () = $ac_func;
26154 #endif
26155 #ifdef __cplusplus
26156 }
26157 #endif
26158
26159 int
26160 main ()
26161 {
26162 return f != $ac_func;
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 rm -f conftest.$ac_objext conftest$ac_exeext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26169   (eval $ac_link) 2>conftest.er1
26170   ac_status=$?
26171   grep -v '^ *+' conftest.er1 >conftest.err
26172   rm -f conftest.er1
26173   cat conftest.err >&5
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); } &&
26176          { ac_try='test -z "$ac_c_werror_flag"
26177                          || test ! -s conftest.err'
26178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179   (eval $ac_try) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); }; } &&
26183          { ac_try='test -s conftest$ac_exeext'
26184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185   (eval $ac_try) 2>&5
26186   ac_status=$?
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); }; }; then
26189   eval "$as_ac_var=yes"
26190 else
26191   echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 eval "$as_ac_var=no"
26195 fi
26196 rm -f conftest.err conftest.$ac_objext \
26197       conftest$ac_exeext conftest.$ac_ext
26198 fi
26199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26201 if test `eval echo '${'$as_ac_var'}'` = yes; then
26202   cat >>confdefs.h <<_ACEOF
26203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26204 _ACEOF
26205
26206 else
26207   echo 'configure: cannot find needed function.'; exit 1
26208
26209 fi
26210 done
26211
26212
26213
26214 for ac_func in fchdir
26215 do
26216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26217 echo "$as_me:$LINENO: checking for $ac_func" >&5
26218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26219 if eval "test \"\${$as_ac_var+set}\" = set"; then
26220   echo $ECHO_N "(cached) $ECHO_C" >&6
26221 else
26222   cat >conftest.$ac_ext <<_ACEOF
26223 /* confdefs.h.  */
26224 _ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h.  */
26228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26230 #define $ac_func innocuous_$ac_func
26231
26232 /* System header to define __stub macros and hopefully few prototypes,
26233     which can conflict with char $ac_func (); below.
26234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26235     <limits.h> exists even on freestanding compilers.  */
26236
26237 #ifdef __STDC__
26238 # include <limits.h>
26239 #else
26240 # include <assert.h>
26241 #endif
26242
26243 #undef $ac_func
26244
26245 /* Override any gcc2 internal prototype to avoid an error.  */
26246 #ifdef __cplusplus
26247 extern "C"
26248 {
26249 #endif
26250 /* We use char because int might match the return type of a gcc2
26251    builtin and then its argument prototype would still apply.  */
26252 char $ac_func ();
26253 /* The GNU C library defines this for functions which it implements
26254     to always fail with ENOSYS.  Some functions are actually named
26255     something starting with __ and the normal name is an alias.  */
26256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26257 choke me
26258 #else
26259 char (*f) () = $ac_func;
26260 #endif
26261 #ifdef __cplusplus
26262 }
26263 #endif
26264
26265 int
26266 main ()
26267 {
26268 return f != $ac_func;
26269   ;
26270   return 0;
26271 }
26272 _ACEOF
26273 rm -f conftest.$ac_objext conftest$ac_exeext
26274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26275   (eval $ac_link) 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } &&
26282          { ac_try='test -z "$ac_c_werror_flag"
26283                          || test ! -s conftest.err'
26284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285   (eval $ac_try) 2>&5
26286   ac_status=$?
26287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288   (exit $ac_status); }; } &&
26289          { ac_try='test -s conftest$ac_exeext'
26290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291   (eval $ac_try) 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); }; }; then
26295   eval "$as_ac_var=yes"
26296 else
26297   echo "$as_me: failed program was:" >&5
26298 sed 's/^/| /' conftest.$ac_ext >&5
26299
26300 eval "$as_ac_var=no"
26301 fi
26302 rm -f conftest.err conftest.$ac_objext \
26303       conftest$ac_exeext conftest.$ac_ext
26304 fi
26305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26307 if test `eval echo '${'$as_ac_var'}'` = yes; then
26308   cat >>confdefs.h <<_ACEOF
26309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26310 _ACEOF
26311  cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_FCHDIR 1
26313 _ACEOF
26314
26315 fi
26316 done
26317
26318
26319 for ac_func in strtoll
26320 do
26321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26322 echo "$as_me:$LINENO: checking for $ac_func" >&5
26323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26324 if eval "test \"\${$as_ac_var+set}\" = set"; then
26325   echo $ECHO_N "(cached) $ECHO_C" >&6
26326 else
26327   cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h.  */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h.  */
26333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26335 #define $ac_func innocuous_$ac_func
26336
26337 /* System header to define __stub macros and hopefully few prototypes,
26338     which can conflict with char $ac_func (); below.
26339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26340     <limits.h> exists even on freestanding compilers.  */
26341
26342 #ifdef __STDC__
26343 # include <limits.h>
26344 #else
26345 # include <assert.h>
26346 #endif
26347
26348 #undef $ac_func
26349
26350 /* Override any gcc2 internal prototype to avoid an error.  */
26351 #ifdef __cplusplus
26352 extern "C"
26353 {
26354 #endif
26355 /* We use char because int might match the return type of a gcc2
26356    builtin and then its argument prototype would still apply.  */
26357 char $ac_func ();
26358 /* The GNU C library defines this for functions which it implements
26359     to always fail with ENOSYS.  Some functions are actually named
26360     something starting with __ and the normal name is an alias.  */
26361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26362 choke me
26363 #else
26364 char (*f) () = $ac_func;
26365 #endif
26366 #ifdef __cplusplus
26367 }
26368 #endif
26369
26370 int
26371 main ()
26372 {
26373 return f != $ac_func;
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 rm -f conftest.$ac_objext conftest$ac_exeext
26379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26380   (eval $ac_link) 2>conftest.er1
26381   ac_status=$?
26382   grep -v '^ *+' conftest.er1 >conftest.err
26383   rm -f conftest.er1
26384   cat conftest.err >&5
26385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386   (exit $ac_status); } &&
26387          { ac_try='test -z "$ac_c_werror_flag"
26388                          || test ! -s conftest.err'
26389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390   (eval $ac_try) 2>&5
26391   ac_status=$?
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); }; } &&
26394          { ac_try='test -s conftest$ac_exeext'
26395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396   (eval $ac_try) 2>&5
26397   ac_status=$?
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); }; }; then
26400   eval "$as_ac_var=yes"
26401 else
26402   echo "$as_me: failed program was:" >&5
26403 sed 's/^/| /' conftest.$ac_ext >&5
26404
26405 eval "$as_ac_var=no"
26406 fi
26407 rm -f conftest.err conftest.$ac_objext \
26408       conftest$ac_exeext conftest.$ac_ext
26409 fi
26410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26412 if test `eval echo '${'$as_ac_var'}'` = yes; then
26413   cat >>confdefs.h <<_ACEOF
26414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26415 _ACEOF
26416  cat >>confdefs.h <<\_ACEOF
26417 #define HAVE_STRTOLL 1
26418 _ACEOF
26419
26420 fi
26421 done
26422
26423
26424
26425 for ac_func in chflags
26426 do
26427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26428 echo "$as_me:$LINENO: checking for $ac_func" >&5
26429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26430 if eval "test \"\${$as_ac_var+set}\" = set"; then
26431   echo $ECHO_N "(cached) $ECHO_C" >&6
26432 else
26433   cat >conftest.$ac_ext <<_ACEOF
26434 /* confdefs.h.  */
26435 _ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h.  */
26439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26441 #define $ac_func innocuous_$ac_func
26442
26443 /* System header to define __stub macros and hopefully few prototypes,
26444     which can conflict with char $ac_func (); below.
26445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26446     <limits.h> exists even on freestanding compilers.  */
26447
26448 #ifdef __STDC__
26449 # include <limits.h>
26450 #else
26451 # include <assert.h>
26452 #endif
26453
26454 #undef $ac_func
26455
26456 /* Override any gcc2 internal prototype to avoid an error.  */
26457 #ifdef __cplusplus
26458 extern "C"
26459 {
26460 #endif
26461 /* We use char because int might match the return type of a gcc2
26462    builtin and then its argument prototype would still apply.  */
26463 char $ac_func ();
26464 /* The GNU C library defines this for functions which it implements
26465     to always fail with ENOSYS.  Some functions are actually named
26466     something starting with __ and the normal name is an alias.  */
26467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26468 choke me
26469 #else
26470 char (*f) () = $ac_func;
26471 #endif
26472 #ifdef __cplusplus
26473 }
26474 #endif
26475
26476 int
26477 main ()
26478 {
26479 return f != $ac_func;
26480   ;
26481   return 0;
26482 }
26483 _ACEOF
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26486   (eval $ac_link) 2>conftest.er1
26487   ac_status=$?
26488   grep -v '^ *+' conftest.er1 >conftest.err
26489   rm -f conftest.er1
26490   cat conftest.err >&5
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); } &&
26493          { ac_try='test -z "$ac_c_werror_flag"
26494                          || test ! -s conftest.err'
26495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26496   (eval $ac_try) 2>&5
26497   ac_status=$?
26498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); }; } &&
26500          { ac_try='test -s conftest$ac_exeext'
26501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26502   (eval $ac_try) 2>&5
26503   ac_status=$?
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); }; }; then
26506   eval "$as_ac_var=yes"
26507 else
26508   echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26510
26511 eval "$as_ac_var=no"
26512 fi
26513 rm -f conftest.err conftest.$ac_objext \
26514       conftest$ac_exeext conftest.$ac_ext
26515 fi
26516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26518 if test `eval echo '${'$as_ac_var'}'` = yes; then
26519   cat >>confdefs.h <<_ACEOF
26520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26521 _ACEOF
26522
26523 fi
26524 done
26525
26526
26527
26528
26529
26530
26531 for ac_func in snprintf vsnprintf gethostid fseeko
26532 do
26533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26534 echo "$as_me:$LINENO: checking for $ac_func" >&5
26535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26536 if eval "test \"\${$as_ac_var+set}\" = set"; then
26537   echo $ECHO_N "(cached) $ECHO_C" >&6
26538 else
26539   cat >conftest.$ac_ext <<_ACEOF
26540 /* confdefs.h.  */
26541 _ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h.  */
26545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26547 #define $ac_func innocuous_$ac_func
26548
26549 /* System header to define __stub macros and hopefully few prototypes,
26550     which can conflict with char $ac_func (); below.
26551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26552     <limits.h> exists even on freestanding compilers.  */
26553
26554 #ifdef __STDC__
26555 # include <limits.h>
26556 #else
26557 # include <assert.h>
26558 #endif
26559
26560 #undef $ac_func
26561
26562 /* Override any gcc2 internal prototype to avoid an error.  */
26563 #ifdef __cplusplus
26564 extern "C"
26565 {
26566 #endif
26567 /* We use char because int might match the return type of a gcc2
26568    builtin and then its argument prototype would still apply.  */
26569 char $ac_func ();
26570 /* The GNU C library defines this for functions which it implements
26571     to always fail with ENOSYS.  Some functions are actually named
26572     something starting with __ and the normal name is an alias.  */
26573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26574 choke me
26575 #else
26576 char (*f) () = $ac_func;
26577 #endif
26578 #ifdef __cplusplus
26579 }
26580 #endif
26581
26582 int
26583 main ()
26584 {
26585 return f != $ac_func;
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 rm -f conftest.$ac_objext conftest$ac_exeext
26591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26592   (eval $ac_link) 2>conftest.er1
26593   ac_status=$?
26594   grep -v '^ *+' conftest.er1 >conftest.err
26595   rm -f conftest.er1
26596   cat conftest.err >&5
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } &&
26599          { ac_try='test -z "$ac_c_werror_flag"
26600                          || test ! -s conftest.err'
26601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602   (eval $ac_try) 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; } &&
26606          { ac_try='test -s conftest$ac_exeext'
26607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608   (eval $ac_try) 2>&5
26609   ac_status=$?
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); }; }; then
26612   eval "$as_ac_var=yes"
26613 else
26614   echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26616
26617 eval "$as_ac_var=no"
26618 fi
26619 rm -f conftest.err conftest.$ac_objext \
26620       conftest$ac_exeext conftest.$ac_ext
26621 fi
26622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26624 if test `eval echo '${'$as_ac_var'}'` = yes; then
26625   cat >>confdefs.h <<_ACEOF
26626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26627 _ACEOF
26628
26629 fi
26630 done
26631
26632
26633
26634
26635
26636
26637 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26638 do
26639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26640 echo "$as_me:$LINENO: checking for $ac_func" >&5
26641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26642 if eval "test \"\${$as_ac_var+set}\" = set"; then
26643   echo $ECHO_N "(cached) $ECHO_C" >&6
26644 else
26645   cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h.  */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h.  */
26651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26653 #define $ac_func innocuous_$ac_func
26654
26655 /* System header to define __stub macros and hopefully few prototypes,
26656     which can conflict with char $ac_func (); below.
26657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26658     <limits.h> exists even on freestanding compilers.  */
26659
26660 #ifdef __STDC__
26661 # include <limits.h>
26662 #else
26663 # include <assert.h>
26664 #endif
26665
26666 #undef $ac_func
26667
26668 /* Override any gcc2 internal prototype to avoid an error.  */
26669 #ifdef __cplusplus
26670 extern "C"
26671 {
26672 #endif
26673 /* We use char because int might match the return type of a gcc2
26674    builtin and then its argument prototype would still apply.  */
26675 char $ac_func ();
26676 /* The GNU C library defines this for functions which it implements
26677     to always fail with ENOSYS.  Some functions are actually named
26678     something starting with __ and the normal name is an alias.  */
26679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26680 choke me
26681 #else
26682 char (*f) () = $ac_func;
26683 #endif
26684 #ifdef __cplusplus
26685 }
26686 #endif
26687
26688 int
26689 main ()
26690 {
26691 return f != $ac_func;
26692   ;
26693   return 0;
26694 }
26695 _ACEOF
26696 rm -f conftest.$ac_objext conftest$ac_exeext
26697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26698   (eval $ac_link) 2>conftest.er1
26699   ac_status=$?
26700   grep -v '^ *+' conftest.er1 >conftest.err
26701   rm -f conftest.er1
26702   cat conftest.err >&5
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); } &&
26705          { ac_try='test -z "$ac_c_werror_flag"
26706                          || test ! -s conftest.err'
26707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708   (eval $ac_try) 2>&5
26709   ac_status=$?
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); }; } &&
26712          { ac_try='test -s conftest$ac_exeext'
26713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714   (eval $ac_try) 2>&5
26715   ac_status=$?
26716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717   (exit $ac_status); }; }; then
26718   eval "$as_ac_var=yes"
26719 else
26720   echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26722
26723 eval "$as_ac_var=no"
26724 fi
26725 rm -f conftest.err conftest.$ac_objext \
26726       conftest$ac_exeext conftest.$ac_ext
26727 fi
26728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26730 if test `eval echo '${'$as_ac_var'}'` = yes; then
26731   cat >>confdefs.h <<_ACEOF
26732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26733 _ACEOF
26734
26735 fi
26736 done
26737
26738
26739 # If resolver functions are not in libc check for -lnsl or -lresolv.
26740 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26741 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26742 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26743   echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26745   cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26753 #define gethostbyname_r innocuous_gethostbyname_r
26754
26755 /* System header to define __stub macros and hopefully few prototypes,
26756     which can conflict with char gethostbyname_r (); below.
26757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26758     <limits.h> exists even on freestanding compilers.  */
26759
26760 #ifdef __STDC__
26761 # include <limits.h>
26762 #else
26763 # include <assert.h>
26764 #endif
26765
26766 #undef gethostbyname_r
26767
26768 /* Override any gcc2 internal prototype to avoid an error.  */
26769 #ifdef __cplusplus
26770 extern "C"
26771 {
26772 #endif
26773 /* We use char because int might match the return type of a gcc2
26774    builtin and then its argument prototype would still apply.  */
26775 char gethostbyname_r ();
26776 /* The GNU C library defines this for functions which it implements
26777     to always fail with ENOSYS.  Some functions are actually named
26778     something starting with __ and the normal name is an alias.  */
26779 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26780 choke me
26781 #else
26782 char (*f) () = gethostbyname_r;
26783 #endif
26784 #ifdef __cplusplus
26785 }
26786 #endif
26787
26788 int
26789 main ()
26790 {
26791 return f != gethostbyname_r;
26792   ;
26793   return 0;
26794 }
26795 _ACEOF
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26798   (eval $ac_link) 2>conftest.er1
26799   ac_status=$?
26800   grep -v '^ *+' conftest.er1 >conftest.err
26801   rm -f conftest.er1
26802   cat conftest.err >&5
26803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804   (exit $ac_status); } &&
26805          { ac_try='test -z "$ac_c_werror_flag"
26806                          || test ! -s conftest.err'
26807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808   (eval $ac_try) 2>&5
26809   ac_status=$?
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); }; } &&
26812          { ac_try='test -s conftest$ac_exeext'
26813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814   (eval $ac_try) 2>&5
26815   ac_status=$?
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); }; }; then
26818   ac_cv_func_gethostbyname_r=yes
26819 else
26820   echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26822
26823 ac_cv_func_gethostbyname_r=no
26824 fi
26825 rm -f conftest.err conftest.$ac_objext \
26826       conftest$ac_exeext conftest.$ac_ext
26827 fi
26828 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26829 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26830 if test $ac_cv_func_gethostbyname_r = yes; then
26831   echo "$as_me:$LINENO: result: using libc's resolver" >&5
26832 echo "${ECHO_T}using libc's resolver" >&6
26833 else
26834
26835 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26836 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26837 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26838   echo $ECHO_N "(cached) $ECHO_C" >&6
26839 else
26840   ac_check_lib_save_LIBS=$LIBS
26841 LIBS="-lnsl  $LIBS"
26842 cat >conftest.$ac_ext <<_ACEOF
26843 /* confdefs.h.  */
26844 _ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h.  */
26848
26849 /* Override any gcc2 internal prototype to avoid an error.  */
26850 #ifdef __cplusplus
26851 extern "C"
26852 #endif
26853 /* We use char because int might match the return type of a gcc2
26854    builtin and then its argument prototype would still apply.  */
26855 char gethostbyname_r ();
26856 int
26857 main ()
26858 {
26859 gethostbyname_r ();
26860   ;
26861   return 0;
26862 }
26863 _ACEOF
26864 rm -f conftest.$ac_objext conftest$ac_exeext
26865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26866   (eval $ac_link) 2>conftest.er1
26867   ac_status=$?
26868   grep -v '^ *+' conftest.er1 >conftest.err
26869   rm -f conftest.er1
26870   cat conftest.err >&5
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } &&
26873          { ac_try='test -z "$ac_c_werror_flag"
26874                          || test ! -s conftest.err'
26875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876   (eval $ac_try) 2>&5
26877   ac_status=$?
26878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879   (exit $ac_status); }; } &&
26880          { ac_try='test -s conftest$ac_exeext'
26881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882   (eval $ac_try) 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; }; then
26886   ac_cv_lib_nsl_gethostbyname_r=yes
26887 else
26888   echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.$ac_ext >&5
26890
26891 ac_cv_lib_nsl_gethostbyname_r=no
26892 fi
26893 rm -f conftest.err conftest.$ac_objext \
26894       conftest$ac_exeext conftest.$ac_ext
26895 LIBS=$ac_check_lib_save_LIBS
26896 fi
26897 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26898 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26899 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26900   cat >>confdefs.h <<_ACEOF
26901 #define HAVE_LIBNSL 1
26902 _ACEOF
26903
26904   LIBS="-lnsl $LIBS"
26905
26906 fi
26907
26908
26909 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26910 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26911 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26912   echo $ECHO_N "(cached) $ECHO_C" >&6
26913 else
26914   ac_check_lib_save_LIBS=$LIBS
26915 LIBS="-lresolv  $LIBS"
26916 cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h.  */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h.  */
26922
26923 /* Override any gcc2 internal prototype to avoid an error.  */
26924 #ifdef __cplusplus
26925 extern "C"
26926 #endif
26927 /* We use char because int might match the return type of a gcc2
26928    builtin and then its argument prototype would still apply.  */
26929 char gethostbyname_r ();
26930 int
26931 main ()
26932 {
26933 gethostbyname_r ();
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 rm -f conftest.$ac_objext conftest$ac_exeext
26939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26940   (eval $ac_link) 2>conftest.er1
26941   ac_status=$?
26942   grep -v '^ *+' conftest.er1 >conftest.err
26943   rm -f conftest.er1
26944   cat conftest.err >&5
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); } &&
26947          { ac_try='test -z "$ac_c_werror_flag"
26948                          || test ! -s conftest.err'
26949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950   (eval $ac_try) 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; } &&
26954          { ac_try='test -s conftest$ac_exeext'
26955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956   (eval $ac_try) 2>&5
26957   ac_status=$?
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); }; }; then
26960   ac_cv_lib_resolv_gethostbyname_r=yes
26961 else
26962   echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26964
26965 ac_cv_lib_resolv_gethostbyname_r=no
26966 fi
26967 rm -f conftest.err conftest.$ac_objext \
26968       conftest$ac_exeext conftest.$ac_ext
26969 LIBS=$ac_check_lib_save_LIBS
26970 fi
26971 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26972 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26973 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26974   cat >>confdefs.h <<_ACEOF
26975 #define HAVE_LIBRESOLV 1
26976 _ACEOF
26977
26978   LIBS="-lresolv $LIBS"
26979
26980 fi
26981
26982 fi
26983
26984
26985
26986
26987
26988 for ac_func in inet_pton
26989 do
26990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26991 echo "$as_me:$LINENO: checking for $ac_func" >&5
26992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26993 if eval "test \"\${$as_ac_var+set}\" = set"; then
26994   echo $ECHO_N "(cached) $ECHO_C" >&6
26995 else
26996   cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27004 #define $ac_func innocuous_$ac_func
27005
27006 /* System header to define __stub macros and hopefully few prototypes,
27007     which can conflict with char $ac_func (); below.
27008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27009     <limits.h> exists even on freestanding compilers.  */
27010
27011 #ifdef __STDC__
27012 # include <limits.h>
27013 #else
27014 # include <assert.h>
27015 #endif
27016
27017 #undef $ac_func
27018
27019 /* Override any gcc2 internal prototype to avoid an error.  */
27020 #ifdef __cplusplus
27021 extern "C"
27022 {
27023 #endif
27024 /* We use char because int might match the return type of a gcc2
27025    builtin and then its argument prototype would still apply.  */
27026 char $ac_func ();
27027 /* The GNU C library defines this for functions which it implements
27028     to always fail with ENOSYS.  Some functions are actually named
27029     something starting with __ and the normal name is an alias.  */
27030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27031 choke me
27032 #else
27033 char (*f) () = $ac_func;
27034 #endif
27035 #ifdef __cplusplus
27036 }
27037 #endif
27038
27039 int
27040 main ()
27041 {
27042 return f != $ac_func;
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27049   (eval $ac_link) 2>conftest.er1
27050   ac_status=$?
27051   grep -v '^ *+' conftest.er1 >conftest.err
27052   rm -f conftest.er1
27053   cat conftest.err >&5
27054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055   (exit $ac_status); } &&
27056          { ac_try='test -z "$ac_c_werror_flag"
27057                          || test ! -s conftest.err'
27058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059   (eval $ac_try) 2>&5
27060   ac_status=$?
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); }; } &&
27063          { ac_try='test -s conftest$ac_exeext'
27064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065   (eval $ac_try) 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); }; }; then
27069   eval "$as_ac_var=yes"
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074 eval "$as_ac_var=no"
27075 fi
27076 rm -f conftest.err conftest.$ac_objext \
27077       conftest$ac_exeext conftest.$ac_ext
27078 fi
27079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27081 if test `eval echo '${'$as_ac_var'}'` = yes; then
27082   cat >>confdefs.h <<_ACEOF
27083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27084 _ACEOF
27085  cat >>confdefs.h <<\_ACEOF
27086 #define HAVE_INET_PTON 1
27087 _ACEOF
27088
27089 fi
27090 done
27091
27092
27093 for ac_func in inet_ntop
27094 do
27095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27096 echo "$as_me:$LINENO: checking for $ac_func" >&5
27097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27098 if eval "test \"\${$as_ac_var+set}\" = set"; then
27099   echo $ECHO_N "(cached) $ECHO_C" >&6
27100 else
27101   cat >conftest.$ac_ext <<_ACEOF
27102 /* confdefs.h.  */
27103 _ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h.  */
27107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27109 #define $ac_func innocuous_$ac_func
27110
27111 /* System header to define __stub macros and hopefully few prototypes,
27112     which can conflict with char $ac_func (); below.
27113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27114     <limits.h> exists even on freestanding compilers.  */
27115
27116 #ifdef __STDC__
27117 # include <limits.h>
27118 #else
27119 # include <assert.h>
27120 #endif
27121
27122 #undef $ac_func
27123
27124 /* Override any gcc2 internal prototype to avoid an error.  */
27125 #ifdef __cplusplus
27126 extern "C"
27127 {
27128 #endif
27129 /* We use char because int might match the return type of a gcc2
27130    builtin and then its argument prototype would still apply.  */
27131 char $ac_func ();
27132 /* The GNU C library defines this for functions which it implements
27133     to always fail with ENOSYS.  Some functions are actually named
27134     something starting with __ and the normal name is an alias.  */
27135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27136 choke me
27137 #else
27138 char (*f) () = $ac_func;
27139 #endif
27140 #ifdef __cplusplus
27141 }
27142 #endif
27143
27144 int
27145 main ()
27146 {
27147 return f != $ac_func;
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 rm -f conftest.$ac_objext conftest$ac_exeext
27153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27154   (eval $ac_link) 2>conftest.er1
27155   ac_status=$?
27156   grep -v '^ *+' conftest.er1 >conftest.err
27157   rm -f conftest.er1
27158   cat conftest.err >&5
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } &&
27161          { ac_try='test -z "$ac_c_werror_flag"
27162                          || test ! -s conftest.err'
27163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164   (eval $ac_try) 2>&5
27165   ac_status=$?
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); }; } &&
27168          { ac_try='test -s conftest$ac_exeext'
27169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170   (eval $ac_try) 2>&5
27171   ac_status=$?
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); }; }; then
27174   eval "$as_ac_var=yes"
27175 else
27176   echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27178
27179 eval "$as_ac_var=no"
27180 fi
27181 rm -f conftest.err conftest.$ac_objext \
27182       conftest$ac_exeext conftest.$ac_ext
27183 fi
27184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27186 if test `eval echo '${'$as_ac_var'}'` = yes; then
27187   cat >>confdefs.h <<_ACEOF
27188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27189 _ACEOF
27190  cat >>confdefs.h <<\_ACEOF
27191 #define HAVE_INET_NTOP 1
27192 _ACEOF
27193
27194 fi
27195 done
27196
27197
27198 for ac_func in gethostbyname2
27199 do
27200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27201 echo "$as_me:$LINENO: checking for $ac_func" >&5
27202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27203 if eval "test \"\${$as_ac_var+set}\" = set"; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206   cat >conftest.$ac_ext <<_ACEOF
27207 /* confdefs.h.  */
27208 _ACEOF
27209 cat confdefs.h >>conftest.$ac_ext
27210 cat >>conftest.$ac_ext <<_ACEOF
27211 /* end confdefs.h.  */
27212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27214 #define $ac_func innocuous_$ac_func
27215
27216 /* System header to define __stub macros and hopefully few prototypes,
27217     which can conflict with char $ac_func (); below.
27218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27219     <limits.h> exists even on freestanding compilers.  */
27220
27221 #ifdef __STDC__
27222 # include <limits.h>
27223 #else
27224 # include <assert.h>
27225 #endif
27226
27227 #undef $ac_func
27228
27229 /* Override any gcc2 internal prototype to avoid an error.  */
27230 #ifdef __cplusplus
27231 extern "C"
27232 {
27233 #endif
27234 /* We use char because int might match the return type of a gcc2
27235    builtin and then its argument prototype would still apply.  */
27236 char $ac_func ();
27237 /* The GNU C library defines this for functions which it implements
27238     to always fail with ENOSYS.  Some functions are actually named
27239     something starting with __ and the normal name is an alias.  */
27240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27241 choke me
27242 #else
27243 char (*f) () = $ac_func;
27244 #endif
27245 #ifdef __cplusplus
27246 }
27247 #endif
27248
27249 int
27250 main ()
27251 {
27252 return f != $ac_func;
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 rm -f conftest.$ac_objext conftest$ac_exeext
27258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27259   (eval $ac_link) 2>conftest.er1
27260   ac_status=$?
27261   grep -v '^ *+' conftest.er1 >conftest.err
27262   rm -f conftest.er1
27263   cat conftest.err >&5
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); } &&
27266          { ac_try='test -z "$ac_c_werror_flag"
27267                          || test ! -s conftest.err'
27268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269   (eval $ac_try) 2>&5
27270   ac_status=$?
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); }; } &&
27273          { ac_try='test -s conftest$ac_exeext'
27274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275   (eval $ac_try) 2>&5
27276   ac_status=$?
27277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); }; }; then
27279   eval "$as_ac_var=yes"
27280 else
27281   echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27283
27284 eval "$as_ac_var=no"
27285 fi
27286 rm -f conftest.err conftest.$ac_objext \
27287       conftest$ac_exeext conftest.$ac_ext
27288 fi
27289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27291 if test `eval echo '${'$as_ac_var'}'` = yes; then
27292   cat >>confdefs.h <<_ACEOF
27293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27294 _ACEOF
27295  cat >>confdefs.h <<\_ACEOF
27296 #define HAVE_GETHOSTBYNAME2 1
27297 _ACEOF
27298
27299 fi
27300 done
27301
27302
27303 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27304 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27305 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27306   echo $ECHO_N "(cached) $ECHO_C" >&6
27307 else
27308   cat >conftest.$ac_ext <<_ACEOF
27309 /* confdefs.h.  */
27310 _ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h.  */
27314 #include <sys/socket.h>
27315 int
27316 main ()
27317 {
27318 struct sockaddr s; s.sa_len;
27319   ;
27320   return 0;
27321 }
27322 _ACEOF
27323 rm -f conftest.$ac_objext
27324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27325   (eval $ac_compile) 2>conftest.er1
27326   ac_status=$?
27327   grep -v '^ *+' conftest.er1 >conftest.err
27328   rm -f conftest.er1
27329   cat conftest.err >&5
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); } &&
27332          { ac_try='test -z "$ac_c_werror_flag"
27333                          || test ! -s conftest.err'
27334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335   (eval $ac_try) 2>&5
27336   ac_status=$?
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); }; } &&
27339          { ac_try='test -s conftest.$ac_objext'
27340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341   (eval $ac_try) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); }; }; then
27345   ac_cv_struct_sockaddr_sa_len=yes
27346 else
27347   echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27349
27350 ac_cv_struct_sockaddr_sa_len=no
27351 fi
27352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27353 fi
27354 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27355 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27356
27357  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27358
27359 cat >>confdefs.h <<\_ACEOF
27360 #define HAVE_SA_LEN 1
27361 _ACEOF
27362
27363  fi
27364
27365
27366 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27367 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27368 if test "${ac_cv_ipv6_support+set}" = set; then
27369   echo $ECHO_N "(cached) $ECHO_C" >&6
27370 else
27371   cat >conftest.$ac_ext <<_ACEOF
27372 /* confdefs.h.  */
27373 _ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h.  */
27377  #include <sys/types.h>
27378 #include <sys/socket.h>
27379 #include <netinet/in.h>
27380 int
27381 main ()
27382 {
27383 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27384  0;
27385   ;
27386   return 0;
27387 }
27388 _ACEOF
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391   (eval $ac_link) 2>conftest.er1
27392   ac_status=$?
27393   grep -v '^ *+' conftest.er1 >conftest.err
27394   rm -f conftest.er1
27395   cat conftest.err >&5
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); } &&
27398          { ac_try='test -z "$ac_c_werror_flag"
27399                          || test ! -s conftest.err'
27400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401   (eval $ac_try) 2>&5
27402   ac_status=$?
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); }; } &&
27405          { ac_try='test -s conftest$ac_exeext'
27406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407   (eval $ac_try) 2>&5
27408   ac_status=$?
27409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); }; }; then
27411   ac_cv_ipv6_support=yes
27412 else
27413   echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27415
27416 ac_cv_ipv6_support=no
27417 fi
27418 rm -f conftest.err conftest.$ac_objext \
27419       conftest$ac_exeext conftest.$ac_ext
27420 fi
27421 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27422 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27423
27424 if test "$ac_cv_ipv6_support" = yes; then
27425
27426 cat >>confdefs.h <<\_ACEOF
27427 #define HAVE_IPV6 1
27428 _ACEOF
27429
27430 fi
27431
27432
27433
27434
27435 for ac_func in strftime
27436 do
27437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27438 echo "$as_me:$LINENO: checking for $ac_func" >&5
27439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27440 if eval "test \"\${$as_ac_var+set}\" = set"; then
27441   echo $ECHO_N "(cached) $ECHO_C" >&6
27442 else
27443   cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h.  */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h.  */
27449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27451 #define $ac_func innocuous_$ac_func
27452
27453 /* System header to define __stub macros and hopefully few prototypes,
27454     which can conflict with char $ac_func (); below.
27455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27456     <limits.h> exists even on freestanding compilers.  */
27457
27458 #ifdef __STDC__
27459 # include <limits.h>
27460 #else
27461 # include <assert.h>
27462 #endif
27463
27464 #undef $ac_func
27465
27466 /* Override any gcc2 internal prototype to avoid an error.  */
27467 #ifdef __cplusplus
27468 extern "C"
27469 {
27470 #endif
27471 /* We use char because int might match the return type of a gcc2
27472    builtin and then its argument prototype would still apply.  */
27473 char $ac_func ();
27474 /* The GNU C library defines this for functions which it implements
27475     to always fail with ENOSYS.  Some functions are actually named
27476     something starting with __ and the normal name is an alias.  */
27477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27478 choke me
27479 #else
27480 char (*f) () = $ac_func;
27481 #endif
27482 #ifdef __cplusplus
27483 }
27484 #endif
27485
27486 int
27487 main ()
27488 {
27489 return f != $ac_func;
27490   ;
27491   return 0;
27492 }
27493 _ACEOF
27494 rm -f conftest.$ac_objext conftest$ac_exeext
27495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27496   (eval $ac_link) 2>conftest.er1
27497   ac_status=$?
27498   grep -v '^ *+' conftest.er1 >conftest.err
27499   rm -f conftest.er1
27500   cat conftest.err >&5
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); } &&
27503          { ac_try='test -z "$ac_c_werror_flag"
27504                          || test ! -s conftest.err'
27505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506   (eval $ac_try) 2>&5
27507   ac_status=$?
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); }; } &&
27510          { ac_try='test -s conftest$ac_exeext'
27511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27512   (eval $ac_try) 2>&5
27513   ac_status=$?
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); }; }; then
27516   eval "$as_ac_var=yes"
27517 else
27518   echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27520
27521 eval "$as_ac_var=no"
27522 fi
27523 rm -f conftest.err conftest.$ac_objext \
27524       conftest$ac_exeext conftest.$ac_ext
27525 fi
27526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27528 if test `eval echo '${'$as_ac_var'}'` = yes; then
27529   cat >>confdefs.h <<_ACEOF
27530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27531 _ACEOF
27532
27533 else
27534   # strftime is in -lintl on SCO UNIX.
27535 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27536 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27537 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27538   echo $ECHO_N "(cached) $ECHO_C" >&6
27539 else
27540   ac_check_lib_save_LIBS=$LIBS
27541 LIBS="-lintl  $LIBS"
27542 cat >conftest.$ac_ext <<_ACEOF
27543 /* confdefs.h.  */
27544 _ACEOF
27545 cat confdefs.h >>conftest.$ac_ext
27546 cat >>conftest.$ac_ext <<_ACEOF
27547 /* end confdefs.h.  */
27548
27549 /* Override any gcc2 internal prototype to avoid an error.  */
27550 #ifdef __cplusplus
27551 extern "C"
27552 #endif
27553 /* We use char because int might match the return type of a gcc2
27554    builtin and then its argument prototype would still apply.  */
27555 char strftime ();
27556 int
27557 main ()
27558 {
27559 strftime ();
27560   ;
27561   return 0;
27562 }
27563 _ACEOF
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566   (eval $ac_link) 2>conftest.er1
27567   ac_status=$?
27568   grep -v '^ *+' conftest.er1 >conftest.err
27569   rm -f conftest.er1
27570   cat conftest.err >&5
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); } &&
27573          { ac_try='test -z "$ac_c_werror_flag"
27574                          || test ! -s conftest.err'
27575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576   (eval $ac_try) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; } &&
27580          { ac_try='test -s conftest$ac_exeext'
27581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582   (eval $ac_try) 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   ac_cv_lib_intl_strftime=yes
27587 else
27588   echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27590
27591 ac_cv_lib_intl_strftime=no
27592 fi
27593 rm -f conftest.err conftest.$ac_objext \
27594       conftest$ac_exeext conftest.$ac_ext
27595 LIBS=$ac_check_lib_save_LIBS
27596 fi
27597 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27598 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27599 if test $ac_cv_lib_intl_strftime = yes; then
27600   cat >>confdefs.h <<\_ACEOF
27601 #define HAVE_STRFTIME 1
27602 _ACEOF
27603
27604 LIBS="-lintl $LIBS"
27605 fi
27606
27607 fi
27608 done
27609
27610
27611 for ac_func in vprintf
27612 do
27613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27614 echo "$as_me:$LINENO: checking for $ac_func" >&5
27615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27616 if eval "test \"\${$as_ac_var+set}\" = set"; then
27617   echo $ECHO_N "(cached) $ECHO_C" >&6
27618 else
27619   cat >conftest.$ac_ext <<_ACEOF
27620 /* confdefs.h.  */
27621 _ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h.  */
27625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27627 #define $ac_func innocuous_$ac_func
27628
27629 /* System header to define __stub macros and hopefully few prototypes,
27630     which can conflict with char $ac_func (); below.
27631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27632     <limits.h> exists even on freestanding compilers.  */
27633
27634 #ifdef __STDC__
27635 # include <limits.h>
27636 #else
27637 # include <assert.h>
27638 #endif
27639
27640 #undef $ac_func
27641
27642 /* Override any gcc2 internal prototype to avoid an error.  */
27643 #ifdef __cplusplus
27644 extern "C"
27645 {
27646 #endif
27647 /* We use char because int might match the return type of a gcc2
27648    builtin and then its argument prototype would still apply.  */
27649 char $ac_func ();
27650 /* The GNU C library defines this for functions which it implements
27651     to always fail with ENOSYS.  Some functions are actually named
27652     something starting with __ and the normal name is an alias.  */
27653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27654 choke me
27655 #else
27656 char (*f) () = $ac_func;
27657 #endif
27658 #ifdef __cplusplus
27659 }
27660 #endif
27661
27662 int
27663 main ()
27664 {
27665 return f != $ac_func;
27666   ;
27667   return 0;
27668 }
27669 _ACEOF
27670 rm -f conftest.$ac_objext conftest$ac_exeext
27671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27672   (eval $ac_link) 2>conftest.er1
27673   ac_status=$?
27674   grep -v '^ *+' conftest.er1 >conftest.err
27675   rm -f conftest.er1
27676   cat conftest.err >&5
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); } &&
27679          { ac_try='test -z "$ac_c_werror_flag"
27680                          || test ! -s conftest.err'
27681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682   (eval $ac_try) 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; } &&
27686          { ac_try='test -s conftest$ac_exeext'
27687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; }; then
27692   eval "$as_ac_var=yes"
27693 else
27694   echo "$as_me: failed program was:" >&5
27695 sed 's/^/| /' conftest.$ac_ext >&5
27696
27697 eval "$as_ac_var=no"
27698 fi
27699 rm -f conftest.err conftest.$ac_objext \
27700       conftest$ac_exeext conftest.$ac_ext
27701 fi
27702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27704 if test `eval echo '${'$as_ac_var'}'` = yes; then
27705   cat >>confdefs.h <<_ACEOF
27706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27707 _ACEOF
27708
27709 echo "$as_me:$LINENO: checking for _doprnt" >&5
27710 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27711 if test "${ac_cv_func__doprnt+set}" = set; then
27712   echo $ECHO_N "(cached) $ECHO_C" >&6
27713 else
27714   cat >conftest.$ac_ext <<_ACEOF
27715 /* confdefs.h.  */
27716 _ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h.  */
27720 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27722 #define _doprnt innocuous__doprnt
27723
27724 /* System header to define __stub macros and hopefully few prototypes,
27725     which can conflict with char _doprnt (); below.
27726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27727     <limits.h> exists even on freestanding compilers.  */
27728
27729 #ifdef __STDC__
27730 # include <limits.h>
27731 #else
27732 # include <assert.h>
27733 #endif
27734
27735 #undef _doprnt
27736
27737 /* Override any gcc2 internal prototype to avoid an error.  */
27738 #ifdef __cplusplus
27739 extern "C"
27740 {
27741 #endif
27742 /* We use char because int might match the return type of a gcc2
27743    builtin and then its argument prototype would still apply.  */
27744 char _doprnt ();
27745 /* The GNU C library defines this for functions which it implements
27746     to always fail with ENOSYS.  Some functions are actually named
27747     something starting with __ and the normal name is an alias.  */
27748 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27749 choke me
27750 #else
27751 char (*f) () = _doprnt;
27752 #endif
27753 #ifdef __cplusplus
27754 }
27755 #endif
27756
27757 int
27758 main ()
27759 {
27760 return f != _doprnt;
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
27765 rm -f conftest.$ac_objext conftest$ac_exeext
27766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27767   (eval $ac_link) 2>conftest.er1
27768   ac_status=$?
27769   grep -v '^ *+' conftest.er1 >conftest.err
27770   rm -f conftest.er1
27771   cat conftest.err >&5
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); } &&
27774          { ac_try='test -z "$ac_c_werror_flag"
27775                          || test ! -s conftest.err'
27776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777   (eval $ac_try) 2>&5
27778   ac_status=$?
27779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); }; } &&
27781          { ac_try='test -s conftest$ac_exeext'
27782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783   (eval $ac_try) 2>&5
27784   ac_status=$?
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); }; }; then
27787   ac_cv_func__doprnt=yes
27788 else
27789   echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27791
27792 ac_cv_func__doprnt=no
27793 fi
27794 rm -f conftest.err conftest.$ac_objext \
27795       conftest$ac_exeext conftest.$ac_ext
27796 fi
27797 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27798 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27799 if test $ac_cv_func__doprnt = yes; then
27800
27801 cat >>confdefs.h <<\_ACEOF
27802 #define HAVE_DOPRNT 1
27803 _ACEOF
27804
27805 fi
27806
27807 fi
27808 done
27809
27810
27811 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27812 # for constant arguments.  Useless!
27813 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27814 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27815 if test "${ac_cv_working_alloca_h+set}" = set; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   cat >conftest.$ac_ext <<_ACEOF
27819 /* confdefs.h.  */
27820 _ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h.  */
27824 #include <alloca.h>
27825 int
27826 main ()
27827 {
27828 char *p = (char *) alloca (2 * sizeof (int));
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 rm -f conftest.$ac_objext conftest$ac_exeext
27834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27835   (eval $ac_link) 2>conftest.er1
27836   ac_status=$?
27837   grep -v '^ *+' conftest.er1 >conftest.err
27838   rm -f conftest.er1
27839   cat conftest.err >&5
27840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841   (exit $ac_status); } &&
27842          { ac_try='test -z "$ac_c_werror_flag"
27843                          || test ! -s conftest.err'
27844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27845   (eval $ac_try) 2>&5
27846   ac_status=$?
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); }; } &&
27849          { ac_try='test -s conftest$ac_exeext'
27850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851   (eval $ac_try) 2>&5
27852   ac_status=$?
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); }; }; then
27855   ac_cv_working_alloca_h=yes
27856 else
27857   echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27859
27860 ac_cv_working_alloca_h=no
27861 fi
27862 rm -f conftest.err conftest.$ac_objext \
27863       conftest$ac_exeext conftest.$ac_ext
27864 fi
27865 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27866 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27867 if test $ac_cv_working_alloca_h = yes; then
27868
27869 cat >>confdefs.h <<\_ACEOF
27870 #define HAVE_ALLOCA_H 1
27871 _ACEOF
27872
27873 fi
27874
27875 echo "$as_me:$LINENO: checking for alloca" >&5
27876 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27877 if test "${ac_cv_func_alloca_works+set}" = set; then
27878   echo $ECHO_N "(cached) $ECHO_C" >&6
27879 else
27880   cat >conftest.$ac_ext <<_ACEOF
27881 /* confdefs.h.  */
27882 _ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h.  */
27886 #ifdef __GNUC__
27887 # define alloca __builtin_alloca
27888 #else
27889 # ifdef _MSC_VER
27890 #  include <malloc.h>
27891 #  define alloca _alloca
27892 # else
27893 #  if HAVE_ALLOCA_H
27894 #   include <alloca.h>
27895 #  else
27896 #   ifdef _AIX
27897  #pragma alloca
27898 #   else
27899 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27900 char *alloca ();
27901 #    endif
27902 #   endif
27903 #  endif
27904 # endif
27905 #endif
27906
27907 int
27908 main ()
27909 {
27910 char *p = (char *) alloca (1);
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917   (eval $ac_link) 2>conftest.er1
27918   ac_status=$?
27919   grep -v '^ *+' conftest.er1 >conftest.err
27920   rm -f conftest.er1
27921   cat conftest.err >&5
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); } &&
27924          { ac_try='test -z "$ac_c_werror_flag"
27925                          || test ! -s conftest.err'
27926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927   (eval $ac_try) 2>&5
27928   ac_status=$?
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); }; } &&
27931          { ac_try='test -s conftest$ac_exeext'
27932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933   (eval $ac_try) 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; }; then
27937   ac_cv_func_alloca_works=yes
27938 else
27939   echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27941
27942 ac_cv_func_alloca_works=no
27943 fi
27944 rm -f conftest.err conftest.$ac_objext \
27945       conftest$ac_exeext conftest.$ac_ext
27946 fi
27947 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27948 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27949
27950 if test $ac_cv_func_alloca_works = yes; then
27951
27952 cat >>confdefs.h <<\_ACEOF
27953 #define HAVE_ALLOCA 1
27954 _ACEOF
27955
27956 else
27957   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27958 # that cause trouble.  Some versions do not even contain alloca or
27959 # contain a buggy version.  If you still want to use their alloca,
27960 # use ar to extract alloca.o from them instead of compiling alloca.c.
27961
27962 ALLOCA=alloca.$ac_objext
27963
27964 cat >>confdefs.h <<\_ACEOF
27965 #define C_ALLOCA 1
27966 _ACEOF
27967
27968
27969 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27970 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27971 if test "${ac_cv_os_cray+set}" = set; then
27972   echo $ECHO_N "(cached) $ECHO_C" >&6
27973 else
27974   cat >conftest.$ac_ext <<_ACEOF
27975 /* confdefs.h.  */
27976 _ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h.  */
27980 #if defined(CRAY) && ! defined(CRAY2)
27981 webecray
27982 #else
27983 wenotbecray
27984 #endif
27985
27986 _ACEOF
27987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27988   $EGREP "webecray" >/dev/null 2>&1; then
27989   ac_cv_os_cray=yes
27990 else
27991   ac_cv_os_cray=no
27992 fi
27993 rm -f conftest*
27994
27995 fi
27996 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27997 echo "${ECHO_T}$ac_cv_os_cray" >&6
27998 if test $ac_cv_os_cray = yes; then
27999   for ac_func in _getb67 GETB67 getb67; do
28000     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28001 echo "$as_me:$LINENO: checking for $ac_func" >&5
28002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28003 if eval "test \"\${$as_ac_var+set}\" = set"; then
28004   echo $ECHO_N "(cached) $ECHO_C" >&6
28005 else
28006   cat >conftest.$ac_ext <<_ACEOF
28007 /* confdefs.h.  */
28008 _ACEOF
28009 cat confdefs.h >>conftest.$ac_ext
28010 cat >>conftest.$ac_ext <<_ACEOF
28011 /* end confdefs.h.  */
28012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28014 #define $ac_func innocuous_$ac_func
28015
28016 /* System header to define __stub macros and hopefully few prototypes,
28017     which can conflict with char $ac_func (); below.
28018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28019     <limits.h> exists even on freestanding compilers.  */
28020
28021 #ifdef __STDC__
28022 # include <limits.h>
28023 #else
28024 # include <assert.h>
28025 #endif
28026
28027 #undef $ac_func
28028
28029 /* Override any gcc2 internal prototype to avoid an error.  */
28030 #ifdef __cplusplus
28031 extern "C"
28032 {
28033 #endif
28034 /* We use char because int might match the return type of a gcc2
28035    builtin and then its argument prototype would still apply.  */
28036 char $ac_func ();
28037 /* The GNU C library defines this for functions which it implements
28038     to always fail with ENOSYS.  Some functions are actually named
28039     something starting with __ and the normal name is an alias.  */
28040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28041 choke me
28042 #else
28043 char (*f) () = $ac_func;
28044 #endif
28045 #ifdef __cplusplus
28046 }
28047 #endif
28048
28049 int
28050 main ()
28051 {
28052 return f != $ac_func;
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059   (eval $ac_link) 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag"
28067                          || test ! -s conftest.err'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; } &&
28073          { ac_try='test -s conftest$ac_exeext'
28074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075   (eval $ac_try) 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; }; then
28079   eval "$as_ac_var=yes"
28080 else
28081   echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28083
28084 eval "$as_ac_var=no"
28085 fi
28086 rm -f conftest.err conftest.$ac_objext \
28087       conftest$ac_exeext conftest.$ac_ext
28088 fi
28089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28091 if test `eval echo '${'$as_ac_var'}'` = yes; then
28092
28093 cat >>confdefs.h <<_ACEOF
28094 #define CRAY_STACKSEG_END $ac_func
28095 _ACEOF
28096
28097     break
28098 fi
28099
28100   done
28101 fi
28102
28103 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28104 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28105 if test "${ac_cv_c_stack_direction+set}" = set; then
28106   echo $ECHO_N "(cached) $ECHO_C" >&6
28107 else
28108   if test "$cross_compiling" = yes; then
28109   ac_cv_c_stack_direction=0
28110 else
28111   cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117 int
28118 find_stack_direction ()
28119 {
28120   static char *addr = 0;
28121   auto char dummy;
28122   if (addr == 0)
28123     {
28124       addr = &dummy;
28125       return find_stack_direction ();
28126     }
28127   else
28128     return (&dummy > addr) ? 1 : -1;
28129 }
28130
28131 int
28132 main ()
28133 {
28134   exit (find_stack_direction () < 0);
28135 }
28136 _ACEOF
28137 rm -f conftest$ac_exeext
28138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28139   (eval $ac_link) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144   (eval $ac_try) 2>&5
28145   ac_status=$?
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); }; }; then
28148   ac_cv_c_stack_direction=1
28149 else
28150   echo "$as_me: program exited with status $ac_status" >&5
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154 ( exit $ac_status )
28155 ac_cv_c_stack_direction=-1
28156 fi
28157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28158 fi
28159 fi
28160 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28161 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28162
28163 cat >>confdefs.h <<_ACEOF
28164 #define STACK_DIRECTION $ac_cv_c_stack_direction
28165 _ACEOF
28166
28167
28168 fi
28169
28170 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28171 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28172 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28173 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28174   echo $ECHO_N "(cached) $ECHO_C" >&6
28175 else
28176   ac_check_lib_save_LIBS=$LIBS
28177 LIBS="-lsun  $LIBS"
28178 cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184
28185 /* Override any gcc2 internal prototype to avoid an error.  */
28186 #ifdef __cplusplus
28187 extern "C"
28188 #endif
28189 /* We use char because int might match the return type of a gcc2
28190    builtin and then its argument prototype would still apply.  */
28191 char getmntent ();
28192 int
28193 main ()
28194 {
28195 getmntent ();
28196   ;
28197   return 0;
28198 }
28199 _ACEOF
28200 rm -f conftest.$ac_objext conftest$ac_exeext
28201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28202   (eval $ac_link) 2>conftest.er1
28203   ac_status=$?
28204   grep -v '^ *+' conftest.er1 >conftest.err
28205   rm -f conftest.er1
28206   cat conftest.err >&5
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); } &&
28209          { ac_try='test -z "$ac_c_werror_flag"
28210                          || test ! -s conftest.err'
28211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212   (eval $ac_try) 2>&5
28213   ac_status=$?
28214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215   (exit $ac_status); }; } &&
28216          { ac_try='test -s conftest$ac_exeext'
28217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218   (eval $ac_try) 2>&5
28219   ac_status=$?
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); }; }; then
28222   ac_cv_lib_sun_getmntent=yes
28223 else
28224   echo "$as_me: failed program was:" >&5
28225 sed 's/^/| /' conftest.$ac_ext >&5
28226
28227 ac_cv_lib_sun_getmntent=no
28228 fi
28229 rm -f conftest.err conftest.$ac_objext \
28230       conftest$ac_exeext conftest.$ac_ext
28231 LIBS=$ac_check_lib_save_LIBS
28232 fi
28233 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28234 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28235 if test $ac_cv_lib_sun_getmntent = yes; then
28236   LIBS="-lsun $LIBS"
28237 else
28238   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28239 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28240 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28241   echo $ECHO_N "(cached) $ECHO_C" >&6
28242 else
28243   ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lseq  $LIBS"
28245 cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251
28252 /* Override any gcc2 internal prototype to avoid an error.  */
28253 #ifdef __cplusplus
28254 extern "C"
28255 #endif
28256 /* We use char because int might match the return type of a gcc2
28257    builtin and then its argument prototype would still apply.  */
28258 char getmntent ();
28259 int
28260 main ()
28261 {
28262 getmntent ();
28263   ;
28264   return 0;
28265 }
28266 _ACEOF
28267 rm -f conftest.$ac_objext conftest$ac_exeext
28268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28269   (eval $ac_link) 2>conftest.er1
28270   ac_status=$?
28271   grep -v '^ *+' conftest.er1 >conftest.err
28272   rm -f conftest.er1
28273   cat conftest.err >&5
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); } &&
28276          { ac_try='test -z "$ac_c_werror_flag"
28277                          || test ! -s conftest.err'
28278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279   (eval $ac_try) 2>&5
28280   ac_status=$?
28281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); }; } &&
28283          { ac_try='test -s conftest$ac_exeext'
28284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285   (eval $ac_try) 2>&5
28286   ac_status=$?
28287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288   (exit $ac_status); }; }; then
28289   ac_cv_lib_seq_getmntent=yes
28290 else
28291   echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28293
28294 ac_cv_lib_seq_getmntent=no
28295 fi
28296 rm -f conftest.err conftest.$ac_objext \
28297       conftest$ac_exeext conftest.$ac_ext
28298 LIBS=$ac_check_lib_save_LIBS
28299 fi
28300 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28301 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28302 if test $ac_cv_lib_seq_getmntent = yes; then
28303   LIBS="-lseq $LIBS"
28304 else
28305   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28306 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28307 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28308   echo $ECHO_N "(cached) $ECHO_C" >&6
28309 else
28310   ac_check_lib_save_LIBS=$LIBS
28311 LIBS="-lgen  $LIBS"
28312 cat >conftest.$ac_ext <<_ACEOF
28313 /* confdefs.h.  */
28314 _ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h.  */
28318
28319 /* Override any gcc2 internal prototype to avoid an error.  */
28320 #ifdef __cplusplus
28321 extern "C"
28322 #endif
28323 /* We use char because int might match the return type of a gcc2
28324    builtin and then its argument prototype would still apply.  */
28325 char getmntent ();
28326 int
28327 main ()
28328 {
28329 getmntent ();
28330   ;
28331   return 0;
28332 }
28333 _ACEOF
28334 rm -f conftest.$ac_objext conftest$ac_exeext
28335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28336   (eval $ac_link) 2>conftest.er1
28337   ac_status=$?
28338   grep -v '^ *+' conftest.er1 >conftest.err
28339   rm -f conftest.er1
28340   cat conftest.err >&5
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); } &&
28343          { ac_try='test -z "$ac_c_werror_flag"
28344                          || test ! -s conftest.err'
28345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346   (eval $ac_try) 2>&5
28347   ac_status=$?
28348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349   (exit $ac_status); }; } &&
28350          { ac_try='test -s conftest$ac_exeext'
28351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352   (eval $ac_try) 2>&5
28353   ac_status=$?
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); }; }; then
28356   ac_cv_lib_gen_getmntent=yes
28357 else
28358   echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28360
28361 ac_cv_lib_gen_getmntent=no
28362 fi
28363 rm -f conftest.err conftest.$ac_objext \
28364       conftest$ac_exeext conftest.$ac_ext
28365 LIBS=$ac_check_lib_save_LIBS
28366 fi
28367 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28368 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28369 if test $ac_cv_lib_gen_getmntent = yes; then
28370   LIBS="-lgen $LIBS"
28371 fi
28372
28373 fi
28374
28375 fi
28376
28377
28378 for ac_func in getmntent
28379 do
28380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28381 echo "$as_me:$LINENO: checking for $ac_func" >&5
28382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28383 if eval "test \"\${$as_ac_var+set}\" = set"; then
28384   echo $ECHO_N "(cached) $ECHO_C" >&6
28385 else
28386   cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28394 #define $ac_func innocuous_$ac_func
28395
28396 /* System header to define __stub macros and hopefully few prototypes,
28397     which can conflict with char $ac_func (); below.
28398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28399     <limits.h> exists even on freestanding compilers.  */
28400
28401 #ifdef __STDC__
28402 # include <limits.h>
28403 #else
28404 # include <assert.h>
28405 #endif
28406
28407 #undef $ac_func
28408
28409 /* Override any gcc2 internal prototype to avoid an error.  */
28410 #ifdef __cplusplus
28411 extern "C"
28412 {
28413 #endif
28414 /* We use char because int might match the return type of a gcc2
28415    builtin and then its argument prototype would still apply.  */
28416 char $ac_func ();
28417 /* The GNU C library defines this for functions which it implements
28418     to always fail with ENOSYS.  Some functions are actually named
28419     something starting with __ and the normal name is an alias.  */
28420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28421 choke me
28422 #else
28423 char (*f) () = $ac_func;
28424 #endif
28425 #ifdef __cplusplus
28426 }
28427 #endif
28428
28429 int
28430 main ()
28431 {
28432 return f != $ac_func;
28433   ;
28434   return 0;
28435 }
28436 _ACEOF
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439   (eval $ac_link) 2>conftest.er1
28440   ac_status=$?
28441   grep -v '^ *+' conftest.er1 >conftest.err
28442   rm -f conftest.er1
28443   cat conftest.err >&5
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); } &&
28446          { ac_try='test -z "$ac_c_werror_flag"
28447                          || test ! -s conftest.err'
28448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449   (eval $ac_try) 2>&5
28450   ac_status=$?
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); }; } &&
28453          { ac_try='test -s conftest$ac_exeext'
28454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455   (eval $ac_try) 2>&5
28456   ac_status=$?
28457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458   (exit $ac_status); }; }; then
28459   eval "$as_ac_var=yes"
28460 else
28461   echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28463
28464 eval "$as_ac_var=no"
28465 fi
28466 rm -f conftest.err conftest.$ac_objext \
28467       conftest$ac_exeext conftest.$ac_ext
28468 fi
28469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28471 if test `eval echo '${'$as_ac_var'}'` = yes; then
28472   cat >>confdefs.h <<_ACEOF
28473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28474 _ACEOF
28475
28476 fi
28477 done
28478
28479
28480 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28481 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28482 if test "${ac_cv_func_closedir_void+set}" = set; then
28483   echo $ECHO_N "(cached) $ECHO_C" >&6
28484 else
28485   if test "$cross_compiling" = yes; then
28486   ac_cv_func_closedir_void=yes
28487 else
28488   cat >conftest.$ac_ext <<_ACEOF
28489 /* confdefs.h.  */
28490 _ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h.  */
28494 $ac_includes_default
28495 #include <$ac_header_dirent>
28496 #ifndef __cplusplus
28497 int closedir ();
28498 #endif
28499
28500 int
28501 main ()
28502 {
28503 exit (closedir (opendir (".")) != 0);
28504   ;
28505   return 0;
28506 }
28507 _ACEOF
28508 rm -f conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510   (eval $ac_link) 2>&5
28511   ac_status=$?
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515   (eval $ac_try) 2>&5
28516   ac_status=$?
28517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518   (exit $ac_status); }; }; then
28519   ac_cv_func_closedir_void=no
28520 else
28521   echo "$as_me: program exited with status $ac_status" >&5
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525 ( exit $ac_status )
28526 ac_cv_func_closedir_void=yes
28527 fi
28528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28529 fi
28530 fi
28531 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28532 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28533 if test $ac_cv_func_closedir_void = yes; then
28534
28535 cat >>confdefs.h <<\_ACEOF
28536 #define CLOSEDIR_VOID 1
28537 _ACEOF
28538
28539 fi
28540
28541 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28542 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28543 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28544   echo $ECHO_N "(cached) $ECHO_C" >&6
28545 else
28546   if test "$cross_compiling" = yes; then
28547   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28548 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28549    { (exit 1); exit 1; }; }
28550 else
28551   cat >conftest.$ac_ext <<_ACEOF
28552 /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557 #if HAVE_UNISTD_H
28558 # include <unistd.h>
28559 #endif
28560
28561 int
28562 main ()
28563 {
28564 /* If this system has a BSD-style setpgrp which takes arguments,
28565   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28566   exit successfully. */
28567   exit (setpgrp (1,1) == -1 ? 0 : 1);
28568   ;
28569   return 0;
28570 }
28571 _ACEOF
28572 rm -f conftest$ac_exeext
28573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28574   (eval $ac_link) 2>&5
28575   ac_status=$?
28576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579   (eval $ac_try) 2>&5
28580   ac_status=$?
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); }; }; then
28583   ac_cv_func_setpgrp_void=no
28584 else
28585   echo "$as_me: program exited with status $ac_status" >&5
28586 echo "$as_me: failed program was:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28588
28589 ( exit $ac_status )
28590 ac_cv_func_setpgrp_void=yes
28591 fi
28592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28593 fi
28594 fi
28595 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28596 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28597 if test $ac_cv_func_setpgrp_void = yes; then
28598
28599 cat >>confdefs.h <<\_ACEOF
28600 #define SETPGRP_VOID 1
28601 _ACEOF
28602
28603 fi
28604                       # AC_FUNC_FNMATCH    dnl use local version
28605
28606
28607 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28608 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28609 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28610   echo $ECHO_N "(cached) $ECHO_C" >&6
28611 else
28612   ac_check_lib_save_LIBS=$LIBS
28613 LIBS="-lintl  $LIBS"
28614 cat >conftest.$ac_ext <<_ACEOF
28615 /* confdefs.h.  */
28616 _ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h.  */
28620
28621 /* Override any gcc2 internal prototype to avoid an error.  */
28622 #ifdef __cplusplus
28623 extern "C"
28624 #endif
28625 /* We use char because int might match the return type of a gcc2
28626    builtin and then its argument prototype would still apply.  */
28627 char gettext ();
28628 int
28629 main ()
28630 {
28631 gettext ();
28632   ;
28633   return 0;
28634 }
28635 _ACEOF
28636 rm -f conftest.$ac_objext conftest$ac_exeext
28637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28638   (eval $ac_link) 2>conftest.er1
28639   ac_status=$?
28640   grep -v '^ *+' conftest.er1 >conftest.err
28641   rm -f conftest.er1
28642   cat conftest.err >&5
28643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644   (exit $ac_status); } &&
28645          { ac_try='test -z "$ac_c_werror_flag"
28646                          || test ! -s conftest.err'
28647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28648   (eval $ac_try) 2>&5
28649   ac_status=$?
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); }; } &&
28652          { ac_try='test -s conftest$ac_exeext'
28653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28654   (eval $ac_try) 2>&5
28655   ac_status=$?
28656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657   (exit $ac_status); }; }; then
28658   ac_cv_lib_intl_gettext=yes
28659 else
28660   echo "$as_me: failed program was:" >&5
28661 sed 's/^/| /' conftest.$ac_ext >&5
28662
28663 ac_cv_lib_intl_gettext=no
28664 fi
28665 rm -f conftest.err conftest.$ac_objext \
28666       conftest$ac_exeext conftest.$ac_ext
28667 LIBS=$ac_check_lib_save_LIBS
28668 fi
28669 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28670 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28671 if test $ac_cv_lib_intl_gettext = yes; then
28672   LIBS="$LIBS -lintl"
28673 fi
28674
28675
28676
28677
28678 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28679 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28680 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28681   echo $ECHO_N "(cached) $ECHO_C" >&6
28682 else
28683   ac_check_lib_save_LIBS=$LIBS
28684 LIBS="-lsun  $LIBS"
28685 cat >conftest.$ac_ext <<_ACEOF
28686 /* confdefs.h.  */
28687 _ACEOF
28688 cat confdefs.h >>conftest.$ac_ext
28689 cat >>conftest.$ac_ext <<_ACEOF
28690 /* end confdefs.h.  */
28691
28692 /* Override any gcc2 internal prototype to avoid an error.  */
28693 #ifdef __cplusplus
28694 extern "C"
28695 #endif
28696 /* We use char because int might match the return type of a gcc2
28697    builtin and then its argument prototype would still apply.  */
28698 char getpwnam ();
28699 int
28700 main ()
28701 {
28702 getpwnam ();
28703   ;
28704   return 0;
28705 }
28706 _ACEOF
28707 rm -f conftest.$ac_objext conftest$ac_exeext
28708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28709   (eval $ac_link) 2>conftest.er1
28710   ac_status=$?
28711   grep -v '^ *+' conftest.er1 >conftest.err
28712   rm -f conftest.er1
28713   cat conftest.err >&5
28714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715   (exit $ac_status); } &&
28716          { ac_try='test -z "$ac_c_werror_flag"
28717                          || test ! -s conftest.err'
28718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719   (eval $ac_try) 2>&5
28720   ac_status=$?
28721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722   (exit $ac_status); }; } &&
28723          { ac_try='test -s conftest$ac_exeext'
28724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725   (eval $ac_try) 2>&5
28726   ac_status=$?
28727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728   (exit $ac_status); }; }; then
28729   ac_cv_lib_sun_getpwnam=yes
28730 else
28731   echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28733
28734 ac_cv_lib_sun_getpwnam=no
28735 fi
28736 rm -f conftest.err conftest.$ac_objext \
28737       conftest$ac_exeext conftest.$ac_ext
28738 LIBS=$ac_check_lib_save_LIBS
28739 fi
28740 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28741 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28742 if test $ac_cv_lib_sun_getpwnam = yes; then
28743   cat >>confdefs.h <<_ACEOF
28744 #define HAVE_LIBSUN 1
28745 _ACEOF
28746
28747   LIBS="-lsun $LIBS"
28748
28749 fi
28750
28751
28752
28753 for ac_header in zlib.h
28754 do
28755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28757   echo "$as_me:$LINENO: checking for $ac_header" >&5
28758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28760   echo $ECHO_N "(cached) $ECHO_C" >&6
28761 fi
28762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28764 else
28765   # Is the header compilable?
28766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28768 cat >conftest.$ac_ext <<_ACEOF
28769 /* confdefs.h.  */
28770 _ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h.  */
28774 $ac_includes_default
28775 #include <$ac_header>
28776 _ACEOF
28777 rm -f conftest.$ac_objext
28778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28779   (eval $ac_compile) 2>conftest.er1
28780   ac_status=$?
28781   grep -v '^ *+' conftest.er1 >conftest.err
28782   rm -f conftest.er1
28783   cat conftest.err >&5
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); } &&
28786          { ac_try='test -z "$ac_c_werror_flag"
28787                          || test ! -s conftest.err'
28788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789   (eval $ac_try) 2>&5
28790   ac_status=$?
28791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); }; } &&
28793          { ac_try='test -s conftest.$ac_objext'
28794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28795   (eval $ac_try) 2>&5
28796   ac_status=$?
28797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798   (exit $ac_status); }; }; then
28799   ac_header_compiler=yes
28800 else
28801   echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28803
28804 ac_header_compiler=no
28805 fi
28806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28808 echo "${ECHO_T}$ac_header_compiler" >&6
28809
28810 # Is the header present?
28811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28813 cat >conftest.$ac_ext <<_ACEOF
28814 /* confdefs.h.  */
28815 _ACEOF
28816 cat confdefs.h >>conftest.$ac_ext
28817 cat >>conftest.$ac_ext <<_ACEOF
28818 /* end confdefs.h.  */
28819 #include <$ac_header>
28820 _ACEOF
28821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28823   ac_status=$?
28824   grep -v '^ *+' conftest.er1 >conftest.err
28825   rm -f conftest.er1
28826   cat conftest.err >&5
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } >/dev/null; then
28829   if test -s conftest.err; then
28830     ac_cpp_err=$ac_c_preproc_warn_flag
28831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28832   else
28833     ac_cpp_err=
28834   fi
28835 else
28836   ac_cpp_err=yes
28837 fi
28838 if test -z "$ac_cpp_err"; then
28839   ac_header_preproc=yes
28840 else
28841   echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28843
28844   ac_header_preproc=no
28845 fi
28846 rm -f conftest.err conftest.$ac_ext
28847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28848 echo "${ECHO_T}$ac_header_preproc" >&6
28849
28850 # So?  What about this header?
28851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28852   yes:no: )
28853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28857     ac_header_preproc=yes
28858     ;;
28859   no:yes:* )
28860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28872     (
28873       cat <<\_ASBOX
28874 ## ------------------------------------------ ##
28875 ## Report this to the AC_PACKAGE_NAME lists.  ##
28876 ## ------------------------------------------ ##
28877 _ASBOX
28878     ) |
28879       sed "s/^/$as_me: WARNING:     /" >&2
28880     ;;
28881 esac
28882 echo "$as_me:$LINENO: checking for $ac_header" >&5
28883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28885   echo $ECHO_N "(cached) $ECHO_C" >&6
28886 else
28887   eval "$as_ac_Header=\$ac_header_preproc"
28888 fi
28889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28891
28892 fi
28893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28894   cat >>confdefs.h <<_ACEOF
28895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28896 _ACEOF
28897
28898 fi
28899
28900 done
28901
28902 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28903 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28904 if test "${ac_cv_lib_z_deflate+set}" = set; then
28905   echo $ECHO_N "(cached) $ECHO_C" >&6
28906 else
28907   ac_check_lib_save_LIBS=$LIBS
28908 LIBS="-lz  $LIBS"
28909 cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915
28916 /* Override any gcc2 internal prototype to avoid an error.  */
28917 #ifdef __cplusplus
28918 extern "C"
28919 #endif
28920 /* We use char because int might match the return type of a gcc2
28921    builtin and then its argument prototype would still apply.  */
28922 char deflate ();
28923 int
28924 main ()
28925 {
28926 deflate ();
28927   ;
28928   return 0;
28929 }
28930 _ACEOF
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28933   (eval $ac_link) 2>conftest.er1
28934   ac_status=$?
28935   grep -v '^ *+' conftest.er1 >conftest.err
28936   rm -f conftest.er1
28937   cat conftest.err >&5
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); } &&
28940          { ac_try='test -z "$ac_c_werror_flag"
28941                          || test ! -s conftest.err'
28942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943   (eval $ac_try) 2>&5
28944   ac_status=$?
28945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946   (exit $ac_status); }; } &&
28947          { ac_try='test -s conftest$ac_exeext'
28948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949   (eval $ac_try) 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; }; then
28953   ac_cv_lib_z_deflate=yes
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958 ac_cv_lib_z_deflate=no
28959 fi
28960 rm -f conftest.err conftest.$ac_objext \
28961       conftest$ac_exeext conftest.$ac_ext
28962 LIBS=$ac_check_lib_save_LIBS
28963 fi
28964 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28965 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28966 if test $ac_cv_lib_z_deflate = yes; then
28967   FDLIBS="-lz"
28968 fi
28969
28970 have_zlib=no
28971 if test x$FDLIBS = x-lz; then
28972   cat >>confdefs.h <<\_ACEOF
28973 #define HAVE_LIBZ 1
28974 _ACEOF
28975
28976   have_zlib=yes
28977 fi
28978
28979 #
28980 # Check for ACL libraries
28981 #
28982 have_acl=no
28983 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28984   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28985 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28986 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28987   echo $ECHO_N "(cached) $ECHO_C" >&6
28988 fi
28989 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28990 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28991 else
28992   # Is the header compilable?
28993 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28994 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28995 cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001 $ac_includes_default
29002 #include <sys/acl.h>
29003 _ACEOF
29004 rm -f conftest.$ac_objext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29006   (eval $ac_compile) 2>conftest.er1
29007   ac_status=$?
29008   grep -v '^ *+' conftest.er1 >conftest.err
29009   rm -f conftest.er1
29010   cat conftest.err >&5
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); } &&
29013          { ac_try='test -z "$ac_c_werror_flag"
29014                          || test ! -s conftest.err'
29015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016   (eval $ac_try) 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); }; } &&
29020          { ac_try='test -s conftest.$ac_objext'
29021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022   (eval $ac_try) 2>&5
29023   ac_status=$?
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); }; }; then
29026   ac_header_compiler=yes
29027 else
29028   echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 ac_header_compiler=no
29032 fi
29033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29035 echo "${ECHO_T}$ac_header_compiler" >&6
29036
29037 # Is the header present?
29038 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29039 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29040 cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h.  */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h.  */
29046 #include <sys/acl.h>
29047 _ACEOF
29048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29050   ac_status=$?
29051   grep -v '^ *+' conftest.er1 >conftest.err
29052   rm -f conftest.er1
29053   cat conftest.err >&5
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); } >/dev/null; then
29056   if test -s conftest.err; then
29057     ac_cpp_err=$ac_c_preproc_warn_flag
29058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29059   else
29060     ac_cpp_err=
29061   fi
29062 else
29063   ac_cpp_err=yes
29064 fi
29065 if test -z "$ac_cpp_err"; then
29066   ac_header_preproc=yes
29067 else
29068   echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29070
29071   ac_header_preproc=no
29072 fi
29073 rm -f conftest.err conftest.$ac_ext
29074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29075 echo "${ECHO_T}$ac_header_preproc" >&6
29076
29077 # So?  What about this header?
29078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29079   yes:no: )
29080     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29081 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29082     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29083 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29084     ac_header_preproc=yes
29085     ;;
29086   no:yes:* )
29087     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29088 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29089     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29090 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29091     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29092 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29093     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29094 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29095     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29096 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29097     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29098 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29099     (
29100       cat <<\_ASBOX
29101 ## ------------------------------------------ ##
29102 ## Report this to the AC_PACKAGE_NAME lists.  ##
29103 ## ------------------------------------------ ##
29104 _ASBOX
29105     ) |
29106       sed "s/^/$as_me: WARNING:     /" >&2
29107     ;;
29108 esac
29109 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29110 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29111 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29112   echo $ECHO_N "(cached) $ECHO_C" >&6
29113 else
29114   ac_cv_header_sys_acl_h=$ac_header_preproc
29115 fi
29116 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29117 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29118
29119 fi
29120
29121
29122 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29123 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29124 if test "${ac_cv_func_acl_get_file+set}" = set; then
29125   echo $ECHO_N "(cached) $ECHO_C" >&6
29126 else
29127   cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29135 #define acl_get_file innocuous_acl_get_file
29136
29137 /* System header to define __stub macros and hopefully few prototypes,
29138     which can conflict with char acl_get_file (); below.
29139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29140     <limits.h> exists even on freestanding compilers.  */
29141
29142 #ifdef __STDC__
29143 # include <limits.h>
29144 #else
29145 # include <assert.h>
29146 #endif
29147
29148 #undef acl_get_file
29149
29150 /* Override any gcc2 internal prototype to avoid an error.  */
29151 #ifdef __cplusplus
29152 extern "C"
29153 {
29154 #endif
29155 /* We use char because int might match the return type of a gcc2
29156    builtin and then its argument prototype would still apply.  */
29157 char acl_get_file ();
29158 /* The GNU C library defines this for functions which it implements
29159     to always fail with ENOSYS.  Some functions are actually named
29160     something starting with __ and the normal name is an alias.  */
29161 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29162 choke me
29163 #else
29164 char (*f) () = acl_get_file;
29165 #endif
29166 #ifdef __cplusplus
29167 }
29168 #endif
29169
29170 int
29171 main ()
29172 {
29173 return f != acl_get_file;
29174   ;
29175   return 0;
29176 }
29177 _ACEOF
29178 rm -f conftest.$ac_objext conftest$ac_exeext
29179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29180   (eval $ac_link) 2>conftest.er1
29181   ac_status=$?
29182   grep -v '^ *+' conftest.er1 >conftest.err
29183   rm -f conftest.er1
29184   cat conftest.err >&5
29185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186   (exit $ac_status); } &&
29187          { ac_try='test -z "$ac_c_werror_flag"
29188                          || test ! -s conftest.err'
29189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190   (eval $ac_try) 2>&5
29191   ac_status=$?
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); }; } &&
29194          { ac_try='test -s conftest$ac_exeext'
29195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29196   (eval $ac_try) 2>&5
29197   ac_status=$?
29198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199   (exit $ac_status); }; }; then
29200   ac_cv_func_acl_get_file=yes
29201 else
29202   echo "$as_me: failed program was:" >&5
29203 sed 's/^/| /' conftest.$ac_ext >&5
29204
29205 ac_cv_func_acl_get_file=no
29206 fi
29207 rm -f conftest.err conftest.$ac_objext \
29208       conftest$ac_exeext conftest.$ac_ext
29209 fi
29210 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29211 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29212 if test $ac_cv_func_acl_get_file = yes; then
29213   have_acl=yes
29214 else
29215   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29216 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29217 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29218   echo $ECHO_N "(cached) $ECHO_C" >&6
29219 else
29220   ac_check_lib_save_LIBS=$LIBS
29221 LIBS="-lacl  $LIBS"
29222 cat >conftest.$ac_ext <<_ACEOF
29223 /* confdefs.h.  */
29224 _ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h.  */
29228
29229 /* Override any gcc2 internal prototype to avoid an error.  */
29230 #ifdef __cplusplus
29231 extern "C"
29232 #endif
29233 /* We use char because int might match the return type of a gcc2
29234    builtin and then its argument prototype would still apply.  */
29235 char acl_get_file ();
29236 int
29237 main ()
29238 {
29239 acl_get_file ();
29240   ;
29241   return 0;
29242 }
29243 _ACEOF
29244 rm -f conftest.$ac_objext conftest$ac_exeext
29245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29246   (eval $ac_link) 2>conftest.er1
29247   ac_status=$?
29248   grep -v '^ *+' conftest.er1 >conftest.err
29249   rm -f conftest.er1
29250   cat conftest.err >&5
29251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252   (exit $ac_status); } &&
29253          { ac_try='test -z "$ac_c_werror_flag"
29254                          || test ! -s conftest.err'
29255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29256   (eval $ac_try) 2>&5
29257   ac_status=$?
29258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); }; } &&
29260          { ac_try='test -s conftest$ac_exeext'
29261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262   (eval $ac_try) 2>&5
29263   ac_status=$?
29264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265   (exit $ac_status); }; }; then
29266   ac_cv_lib_acl_acl_get_file=yes
29267 else
29268   echo "$as_me: failed program was:" >&5
29269 sed 's/^/| /' conftest.$ac_ext >&5
29270
29271 ac_cv_lib_acl_acl_get_file=no
29272 fi
29273 rm -f conftest.err conftest.$ac_objext \
29274       conftest$ac_exeext conftest.$ac_ext
29275 LIBS=$ac_check_lib_save_LIBS
29276 fi
29277 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29278 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29279 if test $ac_cv_lib_acl_acl_get_file = yes; then
29280   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29281 else
29282   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29283 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29284 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29285   echo $ECHO_N "(cached) $ECHO_C" >&6
29286 else
29287   ac_check_lib_save_LIBS=$LIBS
29288 LIBS="-lsec  $LIBS"
29289 cat >conftest.$ac_ext <<_ACEOF
29290 /* confdefs.h.  */
29291 _ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h.  */
29295
29296 /* Override any gcc2 internal prototype to avoid an error.  */
29297 #ifdef __cplusplus
29298 extern "C"
29299 #endif
29300 /* We use char because int might match the return type of a gcc2
29301    builtin and then its argument prototype would still apply.  */
29302 char acltotext ();
29303 int
29304 main ()
29305 {
29306 acltotext ();
29307   ;
29308   return 0;
29309 }
29310 _ACEOF
29311 rm -f conftest.$ac_objext conftest$ac_exeext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29313   (eval $ac_link) 2>conftest.er1
29314   ac_status=$?
29315   grep -v '^ *+' conftest.er1 >conftest.err
29316   rm -f conftest.er1
29317   cat conftest.err >&5
29318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319   (exit $ac_status); } &&
29320          { ac_try='test -z "$ac_c_werror_flag"
29321                          || test ! -s conftest.err'
29322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323   (eval $ac_try) 2>&5
29324   ac_status=$?
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); }; } &&
29327          { ac_try='test -s conftest$ac_exeext'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; }; then
29333   ac_cv_lib_sec_acltotext=yes
29334 else
29335   echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29337
29338 ac_cv_lib_sec_acltotext=no
29339 fi
29340 rm -f conftest.err conftest.$ac_objext \
29341       conftest$ac_exeext conftest.$ac_ext
29342 LIBS=$ac_check_lib_save_LIBS
29343 fi
29344 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29345 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29346 if test $ac_cv_lib_sec_acltotext = yes; then
29347   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29348 fi
29349
29350
29351 fi
29352
29353
29354 fi
29355
29356 if test $have_acl = yes; then
29357    cat >>confdefs.h <<\_ACEOF
29358 #define HAVE_ACL 1
29359 _ACEOF
29360
29361 fi
29362
29363 PTHREAD_LIB=""
29364 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29365 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29366 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29367   echo $ECHO_N "(cached) $ECHO_C" >&6
29368 else
29369   ac_check_lib_save_LIBS=$LIBS
29370 LIBS="-lpthread  $LIBS"
29371 cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377
29378 /* Override any gcc2 internal prototype to avoid an error.  */
29379 #ifdef __cplusplus
29380 extern "C"
29381 #endif
29382 /* We use char because int might match the return type of a gcc2
29383    builtin and then its argument prototype would still apply.  */
29384 char pthread_create ();
29385 int
29386 main ()
29387 {
29388 pthread_create ();
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395   (eval $ac_link) 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_c_werror_flag"
29403                          || test ! -s conftest.err'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; } &&
29409          { ac_try='test -s conftest$ac_exeext'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; }; then
29415   ac_cv_lib_pthread_pthread_create=yes
29416 else
29417   echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29419
29420 ac_cv_lib_pthread_pthread_create=no
29421 fi
29422 rm -f conftest.err conftest.$ac_objext \
29423       conftest$ac_exeext conftest.$ac_ext
29424 LIBS=$ac_check_lib_save_LIBS
29425 fi
29426 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29427 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29428 if test $ac_cv_lib_pthread_pthread_create = yes; then
29429   PTHREAD_LIB="-lpthread"
29430 else
29431   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29432 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29433 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29434   echo $ECHO_N "(cached) $ECHO_C" >&6
29435 else
29436   ac_check_lib_save_LIBS=$LIBS
29437 LIBS="-lpthreads  $LIBS"
29438 cat >conftest.$ac_ext <<_ACEOF
29439 /* confdefs.h.  */
29440 _ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h.  */
29444
29445 /* Override any gcc2 internal prototype to avoid an error.  */
29446 #ifdef __cplusplus
29447 extern "C"
29448 #endif
29449 /* We use char because int might match the return type of a gcc2
29450    builtin and then its argument prototype would still apply.  */
29451 char pthread_create ();
29452 int
29453 main ()
29454 {
29455 pthread_create ();
29456   ;
29457   return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext conftest$ac_exeext
29461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29462   (eval $ac_link) 2>conftest.er1
29463   ac_status=$?
29464   grep -v '^ *+' conftest.er1 >conftest.err
29465   rm -f conftest.er1
29466   cat conftest.err >&5
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); } &&
29469          { ac_try='test -z "$ac_c_werror_flag"
29470                          || test ! -s conftest.err'
29471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472   (eval $ac_try) 2>&5
29473   ac_status=$?
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); }; } &&
29476          { ac_try='test -s conftest$ac_exeext'
29477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478   (eval $ac_try) 2>&5
29479   ac_status=$?
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); }; }; then
29482   ac_cv_lib_pthreads_pthread_create=yes
29483 else
29484   echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29486
29487 ac_cv_lib_pthreads_pthread_create=no
29488 fi
29489 rm -f conftest.err conftest.$ac_objext \
29490       conftest$ac_exeext conftest.$ac_ext
29491 LIBS=$ac_check_lib_save_LIBS
29492 fi
29493 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29494 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29495 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29496   PTHREAD_LIB="-lpthreads"
29497 else
29498   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29499 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29500 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29501   echo $ECHO_N "(cached) $ECHO_C" >&6
29502 else
29503   ac_check_lib_save_LIBS=$LIBS
29504 LIBS="-lc_r  $LIBS"
29505 cat >conftest.$ac_ext <<_ACEOF
29506 /* confdefs.h.  */
29507 _ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h.  */
29511
29512 /* Override any gcc2 internal prototype to avoid an error.  */
29513 #ifdef __cplusplus
29514 extern "C"
29515 #endif
29516 /* We use char because int might match the return type of a gcc2
29517    builtin and then its argument prototype would still apply.  */
29518 char pthread_create ();
29519 int
29520 main ()
29521 {
29522 pthread_create ();
29523   ;
29524   return 0;
29525 }
29526 _ACEOF
29527 rm -f conftest.$ac_objext conftest$ac_exeext
29528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29529   (eval $ac_link) 2>conftest.er1
29530   ac_status=$?
29531   grep -v '^ *+' conftest.er1 >conftest.err
29532   rm -f conftest.er1
29533   cat conftest.err >&5
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); } &&
29536          { ac_try='test -z "$ac_c_werror_flag"
29537                          || test ! -s conftest.err'
29538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539   (eval $ac_try) 2>&5
29540   ac_status=$?
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); }; } &&
29543          { ac_try='test -s conftest$ac_exeext'
29544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545   (eval $ac_try) 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); }; }; then
29549   ac_cv_lib_c_r_pthread_create=yes
29550 else
29551   echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29553
29554 ac_cv_lib_c_r_pthread_create=no
29555 fi
29556 rm -f conftest.err conftest.$ac_objext \
29557       conftest$ac_exeext conftest.$ac_ext
29558 LIBS=$ac_check_lib_save_LIBS
29559 fi
29560 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29561 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29562 if test $ac_cv_lib_c_r_pthread_create = yes; then
29563   PTHREAD_LIB="-lc_r"
29564 else
29565   echo "$as_me:$LINENO: checking for pthread_create" >&5
29566 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29567 if test "${ac_cv_func_pthread_create+set}" = set; then
29568   echo $ECHO_N "(cached) $ECHO_C" >&6
29569 else
29570   cat >conftest.$ac_ext <<_ACEOF
29571 /* confdefs.h.  */
29572 _ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h.  */
29576 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29578 #define pthread_create innocuous_pthread_create
29579
29580 /* System header to define __stub macros and hopefully few prototypes,
29581     which can conflict with char pthread_create (); below.
29582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29583     <limits.h> exists even on freestanding compilers.  */
29584
29585 #ifdef __STDC__
29586 # include <limits.h>
29587 #else
29588 # include <assert.h>
29589 #endif
29590
29591 #undef pthread_create
29592
29593 /* Override any gcc2 internal prototype to avoid an error.  */
29594 #ifdef __cplusplus
29595 extern "C"
29596 {
29597 #endif
29598 /* We use char because int might match the return type of a gcc2
29599    builtin and then its argument prototype would still apply.  */
29600 char pthread_create ();
29601 /* The GNU C library defines this for functions which it implements
29602     to always fail with ENOSYS.  Some functions are actually named
29603     something starting with __ and the normal name is an alias.  */
29604 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29605 choke me
29606 #else
29607 char (*f) () = pthread_create;
29608 #endif
29609 #ifdef __cplusplus
29610 }
29611 #endif
29612
29613 int
29614 main ()
29615 {
29616 return f != pthread_create;
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29623   (eval $ac_link) 2>conftest.er1
29624   ac_status=$?
29625   grep -v '^ *+' conftest.er1 >conftest.err
29626   rm -f conftest.er1
29627   cat conftest.err >&5
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); } &&
29630          { ac_try='test -z "$ac_c_werror_flag"
29631                          || test ! -s conftest.err'
29632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633   (eval $ac_try) 2>&5
29634   ac_status=$?
29635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636   (exit $ac_status); }; } &&
29637          { ac_try='test -s conftest$ac_exeext'
29638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639   (eval $ac_try) 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; }; then
29643   ac_cv_func_pthread_create=yes
29644 else
29645   echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 ac_cv_func_pthread_create=no
29649 fi
29650 rm -f conftest.err conftest.$ac_objext \
29651       conftest$ac_exeext conftest.$ac_ext
29652 fi
29653 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29654 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29655
29656
29657 fi
29658
29659
29660 fi
29661
29662
29663 fi
29664
29665
29666
29667 cat >>confdefs.h <<\_ACEOF
29668 #define FDLIBS 1
29669 _ACEOF
29670
29671
29672
29673 CFLAGS=${CFLAGS--O}
29674
29675 if test x$have_gcc = xyes ; then
29676    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29677    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29678 fi
29679 LDFLAGS=${LDFLAGS--O}
29680 DB_LIBS="${SQL_LFLAGS}"
29681 CPPFLAGS="$CPPFLAGS"
29682 CFLAGS="$CFLAGS"
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699 OBJLIST=
29700
29701
29702 lld="lld"
29703 llu="llu"
29704
29705 WCFLAGS=
29706 WLDFLAGS=
29707
29708 #
29709 # Finally we set appropriate distribution specific
29710 #  variables and defaults
29711 #
29712 # PFILES are platform specific files
29713 PFILES="platforms/Makefile"
29714 PSCMD="ps -e"
29715 WIN32=
29716 MACOSX=
29717 hostname=`uname -n | cut -d '.' -f 1`
29718 if test x${hostname} = x ; then
29719   hostname="localhost"
29720 fi
29721 case "$DISTNAME" in
29722 aix)
29723         DISTVER=`uname -r`
29724         PSCMD="ps -e -o pid,comm"
29725         PFILES="${PFILES} \
29726            platforms/aix/Makefile"
29727         TAPEDRIVE="/dev/rmt0.1"
29728   ;;
29729 alpha)
29730         DISTVER=`uname -r`
29731         PTHREAD_LIB="-lpthread -lexc"
29732         if test "${CC}" = "gcc" ; then
29733            lld="lld"
29734            llu="llu"
29735         else
29736            lld="ld"
29737            llu="lu"
29738         fi
29739         TAPEDRIVE="/dev/nrmt0"
29740   ;;
29741 bsdi)
29742         DISTVER=`uname -a |awk '{print $3}'`
29743         TAPEDRIVE="/dev/nrmt0"
29744         PTHREAD_LIB="-pthread"
29745         CFLAGS="${CFLAGS} -pthread"
29746         PSCMD="ps -ax -o pid,command"
29747         lld="qd"
29748         llu="qu"
29749         PFILES="${PFILES} \
29750             platforms/bsdi/Makefile \
29751             platforms/bsdi/bacula-fd \
29752             platforms/bsdi/bacula-sd \
29753             platforms/bsdi/bacula-dir"
29754         largefile_support="yes"
29755   ;;
29756 cygwin)
29757         DISTVER=`uname -a |awk '{print $3}'`
29758         TAPEDRIVE="/dev/nrst0"
29759         WIN32=win32
29760         WCFLAGS="-mwindows"
29761         WLDFLAGS="-mwindows"
29762   ;;
29763 darwin)
29764         DISTVER=`uname -r`
29765         TAPEDRIVE="/dev/nst0"
29766         PSCMD="ps -e -o pid,command"
29767         MACOSX=macosx
29768         PFILES="${PFILES} \
29769            platforms/darwin/Makefile"
29770   ;;
29771 debian)
29772         DISTVER=`cat /etc/debian_version`
29773         TAPEDRIVE="/dev/nrst0"
29774         PSCMD="ps -e -o pid,command"
29775   ;;
29776 freebsd)
29777         DISTVER=`uname -a |awk '{print $3}'`
29778         VER=`echo $DISTVER | cut -c 1`
29779         if test x$VER = x4 ; then
29780            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29781            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29782         fi
29783         lld="qd"
29784         llu="qu"
29785         TAPEDRIVE="/dev/nrsa0"
29786         PSCMD="ps -ax -o pid,command"
29787         PFILES="${PFILES} \
29788             platforms/freebsd/Makefile \
29789             platforms/freebsd/bacula-fd \
29790             platforms/freebsd/bacula-sd \
29791             platforms/freebsd/bacula-dir"
29792         largefile_support="yes"
29793   ;;
29794 hpux)
29795         PSCMD="UNIX95=1 ps -e -o pid,comm"
29796         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29797         DISTVER=`uname -r`
29798         TAPEDRIVE="/dev/rmt/0hnb"
29799         PTHREAD_LIB="-lpthread"
29800         cat >>confdefs.h <<\_ACEOF
29801 #define _INCLUDE_LONGLONG 1
29802 _ACEOF
29803
29804   ;;
29805 irix)
29806         DISTVER=`uname -r`
29807         TAPEDRIVE="/dev/rmt/0cbn"
29808         PSCMD="ps -e -o pid,comm"
29809         PFILES="${PFILES} \
29810             platforms/irix/Makefile \
29811             platforms/irix/bacula-fd \
29812             platforms/irix/bacula-sd \
29813             platforms/irix/bacula-dir"
29814   ;;
29815 netbsd)
29816         DISTVER=`uname -a |awk '{print $3}'`
29817         lld="qd"
29818         llu="qu"
29819         TAPEDRIVE="/dev/nrst0"
29820         PSCMD="ps -ax -o pid,command"
29821         PTHREAD_LIB="-pthread"
29822         CFLAGS="${CFLAGS} -pthread"
29823   ;;
29824 openbsd)
29825         DISTVER=`uname -a |awk '{print $3}'`
29826         lld="qd"
29827         llu="qu"
29828         TAPEDRIVE="/dev/nrst0"
29829         PSCMD="ps -ax -o pid,command"
29830         PTHREAD_LIB="-pthread"
29831         CFLAGS="${CFLAGS} -pthread"
29832         PFILES="${PFILES} \
29833             platforms/openbsd/Makefile \
29834             platforms/openbsd/bacula-fd \
29835             platforms/openbsd/bacula-sd \
29836             platforms/openbsd/bacula-dir"
29837   ;;
29838 redhat)
29839         if test -f /etc/whitebox-release ; then
29840            f=/etc/whitebox-release
29841         else
29842            f=/etc/redhat-release
29843         fi
29844         if test `cat $f | grep release |\
29845                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29846            DISTVER="Enterprise "`cat $f | grep release |\
29847                     cut -f 6 -d ' '`
29848         else
29849             DISTVER=`cat /etc/redhat-release | grep release |\
29850                      cut -f 5 -d ' '`
29851         fi
29852         TAPEDRIVE="/dev/nst0"
29853         PSCMD="ps -e -o pid,command"
29854         PFILES="${PFILES} \
29855             platforms/redhat/Makefile \
29856             platforms/redhat/bacula-fd \
29857             platforms/redhat/bacula-sd \
29858             platforms/redhat/bacula-dir \
29859             platforms/redhat/bacula.spec \
29860             "
29861   ;;
29862 mandrake)
29863         DISTVER=`cat /etc/mandrake-release | grep release |\
29864            cut -f 5 -d ' '`
29865         TAPEDRIVE="/dev/nst0"
29866         PSCMD="ps -e -o pid,command"
29867         PFILES="${PFILES} \
29868             platforms/mandrake/Makefile \
29869             platforms/mandrake/bacula-fd \
29870             platforms/mandrake/bacula-sd \
29871             platforms/mandrake/bacula-dir \
29872             platforms/mandrake/bacula.spec \
29873             "
29874   ;;
29875 gentoo)
29876         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29877         TAPEDRIVE="/dev/nst0"
29878         PSCMD="ps -e -o pid,command"
29879         PFILES="${PFILES} \
29880             platforms/gentoo/Makefile \
29881          platforms/gentoo/bacula-init \
29882             platforms/gentoo/bacula-fd \
29883             platforms/gentoo/bacula-sd \
29884             platforms/gentoo/bacula-dir"
29885   ;;
29886 slackware)
29887         DISTVER=`cat /etc/slackware-version`
29888         TAPEDRIVE="/dev/nst0"
29889         PSCMD="ps -e -o pid,command"
29890         PFILES="${PFILES} \
29891             platforms/slackware/Makefile \
29892             platforms/slackware/rc.bacula-fd \
29893             platforms/slackware/rc.bacula-sd \
29894             platforms/slackware/rc.bacula-dir\
29895             platforms/slackware/functions.bacula"
29896   ;;
29897 solaris)
29898         DISTVER=`uname -r`
29899         TAPEDRIVE="/dev/rmt/0cbn"
29900         PSCMD="ps -e -o pid,comm"
29901         PFILES="${PFILES} \
29902             platforms/solaris/Makefile \
29903             platforms/solaris/bacula-fd \
29904             platforms/solaris/bacula-sd \
29905             platforms/solaris/bacula-dir"
29906         if test x$DISTVER = x5.6 ; then
29907             cat >>confdefs.h <<\_ACEOF
29908 #define HAVE_OLD_SOCKOPT 1
29909 _ACEOF
29910
29911         fi
29912         LIBS="$LIBS -lresolv"
29913   ;;
29914 suse)
29915         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29916             cut -f 3 -d ' '`
29917         TAPEDRIVE="/dev/nst0"
29918         PSCMD="ps -e -o pid,command"
29919         PFILES="${PFILES} \
29920             platforms/suse/Makefile \
29921             platforms/suse/bacula-fd \
29922             platforms/suse/bacula-sd \
29923             platforms/suse/bacula-dir \
29924             platforms/suse/bacula \
29925             platforms/suse/bacula.spec"
29926   ;;
29927 suse5)
29928         DISTNAME=suse
29929         DISTVER=5.x
29930         TAPEDRIVE="/dev/nst0"
29931         PSCMD="ps -e -o pid,command"
29932         PFILES="${PFILES} \
29933             platforms/suse/Makefile \
29934             platforms/suse/bacula-fd \
29935             platforms/suse/bacula-sd \
29936             platforms/suse/bacula-dir"
29937   ;;
29938 unknown)
29939         DISTVER=unknown
29940         TAPEDRIVE="/dev/nst0"
29941   ;;
29942 *)
29943   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29944   ;;
29945 esac
29946
29947
29948
29949 LIBS="$PTHREAD_LIB $LIBS"
29950
29951 cat >>confdefs.h <<_ACEOF
29952 #define lld "$lld"
29953 _ACEOF
29954
29955 cat >>confdefs.h <<_ACEOF
29956 #define llu "$llu"
29957 _ACEOF
29958
29959
29960
29961
29962
29963
29964
29965
29966 MCOMMON=./autoconf/Make.common
29967
29968
29969 if test "x${subsysdir}" = "x${sbindir}" ; then
29970    echo " "
29971    echo " "
29972    echo "You have set both --sbindir and --with-subsys-dir"
29973    echo "  equal to: ${subsysdir} "
29974    echo "This is not permitted. Please reconfigure."
29975    echo " "
29976    echo "Aborting configuration ..."
29977    echo " "
29978    echo " "
29979    exit 1
29980 fi
29981
29982                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           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"
29983           ac_config_commands="$ac_config_commands default"
29984 cat >confcache <<\_ACEOF
29985 # This file is a shell script that caches the results of configure
29986 # tests run on this system so they can be shared between configure
29987 # scripts and configure runs, see configure's option --config-cache.
29988 # It is not useful on other systems.  If it contains results you don't
29989 # want to keep, you may remove or edit it.
29990 #
29991 # config.status only pays attention to the cache file if you give it
29992 # the --recheck option to rerun configure.
29993 #
29994 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29995 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29996 # following values.
29997
29998 _ACEOF
29999
30000 # The following way of writing the cache mishandles newlines in values,
30001 # but we know of no workaround that is simple, portable, and efficient.
30002 # So, don't put newlines in cache variables' values.
30003 # Ultrix sh set writes to stderr and can't be redirected directly,
30004 # and sets the high bit in the cache file unless we assign to the vars.
30005 {
30006   (set) 2>&1 |
30007     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30008     *ac_space=\ *)
30009       # `set' does not quote correctly, so add quotes (double-quote
30010       # substitution turns \\\\ into \\, and sed turns \\ into \).
30011       sed -n \
30012         "s/'/'\\\\''/g;
30013           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30014       ;;
30015     *)
30016       # `set' quotes correctly as required by POSIX, so do not add quotes.
30017       sed -n \
30018         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30019       ;;
30020     esac;
30021 } |
30022   sed '
30023      t clear
30024      : clear
30025      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30026      t end
30027      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30028      : end' >>confcache
30029 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30030   if test -w $cache_file; then
30031     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30032     cat confcache >$cache_file
30033   else
30034     echo "not updating unwritable cache $cache_file"
30035   fi
30036 fi
30037 rm -f confcache
30038
30039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30040 # Let make expand exec_prefix.
30041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30042
30043 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30045 # trailing colons and then remove the whole line if VPATH becomes empty
30046 # (actually we leave an empty line to preserve line numbers).
30047 if test "x$srcdir" = x.; then
30048   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30049 s/:*\$(srcdir):*/:/;
30050 s/:*\${srcdir}:*/:/;
30051 s/:*@srcdir@:*/:/;
30052 s/^\([^=]*=[     ]*\):*/\1/;
30053 s/:*$//;
30054 s/^[^=]*=[       ]*$//;
30055 }'
30056 fi
30057
30058 DEFS=-DHAVE_CONFIG_H
30059
30060 ac_libobjs=
30061 ac_ltlibobjs=
30062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30063   # 1. Remove the extension, and $U if already installed.
30064   ac_i=`echo "$ac_i" |
30065          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30066   # 2. Add them.
30067   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30068   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30069 done
30070 LIBOBJS=$ac_libobjs
30071
30072 LTLIBOBJS=$ac_ltlibobjs
30073
30074
30075
30076 : ${CONFIG_STATUS=./config.status}
30077 ac_clean_files_save=$ac_clean_files
30078 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30079 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30080 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30081 cat >$CONFIG_STATUS <<_ACEOF
30082 #! $SHELL
30083 # Generated by $as_me.
30084 # Run this file to recreate the current configuration.
30085 # Compiler output produced by configure, useful for debugging
30086 # configure, is in config.log if it exists.
30087
30088 debug=false
30089 ac_cs_recheck=false
30090 ac_cs_silent=false
30091 SHELL=\${CONFIG_SHELL-$SHELL}
30092 _ACEOF
30093
30094 cat >>$CONFIG_STATUS <<\_ACEOF
30095 ## --------------------- ##
30096 ## M4sh Initialization.  ##
30097 ## --------------------- ##
30098
30099 # Be Bourne compatible
30100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30101   emulate sh
30102   NULLCMD=:
30103   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30104   # is contrary to our usage.  Disable this feature.
30105   alias -g '${1+"$@"}'='"$@"'
30106 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30107   set -o posix
30108 fi
30109 DUALCASE=1; export DUALCASE # for MKS sh
30110
30111 # Support unset when possible.
30112 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30113   as_unset=unset
30114 else
30115   as_unset=false
30116 fi
30117
30118
30119 # Work around bugs in pre-3.0 UWIN ksh.
30120 $as_unset ENV MAIL MAILPATH
30121 PS1='$ '
30122 PS2='> '
30123 PS4='+ '
30124
30125 # NLS nuisances.
30126 for as_var in \
30127   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30128   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30129   LC_TELEPHONE LC_TIME
30130 do
30131   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30132     eval $as_var=C; export $as_var
30133   else
30134     $as_unset $as_var
30135   fi
30136 done
30137
30138 # Required to use basename.
30139 if expr a : '\(a\)' >/dev/null 2>&1; then
30140   as_expr=expr
30141 else
30142   as_expr=false
30143 fi
30144
30145 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30146   as_basename=basename
30147 else
30148   as_basename=false
30149 fi
30150
30151
30152 # Name of the executable.
30153 as_me=`$as_basename "$0" ||
30154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30155          X"$0" : 'X\(//\)$' \| \
30156          X"$0" : 'X\(/\)$' \| \
30157          .     : '\(.\)' 2>/dev/null ||
30158 echo X/"$0" |
30159     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30160           /^X\/\(\/\/\)$/{ s//\1/; q; }
30161           /^X\/\(\/\).*/{ s//\1/; q; }
30162           s/.*/./; q'`
30163
30164
30165 # PATH needs CR, and LINENO needs CR and PATH.
30166 # Avoid depending upon Character Ranges.
30167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30170 as_cr_digits='0123456789'
30171 as_cr_alnum=$as_cr_Letters$as_cr_digits
30172
30173 # The user is always right.
30174 if test "${PATH_SEPARATOR+set}" != set; then
30175   echo "#! /bin/sh" >conf$$.sh
30176   echo  "exit 0"   >>conf$$.sh
30177   chmod +x conf$$.sh
30178   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30179     PATH_SEPARATOR=';'
30180   else
30181     PATH_SEPARATOR=:
30182   fi
30183   rm -f conf$$.sh
30184 fi
30185
30186
30187   as_lineno_1=$LINENO
30188   as_lineno_2=$LINENO
30189   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30190   test "x$as_lineno_1" != "x$as_lineno_2" &&
30191   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30192   # Find who we are.  Look in the path if we contain no path at all
30193   # relative or not.
30194   case $0 in
30195     *[\\/]* ) as_myself=$0 ;;
30196     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30197 for as_dir in $PATH
30198 do
30199   IFS=$as_save_IFS
30200   test -z "$as_dir" && as_dir=.
30201   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30202 done
30203
30204        ;;
30205   esac
30206   # We did not find ourselves, most probably we were run as `sh COMMAND'
30207   # in which case we are not to be found in the path.
30208   if test "x$as_myself" = x; then
30209     as_myself=$0
30210   fi
30211   if test ! -f "$as_myself"; then
30212     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30213 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30214    { (exit 1); exit 1; }; }
30215   fi
30216   case $CONFIG_SHELL in
30217   '')
30218     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30219 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30220 do
30221   IFS=$as_save_IFS
30222   test -z "$as_dir" && as_dir=.
30223   for as_base in sh bash ksh sh5; do
30224          case $as_dir in
30225          /*)
30226            if ("$as_dir/$as_base" -c '
30227   as_lineno_1=$LINENO
30228   as_lineno_2=$LINENO
30229   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30230   test "x$as_lineno_1" != "x$as_lineno_2" &&
30231   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30232              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30233              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30234              CONFIG_SHELL=$as_dir/$as_base
30235              export CONFIG_SHELL
30236              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30237            fi;;
30238          esac
30239        done
30240 done
30241 ;;
30242   esac
30243
30244   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30245   # uniformly replaced by the line number.  The first 'sed' inserts a
30246   # line-number line before each line; the second 'sed' does the real
30247   # work.  The second script uses 'N' to pair each line-number line
30248   # with the numbered line, and appends trailing '-' during
30249   # substitution so that $LINENO is not a special case at line end.
30250   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30251   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30252   sed '=' <$as_myself |
30253     sed '
30254       N
30255       s,$,-,
30256       : loop
30257       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30258       t loop
30259       s,-$,,
30260       s,^['$as_cr_digits']*\n,,
30261     ' >$as_me.lineno &&
30262   chmod +x $as_me.lineno ||
30263     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30264 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30265    { (exit 1); exit 1; }; }
30266
30267   # Don't try to exec as it changes $[0], causing all sort of problems
30268   # (the dirname of $[0] is not the place where we might find the
30269   # original and so on.  Autoconf is especially sensible to this).
30270   . ./$as_me.lineno
30271   # Exit status is that of the last command.
30272   exit
30273 }
30274
30275
30276 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30277   *c*,-n*) ECHO_N= ECHO_C='
30278 ' ECHO_T='      ' ;;
30279   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30280   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30281 esac
30282
30283 if expr a : '\(a\)' >/dev/null 2>&1; then
30284   as_expr=expr
30285 else
30286   as_expr=false
30287 fi
30288
30289 rm -f conf$$ conf$$.exe conf$$.file
30290 echo >conf$$.file
30291 if ln -s conf$$.file conf$$ 2>/dev/null; then
30292   # We could just check for DJGPP; but this test a) works b) is more generic
30293   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30294   if test -f conf$$.exe; then
30295     # Don't use ln at all; we don't have any links
30296     as_ln_s='cp -p'
30297   else
30298     as_ln_s='ln -s'
30299   fi
30300 elif ln conf$$.file conf$$ 2>/dev/null; then
30301   as_ln_s=ln
30302 else
30303   as_ln_s='cp -p'
30304 fi
30305 rm -f conf$$ conf$$.exe conf$$.file
30306
30307 if mkdir -p . 2>/dev/null; then
30308   as_mkdir_p=:
30309 else
30310   test -d ./-p && rmdir ./-p
30311   as_mkdir_p=false
30312 fi
30313
30314 as_executable_p="test -f"
30315
30316 # Sed expression to map a string onto a valid CPP name.
30317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30318
30319 # Sed expression to map a string onto a valid variable name.
30320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30321
30322
30323 # IFS
30324 # We need space, tab and new line, in precisely that order.
30325 as_nl='
30326 '
30327 IFS="   $as_nl"
30328
30329 # CDPATH.
30330 $as_unset CDPATH
30331
30332 exec 6>&1
30333
30334 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30335 # report actual input values of CONFIG_FILES etc. instead of their
30336 # values after options handling.  Logging --version etc. is OK.
30337 exec 5>>config.log
30338 {
30339   echo
30340   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30341 ## Running $as_me. ##
30342 _ASBOX
30343 } >&5
30344 cat >&5 <<_CSEOF
30345
30346 This file was extended by $as_me, which was
30347 generated by GNU Autoconf 2.59.  Invocation command line was
30348
30349   CONFIG_FILES    = $CONFIG_FILES
30350   CONFIG_HEADERS  = $CONFIG_HEADERS
30351   CONFIG_LINKS    = $CONFIG_LINKS
30352   CONFIG_COMMANDS = $CONFIG_COMMANDS
30353   $ $0 $@
30354
30355 _CSEOF
30356 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30357 echo >&5
30358 _ACEOF
30359
30360 # Files that config.status was made for.
30361 if test -n "$ac_config_files"; then
30362   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30363 fi
30364
30365 if test -n "$ac_config_headers"; then
30366   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30367 fi
30368
30369 if test -n "$ac_config_links"; then
30370   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30371 fi
30372
30373 if test -n "$ac_config_commands"; then
30374   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30375 fi
30376
30377 cat >>$CONFIG_STATUS <<\_ACEOF
30378
30379 ac_cs_usage="\
30380 \`$as_me' instantiates files from templates according to the
30381 current configuration.
30382
30383 Usage: $0 [OPTIONS] [FILE]...
30384
30385   -h, --help       print this help, then exit
30386   -V, --version    print version number, then exit
30387   -q, --quiet      do not print progress messages
30388   -d, --debug      don't remove temporary files
30389       --recheck    update $as_me by reconfiguring in the same conditions
30390   --file=FILE[:TEMPLATE]
30391                    instantiate the configuration file FILE
30392   --header=FILE[:TEMPLATE]
30393                    instantiate the configuration header FILE
30394
30395 Configuration files:
30396 $config_files
30397
30398 Configuration headers:
30399 $config_headers
30400
30401 Configuration commands:
30402 $config_commands
30403
30404 Report bugs to <bug-autoconf@gnu.org>."
30405 _ACEOF
30406
30407 cat >>$CONFIG_STATUS <<_ACEOF
30408 ac_cs_version="\\
30409 config.status
30410 configured by $0, generated by GNU Autoconf 2.59,
30411   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30412
30413 Copyright (C) 2003 Free Software Foundation, Inc.
30414 This config.status script is free software; the Free Software Foundation
30415 gives unlimited permission to copy, distribute and modify it."
30416 srcdir=$srcdir
30417 INSTALL="$INSTALL"
30418 _ACEOF
30419
30420 cat >>$CONFIG_STATUS <<\_ACEOF
30421 # If no file are specified by the user, then we need to provide default
30422 # value.  By we need to know if files were specified by the user.
30423 ac_need_defaults=:
30424 while test $# != 0
30425 do
30426   case $1 in
30427   --*=*)
30428     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30429     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30430     ac_shift=:
30431     ;;
30432   -*)
30433     ac_option=$1
30434     ac_optarg=$2
30435     ac_shift=shift
30436     ;;
30437   *) # This is not an option, so the user has probably given explicit
30438      # arguments.
30439      ac_option=$1
30440      ac_need_defaults=false;;
30441   esac
30442
30443   case $ac_option in
30444   # Handling of the options.
30445 _ACEOF
30446 cat >>$CONFIG_STATUS <<\_ACEOF
30447   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30448     ac_cs_recheck=: ;;
30449   --version | --vers* | -V )
30450     echo "$ac_cs_version"; exit 0 ;;
30451   --he | --h)
30452     # Conflict between --help and --header
30453     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30454 Try \`$0 --help' for more information." >&5
30455 echo "$as_me: error: ambiguous option: $1
30456 Try \`$0 --help' for more information." >&2;}
30457    { (exit 1); exit 1; }; };;
30458   --help | --hel | -h )
30459     echo "$ac_cs_usage"; exit 0 ;;
30460   --debug | --d* | -d )
30461     debug=: ;;
30462   --file | --fil | --fi | --f )
30463     $ac_shift
30464     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30465     ac_need_defaults=false;;
30466   --header | --heade | --head | --hea )
30467     $ac_shift
30468     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30469     ac_need_defaults=false;;
30470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30471   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30472     ac_cs_silent=: ;;
30473
30474   # This is an error.
30475   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30476 Try \`$0 --help' for more information." >&5
30477 echo "$as_me: error: unrecognized option: $1
30478 Try \`$0 --help' for more information." >&2;}
30479    { (exit 1); exit 1; }; } ;;
30480
30481   *) ac_config_targets="$ac_config_targets $1" ;;
30482
30483   esac
30484   shift
30485 done
30486
30487 ac_configure_extra_args=
30488
30489 if $ac_cs_silent; then
30490   exec 6>/dev/null
30491   ac_configure_extra_args="$ac_configure_extra_args --silent"
30492 fi
30493
30494 _ACEOF
30495 cat >>$CONFIG_STATUS <<_ACEOF
30496 if \$ac_cs_recheck; then
30497   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30498   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30499 fi
30500
30501 _ACEOF
30502
30503 cat >>$CONFIG_STATUS <<_ACEOF
30504 #
30505 # INIT-COMMANDS section.
30506 #
30507
30508 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30509     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30510     # from automake.
30511     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30512     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30513     LINGUAS="${LINGUAS-%UNSET%}"
30514
30515
30516 _ACEOF
30517
30518
30519
30520 cat >>$CONFIG_STATUS <<\_ACEOF
30521 for ac_config_target in $ac_config_targets
30522 do
30523   case "$ac_config_target" in
30524   # Handling of arguments.
30525   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30526   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30527   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30528   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30529   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30530   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30531   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30532   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30533   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30534   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30535   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30536   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30537   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30538   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30539   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30540   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30541   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30542   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30543   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30544   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30545   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30546   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30547   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30548   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30549   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30550   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30551   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30552   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30553   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30554   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30555   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30556   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30557   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30558   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30559   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30560   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30561   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30562   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30563   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30564   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30565   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30566   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30567   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30568   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30569   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30570   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30571   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30572   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30573   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30574   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30575   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30576   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30577   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30578   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30579   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30580   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30581   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30582   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30583   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30584   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30585   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30586   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30587   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30588   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30589   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30590   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30591   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30592   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30593   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30594   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30595   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30596   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30597   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30598   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30599   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30600   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30601   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30602   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30603   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30604   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30605   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30606   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30607   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30608   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30609   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30610   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30611   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30612   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30613   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30614   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30615   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30616   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30617   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30618   "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30619   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30620   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30621   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30622   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30623   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30624   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30625   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30626 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30627    { (exit 1); exit 1; }; };;
30628   esac
30629 done
30630
30631 # If the user did not use the arguments to specify the items to instantiate,
30632 # then the envvar interface is used.  Set only those that are not.
30633 # We use the long form for the default assignment because of an extremely
30634 # bizarre bug on SunOS 4.1.3.
30635 if $ac_need_defaults; then
30636   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30637   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30638   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30639 fi
30640
30641 # Have a temporary directory for convenience.  Make it in the build tree
30642 # simply because there is no reason to put it here, and in addition,
30643 # creating and moving files from /tmp can sometimes cause problems.
30644 # Create a temporary directory, and hook for its removal unless debugging.
30645 $debug ||
30646 {
30647   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30648   trap '{ (exit 1); exit 1; }' 1 2 13 15
30649 }
30650
30651 # Create a (secure) tmp directory for tmp files.
30652
30653 {
30654   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30655   test -n "$tmp" && test -d "$tmp"
30656 }  ||
30657 {
30658   tmp=./confstat$$-$RANDOM
30659   (umask 077 && mkdir $tmp)
30660 } ||
30661 {
30662    echo "$me: cannot create a temporary directory in ." >&2
30663    { (exit 1); exit 1; }
30664 }
30665
30666 _ACEOF
30667
30668 cat >>$CONFIG_STATUS <<_ACEOF
30669
30670 #
30671 # CONFIG_FILES section.
30672 #
30673
30674 # No need to generate the scripts if there are no CONFIG_FILES.
30675 # This happens for instance when ./config.status config.h
30676 if test -n "\$CONFIG_FILES"; then
30677   # Protect against being on the right side of a sed subst in config.status.
30678   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30679    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30680 s,@SHELL@,$SHELL,;t t
30681 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30682 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30683 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30684 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30685 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30686 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30687 s,@exec_prefix@,$exec_prefix,;t t
30688 s,@prefix@,$prefix,;t t
30689 s,@program_transform_name@,$program_transform_name,;t t
30690 s,@bindir@,$bindir,;t t
30691 s,@sbindir@,$sbindir,;t t
30692 s,@libexecdir@,$libexecdir,;t t
30693 s,@datadir@,$datadir,;t t
30694 s,@sysconfdir@,$sysconfdir,;t t
30695 s,@sharedstatedir@,$sharedstatedir,;t t
30696 s,@localstatedir@,$localstatedir,;t t
30697 s,@libdir@,$libdir,;t t
30698 s,@includedir@,$includedir,;t t
30699 s,@oldincludedir@,$oldincludedir,;t t
30700 s,@infodir@,$infodir,;t t
30701 s,@mandir@,$mandir,;t t
30702 s,@build_alias@,$build_alias,;t t
30703 s,@host_alias@,$host_alias,;t t
30704 s,@target_alias@,$target_alias,;t t
30705 s,@DEFS@,$DEFS,;t t
30706 s,@ECHO_C@,$ECHO_C,;t t
30707 s,@ECHO_N@,$ECHO_N,;t t
30708 s,@ECHO_T@,$ECHO_T,;t t
30709 s,@LIBS@,$LIBS,;t t
30710 s,@BUILD_DIR@,$BUILD_DIR,;t t
30711 s,@TOP_DIR@,$TOP_DIR,;t t
30712 s,@TRUEPRG@,$TRUEPRG,;t t
30713 s,@FALSEPRG@,$FALSEPRG,;t t
30714 s,@VERSION@,$VERSION,;t t
30715 s,@DATE@,$DATE,;t t
30716 s,@LSMDATE@,$LSMDATE,;t t
30717 s,@CC@,$CC,;t t
30718 s,@CFLAGS@,$CFLAGS,;t t
30719 s,@LDFLAGS@,$LDFLAGS,;t t
30720 s,@CPPFLAGS@,$CPPFLAGS,;t t
30721 s,@ac_ct_CC@,$ac_ct_CC,;t t
30722 s,@EXEEXT@,$EXEEXT,;t t
30723 s,@OBJEXT@,$OBJEXT,;t t
30724 s,@CXX@,$CXX,;t t
30725 s,@CXXFLAGS@,$CXXFLAGS,;t t
30726 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30727 s,@CPP@,$CPP,;t t
30728 s,@EGREP@,$EGREP,;t t
30729 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30730 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30731 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30732 s,@RANLIB@,$RANLIB,;t t
30733 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30734 s,@MV@,$MV,;t t
30735 s,@RM@,$RM,;t t
30736 s,@CP@,$CP,;t t
30737 s,@SED@,$SED,;t t
30738 s,@ECHO@,$ECHO,;t t
30739 s,@CMP@,$CMP,;t t
30740 s,@TBL@,$TBL,;t t
30741 s,@AR@,$AR,;t t
30742 s,@OPENSSL@,$OPENSSL,;t t
30743 s,@MTX@,$MTX,;t t
30744 s,@DD@,$DD,;t t
30745 s,@MKISOFS@,$MKISOFS,;t t
30746 s,@PYTHON@,$PYTHON,;t t
30747 s,@GROWISOFS@,$GROWISOFS,;t t
30748 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30749 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30750 s,@PKGCONFIG@,$PKGCONFIG,;t t
30751 s,@WXCONFIG@,$WXCONFIG,;t t
30752 s,@WXFLAGS@,$WXFLAGS,;t t
30753 s,@CDRECORD@,$CDRECORD,;t t
30754 s,@PIDOF@,$PIDOF,;t t
30755 s,@AWK@,$AWK,;t t
30756 s,@ARFLAGS@,$ARFLAGS,;t t
30757 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30758 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30759 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30760 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30761 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30762 s,@build@,$build,;t t
30763 s,@build_cpu@,$build_cpu,;t t
30764 s,@build_vendor@,$build_vendor,;t t
30765 s,@build_os@,$build_os,;t t
30766 s,@host@,$host,;t t
30767 s,@host_cpu@,$host_cpu,;t t
30768 s,@host_vendor@,$host_vendor,;t t
30769 s,@host_os@,$host_os,;t t
30770 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30771 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30772 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30773 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30774 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30775 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30776 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30777 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30778 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30779 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30780 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30781 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30782 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30783 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30784 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30785 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30786 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30787 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30788 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30789 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30790 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30791 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30792 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30793 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30794 s,@SET_MAKE@,$SET_MAKE,;t t
30795 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30796 s,@USE_NLS@,$USE_NLS,;t t
30797 s,@MSGFMT@,$MSGFMT,;t t
30798 s,@GMSGFMT@,$GMSGFMT,;t t
30799 s,@XGETTEXT@,$XGETTEXT,;t t
30800 s,@MSGMERGE@,$MSGMERGE,;t t
30801 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30802 s,@LIBICONV@,$LIBICONV,;t t
30803 s,@LTLIBICONV@,$LTLIBICONV,;t t
30804 s,@INTLLIBS@,$INTLLIBS,;t t
30805 s,@LIBINTL@,$LIBINTL,;t t
30806 s,@LTLIBINTL@,$LTLIBINTL,;t t
30807 s,@POSUB@,$POSUB,;t t
30808 s,@GLIBC2@,$GLIBC2,;t t
30809 s,@ALLOCA@,$ALLOCA,;t t
30810 s,@GLIBC21@,$GLIBC21,;t t
30811 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30812 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30813 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30814 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30815 s,@INTLBISON@,$INTLBISON,;t t
30816 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30817 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30818 s,@CATOBJEXT@,$CATOBJEXT,;t t
30819 s,@DATADIRNAME@,$DATADIRNAME,;t t
30820 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30821 s,@GENCAT@,$GENCAT,;t t
30822 s,@INTLOBJS@,$INTLOBJS,;t t
30823 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30824 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30825 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30826 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30827 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30828 s,@GNOME_DIR@,$GNOME_DIR,;t t
30829 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30830 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30831 s,@WX_DIR@,$WX_DIR,;t t
30832 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30833 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30834 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30835 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30836 s,@STATIC_FD@,$STATIC_FD,;t t
30837 s,@STATIC_SD@,$STATIC_SD,;t t
30838 s,@STATIC_DIR@,$STATIC_DIR,;t t
30839 s,@STATIC_CONS@,$STATIC_CONS,;t t
30840 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30841 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30842 s,@ALL_DIRS@,$ALL_DIRS,;t t
30843 s,@DIRD_DIR@,$DIRD_DIR,;t t
30844 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30845 s,@STORED_DIR@,$STORED_DIR,;t t
30846 s,@CONS_INC@,$CONS_INC,;t t
30847 s,@CONS_OBJ@,$CONS_OBJ,;t t
30848 s,@CONS_SRC@,$CONS_SRC,;t t
30849 s,@CONS_LIBS@,$CONS_LIBS,;t t
30850 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30851 s,@READLINE_SRC@,$READLINE_SRC,;t t
30852 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30853 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30854 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30855 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30856 s,@working_dir@,$working_dir,;t t
30857 s,@scriptdir@,$scriptdir,;t t
30858 s,@dump_email@,$dump_email,;t t
30859 s,@job_email@,$job_email,;t t
30860 s,@smtp_host@,$smtp_host,;t t
30861 s,@piddir@,$piddir,;t t
30862 s,@subsysdir@,$subsysdir,;t t
30863 s,@baseport@,$baseport,;t t
30864 s,@dir_port@,$dir_port,;t t
30865 s,@fd_port@,$fd_port,;t t
30866 s,@sd_port@,$sd_port,;t t
30867 s,@dir_password@,$dir_password,;t t
30868 s,@fd_password@,$fd_password,;t t
30869 s,@sd_password@,$sd_password,;t t
30870 s,@mon_dir_password@,$mon_dir_password,;t t
30871 s,@mon_fd_password@,$mon_fd_password,;t t
30872 s,@mon_sd_password@,$mon_sd_password,;t t
30873 s,@dir_user@,$dir_user,;t t
30874 s,@dir_group@,$dir_group,;t t
30875 s,@sd_user@,$sd_user,;t t
30876 s,@sd_group@,$sd_group,;t t
30877 s,@fd_user@,$fd_user,;t t
30878 s,@fd_group@,$fd_group,;t t
30879 s,@SBINPERM@,$SBINPERM,;t t
30880 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30881 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30882 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30883 s,@cats@,$cats,;t t
30884 s,@DB_NAME@,$DB_NAME,;t t
30885 s,@GETCONF@,$GETCONF,;t t
30886 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30887 s,@X_CFLAGS@,$X_CFLAGS,;t t
30888 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30889 s,@X_LIBS@,$X_LIBS,;t t
30890 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30891 s,@LIBOBJS@,$LIBOBJS,;t t
30892 s,@FDLIBS@,$FDLIBS,;t t
30893 s,@DEBUG@,$DEBUG,;t t
30894 s,@DINCLUDE@,$DINCLUDE,;t t
30895 s,@DLIB@,$DLIB,;t t
30896 s,@DB_LIBS@,$DB_LIBS,;t t
30897 s,@WCFLAGS@,$WCFLAGS,;t t
30898 s,@WLDFLAGS@,$WLDFLAGS,;t t
30899 s,@WRAPLIBS@,$WRAPLIBS,;t t
30900 s,@OBJLIST@,$OBJLIST,;t t
30901 s,@hostname@,$hostname,;t t
30902 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30903 s,@PSCMD@,$PSCMD,;t t
30904 s,@WIN32@,$WIN32,;t t
30905 s,@MACOSX@,$MACOSX,;t t
30906 s,@DISTNAME@,$DISTNAME,;t t
30907 s,@DISTVER@,$DISTVER,;t t
30908 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30909 /@MCOMMON@/r $MCOMMON
30910 s,@MCOMMON@,,;t t
30911 CEOF
30912
30913 _ACEOF
30914
30915   cat >>$CONFIG_STATUS <<\_ACEOF
30916   # Split the substitutions into bite-sized pieces for seds with
30917   # small command number limits, like on Digital OSF/1 and HP-UX.
30918   ac_max_sed_lines=48
30919   ac_sed_frag=1 # Number of current file.
30920   ac_beg=1 # First line for current file.
30921   ac_end=$ac_max_sed_lines # Line after last line for current file.
30922   ac_more_lines=:
30923   ac_sed_cmds=
30924   while $ac_more_lines; do
30925     if test $ac_beg -gt 1; then
30926       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30927     else
30928       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30929     fi
30930     if test ! -s $tmp/subs.frag; then
30931       ac_more_lines=false
30932     else
30933       # The purpose of the label and of the branching condition is to
30934       # speed up the sed processing (if there are no `@' at all, there
30935       # is no need to browse any of the substitutions).
30936       # These are the two extra sed commands mentioned above.
30937       (echo ':t
30938   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30939       if test -z "$ac_sed_cmds"; then
30940         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30941       else
30942         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30943       fi
30944       ac_sed_frag=`expr $ac_sed_frag + 1`
30945       ac_beg=$ac_end
30946       ac_end=`expr $ac_end + $ac_max_sed_lines`
30947     fi
30948   done
30949   if test -z "$ac_sed_cmds"; then
30950     ac_sed_cmds=cat
30951   fi
30952 fi # test -n "$CONFIG_FILES"
30953
30954 _ACEOF
30955 cat >>$CONFIG_STATUS <<\_ACEOF
30956 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30957   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30958   case $ac_file in
30959   - | *:- | *:-:* ) # input from stdin
30960         cat >$tmp/stdin
30961         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30962         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30963   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30964         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30965   * )   ac_file_in=$ac_file.in ;;
30966   esac
30967
30968   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30969   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30971          X"$ac_file" : 'X\(//\)[^/]' \| \
30972          X"$ac_file" : 'X\(//\)$' \| \
30973          X"$ac_file" : 'X\(/\)' \| \
30974          .     : '\(.\)' 2>/dev/null ||
30975 echo X"$ac_file" |
30976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30977           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30978           /^X\(\/\/\)$/{ s//\1/; q; }
30979           /^X\(\/\).*/{ s//\1/; q; }
30980           s/.*/./; q'`
30981   { if $as_mkdir_p; then
30982     mkdir -p "$ac_dir"
30983   else
30984     as_dir="$ac_dir"
30985     as_dirs=
30986     while test ! -d "$as_dir"; do
30987       as_dirs="$as_dir $as_dirs"
30988       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30990          X"$as_dir" : 'X\(//\)[^/]' \| \
30991          X"$as_dir" : 'X\(//\)$' \| \
30992          X"$as_dir" : 'X\(/\)' \| \
30993          .     : '\(.\)' 2>/dev/null ||
30994 echo X"$as_dir" |
30995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30996           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30997           /^X\(\/\/\)$/{ s//\1/; q; }
30998           /^X\(\/\).*/{ s//\1/; q; }
30999           s/.*/./; q'`
31000     done
31001     test ! -n "$as_dirs" || mkdir $as_dirs
31002   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31003 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31004    { (exit 1); exit 1; }; }; }
31005
31006   ac_builddir=.
31007
31008 if test "$ac_dir" != .; then
31009   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31010   # A "../" for each directory in $ac_dir_suffix.
31011   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31012 else
31013   ac_dir_suffix= ac_top_builddir=
31014 fi
31015
31016 case $srcdir in
31017   .)  # No --srcdir option.  We are building in place.
31018     ac_srcdir=.
31019     if test -z "$ac_top_builddir"; then
31020        ac_top_srcdir=.
31021     else
31022        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31023     fi ;;
31024   [\\/]* | ?:[\\/]* )  # Absolute path.
31025     ac_srcdir=$srcdir$ac_dir_suffix;
31026     ac_top_srcdir=$srcdir ;;
31027   *) # Relative path.
31028     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31029     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31030 esac
31031
31032 # Do not use `cd foo && pwd` to compute absolute paths, because
31033 # the directories may not exist.
31034 case `pwd` in
31035 .) ac_abs_builddir="$ac_dir";;
31036 *)
31037   case "$ac_dir" in
31038   .) ac_abs_builddir=`pwd`;;
31039   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31040   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31041   esac;;
31042 esac
31043 case $ac_abs_builddir in
31044 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31045 *)
31046   case ${ac_top_builddir}. in
31047   .) ac_abs_top_builddir=$ac_abs_builddir;;
31048   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31049   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31050   esac;;
31051 esac
31052 case $ac_abs_builddir in
31053 .) ac_abs_srcdir=$ac_srcdir;;
31054 *)
31055   case $ac_srcdir in
31056   .) ac_abs_srcdir=$ac_abs_builddir;;
31057   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31058   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31059   esac;;
31060 esac
31061 case $ac_abs_builddir in
31062 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31063 *)
31064   case $ac_top_srcdir in
31065   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31066   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31067   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31068   esac;;
31069 esac
31070
31071
31072   case $INSTALL in
31073   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31074   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31075   esac
31076
31077   if test x"$ac_file" != x-; then
31078     { echo "$as_me:$LINENO: creating $ac_file" >&5
31079 echo "$as_me: creating $ac_file" >&6;}
31080     rm -f "$ac_file"
31081   fi
31082   # Let's still pretend it is `configure' which instantiates (i.e., don't
31083   # use $as_me), people would be surprised to read:
31084   #    /* config.h.  Generated by config.status.  */
31085   if test x"$ac_file" = x-; then
31086     configure_input=
31087   else
31088     configure_input="$ac_file.  "
31089   fi
31090   configure_input=$configure_input"Generated from `echo $ac_file_in |
31091                                      sed 's,.*/,,'` by configure."
31092
31093   # First look for the input files in the build tree, otherwise in the
31094   # src tree.
31095   ac_file_inputs=`IFS=:
31096     for f in $ac_file_in; do
31097       case $f in
31098       -) echo $tmp/stdin ;;
31099       [\\/$]*)
31100          # Absolute (can't be DOS-style, as IFS=:)
31101          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31102 echo "$as_me: error: cannot find input file: $f" >&2;}
31103    { (exit 1); exit 1; }; }
31104          echo "$f";;
31105       *) # Relative
31106          if test -f "$f"; then
31107            # Build tree
31108            echo "$f"
31109          elif test -f "$srcdir/$f"; then
31110            # Source tree
31111            echo "$srcdir/$f"
31112          else
31113            # /dev/null tree
31114            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31115 echo "$as_me: error: cannot find input file: $f" >&2;}
31116    { (exit 1); exit 1; }; }
31117          fi;;
31118       esac
31119     done` || { (exit 1); exit 1; }
31120 _ACEOF
31121 cat >>$CONFIG_STATUS <<_ACEOF
31122   sed "$ac_vpsub
31123 $extrasub
31124 _ACEOF
31125 cat >>$CONFIG_STATUS <<\_ACEOF
31126 :t
31127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31128 s,@configure_input@,$configure_input,;t t
31129 s,@srcdir@,$ac_srcdir,;t t
31130 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31131 s,@top_srcdir@,$ac_top_srcdir,;t t
31132 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31133 s,@builddir@,$ac_builddir,;t t
31134 s,@abs_builddir@,$ac_abs_builddir,;t t
31135 s,@top_builddir@,$ac_top_builddir,;t t
31136 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31137 s,@INSTALL@,$ac_INSTALL,;t t
31138 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31139   rm -f $tmp/stdin
31140   if test x"$ac_file" != x-; then
31141     mv $tmp/out $ac_file
31142   else
31143     cat $tmp/out
31144     rm -f $tmp/out
31145   fi
31146
31147 done
31148 _ACEOF
31149 cat >>$CONFIG_STATUS <<\_ACEOF
31150
31151 #
31152 # CONFIG_HEADER section.
31153 #
31154
31155 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31156 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31157 #
31158 # ac_d sets the value in "#define NAME VALUE" lines.
31159 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31160 ac_dB='[         ].*$,\1#\2'
31161 ac_dC=' '
31162 ac_dD=',;t'
31163 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31164 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31165 ac_uB='$,\1#\2define\3'
31166 ac_uC=' '
31167 ac_uD=',;t'
31168
31169 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31170   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31171   case $ac_file in
31172   - | *:- | *:-:* ) # input from stdin
31173         cat >$tmp/stdin
31174         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31175         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31176   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31177         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31178   * )   ac_file_in=$ac_file.in ;;
31179   esac
31180
31181   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31182 echo "$as_me: creating $ac_file" >&6;}
31183
31184   # First look for the input files in the build tree, otherwise in the
31185   # src tree.
31186   ac_file_inputs=`IFS=:
31187     for f in $ac_file_in; do
31188       case $f in
31189       -) echo $tmp/stdin ;;
31190       [\\/$]*)
31191          # Absolute (can't be DOS-style, as IFS=:)
31192          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31193 echo "$as_me: error: cannot find input file: $f" >&2;}
31194    { (exit 1); exit 1; }; }
31195          # Do quote $f, to prevent DOS paths from being IFS'd.
31196          echo "$f";;
31197       *) # Relative
31198          if test -f "$f"; then
31199            # Build tree
31200            echo "$f"
31201          elif test -f "$srcdir/$f"; then
31202            # Source tree
31203            echo "$srcdir/$f"
31204          else
31205            # /dev/null tree
31206            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31207 echo "$as_me: error: cannot find input file: $f" >&2;}
31208    { (exit 1); exit 1; }; }
31209          fi;;
31210       esac
31211     done` || { (exit 1); exit 1; }
31212   # Remove the trailing spaces.
31213   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31214
31215 _ACEOF
31216
31217 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31218 # `conftest.undefs', that substitutes the proper values into
31219 # config.h.in to produce config.h.  The first handles `#define'
31220 # templates, and the second `#undef' templates.
31221 # And first: Protect against being on the right side of a sed subst in
31222 # config.status.  Protect against being in an unquoted here document
31223 # in config.status.
31224 rm -f conftest.defines conftest.undefs
31225 # Using a here document instead of a string reduces the quoting nightmare.
31226 # Putting comments in sed scripts is not portable.
31227 #
31228 # `end' is used to avoid that the second main sed command (meant for
31229 # 0-ary CPP macros) applies to n-ary macro definitions.
31230 # See the Autoconf documentation for `clear'.
31231 cat >confdef2sed.sed <<\_ACEOF
31232 s/[\\&,]/\\&/g
31233 s,[\\$`],\\&,g
31234 t clear
31235 : clear
31236 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31237 t end
31238 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31239 : end
31240 _ACEOF
31241 # If some macros were called several times there might be several times
31242 # the same #defines, which is useless.  Nevertheless, we may not want to
31243 # sort them, since we want the *last* AC-DEFINE to be honored.
31244 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31245 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31246 rm -f confdef2sed.sed
31247
31248 # This sed command replaces #undef with comments.  This is necessary, for
31249 # example, in the case of _POSIX_SOURCE, which is predefined and required
31250 # on some systems where configure will not decide to define it.
31251 cat >>conftest.undefs <<\_ACEOF
31252 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31253 _ACEOF
31254
31255 # Break up conftest.defines because some shells have a limit on the size
31256 # of here documents, and old seds have small limits too (100 cmds).
31257 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31258 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31259 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31260 echo '  :' >>$CONFIG_STATUS
31261 rm -f conftest.tail
31262 while grep . conftest.defines >/dev/null
31263 do
31264   # Write a limited-size here document to $tmp/defines.sed.
31265   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31266   # Speed up: don't consider the non `#define' lines.
31267   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31268   # Work around the forget-to-reset-the-flag bug.
31269   echo 't clr' >>$CONFIG_STATUS
31270   echo ': clr' >>$CONFIG_STATUS
31271   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31272   echo 'CEOF
31273   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31274   rm -f $tmp/in
31275   mv $tmp/out $tmp/in
31276 ' >>$CONFIG_STATUS
31277   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31278   rm -f conftest.defines
31279   mv conftest.tail conftest.defines
31280 done
31281 rm -f conftest.defines
31282 echo '  fi # grep' >>$CONFIG_STATUS
31283 echo >>$CONFIG_STATUS
31284
31285 # Break up conftest.undefs because some shells have a limit on the size
31286 # of here documents, and old seds have small limits too (100 cmds).
31287 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31288 rm -f conftest.tail
31289 while grep . conftest.undefs >/dev/null
31290 do
31291   # Write a limited-size here document to $tmp/undefs.sed.
31292   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31293   # Speed up: don't consider the non `#undef'
31294   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31295   # Work around the forget-to-reset-the-flag bug.
31296   echo 't clr' >>$CONFIG_STATUS
31297   echo ': clr' >>$CONFIG_STATUS
31298   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31299   echo 'CEOF
31300   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31301   rm -f $tmp/in
31302   mv $tmp/out $tmp/in
31303 ' >>$CONFIG_STATUS
31304   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31305   rm -f conftest.undefs
31306   mv conftest.tail conftest.undefs
31307 done
31308 rm -f conftest.undefs
31309
31310 cat >>$CONFIG_STATUS <<\_ACEOF
31311   # Let's still pretend it is `configure' which instantiates (i.e., don't
31312   # use $as_me), people would be surprised to read:
31313   #    /* config.h.  Generated by config.status.  */
31314   if test x"$ac_file" = x-; then
31315     echo "/* Generated by configure.  */" >$tmp/config.h
31316   else
31317     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31318   fi
31319   cat $tmp/in >>$tmp/config.h
31320   rm -f $tmp/in
31321   if test x"$ac_file" != x-; then
31322     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31323       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31324 echo "$as_me: $ac_file is unchanged" >&6;}
31325     else
31326       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31328          X"$ac_file" : 'X\(//\)[^/]' \| \
31329          X"$ac_file" : 'X\(//\)$' \| \
31330          X"$ac_file" : 'X\(/\)' \| \
31331          .     : '\(.\)' 2>/dev/null ||
31332 echo X"$ac_file" |
31333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31334           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31335           /^X\(\/\/\)$/{ s//\1/; q; }
31336           /^X\(\/\).*/{ s//\1/; q; }
31337           s/.*/./; q'`
31338       { if $as_mkdir_p; then
31339     mkdir -p "$ac_dir"
31340   else
31341     as_dir="$ac_dir"
31342     as_dirs=
31343     while test ! -d "$as_dir"; do
31344       as_dirs="$as_dir $as_dirs"
31345       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31347          X"$as_dir" : 'X\(//\)[^/]' \| \
31348          X"$as_dir" : 'X\(//\)$' \| \
31349          X"$as_dir" : 'X\(/\)' \| \
31350          .     : '\(.\)' 2>/dev/null ||
31351 echo X"$as_dir" |
31352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31353           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31354           /^X\(\/\/\)$/{ s//\1/; q; }
31355           /^X\(\/\).*/{ s//\1/; q; }
31356           s/.*/./; q'`
31357     done
31358     test ! -n "$as_dirs" || mkdir $as_dirs
31359   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31360 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31361    { (exit 1); exit 1; }; }; }
31362
31363       rm -f $ac_file
31364       mv $tmp/config.h $ac_file
31365     fi
31366   else
31367     cat $tmp/config.h
31368     rm -f $tmp/config.h
31369   fi
31370 done
31371 _ACEOF
31372 cat >>$CONFIG_STATUS <<\_ACEOF
31373
31374 #
31375 # CONFIG_COMMANDS section.
31376 #
31377 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31378   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31379   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31380   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31381 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31382          X"$ac_dest" : 'X\(//\)[^/]' \| \
31383          X"$ac_dest" : 'X\(//\)$' \| \
31384          X"$ac_dest" : 'X\(/\)' \| \
31385          .     : '\(.\)' 2>/dev/null ||
31386 echo X"$ac_dest" |
31387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31388           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31389           /^X\(\/\/\)$/{ s//\1/; q; }
31390           /^X\(\/\).*/{ s//\1/; q; }
31391           s/.*/./; q'`
31392   { if $as_mkdir_p; then
31393     mkdir -p "$ac_dir"
31394   else
31395     as_dir="$ac_dir"
31396     as_dirs=
31397     while test ! -d "$as_dir"; do
31398       as_dirs="$as_dir $as_dirs"
31399       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31401          X"$as_dir" : 'X\(//\)[^/]' \| \
31402          X"$as_dir" : 'X\(//\)$' \| \
31403          X"$as_dir" : 'X\(/\)' \| \
31404          .     : '\(.\)' 2>/dev/null ||
31405 echo X"$as_dir" |
31406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31407           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31408           /^X\(\/\/\)$/{ s//\1/; q; }
31409           /^X\(\/\).*/{ s//\1/; q; }
31410           s/.*/./; q'`
31411     done
31412     test ! -n "$as_dirs" || mkdir $as_dirs
31413   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31414 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31415    { (exit 1); exit 1; }; }; }
31416
31417   ac_builddir=.
31418
31419 if test "$ac_dir" != .; then
31420   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31421   # A "../" for each directory in $ac_dir_suffix.
31422   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31423 else
31424   ac_dir_suffix= ac_top_builddir=
31425 fi
31426
31427 case $srcdir in
31428   .)  # No --srcdir option.  We are building in place.
31429     ac_srcdir=.
31430     if test -z "$ac_top_builddir"; then
31431        ac_top_srcdir=.
31432     else
31433        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31434     fi ;;
31435   [\\/]* | ?:[\\/]* )  # Absolute path.
31436     ac_srcdir=$srcdir$ac_dir_suffix;
31437     ac_top_srcdir=$srcdir ;;
31438   *) # Relative path.
31439     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31440     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31441 esac
31442
31443 # Do not use `cd foo && pwd` to compute absolute paths, because
31444 # the directories may not exist.
31445 case `pwd` in
31446 .) ac_abs_builddir="$ac_dir";;
31447 *)
31448   case "$ac_dir" in
31449   .) ac_abs_builddir=`pwd`;;
31450   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31451   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31452   esac;;
31453 esac
31454 case $ac_abs_builddir in
31455 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31456 *)
31457   case ${ac_top_builddir}. in
31458   .) ac_abs_top_builddir=$ac_abs_builddir;;
31459   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31460   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31461   esac;;
31462 esac
31463 case $ac_abs_builddir in
31464 .) ac_abs_srcdir=$ac_srcdir;;
31465 *)
31466   case $ac_srcdir in
31467   .) ac_abs_srcdir=$ac_abs_builddir;;
31468   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31469   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31470   esac;;
31471 esac
31472 case $ac_abs_builddir in
31473 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31474 *)
31475   case $ac_top_srcdir in
31476   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31477   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31478   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31479   esac;;
31480 esac
31481
31482
31483   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31484 echo "$as_me: executing $ac_dest commands" >&6;}
31485   case $ac_dest in
31486     default-1 )
31487     for ac_file in $CONFIG_FILES; do
31488       # Support "outfile[:infile[:infile...]]"
31489       case "$ac_file" in
31490         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31491       esac
31492       # PO directories have a Makefile.in generated from Makefile.in.in.
31493       case "$ac_file" in */Makefile.in)
31494         # Adjust a relative srcdir.
31495         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31496         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31497         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31498         # In autoconf-2.13 it is called $ac_given_srcdir.
31499         # In autoconf-2.50 it is called $srcdir.
31500         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31501         case "$ac_given_srcdir" in
31502           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31503           /*) top_srcdir="$ac_given_srcdir" ;;
31504           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31505         esac
31506         # Treat a directory as a PO directory if and only if it has a
31507         # POTFILES.in file. This allows packages to have multiple PO
31508         # directories under different names or in different locations.
31509         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31510           rm -f "$ac_dir/POTFILES"
31511           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31512           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31513           POMAKEFILEDEPS="POTFILES.in"
31514           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31515           # on $ac_dir but don't depend on user-specified configuration
31516           # parameters.
31517           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31518             # The LINGUAS file contains the set of available languages.
31519             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31520               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31521             fi
31522             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31523             # Hide the ALL_LINGUAS assigment from automake.
31524             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31525             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31526           else
31527             # The set of available languages was given in configure.in.
31528             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31529           fi
31530           # Compute POFILES
31531           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31532           # Compute UPDATEPOFILES
31533           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31534           # Compute DUMMYPOFILES
31535           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31536           # Compute GMOFILES
31537           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31538           case "$ac_given_srcdir" in
31539             .) srcdirpre= ;;
31540             *) srcdirpre='$(srcdir)/' ;;
31541           esac
31542           POFILES=
31543           UPDATEPOFILES=
31544           DUMMYPOFILES=
31545           GMOFILES=
31546           for lang in $ALL_LINGUAS; do
31547             POFILES="$POFILES $srcdirpre$lang.po"
31548             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31549             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31550             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31551           done
31552           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31553           # environment variable.
31554           INST_LINGUAS=
31555           if test -n "$ALL_LINGUAS"; then
31556             for presentlang in $ALL_LINGUAS; do
31557               useit=no
31558               if test "%UNSET%" != "$LINGUAS"; then
31559                 desiredlanguages="$LINGUAS"
31560               else
31561                 desiredlanguages="$ALL_LINGUAS"
31562               fi
31563               for desiredlang in $desiredlanguages; do
31564                 # Use the presentlang catalog if desiredlang is
31565                 #   a. equal to presentlang, or
31566                 #   b. a variant of presentlang (because in this case,
31567                 #      presentlang can be used as a fallback for messages
31568                 #      which are not translated in the desiredlang catalog).
31569                 case "$desiredlang" in
31570                   "$presentlang"*) useit=yes;;
31571                 esac
31572               done
31573               if test $useit = yes; then
31574                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31575               fi
31576             done
31577           fi
31578           CATALOGS=
31579           if test -n "$INST_LINGUAS"; then
31580             for lang in $INST_LINGUAS; do
31581               CATALOGS="$CATALOGS $lang.gmo"
31582             done
31583           fi
31584           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31585           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"
31586           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31587             if test -f "$f"; then
31588               case "$f" in
31589                 *.orig | *.bak | *~) ;;
31590                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31591               esac
31592             fi
31593           done
31594         fi
31595         ;;
31596       esac
31597     done ;;
31598     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31599  ;;
31600   esac
31601 done
31602 _ACEOF
31603
31604 cat >>$CONFIG_STATUS <<\_ACEOF
31605
31606 { (exit 0); exit 0; }
31607 _ACEOF
31608 chmod +x $CONFIG_STATUS
31609 ac_clean_files=$ac_clean_files_save
31610
31611
31612 # configure is writing to config.log, and then calls config.status.
31613 # config.status does its own redirection, appending to config.log.
31614 # Unfortunately, on DOS this fails, as config.log is still kept open
31615 # by configure, so config.status won't be able to write to it; its
31616 # output is simply discarded.  So we exec the FD to /dev/null,
31617 # effectively closing config.log, so it can be properly (re)opened and
31618 # appended to by config.status.  When coming back to configure, we
31619 # need to make the FD available again.
31620 if test "$no_create" != yes; then
31621   ac_cs_success=:
31622   ac_config_status_args=
31623   test "$silent" = yes &&
31624     ac_config_status_args="$ac_config_status_args --quiet"
31625   exec 5>/dev/null
31626   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31627   exec 5>>config.log
31628   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31629   # would make configure fail if this is the last instruction.
31630   $ac_cs_success || { (exit 1); exit 1; }
31631 fi
31632
31633
31634 cd scripts
31635 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31636 chmod 755 dvd-handler dvd-simulator
31637 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31638 cd ..
31639
31640 c=src/cats
31641
31642 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31643 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31644
31645 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31646 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31647
31648 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31649 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31650
31651 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31652 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31653
31654 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31655 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31656
31657 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31658 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31659
31660 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31661 chmod 755 $c/sqlite
31662 chmod 755 $c/mysql
31663
31664 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31665    largefile_support="yes"
31666 fi
31667
31668 #
31669 # A whole lot of hand springs to get the compiler version.
31670 #  This is because gcc changed the output in version 3.0
31671 #
31672 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31673 if test "x${CCVERSION}" = "x" ; then
31674   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31675 fi
31676 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31677 if test x"${CXXVERSION}" = x ; then
31678   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31679 fi
31680
31681 if test "x${subsysdir}" = "x${sbindir}" ; then
31682    echo " "
31683    echo " "
31684    echo "You have set --sbindir and --with-subsys-dir"
31685    echo "  both equal to: ${subsysdir} "
31686    echo "  This is not permitted. Please reconfigure."
31687    echo " "
31688    echo "Aborting configuration ..."
31689    echo " "
31690    echo " "
31691    exit 1
31692 fi
31693
31694 if test "x${db_name}" = "xInternal" ; then
31695    echo " "
31696    echo " "
31697    echo "You have not specified either --enable-client-only or one of the"
31698    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31699    echo "  This is not permitted. Please reconfigure."
31700    echo " "
31701    echo "Aborting the configuration ..."
31702    echo " "
31703    echo " "
31704    exit 1
31705 fi
31706
31707 echo "
31708 Configuration on `date`:
31709
31710   Host:                       $host -- ${DISTNAME} ${DISTVER}
31711   Bacula version:             ${VERSION} (${DATE})
31712   Source code location:       ${srcdir}
31713   Install binaries:           ${sbindir}
31714   Install config files:       ${sysconfdir}
31715   Scripts directory:          ${scriptdir}
31716   Working directory:          ${working_dir}
31717   PID directory:              ${piddir}
31718   Subsys directory:           ${subsysdir}
31719   Man directory:              ${mandir}
31720   Data directory:             ${datadir}
31721   C Compiler:                 ${CC} ${CCVERSION}
31722   C++ Compiler:               ${CXX} ${CXXVERSION}
31723   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31724   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31725   Libraries:                  ${LIBS}
31726   Statically Linked Tools:    ${support_static_tools}
31727   Statically Linked FD:       ${support_static_fd}
31728   Statically Linked SD:       ${support_static_sd}
31729   Statically Linked DIR:      ${support_static_dir}
31730   Statically Linked CONS:     ${support_static_cons}
31731   Database type:              ${db_name}
31732   Database lib:               ${DB_LIBS}
31733
31734   Job Output Email:           ${job_email}
31735   Traceback Email:            ${dump_email}
31736   SMTP Host Address:          ${smtp_host}
31737
31738   Director Port:              ${dir_port}
31739   File daemon Port:           ${fd_port}
31740   Storage daemon Port:        ${sd_port}
31741
31742   Director User:              ${dir_user}
31743   Director Group:             ${dir_group}
31744   Storage Daemon User:        ${sd_user}
31745   Storage DaemonGroup:        ${sd_group}
31746   File Daemon User:           ${fd_user}
31747   File Daemon Group:          ${fd_group}
31748
31749   SQL binaries Directory      ${SQL_BINDIR}
31750
31751   Large file support:         $largefile_support
31752   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31753   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31754   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31755   TLS support:                ${support_tls}
31756   Encryption support:         ${support_crypto}
31757   ZLIB support:               ${have_zlib}
31758   enable-smartalloc:          ${support_smartalloc}
31759   enable-gnome:               ${support_gnome} ${gnome_version}
31760   enable-wx-console:          ${support_wx_console} ${wx_version}
31761   enable-tray-monitor:        ${support_tray_monitor}
31762   client-only:                ${build_client_only}
31763   build-dird:                 ${build_dird}
31764   build-stored:               ${build_stored}
31765   ACL support:                ${have_acl}
31766   Python support:             ${support_python} ${PYTHON_LIBS}
31767
31768   " > config.out
31769
31770 cat config.out