]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Convert dvd-writepart to Python.
[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 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 DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO 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 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 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 ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS 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   --disable-conio            disable conio support enabled
880
881   --disable-readline      disable readline support disable
882
883   --disable-largefile     omit support for large files
884
885 Optional Packages:
886   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
887   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
888   --with-gnu-ld           assume the C compiler uses GNU ld default=no
889   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
890   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
891   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
892   --without-libintl-prefix     don't search for libintl in includedir and libdir
893  --with-readline=DIR             specify readline library directory
894
895   --with-python=DIR       Include Python support.  DIR is the Python base
896                           install directory, default is to search through
897                           a number of common places for the Python files.
898   --with-tcp-wrappers=DIR        enable tcpwrappers support
899   --with-openssl[=DIR]
900                           Include OpenSSL support. DIR is the OpenSSL base
901   --with-working-dir=PATH        specify path of Bacula working directory
902   --with-scriptdir=PATH    specify path of Bacula scripts directory
903   --with-dump-email=EMAIL        dump email address
904   --with-job-email=EMAIL         job output email address
905   --with-smtp-host=HOST          SMTP mail host address
906   --with-pid-dir=PATH            specify location of Bacula pid files
907   --with-subsys-dir=PATH         specify location of Bacula subsys file
908   --with-baseport=PORT           specify base port address for daemons
909   --with-dir-password=PASSWORD   specify Director's password
910   --with-fd-password=PASSWORD    specify Client's password
911   --with-sd-password=PASSWORD    specify Storage daemon's password
912   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
913   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
914   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
915   --with-dir-user=USER           specify user for Director daemon
916   --with-dir-group=GROUP                 specify group for Director daemon
917   --with-sd-user=USER            specify user for Storage daemon
918   --with-sd-group=GROUP          specify group for Storage daemon
919   --with-fd-user=USER            specify user for File daemon
920   --with-fd-group=GROUP          specify group for File daemon
921   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
922   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
923                           base install directory, defaults to /usr/local/pgsql
924
925   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
926                           install directory, default is to search through
927                           a number of common places for the MySQL files.
928
929   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
930                           install directory, default is to search through
931                           a number of common places for the MySQL files.
932
933   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
934                           install directory, default is to search through
935                           a number of common places for the SQLite3 files.
936
937   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
938                           install directory, default is to search through
939                           a number of common places for the SQLite files.
940   --with-x                use the X Window System
941
942 Some influential environment variables:
943   CC          C compiler command
944   CFLAGS      C compiler flags
945   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
946               nonstandard directory <lib dir>
947   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
948               headers in a nonstandard directory <include dir>
949   CXX         C++ compiler command
950   CXXFLAGS    C++ compiler flags
951   CPP         C preprocessor
952   WXCONFIG    wx-config command. On some systems, you must set it to
953               wx-config-2.6 to use wxWidgets 2.6.
954   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
955
956 Use these variables to override the choices made by `configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
958
959 _ACEOF
960 fi
961
962 if test "$ac_init_help" = "recursive"; then
963   # If there are subdirs, report their specific --help.
964   ac_popdir=`pwd`
965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966     test -d $ac_dir || continue
967     ac_builddir=.
968
969 if test "$ac_dir" != .; then
970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
971   # A "../" for each directory in $ac_dir_suffix.
972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
973 else
974   ac_dir_suffix= ac_top_builddir=
975 fi
976
977 case $srcdir in
978   .)  # No --srcdir option.  We are building in place.
979     ac_srcdir=.
980     if test -z "$ac_top_builddir"; then
981        ac_top_srcdir=.
982     else
983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
984     fi ;;
985   [\\/]* | ?:[\\/]* )  # Absolute path.
986     ac_srcdir=$srcdir$ac_dir_suffix;
987     ac_top_srcdir=$srcdir ;;
988   *) # Relative path.
989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
991 esac
992
993 # Do not use `cd foo && pwd` to compute absolute paths, because
994 # the directories may not exist.
995 case `pwd` in
996 .) ac_abs_builddir="$ac_dir";;
997 *)
998   case "$ac_dir" in
999   .) ac_abs_builddir=`pwd`;;
1000   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1002   esac;;
1003 esac
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 *)
1007   case ${ac_top_builddir}. in
1008   .) ac_abs_top_builddir=$ac_abs_builddir;;
1009   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1011   esac;;
1012 esac
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1015 *)
1016   case $ac_srcdir in
1017   .) ac_abs_srcdir=$ac_abs_builddir;;
1018   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1020   esac;;
1021 esac
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 *)
1025   case $ac_top_srcdir in
1026   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1029   esac;;
1030 esac
1031
1032     cd $ac_dir
1033     # Check for guested configure; otherwise get Cygnus style configure.
1034     if test -f $ac_srcdir/configure.gnu; then
1035       echo
1036       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1037     elif test -f $ac_srcdir/configure; then
1038       echo
1039       $SHELL $ac_srcdir/configure  --help=recursive
1040     elif test -f $ac_srcdir/configure.ac ||
1041            test -f $ac_srcdir/configure.in; then
1042       echo
1043       $ac_configure --help
1044     else
1045       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046     fi
1047     cd $ac_popdir
1048   done
1049 fi
1050
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1053   cat <<\_ACEOF
1054
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1058 _ACEOF
1059   exit 0
1060 fi
1061 exec 5>config.log
1062 cat >&5 <<_ACEOF
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1065
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59.  Invocation command line was
1068
1069   $ $0 $@
1070
1071 _ACEOF
1072 {
1073 cat <<_ASUNAME
1074 ## --------- ##
1075 ## Platform. ##
1076 ## --------- ##
1077
1078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083
1084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1085 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1086
1087 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1088 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1090 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1091 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1092 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1093 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1094
1095 _ASUNAME
1096
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1098 for as_dir in $PATH
1099 do
1100   IFS=$as_save_IFS
1101   test -z "$as_dir" && as_dir=.
1102   echo "PATH: $as_dir"
1103 done
1104
1105 } >&5
1106
1107 cat >&5 <<_ACEOF
1108
1109
1110 ## ----------- ##
1111 ## Core tests. ##
1112 ## ----------- ##
1113
1114 _ACEOF
1115
1116
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1122 ac_configure_args=
1123 ac_configure_args0=
1124 ac_configure_args1=
1125 ac_sep=
1126 ac_must_keep_next=false
1127 for ac_pass in 1 2
1128 do
1129   for ac_arg
1130   do
1131     case $ac_arg in
1132     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134     | -silent | --silent | --silen | --sile | --sil)
1135       continue ;;
1136     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1138     esac
1139     case $ac_pass in
1140     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141     2)
1142       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143       if test $ac_must_keep_next = true; then
1144         ac_must_keep_next=false # Got value, back to normal.
1145       else
1146         case $ac_arg in
1147           *=* | --config-cache | -C | -disable-* | --disable-* \
1148           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150           | -with-* | --with-* | -without-* | --without-* | --x)
1151             case "$ac_configure_args0 " in
1152               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1153             esac
1154             ;;
1155           -* ) ac_must_keep_next=true ;;
1156         esac
1157       fi
1158       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159       # Get rid of the leading space.
1160       ac_sep=" "
1161       ;;
1162     esac
1163   done
1164 done
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log.  We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close' the trap.
1173 trap 'exit_status=$?
1174   # Save into config.log some information that might help in debugging.
1175   {
1176     echo
1177
1178     cat <<\_ASBOX
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1182 _ASBOX
1183     echo
1184     # The following way of writing the cache mishandles newlines in values,
1185 {
1186   (set) 2>&1 |
1187     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1188     *ac_space=\ *)
1189       sed -n \
1190         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1192       ;;
1193     *)
1194       sed -n \
1195         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196       ;;
1197     esac;
1198 }
1199     echo
1200
1201     cat <<\_ASBOX
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1205 _ASBOX
1206     echo
1207     for ac_var in $ac_subst_vars
1208     do
1209       eval ac_val=$`echo $ac_var`
1210       echo "$ac_var='"'"'$ac_val'"'"'"
1211     done | sort
1212     echo
1213
1214     if test -n "$ac_subst_files"; then
1215       cat <<\_ASBOX
1216 ## ------------- ##
1217 ## Output files. ##
1218 ## ------------- ##
1219 _ASBOX
1220       echo
1221       for ac_var in $ac_subst_files
1222       do
1223         eval ac_val=$`echo $ac_var`
1224         echo "$ac_var='"'"'$ac_val'"'"'"
1225       done | sort
1226       echo
1227     fi
1228
1229     if test -s confdefs.h; then
1230       cat <<\_ASBOX
1231 ## ----------- ##
1232 ## confdefs.h. ##
1233 ## ----------- ##
1234 _ASBOX
1235       echo
1236       sed "/^$/d" confdefs.h | sort
1237       echo
1238     fi
1239     test "$ac_signal" != 0 &&
1240       echo "$as_me: caught signal $ac_signal"
1241     echo "$as_me: exit $exit_status"
1242   } >&5
1243   rm -f core *.core &&
1244   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1245     exit $exit_status
1246      ' 0
1247 for ac_signal in 1 2 13 15; do
1248   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1249 done
1250 ac_signal=0
1251
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1255 echo >confdefs.h
1256
1257 # Predefined preprocessor variables.
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1281 _ACEOF
1282
1283
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287   if test "x$prefix" != xNONE; then
1288     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289   else
1290     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1291   fi
1292 fi
1293 for ac_site_file in $CONFIG_SITE; do
1294   if test -r "$ac_site_file"; then
1295     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297     sed 's/^/| /' "$ac_site_file" >&5
1298     . "$ac_site_file"
1299   fi
1300 done
1301
1302 if test -r "$cache_file"; then
1303   # Some versions of bash will fail to source /dev/null (special
1304   # files actually), so we avoid doing that.
1305   if test -f "$cache_file"; then
1306     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1308     case $cache_file in
1309       [\\/]* | ?:[\\/]* ) . $cache_file;;
1310       *)                      . ./$cache_file;;
1311     esac
1312   fi
1313 else
1314   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1316   >$cache_file
1317 fi
1318
1319 # Check that the precious variables saved in the cache have kept the same
1320 # value.
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325   eval ac_new_set=\$ac_env_${ac_var}_set
1326   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327   eval ac_new_val="\$ac_env_${ac_var}_value"
1328   case $ac_old_set,$ac_new_set in
1329     set,)
1330       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332       ac_cache_corrupted=: ;;
1333     ,set)
1334       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336       ac_cache_corrupted=: ;;
1337     ,);;
1338     *)
1339       if test "x$ac_old_val" != "x$ac_new_val"; then
1340         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1343 echo "$as_me:   former value:  $ac_old_val" >&2;}
1344         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1345 echo "$as_me:   current value: $ac_new_val" >&2;}
1346         ac_cache_corrupted=:
1347       fi;;
1348   esac
1349   # Pass precious variables to config.status.
1350   if test "$ac_new_set" = set; then
1351     case $ac_new_val in
1352     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354     *) ac_arg=$ac_var=$ac_new_val ;;
1355     esac
1356     case " $ac_configure_args " in
1357       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1358       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1359     esac
1360   fi
1361 done
1362 if $ac_cache_corrupted; then
1363   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367    { (exit 1); exit 1; }; }
1368 fi
1369
1370 ac_ext=c
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394 BUILD_DIR=`pwd`
1395 cd ..
1396 TOP_DIR=`pwd`
1397 cd ${BUILD_DIR}
1398
1399 ac_aux_dir=
1400 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1401   if test -f $ac_dir/install-sh; then
1402     ac_aux_dir=$ac_dir
1403     ac_install_sh="$ac_aux_dir/install-sh -c"
1404     break
1405   elif 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/shtool; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/shtool install -c"
1412     break
1413   fi
1414 done
1415 if test -z "$ac_aux_dir"; then
1416   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1417 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1418    { (exit 1); exit 1; }; }
1419 fi
1420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1422 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1423
1424           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1425
1426
1427
1428
1429
1430 for ac_prog in true
1431 do
1432   # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   case $TRUEPRG in
1440   [\\/]* | ?:[\\/]*)
1441   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1442   ;;
1443   *)
1444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   for ac_exec_ext in '' $ac_executable_extensions; do
1450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453     break 2
1454   fi
1455 done
1456 done
1457
1458   ;;
1459 esac
1460 fi
1461 TRUEPRG=$ac_cv_path_TRUEPRG
1462
1463 if test -n "$TRUEPRG"; then
1464   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1465 echo "${ECHO_T}$TRUEPRG" >&6
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471   test -n "$TRUEPRG" && break
1472 done
1473 test -n "$TRUEPRG" || TRUEPRG=":"
1474
1475 for ac_prog in false
1476 do
1477   # Extract the first word of "$ac_prog", so it can be a program name with args.
1478 set dummy $ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   case $FALSEPRG in
1485   [\\/]* | ?:[\\/]*)
1486   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1487   ;;
1488   *)
1489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503   ;;
1504 esac
1505 fi
1506 FALSEPRG=$ac_cv_path_FALSEPRG
1507
1508 if test -n "$FALSEPRG"; then
1509   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1510 echo "${ECHO_T}$FALSEPRG" >&6
1511 else
1512   echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516   test -n "$FALSEPRG" && break
1517 done
1518 test -n "$FALSEPRG" || FALSEPRG=":"
1519
1520
1521 #AC_CANONICAL_HOST
1522
1523 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1524 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1525 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 echo "configuring for bacula $VERSION ($DATE)"
1527
1528
1529
1530 ac_ext=c
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 if test -n "$ac_tool_prefix"; then
1536   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   if test -n "$CC"; then
1544   ac_cv_prog_CC="$CC" # Let the user override the test.
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549   IFS=$as_save_IFS
1550   test -z "$as_dir" && as_dir=.
1551   for ac_exec_ext in '' $ac_executable_extensions; do
1552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555     break 2
1556   fi
1557 done
1558 done
1559
1560 fi
1561 fi
1562 CC=$ac_cv_prog_CC
1563 if test -n "$CC"; then
1564   echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1566 else
1567   echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571 fi
1572 if test -z "$ac_cv_prog_CC"; then
1573   ac_ct_CC=$CC
1574   # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   if test -n "$ac_ct_CC"; then
1582   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   for ac_exec_ext in '' $ac_executable_extensions; do
1590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591     ac_cv_prog_ac_ct_CC="gcc"
1592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593     break 2
1594   fi
1595 done
1596 done
1597
1598 fi
1599 fi
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1604 else
1605   echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609   CC=$ac_ct_CC
1610 else
1611   CC="$ac_cv_prog_CC"
1612 fi
1613
1614 if test -z "$CC"; then
1615   if test -n "$ac_tool_prefix"; then
1616   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   if test -n "$CC"; then
1624   ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   for ac_exec_ext in '' $ac_executable_extensions; do
1632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633     ac_cv_prog_CC="${ac_tool_prefix}cc"
1634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635     break 2
1636   fi
1637 done
1638 done
1639
1640 fi
1641 fi
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644   echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647   echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$ac_cv_prog_CC"; then
1653   ac_ct_CC=$CC
1654   # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$ac_ct_CC"; then
1662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_ac_ct_CC="cc"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1684 else
1685   echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689   CC=$ac_ct_CC
1690 else
1691   CC="$ac_cv_prog_CC"
1692 fi
1693
1694 fi
1695 if test -z "$CC"; then
1696   # Extract the first word of "cc", so it can be a program name with args.
1697 set dummy cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$CC"; then
1704   ac_cv_prog_CC="$CC" # Let the user override the test.
1705 else
1706   ac_prog_rejected=no
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710   IFS=$as_save_IFS
1711   test -z "$as_dir" && as_dir=.
1712   for ac_exec_ext in '' $ac_executable_extensions; do
1713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1715        ac_prog_rejected=yes
1716        continue
1717      fi
1718     ac_cv_prog_CC="cc"
1719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720     break 2
1721   fi
1722 done
1723 done
1724
1725 if test $ac_prog_rejected = yes; then
1726   # We found a bogon in the path, so make sure we never use it.
1727   set dummy $ac_cv_prog_CC
1728   shift
1729   if test $# != 0; then
1730     # We chose a different compiler from the bogus one.
1731     # However, it has the same basename, so the bogon will be chosen
1732     # first if we set CC to just the basename; use the full file name.
1733     shift
1734     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1735   fi
1736 fi
1737 fi
1738 fi
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741   echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748 fi
1749 if test -z "$CC"; then
1750   if test -n "$ac_tool_prefix"; then
1751   for ac_prog in cl
1752   do
1753     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$CC"; then
1761   ac_cv_prog_CC="$CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 CC=$ac_cv_prog_CC
1780 if test -n "$CC"; then
1781   echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788     test -n "$CC" && break
1789   done
1790 fi
1791 if test -z "$CC"; then
1792   ac_ct_CC=$CC
1793   for ac_prog in cl
1794 do
1795   # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$ac_ct_CC"; then
1803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_ac_ct_CC="$ac_prog"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830   test -n "$ac_ct_CC" && break
1831 done
1832
1833   CC=$ac_ct_CC
1834 fi
1835
1836 fi
1837
1838
1839 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1840 See \`config.log' for more details." >&5
1841 echo "$as_me: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&2;}
1843    { (exit 1); exit 1; }; }
1844
1845 # Provide some information about the compiler.
1846 echo "$as_me:$LINENO:" \
1847      "checking for C compiler version" >&5
1848 ac_compiler=`set X $ac_compile; echo $2`
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1850   (eval $ac_compiler --version </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1855   (eval $ac_compiler -v </dev/null >&5) 2>&5
1856   ac_status=$?
1857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858   (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1860   (eval $ac_compiler -V </dev/null >&5) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }
1864
1865 cat >conftest.$ac_ext <<_ACEOF
1866 /* confdefs.h.  */
1867 _ACEOF
1868 cat confdefs.h >>conftest.$ac_ext
1869 cat >>conftest.$ac_ext <<_ACEOF
1870 /* end confdefs.h.  */
1871
1872 int
1873 main ()
1874 {
1875
1876   ;
1877   return 0;
1878 }
1879 _ACEOF
1880 ac_clean_files_save=$ac_clean_files
1881 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1882 # Try to create an executable without -o first, disregard a.out.
1883 # It will help us diagnose broken compilers, and finding out an intuition
1884 # of exeext.
1885 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1886 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1887 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1889   (eval $ac_link_default) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); }; then
1893   # Find the output, starting from the most likely.  This scheme is
1894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1895 # resort.
1896
1897 # Be careful to initialize this variable, since it used to be cached.
1898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1899 ac_cv_exeext=
1900 # b.out is created by i960 compilers.
1901 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1902 do
1903   test -f "$ac_file" || continue
1904   case $ac_file in
1905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1906         ;;
1907     conftest.$ac_ext )
1908         # This is the source file.
1909         ;;
1910     [ab].out )
1911         # We found the default executable, but exeext='' is most
1912         # certainly right.
1913         break;;
1914     *.* )
1915         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916         # FIXME: I believe we export ac_cv_exeext for Libtool,
1917         # but it would be cool to find out if it's true.  Does anybody
1918         # maintain Libtool? --akim.
1919         export ac_cv_exeext
1920         break;;
1921     * )
1922         break;;
1923   esac
1924 done
1925 else
1926   echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&2;}
1933    { (exit 77); exit 77; }; }
1934 fi
1935
1936 ac_exeext=$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_file" >&5
1938 echo "${ECHO_T}$ac_file" >&6
1939
1940 # Check the compiler produces executables we can run.  If not, either
1941 # the compiler is broken, or we cross compile.
1942 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1943 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1944 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1945 # If not cross compiling, check that we can run a simple program.
1946 if test "$cross_compiling" != yes; then
1947   if { ac_try='./$ac_file'
1948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949   (eval $ac_try) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }; }; then
1953     cross_compiling=no
1954   else
1955     if test "$cross_compiling" = maybe; then
1956         cross_compiling=yes
1957     else
1958         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1959 If you meant to cross compile, use \`--host'.
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&2;}
1964    { (exit 1); exit 1; }; }
1965     fi
1966   fi
1967 fi
1968 echo "$as_me:$LINENO: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6
1970
1971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1972 ac_clean_files=$ac_clean_files_save
1973 # Check the compiler produces executables we can run.  If not, either
1974 # the compiler is broken, or we cross compile.
1975 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1976 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1977 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1978 echo "${ECHO_T}$cross_compiling" >&6
1979
1980 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1981 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1983   (eval $ac_link) 2>&5
1984   ac_status=$?
1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986   (exit $ac_status); }; then
1987   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1988 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1989 # work properly (i.e., refer to `conftest.exe'), while it won't with
1990 # `rm'.
1991 for ac_file in conftest.exe conftest conftest.*; do
1992   test -f "$ac_file" || continue
1993   case $ac_file in
1994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1995     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996           export ac_cv_exeext
1997           break;;
1998     * ) break;;
1999   esac
2000 done
2001 else
2002   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&2;}
2006    { (exit 1); exit 1; }; }
2007 fi
2008
2009 rm -f conftest$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2011 echo "${ECHO_T}$ac_cv_exeext" >&6
2012
2013 rm -f conftest.$ac_ext
2014 EXEEXT=$ac_cv_exeext
2015 ac_exeext=$EXEEXT
2016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2018 if test "${ac_cv_objext+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 /* confdefs.h.  */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h.  */
2027
2028 int
2029 main ()
2030 {
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.o conftest.obj
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038   (eval $ac_compile) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; then
2042   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2043   case $ac_file in
2044     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2045     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2046        break;;
2047   esac
2048 done
2049 else
2050   echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&2;}
2057    { (exit 1); exit 1; }; }
2058 fi
2059
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2061 fi
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2065 ac_objext=$OBJEXT
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   cat >conftest.$ac_ext <<_ACEOF
2072 /* confdefs.h.  */
2073 _ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h.  */
2077
2078 int
2079 main ()
2080 {
2081 #ifndef __GNUC__
2082        choke me
2083 #endif
2084
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091   (eval $ac_compile) 2>conftest.er1
2092   ac_status=$?
2093   grep -v '^ *+' conftest.er1 >conftest.err
2094   rm -f conftest.er1
2095   cat conftest.err >&5
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); } &&
2098          { ac_try='test -z "$ac_c_werror_flag"
2099                          || test ! -s conftest.err'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; } &&
2105          { ac_try='test -s conftest.$ac_objext'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; }; then
2111   ac_compiler_gnu=yes
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 ac_compiler_gnu=no
2117 fi
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2120
2121 fi
2122 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2123 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2124 GCC=`test $ac_compiler_gnu = yes && echo yes`
2125 ac_test_CFLAGS=${CFLAGS+set}
2126 ac_save_CFLAGS=$CFLAGS
2127 CFLAGS="-g"
2128 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2129 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cc_g+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>conftest.er1
2151   ac_status=$?
2152   grep -v '^ *+' conftest.er1 >conftest.err
2153   rm -f conftest.er1
2154   cat conftest.err >&5
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); } &&
2157          { ac_try='test -z "$ac_c_werror_flag"
2158                          || test ! -s conftest.err'
2159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160   (eval $ac_try) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; } &&
2164          { ac_try='test -s conftest.$ac_objext'
2165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166   (eval $ac_try) 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }; }; then
2170   ac_cv_prog_cc_g=yes
2171 else
2172   echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_cv_prog_cc_g=no
2176 fi
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2181 if test "$ac_test_CFLAGS" = set; then
2182   CFLAGS=$ac_save_CFLAGS
2183 elif test $ac_cv_prog_cc_g = yes; then
2184   if test "$GCC" = yes; then
2185     CFLAGS="-g -O2"
2186   else
2187     CFLAGS="-g"
2188   fi
2189 else
2190   if test "$GCC" = yes; then
2191     CFLAGS="-O2"
2192   else
2193     CFLAGS=
2194   fi
2195 fi
2196 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2197 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2198 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   ac_cv_prog_cc_stdc=no
2202 ac_save_CC=$CC
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h.  */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h.  */
2209 #include <stdarg.h>
2210 #include <stdio.h>
2211 #include <sys/types.h>
2212 #include <sys/stat.h>
2213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2214 struct buf { int x; };
2215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2216 static char *e (p, i)
2217      char **p;
2218      int i;
2219 {
2220   return p[i];
2221 }
2222 static char *f (char * (*g) (char **, int), char **p, ...)
2223 {
2224   char *s;
2225   va_list v;
2226   va_start (v,p);
2227   s = g (p, va_arg (v,int));
2228   va_end (v);
2229   return s;
2230 }
2231
2232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2233    function prototypes and stuff, but not '\xHH' hex character constants.
2234    These don't provoke an error unfortunately, instead are silently treated
2235    as 'x'.  The following induces an error, until -std1 is added to get
2236    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2237    array size at least.  It's necessary to write '\x00'==0 to get something
2238    that's true only with -std1.  */
2239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2240
2241 int test (int i, double x);
2242 struct s1 {int (*f) (int a);};
2243 struct s2 {int (*f) (double a);};
2244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2245 int argc;
2246 char **argv;
2247 int
2248 main ()
2249 {
2250 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 # Don't try gcc -ansi; that turns off useful extensions and
2256 # breaks some systems' header files.
2257 # AIX                   -qlanglvl=ansi
2258 # Ultrix and OSF/1      -std1
2259 # HP-UX 10.20 and later -Ae
2260 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2261 # SVR4                  -Xc -D__EXTENSIONS__
2262 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2263 do
2264   CC="$ac_save_CC $ac_arg"
2265   rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>conftest.er1
2268   ac_status=$?
2269   grep -v '^ *+' conftest.er1 >conftest.err
2270   rm -f conftest.er1
2271   cat conftest.err >&5
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); } &&
2274          { ac_try='test -z "$ac_c_werror_flag"
2275                          || test ! -s conftest.err'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   ac_cv_prog_cc_stdc=$ac_arg
2288 break
2289 else
2290   echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 fi
2294 rm -f conftest.err conftest.$ac_objext
2295 done
2296 rm -f conftest.$ac_ext conftest.$ac_objext
2297 CC=$ac_save_CC
2298
2299 fi
2300
2301 case "x$ac_cv_prog_cc_stdc" in
2302   x|xno)
2303     echo "$as_me:$LINENO: result: none needed" >&5
2304 echo "${ECHO_T}none needed" >&6 ;;
2305   *)
2306     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308     CC="$CC $ac_cv_prog_cc_stdc" ;;
2309 esac
2310
2311 # Some people use a C++ compiler to compile C.  Since we use `exit',
2312 # in C++ we need to declare it.  In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #ifndef __cplusplus
2317   choke me
2318 #endif
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>conftest.er1
2323   ac_status=$?
2324   grep -v '^ *+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -z "$ac_c_werror_flag"
2330                          || test ! -s conftest.err'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   for ac_declaration in \
2343    '' \
2344    'extern "C" void std::exit (int) throw (); using std::exit;' \
2345    'extern "C" void std::exit (int); using std::exit;' \
2346    'extern "C" void exit (int) throw ();' \
2347    'extern "C" void exit (int);' \
2348    'void exit (int);'
2349 do
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356 $ac_declaration
2357 #include <stdlib.h>
2358 int
2359 main ()
2360 {
2361 exit (42);
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368   (eval $ac_compile) 2>conftest.er1
2369   ac_status=$?
2370   grep -v '^ *+' conftest.er1 >conftest.err
2371   rm -f conftest.er1
2372   cat conftest.err >&5
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); } &&
2375          { ac_try='test -z "$ac_c_werror_flag"
2376                          || test ! -s conftest.err'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; } &&
2382          { ac_try='test -s conftest.$ac_objext'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; }; then
2388   :
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 continue
2394 fi
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396   cat >conftest.$ac_ext <<_ACEOF
2397 /* confdefs.h.  */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h.  */
2402 $ac_declaration
2403 int
2404 main ()
2405 {
2406 exit (42);
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413   (eval $ac_compile) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_c_werror_flag"
2421                          || test ! -s conftest.err'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; } &&
2427          { ac_try='test -s conftest.$ac_objext'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; }; then
2433   break
2434 else
2435   echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 fi
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 done
2441 rm -f conftest*
2442 if test -n "$ac_declaration"; then
2443   echo '#ifdef __cplusplus' >>confdefs.h
2444   echo $ac_declaration      >>confdefs.h
2445   echo '#endif'             >>confdefs.h
2446 fi
2447
2448 else
2449   echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 fi
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459
2460 ac_ext=cc
2461 ac_cpp='$CXXCPP $CPPFLAGS'
2462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2465 if test -n "$ac_tool_prefix"; then
2466   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2467   do
2468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_CXX+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$CXX"; then
2476   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491
2492 fi
2493 fi
2494 CXX=$ac_cv_prog_CXX
2495 if test -n "$CXX"; then
2496   echo "$as_me:$LINENO: result: $CXX" >&5
2497 echo "${ECHO_T}$CXX" >&6
2498 else
2499   echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503     test -n "$CXX" && break
2504   done
2505 fi
2506 if test -z "$CXX"; then
2507   ac_ct_CXX=$CXX
2508   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2509 do
2510   # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   if test -n "$ac_ct_CXX"; then
2518   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527     ac_cv_prog_ac_ct_CXX="$ac_prog"
2528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533
2534 fi
2535 fi
2536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2537 if test -n "$ac_ct_CXX"; then
2538   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2539 echo "${ECHO_T}$ac_ct_CXX" >&6
2540 else
2541   echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2543 fi
2544
2545   test -n "$ac_ct_CXX" && break
2546 done
2547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2548
2549   CXX=$ac_ct_CXX
2550 fi
2551
2552
2553 # Provide some information about the compiler.
2554 echo "$as_me:$LINENO:" \
2555      "checking for C++ compiler version" >&5
2556 ac_compiler=`set X $ac_compile; echo $2`
2557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2558   (eval $ac_compiler --version </dev/null >&5) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }
2562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2563   (eval $ac_compiler -v </dev/null >&5) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2568   (eval $ac_compiler -V </dev/null >&5) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }
2572
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_cxx_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2631 GXX=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CXXFLAGS=${CXXFLAGS+set}
2633 ac_save_CXXFLAGS=$CXXFLAGS
2634 CXXFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2636 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cxx_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_cxx_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cxx_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cxx_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2688 if test "$ac_test_CXXFLAGS" = set; then
2689   CXXFLAGS=$ac_save_CXXFLAGS
2690 elif test $ac_cv_prog_cxx_g = yes; then
2691   if test "$GXX" = yes; then
2692     CXXFLAGS="-g -O2"
2693   else
2694     CXXFLAGS="-g"
2695   fi
2696 else
2697   if test "$GXX" = yes; then
2698     CXXFLAGS="-O2"
2699   else
2700     CXXFLAGS=
2701   fi
2702 fi
2703 for ac_declaration in \
2704    '' \
2705    'extern "C" void std::exit (int) throw (); using std::exit;' \
2706    'extern "C" void std::exit (int); using std::exit;' \
2707    'extern "C" void exit (int) throw ();' \
2708    'extern "C" void exit (int);' \
2709    'void exit (int);'
2710 do
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717 $ac_declaration
2718 #include <stdlib.h>
2719 int
2720 main ()
2721 {
2722 exit (42);
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_cxx_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   :
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 continue
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757   cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 $ac_declaration
2764 int
2765 main ()
2766 {
2767 exit (42);
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_cxx_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   break
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 done
2802 rm -f conftest*
2803 if test -n "$ac_declaration"; then
2804   echo '#ifdef __cplusplus' >>confdefs.h
2805   echo $ac_declaration      >>confdefs.h
2806   echo '#endif'             >>confdefs.h
2807 fi
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
2815 if test "x$CC" != xcc; then
2816   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2817 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2818 else
2819   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2820 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2821 fi
2822 set dummy $CC; ac_cc=`echo $2 |
2823                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2824 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833
2834 int
2835 main ()
2836 {
2837
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 # Make sure it works both with $CC and with simple cc.
2843 # We do the test twice because some compilers refuse to overwrite an
2844 # existing .o file with -o, though they will create one.
2845 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2846 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); };
2856 then
2857   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2858   if test "x$CC" != xcc; then
2859     # Test first that cc exists at all.
2860     if { ac_try='cc -c conftest.$ac_ext >&5'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; }; then
2866       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2867       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } &&
2872          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); };
2877       then
2878         # cc works too.
2879         :
2880       else
2881         # cc exists but doesn't like -o.
2882         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2883       fi
2884     fi
2885   fi
2886 else
2887   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2888 fi
2889 rm -f conftest*
2890
2891 fi
2892 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2893   echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6
2895 else
2896   echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898
2899 cat >>confdefs.h <<\_ACEOF
2900 #define NO_MINUS_C_MINUS_O 1
2901 _ACEOF
2902
2903 fi
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2912 # On Suns, sometimes $CPP names a directory.
2913 if test -n "$CPP" && test -d "$CPP"; then
2914   CPP=
2915 fi
2916 if test -z "$CPP"; then
2917   if test "${ac_cv_prog_CPP+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920       # Double quotes because CPP needs to be expanded
2921     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2922     do
2923       ac_preproc_ok=false
2924 for ac_c_preproc_warn_flag in '' yes
2925 do
2926   # Use a header file that comes with gcc, so configuring glibc
2927   # with a fresh cross-compiler works.
2928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929   # <limits.h> exists even on freestanding compilers.
2930   # On the NeXT, cc -E runs the code through the compiler's parser,
2931   # not just through cpp. "Syntax error" is here to catch this case.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938 #ifdef __STDC__
2939 # include <limits.h>
2940 #else
2941 # include <assert.h>
2942 #endif
2943                      Syntax error
2944 _ACEOF
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } >/dev/null; then
2953   if test -s conftest.err; then
2954     ac_cpp_err=$ac_c_preproc_warn_flag
2955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2956   else
2957     ac_cpp_err=
2958   fi
2959 else
2960   ac_cpp_err=yes
2961 fi
2962 if test -z "$ac_cpp_err"; then
2963   :
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Broken: fails on valid input.
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_ext
2972
2973   # OK, works on sane cases.  Now check whether non-existent headers
2974   # can be detected and how.
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #include <ac_nonexistent.h>
2982 _ACEOF
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } >/dev/null; then
2991   if test -s conftest.err; then
2992     ac_cpp_err=$ac_c_preproc_warn_flag
2993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   # Broken: success on invalid input.
3002 continue
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Passes both tests.
3008 ac_preproc_ok=:
3009 break
3010 fi
3011 rm -f conftest.err conftest.$ac_ext
3012
3013 done
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3017   break
3018 fi
3019
3020     done
3021     ac_cv_prog_CPP=$CPP
3022
3023 fi
3024   CPP=$ac_cv_prog_CPP
3025 else
3026   ac_cv_prog_CPP=$CPP
3027 fi
3028 echo "$as_me:$LINENO: result: $CPP" >&5
3029 echo "${ECHO_T}$CPP" >&6
3030 ac_preproc_ok=false
3031 for ac_c_preproc_warn_flag in '' yes
3032 do
3033   # Use a header file that comes with gcc, so configuring glibc
3034   # with a fresh cross-compiler works.
3035   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3036   # <limits.h> exists even on freestanding compilers.
3037   # On the NeXT, cc -E runs the code through the compiler's parser,
3038   # not just through cpp. "Syntax error" is here to catch this case.
3039   cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045 #ifdef __STDC__
3046 # include <limits.h>
3047 #else
3048 # include <assert.h>
3049 #endif
3050                      Syntax error
3051 _ACEOF
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } >/dev/null; then
3060   if test -s conftest.err; then
3061     ac_cpp_err=$ac_c_preproc_warn_flag
3062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063   else
3064     ac_cpp_err=
3065   fi
3066 else
3067   ac_cpp_err=yes
3068 fi
3069 if test -z "$ac_cpp_err"; then
3070   :
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075   # Broken: fails on valid input.
3076 continue
3077 fi
3078 rm -f conftest.err conftest.$ac_ext
3079
3080   # OK, works on sane cases.  Now check whether non-existent headers
3081   # can be detected and how.
3082   cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 #include <ac_nonexistent.h>
3089 _ACEOF
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } >/dev/null; then
3098   if test -s conftest.err; then
3099     ac_cpp_err=$ac_c_preproc_warn_flag
3100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101   else
3102     ac_cpp_err=
3103   fi
3104 else
3105   ac_cpp_err=yes
3106 fi
3107 if test -z "$ac_cpp_err"; then
3108   # Broken: success on invalid input.
3109 continue
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114   # Passes both tests.
3115 ac_preproc_ok=:
3116 break
3117 fi
3118 rm -f conftest.err conftest.$ac_ext
3119
3120 done
3121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3122 rm -f conftest.err conftest.$ac_ext
3123 if $ac_preproc_ok; then
3124   :
3125 else
3126   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&2;}
3130    { (exit 1); exit 1; }; }
3131 fi
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
3139
3140 echo "$as_me:$LINENO: checking for egrep" >&5
3141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3142 if test "${ac_cv_prog_egrep+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3146     then ac_cv_prog_egrep='grep -E'
3147     else ac_cv_prog_egrep='egrep'
3148     fi
3149 fi
3150 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3151 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3152  EGREP=$ac_cv_prog_egrep
3153
3154
3155 if test $ac_cv_c_compiler_gnu = yes; then
3156     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3157 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3158 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161     ac_pattern="Autoconf.*'x'"
3162   cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <sgtty.h>
3169 Autoconf TIOCGETP
3170 _ACEOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3173   ac_cv_prog_gcc_traditional=yes
3174 else
3175   ac_cv_prog_gcc_traditional=no
3176 fi
3177 rm -f conftest*
3178
3179
3180   if test $ac_cv_prog_gcc_traditional = no; then
3181     cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 #include <termio.h>
3188 Autoconf TCGETA
3189 _ACEOF
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3192   ac_cv_prog_gcc_traditional=yes
3193 fi
3194 rm -f conftest*
3195
3196   fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3199 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3200   if test $ac_cv_prog_gcc_traditional = yes; then
3201     CC="$CC -traditional"
3202   fi
3203 fi
3204
3205 if test "x$CC" = xgcc; then
3206    cat >>confdefs.h <<\_ACEOF
3207 #define HAVE_GCC 1
3208 _ACEOF
3209
3210 fi
3211 # Extract the first word of "$CXX", so it can be a program name with args.
3212 set dummy $CXX; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_path_CXX+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   case $CXX in
3219   [\\/]* | ?:[\\/]*)
3220   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3221   ;;
3222   *)
3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236
3237   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3238   ;;
3239 esac
3240 fi
3241 CXX=$ac_cv_path_CXX
3242
3243 if test -n "$CXX"; then
3244   echo "$as_me:$LINENO: result: $CXX" >&5
3245 echo "${ECHO_T}$CXX" >&6
3246 else
3247   echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3249 fi
3250
3251 if test ! -e $CXX; then
3252    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3253 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3254    { (exit 1); exit 1; }; }
3255 fi
3256
3257 # Find a good install program.  We prefer a C program (faster),
3258 # so one script is as good as another.  But avoid the broken or
3259 # incompatible versions:
3260 # SysV /etc/install, /usr/sbin/install
3261 # SunOS /usr/etc/install
3262 # IRIX /sbin/install
3263 # AIX /bin/install
3264 # AmigaOS /C/install, which installs bootblocks on floppy discs
3265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3268 # OS/2's system install, which has a completely different semantic
3269 # ./install, which can be erroneously created by make from ./install.sh.
3270 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3272 if test -z "$INSTALL"; then
3273 if test "${ac_cv_path_install+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   # Account for people who put trailing slashes in PATH elements.
3282 case $as_dir/ in
3283   ./ | .// | /cC/* | \
3284   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3285   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3286   /usr/ucb/* ) ;;
3287   *)
3288     # OSF1 and SCO ODT 3.0 have their own names for install.
3289     # Don't use installbsd from OSF since it installs stuff as root
3290     # by default.
3291     for ac_prog in ginstall scoinst install; do
3292       for ac_exec_ext in '' $ac_executable_extensions; do
3293         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3294           if test $ac_prog = install &&
3295             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296             # AIX install.  It has an incompatible calling convention.
3297             :
3298           elif test $ac_prog = install &&
3299             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300             # program-specific install script used by HP pwplus--don't use.
3301             :
3302           else
3303             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3304             break 3
3305           fi
3306         fi
3307       done
3308     done
3309     ;;
3310 esac
3311 done
3312
3313
3314 fi
3315   if test "${ac_cv_path_install+set}" = set; then
3316     INSTALL=$ac_cv_path_install
3317   else
3318     # As a last resort, use the slow shell script.  We don't cache a
3319     # path for INSTALL within a source directory, because that will
3320     # break other packages using the cache if that directory is
3321     # removed, or if the path is relative.
3322     INSTALL=$ac_install_sh
3323   fi
3324 fi
3325 echo "$as_me:$LINENO: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3327
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3331
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3333
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3335
3336 if test -n "$ac_tool_prefix"; then
3337   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_RANLIB+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   if test -n "$RANLIB"; then
3345   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361 fi
3362 fi
3363 RANLIB=$ac_cv_prog_RANLIB
3364 if test -n "$RANLIB"; then
3365   echo "$as_me:$LINENO: result: $RANLIB" >&5
3366 echo "${ECHO_T}$RANLIB" >&6
3367 else
3368   echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372 fi
3373 if test -z "$ac_cv_prog_RANLIB"; then
3374   ac_ct_RANLIB=$RANLIB
3375   # Extract the first word of "ranlib", so it can be a program name with args.
3376 set dummy ranlib; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$ac_ct_RANLIB"; then
3383   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_ac_ct_RANLIB="ranlib"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3400 fi
3401 fi
3402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3403 if test -n "$ac_ct_RANLIB"; then
3404   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3405 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3406 else
3407   echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3409 fi
3410
3411   RANLIB=$ac_ct_RANLIB
3412 else
3413   RANLIB="$ac_cv_prog_RANLIB"
3414 fi
3415
3416 # Extract the first word of "mv", so it can be a program name with args.
3417 set dummy mv; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_path_MV+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   case $MV in
3424   [\\/]* | ?:[\\/]*)
3425   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3426   ;;
3427   *)
3428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433   for ac_exec_ext in '' $ac_executable_extensions; do
3434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440 done
3441
3442   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3443   ;;
3444 esac
3445 fi
3446 MV=$ac_cv_path_MV
3447
3448 if test -n "$MV"; then
3449   echo "$as_me:$LINENO: result: $MV" >&5
3450 echo "${ECHO_T}$MV" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456 # Extract the first word of "rm", so it can be a program name with args.
3457 set dummy rm; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_path_RM+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   case $RM in
3464   [\\/]* | ?:[\\/]*)
3465   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3466   ;;
3467   *)
3468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473   for ac_exec_ext in '' $ac_executable_extensions; do
3474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480 done
3481
3482   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3483   ;;
3484 esac
3485 fi
3486 RM=$ac_cv_path_RM
3487
3488 if test -n "$RM"; then
3489   echo "$as_me:$LINENO: result: $RM" >&5
3490 echo "${ECHO_T}$RM" >&6
3491 else
3492   echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3494 fi
3495
3496 # Extract the first word of "cp", so it can be a program name with args.
3497 set dummy cp; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_path_CP+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   case $CP in
3504   [\\/]* | ?:[\\/]*)
3505   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3506   ;;
3507   *)
3508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513   for ac_exec_ext in '' $ac_executable_extensions; do
3514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520 done
3521
3522   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3523   ;;
3524 esac
3525 fi
3526 CP=$ac_cv_path_CP
3527
3528 if test -n "$CP"; then
3529   echo "$as_me:$LINENO: result: $CP" >&5
3530 echo "${ECHO_T}$CP" >&6
3531 else
3532   echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534 fi
3535
3536 # Extract the first word of "sed", so it can be a program name with args.
3537 set dummy sed; ac_word=$2
3538 echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_path_SED+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   case $SED in
3544   [\\/]* | ?:[\\/]*)
3545   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3546   ;;
3547   *)
3548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for ac_exec_ext in '' $ac_executable_extensions; do
3554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560 done
3561
3562   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3563   ;;
3564 esac
3565 fi
3566 SED=$ac_cv_path_SED
3567
3568 if test -n "$SED"; then
3569   echo "$as_me:$LINENO: result: $SED" >&5
3570 echo "${ECHO_T}$SED" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575
3576 # Extract the first word of "echo", so it can be a program name with args.
3577 set dummy echo; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_path_ECHO+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   case $ECHO in
3584   [\\/]* | ?:[\\/]*)
3585   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3586   ;;
3587   *)
3588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591   IFS=$as_save_IFS
3592   test -z "$as_dir" && as_dir=.
3593   for ac_exec_ext in '' $ac_executable_extensions; do
3594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597     break 2
3598   fi
3599 done
3600 done
3601
3602   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3603   ;;
3604 esac
3605 fi
3606 ECHO=$ac_cv_path_ECHO
3607
3608 if test -n "$ECHO"; then
3609   echo "$as_me:$LINENO: result: $ECHO" >&5
3610 echo "${ECHO_T}$ECHO" >&6
3611 else
3612   echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3614 fi
3615
3616 # Extract the first word of "cmp", so it can be a program name with args.
3617 set dummy cmp; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_path_CMP+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   case $CMP in
3624   [\\/]* | ?:[\\/]*)
3625   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3626   ;;
3627   *)
3628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631   IFS=$as_save_IFS
3632   test -z "$as_dir" && as_dir=.
3633   for ac_exec_ext in '' $ac_executable_extensions; do
3634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637     break 2
3638   fi
3639 done
3640 done
3641
3642   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3643   ;;
3644 esac
3645 fi
3646 CMP=$ac_cv_path_CMP
3647
3648 if test -n "$CMP"; then
3649   echo "$as_me:$LINENO: result: $CMP" >&5
3650 echo "${ECHO_T}$CMP" >&6
3651 else
3652   echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3654 fi
3655
3656 # Extract the first word of "tbl", so it can be a program name with args.
3657 set dummy tbl; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_path_TBL+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   case $TBL in
3664   [\\/]* | ?:[\\/]*)
3665   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3666   ;;
3667   *)
3668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673   for ac_exec_ext in '' $ac_executable_extensions; do
3674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680 done
3681
3682   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3683   ;;
3684 esac
3685 fi
3686 TBL=$ac_cv_path_TBL
3687
3688 if test -n "$TBL"; then
3689   echo "$as_me:$LINENO: result: $TBL" >&5
3690 echo "${ECHO_T}$TBL" >&6
3691 else
3692   echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3694 fi
3695
3696 # Extract the first word of "ar", so it can be a program name with args.
3697 set dummy ar; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_path_AR+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   case $AR in
3704   [\\/]* | ?:[\\/]*)
3705   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3706   ;;
3707   *)
3708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713   for ac_exec_ext in '' $ac_executable_extensions; do
3714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717     break 2
3718   fi
3719 done
3720 done
3721
3722   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3723   ;;
3724 esac
3725 fi
3726 AR=$ac_cv_path_AR
3727
3728 if test -n "$AR"; then
3729   echo "$as_me:$LINENO: result: $AR" >&5
3730 echo "${ECHO_T}$AR" >&6
3731 else
3732   echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3734 fi
3735
3736 # Extract the first word of "openssl", so it can be a program name with args.
3737 set dummy openssl; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_path_OPENSSL+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   case $OPENSSL in
3744   [\\/]* | ?:[\\/]*)
3745   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3746   ;;
3747   *)
3748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760 done
3761
3762   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3763   ;;
3764 esac
3765 fi
3766 OPENSSL=$ac_cv_path_OPENSSL
3767
3768 if test -n "$OPENSSL"; then
3769   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3770 echo "${ECHO_T}$OPENSSL" >&6
3771 else
3772   echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3774 fi
3775
3776 # Extract the first word of "mtx", so it can be a program name with args.
3777 set dummy mtx; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_path_MTX+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   case $MTX in
3784   [\\/]* | ?:[\\/]*)
3785   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3786   ;;
3787   *)
3788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800 done
3801
3802   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3803   ;;
3804 esac
3805 fi
3806 MTX=$ac_cv_path_MTX
3807
3808 if test -n "$MTX"; then
3809   echo "$as_me:$LINENO: result: $MTX" >&5
3810 echo "${ECHO_T}$MTX" >&6
3811 else
3812   echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814 fi
3815
3816 # Extract the first word of "df", so it can be a program name with args.
3817 set dummy df; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_path_DF+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   case $DF in
3824   [\\/]* | ?:[\\/]*)
3825   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3826   ;;
3827   *)
3828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_exec_ext in '' $ac_executable_extensions; do
3834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840 done
3841
3842   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3843   ;;
3844 esac
3845 fi
3846 DF=$ac_cv_path_DF
3847
3848 if test -n "$DF"; then
3849   echo "$as_me:$LINENO: result: $DF" >&5
3850 echo "${ECHO_T}$DF" >&6
3851 else
3852   echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 fi
3855
3856 # Extract the first word of "mkisofs", so it can be a program name with args.
3857 set dummy mkisofs; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_path_MKISOFS+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   case $MKISOFS in
3864   [\\/]* | ?:[\\/]*)
3865   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3866   ;;
3867   *)
3868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_exec_ext in '' $ac_executable_extensions; do
3874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877     break 2
3878   fi
3879 done
3880 done
3881
3882   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3883   ;;
3884 esac
3885 fi
3886 MKISOFS=$ac_cv_path_MKISOFS
3887
3888 if test -n "$MKISOFS"; then
3889   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3890 echo "${ECHO_T}$MKISOFS" >&6
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 fi
3895
3896 # Extract the first word of "python", so it can be a program name with args.
3897 set dummy python; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_path_PYTHON+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   case $PYTHON in
3904   [\\/]* | ?:[\\/]*)
3905   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3906   ;;
3907   *)
3908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913   for ac_exec_ext in '' $ac_executable_extensions; do
3914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920 done
3921
3922   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3923   ;;
3924 esac
3925 fi
3926 PYTHON=$ac_cv_path_PYTHON
3927
3928 if test -n "$PYTHON"; then
3929   echo "$as_me:$LINENO: result: $PYTHON" >&5
3930 echo "${ECHO_T}$PYTHON" >&6
3931 else
3932   echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 fi
3935
3936 # Extract the first word of "growisofs", so it can be a program name with args.
3937 set dummy growisofs; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   case $GROWISOFS in
3944   [\\/]* | ?:[\\/]*)
3945   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3946   ;;
3947   *)
3948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961
3962   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3963   ;;
3964 esac
3965 fi
3966 GROWISOFS=$ac_cv_path_GROWISOFS
3967
3968 if test -n "$GROWISOFS"; then
3969   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3970 echo "${ECHO_T}$GROWISOFS" >&6
3971 else
3972   echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3974 fi
3975
3976 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3977 set dummy dvd+rw-mediainfo; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   case $DVDRWMEDIAINFO in
3984   [\\/]* | ?:[\\/]*)
3985   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3986   ;;
3987   *)
3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001
4002   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4003   ;;
4004 esac
4005 fi
4006 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4007
4008 if test -n "$DVDRWMEDIAINFO"; then
4009   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4010 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4011 else
4012   echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014 fi
4015
4016 # Extract the first word of "pkg-config", so it can be a program name with args.
4017 set dummy pkg-config; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   case $PKGCONFIG in
4024   [\\/]* | ?:[\\/]*)
4025   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4026   ;;
4027   *)
4028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041
4042   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4043   ;;
4044 esac
4045 fi
4046 PKGCONFIG=$ac_cv_path_PKGCONFIG
4047
4048 if test -n "$PKGCONFIG"; then
4049   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4050 echo "${ECHO_T}$PKGCONFIG" >&6
4051 else
4052   echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 if test "x$WXCONFIG" = x; then
4058   WXCONFIG=wx-config
4059 fi
4060 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4061 set dummy ${WXCONFIG}; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   case $WXCONFIG in
4068   [\\/]* | ?:[\\/]*)
4069   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4070   ;;
4071   *)
4072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084 done
4085
4086   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4087   ;;
4088 esac
4089 fi
4090 WXCONFIG=$ac_cv_path_WXCONFIG
4091
4092 if test -n "$WXCONFIG"; then
4093   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4094 echo "${ECHO_T}$WXCONFIG" >&6
4095 else
4096   echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101 # Extract the first word of "cdrecord", so it can be a program name with args.
4102 set dummy cdrecord; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_path_CDRECORD+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   case $CDRECORD in
4109   [\\/]* | ?:[\\/]*)
4110   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4111   ;;
4112   *)
4113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118   for ac_exec_ext in '' $ac_executable_extensions; do
4119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125 done
4126
4127   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4128   ;;
4129 esac
4130 fi
4131 CDRECORD=$ac_cv_path_CDRECORD
4132
4133 if test -n "$CDRECORD"; then
4134   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4135 echo "${ECHO_T}$CDRECORD" >&6
4136 else
4137   echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139 fi
4140
4141 # Extract the first word of "pidof", so it can be a program name with args.
4142 set dummy pidof; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_path_PIDOF+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   case $PIDOF in
4149   [\\/]* | ?:[\\/]*)
4150   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4151   ;;
4152   *)
4153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158   for ac_exec_ext in '' $ac_executable_extensions; do
4159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165 done
4166
4167   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4168   ;;
4169 esac
4170 fi
4171 PIDOF=$ac_cv_path_PIDOF
4172
4173 if test -n "$PIDOF"; then
4174   echo "$as_me:$LINENO: result: $PIDOF" >&5
4175 echo "${ECHO_T}$PIDOF" >&6
4176 else
4177   echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4179 fi
4180
4181 for ac_prog in gawk mawk nawk awk
4182 do
4183   # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_AWK+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   if test -n "$AWK"; then
4191   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198   for ac_exec_ext in '' $ac_executable_extensions; do
4199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200     ac_cv_prog_AWK="$ac_prog"
4201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205 done
4206
4207 fi
4208 fi
4209 AWK=$ac_cv_prog_AWK
4210 if test -n "$AWK"; then
4211   echo "$as_me:$LINENO: result: $AWK" >&5
4212 echo "${ECHO_T}$AWK" >&6
4213 else
4214   echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218   test -n "$AWK" && break
4219 done
4220
4221 # Some AWK programs fail, so test it and warn the user
4222 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4223       { if ((prog == $2) || (("(" prog ")") == $2) ||
4224            (("" prog "") == $2) ||
4225            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4226 else
4227   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4228    The regex engine of $AWK is too broken to be used you
4229    might want to install GNU AWK.
4230    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4231 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4232    The regex engine of $AWK is too broken to be used you
4233    might want to install GNU AWK.
4234    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4235    { (exit 1); exit 1; }; }
4236 fi
4237 THE_AWK=$AWK
4238 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4239 set dummy $THE_AWK; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_path_AWK+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   case $AWK in
4246   [\\/]* | ?:[\\/]*)
4247   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4248   ;;
4249   *)
4250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4265   ;;
4266 esac
4267 fi
4268 AWK=$ac_cv_path_AWK
4269
4270 if test -n "$AWK"; then
4271   echo "$as_me:$LINENO: result: $AWK" >&5
4272 echo "${ECHO_T}$AWK" >&6
4273 else
4274   echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277
4278
4279 test -n "$ARFLAG" || ARFLAGS="cr"
4280
4281
4282 MAKE_SHELL=/bin/sh
4283
4284
4285
4286
4287
4288
4289
4290 # Make sure we can run config.sub.
4291 $ac_config_sub sun4 >/dev/null 2>&1 ||
4292   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4294    { (exit 1); exit 1; }; }
4295
4296 echo "$as_me:$LINENO: checking build system type" >&5
4297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4298 if test "${ac_cv_build+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   ac_cv_build_alias=$build_alias
4302 test -z "$ac_cv_build_alias" &&
4303   ac_cv_build_alias=`$ac_config_guess`
4304 test -z "$ac_cv_build_alias" &&
4305   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4307    { (exit 1); exit 1; }; }
4308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4311    { (exit 1); exit 1; }; }
4312
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4315 echo "${ECHO_T}$ac_cv_build" >&6
4316 build=$ac_cv_build
4317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4320
4321
4322
4323 echo "$as_me:$LINENO: checking host system type" >&5
4324 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4325 if test "${ac_cv_host+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   ac_cv_host_alias=$host_alias
4329 test -z "$ac_cv_host_alias" &&
4330   ac_cv_host_alias=$ac_cv_build_alias
4331 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4332   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4333 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4334    { (exit 1); exit 1; }; }
4335
4336 fi
4337 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4338 echo "${ECHO_T}$ac_cv_host" >&6
4339 host=$ac_cv_host
4340 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4341 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4342 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4343
4344
4345 case $host_os in
4346   *cygwin* ) CYGWIN=yes;;
4347          * ) CYGWIN=no;;
4348 esac
4349
4350 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4351 then
4352
4353
4354 if $TRUEPRG; then
4355   HAVE_SUN_OS_TRUE=
4356   HAVE_SUN_OS_FALSE='#'
4357 else
4358   HAVE_SUN_OS_TRUE='#'
4359   HAVE_SUN_OS_FALSE=
4360 fi
4361         cat >>confdefs.h <<\_ACEOF
4362 #define HAVE_SUN_OS 1
4363 _ACEOF
4364
4365 else
4366
4367
4368 if $FALSEPRG; then
4369   HAVE_SUN_OS_TRUE=
4370   HAVE_SUN_OS_FALSE='#'
4371 else
4372   HAVE_SUN_OS_TRUE='#'
4373   HAVE_SUN_OS_FALSE=
4374 fi
4375 fi
4376
4377 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4378 then
4379
4380
4381 if $TRUEPRG; then
4382   HAVE_OSF1_OS_TRUE=
4383   HAVE_OSF1_OS_FALSE='#'
4384 else
4385   HAVE_OSF1_OS_TRUE='#'
4386   HAVE_OSF1_OS_FALSE=
4387 fi
4388         cat >>confdefs.h <<\_ACEOF
4389 #define HAVE_OSF1_OS 1
4390 _ACEOF
4391
4392 else
4393
4394
4395 if $FALSEPRG; then
4396   HAVE_OSF1_OS_TRUE=
4397   HAVE_OSF1_OS_FALSE='#'
4398 else
4399   HAVE_OSF1_OS_TRUE='#'
4400   HAVE_OSF1_OS_FALSE=
4401 fi
4402 fi
4403
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4405 then
4406
4407
4408 if $TRUEPRG; then
4409   HAVE_AIX_OS_TRUE=
4410   HAVE_AIX_OS_FALSE='#'
4411 else
4412   HAVE_AIX_OS_TRUE='#'
4413   HAVE_AIX_OS_FALSE=
4414 fi
4415         cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_AIX_OS 1
4417 _ACEOF
4418
4419 else
4420
4421
4422 if $FALSEPRG; then
4423   HAVE_AIX_OS_TRUE=
4424   HAVE_AIX_OS_FALSE='#'
4425 else
4426   HAVE_AIX_OS_TRUE='#'
4427   HAVE_AIX_OS_FALSE=
4428 fi
4429 fi
4430
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4432 then
4433
4434
4435 if $TRUEPRG; then
4436   HAVE_HPUX_OS_TRUE=
4437   HAVE_HPUX_OS_FALSE='#'
4438 else
4439   HAVE_HPUX_OS_TRUE='#'
4440   HAVE_HPUX_OS_FALSE=
4441 fi
4442         cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_HPUX_OS 1
4444 _ACEOF
4445
4446 else
4447
4448
4449 if $FALSEPRG; then
4450   HAVE_HPUX_OS_TRUE=
4451   HAVE_HPUX_OS_FALSE='#'
4452 else
4453   HAVE_HPUX_OS_TRUE='#'
4454   HAVE_HPUX_OS_FALSE=
4455 fi
4456 fi
4457
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4459 then
4460
4461
4462 if $TRUEPRG; then
4463   HAVE_LINUX_OS_TRUE=
4464   HAVE_LINUX_OS_FALSE='#'
4465 else
4466   HAVE_LINUX_OS_TRUE='#'
4467   HAVE_LINUX_OS_FALSE=
4468 fi
4469         cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_LINUX_OS 1
4471 _ACEOF
4472
4473 else
4474
4475
4476 if $FALSEPRG; then
4477   HAVE_LINUX_OS_TRUE=
4478   HAVE_LINUX_OS_FALSE='#'
4479 else
4480   HAVE_LINUX_OS_TRUE='#'
4481   HAVE_LINUX_OS_FALSE=
4482 fi
4483 fi
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_FREEBSD_OS_TRUE=
4491   HAVE_FREEBSD_OS_FALSE='#'
4492 else
4493   HAVE_FREEBSD_OS_TRUE='#'
4494   HAVE_FREEBSD_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_FREEBSD_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_FREEBSD_OS_TRUE=
4505   HAVE_FREEBSD_OS_FALSE='#'
4506 else
4507   HAVE_FREEBSD_OS_TRUE='#'
4508   HAVE_FREEBSD_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_NETBSD_OS_TRUE=
4518   HAVE_NETBSD_OS_FALSE='#'
4519 else
4520   HAVE_NETBSD_OS_TRUE='#'
4521   HAVE_NETBSD_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_NETBSD_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_NETBSD_OS_TRUE=
4532   HAVE_NETBSD_OS_FALSE='#'
4533 else
4534   HAVE_NETBSD_OS_TRUE='#'
4535   HAVE_NETBSD_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_OPENBSD_OS_TRUE=
4545   HAVE_OPENBSD_OS_FALSE='#'
4546 else
4547   HAVE_OPENBSD_OS_TRUE='#'
4548   HAVE_OPENBSD_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_OPENBSD_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_OPENBSD_OS_TRUE=
4559   HAVE_OPENBSD_OS_FALSE='#'
4560 else
4561   HAVE_OPENBSD_OS_TRUE='#'
4562   HAVE_OPENBSD_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_BSDI_OS_TRUE=
4572   HAVE_BSDI_OS_FALSE='#'
4573 else
4574   HAVE_BSDI_OS_TRUE='#'
4575   HAVE_BSDI_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_BSDI_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_BSDI_OS_TRUE=
4586   HAVE_BSDI_OS_FALSE='#'
4587 else
4588   HAVE_BSDI_OS_TRUE='#'
4589   HAVE_BSDI_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_SGI_OS_TRUE=
4599   HAVE_SGI_OS_FALSE='#'
4600 else
4601   HAVE_SGI_OS_TRUE='#'
4602   HAVE_SGI_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_SGI_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_SGI_OS_TRUE=
4613   HAVE_SGI_OS_FALSE='#'
4614 else
4615   HAVE_SGI_OS_TRUE='#'
4616   HAVE_SGI_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_IRIX_OS_TRUE=
4626   HAVE_IRIX_OS_FALSE='#'
4627 else
4628   HAVE_IRIX_OS_TRUE='#'
4629   HAVE_IRIX_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_IRIX_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_IRIX_OS_TRUE=
4640   HAVE_IRIX_OS_FALSE='#'
4641 else
4642   HAVE_IRIX_OS_TRUE='#'
4643   HAVE_IRIX_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_DARWIN_OS_TRUE=
4653   HAVE_DARWIN_OS_FALSE='#'
4654 else
4655   HAVE_DARWIN_OS_TRUE='#'
4656   HAVE_DARWIN_OS_FALSE=
4657 fi
4658     cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_DARWIN_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_DARWIN_OS_TRUE=
4667   HAVE_DARWIN_OS_FALSE='#'
4668 else
4669   HAVE_DARWIN_OS_TRUE='#'
4670   HAVE_DARWIN_OS_FALSE=
4671 fi
4672 fi
4673
4674
4675 # -----------------------------------------------------------
4676 # ----------------------------------------------------------
4677 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4678 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4679 if test "x$DISTNAME" != "x"
4680 then
4681         echo "distname set to $DISTNAME"
4682 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4683 then
4684         DISTNAME=alpha
4685 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4686 then
4687         DISTNAME=aix
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4689 then
4690         DISTNAME=hpux
4691 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4692 then
4693         DISTNAME=solaris
4694 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4695 then
4696         DISTNAME=freebsd
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4698 then
4699         DISTNAME=netbsd
4700 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4701 then
4702         DISTNAME=openbsd
4703 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4704 then
4705         DISTNAME=irix
4706 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4707 then
4708         DISTNAME=bsdi
4709 elif test -f /etc/SuSE-release
4710 then
4711         DISTNAME=suse
4712 elif test -d /etc/SuSEconfig
4713 then
4714         DISTNAME=suse5
4715 elif test -f /etc/mandrake-release
4716 then
4717         DISTNAME=mandrake
4718 elif test -f /etc/whitebox-release
4719 then
4720        DISTNAME=redhat
4721 elif test -f /etc/redhat-release
4722 then
4723         DISTNAME=redhat
4724 elif test -f /etc/gentoo-release
4725 then
4726         DISTNAME=gentoo
4727 elif test -f /etc/debian_version
4728 then
4729         DISTNAME=debian
4730 elif test -f /etc/slackware-version
4731 then
4732         DISTNAME=slackware
4733 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4734 then
4735     DISTNAME=darwin
4736 elif test -f /etc/engarde-version
4737 then
4738         DISTNAME=engarde
4739 elif test "$CYGWIN" = yes
4740 then
4741         DISTNAME=cygwin
4742         cat >>confdefs.h <<\_ACEOF
4743 #define HAVE_CYGWIN 1
4744 _ACEOF
4745
4746 else
4747         DISTNAME=unknown
4748 fi
4749 echo "$as_me:$LINENO: result: done" >&5
4750 echo "${ECHO_T}done" >&6
4751
4752
4753 # --------------------------------------------------
4754 # Suppport for gettext (translations)
4755 # By default, $datadir is ${prefix}/share
4756 # --------------------------------------------------
4757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.make <<\_ACEOF
4764 all:
4765         @echo 'ac_maketemp="$(MAKE)"'
4766 _ACEOF
4767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4769 if test -n "$ac_maketemp"; then
4770   eval ac_cv_prog_make_${ac_make}_set=yes
4771 else
4772   eval ac_cv_prog_make_${ac_make}_set=no
4773 fi
4774 rm -f conftest.make
4775 fi
4776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4777   echo "$as_me:$LINENO: result: yes" >&5
4778 echo "${ECHO_T}yes" >&6
4779   SET_MAKE=
4780 else
4781   echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6
4783   SET_MAKE="MAKE=${MAKE-make}"
4784 fi
4785
4786
4787
4788         MKINSTALLDIRS=
4789   if test -n "$ac_aux_dir"; then
4790     case "$ac_aux_dir" in
4791       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4792       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4793     esac
4794   fi
4795   if test -z "$MKINSTALLDIRS"; then
4796     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4797   fi
4798
4799
4800
4801   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4803     # Check whether --enable-nls or --disable-nls was given.
4804 if test "${enable_nls+set}" = set; then
4805   enableval="$enable_nls"
4806   USE_NLS=$enableval
4807 else
4808   USE_NLS=yes
4809 fi;
4810   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4811 echo "${ECHO_T}$USE_NLS" >&6
4812
4813
4814
4815
4816
4817
4818 # Prepare PATH_SEPARATOR.
4819 # The user is always right.
4820 if test "${PATH_SEPARATOR+set}" != set; then
4821   echo "#! /bin/sh" >conf$$.sh
4822   echo  "exit 0"   >>conf$$.sh
4823   chmod +x conf$$.sh
4824   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4825     PATH_SEPARATOR=';'
4826   else
4827     PATH_SEPARATOR=:
4828   fi
4829   rm -f conf$$.sh
4830 fi
4831
4832 # Find out how to test for executable files. Don't use a zero-byte file,
4833 # as systems may use methods other than mode bits to determine executability.
4834 cat >conf$$.file <<_ASEOF
4835 #! /bin/sh
4836 exit 0
4837 _ASEOF
4838 chmod +x conf$$.file
4839 if test -x conf$$.file >/dev/null 2>&1; then
4840   ac_executable_p="test -x"
4841 else
4842   ac_executable_p="test -f"
4843 fi
4844 rm -f conf$$.file
4845
4846 # Extract the first word of "msgfmt", so it can be a program name with args.
4847 set dummy msgfmt; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_path_MSGFMT+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   case "$MSGFMT" in
4854   [\\/]* | ?:[\\/]*)
4855     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4856     ;;
4857   *)
4858     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4859     for ac_dir in $PATH; do
4860       IFS="$ac_save_IFS"
4861       test -z "$ac_dir" && ac_dir=.
4862       for ac_exec_ext in '' $ac_executable_extensions; do
4863         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4864           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4865           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4866      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4867             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4868             break 2
4869           fi
4870         fi
4871       done
4872     done
4873     IFS="$ac_save_IFS"
4874   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4875     ;;
4876 esac
4877 fi
4878 MSGFMT="$ac_cv_path_MSGFMT"
4879 if test "$MSGFMT" != ":"; then
4880   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4881 echo "${ECHO_T}$MSGFMT" >&6
4882 else
4883   echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6
4885 fi
4886
4887   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4888 set dummy gmsgfmt; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   case $GMSGFMT in
4895   [\\/]* | ?:[\\/]*)
4896   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4897   ;;
4898   *)
4899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904   for ac_exec_ext in '' $ac_executable_extensions; do
4905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908     break 2
4909   fi
4910 done
4911 done
4912
4913   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4914   ;;
4915 esac
4916 fi
4917 GMSGFMT=$ac_cv_path_GMSGFMT
4918
4919 if test -n "$GMSGFMT"; then
4920   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4921 echo "${ECHO_T}$GMSGFMT" >&6
4922 else
4923   echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4925 fi
4926
4927
4928
4929 # Prepare PATH_SEPARATOR.
4930 # The user is always right.
4931 if test "${PATH_SEPARATOR+set}" != set; then
4932   echo "#! /bin/sh" >conf$$.sh
4933   echo  "exit 0"   >>conf$$.sh
4934   chmod +x conf$$.sh
4935   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4936     PATH_SEPARATOR=';'
4937   else
4938     PATH_SEPARATOR=:
4939   fi
4940   rm -f conf$$.sh
4941 fi
4942
4943 # Find out how to test for executable files. Don't use a zero-byte file,
4944 # as systems may use methods other than mode bits to determine executability.
4945 cat >conf$$.file <<_ASEOF
4946 #! /bin/sh
4947 exit 0
4948 _ASEOF
4949 chmod +x conf$$.file
4950 if test -x conf$$.file >/dev/null 2>&1; then
4951   ac_executable_p="test -x"
4952 else
4953   ac_executable_p="test -f"
4954 fi
4955 rm -f conf$$.file
4956
4957 # Extract the first word of "xgettext", so it can be a program name with args.
4958 set dummy xgettext; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   case "$XGETTEXT" in
4965   [\\/]* | ?:[\\/]*)
4966     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4967     ;;
4968   *)
4969     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4970     for ac_dir in $PATH; do
4971       IFS="$ac_save_IFS"
4972       test -z "$ac_dir" && ac_dir=.
4973       for ac_exec_ext in '' $ac_executable_extensions; do
4974         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4975           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4976           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4977      (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
4978             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4979             break 2
4980           fi
4981         fi
4982       done
4983     done
4984     IFS="$ac_save_IFS"
4985   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4986     ;;
4987 esac
4988 fi
4989 XGETTEXT="$ac_cv_path_XGETTEXT"
4990 if test "$XGETTEXT" != ":"; then
4991   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4992 echo "${ECHO_T}$XGETTEXT" >&6
4993 else
4994   echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6
4996 fi
4997
4998     rm -f messages.po
4999
5000
5001 # Prepare PATH_SEPARATOR.
5002 # The user is always right.
5003 if test "${PATH_SEPARATOR+set}" != set; then
5004   echo "#! /bin/sh" >conf$$.sh
5005   echo  "exit 0"   >>conf$$.sh
5006   chmod +x conf$$.sh
5007   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5008     PATH_SEPARATOR=';'
5009   else
5010     PATH_SEPARATOR=:
5011   fi
5012   rm -f conf$$.sh
5013 fi
5014
5015 # Find out how to test for executable files. Don't use a zero-byte file,
5016 # as systems may use methods other than mode bits to determine executability.
5017 cat >conf$$.file <<_ASEOF
5018 #! /bin/sh
5019 exit 0
5020 _ASEOF
5021 chmod +x conf$$.file
5022 if test -x conf$$.file >/dev/null 2>&1; then
5023   ac_executable_p="test -x"
5024 else
5025   ac_executable_p="test -f"
5026 fi
5027 rm -f conf$$.file
5028
5029 # Extract the first word of "msgmerge", so it can be a program name with args.
5030 set dummy msgmerge; ac_word=$2
5031 echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   case "$MSGMERGE" in
5037   [\\/]* | ?:[\\/]*)
5038     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5039     ;;
5040   *)
5041     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5042     for ac_dir in $PATH; do
5043       IFS="$ac_save_IFS"
5044       test -z "$ac_dir" && ac_dir=.
5045       for ac_exec_ext in '' $ac_executable_extensions; do
5046         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5047           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5048           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5049             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5050             break 2
5051           fi
5052         fi
5053       done
5054     done
5055     IFS="$ac_save_IFS"
5056   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5057     ;;
5058 esac
5059 fi
5060 MSGMERGE="$ac_cv_path_MSGMERGE"
5061 if test "$MSGMERGE" != ":"; then
5062   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5063 echo "${ECHO_T}$MSGMERGE" >&6
5064 else
5065   echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5067 fi
5068
5069
5070       if test "$GMSGFMT" != ":"; then
5071             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5072        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5073       : ;
5074     else
5075       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5076       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5077 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5078       GMSGFMT=":"
5079     fi
5080   fi
5081
5082       if test "$XGETTEXT" != ":"; then
5083             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5084        (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
5085       : ;
5086     else
5087       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5088 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5089       XGETTEXT=":"
5090     fi
5091         rm -f messages.po
5092   fi
5093
5094             ac_config_commands="$ac_config_commands default-1"
5095
5096
5097
5098       if test "X$prefix" = "XNONE"; then
5099     acl_final_prefix="$ac_default_prefix"
5100   else
5101     acl_final_prefix="$prefix"
5102   fi
5103   if test "X$exec_prefix" = "XNONE"; then
5104     acl_final_exec_prefix='${prefix}'
5105   else
5106     acl_final_exec_prefix="$exec_prefix"
5107   fi
5108   acl_save_prefix="$prefix"
5109   prefix="$acl_final_prefix"
5110   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5111   prefix="$acl_save_prefix"
5112
5113
5114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5115 if test "${with_gnu_ld+set}" = set; then
5116   withval="$with_gnu_ld"
5117   test "$withval" = no || with_gnu_ld=yes
5118 else
5119   with_gnu_ld=no
5120 fi;
5121 # Prepare PATH_SEPARATOR.
5122 # The user is always right.
5123 if test "${PATH_SEPARATOR+set}" != set; then
5124   echo "#! /bin/sh" >conf$$.sh
5125   echo  "exit 0"   >>conf$$.sh
5126   chmod +x conf$$.sh
5127   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5128     PATH_SEPARATOR=';'
5129   else
5130     PATH_SEPARATOR=:
5131   fi
5132   rm -f conf$$.sh
5133 fi
5134 ac_prog=ld
5135 if test "$GCC" = yes; then
5136   # Check if gcc -print-prog-name=ld gives a path.
5137   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5138 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5139   case $host in
5140   *-*-mingw*)
5141     # gcc leaves a trailing carriage return which upsets mingw
5142     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5143   *)
5144     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5145   esac
5146   case $ac_prog in
5147     # Accept absolute paths.
5148     [\\/]* | [A-Za-z]:[\\/]*)
5149       re_direlt='/[^/][^/]*/\.\./'
5150       # Canonicalize the path of ld
5151       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5152       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5153         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5154       done
5155       test -z "$LD" && LD="$ac_prog"
5156       ;;
5157   "")
5158     # If it fails, then pretend we aren't using GCC.
5159     ac_prog=ld
5160     ;;
5161   *)
5162     # If it is relative, then search for the first ld in PATH.
5163     with_gnu_ld=unknown
5164     ;;
5165   esac
5166 elif test "$with_gnu_ld" = yes; then
5167   echo "$as_me:$LINENO: checking for GNU ld" >&5
5168 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5169 else
5170   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5171 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5172 fi
5173 if test "${acl_cv_path_LD+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test -z "$LD"; then
5177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5178   for ac_dir in $PATH; do
5179     test -z "$ac_dir" && ac_dir=.
5180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181       acl_cv_path_LD="$ac_dir/$ac_prog"
5182       # Check to see if the program is GNU ld.  I'd rather use --version,
5183       # but apparently some GNU ld's only accept -v.
5184       # Break only if it was the GNU/non-GNU ld that we prefer.
5185       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5186       *GNU* | *'with BFD'*)
5187         test "$with_gnu_ld" != no && break ;;
5188       *)
5189         test "$with_gnu_ld" != yes && break ;;
5190       esac
5191     fi
5192   done
5193   IFS="$ac_save_ifs"
5194 else
5195   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5196 fi
5197 fi
5198
5199 LD="$acl_cv_path_LD"
5200 if test -n "$LD"; then
5201   echo "$as_me:$LINENO: result: $LD" >&5
5202 echo "${ECHO_T}$LD" >&6
5203 else
5204   echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5206 fi
5207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5209    { (exit 1); exit 1; }; }
5210 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5212 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218   acl_cv_prog_gnu_ld=yes ;;
5219 *)
5220   acl_cv_prog_gnu_ld=no ;;
5221 esac
5222 fi
5223 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5224 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5225 with_gnu_ld=$acl_cv_prog_gnu_ld
5226
5227
5228
5229
5230                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5231 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5232 if test "${acl_cv_rpath+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235
5236     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5237     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5238     . ./conftest.sh
5239     rm -f ./conftest.sh
5240     acl_cv_rpath=done
5241
5242 fi
5243 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5244 echo "${ECHO_T}$acl_cv_rpath" >&6
5245   wl="$acl_cv_wl"
5246   libext="$acl_cv_libext"
5247   shlibext="$acl_cv_shlibext"
5248   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5249   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5250   hardcode_direct="$acl_cv_hardcode_direct"
5251   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5252     # Check whether --enable-rpath or --disable-rpath was given.
5253 if test "${enable_rpath+set}" = set; then
5254   enableval="$enable_rpath"
5255   :
5256 else
5257   enable_rpath=yes
5258 fi;
5259
5260
5261
5262
5263
5264
5265
5266     use_additional=yes
5267
5268   acl_save_prefix="$prefix"
5269   prefix="$acl_final_prefix"
5270   acl_save_exec_prefix="$exec_prefix"
5271   exec_prefix="$acl_final_exec_prefix"
5272
5273     eval additional_includedir=\"$includedir\"
5274     eval additional_libdir=\"$libdir\"
5275
5276   exec_prefix="$acl_save_exec_prefix"
5277   prefix="$acl_save_prefix"
5278
5279
5280 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5281 if test "${with_libiconv_prefix+set}" = set; then
5282   withval="$with_libiconv_prefix"
5283
5284     if test "X$withval" = "Xno"; then
5285       use_additional=no
5286     else
5287       if test "X$withval" = "X"; then
5288
5289   acl_save_prefix="$prefix"
5290   prefix="$acl_final_prefix"
5291   acl_save_exec_prefix="$exec_prefix"
5292   exec_prefix="$acl_final_exec_prefix"
5293
5294           eval additional_includedir=\"$includedir\"
5295           eval additional_libdir=\"$libdir\"
5296
5297   exec_prefix="$acl_save_exec_prefix"
5298   prefix="$acl_save_prefix"
5299
5300       else
5301         additional_includedir="$withval/include"
5302         additional_libdir="$withval/lib"
5303       fi
5304     fi
5305
5306 fi;
5307       LIBICONV=
5308   LTLIBICONV=
5309   INCICONV=
5310   rpathdirs=
5311   ltrpathdirs=
5312   names_already_handled=
5313   names_next_round='iconv '
5314   while test -n "$names_next_round"; do
5315     names_this_round="$names_next_round"
5316     names_next_round=
5317     for name in $names_this_round; do
5318       already_handled=
5319       for n in $names_already_handled; do
5320         if test "$n" = "$name"; then
5321           already_handled=yes
5322           break
5323         fi
5324       done
5325       if test -z "$already_handled"; then
5326         names_already_handled="$names_already_handled $name"
5327                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5328         eval value=\"\$HAVE_LIB$uppername\"
5329         if test -n "$value"; then
5330           if test "$value" = yes; then
5331             eval value=\"\$LIB$uppername\"
5332             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5333             eval value=\"\$LTLIB$uppername\"
5334             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5335           else
5336                                     :
5337           fi
5338         else
5339                               found_dir=
5340           found_la=
5341           found_so=
5342           found_a=
5343           if test $use_additional = yes; then
5344             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5345               found_dir="$additional_libdir"
5346               found_so="$additional_libdir/lib$name.$shlibext"
5347               if test -f "$additional_libdir/lib$name.la"; then
5348                 found_la="$additional_libdir/lib$name.la"
5349               fi
5350             else
5351               if test -f "$additional_libdir/lib$name.$libext"; then
5352                 found_dir="$additional_libdir"
5353                 found_a="$additional_libdir/lib$name.$libext"
5354                 if test -f "$additional_libdir/lib$name.la"; then
5355                   found_la="$additional_libdir/lib$name.la"
5356                 fi
5357               fi
5358             fi
5359           fi
5360           if test "X$found_dir" = "X"; then
5361             for x in $LDFLAGS $LTLIBICONV; do
5362
5363   acl_save_prefix="$prefix"
5364   prefix="$acl_final_prefix"
5365   acl_save_exec_prefix="$exec_prefix"
5366   exec_prefix="$acl_final_exec_prefix"
5367   eval x=\"$x\"
5368   exec_prefix="$acl_save_exec_prefix"
5369   prefix="$acl_save_prefix"
5370
5371               case "$x" in
5372                 -L*)
5373                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5374                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5375                     found_dir="$dir"
5376                     found_so="$dir/lib$name.$shlibext"
5377                     if test -f "$dir/lib$name.la"; then
5378                       found_la="$dir/lib$name.la"
5379                     fi
5380                   else
5381                     if test -f "$dir/lib$name.$libext"; then
5382                       found_dir="$dir"
5383                       found_a="$dir/lib$name.$libext"
5384                       if test -f "$dir/lib$name.la"; then
5385                         found_la="$dir/lib$name.la"
5386                       fi
5387                     fi
5388                   fi
5389                   ;;
5390               esac
5391               if test "X$found_dir" != "X"; then
5392                 break
5393               fi
5394             done
5395           fi
5396           if test "X$found_dir" != "X"; then
5397                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5398             if test "X$found_so" != "X"; then
5399                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5400                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5401               else
5402                                                                                 haveit=
5403                 for x in $ltrpathdirs; do
5404                   if test "X$x" = "X$found_dir"; then
5405                     haveit=yes
5406                     break
5407                   fi
5408                 done
5409                 if test -z "$haveit"; then
5410                   ltrpathdirs="$ltrpathdirs $found_dir"
5411                 fi
5412                                 if test "$hardcode_direct" = yes; then
5413                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5414                 else
5415                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5416                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5417                                                             haveit=
5418                     for x in $rpathdirs; do
5419                       if test "X$x" = "X$found_dir"; then
5420                         haveit=yes
5421                         break
5422                       fi
5423                     done
5424                     if test -z "$haveit"; then
5425                       rpathdirs="$rpathdirs $found_dir"
5426                     fi
5427                   else
5428                                                                                 haveit=
5429                     for x in $LDFLAGS $LIBICONV; do
5430
5431   acl_save_prefix="$prefix"
5432   prefix="$acl_final_prefix"
5433   acl_save_exec_prefix="$exec_prefix"
5434   exec_prefix="$acl_final_exec_prefix"
5435   eval x=\"$x\"
5436   exec_prefix="$acl_save_exec_prefix"
5437   prefix="$acl_save_prefix"
5438
5439                       if test "X$x" = "X-L$found_dir"; then
5440                         haveit=yes
5441                         break
5442                       fi
5443                     done
5444                     if test -z "$haveit"; then
5445                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5446                     fi
5447                     if test "$hardcode_minus_L" != no; then
5448                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5449                     else
5450                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5451                     fi
5452                   fi
5453                 fi
5454               fi
5455             else
5456               if test "X$found_a" != "X"; then
5457                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5458               else
5459                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5460               fi
5461             fi
5462                         additional_includedir=
5463             case "$found_dir" in
5464               */lib | */lib/)
5465                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5466                 additional_includedir="$basedir/include"
5467                 ;;
5468             esac
5469             if test "X$additional_includedir" != "X"; then
5470                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5471                 haveit=
5472                 if test "X$additional_includedir" = "X/usr/local/include"; then
5473                   if test -n "$GCC"; then
5474                     case $host_os in
5475                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5476                     esac
5477                   fi
5478                 fi
5479                 if test -z "$haveit"; then
5480                   for x in $CPPFLAGS $INCICONV; do
5481
5482   acl_save_prefix="$prefix"
5483   prefix="$acl_final_prefix"
5484   acl_save_exec_prefix="$exec_prefix"
5485   exec_prefix="$acl_final_exec_prefix"
5486   eval x=\"$x\"
5487   exec_prefix="$acl_save_exec_prefix"
5488   prefix="$acl_save_prefix"
5489
5490                     if test "X$x" = "X-I$additional_includedir"; then
5491                       haveit=yes
5492                       break
5493                     fi
5494                   done
5495                   if test -z "$haveit"; then
5496                     if test -d "$additional_includedir"; then
5497                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5498                     fi
5499                   fi
5500                 fi
5501               fi
5502             fi
5503                         if test -n "$found_la"; then
5504                                                         save_libdir="$libdir"
5505               case "$found_la" in
5506                 */* | *\\*) . "$found_la" ;;
5507                 *) . "./$found_la" ;;
5508               esac
5509               libdir="$save_libdir"
5510                             for dep in $dependency_libs; do
5511                 case "$dep" in
5512                   -L*)
5513                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5514                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5515                       haveit=
5516                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5517                         if test -n "$GCC"; then
5518                           case $host_os in
5519                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5520                           esac
5521                         fi
5522                       fi
5523                       if test -z "$haveit"; then
5524                         haveit=
5525                         for x in $LDFLAGS $LIBICONV; do
5526
5527   acl_save_prefix="$prefix"
5528   prefix="$acl_final_prefix"
5529   acl_save_exec_prefix="$exec_prefix"
5530   exec_prefix="$acl_final_exec_prefix"
5531   eval x=\"$x\"
5532   exec_prefix="$acl_save_exec_prefix"
5533   prefix="$acl_save_prefix"
5534
5535                           if test "X$x" = "X-L$additional_libdir"; then
5536                             haveit=yes
5537                             break
5538                           fi
5539                         done
5540                         if test -z "$haveit"; then
5541                           if test -d "$additional_libdir"; then
5542                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5543                           fi
5544                         fi
5545                         haveit=
5546                         for x in $LDFLAGS $LTLIBICONV; do
5547
5548   acl_save_prefix="$prefix"
5549   prefix="$acl_final_prefix"
5550   acl_save_exec_prefix="$exec_prefix"
5551   exec_prefix="$acl_final_exec_prefix"
5552   eval x=\"$x\"
5553   exec_prefix="$acl_save_exec_prefix"
5554   prefix="$acl_save_prefix"
5555
5556                           if test "X$x" = "X-L$additional_libdir"; then
5557                             haveit=yes
5558                             break
5559                           fi
5560                         done
5561                         if test -z "$haveit"; then
5562                           if test -d "$additional_libdir"; then
5563                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5564                           fi
5565                         fi
5566                       fi
5567                     fi
5568                     ;;
5569                   -R*)
5570                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5571                     if test "$enable_rpath" != no; then
5572                                                                   haveit=
5573                       for x in $rpathdirs; do
5574                         if test "X$x" = "X$dir"; then
5575                           haveit=yes
5576                           break
5577                         fi
5578                       done
5579                       if test -z "$haveit"; then
5580                         rpathdirs="$rpathdirs $dir"
5581                       fi
5582                                                                   haveit=
5583                       for x in $ltrpathdirs; do
5584                         if test "X$x" = "X$dir"; then
5585                           haveit=yes
5586                           break
5587                         fi
5588                       done
5589                       if test -z "$haveit"; then
5590                         ltrpathdirs="$ltrpathdirs $dir"
5591                       fi
5592                     fi
5593                     ;;
5594                   -l*)
5595                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5596                     ;;
5597                   *.la)
5598                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5599                     ;;
5600                   *)
5601                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5602                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5603                     ;;
5604                 esac
5605               done
5606             fi
5607           else
5608                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5609             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5610           fi
5611         fi
5612       fi
5613     done
5614   done
5615   if test "X$rpathdirs" != "X"; then
5616     if test -n "$hardcode_libdir_separator"; then
5617                         alldirs=
5618       for found_dir in $rpathdirs; do
5619         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5620       done
5621             acl_save_libdir="$libdir"
5622       libdir="$alldirs"
5623       eval flag=\"$hardcode_libdir_flag_spec\"
5624       libdir="$acl_save_libdir"
5625       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5626     else
5627             for found_dir in $rpathdirs; do
5628         acl_save_libdir="$libdir"
5629         libdir="$found_dir"
5630         eval flag=\"$hardcode_libdir_flag_spec\"
5631         libdir="$acl_save_libdir"
5632         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5633       done
5634     fi
5635   fi
5636   if test "X$ltrpathdirs" != "X"; then
5637             for found_dir in $ltrpathdirs; do
5638       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5639     done
5640   fi
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5660 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5661 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   gt_save_CPPFLAGS="$CPPFLAGS"
5665      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5666      gt_save_LIBS="$LIBS"
5667      LIBS="$LIBS -framework CoreFoundation"
5668      cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h.  */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h.  */
5674 #include <CFPreferences.h>
5675 int
5676 main ()
5677 {
5678 CFPreferencesCopyAppValue(NULL, NULL)
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685   (eval $ac_link) 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -z "$ac_c_werror_flag"
5693                          || test ! -s conftest.err'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; } &&
5699          { ac_try='test -s conftest$ac_exeext'
5700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701   (eval $ac_try) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   gt_cv_func_CFPreferencesCopyAppValue=yes
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 gt_cv_func_CFPreferencesCopyAppValue=no
5711 fi
5712 rm -f conftest.err conftest.$ac_objext \
5713       conftest$ac_exeext conftest.$ac_ext
5714      CPPFLAGS="$gt_save_CPPFLAGS"
5715      LIBS="$gt_save_LIBS"
5716 fi
5717 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5718 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5719   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5720
5721 cat >>confdefs.h <<\_ACEOF
5722 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5723 _ACEOF
5724
5725   fi
5726     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5727 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5728 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   gt_save_CPPFLAGS="$CPPFLAGS"
5732      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5733      gt_save_LIBS="$LIBS"
5734      LIBS="$LIBS -framework CoreFoundation"
5735      cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741 #include <CFLocale.h>
5742 int
5743 main ()
5744 {
5745 CFLocaleCopyCurrent();
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 rm -f conftest.$ac_objext conftest$ac_exeext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5752   (eval $ac_link) 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } &&
5759          { ac_try='test -z "$ac_c_werror_flag"
5760                          || test ! -s conftest.err'
5761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762   (eval $ac_try) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; } &&
5766          { ac_try='test -s conftest$ac_exeext'
5767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768   (eval $ac_try) 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; }; then
5772   gt_cv_func_CFLocaleCopyCurrent=yes
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 gt_cv_func_CFLocaleCopyCurrent=no
5778 fi
5779 rm -f conftest.err conftest.$ac_objext \
5780       conftest$ac_exeext conftest.$ac_ext
5781      CPPFLAGS="$gt_save_CPPFLAGS"
5782      LIBS="$gt_save_LIBS"
5783 fi
5784 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5785 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5786   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5787
5788 cat >>confdefs.h <<\_ACEOF
5789 #define HAVE_CFLOCALECOPYCURRENT 1
5790 _ACEOF
5791
5792   fi
5793   INTL_MACOSX_LIBS=
5794   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5795     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5796   fi
5797
5798
5799
5800
5801   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5803     # Check whether --enable-nls or --disable-nls was given.
5804 if test "${enable_nls+set}" = set; then
5805   enableval="$enable_nls"
5806   USE_NLS=$enableval
5807 else
5808   USE_NLS=yes
5809 fi;
5810   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5811 echo "${ECHO_T}$USE_NLS" >&6
5812
5813
5814
5815
5816   LIBINTL=
5817   LTLIBINTL=
5818   POSUB=
5819
5820     if test "$USE_NLS" = "yes"; then
5821     gt_use_preinstalled_gnugettext=no
5822
5823
5824
5825
5826
5827
5828         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5829 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5830 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839 #include <libintl.h>
5840 extern int _nl_msg_cat_cntr;
5841 extern int *_nl_domain_bindings;
5842 int
5843 main ()
5844 {
5845 bindtextdomain ("", "");
5846 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853   (eval $ac_link) 2>conftest.er1
5854   ac_status=$?
5855   grep -v '^ *+' conftest.er1 >conftest.err
5856   rm -f conftest.er1
5857   cat conftest.err >&5
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); } &&
5860          { ac_try='test -z "$ac_c_werror_flag"
5861                          || test ! -s conftest.err'
5862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863   (eval $ac_try) 2>&5
5864   ac_status=$?
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); }; } &&
5867          { ac_try='test -s conftest$ac_exeext'
5868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869   (eval $ac_try) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; }; then
5873   gt_cv_func_gnugettext1_libc=yes
5874 else
5875   echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 gt_cv_func_gnugettext1_libc=no
5879 fi
5880 rm -f conftest.err conftest.$ac_objext \
5881       conftest$ac_exeext conftest.$ac_ext
5882 fi
5883 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5884 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5885
5886         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5887
5888
5889
5890
5891
5892           am_save_CPPFLAGS="$CPPFLAGS"
5893
5894   for element in $INCICONV; do
5895     haveit=
5896     for x in $CPPFLAGS; do
5897
5898   acl_save_prefix="$prefix"
5899   prefix="$acl_final_prefix"
5900   acl_save_exec_prefix="$exec_prefix"
5901   exec_prefix="$acl_final_exec_prefix"
5902   eval x=\"$x\"
5903   exec_prefix="$acl_save_exec_prefix"
5904   prefix="$acl_save_prefix"
5905
5906       if test "X$x" = "X$element"; then
5907         haveit=yes
5908         break
5909       fi
5910     done
5911     if test -z "$haveit"; then
5912       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5913     fi
5914   done
5915
5916
5917   echo "$as_me:$LINENO: checking for iconv" >&5
5918 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5919 if test "${am_cv_func_iconv+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922
5923     am_cv_func_iconv="no, consider installing GNU libiconv"
5924     am_cv_lib_iconv=no
5925     cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 #include <stdlib.h>
5932 #include <iconv.h>
5933 int
5934 main ()
5935 {
5936 iconv_t cd = iconv_open("","");
5937        iconv(cd,NULL,NULL,NULL,NULL);
5938        iconv_close(cd);
5939   ;
5940   return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945   (eval $ac_link) 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } &&
5952          { ac_try='test -z "$ac_c_werror_flag"
5953                          || test ! -s conftest.err'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; } &&
5959          { ac_try='test -s conftest$ac_exeext'
5960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961   (eval $ac_try) 2>&5
5962   ac_status=$?
5963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); }; }; then
5965   am_cv_func_iconv=yes
5966 else
5967   echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 fi
5971 rm -f conftest.err conftest.$ac_objext \
5972       conftest$ac_exeext conftest.$ac_ext
5973     if test "$am_cv_func_iconv" != yes; then
5974       am_save_LIBS="$LIBS"
5975       LIBS="$LIBS $LIBICONV"
5976       cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 #include <stdlib.h>
5983 #include <iconv.h>
5984 int
5985 main ()
5986 {
5987 iconv_t cd = iconv_open("","");
5988          iconv(cd,NULL,NULL,NULL,NULL);
5989          iconv_close(cd);
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996   (eval $ac_link) 2>conftest.er1
5997   ac_status=$?
5998   grep -v '^ *+' conftest.er1 >conftest.err
5999   rm -f conftest.er1
6000   cat conftest.err >&5
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -z "$ac_c_werror_flag"
6004                          || test ! -s conftest.err'
6005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006   (eval $ac_try) 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }; } &&
6010          { ac_try='test -s conftest$ac_exeext'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; }; then
6016   am_cv_lib_iconv=yes
6017         am_cv_func_iconv=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 fi
6023 rm -f conftest.err conftest.$ac_objext \
6024       conftest$ac_exeext conftest.$ac_ext
6025       LIBS="$am_save_LIBS"
6026     fi
6027
6028 fi
6029 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6030 echo "${ECHO_T}$am_cv_func_iconv" >&6
6031   if test "$am_cv_func_iconv" = yes; then
6032
6033 cat >>confdefs.h <<\_ACEOF
6034 #define HAVE_ICONV 1
6035 _ACEOF
6036
6037   fi
6038   if test "$am_cv_lib_iconv" = yes; then
6039     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6040 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6041     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6042 echo "${ECHO_T}$LIBICONV" >&6
6043   else
6044             CPPFLAGS="$am_save_CPPFLAGS"
6045     LIBICONV=
6046     LTLIBICONV=
6047   fi
6048
6049
6050
6051
6052
6053
6054     use_additional=yes
6055
6056   acl_save_prefix="$prefix"
6057   prefix="$acl_final_prefix"
6058   acl_save_exec_prefix="$exec_prefix"
6059   exec_prefix="$acl_final_exec_prefix"
6060
6061     eval additional_includedir=\"$includedir\"
6062     eval additional_libdir=\"$libdir\"
6063
6064   exec_prefix="$acl_save_exec_prefix"
6065   prefix="$acl_save_prefix"
6066
6067
6068 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6069 if test "${with_libintl_prefix+set}" = set; then
6070   withval="$with_libintl_prefix"
6071
6072     if test "X$withval" = "Xno"; then
6073       use_additional=no
6074     else
6075       if test "X$withval" = "X"; then
6076
6077   acl_save_prefix="$prefix"
6078   prefix="$acl_final_prefix"
6079   acl_save_exec_prefix="$exec_prefix"
6080   exec_prefix="$acl_final_exec_prefix"
6081
6082           eval additional_includedir=\"$includedir\"
6083           eval additional_libdir=\"$libdir\"
6084
6085   exec_prefix="$acl_save_exec_prefix"
6086   prefix="$acl_save_prefix"
6087
6088       else
6089         additional_includedir="$withval/include"
6090         additional_libdir="$withval/lib"
6091       fi
6092     fi
6093
6094 fi;
6095       LIBINTL=
6096   LTLIBINTL=
6097   INCINTL=
6098   rpathdirs=
6099   ltrpathdirs=
6100   names_already_handled=
6101   names_next_round='intl '
6102   while test -n "$names_next_round"; do
6103     names_this_round="$names_next_round"
6104     names_next_round=
6105     for name in $names_this_round; do
6106       already_handled=
6107       for n in $names_already_handled; do
6108         if test "$n" = "$name"; then
6109           already_handled=yes
6110           break
6111         fi
6112       done
6113       if test -z "$already_handled"; then
6114         names_already_handled="$names_already_handled $name"
6115                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6116         eval value=\"\$HAVE_LIB$uppername\"
6117         if test -n "$value"; then
6118           if test "$value" = yes; then
6119             eval value=\"\$LIB$uppername\"
6120             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6121             eval value=\"\$LTLIB$uppername\"
6122             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6123           else
6124                                     :
6125           fi
6126         else
6127                               found_dir=
6128           found_la=
6129           found_so=
6130           found_a=
6131           if test $use_additional = yes; then
6132             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6133               found_dir="$additional_libdir"
6134               found_so="$additional_libdir/lib$name.$shlibext"
6135               if test -f "$additional_libdir/lib$name.la"; then
6136                 found_la="$additional_libdir/lib$name.la"
6137               fi
6138             else
6139               if test -f "$additional_libdir/lib$name.$libext"; then
6140                 found_dir="$additional_libdir"
6141                 found_a="$additional_libdir/lib$name.$libext"
6142                 if test -f "$additional_libdir/lib$name.la"; then
6143                   found_la="$additional_libdir/lib$name.la"
6144                 fi
6145               fi
6146             fi
6147           fi
6148           if test "X$found_dir" = "X"; then
6149             for x in $LDFLAGS $LTLIBINTL; do
6150
6151   acl_save_prefix="$prefix"
6152   prefix="$acl_final_prefix"
6153   acl_save_exec_prefix="$exec_prefix"
6154   exec_prefix="$acl_final_exec_prefix"
6155   eval x=\"$x\"
6156   exec_prefix="$acl_save_exec_prefix"
6157   prefix="$acl_save_prefix"
6158
6159               case "$x" in
6160                 -L*)
6161                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6162                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6163                     found_dir="$dir"
6164                     found_so="$dir/lib$name.$shlibext"
6165                     if test -f "$dir/lib$name.la"; then
6166                       found_la="$dir/lib$name.la"
6167                     fi
6168                   else
6169                     if test -f "$dir/lib$name.$libext"; then
6170                       found_dir="$dir"
6171                       found_a="$dir/lib$name.$libext"
6172                       if test -f "$dir/lib$name.la"; then
6173                         found_la="$dir/lib$name.la"
6174                       fi
6175                     fi
6176                   fi
6177                   ;;
6178               esac
6179               if test "X$found_dir" != "X"; then
6180                 break
6181               fi
6182             done
6183           fi
6184           if test "X$found_dir" != "X"; then
6185                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6186             if test "X$found_so" != "X"; then
6187                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6188                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6189               else
6190                                                                                 haveit=
6191                 for x in $ltrpathdirs; do
6192                   if test "X$x" = "X$found_dir"; then
6193                     haveit=yes
6194                     break
6195                   fi
6196                 done
6197                 if test -z "$haveit"; then
6198                   ltrpathdirs="$ltrpathdirs $found_dir"
6199                 fi
6200                                 if test "$hardcode_direct" = yes; then
6201                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6202                 else
6203                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6204                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6205                                                             haveit=
6206                     for x in $rpathdirs; do
6207                       if test "X$x" = "X$found_dir"; then
6208                         haveit=yes
6209                         break
6210                       fi
6211                     done
6212                     if test -z "$haveit"; then
6213                       rpathdirs="$rpathdirs $found_dir"
6214                     fi
6215                   else
6216                                                                                 haveit=
6217                     for x in $LDFLAGS $LIBINTL; do
6218
6219   acl_save_prefix="$prefix"
6220   prefix="$acl_final_prefix"
6221   acl_save_exec_prefix="$exec_prefix"
6222   exec_prefix="$acl_final_exec_prefix"
6223   eval x=\"$x\"
6224   exec_prefix="$acl_save_exec_prefix"
6225   prefix="$acl_save_prefix"
6226
6227                       if test "X$x" = "X-L$found_dir"; then
6228                         haveit=yes
6229                         break
6230                       fi
6231                     done
6232                     if test -z "$haveit"; then
6233                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6234                     fi
6235                     if test "$hardcode_minus_L" != no; then
6236                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6237                     else
6238                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6239                     fi
6240                   fi
6241                 fi
6242               fi
6243             else
6244               if test "X$found_a" != "X"; then
6245                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6246               else
6247                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6248               fi
6249             fi
6250                         additional_includedir=
6251             case "$found_dir" in
6252               */lib | */lib/)
6253                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6254                 additional_includedir="$basedir/include"
6255                 ;;
6256             esac
6257             if test "X$additional_includedir" != "X"; then
6258                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6259                 haveit=
6260                 if test "X$additional_includedir" = "X/usr/local/include"; then
6261                   if test -n "$GCC"; then
6262                     case $host_os in
6263                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6264                     esac
6265                   fi
6266                 fi
6267                 if test -z "$haveit"; then
6268                   for x in $CPPFLAGS $INCINTL; do
6269
6270   acl_save_prefix="$prefix"
6271   prefix="$acl_final_prefix"
6272   acl_save_exec_prefix="$exec_prefix"
6273   exec_prefix="$acl_final_exec_prefix"
6274   eval x=\"$x\"
6275   exec_prefix="$acl_save_exec_prefix"
6276   prefix="$acl_save_prefix"
6277
6278                     if test "X$x" = "X-I$additional_includedir"; then
6279                       haveit=yes
6280                       break
6281                     fi
6282                   done
6283                   if test -z "$haveit"; then
6284                     if test -d "$additional_includedir"; then
6285                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6286                     fi
6287                   fi
6288                 fi
6289               fi
6290             fi
6291                         if test -n "$found_la"; then
6292                                                         save_libdir="$libdir"
6293               case "$found_la" in
6294                 */* | *\\*) . "$found_la" ;;
6295                 *) . "./$found_la" ;;
6296               esac
6297               libdir="$save_libdir"
6298                             for dep in $dependency_libs; do
6299                 case "$dep" in
6300                   -L*)
6301                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6302                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6303                       haveit=
6304                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6305                         if test -n "$GCC"; then
6306                           case $host_os in
6307                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6308                           esac
6309                         fi
6310                       fi
6311                       if test -z "$haveit"; then
6312                         haveit=
6313                         for x in $LDFLAGS $LIBINTL; do
6314
6315   acl_save_prefix="$prefix"
6316   prefix="$acl_final_prefix"
6317   acl_save_exec_prefix="$exec_prefix"
6318   exec_prefix="$acl_final_exec_prefix"
6319   eval x=\"$x\"
6320   exec_prefix="$acl_save_exec_prefix"
6321   prefix="$acl_save_prefix"
6322
6323                           if test "X$x" = "X-L$additional_libdir"; then
6324                             haveit=yes
6325                             break
6326                           fi
6327                         done
6328                         if test -z "$haveit"; then
6329                           if test -d "$additional_libdir"; then
6330                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6331                           fi
6332                         fi
6333                         haveit=
6334                         for x in $LDFLAGS $LTLIBINTL; do
6335
6336   acl_save_prefix="$prefix"
6337   prefix="$acl_final_prefix"
6338   acl_save_exec_prefix="$exec_prefix"
6339   exec_prefix="$acl_final_exec_prefix"
6340   eval x=\"$x\"
6341   exec_prefix="$acl_save_exec_prefix"
6342   prefix="$acl_save_prefix"
6343
6344                           if test "X$x" = "X-L$additional_libdir"; then
6345                             haveit=yes
6346                             break
6347                           fi
6348                         done
6349                         if test -z "$haveit"; then
6350                           if test -d "$additional_libdir"; then
6351                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6352                           fi
6353                         fi
6354                       fi
6355                     fi
6356                     ;;
6357                   -R*)
6358                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6359                     if test "$enable_rpath" != no; then
6360                                                                   haveit=
6361                       for x in $rpathdirs; do
6362                         if test "X$x" = "X$dir"; then
6363                           haveit=yes
6364                           break
6365                         fi
6366                       done
6367                       if test -z "$haveit"; then
6368                         rpathdirs="$rpathdirs $dir"
6369                       fi
6370                                                                   haveit=
6371                       for x in $ltrpathdirs; do
6372                         if test "X$x" = "X$dir"; then
6373                           haveit=yes
6374                           break
6375                         fi
6376                       done
6377                       if test -z "$haveit"; then
6378                         ltrpathdirs="$ltrpathdirs $dir"
6379                       fi
6380                     fi
6381                     ;;
6382                   -l*)
6383                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6384                     ;;
6385                   *.la)
6386                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6387                     ;;
6388                   *)
6389                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6390                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6391                     ;;
6392                 esac
6393               done
6394             fi
6395           else
6396                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6397             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6398           fi
6399         fi
6400       fi
6401     done
6402   done
6403   if test "X$rpathdirs" != "X"; then
6404     if test -n "$hardcode_libdir_separator"; then
6405                         alldirs=
6406       for found_dir in $rpathdirs; do
6407         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6408       done
6409             acl_save_libdir="$libdir"
6410       libdir="$alldirs"
6411       eval flag=\"$hardcode_libdir_flag_spec\"
6412       libdir="$acl_save_libdir"
6413       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6414     else
6415             for found_dir in $rpathdirs; do
6416         acl_save_libdir="$libdir"
6417         libdir="$found_dir"
6418         eval flag=\"$hardcode_libdir_flag_spec\"
6419         libdir="$acl_save_libdir"
6420         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6421       done
6422     fi
6423   fi
6424   if test "X$ltrpathdirs" != "X"; then
6425             for found_dir in $ltrpathdirs; do
6426       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6427     done
6428   fi
6429
6430           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6431 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6432 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   gt_save_CPPFLAGS="$CPPFLAGS"
6436             CPPFLAGS="$CPPFLAGS $INCINTL"
6437             gt_save_LIBS="$LIBS"
6438             LIBS="$LIBS $LIBINTL"
6439                         cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 #include <libintl.h>
6446 extern int _nl_msg_cat_cntr;
6447 extern
6448 #ifdef __cplusplus
6449 "C"
6450 #endif
6451 const char *_nl_expand_alias (const char *);
6452 int
6453 main ()
6454 {
6455 bindtextdomain ("", "");
6456 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6457   ;
6458   return 0;
6459 }
6460 _ACEOF
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463   (eval $ac_link) 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } &&
6470          { ac_try='test -z "$ac_c_werror_flag"
6471                          || test ! -s conftest.err'
6472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473   (eval $ac_try) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; } &&
6477          { ac_try='test -s conftest$ac_exeext'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; }; then
6483   gt_cv_func_gnugettext1_libintl=yes
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 gt_cv_func_gnugettext1_libintl=no
6489 fi
6490 rm -f conftest.err conftest.$ac_objext \
6491       conftest$ac_exeext conftest.$ac_ext
6492                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6493               LIBS="$LIBS $LIBICONV"
6494               cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <libintl.h>
6501 extern int _nl_msg_cat_cntr;
6502 extern
6503 #ifdef __cplusplus
6504 "C"
6505 #endif
6506 const char *_nl_expand_alias (const char *);
6507 int
6508 main ()
6509 {
6510 bindtextdomain ("", "");
6511 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6512   ;
6513   return 0;
6514 }
6515 _ACEOF
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518   (eval $ac_link) 2>conftest.er1
6519   ac_status=$?
6520   grep -v '^ *+' conftest.er1 >conftest.err
6521   rm -f conftest.er1
6522   cat conftest.err >&5
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } &&
6525          { ac_try='test -z "$ac_c_werror_flag"
6526                          || test ! -s conftest.err'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; } &&
6532          { ac_try='test -s conftest$ac_exeext'
6533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534   (eval $ac_try) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; }; then
6538   LIBINTL="$LIBINTL $LIBICONV"
6539                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6540                 gt_cv_func_gnugettext1_libintl=yes
6541
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 fi
6547 rm -f conftest.err conftest.$ac_objext \
6548       conftest$ac_exeext conftest.$ac_ext
6549             fi
6550             CPPFLAGS="$gt_save_CPPFLAGS"
6551             LIBS="$gt_save_LIBS"
6552 fi
6553 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6554 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6555         fi
6556
6557                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6558            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6559                 && test "$PACKAGE" != gettext-runtime \
6560                 && test "$PACKAGE" != gettext-tools; }; then
6561           gt_use_preinstalled_gnugettext=yes
6562         else
6563                     LIBINTL=
6564           LTLIBINTL=
6565           INCINTL=
6566         fi
6567
6568
6569
6570     if test -n "$INTL_MACOSX_LIBS"; then
6571       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6572          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6573                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6574         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6575       fi
6576     fi
6577
6578     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6579        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6580
6581 cat >>confdefs.h <<\_ACEOF
6582 #define ENABLE_NLS 1
6583 _ACEOF
6584
6585     else
6586       USE_NLS=no
6587     fi
6588   fi
6589
6590   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6591 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6592   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6593 echo "${ECHO_T}$USE_NLS" >&6
6594   if test "$USE_NLS" = "yes"; then
6595     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6596 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6597     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6598       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6599         gt_source="external libintl"
6600       else
6601         gt_source="libc"
6602       fi
6603     else
6604       gt_source="included intl directory"
6605     fi
6606     echo "$as_me:$LINENO: result: $gt_source" >&5
6607 echo "${ECHO_T}$gt_source" >&6
6608   fi
6609
6610   if test "$USE_NLS" = "yes"; then
6611
6612     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6613       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6614         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6615 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6616         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6617 echo "${ECHO_T}$LIBINTL" >&6
6618
6619   for element in $INCINTL; do
6620     haveit=
6621     for x in $CPPFLAGS; do
6622
6623   acl_save_prefix="$prefix"
6624   prefix="$acl_final_prefix"
6625   acl_save_exec_prefix="$exec_prefix"
6626   exec_prefix="$acl_final_exec_prefix"
6627   eval x=\"$x\"
6628   exec_prefix="$acl_save_exec_prefix"
6629   prefix="$acl_save_prefix"
6630
6631       if test "X$x" = "X$element"; then
6632         haveit=yes
6633         break
6634       fi
6635     done
6636     if test -z "$haveit"; then
6637       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6638     fi
6639   done
6640
6641       fi
6642
6643
6644 cat >>confdefs.h <<\_ACEOF
6645 #define HAVE_GETTEXT 1
6646 _ACEOF
6647
6648
6649 cat >>confdefs.h <<\_ACEOF
6650 #define HAVE_DCGETTEXT 1
6651 _ACEOF
6652
6653     fi
6654
6655         POSUB=po
6656   fi
6657
6658
6659
6660     INTLLIBS="$LIBINTL"
6661
6662
6663
6664
6665
6666
6667 if test x${prefix} = xNONE && test x${datadir} = x${prefix}/share ; then
6668    datadir=/usr/share
6669 fi
6670
6671 # ------------------------------------------------------------------
6672 #  If the user has not set --prefix, we set our default to nothing.
6673 #  In this case, if the user has not set --sysconfdir, we set it
6674 #  to the package default of /etc/bacula.  If either --prefix or
6675 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6676 # ------------------------------------------------------------------
6677 if test x${prefix} = xNONE ; then
6678     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6679         sysconfdir=/etc/bacula
6680     fi
6681     prefix=
6682 fi
6683 sysconfdir=`eval echo ${sysconfdir}`
6684 datadir=`eval echo ${datadir}`
6685 localedir=`eval echo ${datadir}/locale`
6686 cat >>confdefs.h <<_ACEOF
6687 #define LOCALEDIR "$localedir"
6688 _ACEOF
6689
6690
6691 # -------------------------------------------------------------------------
6692 #  If the user has not set --exec-prefix, we default to ${prefix}
6693 # -------------------------------------------------------------------------
6694 if test x${exec_prefix} = xNONE ; then
6695     exec_prefix=${prefix}
6696 fi
6697
6698 # ------------------------------------------------------------------
6699 # If the user has not set --sbindir, we set our default as /sbin
6700 # ------------------------------------------------------------------
6701 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6702     sbindir=${exec_prefix}/sbin
6703 fi
6704 sbindir=`eval echo ${sbindir}`
6705
6706 # -------------------------------------------------------------------------
6707 #  If the user has not set --mandir, we default to /usr/share/man
6708 # -------------------------------------------------------------------------
6709 if test x$mandir = x'${prefix}/man' ; then
6710    mandir=/usr/share/man
6711 fi
6712
6713
6714 # ------------------------------------------------------------------
6715 # All list of languages for which a translation exist. Each
6716 #  language is separated by a space.
6717 # ------------------------------------------------------------------
6718 ALL_LINGUAS=""
6719
6720 for ac_prog in msgfmt
6721 do
6722   # Extract the first word of "$ac_prog", so it can be a program name with args.
6723 set dummy $ac_prog; ac_word=$2
6724 echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6726 if test "${ac_cv_path_MSGFMT+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   case $MSGFMT in
6730   [\\/]* | ?:[\\/]*)
6731   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6732   ;;
6733   *)
6734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6736 do
6737   IFS=$as_save_IFS
6738   test -z "$as_dir" && as_dir=.
6739   for ac_exec_ext in '' $ac_executable_extensions; do
6740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743     break 2
6744   fi
6745 done
6746 done
6747
6748   ;;
6749 esac
6750 fi
6751 MSGFMT=$ac_cv_path_MSGFMT
6752
6753 if test -n "$MSGFMT"; then
6754   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6755 echo "${ECHO_T}$MSGFMT" >&6
6756 else
6757   echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6759 fi
6760
6761   test -n "$MSGFMT" && break
6762 done
6763 test -n "$MSGFMT" || MSGFMT="no"
6764
6765 if test "$MSGFMT" = "no"
6766 then
6767    echo 'msgfmt program not found, disabling NLS !'
6768    USE_NLS=no
6769    USE_INCLUDED_LIBINTL=no
6770 #else
6771 #   AM_GNU_GETTEXT
6772 fi
6773
6774
6775 support_mysql=no
6776 support_sqlite=no
6777 support_sqlite3=no
6778 support_postgresql=no
6779 support_smartalloc=yes
6780 support_readline=yes
6781 support_conio=yes
6782 support_gnome=no
6783 support_wx_console=no
6784 support_tls=no
6785 gnome_version=
6786 wx_version=
6787 support_static_tools=no
6788 support_static_fd=no
6789 support_static_sd=no
6790 support_static_dir=no
6791 support_static_cons=no
6792 support_python=no
6793 build_client_only=no
6794 cats=
6795 db_name=Internal
6796 DB_NAME=bdb
6797
6798
6799 # -------------------------------------------
6800 # gnome (default off)
6801 # -------------------------------------------
6802 # Check whether --enable-gnome or --disable-gnome was given.
6803 if test "${enable_gnome+set}" = set; then
6804   enableval="$enable_gnome"
6805   if test x$enableval = xyes; then
6806     support_gnome=yes
6807   fi
6808 fi;
6809
6810 GNOME_DIR=
6811 if test x$support_gnome = xyes; then
6812   abc=`$PKGCONFIG --exists libgnomeui-2.0`
6813   pkg=$?
6814   if test $pkg = 0; then
6815      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6816      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6817      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6818      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6819
6820
6821
6822
6823      GNOME_DIR=src/gnome2-console
6824      gnome_version="Version 2.x"
6825   else
6826      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6827 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6828    { (exit 1); exit 1; }; }
6829   fi
6830 fi
6831
6832
6833
6834 # -------------------------------------------
6835 # wx-console (default off)
6836 # -------------------------------------------
6837 # Check whether --enable-wx-console or --disable-wx-console was given.
6838 if test "${enable_wx_console+set}" = set; then
6839   enableval="$enable_wx_console"
6840   if test x$enableval = xyes; then
6841     support_wx_console=yes
6842   fi
6843 fi;
6844
6845 WX_DIR=
6846 if test x$support_wx_console = xyes; then
6847   abc=`$WXCONFIG $WXFLAGS --cppflags`
6848   pkg=$?
6849   if test $pkg = 0; then
6850      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6851      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6852      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6853
6854
6855
6856      WX_DIR=src/wx-console
6857   else
6858      echo " "
6859      echo "wx-config program not found. wx-console disabled."
6860      echo " "
6861      support_wx_console=no
6862   fi
6863 fi
6864
6865
6866
6867 # -------------------------------------------
6868 # tray-monitor (default off)
6869 # -------------------------------------------
6870 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6871 if test "${enable_tray_monitor+set}" = set; then
6872   enableval="$enable_tray_monitor"
6873   if test x$enableval = xyes; then
6874     support_tray_monitor=yes
6875   fi
6876 fi;
6877
6878 TRAY_MONITOR_DIR=
6879 if test x$support_tray_monitor = xyes; then
6880   abc=`$PKGCONFIG --exists gtk+-2.0`
6881   pkg=$?
6882   if test $pkg = 0; then
6883      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6884      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6885
6886
6887      TRAY_MONITOR_DIR=src/tray-monitor
6888      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6889      pkg=$?
6890      if test $pkg = 0; then
6891         cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_GTK_2_4 1
6893 _ACEOF
6894
6895      fi
6896   fi
6897 fi
6898
6899
6900 # -------------------------------------------
6901 # smartalloc (default off)
6902 # -------------------------------------------
6903 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6904 if test "${enable_smartalloc+set}" = set; then
6905   enableval="$enable_smartalloc"
6906   if test x$enableval = xno; then
6907     support_smartalloc=no
6908   fi
6909 fi;
6910
6911 if test x$support_smartalloc = xyes; then
6912    cat >>confdefs.h <<\_ACEOF
6913 #define SMARTALLOC 1
6914 _ACEOF
6915
6916 fi
6917
6918 # -------------------------------------------
6919 # static-tools (default off)
6920 # -------------------------------------------
6921 # Check whether --enable-static-tools or --disable-static-tools was given.
6922 if test "${enable_static_tools+set}" = set; then
6923   enableval="$enable_static_tools"
6924   if test x$enableval = xyes; then
6925      support_static_tools=yes
6926    fi
6927 fi;
6928
6929 TTOOL_LDFLAGS=
6930 if test x$support_static_tools = xyes; then
6931    TTOOL_LDFLAGS="-static"
6932 fi
6933
6934
6935 # -------------------------------------------
6936 # static-fd    (default off)
6937 # -------------------------------------------
6938 # Check whether --enable-static-fd or --disable-static-fd was given.
6939 if test "${enable_static_fd+set}" = set; then
6940   enableval="$enable_static_fd"
6941   if test x$enableval = xyes; then
6942      support_static_fd=yes
6943    fi
6944 fi;
6945
6946 STATIC_FD=
6947 if test x$support_static_fd = xyes; then
6948    STATIC_FD="static-bacula-fd"
6949 fi
6950
6951
6952 # -------------------------------------------
6953 # static-sd    (default off)
6954 # -------------------------------------------
6955 # Check whether --enable-static-sd or --disable-static-sd was given.
6956 if test "${enable_static_sd+set}" = set; then
6957   enableval="$enable_static_sd"
6958   if test x$enableval = xyes; then
6959      support_static_sd=yes
6960    fi
6961 fi;
6962
6963 STATIC_SD=
6964 if test x$support_static_sd = xyes; then
6965    STATIC_SD="static-bacula-sd"
6966 fi
6967
6968
6969 # -------------------------------------------
6970 # static-dir   (default off)
6971 # -------------------------------------------
6972 # Check whether --enable-static-dir or --disable-static-dir was given.
6973 if test "${enable_static_dir+set}" = set; then
6974   enableval="$enable_static_dir"
6975   if test x$enableval = xyes; then
6976      support_static_dir=yes
6977    fi
6978 fi;
6979
6980 STATIC_DIR=
6981 if test x$support_static_dir = xyes; then
6982    STATIC_DIR="static-bacula-dir"
6983 fi
6984
6985
6986 # -------------------------------------------
6987 # static-cons  (default off)
6988 # -------------------------------------------
6989 # Check whether --enable-static-cons or --disable-static-cons was given.
6990 if test "${enable_static_cons+set}" = set; then
6991   enableval="$enable_static_cons"
6992   if test x$enableval = xyes; then
6993      support_static_cons=yes
6994    fi
6995 fi;
6996
6997 STATIC_CONS=
6998 STATIC_GNOME_CONS=
6999 STATIC_WX_CONS=
7000 if test x$support_static_cons = xyes; then
7001    STATIC_CONS="static-bconsole"
7002    STATIC_GNOME_CONS="static-gnome-console"
7003    STATIC_WX_CONS="static-wx-console"
7004 fi
7005
7006
7007
7008
7009 # -------------------------------------------
7010 # client_only  (default off)
7011 # -------------------------------------------
7012 # Check whether --enable-client-only or --disable-client-only was given.
7013 if test "${enable_client_only+set}" = set; then
7014   enableval="$enable_client_only"
7015   if test x$enableval = xyes; then
7016      build_client_only=yes
7017     db_name=None
7018     DB_NAME=none
7019    fi
7020 fi;
7021 if test x$build_client_only = xno; then
7022    ALL_DIRS="subdirs"
7023 else
7024    ALL_DIRS=""
7025 fi
7026
7027
7028 # ---------------------------------------------------
7029 # Check for conio (Bacula readline substitute)(
7030 # ---------------------------------------------------
7031 # this allows you to turn it completely off
7032 # Check whether --enable-conio or --disable-conio was given.
7033 if test "${enable_conio+set}" = set; then
7034   enableval="$enable_conio"
7035   if test x$enableval = xno; then
7036     support_conio=no
7037   fi
7038 fi;
7039
7040 got_conio="no"
7041 if test x$support_conio = xyes; then
7042    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7044 if test "${ac_cv_header_stdc+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h.  */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h.  */
7053 #include <stdlib.h>
7054 #include <stdarg.h>
7055 #include <string.h>
7056 #include <float.h>
7057
7058 int
7059 main ()
7060 {
7061
7062   ;
7063   return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068   (eval $ac_compile) 2>conftest.er1
7069   ac_status=$?
7070   grep -v '^ *+' conftest.er1 >conftest.err
7071   rm -f conftest.er1
7072   cat conftest.err >&5
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } &&
7075          { ac_try='test -z "$ac_c_werror_flag"
7076                          || test ! -s conftest.err'
7077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078   (eval $ac_try) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }; } &&
7082          { ac_try='test -s conftest.$ac_objext'
7083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084   (eval $ac_try) 2>&5
7085   ac_status=$?
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); }; }; then
7088   ac_cv_header_stdc=yes
7089 else
7090   echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_header_stdc=no
7094 fi
7095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7096
7097 if test $ac_cv_header_stdc = yes; then
7098   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7099   cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105 #include <string.h>
7106
7107 _ACEOF
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109   $EGREP "memchr" >/dev/null 2>&1; then
7110   :
7111 else
7112   ac_cv_header_stdc=no
7113 fi
7114 rm -f conftest*
7115
7116 fi
7117
7118 if test $ac_cv_header_stdc = yes; then
7119   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7120   cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h.  */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h.  */
7126 #include <stdlib.h>
7127
7128 _ACEOF
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130   $EGREP "free" >/dev/null 2>&1; then
7131   :
7132 else
7133   ac_cv_header_stdc=no
7134 fi
7135 rm -f conftest*
7136
7137 fi
7138
7139 if test $ac_cv_header_stdc = yes; then
7140   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7141   if test "$cross_compiling" = yes; then
7142   :
7143 else
7144   cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h.  */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h.  */
7150 #include <ctype.h>
7151 #if ((' ' & 0x0FF) == 0x020)
7152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7154 #else
7155 # define ISLOWER(c) \
7156                    (('a' <= (c) && (c) <= 'i') \
7157                      || ('j' <= (c) && (c) <= 'r') \
7158                      || ('s' <= (c) && (c) <= 'z'))
7159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7160 #endif
7161
7162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7163 int
7164 main ()
7165 {
7166   int i;
7167   for (i = 0; i < 256; i++)
7168     if (XOR (islower (i), ISLOWER (i))
7169         || toupper (i) != TOUPPER (i))
7170       exit(2);
7171   exit (0);
7172 }
7173 _ACEOF
7174 rm -f conftest$ac_exeext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176   (eval $ac_link) 2>&5
7177   ac_status=$?
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; }; then
7185   :
7186 else
7187   echo "$as_me: program exited with status $ac_status" >&5
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ( exit $ac_status )
7192 ac_cv_header_stdc=no
7193 fi
7194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7195 fi
7196 fi
7197 fi
7198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7200 if test $ac_cv_header_stdc = yes; then
7201
7202 cat >>confdefs.h <<\_ACEOF
7203 #define STDC_HEADERS 1
7204 _ACEOF
7205
7206 fi
7207
7208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7219                   inttypes.h stdint.h unistd.h
7220 do
7221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 echo "$as_me:$LINENO: checking for $ac_header" >&5
7223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h.  */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h.  */
7233 $ac_includes_default
7234
7235 #include <$ac_header>
7236 _ACEOF
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239   (eval $ac_compile) 2>conftest.er1
7240   ac_status=$?
7241   grep -v '^ *+' conftest.er1 >conftest.err
7242   rm -f conftest.er1
7243   cat conftest.err >&5
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -z "$ac_c_werror_flag"
7247                          || test ! -s conftest.err'
7248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249   (eval $ac_try) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; } &&
7253          { ac_try='test -s conftest.$ac_objext'
7254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255   (eval $ac_try) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); }; }; then
7259   eval "$as_ac_Header=yes"
7260 else
7261   echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 eval "$as_ac_Header=no"
7265 fi
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7271   cat >>confdefs.h <<_ACEOF
7272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273 _ACEOF
7274
7275 fi
7276
7277 done
7278
7279
7280 if test "${ac_cv_header_termcap_h+set}" = set; then
7281   echo "$as_me:$LINENO: checking for termcap.h" >&5
7282 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7283 if test "${ac_cv_header_termcap_h+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 fi
7286 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7287 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7288 else
7289   # Is the header compilable?
7290 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7291 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 $ac_includes_default
7299 #include <termcap.h>
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303   (eval $ac_compile) 2>conftest.er1
7304   ac_status=$?
7305   grep -v '^ *+' conftest.er1 >conftest.err
7306   rm -f conftest.er1
7307   cat conftest.err >&5
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } &&
7310          { ac_try='test -z "$ac_c_werror_flag"
7311                          || test ! -s conftest.err'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; } &&
7317          { ac_try='test -s conftest.$ac_objext'
7318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319   (eval $ac_try) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; }; then
7323   ac_header_compiler=yes
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328 ac_header_compiler=no
7329 fi
7330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7332 echo "${ECHO_T}$ac_header_compiler" >&6
7333
7334 # Is the header present?
7335 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7336 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h.  */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h.  */
7343 #include <termcap.h>
7344 _ACEOF
7345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } >/dev/null; then
7353   if test -s conftest.err; then
7354     ac_cpp_err=$ac_c_preproc_warn_flag
7355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7356   else
7357     ac_cpp_err=
7358   fi
7359 else
7360   ac_cpp_err=yes
7361 fi
7362 if test -z "$ac_cpp_err"; then
7363   ac_header_preproc=yes
7364 else
7365   echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368   ac_header_preproc=no
7369 fi
7370 rm -f conftest.err conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7372 echo "${ECHO_T}$ac_header_preproc" >&6
7373
7374 # So?  What about this header?
7375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7376   yes:no: )
7377     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7378 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7379     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7380 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7381     ac_header_preproc=yes
7382     ;;
7383   no:yes:* )
7384     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7385 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7386     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
7387 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
7388     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7389 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7390     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
7391 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7392     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7393 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7394     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7395 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7396     (
7397       cat <<\_ASBOX
7398 ## ------------------------------------------ ##
7399 ## Report this to the AC_PACKAGE_NAME lists.  ##
7400 ## ------------------------------------------ ##
7401 _ASBOX
7402     ) |
7403       sed "s/^/$as_me: WARNING:     /" >&2
7404     ;;
7405 esac
7406 echo "$as_me:$LINENO: checking for termcap.h" >&5
7407 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7408 if test "${ac_cv_header_termcap_h+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   ac_cv_header_termcap_h=$ac_header_preproc
7412 fi
7413 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7414 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7415
7416 fi
7417 if test $ac_cv_header_termcap_h = yes; then
7418    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7419 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7420 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   ac_check_lib_save_LIBS=$LIBS
7424 LIBS="-ltermcap  $LIBS"
7425 cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h.  */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h.  */
7431
7432 /* Override any gcc2 internal prototype to avoid an error.  */
7433 #ifdef __cplusplus
7434 extern "C"
7435 #endif
7436 /* We use char because int might match the return type of a gcc2
7437    builtin and then its argument prototype would still apply.  */
7438 char tgetent ();
7439 int
7440 main ()
7441 {
7442 tgetent ();
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449   (eval $ac_link) 2>conftest.er1
7450   ac_status=$?
7451   grep -v '^ *+' conftest.er1 >conftest.err
7452   rm -f conftest.er1
7453   cat conftest.err >&5
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } &&
7456          { ac_try='test -z "$ac_c_werror_flag"
7457                          || test ! -s conftest.err'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; } &&
7463          { ac_try='test -s conftest$ac_exeext'
7464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465   (eval $ac_try) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }; }; then
7469   ac_cv_lib_termcap_tgetent=yes
7470 else
7471   echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 ac_cv_lib_termcap_tgetent=no
7475 fi
7476 rm -f conftest.err conftest.$ac_objext \
7477       conftest$ac_exeext conftest.$ac_ext
7478 LIBS=$ac_check_lib_save_LIBS
7479 fi
7480 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7481 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7482 if test $ac_cv_lib_termcap_tgetent = yes; then
7483    CONS_LIBS="-ltermcap"
7484          CONS_OBJ="conio.o"
7485          CONS_SRC="conio.c"
7486          got_conio="yes"
7487          support_readline=no
7488
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_CONIO 1
7491 _ACEOF
7492
7493
7494 else
7495    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7496 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7497 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   ac_check_lib_save_LIBS=$LIBS
7501 LIBS="-lncurses  $LIBS"
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h.  */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h.  */
7508
7509 /* Override any gcc2 internal prototype to avoid an error.  */
7510 #ifdef __cplusplus
7511 extern "C"
7512 #endif
7513 /* We use char because int might match the return type of a gcc2
7514    builtin and then its argument prototype would still apply.  */
7515 char tgetent ();
7516 int
7517 main ()
7518 {
7519 tgetent ();
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 rm -f conftest.$ac_objext conftest$ac_exeext
7525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7526   (eval $ac_link) 2>conftest.er1
7527   ac_status=$?
7528   grep -v '^ *+' conftest.er1 >conftest.err
7529   rm -f conftest.er1
7530   cat conftest.err >&5
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); } &&
7533          { ac_try='test -z "$ac_c_werror_flag"
7534                          || test ! -s conftest.err'
7535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536   (eval $ac_try) 2>&5
7537   ac_status=$?
7538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); }; } &&
7540          { ac_try='test -s conftest$ac_exeext'
7541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542   (eval $ac_try) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); }; }; then
7546   ac_cv_lib_ncurses_tgetent=yes
7547 else
7548   echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551 ac_cv_lib_ncurses_tgetent=no
7552 fi
7553 rm -f conftest.err conftest.$ac_objext \
7554       conftest$ac_exeext conftest.$ac_ext
7555 LIBS=$ac_check_lib_save_LIBS
7556 fi
7557 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7558 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7559 if test $ac_cv_lib_ncurses_tgetent = yes; then
7560    CONS_LIBS="-lncurses"
7561            CONS_OBJ="conio.o"
7562            CONS_SRC="conio.c"
7563            got_conio="yes"
7564            support_readline=no
7565
7566 cat >>confdefs.h <<\_ACEOF
7567 #define HAVE_CONIO 1
7568 _ACEOF
7569
7570
7571 fi
7572
7573
7574 fi
7575
7576
7577 else
7578
7579
7580 for ac_header in curses.h
7581 do
7582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7584   echo "$as_me:$LINENO: checking for $ac_header" >&5
7585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 fi
7589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7591 else
7592   # Is the header compilable?
7593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h.  */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h.  */
7601 $ac_includes_default
7602 #include <$ac_header>
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606   (eval $ac_compile) 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -z "$ac_c_werror_flag"
7614                          || test ! -s conftest.err'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; } &&
7620          { ac_try='test -s conftest.$ac_objext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   ac_header_compiler=yes
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_header_compiler=no
7632 fi
7633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635 echo "${ECHO_T}$ac_header_compiler" >&6
7636
7637 # Is the header present?
7638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646 #include <$ac_header>
7647 _ACEOF
7648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7650   ac_status=$?
7651   grep -v '^ *+' conftest.er1 >conftest.err
7652   rm -f conftest.er1
7653   cat conftest.err >&5
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } >/dev/null; then
7656   if test -s conftest.err; then
7657     ac_cpp_err=$ac_c_preproc_warn_flag
7658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7659   else
7660     ac_cpp_err=
7661   fi
7662 else
7663   ac_cpp_err=yes
7664 fi
7665 if test -z "$ac_cpp_err"; then
7666   ac_header_preproc=yes
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671   ac_header_preproc=no
7672 fi
7673 rm -f conftest.err conftest.$ac_ext
7674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7675 echo "${ECHO_T}$ac_header_preproc" >&6
7676
7677 # So?  What about this header?
7678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7679   yes:no: )
7680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7684     ac_header_preproc=yes
7685     ;;
7686   no:yes:* )
7687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7699     (
7700       cat <<\_ASBOX
7701 ## ------------------------------------------ ##
7702 ## Report this to the AC_PACKAGE_NAME lists.  ##
7703 ## ------------------------------------------ ##
7704 _ASBOX
7705     ) |
7706       sed "s/^/$as_me: WARNING:     /" >&2
7707     ;;
7708 esac
7709 echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   eval "$as_ac_Header=\$ac_header_preproc"
7715 fi
7716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7718
7719 fi
7720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721   cat >>confdefs.h <<_ACEOF
7722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 _ACEOF
7724
7725 fi
7726
7727 done
7728
7729          echo "$as_me:$LINENO: checking for term.h" >&5
7730 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7731 if test "${ac_cv_header_term_h+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740 #if HAVE_CURSES_H
7741 #include <curses.h>
7742 #endif
7743
7744
7745 #include <term.h>
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749   (eval $ac_compile) 2>conftest.er1
7750   ac_status=$?
7751   grep -v '^ *+' conftest.er1 >conftest.err
7752   rm -f conftest.er1
7753   cat conftest.err >&5
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); } &&
7756          { ac_try='test -z "$ac_c_werror_flag"
7757                          || test ! -s conftest.err'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; } &&
7763          { ac_try='test -s conftest.$ac_objext'
7764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765   (eval $ac_try) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; }; then
7769   ac_cv_header_term_h=yes
7770 else
7771   echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ac_cv_header_term_h=no
7775 fi
7776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7777 fi
7778 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7779 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7780 if test $ac_cv_header_term_h = yes; then
7781    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7782 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7783 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lcurses  $LIBS"
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794
7795 /* Override any gcc2 internal prototype to avoid an error.  */
7796 #ifdef __cplusplus
7797 extern "C"
7798 #endif
7799 /* We use char because int might match the return type of a gcc2
7800    builtin and then its argument prototype would still apply.  */
7801 char tgetent ();
7802 int
7803 main ()
7804 {
7805 tgetent ();
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812   (eval $ac_link) 2>conftest.er1
7813   ac_status=$?
7814   grep -v '^ *+' conftest.er1 >conftest.err
7815   rm -f conftest.er1
7816   cat conftest.err >&5
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } &&
7819          { ac_try='test -z "$ac_c_werror_flag"
7820                          || test ! -s conftest.err'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; } &&
7826          { ac_try='test -s conftest$ac_exeext'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; }; then
7832   ac_cv_lib_curses_tgetent=yes
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ac_cv_lib_curses_tgetent=no
7838 fi
7839 rm -f conftest.err conftest.$ac_objext \
7840       conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7842 fi
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7844 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7845 if test $ac_cv_lib_curses_tgetent = yes; then
7846    CONS_LIBS="-lcurses"
7847                    CONS_OBJ="conio.o"
7848                    CONS_SRC="conio.c"
7849                    got_conio="yes"
7850                    support_readline=no
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_CONIO 1
7854 _ACEOF
7855
7856
7857 fi
7858
7859
7860 else
7861    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7862 fi
7863
7864
7865
7866 fi
7867
7868
7869 fi
7870
7871
7872 # ---------------------------------------------------
7873 # Check for readline support/directory (default off)
7874 # ---------------------------------------------------
7875 # this allows you to turn it completely off
7876 # Check whether --enable-readline or --disable-readline was given.
7877 if test "${enable_readline+set}" = set; then
7878   enableval="$enable_readline"
7879   if test x$enableval = xno; then
7880     support_readline=no
7881   fi
7882 fi;
7883
7884 got_readline="no"
7885 READLINE_SRC=
7886 if test x$support_readline = xyes; then
7887
7888 # Check whether --with-readline or --without-readline was given.
7889 if test "${with_readline+set}" = set; then
7890   withval="$with_readline"
7891
7892         case "$with_readline" in
7893         no) : ;;
7894         yes|*)
7895           if test -f ${with_readline}/readline.h; then
7896              CONS_INC="-I${with_readline}"
7897              CONS_LDFLAGS="-L$with_readline"
7898           elif test -f ${with_readline}/include/readline/readline.h; then
7899              CONS_INC="-I${with_readline}/include/readline"
7900              CONS_LDFLAGS="-L${with_readline}/lib"
7901              with_readline="${with_readline}/include/readline"
7902           else
7903              with_readline="/usr/include/readline"
7904           fi
7905           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7908 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 fi
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7914 else
7915   # Is the header compilable?
7916 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7917 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924 $ac_includes_default
7925 #include <${with_readline}/readline.h>
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929   (eval $ac_compile) 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag"
7937                          || test ! -s conftest.err'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; } &&
7943          { ac_try='test -s conftest.$ac_objext'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949   ac_header_compiler=yes
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 ac_header_compiler=no
7955 fi
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7958 echo "${ECHO_T}$ac_header_compiler" >&6
7959
7960 # Is the header present?
7961 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
7962 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h.  */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h.  */
7969 #include <${with_readline}/readline.h>
7970 _ACEOF
7971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } >/dev/null; then
7979   if test -s conftest.err; then
7980     ac_cpp_err=$ac_c_preproc_warn_flag
7981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7982   else
7983     ac_cpp_err=
7984   fi
7985 else
7986   ac_cpp_err=yes
7987 fi
7988 if test -z "$ac_cpp_err"; then
7989   ac_header_preproc=yes
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994   ac_header_preproc=no
7995 fi
7996 rm -f conftest.err conftest.$ac_ext
7997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7998 echo "${ECHO_T}$ac_header_preproc" >&6
7999
8000 # So?  What about this header?
8001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8002   yes:no: )
8003     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8004 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8005     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8006 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8007     ac_header_preproc=yes
8008     ;;
8009   no:yes:* )
8010     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8011 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8012     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
8013 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
8014     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8015 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8016     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8017 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8018     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8019 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8020     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8021 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8022     (
8023       cat <<\_ASBOX
8024 ## ------------------------------------------ ##
8025 ## Report this to the AC_PACKAGE_NAME lists.  ##
8026 ## ------------------------------------------ ##
8027 _ASBOX
8028     ) |
8029       sed "s/^/$as_me: WARNING:     /" >&2
8030     ;;
8031 esac
8032 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8033 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   eval "$as_ac_Header=\$ac_header_preproc"
8038 fi
8039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8041
8042 fi
8043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044    cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_READLINE 1
8046 _ACEOF
8047
8048                CONS_LIBS="-lreadline -lhistory -ltermcap"
8049                got_readline="yes"
8050
8051 else
8052    echo " "
8053                echo "readline.h not found. readline turned off ..."
8054                echo " "
8055
8056
8057 fi
8058
8059
8060           ;;
8061         esac
8062
8063 else
8064
8065        # check for standard readline library
8066        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8067   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8068 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8069 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 fi
8072 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8073 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8074 else
8075   # Is the header compilable?
8076 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8077 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 $ac_includes_default
8085 #include </usr/include/readline/readline.h>
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089   (eval $ac_compile) 2>conftest.er1
8090   ac_status=$?
8091   grep -v '^ *+' conftest.er1 >conftest.err
8092   rm -f conftest.er1
8093   cat conftest.err >&5
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); } &&
8096          { ac_try='test -z "$ac_c_werror_flag"
8097                          || test ! -s conftest.err'
8098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099   (eval $ac_try) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; } &&
8103          { ac_try='test -s conftest.$ac_objext'
8104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105   (eval $ac_try) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); }; }; then
8109   ac_header_compiler=yes
8110 else
8111   echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114 ac_header_compiler=no
8115 fi
8116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8118 echo "${ECHO_T}$ac_header_compiler" >&6
8119
8120 # Is the header present?
8121 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8122 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h.  */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h.  */
8129 #include </usr/include/readline/readline.h>
8130 _ACEOF
8131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } >/dev/null; then
8139   if test -s conftest.err; then
8140     ac_cpp_err=$ac_c_preproc_warn_flag
8141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8142   else
8143     ac_cpp_err=
8144   fi
8145 else
8146   ac_cpp_err=yes
8147 fi
8148 if test -z "$ac_cpp_err"; then
8149   ac_header_preproc=yes
8150 else
8151   echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154   ac_header_preproc=no
8155 fi
8156 rm -f conftest.err conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8158 echo "${ECHO_T}$ac_header_preproc" >&6
8159
8160 # So?  What about this header?
8161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8162   yes:no: )
8163     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8164 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8165     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8166 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8167     ac_header_preproc=yes
8168     ;;
8169   no:yes:* )
8170     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8171 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8172     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
8173 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8174     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8175 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8176     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8177 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8178     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8179 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8180     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8181 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8182     (
8183       cat <<\_ASBOX
8184 ## ------------------------------------------ ##
8185 ## Report this to the AC_PACKAGE_NAME lists.  ##
8186 ## ------------------------------------------ ##
8187 _ASBOX
8188     ) |
8189       sed "s/^/$as_me: WARNING:     /" >&2
8190     ;;
8191 esac
8192 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8193 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8194 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8198 fi
8199 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8200 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8201
8202 fi
8203 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8204    cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_READLINE 1
8206 _ACEOF
8207
8208            got_readline="yes"
8209            CONS_INC="-I/usr/include/readline"
8210            CONS_LIBS="-lreadline -ltermcap"
8211
8212 else
8213
8214            # Did not find standard library, so try Bacula's default
8215             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8217   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8218 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 fi
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8224 else
8225   # Is the header compilable?
8226 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8227 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 $ac_includes_default
8235 #include <${TOP_DIR}/depkgs/readline/readline.h>
8236 _ACEOF
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239   (eval $ac_compile) 2>conftest.er1
8240   ac_status=$?
8241   grep -v '^ *+' conftest.er1 >conftest.err
8242   rm -f conftest.er1
8243   cat conftest.err >&5
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -z "$ac_c_werror_flag"
8247                          || test ! -s conftest.err'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; } &&
8253          { ac_try='test -s conftest.$ac_objext'
8254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255   (eval $ac_try) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); }; }; then
8259   ac_header_compiler=yes
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264 ac_header_compiler=no
8265 fi
8266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8269
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8272 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 #include <${TOP_DIR}/depkgs/readline/readline.h>
8280 _ACEOF
8281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } >/dev/null; then
8289   if test -s conftest.err; then
8290     ac_cpp_err=$ac_c_preproc_warn_flag
8291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8292   else
8293     ac_cpp_err=
8294   fi
8295 else
8296   ac_cpp_err=yes
8297 fi
8298 if test -z "$ac_cpp_err"; then
8299   ac_header_preproc=yes
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304   ac_header_preproc=no
8305 fi
8306 rm -f conftest.err conftest.$ac_ext
8307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8308 echo "${ECHO_T}$ac_header_preproc" >&6
8309
8310 # So?  What about this header?
8311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8312   yes:no: )
8313     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8314 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8316 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8317     ac_header_preproc=yes
8318     ;;
8319   no:yes:* )
8320     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8321 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8322     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
8323 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8324     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8325 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8326     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8327 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8328     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8329 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8330     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8331 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8332     (
8333       cat <<\_ASBOX
8334 ## ------------------------------------------ ##
8335 ## Report this to the AC_PACKAGE_NAME lists.  ##
8336 ## ------------------------------------------ ##
8337 _ASBOX
8338     ) |
8339       sed "s/^/$as_me: WARNING:     /" >&2
8340     ;;
8341 esac
8342 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8343 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   eval "$as_ac_Header=\$ac_header_preproc"
8348 fi
8349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8351
8352 fi
8353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8354    cat >>confdefs.h <<\_ACEOF
8355 #define HAVE_READLINE 1
8356 _ACEOF
8357
8358                  got_readline="yes"
8359                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
8360                  CONS_LIBS="-lreadline -lhistory -ltermcap"
8361                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8362                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8363
8364 else
8365    echo " "
8366                 echo "readline.h not found. readline turned off ..."
8367                 echo " "
8368
8369
8370 fi
8371
8372
8373
8374
8375 fi
8376
8377
8378
8379
8380 fi;
8381 fi
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 # Minimal stuff for readline Makefile configuration
8393 MAKE_SHELL=/bin/sh
8394
8395 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8396 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8397 if test "${ac_cv_header_stat_broken+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406 #include <sys/types.h>
8407 #include <sys/stat.h>
8408
8409 #if defined(S_ISBLK) && defined(S_IFDIR)
8410 # if S_ISBLK (S_IFDIR)
8411 You lose.
8412 # endif
8413 #endif
8414
8415 #if defined(S_ISBLK) && defined(S_IFCHR)
8416 # if S_ISBLK (S_IFCHR)
8417 You lose.
8418 # endif
8419 #endif
8420
8421 #if defined(S_ISLNK) && defined(S_IFREG)
8422 # if S_ISLNK (S_IFREG)
8423 You lose.
8424 # endif
8425 #endif
8426
8427 #if defined(S_ISSOCK) && defined(S_IFREG)
8428 # if S_ISSOCK (S_IFREG)
8429 You lose.
8430 # endif
8431 #endif
8432
8433 _ACEOF
8434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8435   $EGREP "You lose" >/dev/null 2>&1; then
8436   ac_cv_header_stat_broken=yes
8437 else
8438   ac_cv_header_stat_broken=no
8439 fi
8440 rm -f conftest*
8441
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8445 if test $ac_cv_header_stat_broken = yes; then
8446
8447 cat >>confdefs.h <<\_ACEOF
8448 #define STAT_MACROS_BROKEN 1
8449 _ACEOF
8450
8451 fi
8452
8453
8454
8455
8456
8457
8458 ac_header_dirent=no
8459 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8460   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8461 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8462 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472 #include <sys/types.h>
8473 #include <$ac_hdr>
8474
8475 int
8476 main ()
8477 {
8478 if ((DIR *) 0)
8479 return 0;
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486   (eval $ac_compile) 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } &&
8493          { ac_try='test -z "$ac_c_werror_flag"
8494                          || test ! -s conftest.err'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest.$ac_objext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   eval "$as_ac_Header=yes"
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 eval "$as_ac_Header=no"
8512 fi
8513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8518   cat >>confdefs.h <<_ACEOF
8519 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8520 _ACEOF
8521
8522 ac_header_dirent=$ac_hdr; break
8523 fi
8524
8525 done
8526 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8527 if test $ac_header_dirent = dirent.h; then
8528   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8529 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8530 if test "${ac_cv_search_opendir+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   ac_func_search_save_LIBS=$LIBS
8534 ac_cv_search_opendir=no
8535 cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541
8542 /* Override any gcc2 internal prototype to avoid an error.  */
8543 #ifdef __cplusplus
8544 extern "C"
8545 #endif
8546 /* We use char because int might match the return type of a gcc2
8547    builtin and then its argument prototype would still apply.  */
8548 char opendir ();
8549 int
8550 main ()
8551 {
8552 opendir ();
8553   ;
8554   return 0;
8555 }
8556 _ACEOF
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559   (eval $ac_link) 2>conftest.er1
8560   ac_status=$?
8561   grep -v '^ *+' conftest.er1 >conftest.err
8562   rm -f conftest.er1
8563   cat conftest.err >&5
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); } &&
8566          { ac_try='test -z "$ac_c_werror_flag"
8567                          || test ! -s conftest.err'
8568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569   (eval $ac_try) 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }; } &&
8573          { ac_try='test -s conftest$ac_exeext'
8574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575   (eval $ac_try) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); }; }; then
8579   ac_cv_search_opendir="none required"
8580 else
8581   echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8583
8584 fi
8585 rm -f conftest.err conftest.$ac_objext \
8586       conftest$ac_exeext conftest.$ac_ext
8587 if test "$ac_cv_search_opendir" = no; then
8588   for ac_lib in dir; do
8589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8590     cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 /* Override any gcc2 internal prototype to avoid an error.  */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 /* We use char because int might match the return type of a gcc2
8602    builtin and then its argument prototype would still apply.  */
8603 char opendir ();
8604 int
8605 main ()
8606 {
8607 opendir ();
8608   ;
8609   return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614   (eval $ac_link) 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -z "$ac_c_werror_flag"
8622                          || test ! -s conftest.err'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; } &&
8628          { ac_try='test -s conftest$ac_exeext'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   ac_cv_search_opendir="-l$ac_lib"
8635 break
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 fi
8641 rm -f conftest.err conftest.$ac_objext \
8642       conftest$ac_exeext conftest.$ac_ext
8643   done
8644 fi
8645 LIBS=$ac_func_search_save_LIBS
8646 fi
8647 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8648 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8649 if test "$ac_cv_search_opendir" != no; then
8650   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8651
8652 fi
8653
8654 else
8655   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8656 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8657 if test "${ac_cv_search_opendir+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   ac_func_search_save_LIBS=$LIBS
8661 ac_cv_search_opendir=no
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668
8669 /* Override any gcc2 internal prototype to avoid an error.  */
8670 #ifdef __cplusplus
8671 extern "C"
8672 #endif
8673 /* We use char because int might match the return type of a gcc2
8674    builtin and then its argument prototype would still apply.  */
8675 char opendir ();
8676 int
8677 main ()
8678 {
8679 opendir ();
8680   ;
8681   return 0;
8682 }
8683 _ACEOF
8684 rm -f conftest.$ac_objext conftest$ac_exeext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8686   (eval $ac_link) 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
8690   cat conftest.err >&5
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } &&
8693          { ac_try='test -z "$ac_c_werror_flag"
8694                          || test ! -s conftest.err'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; } &&
8700          { ac_try='test -s conftest$ac_exeext'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; }; then
8706   ac_cv_search_opendir="none required"
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 fi
8712 rm -f conftest.err conftest.$ac_objext \
8713       conftest$ac_exeext conftest.$ac_ext
8714 if test "$ac_cv_search_opendir" = no; then
8715   for ac_lib in x; do
8716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8717     cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723
8724 /* Override any gcc2 internal prototype to avoid an error.  */
8725 #ifdef __cplusplus
8726 extern "C"
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729    builtin and then its argument prototype would still apply.  */
8730 char opendir ();
8731 int
8732 main ()
8733 {
8734 opendir ();
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741   (eval $ac_link) 2>conftest.er1
8742   ac_status=$?
8743   grep -v '^ *+' conftest.er1 >conftest.err
8744   rm -f conftest.er1
8745   cat conftest.err >&5
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); } &&
8748          { ac_try='test -z "$ac_c_werror_flag"
8749                          || test ! -s conftest.err'
8750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751   (eval $ac_try) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); }; } &&
8755          { ac_try='test -s conftest$ac_exeext'
8756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757   (eval $ac_try) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; }; then
8761   ac_cv_search_opendir="-l$ac_lib"
8762 break
8763 else
8764   echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 fi
8768 rm -f conftest.err conftest.$ac_objext \
8769       conftest$ac_exeext conftest.$ac_ext
8770   done
8771 fi
8772 LIBS=$ac_func_search_save_LIBS
8773 fi
8774 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8775 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8776 if test "$ac_cv_search_opendir" != no; then
8777   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8778
8779 fi
8780
8781 fi
8782
8783
8784
8785
8786
8787
8788
8789
8790 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8791 do
8792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8793 echo "$as_me:$LINENO: checking for $ac_func" >&5
8794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_var+set}\" = set"; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8806 #define $ac_func innocuous_$ac_func
8807
8808 /* System header to define __stub macros and hopefully few prototypes,
8809     which can conflict with char $ac_func (); below.
8810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8811     <limits.h> exists even on freestanding compilers.  */
8812
8813 #ifdef __STDC__
8814 # include <limits.h>
8815 #else
8816 # include <assert.h>
8817 #endif
8818
8819 #undef $ac_func
8820
8821 /* Override any gcc2 internal prototype to avoid an error.  */
8822 #ifdef __cplusplus
8823 extern "C"
8824 {
8825 #endif
8826 /* We use char because int might match the return type of a gcc2
8827    builtin and then its argument prototype would still apply.  */
8828 char $ac_func ();
8829 /* The GNU C library defines this for functions which it implements
8830     to always fail with ENOSYS.  Some functions are actually named
8831     something starting with __ and the normal name is an alias.  */
8832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8833 choke me
8834 #else
8835 char (*f) () = $ac_func;
8836 #endif
8837 #ifdef __cplusplus
8838 }
8839 #endif
8840
8841 int
8842 main ()
8843 {
8844 return f != $ac_func;
8845   ;
8846   return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851   (eval $ac_link) 2>conftest.er1
8852   ac_status=$?
8853   grep -v '^ *+' conftest.er1 >conftest.err
8854   rm -f conftest.er1
8855   cat conftest.err >&5
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } &&
8858          { ac_try='test -z "$ac_c_werror_flag"
8859                          || test ! -s conftest.err'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest$ac_exeext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   eval "$as_ac_var=yes"
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 eval "$as_ac_var=no"
8877 fi
8878 rm -f conftest.err conftest.$ac_objext \
8879       conftest$ac_exeext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8883 if test `eval echo '${'$as_ac_var'}'` = yes; then
8884   cat >>confdefs.h <<_ACEOF
8885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8886 _ACEOF
8887
8888 fi
8889 done
8890
8891
8892
8893 for ac_func in nanosleep nl_langinfo
8894 do
8895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8896 echo "$as_me:$LINENO: checking for $ac_func" >&5
8897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8898 if eval "test \"\${$as_ac_var+set}\" = set"; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901   cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8909 #define $ac_func innocuous_$ac_func
8910
8911 /* System header to define __stub macros and hopefully few prototypes,
8912     which can conflict with char $ac_func (); below.
8913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8914     <limits.h> exists even on freestanding compilers.  */
8915
8916 #ifdef __STDC__
8917 # include <limits.h>
8918 #else
8919 # include <assert.h>
8920 #endif
8921
8922 #undef $ac_func
8923
8924 /* Override any gcc2 internal prototype to avoid an error.  */
8925 #ifdef __cplusplus
8926 extern "C"
8927 {
8928 #endif
8929 /* We use char because int might match the return type of a gcc2
8930    builtin and then its argument prototype would still apply.  */
8931 char $ac_func ();
8932 /* The GNU C library defines this for functions which it implements
8933     to always fail with ENOSYS.  Some functions are actually named
8934     something starting with __ and the normal name is an alias.  */
8935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8936 choke me
8937 #else
8938 char (*f) () = $ac_func;
8939 #endif
8940 #ifdef __cplusplus
8941 }
8942 #endif
8943
8944 int
8945 main ()
8946 {
8947 return f != $ac_func;
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954   (eval $ac_link) 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -z "$ac_c_werror_flag"
8962                          || test ! -s conftest.err'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; } &&
8968          { ac_try='test -s conftest$ac_exeext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   eval "$as_ac_var=yes"
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 eval "$as_ac_var=no"
8980 fi
8981 rm -f conftest.err conftest.$ac_objext \
8982       conftest$ac_exeext conftest.$ac_ext
8983 fi
8984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8986 if test `eval echo '${'$as_ac_var'}'` = yes; then
8987   cat >>confdefs.h <<_ACEOF
8988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8989 _ACEOF
8990
8991 fi
8992 done
8993
8994
8995 for ac_header in varargs.h
8996 do
8997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999   echo "$as_me:$LINENO: checking for $ac_header" >&5
9000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 fi
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9006 else
9007   # Is the header compilable?
9008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016 $ac_includes_default
9017 #include <$ac_header>
9018 _ACEOF
9019 rm -f conftest.$ac_objext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021   (eval $ac_compile) 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } &&
9028          { ac_try='test -z "$ac_c_werror_flag"
9029                          || test ! -s conftest.err'
9030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031   (eval $ac_try) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; } &&
9035          { ac_try='test -s conftest.$ac_objext'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; }; then
9041   ac_header_compiler=yes
9042 else
9043   echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9045
9046 ac_header_compiler=no
9047 fi
9048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9050 echo "${ECHO_T}$ac_header_compiler" >&6
9051
9052 # Is the header present?
9053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h.  */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h.  */
9061 #include <$ac_header>
9062 _ACEOF
9063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } >/dev/null; then
9071   if test -s conftest.err; then
9072     ac_cpp_err=$ac_c_preproc_warn_flag
9073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9074   else
9075     ac_cpp_err=
9076   fi
9077 else
9078   ac_cpp_err=yes
9079 fi
9080 if test -z "$ac_cpp_err"; then
9081   ac_header_preproc=yes
9082 else
9083   echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086   ac_header_preproc=no
9087 fi
9088 rm -f conftest.err conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9090 echo "${ECHO_T}$ac_header_preproc" >&6
9091
9092 # So?  What about this header?
9093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9094   yes:no: )
9095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9099     ac_header_preproc=yes
9100     ;;
9101   no:yes:* )
9102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9114     (
9115       cat <<\_ASBOX
9116 ## ------------------------------------------ ##
9117 ## Report this to the AC_PACKAGE_NAME lists.  ##
9118 ## ------------------------------------------ ##
9119 _ASBOX
9120     ) |
9121       sed "s/^/$as_me: WARNING:     /" >&2
9122     ;;
9123 esac
9124 echo "$as_me:$LINENO: checking for $ac_header" >&5
9125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129   eval "$as_ac_Header=\$ac_header_preproc"
9130 fi
9131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9133
9134 fi
9135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9136   cat >>confdefs.h <<_ACEOF
9137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9138 _ACEOF
9139
9140 fi
9141
9142 done
9143
9144
9145 # End of readline/conio stuff
9146 # -----------------------------------------------------------------------
9147
9148 # -----------------------------------------------------------------------
9149 #  Check for Python support
9150 #
9151 echo "$as_me:$LINENO: checking for Python support" >&5
9152 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9153
9154 # Check whether --with-python or --without-python was given.
9155 if test "${with_python+set}" = set; then
9156   withval="$with_python"
9157
9158   PYTHON_INCDIR=
9159   PYTHON_LIBS=
9160   if test "$withval" != "no"; then
9161      if test "$withval" = "yes"; then
9162         for python_root in /usr /usr/local; do
9163           if test -f $python_root/include/python2.2/Python.h; then
9164              PYTHON_INCDIR=-I$python_root/include/python2.2
9165              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9166              break
9167           elif test -f $python_root/include/python2.3/Python.h; then
9168              PYTHON_INCDIR=-I$python_root/include/python2.3
9169              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9170              break
9171           elif test -f $python_root/include/python2.4/Python.h; then
9172              PYTHON_INCDIR=-I$python_root/include/python2.4
9173              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9174              break
9175           fi
9176         done
9177         if test x$PYTHON_INCDIR = x; then
9178           if test -f $prefix/include/Python.h; then
9179              PYTHON_INCDIR=-I$prefix/include
9180              PYTHON_LIBS="-L$prefix/lib/config -lpython"
9181           else
9182            echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9184            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9185 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9186    { (exit 1); exit 1; }; }
9187           fi
9188         fi
9189      else
9190         if test -f $withval/Python.h; then
9191            PYTHON_INCDIR=-I$withval
9192            PYTHON_LIBS="-L$withval/config -lpython"
9193         elif test -f $withval/include/Python.h; then
9194            PYTHON_INCDIR=-I$withval/include
9195            PYTHON_LIBS="-L$withval/lib/config -lpython"
9196         elif test -f $withval/include/python/Python.h; then
9197            PYTHON_INCDIR=-I$withval/include/python
9198            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9199         else
9200            echo "$as_me:$LINENO: result: no" >&5
9201 echo "${ECHO_T}no" >&6
9202            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9203 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9204    { (exit 1); exit 1; }; }
9205         fi
9206      fi
9207      cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_PYTHON 1
9209 _ACEOF
9210
9211      echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6
9213      support_python=yes
9214      { echo "$as_me:$LINENO: checking for more Python libs" >&5
9215 echo "$as_me: checking for more Python libs" >&6;}
9216      saved_LIBS="$LIBS"; LIBS=
9217      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9218 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9219 if test "${ac_cv_search_shm_open+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   ac_func_search_save_LIBS=$LIBS
9223 ac_cv_search_shm_open=no
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230
9231 /* Override any gcc2 internal prototype to avoid an error.  */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 /* We use char because int might match the return type of a gcc2
9236    builtin and then its argument prototype would still apply.  */
9237 char shm_open ();
9238 int
9239 main ()
9240 {
9241 shm_open ();
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248   (eval $ac_link) 2>conftest.er1
9249   ac_status=$?
9250   grep -v '^ *+' conftest.er1 >conftest.err
9251   rm -f conftest.er1
9252   cat conftest.err >&5
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -z "$ac_c_werror_flag"
9256                          || test ! -s conftest.err'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; } &&
9262          { ac_try='test -s conftest$ac_exeext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   ac_cv_search_shm_open="none required"
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 fi
9274 rm -f conftest.err conftest.$ac_objext \
9275       conftest$ac_exeext conftest.$ac_ext
9276 if test "$ac_cv_search_shm_open" = no; then
9277   for ac_lib in rt; do
9278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9279     cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285
9286 /* Override any gcc2 internal prototype to avoid an error.  */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 /* We use char because int might match the return type of a gcc2
9291    builtin and then its argument prototype would still apply.  */
9292 char shm_open ();
9293 int
9294 main ()
9295 {
9296 shm_open ();
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303   (eval $ac_link) 2>conftest.er1
9304   ac_status=$?
9305   grep -v '^ *+' conftest.er1 >conftest.err
9306   rm -f conftest.er1
9307   cat conftest.err >&5
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); } &&
9310          { ac_try='test -z "$ac_c_werror_flag"
9311                          || test ! -s conftest.err'
9312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313   (eval $ac_try) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); }; } &&
9317          { ac_try='test -s conftest$ac_exeext'
9318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   ac_cv_search_shm_open="-l$ac_lib"
9324 break
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 fi
9330 rm -f conftest.err conftest.$ac_objext \
9331       conftest$ac_exeext conftest.$ac_ext
9332   done
9333 fi
9334 LIBS=$ac_func_search_save_LIBS
9335 fi
9336 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9337 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9338 if test "$ac_cv_search_shm_open" != no; then
9339   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9340
9341 fi
9342
9343
9344 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9345 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9346 if test "${ac_cv_lib_util_openpty+set}" = set; then
9347   echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349   ac_check_lib_save_LIBS=$LIBS
9350 LIBS="-lutil  $LIBS"
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357
9358 /* Override any gcc2 internal prototype to avoid an error.  */
9359 #ifdef __cplusplus
9360 extern "C"
9361 #endif
9362 /* We use char because int might match the return type of a gcc2
9363    builtin and then its argument prototype would still apply.  */
9364 char openpty ();
9365 int
9366 main ()
9367 {
9368 openpty ();
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext conftest$ac_exeext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9375   (eval $ac_link) 2>conftest.er1
9376   ac_status=$?
9377   grep -v '^ *+' conftest.er1 >conftest.err
9378   rm -f conftest.er1
9379   cat conftest.err >&5
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } &&
9382          { ac_try='test -z "$ac_c_werror_flag"
9383                          || test ! -s conftest.err'
9384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385   (eval $ac_try) 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); }; } &&
9389          { ac_try='test -s conftest$ac_exeext'
9390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391   (eval $ac_try) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; }; then
9395   ac_cv_lib_util_openpty=yes
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ac_cv_lib_util_openpty=no
9401 fi
9402 rm -f conftest.err conftest.$ac_objext \
9403       conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9405 fi
9406 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9407 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9408 if test $ac_cv_lib_util_openpty = yes; then
9409   cat >>confdefs.h <<_ACEOF
9410 #define HAVE_LIBUTIL 1
9411 _ACEOF
9412
9413   LIBS="-lutil $LIBS"
9414
9415 fi
9416
9417      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9418      LIBS="$saved_LIBS"
9419   else
9420      echo "$as_me:$LINENO: result: no" >&5
9421 echo "${ECHO_T}no" >&6
9422   fi
9423
9424 else
9425
9426   echo "$as_me:$LINENO: result: no" >&5
9427 echo "${ECHO_T}no" >&6
9428
9429 fi;
9430
9431
9432
9433
9434 #
9435 # Find where sockets are (especially for Solaris)
9436 # Do this before the TCP Wrappers test since tcp wrappers
9437 # uses the socket library and some linkers are stupid.
9438 #
9439 echo "$as_me:$LINENO: checking for socket" >&5
9440 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9441 if test "${ac_cv_func_socket+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
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 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9452 #define socket innocuous_socket
9453
9454 /* System header to define __stub macros and hopefully few prototypes,
9455     which can conflict with char socket (); below.
9456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457     <limits.h> exists even on freestanding compilers.  */
9458
9459 #ifdef __STDC__
9460 # include <limits.h>
9461 #else
9462 # include <assert.h>
9463 #endif
9464
9465 #undef socket
9466
9467 /* Override any gcc2 internal prototype to avoid an error.  */
9468 #ifdef __cplusplus
9469 extern "C"
9470 {
9471 #endif
9472 /* We use char because int might match the return type of a gcc2
9473    builtin and then its argument prototype would still apply.  */
9474 char socket ();
9475 /* The GNU C library defines this for functions which it implements
9476     to always fail with ENOSYS.  Some functions are actually named
9477     something starting with __ and the normal name is an alias.  */
9478 #if defined (__stub_socket) || defined (__stub___socket)
9479 choke me
9480 #else
9481 char (*f) () = socket;
9482 #endif
9483 #ifdef __cplusplus
9484 }
9485 #endif
9486
9487 int
9488 main ()
9489 {
9490 return f != socket;
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497   (eval $ac_link) 2>conftest.er1
9498   ac_status=$?
9499   grep -v '^ *+' conftest.er1 >conftest.err
9500   rm -f conftest.er1
9501   cat conftest.err >&5
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } &&
9504          { ac_try='test -z "$ac_c_werror_flag"
9505                          || test ! -s conftest.err'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; } &&
9511          { ac_try='test -s conftest$ac_exeext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   ac_cv_func_socket=yes
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_cv_func_socket=no
9523 fi
9524 rm -f conftest.err conftest.$ac_objext \
9525       conftest$ac_exeext conftest.$ac_ext
9526 fi
9527 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9528 echo "${ECHO_T}$ac_cv_func_socket" >&6
9529 if test $ac_cv_func_socket = yes; then
9530   echo "$as_me:$LINENO: result: using libc's socket" >&5
9531 echo "${ECHO_T}using libc's socket" >&6
9532 else
9533
9534 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9535 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9536 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-lxnet  $LIBS"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547
9548 /* Override any gcc2 internal prototype to avoid an error.  */
9549 #ifdef __cplusplus
9550 extern "C"
9551 #endif
9552 /* We use char because int might match the return type of a gcc2
9553    builtin and then its argument prototype would still apply.  */
9554 char socket ();
9555 int
9556 main ()
9557 {
9558 socket ();
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565   (eval $ac_link) 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -z "$ac_c_werror_flag"
9573                          || test ! -s conftest.err'
9574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575   (eval $ac_try) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; } &&
9579          { ac_try='test -s conftest$ac_exeext'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585   ac_cv_lib_xnet_socket=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_cv_lib_xnet_socket=no
9591 fi
9592 rm -f conftest.err conftest.$ac_objext \
9593       conftest$ac_exeext conftest.$ac_ext
9594 LIBS=$ac_check_lib_save_LIBS
9595 fi
9596 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9597 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9598 if test $ac_cv_lib_xnet_socket = yes; then
9599   cat >>confdefs.h <<_ACEOF
9600 #define HAVE_LIBXNET 1
9601 _ACEOF
9602
9603   LIBS="-lxnet $LIBS"
9604
9605 fi
9606
9607
9608 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9609 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9610 if test "${ac_cv_lib_socket_socket+set}" = set; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   ac_check_lib_save_LIBS=$LIBS
9614 LIBS="-lsocket  $LIBS"
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621
9622 /* Override any gcc2 internal prototype to avoid an error.  */
9623 #ifdef __cplusplus
9624 extern "C"
9625 #endif
9626 /* We use char because int might match the return type of a gcc2
9627    builtin and then its argument prototype would still apply.  */
9628 char socket ();
9629 int
9630 main ()
9631 {
9632 socket ();
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9639   (eval $ac_link) 2>conftest.er1
9640   ac_status=$?
9641   grep -v '^ *+' conftest.er1 >conftest.err
9642   rm -f conftest.er1
9643   cat conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -z "$ac_c_werror_flag"
9647                          || test ! -s conftest.err'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; } &&
9653          { ac_try='test -s conftest$ac_exeext'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; }; then
9659   ac_cv_lib_socket_socket=yes
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_cv_lib_socket_socket=no
9665 fi
9666 rm -f conftest.err conftest.$ac_objext \
9667       conftest$ac_exeext conftest.$ac_ext
9668 LIBS=$ac_check_lib_save_LIBS
9669 fi
9670 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9671 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9672 if test $ac_cv_lib_socket_socket = yes; then
9673   cat >>confdefs.h <<_ACEOF
9674 #define HAVE_LIBSOCKET 1
9675 _ACEOF
9676
9677   LIBS="-lsocket $LIBS"
9678
9679 fi
9680
9681
9682 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9683 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9684 if test "${ac_cv_lib_inet_socket+set}" = set; then
9685   echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687   ac_check_lib_save_LIBS=$LIBS
9688 LIBS="-linet  $LIBS"
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695
9696 /* Override any gcc2 internal prototype to avoid an error.  */
9697 #ifdef __cplusplus
9698 extern "C"
9699 #endif
9700 /* We use char because int might match the return type of a gcc2
9701    builtin and then its argument prototype would still apply.  */
9702 char socket ();
9703 int
9704 main ()
9705 {
9706 socket ();
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713   (eval $ac_link) 2>conftest.er1
9714   ac_status=$?
9715   grep -v '^ *+' conftest.er1 >conftest.err
9716   rm -f conftest.er1
9717   cat conftest.err >&5
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } &&
9720          { ac_try='test -z "$ac_c_werror_flag"
9721                          || test ! -s conftest.err'
9722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723   (eval $ac_try) 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; } &&
9727          { ac_try='test -s conftest$ac_exeext'
9728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729   (eval $ac_try) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   ac_cv_lib_inet_socket=yes
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_cv_lib_inet_socket=no
9739 fi
9740 rm -f conftest.err conftest.$ac_objext \
9741       conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9743 fi
9744 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9745 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9746 if test $ac_cv_lib_inet_socket = yes; then
9747   cat >>confdefs.h <<_ACEOF
9748 #define HAVE_LIBINET 1
9749 _ACEOF
9750
9751   LIBS="-linet $LIBS"
9752
9753 fi
9754
9755 fi
9756
9757
9758
9759 # -----------------------------------------------------------
9760 # Check whether user wants TCP wrappers support (default off)
9761 # -----------------------------------------------------------
9762 TCPW_MSG="no"
9763
9764 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9765 if test "${with_tcp_wrappers+set}" = set; then
9766   withval="$with_tcp_wrappers"
9767
9768     if test "x$withval" != "xno" ; then
9769        saved_LIBS="$LIBS"
9770        LIBS="$saved_LIBS -lwrap"
9771        echo "$as_me:$LINENO: checking for libwrap" >&5
9772 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9773        cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779  #include <tcpd.h>
9780              int deny_severity = 0;
9781              int allow_severity = 0;
9782              struct request_info *req;
9783 int
9784 main ()
9785 {
9786  hosts_access(req);
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793   (eval $ac_link) 2>conftest.er1
9794   ac_status=$?
9795   grep -v '^ *+' conftest.er1 >conftest.err
9796   rm -f conftest.er1
9797   cat conftest.err >&5
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -z "$ac_c_werror_flag"
9801                          || test ! -s conftest.err'
9802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803   (eval $ac_try) 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; } &&
9807          { ac_try='test -s conftest$ac_exeext'
9808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809   (eval $ac_try) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); }; }; then
9813
9814             echo "$as_me:$LINENO: result: yes" >&5
9815 echo "${ECHO_T}yes" >&6
9816             cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_LIBWRAP 1
9818 _ACEOF
9819
9820             TCPW_MSG="yes"
9821
9822 else
9823   echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826
9827             LIBS="$saved_LIBS -lwrap -lnsl"
9828             cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h.  */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h.  */
9834  #include <tcpd.h>
9835                  int deny_severity = 0;
9836                  int allow_severity = 0;
9837                  struct request_info *req;
9838 int
9839 main ()
9840 {
9841  hosts_access(req);
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848   (eval $ac_link) 2>conftest.er1
9849   ac_status=$?
9850   grep -v '^ *+' conftest.er1 >conftest.err
9851   rm -f conftest.er1
9852   cat conftest.err >&5
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -z "$ac_c_werror_flag"
9856                          || test ! -s conftest.err'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; } &&
9862          { ac_try='test -s conftest$ac_exeext'
9863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864   (eval $ac_try) 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; }; then
9868
9869                  echo "$as_me:$LINENO: result: yes" >&5
9870 echo "${ECHO_T}yes" >&6
9871                  cat >>confdefs.h <<\_ACEOF
9872 #define HAVE_LIBWRAP 1
9873 _ACEOF
9874
9875                  TCPW_MSG="yes"
9876
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9882 echo "$as_me: error: *** libwrap missing" >&2;}
9883    { (exit 1); exit 1; }; }
9884
9885 fi
9886 rm -f conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888
9889 fi
9890 rm -f conftest.err conftest.$ac_objext \
9891       conftest$ac_exeext conftest.$ac_ext
9892     fi
9893
9894
9895 fi;
9896
9897 # -----------------------------------------------------------
9898 # Check whether OpenSSL is available
9899 # -----------------------------------------------------------
9900 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9901 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9902
9903 # Check whether --with-openssl or --without-openssl was given.
9904 if test "${with_openssl+set}" = set; then
9905   withval="$with_openssl"
9906   with_openssl_directory=${withval}
9907 fi;
9908
9909 if test "x$with_openssl_directory" != "x"; then
9910         OPENSSL_LIBS="-lssl -lcrypto"
9911         OPENSSL_INC=""
9912
9913         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9914                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9915                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9916         fi
9917
9918         saved_LIBS="$LIBS"
9919         saved_CFLAGS="$CFLAGS"
9920         LIBS="$saved_LIBS $OPENSSL_LIBS"
9921         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9922
9923         cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929  #include <openssl/ssl.h>
9930 int
9931 main ()
9932 {
9933  CRYPTO_set_id_callback(NULL);
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940   (eval $ac_link) 2>conftest.er1
9941   ac_status=$?
9942   grep -v '^ *+' conftest.er1 >conftest.err
9943   rm -f conftest.er1
9944   cat conftest.err >&5
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -z "$ac_c_werror_flag"
9948                          || test ! -s conftest.err'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; } &&
9954          { ac_try='test -s conftest$ac_exeext'
9955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956   (eval $ac_try) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; }; then
9960    support_tls="yes"
9961 else
9962   echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965  support_tls="no"
9966
9967 fi
9968 rm -f conftest.err conftest.$ac_objext \
9969       conftest$ac_exeext conftest.$ac_ext
9970
9971         LIBS="$saved_LIBS"
9972         CFLAGS="$saved_CFLAGS"
9973
9974         if test "$support_tls" = "yes"; then
9975
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_OPENSSL 1
9978 _ACEOF
9979
9980
9981 cat >>confdefs.h <<\_ACEOF
9982 #define HAVE_TLS 1
9983 _ACEOF
9984
9985         fi
9986 else
9987         support_tls="no"
9988         OPENSSL_LIBS=""
9989         OPENSSL_INC=""
9990 fi
9991
9992 echo "$as_me:$LINENO: result: $support_tls" >&5
9993 echo "${ECHO_T}$support_tls" >&6
9994
9995
9996
9997
9998 # -----------------------------------------------------------
9999 # Python and OpenSSL are using dlopen
10000 # -----------------------------------------------------------
10001
10002 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10003    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10004 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10005 if test "${ac_cv_search_dlopen+set}" = set; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   ac_func_search_save_LIBS=$LIBS
10009 ac_cv_search_dlopen=no
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016
10017 /* Override any gcc2 internal prototype to avoid an error.  */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 /* We use char because int might match the return type of a gcc2
10022    builtin and then its argument prototype would still apply.  */
10023 char dlopen ();
10024 int
10025 main ()
10026 {
10027 dlopen ();
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034   (eval $ac_link) 2>conftest.er1
10035   ac_status=$?
10036   grep -v '^ *+' conftest.er1 >conftest.err
10037   rm -f conftest.er1
10038   cat conftest.err >&5
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } &&
10041          { ac_try='test -z "$ac_c_werror_flag"
10042                          || test ! -s conftest.err'
10043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044   (eval $ac_try) 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; } &&
10048          { ac_try='test -s conftest$ac_exeext'
10049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050   (eval $ac_try) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054   ac_cv_search_dlopen="none required"
10055 else
10056   echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 fi
10060 rm -f conftest.err conftest.$ac_objext \
10061       conftest$ac_exeext conftest.$ac_ext
10062 if test "$ac_cv_search_dlopen" = no; then
10063   for ac_lib in dl; do
10064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10065     cat >conftest.$ac_ext <<_ACEOF
10066 /* confdefs.h.  */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h.  */
10071
10072 /* Override any gcc2 internal prototype to avoid an error.  */
10073 #ifdef __cplusplus
10074 extern "C"
10075 #endif
10076 /* We use char because int might match the return type of a gcc2
10077    builtin and then its argument prototype would still apply.  */
10078 char dlopen ();
10079 int
10080 main ()
10081 {
10082 dlopen ();
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089   (eval $ac_link) 2>conftest.er1
10090   ac_status=$?
10091   grep -v '^ *+' conftest.er1 >conftest.err
10092   rm -f conftest.er1
10093   cat conftest.err >&5
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); } &&
10096          { ac_try='test -z "$ac_c_werror_flag"
10097                          || test ! -s conftest.err'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; } &&
10103          { ac_try='test -s conftest$ac_exeext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_search_dlopen="-l$ac_lib"
10110 break
10111 else
10112   echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 fi
10116 rm -f conftest.err conftest.$ac_objext \
10117       conftest$ac_exeext conftest.$ac_ext
10118   done
10119 fi
10120 LIBS=$ac_func_search_save_LIBS
10121 fi
10122 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10124 if test "$ac_cv_search_dlopen" != no; then
10125   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10126
10127 fi
10128
10129 fi
10130
10131 # ------------------------------------------
10132 # Where to place working dir
10133 # ------------------------------------------
10134 working_dir=`eval echo ${prefix}/var/bacula/working`
10135
10136 # Check whether --with-working-dir or --without-working-dir was given.
10137 if test "${with_working_dir+set}" = set; then
10138   withval="$with_working_dir"
10139
10140        if test "x$withval" != "xno" ; then
10141               working_dir=$withval
10142        fi
10143
10144
10145 fi;
10146
10147
10148
10149
10150 # ------------------------------------------
10151 # Where to place scriptdir (script files)
10152 # ------------------------------------------
10153 scriptdir=`eval echo ${sysconfdir}`
10154
10155 # Check whether --with-scriptdir or --without-scriptdir was given.
10156 if test "${with_scriptdir+set}" = set; then
10157   withval="$with_scriptdir"
10158
10159        if test "x$withval" != "xno" ; then
10160               scriptdir=$withval
10161        fi
10162
10163
10164 fi;
10165
10166
10167
10168
10169 # ------------------------------------------
10170 # Where to send dump email
10171 # ------------------------------------------
10172 dump_email=root@localhost
10173
10174 # Check whether --with-dump-email or --without-dump-email was given.
10175 if test "${with_dump_email+set}" = set; then
10176   withval="$with_dump_email"
10177
10178        if test "x$withval" != "xno" ; then
10179               dump_email=$withval
10180        fi
10181
10182
10183 fi;
10184
10185
10186
10187 # ------------------------------------------
10188 # Where to send job email
10189 # ------------------------------------------
10190 job_email=root@localhost
10191
10192 # Check whether --with-job-email or --without-job-email was given.
10193 if test "${with_job_email+set}" = set; then
10194   withval="$with_job_email"
10195
10196        if test "x$withval" != "xno" ; then
10197               job_email=$withval
10198        fi
10199
10200
10201 fi;
10202
10203
10204
10205 # ------------------------------------------
10206 # Where to find smtp host
10207 # ------------------------------------------
10208 smtp_host=localhost
10209
10210 # Check whether --with-smtp_host or --without-smtp_host was given.
10211 if test "${with_smtp_host+set}" = set; then
10212   withval="$with_smtp_host"
10213
10214        if test "x$withval" != "xno" ; then
10215               smtp_host=$withval
10216        fi
10217
10218
10219 fi;
10220
10221
10222
10223
10224 # ------------------------------------
10225 # Where to place pid files
10226 # ------------------------------------
10227 piddir=/var/run
10228
10229 # Check whether --with-pid-dir or --without-pid-dir was given.
10230 if test "${with_pid_dir+set}" = set; then
10231   withval="$with_pid_dir"
10232
10233         if test "x$withval" != "xno" ; then
10234             piddir=$withval
10235         fi
10236
10237
10238 fi;
10239
10240 cat >>confdefs.h <<_ACEOF
10241 #define _PATH_BACULA_PIDDIR "$piddir"
10242 _ACEOF
10243
10244
10245
10246
10247 # ------------------------------------
10248 # Where to place subsys "lock file"
10249 # ------------------------------------
10250 subsysdir=/var/run/subsys
10251
10252 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10253 if test "${with_subsys_dir+set}" = set; then
10254   withval="$with_subsys_dir"
10255
10256         if test "x$withval" != "xno" ; then
10257             subsysdir=$withval
10258         fi
10259
10260
10261 fi;
10262
10263
10264
10265
10266
10267 # ------------------------------------
10268 # Where to start assigning ports
10269 # ------------------------------------
10270 baseport=9101
10271
10272 # Check whether --with-baseport or --without-baseport was given.
10273 if test "${with_baseport+set}" = set; then
10274   withval="$with_baseport"
10275
10276         if test "x$withval" != "xno" ; then
10277              baseport=$withval
10278         fi
10279
10280
10281 fi;
10282
10283
10284 dir_port=`expr $baseport`
10285 fd_port=`expr $baseport + 1`
10286 sd_port=`expr $fd_port + 1`
10287
10288
10289
10290
10291
10292
10293 # ------------------------------------------
10294 # Generate passwords
10295 # ------------------------------------------
10296 dir_password=
10297
10298 # Check whether --with-dir-password or --without-dir-password was given.
10299 if test "${with_dir_password+set}" = set; then
10300   withval="$with_dir_password"
10301
10302        if test "x$withval" != "xno" ; then
10303            dir_password=$withval
10304        fi
10305
10306
10307 fi;
10308
10309 if test "x$dir_password" = "x" ; then
10310    if test "x$OPENSSL" = "xnone" ; then
10311       key=`autoconf/randpass 33`
10312    else
10313       key=`openssl rand -base64 33`
10314    fi
10315    dir_password=$key
10316 fi
10317
10318 fd_password=
10319
10320 # Check whether --with-fd-password or --without-fd-password was given.
10321 if test "${with_fd_password+set}" = set; then
10322   withval="$with_fd_password"
10323
10324        if test "x$withval" != "xno" ; then
10325            fd_password=$withval
10326        fi
10327
10328
10329 fi;
10330
10331 if test "x$fd_password" = "x" ; then
10332    if test "x$OPENSSL" = "xnone" ; then
10333       key=`autoconf/randpass 37`
10334    else
10335       key=`openssl rand -base64 33`
10336    fi
10337    fd_password=$key
10338 fi
10339
10340 sd_password=
10341
10342 # Check whether --with-sd-password or --without-sd-password was given.
10343 if test "${with_sd_password+set}" = set; then
10344   withval="$with_sd_password"
10345
10346        if test "x$withval" != "xno" ; then
10347            sd_password=$withval
10348        fi
10349
10350
10351 fi;
10352
10353 if test "x$sd_password" = "x" ; then
10354    if test "x$OPENSSL" = "xnone" ; then
10355       key=`autoconf/randpass 41`
10356    else
10357       key=`openssl rand -base64 33`
10358    fi
10359    sd_password=$key
10360 fi
10361
10362 mon_dir_password=
10363
10364 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10365 if test "${with_mon_dir_password+set}" = set; then
10366   withval="$with_mon_dir_password"
10367
10368        if test "x$withval" != "xno" ; then
10369            mon_dir_password=$withval
10370        fi
10371
10372
10373 fi;
10374
10375 if test "x$mon_dir_password" = "x" ; then
10376    if test "x$OPENSSL" = "xnone" ; then
10377       key=`autoconf/randpass 33`
10378    else
10379       key=`openssl rand -base64 33`
10380    fi
10381    mon_dir_password=$key
10382 fi
10383
10384 mon_fd_password=
10385
10386 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10387 if test "${with_mon_fd_password+set}" = set; then
10388   withval="$with_mon_fd_password"
10389
10390        if test "x$withval" != "xno" ; then
10391            mon_fd_password=$withval
10392        fi
10393
10394
10395 fi;
10396
10397 if test "x$mon_fd_password" = "x" ; then
10398    if test "x$OPENSSL" = "xnone" ; then
10399       key=`autoconf/randpass 37`
10400    else
10401       key=`openssl rand -base64 33`
10402    fi
10403    mon_fd_password=$key
10404 fi
10405
10406 mon_sd_password=
10407
10408 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10409 if test "${with_mon_sd_password+set}" = set; then
10410   withval="$with_mon_sd_password"
10411
10412        if test "x$withval" != "xno" ; then
10413            mon_sd_password=$withval
10414        fi
10415
10416
10417 fi;
10418
10419 if test "x$mon_sd_password" = "x" ; then
10420    if test "x$OPENSSL" = "xnone" ; then
10421       key=`autoconf/randpass 41`
10422    else
10423       key=`openssl rand -base64 33`
10424    fi
10425    mon_sd_password=$key
10426 fi
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436 #
10437 # Handle users and groups for each daemon
10438 #
10439 dir_user=
10440
10441 # Check whether --with-dir_user or --without-dir_user was given.
10442 if test "${with_dir_user+set}" = set; then
10443   withval="$with_dir_user"
10444
10445         if test "x$withval" != "x" ; then
10446              dir_user=$withval
10447         fi
10448
10449
10450 fi;
10451
10452 dir_group=
10453
10454 # Check whether --with-dir_group or --without-dir_group was given.
10455 if test "${with_dir_group+set}" = set; then
10456   withval="$with_dir_group"
10457
10458         if test "x$withval" != "x" ; then
10459              dir_group=$withval
10460         fi
10461
10462
10463 fi;
10464
10465 sd_user=
10466
10467 # Check whether --with-sd_user or --without-sd_user was given.
10468 if test "${with_sd_user+set}" = set; then
10469   withval="$with_sd_user"
10470
10471         if test "x$withval" != "x" ; then
10472              sd_user=$withval
10473         fi
10474
10475
10476 fi;
10477
10478 sd_group=
10479
10480 # Check whether --with-sd_group or --without-sd_group was given.
10481 if test "${with_sd_group+set}" = set; then
10482   withval="$with_sd_group"
10483
10484         if test "x$withval" != "x" ; then
10485              sd_group=$withval
10486         fi
10487
10488
10489 fi;
10490
10491 fd_user=
10492
10493 # Check whether --with-fd_user or --without-fd_user was given.
10494 if test "${with_fd_user+set}" = set; then
10495   withval="$with_fd_user"
10496
10497         if test "x$withval" != "x" ; then
10498              fd_user=$withval
10499         fi
10500
10501
10502 fi;
10503
10504 fd_group=
10505
10506 # Check whether --with-fd_group or --without-fd_group was given.
10507 if test "${with_fd_group+set}" = set; then
10508   withval="$with_fd_group"
10509
10510         if test "x$withval" != "x" ; then
10511              fd_group=$withval
10512         fi
10513
10514
10515 fi;
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527 #
10528 # allow setting default executable permissions
10529 #
10530 SBINPERM=0754
10531
10532 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10533 if test "${with_sbin_perm+set}" = set; then
10534   withval="$with_sbin_perm"
10535
10536         if test "x$withval" != "x" ; then
10537             SBINPERM=$withval
10538         fi
10539
10540
10541 fi;
10542
10543
10544
10545 # ------------------------------------------------
10546 # Bacula check for various SQL database engines
10547 # ------------------------------------------------
10548
10549 db_found=no
10550 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10551 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10552
10553 # Check whether --with-postgresql or --without-postgresql was given.
10554 if test "${with_postgresql+set}" = set; then
10555   withval="$with_postgresql"
10556
10557   if test "$withval" != "no"; then
10558       if test "$db_found" = "yes"; then
10559           echo "$as_me:$LINENO: result: error" >&5
10560 echo "${ECHO_T}error" >&6
10561           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10562 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10563    { (exit 1); exit 1; }; };
10564       fi
10565       if test "$withval" = "yes"; then
10566           if test -f /usr/local/include/libpq-fe.h; then
10567               POSTGRESQL_INCDIR=/usr/local/include
10568               POSTGRESQL_LIBDIR=/usr/local/lib
10569               POSTGRESQL_BINDIR=/usr/local/bin
10570           elif test -f /usr/include/libpq-fe.h; then
10571               POSTGRESQL_INCDIR=/usr/include
10572               POSTGRESQL_LIBDIR=/usr/lib
10573               POSTGRESQL_BINDIR=/usr/bin
10574           elif test -f /usr/include/pgsql/libpq-fe.h; then
10575               POSTGRESQL_INCDIR=/usr/include/pgsql
10576               POSTGRESQL_LIBDIR=/usr/lib/pgsql
10577               POSTGRESQL_BINDIR=/usr/bin
10578           elif test -f /usr/include/postgresql/libpq-fe.h; then
10579               POSTGRESQL_INCDIR=/usr/include/postgresql
10580               POSTGRESQL_LIBDIR=/usr/lib/postgresql
10581               POSTGRESQL_BINDIR=/usr/bin
10582           else
10583               echo "$as_me:$LINENO: result: no" >&5
10584 echo "${ECHO_T}no" >&6
10585               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10586 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10587    { (exit 1); exit 1; }; }
10588           fi
10589       elif test -f $withval/include/libpq-fe.h; then
10590           POSTGRESQL_INCDIR=$withval/include
10591           POSTGRESQL_LIBDIR=$withval/lib
10592           POSTGRESQL_BINDIR=$withval/bin
10593       elif test -f $withval/include/postgresql/libpq-fe.h; then
10594           POSTGRESQL_INCDIR=$withval/include/postgresql
10595           POSTGRESQL_LIBDIR=$withval/lib
10596           POSTGRESQL_BINDIR=$withval/bin
10597       else
10598           echo "$as_me:$LINENO: result: no" >&5
10599 echo "${ECHO_T}no" >&6
10600           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10601 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10602    { (exit 1); exit 1; }; }
10603       fi
10604       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10605       echo "$as_me:$LINENO: checking for crypt" >&5
10606 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10607 if test "${ac_cv_func_crypt+set}" = set; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h.  */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h.  */
10616 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10618 #define crypt innocuous_crypt
10619
10620 /* System header to define __stub macros and hopefully few prototypes,
10621     which can conflict with char crypt (); below.
10622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623     <limits.h> exists even on freestanding compilers.  */
10624
10625 #ifdef __STDC__
10626 # include <limits.h>
10627 #else
10628 # include <assert.h>
10629 #endif
10630
10631 #undef crypt
10632
10633 /* Override any gcc2 internal prototype to avoid an error.  */
10634 #ifdef __cplusplus
10635 extern "C"
10636 {
10637 #endif
10638 /* We use char because int might match the return type of a gcc2
10639    builtin and then its argument prototype would still apply.  */
10640 char crypt ();
10641 /* The GNU C library defines this for functions which it implements
10642     to always fail with ENOSYS.  Some functions are actually named
10643     something starting with __ and the normal name is an alias.  */
10644 #if defined (__stub_crypt) || defined (__stub___crypt)
10645 choke me
10646 #else
10647 char (*f) () = crypt;
10648 #endif
10649 #ifdef __cplusplus
10650 }
10651 #endif
10652
10653 int
10654 main ()
10655 {
10656 return f != crypt;
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663   (eval $ac_link) 2>conftest.er1
10664   ac_status=$?
10665   grep -v '^ *+' conftest.er1 >conftest.err
10666   rm -f conftest.er1
10667   cat conftest.err >&5
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } &&
10670          { ac_try='test -z "$ac_c_werror_flag"
10671                          || test ! -s conftest.err'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; } &&
10677          { ac_try='test -s conftest$ac_exeext'
10678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679   (eval $ac_try) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; }; then
10683   ac_cv_func_crypt=yes
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688 ac_cv_func_crypt=no
10689 fi
10690 rm -f conftest.err conftest.$ac_objext \
10691       conftest$ac_exeext conftest.$ac_ext
10692 fi
10693 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10694 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10695 if test $ac_cv_func_crypt = yes; then
10696   :
10697 else
10698   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10699 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10700 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-lcrypt  $LIBS"
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h.  */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h.  */
10711
10712 /* Override any gcc2 internal prototype to avoid an error.  */
10713 #ifdef __cplusplus
10714 extern "C"
10715 #endif
10716 /* We use char because int might match the return type of a gcc2
10717    builtin and then its argument prototype would still apply.  */
10718 char crypt ();
10719 int
10720 main ()
10721 {
10722 crypt ();
10723   ;
10724   return 0;
10725 }
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729   (eval $ac_link) 2>conftest.er1
10730   ac_status=$?
10731   grep -v '^ *+' conftest.er1 >conftest.err
10732   rm -f conftest.er1
10733   cat conftest.err >&5
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); } &&
10736          { ac_try='test -z "$ac_c_werror_flag"
10737                          || test ! -s conftest.err'
10738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739   (eval $ac_try) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; } &&
10743          { ac_try='test -s conftest$ac_exeext'
10744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745   (eval $ac_try) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); }; }; then
10749   ac_cv_lib_crypt_crypt=yes
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 ac_cv_lib_crypt_crypt=no
10755 fi
10756 rm -f conftest.err conftest.$ac_objext \
10757       conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10759 fi
10760 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10761 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10762 if test $ac_cv_lib_crypt_crypt = yes; then
10763   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10764 fi
10765
10766 fi
10767
10768       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10769       SQL_LFLAGS=$POSTGRESQL_LFLAGS
10770       SQL_BINDIR=$POSTGRESQL_BINDIR
10771       cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_POSTGRESQL 1
10773 _ACEOF
10774
10775       echo "$as_me:$LINENO: result: yes" >&5
10776 echo "${ECHO_T}yes" >&6
10777       db_found=yes
10778       support_postgresql=yes
10779       db_name=PostgreSQL
10780       DB_NAME=postgresql
10781   else
10782       echo "$as_me:$LINENO: result: no" >&5
10783 echo "${ECHO_T}no" >&6
10784   fi
10785
10786 else
10787
10788   echo "$as_me:$LINENO: result: no" >&5
10789 echo "${ECHO_T}no" >&6
10790
10791 fi;
10792
10793
10794
10795
10796
10797
10798
10799 db_found=no
10800 echo "$as_me:$LINENO: checking for MySQL support" >&5
10801 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10802
10803 # Check whether --with-mysql or --without-mysql was given.
10804 if test "${with_mysql+set}" = set; then
10805   withval="$with_mysql"
10806
10807   if test "$withval" != "no"; then
10808         if test "$withval" = "yes"; then
10809                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10810                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10811                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10812                         MYSQL_BINDIR=/usr/local/mysql/bin
10813                 elif test -f /usr/include/mysql/mysql.h; then
10814                         MYSQL_INCDIR=/usr/include/mysql
10815                         MYSQL_LIBDIR=/usr/lib/mysql
10816                         MYSQL_BINDIR=/usr/bin
10817                 elif test -f /usr/include/mysql.h; then
10818                         MYSQL_INCDIR=/usr/include
10819                         MYSQL_LIBDIR=/usr/lib
10820                         MYSQL_BINDIR=/usr/bin
10821                 elif test -f /usr/local/include/mysql/mysql.h; then
10822                         MYSQL_INCDIR=/usr/local/include/mysql
10823                         MYSQL_LIBDIR=/usr/local/lib/mysql
10824                         MYSQL_BINDIR=/usr/local/bin
10825                 elif test -f /usr/local/include/mysql.h; then
10826                         MYSQL_INCDIR=/usr/local/include
10827                         MYSQL_LIBDIR=/usr/local/lib
10828                         MYSQL_BINDIR=/usr/local/bin
10829                 else
10830                    echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6
10832                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10833 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10834    { (exit 1); exit 1; }; }
10835                 fi
10836         else
10837                 if test -f $withval/include/mysql/mysql.h; then
10838                         MYSQL_INCDIR=$withval/include/mysql
10839                         MYSQL_LIBDIR=$withval/lib/mysql
10840                         MYSQL_BINDIR=$withval/bin
10841                 elif test -f $withval/include/mysql.h; then
10842                         MYSQL_INCDIR=$withval/include
10843                         MYSQL_LIBDIR=$withval/lib
10844                         MYSQL_BINDIR=$withval/bin
10845                 else
10846                    echo "$as_me:$LINENO: result: no" >&5
10847 echo "${ECHO_T}no" >&6
10848                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10849 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10850    { (exit 1); exit 1; }; }
10851                 fi
10852         fi
10853     SQL_INCLUDE=-I$MYSQL_INCDIR
10854     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10855        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10856        cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_THREAD_SAFE_MYSQL 1
10858 _ACEOF
10859
10860     else
10861        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10862     fi
10863     SQL_BINDIR=$MYSQL_BINDIR
10864
10865     cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_MYSQL 1
10867 _ACEOF
10868
10869     echo "$as_me:$LINENO: result: yes" >&5
10870 echo "${ECHO_T}yes" >&6
10871     db_found=yes
10872     support_mysql=yes
10873     db_name=MySQL
10874     DB_NAME=mysql
10875
10876   else
10877         echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10879   fi
10880
10881
10882 fi;
10883
10884
10885 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10886 if test "${with_embedded_mysql+set}" = set; then
10887   withval="$with_embedded_mysql"
10888
10889   if test "$withval" != "no"; then
10890         if test "$withval" = "yes"; then
10891                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10892                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10893                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10894                         MYSQL_BINDIR=/usr/local/mysql/bin
10895                 elif test -f /usr/include/mysql/mysql.h; then
10896                         MYSQL_INCDIR=/usr/include/mysql
10897                         MYSQL_LIBDIR=/usr/lib/mysql
10898                         MYSQL_BINDIR=/usr/bin
10899                 elif test -f /usr/include/mysql.h; then
10900                         MYSQL_INCDIR=/usr/include
10901                         MYSQL_LIBDIR=/usr/lib
10902                         MYSQL_BINDIR=/usr/bin
10903                 elif test -f /usr/local/include/mysql/mysql.h; then
10904                         MYSQL_INCDIR=/usr/local/include/mysql
10905                         MYSQL_LIBDIR=/usr/local/lib/mysql
10906                         MYSQL_BINDIR=/usr/local/bin
10907                 elif test -f /usr/local/include/mysql.h; then
10908                         MYSQL_INCDIR=/usr/local/include
10909                         MYSQL_LIBDIR=/usr/local/lib
10910                         MYSQL_BINDIR=/usr/local/bin
10911                 else
10912                    echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6
10914                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10915 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10916    { (exit 1); exit 1; }; }
10917                 fi
10918         else
10919                 if test -f $withval/include/mysql/mysql.h; then
10920                         MYSQL_INCDIR=$withval/include/mysql
10921                         MYSQL_LIBDIR=$withval/lib/mysql
10922                         MYSQL_BINDIR=$withval/bin
10923                 elif test -f $withval/include/mysql.h; then
10924                         MYSQL_INCDIR=$withval/include
10925                         MYSQL_LIBDIR=$withval/lib
10926                         MYSQL_BINDIR=$withval/bin
10927                 else
10928                    echo "$as_me:$LINENO: result: no" >&5
10929 echo "${ECHO_T}no" >&6
10930                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10931 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10932    { (exit 1); exit 1; }; }
10933                 fi
10934         fi
10935     SQL_INCLUDE=-I$MYSQL_INCDIR
10936     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10937     SQL_BINDIR=$MYSQL_BINDIR
10938
10939     cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_MYSQL 1
10941 _ACEOF
10942
10943     cat >>confdefs.h <<\_ACEOF
10944 #define HAVE_EMBEDDED_MYSQL 1
10945 _ACEOF
10946
10947     echo "$as_me:$LINENO: result: yes" >&5
10948 echo "${ECHO_T}yes" >&6
10949     db_found=yes
10950     support_mysql=yes
10951     db_name=MySQL
10952     DB_NAME=mysql
10953
10954   else
10955         echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10957   fi
10958
10959
10960 fi;
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970 db_found=no
10971 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
10972 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
10973
10974 # Check whether --with-sqlite3 or --without-sqlite3 was given.
10975 if test "${with_sqlite3+set}" = set; then
10976   withval="$with_sqlite3"
10977
10978   if test "$withval" != "no"; then
10979      if test "$withval" = "yes"; then
10980         if test -f /usr/local/include/sqlite3.h; then
10981            SQLITE_INCDIR=/usr/local/include
10982            SQLITE_LIBDIR=/usr/local/lib
10983            SQLITE_BINDIR=/usr/local/bin
10984         elif test -f /usr/include/sqlite3.h; then
10985            SQLITE_INCDIR=/usr/include
10986            SQLITE_LIBDIR=/usr/lib
10987            SQLITE_BINDIR=/usr/bin
10988         elif test -f $prefix/include/sqlite3.h; then
10989            SQLITE_INCDIR=$prefix/include
10990            SQLITE_LIBDIR=$prefix/lib
10991            SQLITE_BINDIR=$prefix/bin
10992         else
10993            echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6
10995            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
10996 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
10997    { (exit 1); exit 1; }; }
10998         fi
10999      else
11000         if test -f $withval/sqlite3.h; then
11001            SQLITE_INCDIR=$withval
11002            SQLITE_LIBDIR=$withval
11003            SQLITE_BINDIR=$withval
11004         elif test -f $withval/include/sqlite3.h; then
11005            SQLITE_INCDIR=$withval/include
11006            SQLITE_LIBDIR=$withval/lib
11007            SQLITE_BINDIR=$withval/bin
11008         else
11009            echo "$as_me:$LINENO: result: no" >&5
11010 echo "${ECHO_T}no" >&6
11011            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11012 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11013    { (exit 1); exit 1; }; }
11014         fi
11015      fi
11016      SQL_INCLUDE=-I$SQLITE_INCDIR
11017      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11018      SQL_BINDIR=$SQLITE_BINDIR
11019
11020      cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_SQLITE3 1
11022 _ACEOF
11023
11024      echo "$as_me:$LINENO: result: yes" >&5
11025 echo "${ECHO_T}yes" >&6
11026      db_found=yes
11027      support_sqlite3=yes
11028      db_name=SQLite3
11029      DB_NAME=sqlite3
11030
11031   else
11032      echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6
11034   fi
11035
11036 else
11037
11038   echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6
11040
11041 fi;
11042
11043
11044
11045
11046
11047
11048
11049 db_found=no
11050 echo "$as_me:$LINENO: checking for SQLite support" >&5
11051 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11052
11053 # Check whether --with-sqlite or --without-sqlite was given.
11054 if test "${with_sqlite+set}" = set; then
11055   withval="$with_sqlite"
11056
11057   if test "$withval" != "no"; then
11058      if test "$withval" = "yes"; then
11059         if test -f /usr/local/include/sqlite.h; then
11060            SQLITE_INCDIR=/usr/local/include
11061            SQLITE_LIBDIR=/usr/local/lib
11062            SQLITE_BINDIR=/usr/local/bin
11063         elif test -f /usr/include/sqlite.h; then
11064            SQLITE_INCDIR=/usr/include
11065            SQLITE_LIBDIR=/usr/lib
11066            SQLITE_BINDIR=/usr/bin
11067         elif test -f $prefix/include/sqlite.h; then
11068            SQLITE_INCDIR=$prefix/include
11069            SQLITE_LIBDIR=$prefix/lib
11070            SQLITE_BINDIR=$prefix/bin
11071         else
11072            echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11074            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11075 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11076    { (exit 1); exit 1; }; }
11077         fi
11078      else
11079         if test -f $withval/sqlite.h; then
11080            SQLITE_INCDIR=$withval
11081            SQLITE_LIBDIR=$withval
11082            SQLITE_BINDIR=$withval
11083         elif test -f $withval/include/sqlite.h; then
11084            SQLITE_INCDIR=$withval/include
11085            SQLITE_LIBDIR=$withval/lib
11086            SQLITE_BINDIR=$withval/bin
11087         else
11088            echo "$as_me:$LINENO: result: no" >&5
11089 echo "${ECHO_T}no" >&6
11090            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11091 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11092    { (exit 1); exit 1; }; }
11093         fi
11094      fi
11095      SQL_INCLUDE=-I$SQLITE_INCDIR
11096      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11097      SQL_BINDIR=$SQLITE_BINDIR
11098
11099      cat >>confdefs.h <<\_ACEOF
11100 #define HAVE_SQLITE 1
11101 _ACEOF
11102
11103      echo "$as_me:$LINENO: result: yes" >&5
11104 echo "${ECHO_T}yes" >&6
11105      db_found=yes
11106      support_sqlite=yes
11107      db_name=SQLite
11108      DB_NAME=sqlite
11109
11110   else
11111      echo "$as_me:$LINENO: result: no" >&5
11112 echo "${ECHO_T}no" >&6
11113   fi
11114
11115 else
11116
11117   echo "$as_me:$LINENO: result: no" >&5
11118 echo "${ECHO_T}no" >&6
11119
11120 fi;
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130 cat >>confdefs.h <<\_ACEOF
11131 #define PROTOTYPES 1
11132 _ACEOF
11133
11134
11135 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11136     if test -z "$CCOPTS"; then
11137         CCOPTS='-g -O2 -Wall'
11138     fi
11139     CFLAGS="$CCOPTS"
11140 fi
11141
11142
11143
11144
11145 largefile_support="no"
11146
11147    # Check whether --enable-largefile or --disable-largefile was given.
11148 if test "${enable_largefile+set}" = set; then
11149   enableval="$enable_largefile"
11150
11151 fi;
11152    if test "$enable_largefile" != no; then
11153      if test -n "$ac_tool_prefix"; then
11154   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11155 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11156 echo "$as_me:$LINENO: checking for $ac_word" >&5
11157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11158 if test "${ac_cv_prog_GETCONF+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161   if test -n "$GETCONF"; then
11162   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11163 else
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167   IFS=$as_save_IFS
11168   test -z "$as_dir" && as_dir=.
11169   for ac_exec_ext in '' $ac_executable_extensions; do
11170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11173     break 2
11174   fi
11175 done
11176 done
11177
11178 fi
11179 fi
11180 GETCONF=$ac_cv_prog_GETCONF
11181 if test -n "$GETCONF"; then
11182   echo "$as_me:$LINENO: result: $GETCONF" >&5
11183 echo "${ECHO_T}$GETCONF" >&6
11184 else
11185   echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6
11187 fi
11188
11189 fi
11190 if test -z "$ac_cv_prog_GETCONF"; then
11191   ac_ct_GETCONF=$GETCONF
11192   # Extract the first word of "getconf", so it can be a program name with args.
11193 set dummy getconf; ac_word=$2
11194 echo "$as_me:$LINENO: checking for $ac_word" >&5
11195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11196 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   if test -n "$ac_ct_GETCONF"; then
11200   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11201 else
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11204 do
11205   IFS=$as_save_IFS
11206   test -z "$as_dir" && as_dir=.
11207   for ac_exec_ext in '' $ac_executable_extensions; do
11208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209     ac_cv_prog_ac_ct_GETCONF="getconf"
11210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11211     break 2
11212   fi
11213 done
11214 done
11215
11216 fi
11217 fi
11218 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11219 if test -n "$ac_ct_GETCONF"; then
11220   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11221 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11222 else
11223   echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6
11225 fi
11226
11227   GETCONF=$ac_ct_GETCONF
11228 else
11229   GETCONF="$ac_cv_prog_GETCONF"
11230 fi
11231
11232      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11233 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11234 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11238         ac_cv_sys_largefile_CFLAGS=no
11239         case "$host_os" in
11240            # IRIX 6.2 and later require cc -n32.
11241            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11242              if test "$GCC" != yes; then
11243                ac_cv_sys_largefile_CFLAGS=-n32
11244              fi
11245              ac_save_CC="$CC"
11246              CC="$CC $ac_cv_sys_largefile_CFLAGS"
11247              cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h.  */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h.  */
11253
11254 int
11255 main ()
11256 {
11257
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11264   (eval $ac_link) 2>conftest.er1
11265   ac_status=$?
11266   grep -v '^ *+' conftest.er1 >conftest.err
11267   rm -f conftest.er1
11268   cat conftest.err >&5
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); } &&
11271          { ac_try='test -z "$ac_c_werror_flag"
11272                          || test ! -s conftest.err'
11273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274   (eval $ac_try) 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; } &&
11278          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11284   :
11285 else
11286   echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289 ac_cv_sys_largefile_CFLAGS=no
11290 fi
11291 rm -f conftest.err conftest.$ac_objext \
11292       conftest$ac_exeext conftest.$ac_ext
11293              CC="$ac_save_CC"
11294            esac
11295       }
11296 fi
11297 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11298 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11299      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11300 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11301 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11305         ac_cv_sys_largefile_LDFLAGS=no
11306
11307       }
11308 fi
11309 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11310 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11311      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11312 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11313 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11317         ac_cv_sys_largefile_LIBS=no
11318
11319       }
11320 fi
11321 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11322 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11323
11324      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11325        case "$ac_flag" in
11326        no) ;;
11327        -D_FILE_OFFSET_BITS=*) ;;
11328        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11329        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11330        -D?* | -I?*)
11331          case "$ac_flag" in
11332    no) ;;
11333    ?*)
11334      case "$CPPFLAGS" in
11335      '') CPPFLAGS="$ac_flag" ;;
11336      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11337      esac ;;
11338    esac ;;
11339        *)
11340          case "$ac_flag" in
11341    no) ;;
11342    ?*)
11343      case "$CFLAGS" in
11344      '') CFLAGS="$ac_flag" ;;
11345      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11346      esac ;;
11347    esac ;;
11348        esac
11349      done
11350      case "$ac_cv_sys_largefile_LDFLAGS" in
11351    no) ;;
11352    ?*)
11353      case "$LDFLAGS" in
11354      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11355      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11356      esac ;;
11357    esac
11358      case "$ac_cv_sys_largefile_LIBS" in
11359    no) ;;
11360    ?*)
11361      case "$LIBS" in
11362      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11363      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11364      esac ;;
11365    esac
11366      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11367 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371   ac_cv_sys_file_offset_bits=no
11372       ac_cv_sys_file_offset_bits=64
11373       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11374         case "$ac_flag" in
11375         -D_FILE_OFFSET_BITS)
11376           ac_cv_sys_file_offset_bits=1 ;;
11377         -D_FILE_OFFSET_BITS=*)
11378           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11379         esac
11380       done
11381
11382 fi
11383 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11384 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11385    if test "$ac_cv_sys_file_offset_bits" != no; then
11386
11387 cat >>confdefs.h <<_ACEOF
11388 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11389 _ACEOF
11390
11391    fi
11392      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11393 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11394 if test "${ac_cv_sys_largefile_source+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   ac_cv_sys_largefile_source=no
11398       ac_cv_sys_largefile_source=1
11399       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11400         case "$ac_flag" in
11401         -D_LARGEFILE_SOURCE)
11402           ac_cv_sys_largefile_source=1 ;;
11403         -D_LARGEFILE_SOURCE=*)
11404           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11405         esac
11406       done
11407
11408 fi
11409 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11410 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11411    if test "$ac_cv_sys_largefile_source" != no; then
11412
11413 cat >>confdefs.h <<_ACEOF
11414 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11415 _ACEOF
11416
11417    fi
11418      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11419 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11420 if test "${ac_cv_sys_large_files+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   ac_cv_sys_large_files=no
11424       ac_cv_sys_large_files=1
11425       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11426         case "$ac_flag" in
11427         -D_LARGE_FILES)
11428           ac_cv_sys_large_files=1 ;;
11429         -D_LARGE_FILES=*)
11430           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11431         esac
11432       done
11433
11434 fi
11435 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11436 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11437    if test "$ac_cv_sys_large_files" != no; then
11438
11439 cat >>confdefs.h <<_ACEOF
11440 #define _LARGE_FILES $ac_cv_sys_large_files
11441 _ACEOF
11442
11443    fi
11444    fi
11445
11446
11447
11448 echo "$as_me:$LINENO: checking for X" >&5
11449 echo $ECHO_N "checking for X... $ECHO_C" >&6
11450
11451
11452 # Check whether --with-x or --without-x was given.
11453 if test "${with_x+set}" = set; then
11454   withval="$with_x"
11455
11456 fi;
11457 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11458 if test "x$with_x" = xno; then
11459   # The user explicitly disabled X.
11460   have_x=disabled
11461 else
11462   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11463     # Both variables are already set.
11464     have_x=yes
11465   else
11466     if test "${ac_cv_have_x+set}" = set; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   # One or both of the vars are not set, and there is no cached value.
11470 ac_x_includes=no ac_x_libraries=no
11471 rm -fr conftest.dir
11472 if mkdir conftest.dir; then
11473   cd conftest.dir
11474   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11475   cat >Imakefile <<'_ACEOF'
11476 acfindx:
11477         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11478 _ACEOF
11479   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11480     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11481     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11482     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11483     for ac_extension in a so sl; do
11484       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11485          test -f $ac_im_libdir/libX11.$ac_extension; then
11486         ac_im_usrlibdir=$ac_im_libdir; break
11487       fi
11488     done
11489     # Screen out bogus values from the imake configuration.  They are
11490     # bogus both because they are the default anyway, and because
11491     # using them would break gcc on systems where it needs fixed includes.
11492     case $ac_im_incroot in
11493         /usr/include) ;;
11494         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11495     esac
11496     case $ac_im_usrlibdir in
11497         /usr/lib | /lib) ;;
11498         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11499     esac
11500   fi
11501   cd ..
11502   rm -fr conftest.dir
11503 fi
11504
11505 # Standard set of common directories for X headers.
11506 # Check X11 before X11Rn because it is often a symlink to the current release.
11507 ac_x_header_dirs='
11508 /usr/X11/include
11509 /usr/X11R6/include
11510 /usr/X11R5/include
11511 /usr/X11R4/include
11512
11513 /usr/include/X11
11514 /usr/include/X11R6
11515 /usr/include/X11R5
11516 /usr/include/X11R4
11517
11518 /usr/local/X11/include
11519 /usr/local/X11R6/include
11520 /usr/local/X11R5/include
11521 /usr/local/X11R4/include
11522
11523 /usr/local/include/X11
11524 /usr/local/include/X11R6
11525 /usr/local/include/X11R5
11526 /usr/local/include/X11R4
11527
11528 /usr/X386/include
11529 /usr/x386/include
11530 /usr/XFree86/include/X11
11531
11532 /usr/include
11533 /usr/local/include
11534 /usr/unsupported/include
11535 /usr/athena/include
11536 /usr/local/x11r5/include
11537 /usr/lpp/Xamples/include
11538
11539 /usr/openwin/include
11540 /usr/openwin/share/include'
11541
11542 if test "$ac_x_includes" = no; then
11543   # Guess where to find include files, by looking for Intrinsic.h.
11544   # First, try using that file with no special directory specified.
11545   cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h.  */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h.  */
11551 #include <X11/Intrinsic.h>
11552 _ACEOF
11553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11555   ac_status=$?
11556   grep -v '^ *+' conftest.er1 >conftest.err
11557   rm -f conftest.er1
11558   cat conftest.err >&5
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } >/dev/null; then
11561   if test -s conftest.err; then
11562     ac_cpp_err=$ac_c_preproc_warn_flag
11563     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11564   else
11565     ac_cpp_err=
11566   fi
11567 else
11568   ac_cpp_err=yes
11569 fi
11570 if test -z "$ac_cpp_err"; then
11571   # We can compile using X headers with no special include directory.
11572 ac_x_includes=
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577   for ac_dir in $ac_x_header_dirs; do
11578   if test -r "$ac_dir/X11/Intrinsic.h"; then
11579     ac_x_includes=$ac_dir
11580     break
11581   fi
11582 done
11583 fi
11584 rm -f conftest.err conftest.$ac_ext
11585 fi # $ac_x_includes = no
11586
11587 if test "$ac_x_libraries" = no; then
11588   # Check for the libraries.
11589   # See if we find them without any special options.
11590   # Don't add to $LIBS permanently.
11591   ac_save_LIBS=$LIBS
11592   LIBS="-lXt $LIBS"
11593   cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h.  */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h.  */
11599 #include <X11/Intrinsic.h>
11600 int
11601 main ()
11602 {
11603 XtMalloc (0)
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11610   (eval $ac_link) 2>conftest.er1
11611   ac_status=$?
11612   grep -v '^ *+' conftest.er1 >conftest.err
11613   rm -f conftest.er1
11614   cat conftest.err >&5
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); } &&
11617          { ac_try='test -z "$ac_c_werror_flag"
11618                          || test ! -s conftest.err'
11619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620   (eval $ac_try) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); }; } &&
11624          { ac_try='test -s conftest$ac_exeext'
11625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626   (eval $ac_try) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); }; }; then
11630   LIBS=$ac_save_LIBS
11631 # We can link X programs with no special library path.
11632 ac_x_libraries=
11633 else
11634   echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637 LIBS=$ac_save_LIBS
11638 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11639 do
11640   # Don't even attempt the hair of trying to link an X program!
11641   for ac_extension in a so sl; do
11642     if test -r $ac_dir/libXt.$ac_extension; then
11643       ac_x_libraries=$ac_dir
11644       break 2
11645     fi
11646   done
11647 done
11648 fi
11649 rm -f conftest.err conftest.$ac_objext \
11650       conftest$ac_exeext conftest.$ac_ext
11651 fi # $ac_x_libraries = no
11652
11653 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11654   # Didn't find X anywhere.  Cache the known absence of X.
11655   ac_cv_have_x="have_x=no"
11656 else
11657   # Record where we found X for the cache.
11658   ac_cv_have_x="have_x=yes \
11659                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11660 fi
11661 fi
11662
11663   fi
11664   eval "$ac_cv_have_x"
11665 fi # $with_x != no
11666
11667 if test "$have_x" != yes; then
11668   echo "$as_me:$LINENO: result: $have_x" >&5
11669 echo "${ECHO_T}$have_x" >&6
11670   no_x=yes
11671 else
11672   # If each of the values was on the command line, it overrides each guess.
11673   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11674   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11675   # Update the cache value to reflect the command line values.
11676   ac_cv_have_x="have_x=yes \
11677                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11678   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11679 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11680 fi
11681
11682 if test "$no_x" = yes; then
11683   # Not all programs may use this symbol, but it does not hurt to define it.
11684
11685 cat >>confdefs.h <<\_ACEOF
11686 #define X_DISPLAY_MISSING 1
11687 _ACEOF
11688
11689   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11690 else
11691   if test -n "$x_includes"; then
11692     X_CFLAGS="$X_CFLAGS -I$x_includes"
11693   fi
11694
11695   # It would also be nice to do this for all -L options, not just this one.
11696   if test -n "$x_libraries"; then
11697     X_LIBS="$X_LIBS -L$x_libraries"
11698     # For Solaris; some versions of Sun CC require a space after -R and
11699     # others require no space.  Words are not sufficient . . . .
11700     case `(uname -sr) 2>/dev/null` in
11701     "SunOS 5"*)
11702       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11703 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11704       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11705       cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h.  */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h.  */
11711
11712 int
11713 main ()
11714 {
11715
11716   ;
11717   return 0;
11718 }
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722   (eval $ac_link) 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } &&
11729          { ac_try='test -z "$ac_c_werror_flag"
11730                          || test ! -s conftest.err'
11731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732   (eval $ac_try) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; } &&
11736          { ac_try='test -s conftest$ac_exeext'
11737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738   (eval $ac_try) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; }; then
11742   ac_R_nospace=yes
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 ac_R_nospace=no
11748 fi
11749 rm -f conftest.err conftest.$ac_objext \
11750       conftest$ac_exeext conftest.$ac_ext
11751       if test $ac_R_nospace = yes; then
11752         echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6
11754         X_LIBS="$X_LIBS -R$x_libraries"
11755       else
11756         LIBS="$ac_xsave_LIBS -R $x_libraries"
11757         cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763
11764 int
11765 main ()
11766 {
11767
11768   ;
11769   return 0;
11770 }
11771 _ACEOF
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774   (eval $ac_link) 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -z "$ac_c_werror_flag"
11782                          || test ! -s conftest.err'
11783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784   (eval $ac_try) 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; } &&
11788          { ac_try='test -s conftest$ac_exeext'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   ac_R_space=yes
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799 ac_R_space=no
11800 fi
11801 rm -f conftest.err conftest.$ac_objext \
11802       conftest$ac_exeext conftest.$ac_ext
11803         if test $ac_R_space = yes; then
11804           echo "$as_me:$LINENO: result: yes" >&5
11805 echo "${ECHO_T}yes" >&6
11806           X_LIBS="$X_LIBS -R $x_libraries"
11807         else
11808           echo "$as_me:$LINENO: result: neither works" >&5
11809 echo "${ECHO_T}neither works" >&6
11810         fi
11811       fi
11812       LIBS=$ac_xsave_LIBS
11813     esac
11814   fi
11815
11816   # Check for system-dependent libraries X programs must link with.
11817   # Do this before checking for the system-independent R6 libraries
11818   # (-lICE), since we may need -lsocket or whatever for X linking.
11819
11820   if test "$ISC" = yes; then
11821     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11822   else
11823     # Martyn Johnson says this is needed for Ultrix, if the X
11824     # libraries were built with DECnet support.  And Karl Berry says
11825     # the Alpha needs dnet_stub (dnet does not exist).
11826     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11827     cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h.  */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h.  */
11833
11834 /* Override any gcc2 internal prototype to avoid an error.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 /* We use char because int might match the return type of a gcc2
11839    builtin and then its argument prototype would still apply.  */
11840 char XOpenDisplay ();
11841 int
11842 main ()
11843 {
11844 XOpenDisplay ();
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851   (eval $ac_link) 2>conftest.er1
11852   ac_status=$?
11853   grep -v '^ *+' conftest.er1 >conftest.err
11854   rm -f conftest.er1
11855   cat conftest.err >&5
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); } &&
11858          { ac_try='test -z "$ac_c_werror_flag"
11859                          || test ! -s conftest.err'
11860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861   (eval $ac_try) 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; } &&
11865          { ac_try='test -s conftest$ac_exeext'
11866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867   (eval $ac_try) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; }; then
11871   :
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11877 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11878 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-ldnet  $LIBS"
11883 cat >conftest.$ac_ext <<_ACEOF
11884 /* confdefs.h.  */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h.  */
11889
11890 /* Override any gcc2 internal prototype to avoid an error.  */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 /* We use char because int might match the return type of a gcc2
11895    builtin and then its argument prototype would still apply.  */
11896 char dnet_ntoa ();
11897 int
11898 main ()
11899 {
11900 dnet_ntoa ();
11901   ;
11902   return 0;
11903 }
11904 _ACEOF
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907   (eval $ac_link) 2>conftest.er1
11908   ac_status=$?
11909   grep -v '^ *+' conftest.er1 >conftest.err
11910   rm -f conftest.er1
11911   cat conftest.err >&5
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } &&
11914          { ac_try='test -z "$ac_c_werror_flag"
11915                          || test ! -s conftest.err'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; } &&
11921          { ac_try='test -s conftest$ac_exeext'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; }; then
11927   ac_cv_lib_dnet_dnet_ntoa=yes
11928 else
11929   echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 ac_cv_lib_dnet_dnet_ntoa=no
11933 fi
11934 rm -f conftest.err conftest.$ac_objext \
11935       conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11937 fi
11938 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11939 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11940 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11941   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11942 fi
11943
11944     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11945       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11946 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11947 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-ldnet_stub  $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958
11959 /* Override any gcc2 internal prototype to avoid an error.  */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 /* We use char because int might match the return type of a gcc2
11964    builtin and then its argument prototype would still apply.  */
11965 char dnet_ntoa ();
11966 int
11967 main ()
11968 {
11969 dnet_ntoa ();
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976   (eval $ac_link) 2>conftest.er1
11977   ac_status=$?
11978   grep -v '^ *+' conftest.er1 >conftest.err
11979   rm -f conftest.er1
11980   cat conftest.err >&5
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); } &&
11983          { ac_try='test -z "$ac_c_werror_flag"
11984                          || test ! -s conftest.err'
11985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986   (eval $ac_try) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; } &&
11990          { ac_try='test -s conftest$ac_exeext'
11991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992   (eval $ac_try) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 ac_cv_lib_dnet_stub_dnet_ntoa=no
12002 fi
12003 rm -f conftest.err conftest.$ac_objext \
12004       conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12008 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12009 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12010   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12011 fi
12012
12013     fi
12014 fi
12015 rm -f conftest.err conftest.$ac_objext \
12016       conftest$ac_exeext conftest.$ac_ext
12017     LIBS="$ac_xsave_LIBS"
12018
12019     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12020     # to get the SysV transport functions.
12021     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12022     # needs -lnsl.
12023     # The nsl library prevents programs from opening the X display
12024     # on Irix 5.2, according to T.E. Dickey.
12025     # The functions gethostbyname, getservbyname, and inet_addr are
12026     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12027     echo "$as_me:$LINENO: checking for gethostbyname" >&5
12028 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12029 if test "${ac_cv_func_gethostbyname+set}" = set; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12040 #define gethostbyname innocuous_gethostbyname
12041
12042 /* System header to define __stub macros and hopefully few prototypes,
12043     which can conflict with char gethostbyname (); below.
12044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045     <limits.h> exists even on freestanding compilers.  */
12046
12047 #ifdef __STDC__
12048 # include <limits.h>
12049 #else
12050 # include <assert.h>
12051 #endif
12052
12053 #undef gethostbyname
12054
12055 /* Override any gcc2 internal prototype to avoid an error.  */
12056 #ifdef __cplusplus
12057 extern "C"
12058 {
12059 #endif
12060 /* We use char because int might match the return type of a gcc2
12061    builtin and then its argument prototype would still apply.  */
12062 char gethostbyname ();
12063 /* The GNU C library defines this for functions which it implements
12064     to always fail with ENOSYS.  Some functions are actually named
12065     something starting with __ and the normal name is an alias.  */
12066 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12067 choke me
12068 #else
12069 char (*f) () = gethostbyname;
12070 #endif
12071 #ifdef __cplusplus
12072 }
12073 #endif
12074
12075 int
12076 main ()
12077 {
12078 return f != gethostbyname;
12079   ;
12080   return 0;
12081 }
12082 _ACEOF
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085   (eval $ac_link) 2>conftest.er1
12086   ac_status=$?
12087   grep -v '^ *+' conftest.er1 >conftest.err
12088   rm -f conftest.er1
12089   cat conftest.err >&5
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); } &&
12092          { ac_try='test -z "$ac_c_werror_flag"
12093                          || test ! -s conftest.err'
12094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095   (eval $ac_try) 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; } &&
12099          { ac_try='test -s conftest$ac_exeext'
12100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101   (eval $ac_try) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); }; }; then
12105   ac_cv_func_gethostbyname=yes
12106 else
12107   echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 ac_cv_func_gethostbyname=no
12111 fi
12112 rm -f conftest.err conftest.$ac_objext \
12113       conftest$ac_exeext conftest.$ac_ext
12114 fi
12115 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12116 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12117
12118     if test $ac_cv_func_gethostbyname = no; then
12119       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12120 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12121 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12122   echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124   ac_check_lib_save_LIBS=$LIBS
12125 LIBS="-lnsl  $LIBS"
12126 cat >conftest.$ac_ext <<_ACEOF
12127 /* confdefs.h.  */
12128 _ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h.  */
12132
12133 /* Override any gcc2 internal prototype to avoid an error.  */
12134 #ifdef __cplusplus
12135 extern "C"
12136 #endif
12137 /* We use char because int might match the return type of a gcc2
12138    builtin and then its argument prototype would still apply.  */
12139 char gethostbyname ();
12140 int
12141 main ()
12142 {
12143 gethostbyname ();
12144   ;
12145   return 0;
12146 }
12147 _ACEOF
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150   (eval $ac_link) 2>conftest.er1
12151   ac_status=$?
12152   grep -v '^ *+' conftest.er1 >conftest.err
12153   rm -f conftest.er1
12154   cat conftest.err >&5
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } &&
12157          { ac_try='test -z "$ac_c_werror_flag"
12158                          || test ! -s conftest.err'
12159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160   (eval $ac_try) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); }; } &&
12164          { ac_try='test -s conftest$ac_exeext'
12165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166   (eval $ac_try) 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; }; then
12170   ac_cv_lib_nsl_gethostbyname=yes
12171 else
12172   echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_cv_lib_nsl_gethostbyname=no
12176 fi
12177 rm -f conftest.err conftest.$ac_objext \
12178       conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12182 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12183 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12184   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12185 fi
12186
12187       if test $ac_cv_lib_nsl_gethostbyname = no; then
12188         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12189 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12190 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193   ac_check_lib_save_LIBS=$LIBS
12194 LIBS="-lbsd  $LIBS"
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201
12202 /* Override any gcc2 internal prototype to avoid an error.  */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 /* We use char because int might match the return type of a gcc2
12207    builtin and then its argument prototype would still apply.  */
12208 char gethostbyname ();
12209 int
12210 main ()
12211 {
12212 gethostbyname ();
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219   (eval $ac_link) 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } &&
12226          { ac_try='test -z "$ac_c_werror_flag"
12227                          || test ! -s conftest.err'
12228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229   (eval $ac_try) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; } &&
12233          { ac_try='test -s conftest$ac_exeext'
12234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235   (eval $ac_try) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; }; then
12239   ac_cv_lib_bsd_gethostbyname=yes
12240 else
12241   echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_cv_lib_bsd_gethostbyname=no
12245 fi
12246 rm -f conftest.err conftest.$ac_objext \
12247       conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12251 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12252 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12253   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12254 fi
12255
12256       fi
12257     fi
12258
12259     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12260     # socket/setsockopt and other routines are undefined under SCO ODT
12261     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12262     # on later versions), says Simon Leinen: it contains gethostby*
12263     # variants that don't use the name server (or something).  -lsocket
12264     # must be given before -lnsl if both are needed.  We assume that
12265     # if connect needs -lnsl, so does gethostbyname.
12266     echo "$as_me:$LINENO: checking for connect" >&5
12267 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12268 if test "${ac_cv_func_connect+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12279 #define connect innocuous_connect
12280
12281 /* System header to define __stub macros and hopefully few prototypes,
12282     which can conflict with char connect (); below.
12283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12284     <limits.h> exists even on freestanding compilers.  */
12285
12286 #ifdef __STDC__
12287 # include <limits.h>
12288 #else
12289 # include <assert.h>
12290 #endif
12291
12292 #undef connect
12293
12294 /* Override any gcc2 internal prototype to avoid an error.  */
12295 #ifdef __cplusplus
12296 extern "C"
12297 {
12298 #endif
12299 /* We use char because int might match the return type of a gcc2
12300    builtin and then its argument prototype would still apply.  */
12301 char connect ();
12302 /* The GNU C library defines this for functions which it implements
12303     to always fail with ENOSYS.  Some functions are actually named
12304     something starting with __ and the normal name is an alias.  */
12305 #if defined (__stub_connect) || defined (__stub___connect)
12306 choke me
12307 #else
12308 char (*f) () = connect;
12309 #endif
12310 #ifdef __cplusplus
12311 }
12312 #endif
12313
12314 int
12315 main ()
12316 {
12317 return f != connect;
12318   ;
12319   return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324   (eval $ac_link) 2>conftest.er1
12325   ac_status=$?
12326   grep -v '^ *+' conftest.er1 >conftest.err
12327   rm -f conftest.er1
12328   cat conftest.err >&5
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); } &&
12331          { ac_try='test -z "$ac_c_werror_flag"
12332                          || test ! -s conftest.err'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; } &&
12338          { ac_try='test -s conftest$ac_exeext'
12339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340   (eval $ac_try) 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_cv_func_connect=yes
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_cv_func_connect=no
12350 fi
12351 rm -f conftest.err conftest.$ac_objext \
12352       conftest$ac_exeext conftest.$ac_ext
12353 fi
12354 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12355 echo "${ECHO_T}$ac_cv_func_connect" >&6
12356
12357     if test $ac_cv_func_connect = no; then
12358       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12359 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12360 if test "${ac_cv_lib_socket_connect+set}" = set; then
12361   echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363   ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12365 cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371
12372 /* Override any gcc2 internal prototype to avoid an error.  */
12373 #ifdef __cplusplus
12374 extern "C"
12375 #endif
12376 /* We use char because int might match the return type of a gcc2
12377    builtin and then its argument prototype would still apply.  */
12378 char connect ();
12379 int
12380 main ()
12381 {
12382 connect ();
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389   (eval $ac_link) 2>conftest.er1
12390   ac_status=$?
12391   grep -v '^ *+' conftest.er1 >conftest.err
12392   rm -f conftest.er1
12393   cat conftest.err >&5
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); } &&
12396          { ac_try='test -z "$ac_c_werror_flag"
12397                          || test ! -s conftest.err'
12398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399   (eval $ac_try) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; } &&
12403          { ac_try='test -s conftest$ac_exeext'
12404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405   (eval $ac_try) 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); }; }; then
12409   ac_cv_lib_socket_connect=yes
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414 ac_cv_lib_socket_connect=no
12415 fi
12416 rm -f conftest.err conftest.$ac_objext \
12417       conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12419 fi
12420 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12421 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12422 if test $ac_cv_lib_socket_connect = yes; then
12423   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12424 fi
12425
12426     fi
12427
12428     # Guillermo Gomez says -lposix is necessary on A/UX.
12429     echo "$as_me:$LINENO: checking for remove" >&5
12430 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12431 if test "${ac_cv_func_remove+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12442 #define remove innocuous_remove
12443
12444 /* System header to define __stub macros and hopefully few prototypes,
12445     which can conflict with char remove (); below.
12446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12447     <limits.h> exists even on freestanding compilers.  */
12448
12449 #ifdef __STDC__
12450 # include <limits.h>
12451 #else
12452 # include <assert.h>
12453 #endif
12454
12455 #undef remove
12456
12457 /* Override any gcc2 internal prototype to avoid an error.  */
12458 #ifdef __cplusplus
12459 extern "C"
12460 {
12461 #endif
12462 /* We use char because int might match the return type of a gcc2
12463    builtin and then its argument prototype would still apply.  */
12464 char remove ();
12465 /* The GNU C library defines this for functions which it implements
12466     to always fail with ENOSYS.  Some functions are actually named
12467     something starting with __ and the normal name is an alias.  */
12468 #if defined (__stub_remove) || defined (__stub___remove)
12469 choke me
12470 #else
12471 char (*f) () = remove;
12472 #endif
12473 #ifdef __cplusplus
12474 }
12475 #endif
12476
12477 int
12478 main ()
12479 {
12480 return f != remove;
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487   (eval $ac_link) 2>conftest.er1
12488   ac_status=$?
12489   grep -v '^ *+' conftest.er1 >conftest.err
12490   rm -f conftest.er1
12491   cat conftest.err >&5
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); } &&
12494          { ac_try='test -z "$ac_c_werror_flag"
12495                          || test ! -s conftest.err'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; } &&
12501          { ac_try='test -s conftest$ac_exeext'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; }; then
12507   ac_cv_func_remove=yes
12508 else
12509   echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 ac_cv_func_remove=no
12513 fi
12514 rm -f conftest.err conftest.$ac_objext \
12515       conftest$ac_exeext conftest.$ac_ext
12516 fi
12517 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12518 echo "${ECHO_T}$ac_cv_func_remove" >&6
12519
12520     if test $ac_cv_func_remove = no; then
12521       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12522 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12523 if test "${ac_cv_lib_posix_remove+set}" = set; then
12524   echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526   ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-lposix  $LIBS"
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534
12535 /* Override any gcc2 internal prototype to avoid an error.  */
12536 #ifdef __cplusplus
12537 extern "C"
12538 #endif
12539 /* We use char because int might match the return type of a gcc2
12540    builtin and then its argument prototype would still apply.  */
12541 char remove ();
12542 int
12543 main ()
12544 {
12545 remove ();
12546   ;
12547   return 0;
12548 }
12549 _ACEOF
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12552   (eval $ac_link) 2>conftest.er1
12553   ac_status=$?
12554   grep -v '^ *+' conftest.er1 >conftest.err
12555   rm -f conftest.er1
12556   cat conftest.err >&5
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); } &&
12559          { ac_try='test -z "$ac_c_werror_flag"
12560                          || test ! -s conftest.err'
12561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562   (eval $ac_try) 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; } &&
12566          { ac_try='test -s conftest$ac_exeext'
12567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568   (eval $ac_try) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; }; then
12572   ac_cv_lib_posix_remove=yes
12573 else
12574   echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 ac_cv_lib_posix_remove=no
12578 fi
12579 rm -f conftest.err conftest.$ac_objext \
12580       conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12582 fi
12583 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12584 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12585 if test $ac_cv_lib_posix_remove = yes; then
12586   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12587 fi
12588
12589     fi
12590
12591     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12592     echo "$as_me:$LINENO: checking for shmat" >&5
12593 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12594 if test "${ac_cv_func_shmat+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12605 #define shmat innocuous_shmat
12606
12607 /* System header to define __stub macros and hopefully few prototypes,
12608     which can conflict with char shmat (); below.
12609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12610     <limits.h> exists even on freestanding compilers.  */
12611
12612 #ifdef __STDC__
12613 # include <limits.h>
12614 #else
12615 # include <assert.h>
12616 #endif
12617
12618 #undef shmat
12619
12620 /* Override any gcc2 internal prototype to avoid an error.  */
12621 #ifdef __cplusplus
12622 extern "C"
12623 {
12624 #endif
12625 /* We use char because int might match the return type of a gcc2
12626    builtin and then its argument prototype would still apply.  */
12627 char shmat ();
12628 /* The GNU C library defines this for functions which it implements
12629     to always fail with ENOSYS.  Some functions are actually named
12630     something starting with __ and the normal name is an alias.  */
12631 #if defined (__stub_shmat) || defined (__stub___shmat)
12632 choke me
12633 #else
12634 char (*f) () = shmat;
12635 #endif
12636 #ifdef __cplusplus
12637 }
12638 #endif
12639
12640 int
12641 main ()
12642 {
12643 return f != shmat;
12644   ;
12645   return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650   (eval $ac_link) 2>conftest.er1
12651   ac_status=$?
12652   grep -v '^ *+' conftest.er1 >conftest.err
12653   rm -f conftest.er1
12654   cat conftest.err >&5
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } &&
12657          { ac_try='test -z "$ac_c_werror_flag"
12658                          || test ! -s conftest.err'
12659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660   (eval $ac_try) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; } &&
12664          { ac_try='test -s conftest$ac_exeext'
12665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666   (eval $ac_try) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; }; then
12670   ac_cv_func_shmat=yes
12671 else
12672   echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 ac_cv_func_shmat=no
12676 fi
12677 rm -f conftest.err conftest.$ac_objext \
12678       conftest$ac_exeext conftest.$ac_ext
12679 fi
12680 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12681 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12682
12683     if test $ac_cv_func_shmat = no; then
12684       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12685 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12686 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   ac_check_lib_save_LIBS=$LIBS
12690 LIBS="-lipc  $LIBS"
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697
12698 /* Override any gcc2 internal prototype to avoid an error.  */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 /* We use char because int might match the return type of a gcc2
12703    builtin and then its argument prototype would still apply.  */
12704 char shmat ();
12705 int
12706 main ()
12707 {
12708 shmat ();
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715   (eval $ac_link) 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } &&
12722          { ac_try='test -z "$ac_c_werror_flag"
12723                          || test ! -s conftest.err'
12724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725   (eval $ac_try) 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; } &&
12729          { ac_try='test -s conftest$ac_exeext'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; }; then
12735   ac_cv_lib_ipc_shmat=yes
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740 ac_cv_lib_ipc_shmat=no
12741 fi
12742 rm -f conftest.err conftest.$ac_objext \
12743       conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12745 fi
12746 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12747 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12748 if test $ac_cv_lib_ipc_shmat = yes; then
12749   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12750 fi
12751
12752     fi
12753   fi
12754
12755   # Check for libraries that X11R6 Xt/Xaw programs need.
12756   ac_save_LDFLAGS=$LDFLAGS
12757   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12758   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12759   # check for ICE first), but we must link in the order -lSM -lICE or
12760   # we get undefined symbols.  So assume we have SM if we have ICE.
12761   # These have to be linked with before -lX11, unlike the other
12762   # libraries we check for below, so use a different variable.
12763   # John Interrante, Karl Berry
12764   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12765 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12766 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769   ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h.  */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h.  */
12777
12778 /* Override any gcc2 internal prototype to avoid an error.  */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 /* We use char because int might match the return type of a gcc2
12783    builtin and then its argument prototype would still apply.  */
12784 char IceConnectionNumber ();
12785 int
12786 main ()
12787 {
12788 IceConnectionNumber ();
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795   (eval $ac_link) 2>conftest.er1
12796   ac_status=$?
12797   grep -v '^ *+' conftest.er1 >conftest.err
12798   rm -f conftest.er1
12799   cat conftest.err >&5
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } &&
12802          { ac_try='test -z "$ac_c_werror_flag"
12803                          || test ! -s conftest.err'
12804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805   (eval $ac_try) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; } &&
12809          { ac_try='test -s conftest$ac_exeext'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; }; then
12815   ac_cv_lib_ICE_IceConnectionNumber=yes
12816 else
12817   echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12819
12820 ac_cv_lib_ICE_IceConnectionNumber=no
12821 fi
12822 rm -f conftest.err conftest.$ac_objext \
12823       conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12825 fi
12826 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12827 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12828 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12829   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12830 fi
12831
12832   LDFLAGS=$ac_save_LDFLAGS
12833
12834 fi
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864 for ac_header in \
12865         assert.h \
12866         fcntl.h \
12867         grp.h \
12868         pwd.h \
12869         libc.h \
12870         limits.h \
12871         stdarg.h \
12872         stdlib.h \
12873         stdint.h \
12874         string.h \
12875         termios.h \
12876         termcap.h \
12877         term.h \
12878         unistd.h \
12879         sys/bitypes.h \
12880         sys/byteorder.h \
12881         sys/ioctl.h \
12882         sys/select.h \
12883         sys/sockio.h \
12884         sys/time.h \
12885         sys/socket.h \
12886         arpa/nameser.h \
12887         resolv.h \
12888         mtio.h \
12889         sys/mtio.h \
12890         sys/tape.h \
12891         regex.h \
12892
12893 do
12894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12896   echo "$as_me:$LINENO: checking for $ac_header" >&5
12897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 fi
12901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12903 else
12904   # Is the header compilable?
12905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12907 cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h.  */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h.  */
12913 $ac_includes_default
12914 #include <$ac_header>
12915 _ACEOF
12916 rm -f conftest.$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918   (eval $ac_compile) 2>conftest.er1
12919   ac_status=$?
12920   grep -v '^ *+' conftest.er1 >conftest.err
12921   rm -f conftest.er1
12922   cat conftest.err >&5
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); } &&
12925          { ac_try='test -z "$ac_c_werror_flag"
12926                          || test ! -s conftest.err'
12927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928   (eval $ac_try) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; } &&
12932          { ac_try='test -s conftest.$ac_objext'
12933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934   (eval $ac_try) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; }; then
12938   ac_header_compiler=yes
12939 else
12940   echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943 ac_header_compiler=no
12944 fi
12945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12947 echo "${ECHO_T}$ac_header_compiler" >&6
12948
12949 # Is the header present?
12950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h.  */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h.  */
12958 #include <$ac_header>
12959 _ACEOF
12960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } >/dev/null; then
12968   if test -s conftest.err; then
12969     ac_cpp_err=$ac_c_preproc_warn_flag
12970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12971   else
12972     ac_cpp_err=
12973   fi
12974 else
12975   ac_cpp_err=yes
12976 fi
12977 if test -z "$ac_cpp_err"; then
12978   ac_header_preproc=yes
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983   ac_header_preproc=no
12984 fi
12985 rm -f conftest.err conftest.$ac_ext
12986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12987 echo "${ECHO_T}$ac_header_preproc" >&6
12988
12989 # So?  What about this header?
12990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12991   yes:no: )
12992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12996     ac_header_preproc=yes
12997     ;;
12998   no:yes:* )
12999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13011     (
13012       cat <<\_ASBOX
13013 ## ------------------------------------------ ##
13014 ## Report this to the AC_PACKAGE_NAME lists.  ##
13015 ## ------------------------------------------ ##
13016 _ASBOX
13017     ) |
13018       sed "s/^/$as_me: WARNING:     /" >&2
13019     ;;
13020 esac
13021 echo "$as_me:$LINENO: checking for $ac_header" >&5
13022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   eval "$as_ac_Header=\$ac_header_preproc"
13027 fi
13028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13030
13031 fi
13032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13033   cat >>confdefs.h <<_ACEOF
13034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13035 _ACEOF
13036
13037 fi
13038
13039 done
13040
13041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13043 if test "${ac_cv_header_stdc+set}" = set; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046   cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h.  */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h.  */
13052 #include <stdlib.h>
13053 #include <stdarg.h>
13054 #include <string.h>
13055 #include <float.h>
13056
13057 int
13058 main ()
13059 {
13060
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 rm -f conftest.$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067   (eval $ac_compile) 2>conftest.er1
13068   ac_status=$?
13069   grep -v '^ *+' conftest.er1 >conftest.err
13070   rm -f conftest.er1
13071   cat conftest.err >&5
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); } &&
13074          { ac_try='test -z "$ac_c_werror_flag"
13075                          || test ! -s conftest.err'
13076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077   (eval $ac_try) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); }; } &&
13081          { ac_try='test -s conftest.$ac_objext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087   ac_cv_header_stdc=yes
13088 else
13089   echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092 ac_cv_header_stdc=no
13093 fi
13094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13095
13096 if test $ac_cv_header_stdc = yes; then
13097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13098   cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104 #include <string.h>
13105
13106 _ACEOF
13107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13108   $EGREP "memchr" >/dev/null 2>&1; then
13109   :
13110 else
13111   ac_cv_header_stdc=no
13112 fi
13113 rm -f conftest*
13114
13115 fi
13116
13117 if test $ac_cv_header_stdc = yes; then
13118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13119   cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h.  */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h.  */
13125 #include <stdlib.h>
13126
13127 _ACEOF
13128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13129   $EGREP "free" >/dev/null 2>&1; then
13130   :
13131 else
13132   ac_cv_header_stdc=no
13133 fi
13134 rm -f conftest*
13135
13136 fi
13137
13138 if test $ac_cv_header_stdc = yes; then
13139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13140   if test "$cross_compiling" = yes; then
13141   :
13142 else
13143   cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149 #include <ctype.h>
13150 #if ((' ' & 0x0FF) == 0x020)
13151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13153 #else
13154 # define ISLOWER(c) \
13155                    (('a' <= (c) && (c) <= 'i') \
13156                      || ('j' <= (c) && (c) <= 'r') \
13157                      || ('s' <= (c) && (c) <= 'z'))
13158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13159 #endif
13160
13161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13162 int
13163 main ()
13164 {
13165   int i;
13166   for (i = 0; i < 256; i++)
13167     if (XOR (islower (i), ISLOWER (i))
13168         || toupper (i) != TOUPPER (i))
13169       exit(2);
13170   exit (0);
13171 }
13172 _ACEOF
13173 rm -f conftest$ac_exeext
13174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13175   (eval $ac_link) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180   (eval $ac_try) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   :
13185 else
13186   echo "$as_me: program exited with status $ac_status" >&5
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 ( exit $ac_status )
13191 ac_cv_header_stdc=no
13192 fi
13193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13194 fi
13195 fi
13196 fi
13197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13199 if test $ac_cv_header_stdc = yes; then
13200
13201 cat >>confdefs.h <<\_ACEOF
13202 #define STDC_HEADERS 1
13203 _ACEOF
13204
13205 fi
13206
13207 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13208 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13209 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13210   echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212   cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 #include <sys/types.h>
13219 int
13220 main ()
13221 {
13222 return makedev(0, 0);
13223   ;
13224   return 0;
13225 }
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229   (eval $ac_link) 2>conftest.er1
13230   ac_status=$?
13231   grep -v '^ *+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -z "$ac_c_werror_flag"
13237                          || test ! -s conftest.err'
13238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239   (eval $ac_try) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; } &&
13243          { ac_try='test -s conftest$ac_exeext'
13244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245   (eval $ac_try) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_cv_header_sys_types_h_makedev=yes
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_cv_header_sys_types_h_makedev=no
13255 fi
13256 rm -f conftest.err conftest.$ac_objext \
13257       conftest$ac_exeext conftest.$ac_ext
13258
13259 fi
13260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13261 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13262
13263 if test $ac_cv_header_sys_types_h_makedev = no; then
13264 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13265   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13266 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13267 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13271 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13272 else
13273   # Is the header compilable?
13274 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13275 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h.  */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h.  */
13282 $ac_includes_default
13283 #include <sys/mkdev.h>
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287   (eval $ac_compile) 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag"
13295                          || test ! -s conftest.err'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; } &&
13301          { ac_try='test -s conftest.$ac_objext'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_header_compiler=yes
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_header_compiler=no
13313 fi
13314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13316 echo "${ECHO_T}$ac_header_compiler" >&6
13317
13318 # Is the header present?
13319 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13320 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327 #include <sys/mkdev.h>
13328 _ACEOF
13329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13331   ac_status=$?
13332   grep -v '^ *+' conftest.er1 >conftest.err
13333   rm -f conftest.er1
13334   cat conftest.err >&5
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); } >/dev/null; then
13337   if test -s conftest.err; then
13338     ac_cpp_err=$ac_c_preproc_warn_flag
13339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13340   else
13341     ac_cpp_err=
13342   fi
13343 else
13344   ac_cpp_err=yes
13345 fi
13346 if test -z "$ac_cpp_err"; then
13347   ac_header_preproc=yes
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352   ac_header_preproc=no
13353 fi
13354 rm -f conftest.err conftest.$ac_ext
13355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13356 echo "${ECHO_T}$ac_header_preproc" >&6
13357
13358 # So?  What about this header?
13359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13360   yes:no: )
13361     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13362 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13363     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13364 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13365     ac_header_preproc=yes
13366     ;;
13367   no:yes:* )
13368     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13369 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13370     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
13371 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
13372     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13373 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13374     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
13375 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13376     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13377 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13378     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13379 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13380     (
13381       cat <<\_ASBOX
13382 ## ------------------------------------------ ##
13383 ## Report this to the AC_PACKAGE_NAME lists.  ##
13384 ## ------------------------------------------ ##
13385 _ASBOX
13386     ) |
13387       sed "s/^/$as_me: WARNING:     /" >&2
13388     ;;
13389 esac
13390 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13391 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395   ac_cv_header_sys_mkdev_h=$ac_header_preproc
13396 fi
13397 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13398 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13399
13400 fi
13401 if test $ac_cv_header_sys_mkdev_h = yes; then
13402
13403 cat >>confdefs.h <<\_ACEOF
13404 #define MAJOR_IN_MKDEV 1
13405 _ACEOF
13406
13407 fi
13408
13409
13410
13411   if test $ac_cv_header_sys_mkdev_h = no; then
13412     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13413   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13414 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13415 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13416   echo $ECHO_N "(cached) $ECHO_C" >&6
13417 fi
13418 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13419 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13420 else
13421   # Is the header compilable?
13422 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13423 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h.  */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h.  */
13430 $ac_includes_default
13431 #include <sys/sysmacros.h>
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435   (eval $ac_compile) 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_c_werror_flag"
13443                          || test ! -s conftest.err'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; } &&
13449          { ac_try='test -s conftest.$ac_objext'
13450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451   (eval $ac_try) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; }; then
13455   ac_header_compiler=yes
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 ac_header_compiler=no
13461 fi
13462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13464 echo "${ECHO_T}$ac_header_compiler" >&6
13465
13466 # Is the header present?
13467 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13468 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h.  */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h.  */
13475 #include <sys/sysmacros.h>
13476 _ACEOF
13477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13479   ac_status=$?
13480   grep -v '^ *+' conftest.er1 >conftest.err
13481   rm -f conftest.er1
13482   cat conftest.err >&5
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); } >/dev/null; then
13485   if test -s conftest.err; then
13486     ac_cpp_err=$ac_c_preproc_warn_flag
13487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13488   else
13489     ac_cpp_err=
13490   fi
13491 else
13492   ac_cpp_err=yes
13493 fi
13494 if test -z "$ac_cpp_err"; then
13495   ac_header_preproc=yes
13496 else
13497   echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13499
13500   ac_header_preproc=no
13501 fi
13502 rm -f conftest.err conftest.$ac_ext
13503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13504 echo "${ECHO_T}$ac_header_preproc" >&6
13505
13506 # So?  What about this header?
13507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13508   yes:no: )
13509     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13510 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13511     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13512 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13513     ac_header_preproc=yes
13514     ;;
13515   no:yes:* )
13516     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13517 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13518     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
13519 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
13520     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13521 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13522     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
13523 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13524     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13525 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13526     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13527 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13528     (
13529       cat <<\_ASBOX
13530 ## ------------------------------------------ ##
13531 ## Report this to the AC_PACKAGE_NAME lists.  ##
13532 ## ------------------------------------------ ##
13533 _ASBOX
13534     ) |
13535       sed "s/^/$as_me: WARNING:     /" >&2
13536     ;;
13537 esac
13538 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13539 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13540 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13541   echo $ECHO_N "(cached) $ECHO_C" >&6
13542 else
13543   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13544 fi
13545 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13546 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13547
13548 fi
13549 if test $ac_cv_header_sys_sysmacros_h = yes; then
13550
13551 cat >>confdefs.h <<\_ACEOF
13552 #define MAJOR_IN_SYSMACROS 1
13553 _ACEOF
13554
13555 fi
13556
13557
13558   fi
13559 fi
13560
13561
13562
13563
13564
13565
13566 ac_header_dirent=no
13567 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13568   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13569 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13570 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580 #include <sys/types.h>
13581 #include <$ac_hdr>
13582
13583 int
13584 main ()
13585 {
13586 if ((DIR *) 0)
13587 return 0;
13588   ;
13589   return 0;
13590 }
13591 _ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594   (eval $ac_compile) 2>conftest.er1
13595   ac_status=$?
13596   grep -v '^ *+' conftest.er1 >conftest.err
13597   rm -f conftest.er1
13598   cat conftest.err >&5
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); } &&
13601          { ac_try='test -z "$ac_c_werror_flag"
13602                          || test ! -s conftest.err'
13603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604   (eval $ac_try) 2>&5
13605   ac_status=$?
13606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607   (exit $ac_status); }; } &&
13608          { ac_try='test -s conftest.$ac_objext'
13609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610   (eval $ac_try) 2>&5
13611   ac_status=$?
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); }; }; then
13614   eval "$as_ac_Header=yes"
13615 else
13616   echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 eval "$as_ac_Header=no"
13620 fi
13621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13622 fi
13623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626   cat >>confdefs.h <<_ACEOF
13627 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13628 _ACEOF
13629
13630 ac_header_dirent=$ac_hdr; break
13631 fi
13632
13633 done
13634 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13635 if test $ac_header_dirent = dirent.h; then
13636   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13637 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13638 if test "${ac_cv_search_opendir+set}" = set; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   ac_func_search_save_LIBS=$LIBS
13642 ac_cv_search_opendir=no
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h.  */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h.  */
13649
13650 /* Override any gcc2 internal prototype to avoid an error.  */
13651 #ifdef __cplusplus
13652 extern "C"
13653 #endif
13654 /* We use char because int might match the return type of a gcc2
13655    builtin and then its argument prototype would still apply.  */
13656 char opendir ();
13657 int
13658 main ()
13659 {
13660 opendir ();
13661   ;
13662   return 0;
13663 }
13664 _ACEOF
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667   (eval $ac_link) 2>conftest.er1
13668   ac_status=$?
13669   grep -v '^ *+' conftest.er1 >conftest.err
13670   rm -f conftest.er1
13671   cat conftest.err >&5
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -z "$ac_c_werror_flag"
13675                          || test ! -s conftest.err'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; } &&
13681          { ac_try='test -s conftest$ac_exeext'
13682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683   (eval $ac_try) 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; }; then
13687   ac_cv_search_opendir="none required"
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692 fi
13693 rm -f conftest.err conftest.$ac_objext \
13694       conftest$ac_exeext conftest.$ac_ext
13695 if test "$ac_cv_search_opendir" = no; then
13696   for ac_lib in dir; do
13697     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13698     cat >conftest.$ac_ext <<_ACEOF
13699 /* confdefs.h.  */
13700 _ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h.  */
13704
13705 /* Override any gcc2 internal prototype to avoid an error.  */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 /* We use char because int might match the return type of a gcc2
13710    builtin and then its argument prototype would still apply.  */
13711 char opendir ();
13712 int
13713 main ()
13714 {
13715 opendir ();
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722   (eval $ac_link) 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } &&
13729          { ac_try='test -z "$ac_c_werror_flag"
13730                          || test ! -s conftest.err'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; } &&
13736          { ac_try='test -s conftest$ac_exeext'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }; then
13742   ac_cv_search_opendir="-l$ac_lib"
13743 break
13744 else
13745   echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 fi
13749 rm -f conftest.err conftest.$ac_objext \
13750       conftest$ac_exeext conftest.$ac_ext
13751   done
13752 fi
13753 LIBS=$ac_func_search_save_LIBS
13754 fi
13755 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13756 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13757 if test "$ac_cv_search_opendir" != no; then
13758   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13759
13760 fi
13761
13762 else
13763   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13765 if test "${ac_cv_search_opendir+set}" = set; then
13766   echo $ECHO_N "(cached) $ECHO_C" >&6
13767 else
13768   ac_func_search_save_LIBS=$LIBS
13769 ac_cv_search_opendir=no
13770 cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776
13777 /* Override any gcc2 internal prototype to avoid an error.  */
13778 #ifdef __cplusplus
13779 extern "C"
13780 #endif
13781 /* We use char because int might match the return type of a gcc2
13782    builtin and then its argument prototype would still apply.  */
13783 char opendir ();
13784 int
13785 main ()
13786 {
13787 opendir ();
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13794   (eval $ac_link) 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_c_werror_flag"
13802                          || test ! -s conftest.err'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; } &&
13808          { ac_try='test -s conftest$ac_exeext'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814   ac_cv_search_opendir="none required"
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 fi
13820 rm -f conftest.err conftest.$ac_objext \
13821       conftest$ac_exeext conftest.$ac_ext
13822 if test "$ac_cv_search_opendir" = no; then
13823   for ac_lib in x; do
13824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13825     cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h.  */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h.  */
13831
13832 /* Override any gcc2 internal prototype to avoid an error.  */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 /* We use char because int might match the return type of a gcc2
13837    builtin and then its argument prototype would still apply.  */
13838 char opendir ();
13839 int
13840 main ()
13841 {
13842 opendir ();
13843   ;
13844   return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13849   (eval $ac_link) 2>conftest.er1
13850   ac_status=$?
13851   grep -v '^ *+' conftest.er1 >conftest.err
13852   rm -f conftest.er1
13853   cat conftest.err >&5
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); } &&
13856          { ac_try='test -z "$ac_c_werror_flag"
13857                          || test ! -s conftest.err'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } &&
13863          { ac_try='test -s conftest$ac_exeext'
13864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865   (eval $ac_try) 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; }; then
13869   ac_cv_search_opendir="-l$ac_lib"
13870 break
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 fi
13876 rm -f conftest.err conftest.$ac_objext \
13877       conftest$ac_exeext conftest.$ac_ext
13878   done
13879 fi
13880 LIBS=$ac_func_search_save_LIBS
13881 fi
13882 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13883 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13884 if test "$ac_cv_search_opendir" != no; then
13885   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13886
13887 fi
13888
13889 fi
13890
13891 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13892 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13893 if test "${ac_cv_header_stat_broken+set}" = set; then
13894   echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896   cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h.  */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h.  */
13902 #include <sys/types.h>
13903 #include <sys/stat.h>
13904
13905 #if defined(S_ISBLK) && defined(S_IFDIR)
13906 # if S_ISBLK (S_IFDIR)
13907 You lose.
13908 # endif
13909 #endif
13910
13911 #if defined(S_ISBLK) && defined(S_IFCHR)
13912 # if S_ISBLK (S_IFCHR)
13913 You lose.
13914 # endif
13915 #endif
13916
13917 #if defined(S_ISLNK) && defined(S_IFREG)
13918 # if S_ISLNK (S_IFREG)
13919 You lose.
13920 # endif
13921 #endif
13922
13923 #if defined(S_ISSOCK) && defined(S_IFREG)
13924 # if S_ISSOCK (S_IFREG)
13925 You lose.
13926 # endif
13927 #endif
13928
13929 _ACEOF
13930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13931   $EGREP "You lose" >/dev/null 2>&1; then
13932   ac_cv_header_stat_broken=yes
13933 else
13934   ac_cv_header_stat_broken=no
13935 fi
13936 rm -f conftest*
13937
13938 fi
13939 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13940 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13941 if test $ac_cv_header_stat_broken = yes; then
13942
13943 cat >>confdefs.h <<\_ACEOF
13944 #define STAT_MACROS_BROKEN 1
13945 _ACEOF
13946
13947 fi
13948
13949 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h.  */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h.  */
13960 #include <sys/types.h>
13961 #include <sys/wait.h>
13962 #ifndef WEXITSTATUS
13963 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13964 #endif
13965 #ifndef WIFEXITED
13966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13967 #endif
13968
13969 int
13970 main ()
13971 {
13972   int s;
13973   wait (&s);
13974   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981   (eval $ac_compile) 2>conftest.er1
13982   ac_status=$?
13983   grep -v '^ *+' conftest.er1 >conftest.err
13984   rm -f conftest.er1
13985   cat conftest.err >&5
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); } &&
13988          { ac_try='test -z "$ac_c_werror_flag"
13989                          || test ! -s conftest.err'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; } &&
13995          { ac_try='test -s conftest.$ac_objext'
13996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997   (eval $ac_try) 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; }; then
14001   ac_cv_header_sys_wait_h=yes
14002 else
14003   echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006 ac_cv_header_sys_wait_h=no
14007 fi
14008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14009 fi
14010 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14011 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14012 if test $ac_cv_header_sys_wait_h = yes; then
14013
14014 cat >>confdefs.h <<\_ACEOF
14015 #define HAVE_SYS_WAIT_H 1
14016 _ACEOF
14017
14018 fi
14019
14020 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14021 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14022 if test "${ac_cv_header_time+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h.  */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h.  */
14031 #include <sys/types.h>
14032 #include <sys/time.h>
14033 #include <time.h>
14034
14035 int
14036 main ()
14037 {
14038 if ((struct tm *) 0)
14039 return 0;
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046   (eval $ac_compile) 2>conftest.er1
14047   ac_status=$?
14048   grep -v '^ *+' conftest.er1 >conftest.err
14049   rm -f conftest.er1
14050   cat conftest.err >&5
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } &&
14053          { ac_try='test -z "$ac_c_werror_flag"
14054                          || test ! -s conftest.err'
14055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056   (eval $ac_try) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); }; } &&
14060          { ac_try='test -s conftest.$ac_objext'
14061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062   (eval $ac_try) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   ac_cv_header_time=yes
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071 ac_cv_header_time=no
14072 fi
14073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074 fi
14075 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14076 echo "${ECHO_T}$ac_cv_header_time" >&6
14077 if test $ac_cv_header_time = yes; then
14078
14079 cat >>confdefs.h <<\_ACEOF
14080 #define TIME_WITH_SYS_TIME 1
14081 _ACEOF
14082
14083 fi
14084
14085
14086 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14087 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14088 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14089   echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091   cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 $ac_includes_default
14098 int
14099 main ()
14100 {
14101 static struct stat ac_aggr;
14102 if (ac_aggr.st_blksize)
14103 return 0;
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110   (eval $ac_compile) 2>conftest.er1
14111   ac_status=$?
14112   grep -v '^ *+' conftest.er1 >conftest.err
14113   rm -f conftest.er1
14114   cat conftest.err >&5
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); } &&
14117          { ac_try='test -z "$ac_c_werror_flag"
14118                          || test ! -s conftest.err'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; } &&
14124          { ac_try='test -s conftest.$ac_objext'
14125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126   (eval $ac_try) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; }; then
14130   ac_cv_member_struct_stat_st_blksize=yes
14131 else
14132   echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14134
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 $ac_includes_default
14142 int
14143 main ()
14144 {
14145 static struct stat ac_aggr;
14146 if (sizeof ac_aggr.st_blksize)
14147 return 0;
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154   (eval $ac_compile) 2>conftest.er1
14155   ac_status=$?
14156   grep -v '^ *+' conftest.er1 >conftest.err
14157   rm -f conftest.er1
14158   cat conftest.err >&5
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -z "$ac_c_werror_flag"
14162                          || test ! -s conftest.err'
14163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164   (eval $ac_try) 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; } &&
14168          { ac_try='test -s conftest.$ac_objext'
14169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170   (eval $ac_try) 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); }; }; then
14174   ac_cv_member_struct_stat_st_blksize=yes
14175 else
14176   echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179 ac_cv_member_struct_stat_st_blksize=no
14180 fi
14181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14182 fi
14183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14184 fi
14185 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14186 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14187 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14188
14189 cat >>confdefs.h <<_ACEOF
14190 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14191 _ACEOF
14192
14193
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_ST_BLKSIZE 1
14196 _ACEOF
14197
14198 fi
14199
14200
14201 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14202 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14203 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14204   echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206   cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212 $ac_includes_default
14213 int
14214 main ()
14215 {
14216 static struct stat ac_aggr;
14217 if (ac_aggr.st_blocks)
14218 return 0;
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 rm -f conftest.$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225   (eval $ac_compile) 2>conftest.er1
14226   ac_status=$?
14227   grep -v '^ *+' conftest.er1 >conftest.err
14228   rm -f conftest.er1
14229   cat conftest.err >&5
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } &&
14232          { ac_try='test -z "$ac_c_werror_flag"
14233                          || test ! -s conftest.err'
14234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235   (eval $ac_try) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; } &&
14239          { ac_try='test -s conftest.$ac_objext'
14240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241   (eval $ac_try) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; }; then
14245   ac_cv_member_struct_stat_st_blocks=yes
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 $ac_includes_default
14257 int
14258 main ()
14259 {
14260 static struct stat ac_aggr;
14261 if (sizeof ac_aggr.st_blocks)
14262 return 0;
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269   (eval $ac_compile) 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_c_werror_flag"
14277                          || test ! -s conftest.err'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_cv_member_struct_stat_st_blocks=yes
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 ac_cv_member_struct_stat_st_blocks=no
14295 fi
14296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14297 fi
14298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14299 fi
14300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14301 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14302 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14303
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14306 _ACEOF
14307
14308
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_ST_BLOCKS 1
14311 _ACEOF
14312
14313 else
14314   case $LIBOBJS in
14315     "fileblocks.$ac_objext"   | \
14316   *" fileblocks.$ac_objext"   | \
14317     "fileblocks.$ac_objext "* | \
14318   *" fileblocks.$ac_objext "* ) ;;
14319   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14320 esac
14321
14322 fi
14323
14324
14325 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14326 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14327 if test "${ac_cv_struct_tm+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 #include <sys/types.h>
14337 #include <time.h>
14338
14339 int
14340 main ()
14341 {
14342 struct tm *tp; tp->tm_sec;
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349   (eval $ac_compile) 2>conftest.er1
14350   ac_status=$?
14351   grep -v '^ *+' conftest.er1 >conftest.err
14352   rm -f conftest.er1
14353   cat conftest.err >&5
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } &&
14356          { ac_try='test -z "$ac_c_werror_flag"
14357                          || test ! -s conftest.err'
14358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359   (eval $ac_try) 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; } &&
14363          { ac_try='test -s conftest.$ac_objext'
14364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365   (eval $ac_try) 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; }; then
14369   ac_cv_struct_tm=time.h
14370 else
14371   echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_cv_struct_tm=sys/time.h
14375 fi
14376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14377 fi
14378 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14379 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14380 if test $ac_cv_struct_tm = sys/time.h; then
14381
14382 cat >>confdefs.h <<\_ACEOF
14383 #define TM_IN_SYS_TIME 1
14384 _ACEOF
14385
14386 fi
14387
14388 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14389 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14390 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14391   echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393   cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h.  */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h.  */
14399 #include <sys/types.h>
14400 #include <$ac_cv_struct_tm>
14401
14402
14403 int
14404 main ()
14405 {
14406 static struct tm ac_aggr;
14407 if (ac_aggr.tm_zone)
14408 return 0;
14409   ;
14410   return 0;
14411 }
14412 _ACEOF
14413 rm -f conftest.$ac_objext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415   (eval $ac_compile) 2>conftest.er1
14416   ac_status=$?
14417   grep -v '^ *+' conftest.er1 >conftest.err
14418   rm -f conftest.er1
14419   cat conftest.err >&5
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } &&
14422          { ac_try='test -z "$ac_c_werror_flag"
14423                          || test ! -s conftest.err'
14424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425   (eval $ac_try) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; } &&
14429          { ac_try='test -s conftest.$ac_objext'
14430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431   (eval $ac_try) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   ac_cv_member_struct_tm_tm_zone=yes
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h.  */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h.  */
14446 #include <sys/types.h>
14447 #include <$ac_cv_struct_tm>
14448
14449
14450 int
14451 main ()
14452 {
14453 static struct tm ac_aggr;
14454 if (sizeof ac_aggr.tm_zone)
14455 return 0;
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462   (eval $ac_compile) 2>conftest.er1
14463   ac_status=$?
14464   grep -v '^ *+' conftest.er1 >conftest.err
14465   rm -f conftest.er1
14466   cat conftest.err >&5
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } &&
14469          { ac_try='test -z "$ac_c_werror_flag"
14470                          || test ! -s conftest.err'
14471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472   (eval $ac_try) 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }; } &&
14476          { ac_try='test -s conftest.$ac_objext'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   ac_cv_member_struct_tm_tm_zone=yes
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 ac_cv_member_struct_tm_tm_zone=no
14488 fi
14489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14490 fi
14491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14492 fi
14493 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14494 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14495 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14496
14497 cat >>confdefs.h <<_ACEOF
14498 #define HAVE_STRUCT_TM_TM_ZONE 1
14499 _ACEOF
14500
14501
14502 fi
14503
14504 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14505
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_TM_ZONE 1
14508 _ACEOF
14509
14510 else
14511   echo "$as_me:$LINENO: checking for tzname" >&5
14512 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14513 if test "${ac_cv_var_tzname+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 #include <time.h>
14523 #ifndef tzname /* For SGI.  */
14524 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14525 #endif
14526
14527 int
14528 main ()
14529 {
14530 atoi(*tzname);
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext conftest$ac_exeext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14537   (eval $ac_link) 2>conftest.er1
14538   ac_status=$?
14539   grep -v '^ *+' conftest.er1 >conftest.err
14540   rm -f conftest.er1
14541   cat conftest.err >&5
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } &&
14544          { ac_try='test -z "$ac_c_werror_flag"
14545                          || test ! -s conftest.err'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; } &&
14551          { ac_try='test -s conftest$ac_exeext'
14552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553   (eval $ac_try) 2>&5
14554   ac_status=$?
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); }; }; then
14557   ac_cv_var_tzname=yes
14558 else
14559   echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14561
14562 ac_cv_var_tzname=no
14563 fi
14564 rm -f conftest.err conftest.$ac_objext \
14565       conftest$ac_exeext conftest.$ac_ext
14566 fi
14567 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14568 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14569   if test $ac_cv_var_tzname = yes; then
14570
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_TZNAME 1
14573 _ACEOF
14574
14575   fi
14576 fi
14577
14578
14579 echo "$as_me:$LINENO: checking for utime.h" >&5
14580 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14581 if test "${ba_cv_header_utime_h+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584   cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590
14591 #include <sys/types.h>
14592 #include <utime.h>
14593 int
14594 main ()
14595 {
14596 struct utimbuf foo
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603   (eval $ac_compile) 2>conftest.er1
14604   ac_status=$?
14605   grep -v '^ *+' conftest.er1 >conftest.err
14606   rm -f conftest.er1
14607   cat conftest.err >&5
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); } &&
14610          { ac_try='test -z "$ac_c_werror_flag"
14611                          || test ! -s conftest.err'
14612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613   (eval $ac_try) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; } &&
14617          { ac_try='test -s conftest.$ac_objext'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }; then
14623   ba_cv_header_utime_h=yes
14624 else
14625   echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628 ba_cv_header_utime_h=no
14629 fi
14630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14631 fi
14632 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14633 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14634 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_UTIME_H 1
14636 _ACEOF
14637
14638
14639 echo "$as_me:$LINENO: checking for socklen_t" >&5
14640 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14641 if test "${ba_cv_header_socklen_t+set}" = set; then
14642   echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644   cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h.  */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h.  */
14650
14651 #include <sys/types.h>
14652 #include <sys/socket.h>
14653 int
14654 main ()
14655 {
14656 socklen_t x
14657   ;
14658   return 0;
14659 }
14660 _ACEOF
14661 rm -f conftest.$ac_objext
14662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14663   (eval $ac_compile) 2>conftest.er1
14664   ac_status=$?
14665   grep -v '^ *+' conftest.er1 >conftest.err
14666   rm -f conftest.er1
14667   cat conftest.err >&5
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); } &&
14670          { ac_try='test -z "$ac_c_werror_flag"
14671                          || test ! -s conftest.err'
14672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673   (eval $ac_try) 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; } &&
14677          { ac_try='test -s conftest.$ac_objext'
14678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679   (eval $ac_try) 2>&5
14680   ac_status=$?
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); }; }; then
14683   ba_cv_header_socklen_t=yes
14684 else
14685   echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688 ba_cv_header_socklen_t=no
14689 fi
14690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14691 fi
14692 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14693 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14694 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14695 #define HAVE_SOCKLEN_T 1
14696 _ACEOF
14697
14698
14699 echo "$as_me:$LINENO: checking for bigendian" >&5
14700 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14701 if test "${ba_cv_bigendian+set}" = set; then
14702   echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704   if test "$cross_compiling" = yes; then
14705   ba_cv_bigendian=no
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14714 _ACEOF
14715 rm -f conftest$ac_exeext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717   (eval $ac_link) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ba_cv_bigendian=yes
14727 else
14728   echo "$as_me: program exited with status $ac_status" >&5
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ( exit $ac_status )
14733 ba_cv_bigendian=no
14734 fi
14735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14736 fi
14737 fi
14738 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14739 echo "${ECHO_T}$ba_cv_bigendian" >&6
14740 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14741 #define HAVE_BIGENDIAN 1
14742 _ACEOF
14743
14744
14745
14746 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14747 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14748 if test "${ac_cv_c_const+set}" = set; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751   cat >conftest.$ac_ext <<_ACEOF
14752 /* confdefs.h.  */
14753 _ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h.  */
14757
14758 int
14759 main ()
14760 {
14761 /* FIXME: Include the comments suggested by Paul. */
14762 #ifndef __cplusplus
14763   /* Ultrix mips cc rejects this.  */
14764   typedef int charset[2];
14765   const charset x;
14766   /* SunOS 4.1.1 cc rejects this.  */
14767   char const *const *ccp;
14768   char **p;
14769   /* NEC SVR4.0.2 mips cc rejects this.  */
14770   struct point {int x, y;};
14771   static struct point const zero = {0,0};
14772   /* AIX XL C 1.02.0.0 rejects this.
14773      It does not let you subtract one const X* pointer from another in
14774      an arm of an if-expression whose if-part is not a constant
14775      expression */
14776   const char *g = "string";
14777   ccp = &g + (g ? g-g : 0);
14778   /* HPUX 7.0 cc rejects these. */
14779   ++ccp;
14780   p = (char**) ccp;
14781   ccp = (char const *const *) p;
14782   { /* SCO 3.2v4 cc rejects this.  */
14783     char *t;
14784     char const *s = 0 ? (char *) 0 : (char const *) 0;
14785
14786     *t++ = 0;
14787   }
14788   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14789     int x[] = {25, 17};
14790     const int *foo = &x[0];
14791     ++foo;
14792   }
14793   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14794     typedef const int *iptr;
14795     iptr p = 0;
14796     ++p;
14797   }
14798   { /* AIX XL C 1.02.0.0 rejects this saying
14799        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14800     struct s { int j; const int *ap[3]; };
14801     struct s *b; b->j = 5;
14802   }
14803   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14804     const int foo = 10;
14805   }
14806 #endif
14807
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14814   (eval $ac_compile) 2>conftest.er1
14815   ac_status=$?
14816   grep -v '^ *+' conftest.er1 >conftest.err
14817   rm -f conftest.er1
14818   cat conftest.err >&5
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); } &&
14821          { ac_try='test -z "$ac_c_werror_flag"
14822                          || test ! -s conftest.err'
14823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824   (eval $ac_try) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); }; } &&
14828          { ac_try='test -s conftest.$ac_objext'
14829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830   (eval $ac_try) 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834   ac_cv_c_const=yes
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 ac_cv_c_const=no
14840 fi
14841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14842 fi
14843 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14844 echo "${ECHO_T}$ac_cv_c_const" >&6
14845 if test $ac_cv_c_const = no; then
14846
14847 cat >>confdefs.h <<\_ACEOF
14848 #define const
14849 _ACEOF
14850
14851 fi
14852
14853
14854
14855 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14856 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14857 fstype=no
14858 # The order of these tests is important.
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 #include <sys/statvfs.h>
14866 #include <sys/fstyp.h>
14867 _ACEOF
14868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } >/dev/null; then
14876   if test -s conftest.err; then
14877     ac_cpp_err=$ac_c_preproc_warn_flag
14878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14879   else
14880     ac_cpp_err=
14881   fi
14882 else
14883   ac_cpp_err=yes
14884 fi
14885 if test -z "$ac_cpp_err"; then
14886   cat >>confdefs.h <<\_ACEOF
14887 #define FSTYPE_STATVFS 1
14888 _ACEOF
14889  fstype=SVR4
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894
14895 fi
14896 rm -f conftest.err conftest.$ac_ext
14897 if test $fstype = no; then
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 #include <sys/statfs.h>
14905 #include <sys/fstyp.h>
14906 _ACEOF
14907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14909   ac_status=$?
14910   grep -v '^ *+' conftest.er1 >conftest.err
14911   rm -f conftest.er1
14912   cat conftest.err >&5
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } >/dev/null; then
14915   if test -s conftest.err; then
14916     ac_cpp_err=$ac_c_preproc_warn_flag
14917     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14918   else
14919     ac_cpp_err=
14920   fi
14921 else
14922   ac_cpp_err=yes
14923 fi
14924 if test -z "$ac_cpp_err"; then
14925   cat >>confdefs.h <<\_ACEOF
14926 #define FSTYPE_USG_STATFS 1
14927 _ACEOF
14928  fstype=SVR3
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933
14934 fi
14935 rm -f conftest.err conftest.$ac_ext
14936 fi
14937 if test $fstype = no; then
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h.  */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h.  */
14944 #include <sys/statfs.h>
14945 #include <sys/vmount.h>
14946 _ACEOF
14947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14949   ac_status=$?
14950   grep -v '^ *+' conftest.er1 >conftest.err
14951   rm -f conftest.er1
14952   cat conftest.err >&5
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } >/dev/null; then
14955   if test -s conftest.err; then
14956     ac_cpp_err=$ac_c_preproc_warn_flag
14957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14958   else
14959     ac_cpp_err=
14960   fi
14961 else
14962   ac_cpp_err=yes
14963 fi
14964 if test -z "$ac_cpp_err"; then
14965   cat >>confdefs.h <<\_ACEOF
14966 #define FSTYPE_AIX_STATFS 1
14967 _ACEOF
14968  fstype=AIX
14969 else
14970   echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973
14974 fi
14975 rm -f conftest.err conftest.$ac_ext
14976 fi
14977 if test $fstype = no; then
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984 #include <mntent.h>
14985 _ACEOF
14986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } >/dev/null; then
14994   if test -s conftest.err; then
14995     ac_cpp_err=$ac_c_preproc_warn_flag
14996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14997   else
14998     ac_cpp_err=
14999   fi
15000 else
15001   ac_cpp_err=yes
15002 fi
15003 if test -z "$ac_cpp_err"; then
15004   cat >>confdefs.h <<\_ACEOF
15005 #define FSTYPE_MNTENT 1
15006 _ACEOF
15007  fstype=4.3BSD
15008 else
15009   echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012
15013 fi
15014 rm -f conftest.err conftest.$ac_ext
15015 fi
15016 if test $fstype = no; then
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023 #include <sys/mount.h>
15024
15025 _ACEOF
15026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15027   $EGREP "f_type;" >/dev/null 2>&1; then
15028   cat >>confdefs.h <<\_ACEOF
15029 #define FSTYPE_STATFS 1
15030 _ACEOF
15031  fstype=4.4BSD/OSF1
15032 fi
15033 rm -f conftest*
15034
15035 fi
15036 if test $fstype = no; then
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h.  */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h.  */
15043 #include <sys/mount.h>
15044 #include <sys/fs_types.h>
15045 _ACEOF
15046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15048   ac_status=$?
15049   grep -v '^ *+' conftest.er1 >conftest.err
15050   rm -f conftest.er1
15051   cat conftest.err >&5
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); } >/dev/null; then
15054   if test -s conftest.err; then
15055     ac_cpp_err=$ac_c_preproc_warn_flag
15056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15057   else
15058     ac_cpp_err=
15059   fi
15060 else
15061   ac_cpp_err=yes
15062 fi
15063 if test -z "$ac_cpp_err"; then
15064   cat >>confdefs.h <<\_ACEOF
15065 #define FSTYPE_GETMNT 1
15066 _ACEOF
15067  fstype=Ultrix
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072
15073 fi
15074 rm -f conftest.err conftest.$ac_ext
15075 fi
15076 echo "$as_me:$LINENO: result: $fstype" >&5
15077 echo "${ECHO_T}$fstype" >&6
15078
15079 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15080 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15081 if test "${ac_cv_type_signal+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h.  */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h.  */
15090 #include <sys/types.h>
15091 #include <signal.h>
15092 #ifdef signal
15093 # undef signal
15094 #endif
15095 #ifdef __cplusplus
15096 extern "C" void (*signal (int, void (*)(int)))(int);
15097 #else
15098 void (*signal ()) ();
15099 #endif
15100
15101 int
15102 main ()
15103 {
15104 int i;
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111   (eval $ac_compile) 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } &&
15118          { ac_try='test -z "$ac_c_werror_flag"
15119                          || test ! -s conftest.err'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; } &&
15125          { ac_try='test -s conftest.$ac_objext'
15126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127   (eval $ac_try) 2>&5
15128   ac_status=$?
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); }; }; then
15131   ac_cv_type_signal=void
15132 else
15133   echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15135
15136 ac_cv_type_signal=int
15137 fi
15138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15139 fi
15140 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15141 echo "${ECHO_T}$ac_cv_type_signal" >&6
15142
15143 cat >>confdefs.h <<_ACEOF
15144 #define RETSIGTYPE $ac_cv_type_signal
15145 _ACEOF
15146
15147
15148
15149 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15150 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15151 if test "${bash_cv_signal_vintage+set}" = set; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154
15155   cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161 #include <signal.h>
15162 int
15163 main ()
15164 {
15165
15166     sigset_t ss;
15167     struct sigaction sa;
15168     sigemptyset(&ss); sigsuspend(&ss);
15169     sigaction(SIGINT, &sa, (struct sigaction *) 0);
15170     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15171
15172   ;
15173   return 0;
15174 }
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178   (eval $ac_link) 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_c_werror_flag"
15186                          || test ! -s conftest.err'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; } &&
15192          { ac_try='test -s conftest$ac_exeext'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   bash_cv_signal_vintage=posix
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203
15204     cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210 #include <signal.h>
15211 int
15212 main ()
15213 {
15214
15215         int mask = sigmask(SIGINT);
15216         sigsetmask(mask); sigblock(mask); sigpause(mask);
15217
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224   (eval $ac_link) 2>conftest.er1
15225   ac_status=$?
15226   grep -v '^ *+' conftest.er1 >conftest.err
15227   rm -f conftest.er1
15228   cat conftest.err >&5
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); } &&
15231          { ac_try='test -z "$ac_c_werror_flag"
15232                          || test ! -s conftest.err'
15233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234   (eval $ac_try) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; } &&
15238          { ac_try='test -s conftest$ac_exeext'
15239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240   (eval $ac_try) 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   bash_cv_signal_vintage=4.2bsd
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249
15250       cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h.  */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h.  */
15256
15257         #include <signal.h>
15258         RETSIGTYPE foo() { }
15259 int
15260 main ()
15261 {
15262
15263                 int mask = sigmask(SIGINT);
15264                 sigset(SIGINT, foo); sigrelse(SIGINT);
15265                 sighold(SIGINT); sigpause(SIGINT);
15266
15267   ;
15268   return 0;
15269 }
15270 _ACEOF
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273   (eval $ac_link) 2>conftest.er1
15274   ac_status=$?
15275   grep -v '^ *+' conftest.er1 >conftest.err
15276   rm -f conftest.er1
15277   cat conftest.err >&5
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); } &&
15280          { ac_try='test -z "$ac_c_werror_flag"
15281                          || test ! -s conftest.err'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; } &&
15287          { ac_try='test -s conftest$ac_exeext'
15288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289   (eval $ac_try) 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); }; }; then
15293   bash_cv_signal_vintage=svr3
15294 else
15295   echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 bash_cv_signal_vintage=v7
15299
15300 fi
15301 rm -f conftest.err conftest.$ac_objext \
15302       conftest$ac_exeext conftest.$ac_ext
15303
15304 fi
15305 rm -f conftest.err conftest.$ac_objext \
15306       conftest$ac_exeext conftest.$ac_ext
15307
15308 fi
15309 rm -f conftest.err conftest.$ac_objext \
15310       conftest$ac_exeext conftest.$ac_ext
15311
15312 fi
15313
15314 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15315 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15316 if test "$bash_cv_signal_vintage" = posix; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_POSIX_SIGNALS 1
15319 _ACEOF
15320
15321 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15322 cat >>confdefs.h <<\_ACEOF
15323 #define HAVE_BSD_SIGNALS 1
15324 _ACEOF
15325
15326 elif test "$bash_cv_signal_vintage" = svr3; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_USG_SIGHOLD 1
15329 _ACEOF
15330
15331 fi
15332
15333 echo "$as_me:$LINENO: checking for mode_t" >&5
15334 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15335 if test "${ac_cv_type_mode_t+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h.  */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h.  */
15344 $ac_includes_default
15345 int
15346 main ()
15347 {
15348 if ((mode_t *) 0)
15349   return 0;
15350 if (sizeof (mode_t))
15351   return 0;
15352   ;
15353   return 0;
15354 }
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358   (eval $ac_compile) 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } &&
15365          { ac_try='test -z "$ac_c_werror_flag"
15366                          || test ! -s conftest.err'
15367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368   (eval $ac_try) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; } &&
15372          { ac_try='test -s conftest.$ac_objext'
15373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374   (eval $ac_try) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; }; then
15378   ac_cv_type_mode_t=yes
15379 else
15380   echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383 ac_cv_type_mode_t=no
15384 fi
15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386 fi
15387 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15388 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15389 if test $ac_cv_type_mode_t = yes; then
15390   :
15391 else
15392
15393 cat >>confdefs.h <<_ACEOF
15394 #define mode_t int
15395 _ACEOF
15396
15397 fi
15398
15399 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15400 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15401 if test "${ac_cv_type_uid_t+set}" = set; then
15402   echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404   cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h.  */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h.  */
15410 #include <sys/types.h>
15411
15412 _ACEOF
15413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15414   $EGREP "uid_t" >/dev/null 2>&1; then
15415   ac_cv_type_uid_t=yes
15416 else
15417   ac_cv_type_uid_t=no
15418 fi
15419 rm -f conftest*
15420
15421 fi
15422 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15423 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15424 if test $ac_cv_type_uid_t = no; then
15425
15426 cat >>confdefs.h <<\_ACEOF
15427 #define uid_t int
15428 _ACEOF
15429
15430
15431 cat >>confdefs.h <<\_ACEOF
15432 #define gid_t int
15433 _ACEOF
15434
15435 fi
15436
15437 echo "$as_me:$LINENO: checking for size_t" >&5
15438 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15439 if test "${ac_cv_type_size_t+set}" = set; then
15440   echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442   cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448 $ac_includes_default
15449 int
15450 main ()
15451 {
15452 if ((size_t *) 0)
15453   return 0;
15454 if (sizeof (size_t))
15455   return 0;
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 rm -f conftest.$ac_objext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15462   (eval $ac_compile) 2>conftest.er1
15463   ac_status=$?
15464   grep -v '^ *+' conftest.er1 >conftest.err
15465   rm -f conftest.er1
15466   cat conftest.err >&5
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); } &&
15469          { ac_try='test -z "$ac_c_werror_flag"
15470                          || test ! -s conftest.err'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; } &&
15476          { ac_try='test -s conftest.$ac_objext'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; }; then
15482   ac_cv_type_size_t=yes
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487 ac_cv_type_size_t=no
15488 fi
15489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15490 fi
15491 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15492 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15493 if test $ac_cv_type_size_t = yes; then
15494   :
15495 else
15496
15497 cat >>confdefs.h <<_ACEOF
15498 #define size_t unsigned
15499 _ACEOF
15500
15501 fi
15502
15503 echo "$as_me:$LINENO: checking for pid_t" >&5
15504 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15505 if test "${ac_cv_type_pid_t+set}" = set; then
15506   echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508   cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h.  */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h.  */
15514 $ac_includes_default
15515 int
15516 main ()
15517 {
15518 if ((pid_t *) 0)
15519   return 0;
15520 if (sizeof (pid_t))
15521   return 0;
15522   ;
15523   return 0;
15524 }
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528   (eval $ac_compile) 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -z "$ac_c_werror_flag"
15536                          || test ! -s conftest.err'
15537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538   (eval $ac_try) 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); }; } &&
15542          { ac_try='test -s conftest.$ac_objext'
15543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544   (eval $ac_try) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }; then
15548   ac_cv_type_pid_t=yes
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 ac_cv_type_pid_t=no
15554 fi
15555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556 fi
15557 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15558 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15559 if test $ac_cv_type_pid_t = yes; then
15560   :
15561 else
15562
15563 cat >>confdefs.h <<_ACEOF
15564 #define pid_t int
15565 _ACEOF
15566
15567 fi
15568
15569 echo "$as_me:$LINENO: checking for off_t" >&5
15570 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15571 if test "${ac_cv_type_off_t+set}" = set; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 $ac_includes_default
15581 int
15582 main ()
15583 {
15584 if ((off_t *) 0)
15585   return 0;
15586 if (sizeof (off_t))
15587   return 0;
15588   ;
15589   return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest.$ac_objext
15593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15594   (eval $ac_compile) 2>conftest.er1
15595   ac_status=$?
15596   grep -v '^ *+' conftest.er1 >conftest.err
15597   rm -f conftest.er1
15598   cat conftest.err >&5
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); } &&
15601          { ac_try='test -z "$ac_c_werror_flag"
15602                          || test ! -s conftest.err'
15603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604   (eval $ac_try) 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; } &&
15608          { ac_try='test -s conftest.$ac_objext'
15609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610   (eval $ac_try) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; }; then
15614   ac_cv_type_off_t=yes
15615 else
15616   echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 ac_cv_type_off_t=no
15620 fi
15621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15622 fi
15623 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15624 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15625 if test $ac_cv_type_off_t = yes; then
15626   :
15627 else
15628
15629 cat >>confdefs.h <<_ACEOF
15630 #define off_t long
15631 _ACEOF
15632
15633 fi
15634
15635 echo "$as_me:$LINENO: checking for ino_t" >&5
15636 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15637 if test "${ac_cv_type_ino_t+set}" = set; then
15638   echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640   cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h.  */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h.  */
15646 $ac_includes_default
15647 int
15648 main ()
15649 {
15650 if ((ino_t *) 0)
15651   return 0;
15652 if (sizeof (ino_t))
15653   return 0;
15654   ;
15655   return 0;
15656 }
15657 _ACEOF
15658 rm -f conftest.$ac_objext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15660   (eval $ac_compile) 2>conftest.er1
15661   ac_status=$?
15662   grep -v '^ *+' conftest.er1 >conftest.err
15663   rm -f conftest.er1
15664   cat conftest.err >&5
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); } &&
15667          { ac_try='test -z "$ac_c_werror_flag"
15668                          || test ! -s conftest.err'
15669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670   (eval $ac_try) 2>&5
15671   ac_status=$?
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); }; } &&
15674          { ac_try='test -s conftest.$ac_objext'
15675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676   (eval $ac_try) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; }; then
15680   ac_cv_type_ino_t=yes
15681 else
15682   echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685 ac_cv_type_ino_t=no
15686 fi
15687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15688 fi
15689 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15690 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15691 if test $ac_cv_type_ino_t = yes; then
15692   :
15693 else
15694
15695 cat >>confdefs.h <<_ACEOF
15696 #define ino_t unsigned long
15697 _ACEOF
15698
15699 fi
15700
15701 echo "$as_me:$LINENO: checking for dev_t" >&5
15702 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15703 if test "${ac_cv_type_dev_t+set}" = set; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712 $ac_includes_default
15713 int
15714 main ()
15715 {
15716 if ((dev_t *) 0)
15717   return 0;
15718 if (sizeof (dev_t))
15719   return 0;
15720   ;
15721   return 0;
15722 }
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15726   (eval $ac_compile) 2>conftest.er1
15727   ac_status=$?
15728   grep -v '^ *+' conftest.er1 >conftest.err
15729   rm -f conftest.er1
15730   cat conftest.err >&5
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } &&
15733          { ac_try='test -z "$ac_c_werror_flag"
15734                          || test ! -s conftest.err'
15735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736   (eval $ac_try) 2>&5
15737   ac_status=$?
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); }; } &&
15740          { ac_try='test -s conftest.$ac_objext'
15741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742   (eval $ac_try) 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; }; then
15746   ac_cv_type_dev_t=yes
15747 else
15748   echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751 ac_cv_type_dev_t=no
15752 fi
15753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 fi
15755 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15756 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15757 if test $ac_cv_type_dev_t = yes; then
15758   :
15759 else
15760
15761 cat >>confdefs.h <<_ACEOF
15762 #define dev_t unsigned long
15763 _ACEOF
15764
15765 fi
15766
15767 echo "$as_me:$LINENO: checking for daddr_t" >&5
15768 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15769 if test "${ac_cv_type_daddr_t+set}" = set; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h.  */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h.  */
15778 $ac_includes_default
15779 int
15780 main ()
15781 {
15782 if ((daddr_t *) 0)
15783   return 0;
15784 if (sizeof (daddr_t))
15785   return 0;
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792   (eval $ac_compile) 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } &&
15799          { ac_try='test -z "$ac_c_werror_flag"
15800                          || test ! -s conftest.err'
15801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802   (eval $ac_try) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); }; } &&
15806          { ac_try='test -s conftest.$ac_objext'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; }; then
15812   ac_cv_type_daddr_t=yes
15813 else
15814   echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_cv_type_daddr_t=no
15818 fi
15819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15820 fi
15821 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15822 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15823 if test $ac_cv_type_daddr_t = yes; then
15824   :
15825 else
15826
15827 cat >>confdefs.h <<_ACEOF
15828 #define daddr_t long
15829 _ACEOF
15830
15831 fi
15832
15833 echo "$as_me:$LINENO: checking for major_t" >&5
15834 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15835 if test "${ac_cv_type_major_t+set}" = set; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838   cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h.  */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h.  */
15844 $ac_includes_default
15845 int
15846 main ()
15847 {
15848 if ((major_t *) 0)
15849   return 0;
15850 if (sizeof (major_t))
15851   return 0;
15852   ;
15853   return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858   (eval $ac_compile) 2>conftest.er1
15859   ac_status=$?
15860   grep -v '^ *+' conftest.er1 >conftest.err
15861   rm -f conftest.er1
15862   cat conftest.err >&5
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } &&
15865          { ac_try='test -z "$ac_c_werror_flag"
15866                          || test ! -s conftest.err'
15867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868   (eval $ac_try) 2>&5
15869   ac_status=$?
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); }; } &&
15872          { ac_try='test -s conftest.$ac_objext'
15873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874   (eval $ac_try) 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); }; }; then
15878   ac_cv_type_major_t=yes
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883 ac_cv_type_major_t=no
15884 fi
15885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15886 fi
15887 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15888 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15889 if test $ac_cv_type_major_t = yes; then
15890   :
15891 else
15892
15893 cat >>confdefs.h <<_ACEOF
15894 #define major_t int
15895 _ACEOF
15896
15897 fi
15898
15899 echo "$as_me:$LINENO: checking for minor_t" >&5
15900 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15901 if test "${ac_cv_type_minor_t+set}" = set; then
15902   echo $ECHO_N "(cached) $ECHO_C" >&6
15903 else
15904   cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h.  */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h.  */
15910 $ac_includes_default
15911 int
15912 main ()
15913 {
15914 if ((minor_t *) 0)
15915   return 0;
15916 if (sizeof (minor_t))
15917   return 0;
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924   (eval $ac_compile) 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } &&
15931          { ac_try='test -z "$ac_c_werror_flag"
15932                          || test ! -s conftest.err'
15933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934   (eval $ac_try) 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; } &&
15938          { ac_try='test -s conftest.$ac_objext'
15939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940   (eval $ac_try) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; }; then
15944   ac_cv_type_minor_t=yes
15945 else
15946   echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 ac_cv_type_minor_t=no
15950 fi
15951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15952 fi
15953 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15954 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15955 if test $ac_cv_type_minor_t = yes; then
15956   :
15957 else
15958
15959 cat >>confdefs.h <<_ACEOF
15960 #define minor_t int
15961 _ACEOF
15962
15963 fi
15964
15965 echo "$as_me:$LINENO: checking for ssize_t" >&5
15966 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15967 if test "${ac_cv_type_ssize_t+set}" = set; then
15968   echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970   cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976 $ac_includes_default
15977 int
15978 main ()
15979 {
15980 if ((ssize_t *) 0)
15981   return 0;
15982 if (sizeof (ssize_t))
15983   return 0;
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 rm -f conftest.$ac_objext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15990   (eval $ac_compile) 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } &&
15997          { ac_try='test -z "$ac_c_werror_flag"
15998                          || test ! -s conftest.err'
15999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000   (eval $ac_try) 2>&5
16001   ac_status=$?
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); }; } &&
16004          { ac_try='test -s conftest.$ac_objext'
16005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006   (eval $ac_try) 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; }; then
16010   ac_cv_type_ssize_t=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 ac_cv_type_ssize_t=no
16016 fi
16017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16018 fi
16019 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16020 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16021 if test $ac_cv_type_ssize_t = yes; then
16022   :
16023 else
16024
16025 cat >>confdefs.h <<_ACEOF
16026 #define ssize_t int
16027 _ACEOF
16028
16029 fi
16030
16031 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16032 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16033 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 $ac_includes_default
16043 int
16044 main ()
16045 {
16046 static struct stat ac_aggr;
16047 if (ac_aggr.st_blocks)
16048 return 0;
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 rm -f conftest.$ac_objext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16055   (eval $ac_compile) 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_objext'
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_member_struct_stat_st_blocks=yes
16076 else
16077   echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16079
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 $ac_includes_default
16087 int
16088 main ()
16089 {
16090 static struct stat ac_aggr;
16091 if (sizeof ac_aggr.st_blocks)
16092 return 0;
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099   (eval $ac_compile) 2>conftest.er1
16100   ac_status=$?
16101   grep -v '^ *+' conftest.er1 >conftest.err
16102   rm -f conftest.er1
16103   cat conftest.err >&5
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } &&
16106          { ac_try='test -z "$ac_c_werror_flag"
16107                          || test ! -s conftest.err'
16108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109   (eval $ac_try) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; } &&
16113          { ac_try='test -s conftest.$ac_objext'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; }; then
16119   ac_cv_member_struct_stat_st_blocks=yes
16120 else
16121   echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16123
16124 ac_cv_member_struct_stat_st_blocks=no
16125 fi
16126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16127 fi
16128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16129 fi
16130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16131 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16132 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16133
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16136 _ACEOF
16137
16138
16139 cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_ST_BLOCKS 1
16141 _ACEOF
16142
16143 else
16144   case $LIBOBJS in
16145     "fileblocks.$ac_objext"   | \
16146   *" fileblocks.$ac_objext"   | \
16147     "fileblocks.$ac_objext "* | \
16148   *" fileblocks.$ac_objext "* ) ;;
16149   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16150 esac
16151
16152 fi
16153
16154
16155
16156 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16157 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16158 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   cat >conftest.$ac_ext <<_ACEOF
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167 $ac_includes_default
16168 int
16169 main ()
16170 {
16171 static struct stat ac_aggr;
16172 if (ac_aggr.st_rdev)
16173 return 0;
16174   ;
16175   return 0;
16176 }
16177 _ACEOF
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180   (eval $ac_compile) 2>conftest.er1
16181   ac_status=$?
16182   grep -v '^ *+' conftest.er1 >conftest.err
16183   rm -f conftest.er1
16184   cat conftest.err >&5
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); } &&
16187          { ac_try='test -z "$ac_c_werror_flag"
16188                          || test ! -s conftest.err'
16189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190   (eval $ac_try) 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); }; } &&
16194          { ac_try='test -s conftest.$ac_objext'
16195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196   (eval $ac_try) 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; }; then
16200   ac_cv_member_struct_stat_st_rdev=yes
16201 else
16202   echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16204
16205 cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h.  */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h.  */
16211 $ac_includes_default
16212 int
16213 main ()
16214 {
16215 static struct stat ac_aggr;
16216 if (sizeof ac_aggr.st_rdev)
16217 return 0;
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 rm -f conftest.$ac_objext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16224   (eval $ac_compile) 2>conftest.er1
16225   ac_status=$?
16226   grep -v '^ *+' conftest.er1 >conftest.err
16227   rm -f conftest.er1
16228   cat conftest.err >&5
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); } &&
16231          { ac_try='test -z "$ac_c_werror_flag"
16232                          || test ! -s conftest.err'
16233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234   (eval $ac_try) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; } &&
16238          { ac_try='test -s conftest.$ac_objext'
16239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240   (eval $ac_try) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); }; }; then
16244   ac_cv_member_struct_stat_st_rdev=yes
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 ac_cv_member_struct_stat_st_rdev=no
16250 fi
16251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16252 fi
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16254 fi
16255 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16256 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16257 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16258
16259 cat >>confdefs.h <<_ACEOF
16260 #define HAVE_STRUCT_STAT_ST_RDEV 1
16261 _ACEOF
16262
16263
16264 cat >>confdefs.h <<\_ACEOF
16265 #define HAVE_ST_RDEV 1
16266 _ACEOF
16267
16268 fi
16269
16270
16271 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16272 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16273 if test "${ac_cv_struct_tm+set}" = set; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276   cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282 #include <sys/types.h>
16283 #include <time.h>
16284
16285 int
16286 main ()
16287 {
16288 struct tm *tp; tp->tm_sec;
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295   (eval $ac_compile) 2>conftest.er1
16296   ac_status=$?
16297   grep -v '^ *+' conftest.er1 >conftest.err
16298   rm -f conftest.er1
16299   cat conftest.err >&5
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); } &&
16302          { ac_try='test -z "$ac_c_werror_flag"
16303                          || test ! -s conftest.err'
16304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305   (eval $ac_try) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; } &&
16309          { ac_try='test -s conftest.$ac_objext'
16310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311   (eval $ac_try) 2>&5
16312   ac_status=$?
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); }; }; then
16315   ac_cv_struct_tm=time.h
16316 else
16317   echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16319
16320 ac_cv_struct_tm=sys/time.h
16321 fi
16322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16323 fi
16324 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16325 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16326 if test $ac_cv_struct_tm = sys/time.h; then
16327
16328 cat >>confdefs.h <<\_ACEOF
16329 #define TM_IN_SYS_TIME 1
16330 _ACEOF
16331
16332 fi
16333
16334 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16335 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16336 if test "${ac_cv_c_const+set}" = set; then
16337   echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339   cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h.  */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h.  */
16345
16346 int
16347 main ()
16348 {
16349 /* FIXME: Include the comments suggested by Paul. */
16350 #ifndef __cplusplus
16351   /* Ultrix mips cc rejects this.  */
16352   typedef int charset[2];
16353   const charset x;
16354   /* SunOS 4.1.1 cc rejects this.  */
16355   char const *const *ccp;
16356   char **p;
16357   /* NEC SVR4.0.2 mips cc rejects this.  */
16358   struct point {int x, y;};
16359   static struct point const zero = {0,0};
16360   /* AIX XL C 1.02.0.0 rejects this.
16361      It does not let you subtract one const X* pointer from another in
16362      an arm of an if-expression whose if-part is not a constant
16363      expression */
16364   const char *g = "string";
16365   ccp = &g + (g ? g-g : 0);
16366   /* HPUX 7.0 cc rejects these. */
16367   ++ccp;
16368   p = (char**) ccp;
16369   ccp = (char const *const *) p;
16370   { /* SCO 3.2v4 cc rejects this.  */
16371     char *t;
16372     char const *s = 0 ? (char *) 0 : (char const *) 0;
16373
16374     *t++ = 0;
16375   }
16376   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16377     int x[] = {25, 17};
16378     const int *foo = &x[0];
16379     ++foo;
16380   }
16381   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16382     typedef const int *iptr;
16383     iptr p = 0;
16384     ++p;
16385   }
16386   { /* AIX XL C 1.02.0.0 rejects this saying
16387        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16388     struct s { int j; const int *ap[3]; };
16389     struct s *b; b->j = 5;
16390   }
16391   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16392     const int foo = 10;
16393   }
16394 #endif
16395
16396   ;
16397   return 0;
16398 }
16399 _ACEOF
16400 rm -f conftest.$ac_objext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16402   (eval $ac_compile) 2>conftest.er1
16403   ac_status=$?
16404   grep -v '^ *+' conftest.er1 >conftest.err
16405   rm -f conftest.er1
16406   cat conftest.err >&5
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); } &&
16409          { ac_try='test -z "$ac_c_werror_flag"
16410                          || test ! -s conftest.err'
16411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412   (eval $ac_try) 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); }; } &&
16416          { ac_try='test -s conftest.$ac_objext'
16417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418   (eval $ac_try) 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; }; then
16422   ac_cv_c_const=yes
16423 else
16424   echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427 ac_cv_c_const=no
16428 fi
16429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16430 fi
16431 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16432 echo "${ECHO_T}$ac_cv_c_const" >&6
16433 if test $ac_cv_c_const = no; then
16434
16435 cat >>confdefs.h <<\_ACEOF
16436 #define const
16437 _ACEOF
16438
16439 fi
16440
16441
16442
16443 echo "$as_me:$LINENO: checking for char" >&5
16444 echo $ECHO_N "checking for char... $ECHO_C" >&6
16445 if test "${ac_cv_type_char+set}" = set; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h.  */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h.  */
16454 $ac_includes_default
16455 int
16456 main ()
16457 {
16458 if ((char *) 0)
16459   return 0;
16460 if (sizeof (char))
16461   return 0;
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16468   (eval $ac_compile) 2>conftest.er1
16469   ac_status=$?
16470   grep -v '^ *+' conftest.er1 >conftest.err
16471   rm -f conftest.er1
16472   cat conftest.err >&5
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } &&
16475          { ac_try='test -z "$ac_c_werror_flag"
16476                          || test ! -s conftest.err'
16477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478   (eval $ac_try) 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); }; } &&
16482          { ac_try='test -s conftest.$ac_objext'
16483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484   (eval $ac_try) 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; }; then
16488   ac_cv_type_char=yes
16489 else
16490   echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493 ac_cv_type_char=no
16494 fi
16495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16498 echo "${ECHO_T}$ac_cv_type_char" >&6
16499
16500 echo "$as_me:$LINENO: checking size of char" >&5
16501 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16502 if test "${ac_cv_sizeof_char+set}" = set; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   if test "$ac_cv_type_char" = yes; then
16506   # The cast to unsigned long works around a bug in the HP C Compiler
16507   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16508   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16509   # This bug is HP SR number 8606223364.
16510   if test "$cross_compiling" = yes; then
16511   # Depending upon the size, compute the lo and hi bounds.
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519 int
16520 main ()
16521 {
16522 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16523 test_array [0] = 0
16524
16525   ;
16526   return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16531   (eval $ac_compile) 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } &&
16538          { ac_try='test -z "$ac_c_werror_flag"
16539                          || test ! -s conftest.err'
16540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541   (eval $ac_try) 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest.$ac_objext'
16546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547   (eval $ac_try) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); }; }; then
16551   ac_lo=0 ac_mid=0
16552   while :; do
16553     cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559 $ac_includes_default
16560 int
16561 main ()
16562 {
16563 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16564 test_array [0] = 0
16565
16566   ;
16567   return 0;
16568 }
16569 _ACEOF
16570 rm -f conftest.$ac_objext
16571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16572   (eval $ac_compile) 2>conftest.er1
16573   ac_status=$?
16574   grep -v '^ *+' conftest.er1 >conftest.err
16575   rm -f conftest.er1
16576   cat conftest.err >&5
16577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); } &&
16579          { ac_try='test -z "$ac_c_werror_flag"
16580                          || test ! -s conftest.err'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; } &&
16586          { ac_try='test -s conftest.$ac_objext'
16587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588   (eval $ac_try) 2>&5
16589   ac_status=$?
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); }; }; then
16592   ac_hi=$ac_mid; break
16593 else
16594   echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16596
16597 ac_lo=`expr $ac_mid + 1`
16598                     if test $ac_lo -le $ac_mid; then
16599                       ac_lo= ac_hi=
16600                       break
16601                     fi
16602                     ac_mid=`expr 2 '*' $ac_mid + 1`
16603 fi
16604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16605   done
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h.  */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h.  */
16616 $ac_includes_default
16617 int
16618 main ()
16619 {
16620 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16621 test_array [0] = 0
16622
16623   ;
16624   return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest.$ac_objext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629   (eval $ac_compile) 2>conftest.er1
16630   ac_status=$?
16631   grep -v '^ *+' conftest.er1 >conftest.err
16632   rm -f conftest.er1
16633   cat conftest.err >&5
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); } &&
16636          { ac_try='test -z "$ac_c_werror_flag"
16637                          || test ! -s conftest.err'
16638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639   (eval $ac_try) 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; } &&
16643          { ac_try='test -s conftest.$ac_objext'
16644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645   (eval $ac_try) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); }; }; then
16649   ac_hi=-1 ac_mid=-1
16650   while :; do
16651     cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 $ac_includes_default
16658 int
16659 main ()
16660 {
16661 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16662 test_array [0] = 0
16663
16664   ;
16665   return 0;
16666 }
16667 _ACEOF
16668 rm -f conftest.$ac_objext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16670   (eval $ac_compile) 2>conftest.er1
16671   ac_status=$?
16672   grep -v '^ *+' conftest.er1 >conftest.err
16673   rm -f conftest.er1
16674   cat conftest.err >&5
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } &&
16677          { ac_try='test -z "$ac_c_werror_flag"
16678                          || test ! -s conftest.err'
16679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680   (eval $ac_try) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; } &&
16684          { ac_try='test -s conftest.$ac_objext'
16685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686   (eval $ac_try) 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }; }; then
16690   ac_lo=$ac_mid; break
16691 else
16692   echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 ac_hi=`expr '(' $ac_mid ')' - 1`
16696                        if test $ac_mid -le $ac_hi; then
16697                          ac_lo= ac_hi=
16698                          break
16699                        fi
16700                        ac_mid=`expr 2 '*' $ac_mid`
16701 fi
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703   done
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 ac_lo= ac_hi=
16709 fi
16710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16711 fi
16712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16713 # Binary search between lo and hi bounds.
16714 while test "x$ac_lo" != "x$ac_hi"; do
16715   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16716   cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722 $ac_includes_default
16723 int
16724 main ()
16725 {
16726 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16727 test_array [0] = 0
16728
16729   ;
16730   return 0;
16731 }
16732 _ACEOF
16733 rm -f conftest.$ac_objext
16734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16735   (eval $ac_compile) 2>conftest.er1
16736   ac_status=$?
16737   grep -v '^ *+' conftest.er1 >conftest.err
16738   rm -f conftest.er1
16739   cat conftest.err >&5
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); } &&
16742          { ac_try='test -z "$ac_c_werror_flag"
16743                          || test ! -s conftest.err'
16744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745   (eval $ac_try) 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); }; } &&
16749          { ac_try='test -s conftest.$ac_objext'
16750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751   (eval $ac_try) 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; }; then
16755   ac_hi=$ac_mid
16756 else
16757   echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_lo=`expr '(' $ac_mid ')' + 1`
16761 fi
16762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16763 done
16764 case $ac_lo in
16765 ?*) ac_cv_sizeof_char=$ac_lo;;
16766 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16767 See \`config.log' for more details." >&5
16768 echo "$as_me: error: cannot compute sizeof (char), 77
16769 See \`config.log' for more details." >&2;}
16770    { (exit 1); exit 1; }; } ;;
16771 esac
16772 else
16773   if test "$cross_compiling" = yes; then
16774   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16775 See \`config.log' for more details." >&5
16776 echo "$as_me: error: cannot run test program while cross compiling
16777 See \`config.log' for more details." >&2;}
16778    { (exit 1); exit 1; }; }
16779 else
16780   cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h.  */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h.  */
16786 $ac_includes_default
16787 long longval () { return (long) (sizeof (char)); }
16788 unsigned long ulongval () { return (long) (sizeof (char)); }
16789 #include <stdio.h>
16790 #include <stdlib.h>
16791 int
16792 main ()
16793 {
16794
16795   FILE *f = fopen ("conftest.val", "w");
16796   if (! f)
16797     exit (1);
16798   if (((long) (sizeof (char))) < 0)
16799     {
16800       long i = longval ();
16801       if (i != ((long) (sizeof (char))))
16802         exit (1);
16803       fprintf (f, "%ld\n", i);
16804     }
16805   else
16806     {
16807       unsigned long i = ulongval ();
16808       if (i != ((long) (sizeof (char))))
16809         exit (1);
16810       fprintf (f, "%lu\n", i);
16811     }
16812   exit (ferror (f) || fclose (f) != 0);
16813
16814   ;
16815   return 0;
16816 }
16817 _ACEOF
16818 rm -f conftest$ac_exeext
16819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16820   (eval $ac_link) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825   (eval $ac_try) 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; }; then
16829   ac_cv_sizeof_char=`cat conftest.val`
16830 else
16831   echo "$as_me: program exited with status $ac_status" >&5
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16834
16835 ( exit $ac_status )
16836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16837 See \`config.log' for more details." >&5
16838 echo "$as_me: error: cannot compute sizeof (char), 77
16839 See \`config.log' for more details." >&2;}
16840    { (exit 1); exit 1; }; }
16841 fi
16842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16843 fi
16844 fi
16845 rm -f conftest.val
16846 else
16847   ac_cv_sizeof_char=0
16848 fi
16849 fi
16850 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16851 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16852 cat >>confdefs.h <<_ACEOF
16853 #define SIZEOF_CHAR $ac_cv_sizeof_char
16854 _ACEOF
16855
16856
16857 echo "$as_me:$LINENO: checking for short int" >&5
16858 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16859 if test "${ac_cv_type_short_int+set}" = set; then
16860   echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862   cat >conftest.$ac_ext <<_ACEOF
16863 /* confdefs.h.  */
16864 _ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h.  */
16868 $ac_includes_default
16869 int
16870 main ()
16871 {
16872 if ((short int *) 0)
16873   return 0;
16874 if (sizeof (short int))
16875   return 0;
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882   (eval $ac_compile) 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_c_werror_flag"
16890                          || test ! -s conftest.err'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest.$ac_objext'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   ac_cv_type_short_int=yes
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 ac_cv_type_short_int=no
16908 fi
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910 fi
16911 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16912 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16913
16914 echo "$as_me:$LINENO: checking size of short int" >&5
16915 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16916 if test "${ac_cv_sizeof_short_int+set}" = set; then
16917   echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919   if test "$ac_cv_type_short_int" = yes; then
16920   # The cast to unsigned long works around a bug in the HP C Compiler
16921   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16922   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16923   # This bug is HP SR number 8606223364.
16924   if test "$cross_compiling" = yes; then
16925   # Depending upon the size, compute the lo and hi bounds.
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h.  */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h.  */
16932 $ac_includes_default
16933 int
16934 main ()
16935 {
16936 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16937 test_array [0] = 0
16938
16939   ;
16940   return 0;
16941 }
16942 _ACEOF
16943 rm -f conftest.$ac_objext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16945   (eval $ac_compile) 2>conftest.er1
16946   ac_status=$?
16947   grep -v '^ *+' conftest.er1 >conftest.err
16948   rm -f conftest.er1
16949   cat conftest.err >&5
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); } &&
16952          { ac_try='test -z "$ac_c_werror_flag"
16953                          || test ! -s conftest.err'
16954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955   (eval $ac_try) 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; } &&
16959          { ac_try='test -s conftest.$ac_objext'
16960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961   (eval $ac_try) 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; }; then
16965   ac_lo=0 ac_mid=0
16966   while :; do
16967     cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h.  */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h.  */
16973 $ac_includes_default
16974 int
16975 main ()
16976 {
16977 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16978 test_array [0] = 0
16979
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16986   (eval $ac_compile) 2>conftest.er1
16987   ac_status=$?
16988   grep -v '^ *+' conftest.er1 >conftest.err
16989   rm -f conftest.er1
16990   cat conftest.err >&5
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); } &&
16993          { ac_try='test -z "$ac_c_werror_flag"
16994                          || test ! -s conftest.err'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; } &&
17000          { ac_try='test -s conftest.$ac_objext'
17001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002   (eval $ac_try) 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); }; }; then
17006   ac_hi=$ac_mid; break
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ac_lo=`expr $ac_mid + 1`
17012                     if test $ac_lo -le $ac_mid; then
17013                       ac_lo= ac_hi=
17014                       break
17015                     fi
17016                     ac_mid=`expr 2 '*' $ac_mid + 1`
17017 fi
17018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17019   done
17020 else
17021   echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17023
17024 cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h.  */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h.  */
17030 $ac_includes_default
17031 int
17032 main ()
17033 {
17034 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17035 test_array [0] = 0
17036
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17043   (eval $ac_compile) 2>conftest.er1
17044   ac_status=$?
17045   grep -v '^ *+' conftest.er1 >conftest.err
17046   rm -f conftest.er1
17047   cat conftest.err >&5
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } &&
17050          { ac_try='test -z "$ac_c_werror_flag"
17051                          || test ! -s conftest.err'
17052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053   (eval $ac_try) 2>&5
17054   ac_status=$?
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); }; } &&
17057          { ac_try='test -s conftest.$ac_objext'
17058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059   (eval $ac_try) 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); }; }; then
17063   ac_hi=-1 ac_mid=-1
17064   while :; do
17065     cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h.  */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h.  */
17071 $ac_includes_default
17072 int
17073 main ()
17074 {
17075 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17076 test_array [0] = 0
17077
17078   ;
17079   return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084   (eval $ac_compile) 2>conftest.er1
17085   ac_status=$?
17086   grep -v '^ *+' conftest.er1 >conftest.err
17087   rm -f conftest.er1
17088   cat conftest.err >&5
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); } &&
17091          { ac_try='test -z "$ac_c_werror_flag"
17092                          || test ! -s conftest.err'
17093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094   (eval $ac_try) 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; } &&
17098          { ac_try='test -s conftest.$ac_objext'
17099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100   (eval $ac_try) 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; }; then
17104   ac_lo=$ac_mid; break
17105 else
17106   echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109 ac_hi=`expr '(' $ac_mid ')' - 1`
17110                        if test $ac_mid -le $ac_hi; then
17111                          ac_lo= ac_hi=
17112                          break
17113                        fi
17114                        ac_mid=`expr 2 '*' $ac_mid`
17115 fi
17116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17117   done
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 ac_lo= ac_hi=
17123 fi
17124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17125 fi
17126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17127 # Binary search between lo and hi bounds.
17128 while test "x$ac_lo" != "x$ac_hi"; do
17129   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17130   cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 $ac_includes_default
17137 int
17138 main ()
17139 {
17140 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17141 test_array [0] = 0
17142
17143   ;
17144   return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149   (eval $ac_compile) 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } &&
17156          { ac_try='test -z "$ac_c_werror_flag"
17157                          || test ! -s conftest.err'
17158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159   (eval $ac_try) 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; } &&
17163          { ac_try='test -s conftest.$ac_objext'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   ac_hi=$ac_mid
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 ac_lo=`expr '(' $ac_mid ')' + 1`
17175 fi
17176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17177 done
17178 case $ac_lo in
17179 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17180 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17181 See \`config.log' for more details." >&5
17182 echo "$as_me: error: cannot compute sizeof (short int), 77
17183 See \`config.log' for more details." >&2;}
17184    { (exit 1); exit 1; }; } ;;
17185 esac
17186 else
17187   if test "$cross_compiling" = yes; then
17188   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17189 See \`config.log' for more details." >&5
17190 echo "$as_me: error: cannot run test program while cross compiling
17191 See \`config.log' for more details." >&2;}
17192    { (exit 1); exit 1; }; }
17193 else
17194   cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h.  */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h.  */
17200 $ac_includes_default
17201 long longval () { return (long) (sizeof (short int)); }
17202 unsigned long ulongval () { return (long) (sizeof (short int)); }
17203 #include <stdio.h>
17204 #include <stdlib.h>
17205 int
17206 main ()
17207 {
17208
17209   FILE *f = fopen ("conftest.val", "w");
17210   if (! f)
17211     exit (1);
17212   if (((long) (sizeof (short int))) < 0)
17213     {
17214       long i = longval ();
17215       if (i != ((long) (sizeof (short int))))
17216         exit (1);
17217       fprintf (f, "%ld\n", i);
17218     }
17219   else
17220     {
17221       unsigned long i = ulongval ();
17222       if (i != ((long) (sizeof (short int))))
17223         exit (1);
17224       fprintf (f, "%lu\n", i);
17225     }
17226   exit (ferror (f) || fclose (f) != 0);
17227
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest$ac_exeext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234   (eval $ac_link) 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239   (eval $ac_try) 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   ac_cv_sizeof_short_int=`cat conftest.val`
17244 else
17245   echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 ( exit $ac_status )
17250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17251 See \`config.log' for more details." >&5
17252 echo "$as_me: error: cannot compute sizeof (short int), 77
17253 See \`config.log' for more details." >&2;}
17254    { (exit 1); exit 1; }; }
17255 fi
17256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17257 fi
17258 fi
17259 rm -f conftest.val
17260 else
17261   ac_cv_sizeof_short_int=0
17262 fi
17263 fi
17264 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17265 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17266 cat >>confdefs.h <<_ACEOF
17267 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17268 _ACEOF
17269
17270
17271 echo "$as_me:$LINENO: checking for int" >&5
17272 echo $ECHO_N "checking for int... $ECHO_C" >&6
17273 if test "${ac_cv_type_int+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 $ac_includes_default
17283 int
17284 main ()
17285 {
17286 if ((int *) 0)
17287   return 0;
17288 if (sizeof (int))
17289   return 0;
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296   (eval $ac_compile) 2>conftest.er1
17297   ac_status=$?
17298   grep -v '^ *+' conftest.er1 >conftest.err
17299   rm -f conftest.er1
17300   cat conftest.err >&5
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); } &&
17303          { ac_try='test -z "$ac_c_werror_flag"
17304                          || test ! -s conftest.err'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; } &&
17310          { ac_try='test -s conftest.$ac_objext'
17311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312   (eval $ac_try) 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; }; then
17316   ac_cv_type_int=yes
17317 else
17318   echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17320
17321 ac_cv_type_int=no
17322 fi
17323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324 fi
17325 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17326 echo "${ECHO_T}$ac_cv_type_int" >&6
17327
17328 echo "$as_me:$LINENO: checking size of int" >&5
17329 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17330 if test "${ac_cv_sizeof_int+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   if test "$ac_cv_type_int" = yes; then
17334   # The cast to unsigned long works around a bug in the HP C Compiler
17335   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17336   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17337   # This bug is HP SR number 8606223364.
17338   if test "$cross_compiling" = yes; then
17339   # Depending upon the size, compute the lo and hi bounds.
17340 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 $ac_includes_default
17347 int
17348 main ()
17349 {
17350 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17351 test_array [0] = 0
17352
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 rm -f conftest.$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359   (eval $ac_compile) 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } &&
17366          { ac_try='test -z "$ac_c_werror_flag"
17367                          || test ! -s conftest.err'
17368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369   (eval $ac_try) 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); }; } &&
17373          { ac_try='test -s conftest.$ac_objext'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; }; then
17379   ac_lo=0 ac_mid=0
17380   while :; do
17381     cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387 $ac_includes_default
17388 int
17389 main ()
17390 {
17391 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17392 test_array [0] = 0
17393
17394   ;
17395   return 0;
17396 }
17397 _ACEOF
17398 rm -f conftest.$ac_objext
17399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17400   (eval $ac_compile) 2>conftest.er1
17401   ac_status=$?
17402   grep -v '^ *+' conftest.er1 >conftest.err
17403   rm -f conftest.er1
17404   cat conftest.err >&5
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } &&
17407          { ac_try='test -z "$ac_c_werror_flag"
17408                          || test ! -s conftest.err'
17409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410   (eval $ac_try) 2>&5
17411   ac_status=$?
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); }; } &&
17414          { ac_try='test -s conftest.$ac_objext'
17415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416   (eval $ac_try) 2>&5
17417   ac_status=$?
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); }; }; then
17420   ac_hi=$ac_mid; break
17421 else
17422   echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 ac_lo=`expr $ac_mid + 1`
17426                     if test $ac_lo -le $ac_mid; then
17427                       ac_lo= ac_hi=
17428                       break
17429                     fi
17430                     ac_mid=`expr 2 '*' $ac_mid + 1`
17431 fi
17432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17433   done
17434 else
17435   echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444 $ac_includes_default
17445 int
17446 main ()
17447 {
17448 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17449 test_array [0] = 0
17450
17451   ;
17452   return 0;
17453 }
17454 _ACEOF
17455 rm -f conftest.$ac_objext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17457   (eval $ac_compile) 2>conftest.er1
17458   ac_status=$?
17459   grep -v '^ *+' conftest.er1 >conftest.err
17460   rm -f conftest.er1
17461   cat conftest.err >&5
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); } &&
17464          { ac_try='test -z "$ac_c_werror_flag"
17465                          || test ! -s conftest.err'
17466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467   (eval $ac_try) 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; } &&
17471          { ac_try='test -s conftest.$ac_objext'
17472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473   (eval $ac_try) 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; }; then
17477   ac_hi=-1 ac_mid=-1
17478   while :; do
17479     cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485 $ac_includes_default
17486 int
17487 main ()
17488 {
17489 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17490 test_array [0] = 0
17491
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17498   (eval $ac_compile) 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -z "$ac_c_werror_flag"
17506                          || test ! -s conftest.err'
17507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508   (eval $ac_try) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; } &&
17512          { ac_try='test -s conftest.$ac_objext'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; }; then
17518   ac_lo=$ac_mid; break
17519 else
17520   echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523 ac_hi=`expr '(' $ac_mid ')' - 1`
17524                        if test $ac_mid -le $ac_hi; then
17525                          ac_lo= ac_hi=
17526                          break
17527                        fi
17528                        ac_mid=`expr 2 '*' $ac_mid`
17529 fi
17530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17531   done
17532 else
17533   echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 ac_lo= ac_hi=
17537 fi
17538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 fi
17540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17541 # Binary search between lo and hi bounds.
17542 while test "x$ac_lo" != "x$ac_hi"; do
17543   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17544   cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h.  */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h.  */
17550 $ac_includes_default
17551 int
17552 main ()
17553 {
17554 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17555 test_array [0] = 0
17556
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17563   (eval $ac_compile) 2>conftest.er1
17564   ac_status=$?
17565   grep -v '^ *+' conftest.er1 >conftest.err
17566   rm -f conftest.er1
17567   cat conftest.err >&5
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } &&
17570          { ac_try='test -z "$ac_c_werror_flag"
17571                          || test ! -s conftest.err'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; } &&
17577          { ac_try='test -s conftest.$ac_objext'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; }; then
17583   ac_hi=$ac_mid
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 ac_lo=`expr '(' $ac_mid ')' + 1`
17589 fi
17590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17591 done
17592 case $ac_lo in
17593 ?*) ac_cv_sizeof_int=$ac_lo;;
17594 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17595 See \`config.log' for more details." >&5
17596 echo "$as_me: error: cannot compute sizeof (int), 77
17597 See \`config.log' for more details." >&2;}
17598    { (exit 1); exit 1; }; } ;;
17599 esac
17600 else
17601   if test "$cross_compiling" = yes; then
17602   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17603 See \`config.log' for more details." >&5
17604 echo "$as_me: error: cannot run test program while cross compiling
17605 See \`config.log' for more details." >&2;}
17606    { (exit 1); exit 1; }; }
17607 else
17608   cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614 $ac_includes_default
17615 long longval () { return (long) (sizeof (int)); }
17616 unsigned long ulongval () { return (long) (sizeof (int)); }
17617 #include <stdio.h>
17618 #include <stdlib.h>
17619 int
17620 main ()
17621 {
17622
17623   FILE *f = fopen ("conftest.val", "w");
17624   if (! f)
17625     exit (1);
17626   if (((long) (sizeof (int))) < 0)
17627     {
17628       long i = longval ();
17629       if (i != ((long) (sizeof (int))))
17630         exit (1);
17631       fprintf (f, "%ld\n", i);
17632     }
17633   else
17634     {
17635       unsigned long i = ulongval ();
17636       if (i != ((long) (sizeof (int))))
17637         exit (1);
17638       fprintf (f, "%lu\n", i);
17639     }
17640   exit (ferror (f) || fclose (f) != 0);
17641
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648   (eval $ac_link) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657   ac_cv_sizeof_int=`cat conftest.val`
17658 else
17659   echo "$as_me: program exited with status $ac_status" >&5
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ( exit $ac_status )
17664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17665 See \`config.log' for more details." >&5
17666 echo "$as_me: error: cannot compute sizeof (int), 77
17667 See \`config.log' for more details." >&2;}
17668    { (exit 1); exit 1; }; }
17669 fi
17670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17671 fi
17672 fi
17673 rm -f conftest.val
17674 else
17675   ac_cv_sizeof_int=0
17676 fi
17677 fi
17678 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17679 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17680 cat >>confdefs.h <<_ACEOF
17681 #define SIZEOF_INT $ac_cv_sizeof_int
17682 _ACEOF
17683
17684
17685 echo "$as_me:$LINENO: checking for long int" >&5
17686 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17687 if test "${ac_cv_type_long_int+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690   cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696 $ac_includes_default
17697 int
17698 main ()
17699 {
17700 if ((long int *) 0)
17701   return 0;
17702 if (sizeof (long int))
17703   return 0;
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17710   (eval $ac_compile) 2>conftest.er1
17711   ac_status=$?
17712   grep -v '^ *+' conftest.er1 >conftest.err
17713   rm -f conftest.er1
17714   cat conftest.err >&5
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } &&
17717          { ac_try='test -z "$ac_c_werror_flag"
17718                          || test ! -s conftest.err'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; } &&
17724          { ac_try='test -s conftest.$ac_objext'
17725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726   (eval $ac_try) 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; }; then
17730   ac_cv_type_long_int=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_cv_type_long_int=no
17736 fi
17737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17738 fi
17739 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17740 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17741
17742 echo "$as_me:$LINENO: checking size of long int" >&5
17743 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17744 if test "${ac_cv_sizeof_long_int+set}" = set; then
17745   echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747   if test "$ac_cv_type_long_int" = yes; then
17748   # The cast to unsigned long works around a bug in the HP C Compiler
17749   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17750   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17751   # This bug is HP SR number 8606223364.
17752   if test "$cross_compiling" = yes; then
17753   # Depending upon the size, compute the lo and hi bounds.
17754 cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h.  */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h.  */
17760 $ac_includes_default
17761 int
17762 main ()
17763 {
17764 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17765 test_array [0] = 0
17766
17767   ;
17768   return 0;
17769 }
17770 _ACEOF
17771 rm -f conftest.$ac_objext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773   (eval $ac_compile) 2>conftest.er1
17774   ac_status=$?
17775   grep -v '^ *+' conftest.er1 >conftest.err
17776   rm -f conftest.er1
17777   cat conftest.err >&5
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } &&
17780          { ac_try='test -z "$ac_c_werror_flag"
17781                          || test ! -s conftest.err'
17782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783   (eval $ac_try) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }; } &&
17787          { ac_try='test -s conftest.$ac_objext'
17788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789   (eval $ac_try) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; }; then
17793   ac_lo=0 ac_mid=0
17794   while :; do
17795     cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801 $ac_includes_default
17802 int
17803 main ()
17804 {
17805 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17806 test_array [0] = 0
17807
17808   ;
17809   return 0;
17810 }
17811 _ACEOF
17812 rm -f conftest.$ac_objext
17813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17814   (eval $ac_compile) 2>conftest.er1
17815   ac_status=$?
17816   grep -v '^ *+' conftest.er1 >conftest.err
17817   rm -f conftest.er1
17818   cat conftest.err >&5
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); } &&
17821          { ac_try='test -z "$ac_c_werror_flag"
17822                          || test ! -s conftest.err'
17823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824   (eval $ac_try) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; } &&
17828          { ac_try='test -s conftest.$ac_objext'
17829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830   (eval $ac_try) 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; }; then
17834   ac_hi=$ac_mid; break
17835 else
17836   echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 ac_lo=`expr $ac_mid + 1`
17840                     if test $ac_lo -le $ac_mid; then
17841                       ac_lo= ac_hi=
17842                       break
17843                     fi
17844                     ac_mid=`expr 2 '*' $ac_mid + 1`
17845 fi
17846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17847   done
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17858 $ac_includes_default
17859 int
17860 main ()
17861 {
17862 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17863 test_array [0] = 0
17864
17865   ;
17866   return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871   (eval $ac_compile) 2>conftest.er1
17872   ac_status=$?
17873   grep -v '^ *+' conftest.er1 >conftest.err
17874   rm -f conftest.er1
17875   cat conftest.err >&5
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } &&
17878          { ac_try='test -z "$ac_c_werror_flag"
17879                          || test ! -s conftest.err'
17880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881   (eval $ac_try) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); }; } &&
17885          { ac_try='test -s conftest.$ac_objext'
17886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887   (eval $ac_try) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); }; }; then
17891   ac_hi=-1 ac_mid=-1
17892   while :; do
17893     cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h.  */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h.  */
17899 $ac_includes_default
17900 int
17901 main ()
17902 {
17903 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17904 test_array [0] = 0
17905
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17912   (eval $ac_compile) 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_objext'
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_lo=$ac_mid; break
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 ac_hi=`expr '(' $ac_mid ')' - 1`
17938                        if test $ac_mid -le $ac_hi; then
17939                          ac_lo= ac_hi=
17940                          break
17941                        fi
17942                        ac_mid=`expr 2 '*' $ac_mid`
17943 fi
17944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17945   done
17946 else
17947   echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17949
17950 ac_lo= ac_hi=
17951 fi
17952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17953 fi
17954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17955 # Binary search between lo and hi bounds.
17956 while test "x$ac_lo" != "x$ac_hi"; do
17957   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17958   cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h.  */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h.  */
17964 $ac_includes_default
17965 int
17966 main ()
17967 {
17968 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17969 test_array [0] = 0
17970
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977   (eval $ac_compile) 2>conftest.er1
17978   ac_status=$?
17979   grep -v '^ *+' conftest.er1 >conftest.err
17980   rm -f conftest.er1
17981   cat conftest.err >&5
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); } &&
17984          { ac_try='test -z "$ac_c_werror_flag"
17985                          || test ! -s conftest.err'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; } &&
17991          { ac_try='test -s conftest.$ac_objext'
17992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993   (eval $ac_try) 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }; }; then
17997   ac_hi=$ac_mid
17998 else
17999   echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18001
18002 ac_lo=`expr '(' $ac_mid ')' + 1`
18003 fi
18004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18005 done
18006 case $ac_lo in
18007 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18009 See \`config.log' for more details." >&5
18010 echo "$as_me: error: cannot compute sizeof (long int), 77
18011 See \`config.log' for more details." >&2;}
18012    { (exit 1); exit 1; }; } ;;
18013 esac
18014 else
18015   if test "$cross_compiling" = yes; then
18016   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18017 See \`config.log' for more details." >&5
18018 echo "$as_me: error: cannot run test program while cross compiling
18019 See \`config.log' for more details." >&2;}
18020    { (exit 1); exit 1; }; }
18021 else
18022   cat >conftest.$ac_ext <<_ACEOF
18023 /* confdefs.h.  */
18024 _ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h.  */
18028 $ac_includes_default
18029 long longval () { return (long) (sizeof (long int)); }
18030 unsigned long ulongval () { return (long) (sizeof (long int)); }
18031 #include <stdio.h>
18032 #include <stdlib.h>
18033 int
18034 main ()
18035 {
18036
18037   FILE *f = fopen ("conftest.val", "w");
18038   if (! f)
18039     exit (1);
18040   if (((long) (sizeof (long int))) < 0)
18041     {
18042       long i = longval ();
18043       if (i != ((long) (sizeof (long int))))
18044         exit (1);
18045       fprintf (f, "%ld\n", i);
18046     }
18047   else
18048     {
18049       unsigned long i = ulongval ();
18050       if (i != ((long) (sizeof (long int))))
18051         exit (1);
18052       fprintf (f, "%lu\n", i);
18053     }
18054   exit (ferror (f) || fclose (f) != 0);
18055
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest$ac_exeext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062   (eval $ac_link) 2>&5
18063   ac_status=$?
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067   (eval $ac_try) 2>&5
18068   ac_status=$?
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); }; }; then
18071   ac_cv_sizeof_long_int=`cat conftest.val`
18072 else
18073   echo "$as_me: program exited with status $ac_status" >&5
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 ( exit $ac_status )
18078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18079 See \`config.log' for more details." >&5
18080 echo "$as_me: error: cannot compute sizeof (long int), 77
18081 See \`config.log' for more details." >&2;}
18082    { (exit 1); exit 1; }; }
18083 fi
18084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18085 fi
18086 fi
18087 rm -f conftest.val
18088 else
18089   ac_cv_sizeof_long_int=0
18090 fi
18091 fi
18092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18093 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18094 cat >>confdefs.h <<_ACEOF
18095 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18096 _ACEOF
18097
18098
18099 echo "$as_me:$LINENO: checking for long long int" >&5
18100 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18101 if test "${ac_cv_type_long_long_int+set}" = set; then
18102   echo $ECHO_N "(cached) $ECHO_C" >&6
18103 else
18104   cat >conftest.$ac_ext <<_ACEOF
18105 /* confdefs.h.  */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h.  */
18110 $ac_includes_default
18111 int
18112 main ()
18113 {
18114 if ((long long int *) 0)
18115   return 0;
18116 if (sizeof (long long int))
18117   return 0;
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124   (eval $ac_compile) 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } &&
18131          { ac_try='test -z "$ac_c_werror_flag"
18132                          || test ! -s conftest.err'
18133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134   (eval $ac_try) 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; } &&
18138          { ac_try='test -s conftest.$ac_objext'
18139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140   (eval $ac_try) 2>&5
18141   ac_status=$?
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); }; }; then
18144   ac_cv_type_long_long_int=yes
18145 else
18146   echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 ac_cv_type_long_long_int=no
18150 fi
18151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18152 fi
18153 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18154 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18155
18156 echo "$as_me:$LINENO: checking size of long long int" >&5
18157 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18158 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18159   echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161   if test "$ac_cv_type_long_long_int" = yes; then
18162   # The cast to unsigned long works around a bug in the HP C Compiler
18163   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18164   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18165   # This bug is HP SR number 8606223364.
18166   if test "$cross_compiling" = yes; then
18167   # Depending upon the size, compute the lo and hi bounds.
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174 $ac_includes_default
18175 int
18176 main ()
18177 {
18178 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18179 test_array [0] = 0
18180
18181   ;
18182   return 0;
18183 }
18184 _ACEOF
18185 rm -f conftest.$ac_objext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187   (eval $ac_compile) 2>conftest.er1
18188   ac_status=$?
18189   grep -v '^ *+' conftest.er1 >conftest.err
18190   rm -f conftest.er1
18191   cat conftest.err >&5
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); } &&
18194          { ac_try='test -z "$ac_c_werror_flag"
18195                          || test ! -s conftest.err'
18196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197   (eval $ac_try) 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; } &&
18201          { ac_try='test -s conftest.$ac_objext'
18202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203   (eval $ac_try) 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; }; then
18207   ac_lo=0 ac_mid=0
18208   while :; do
18209     cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215 $ac_includes_default
18216 int
18217 main ()
18218 {
18219 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18220 test_array [0] = 0
18221
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228   (eval $ac_compile) 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } &&
18235          { ac_try='test -z "$ac_c_werror_flag"
18236                          || test ! -s conftest.err'
18237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238   (eval $ac_try) 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; } &&
18242          { ac_try='test -s conftest.$ac_objext'
18243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244   (eval $ac_try) 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248   ac_hi=$ac_mid; break
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 ac_lo=`expr $ac_mid + 1`
18254                     if test $ac_lo -le $ac_mid; then
18255                       ac_lo= ac_hi=
18256                       break
18257                     fi
18258                     ac_mid=`expr 2 '*' $ac_mid + 1`
18259 fi
18260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18261   done
18262 else
18263   echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266 cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h.  */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h.  */
18272 $ac_includes_default
18273 int
18274 main ()
18275 {
18276 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18277 test_array [0] = 0
18278
18279   ;
18280   return 0;
18281 }
18282 _ACEOF
18283 rm -f conftest.$ac_objext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285   (eval $ac_compile) 2>conftest.er1
18286   ac_status=$?
18287   grep -v '^ *+' conftest.er1 >conftest.err
18288   rm -f conftest.er1
18289   cat conftest.err >&5
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); } &&
18292          { ac_try='test -z "$ac_c_werror_flag"
18293                          || test ! -s conftest.err'
18294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295   (eval $ac_try) 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; } &&
18299          { ac_try='test -s conftest.$ac_objext'
18300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301   (eval $ac_try) 2>&5
18302   ac_status=$?
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); }; }; then
18305   ac_hi=-1 ac_mid=-1
18306   while :; do
18307     cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h.  */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h.  */
18313 $ac_includes_default
18314 int
18315 main ()
18316 {
18317 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18318 test_array [0] = 0
18319
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 rm -f conftest.$ac_objext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326   (eval $ac_compile) 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } &&
18333          { ac_try='test -z "$ac_c_werror_flag"
18334                          || test ! -s conftest.err'
18335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336   (eval $ac_try) 2>&5
18337   ac_status=$?
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; } &&
18340          { ac_try='test -s conftest.$ac_objext'
18341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342   (eval $ac_try) 2>&5
18343   ac_status=$?
18344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345   (exit $ac_status); }; }; then
18346   ac_lo=$ac_mid; break
18347 else
18348   echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 ac_hi=`expr '(' $ac_mid ')' - 1`
18352                        if test $ac_mid -le $ac_hi; then
18353                          ac_lo= ac_hi=
18354                          break
18355                        fi
18356                        ac_mid=`expr 2 '*' $ac_mid`
18357 fi
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359   done
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 ac_lo= ac_hi=
18365 fi
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 fi
18368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18369 # Binary search between lo and hi bounds.
18370 while test "x$ac_lo" != "x$ac_hi"; do
18371   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18372   cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378 $ac_includes_default
18379 int
18380 main ()
18381 {
18382 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18383 test_array [0] = 0
18384
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 rm -f conftest.$ac_objext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391   (eval $ac_compile) 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } &&
18398          { ac_try='test -z "$ac_c_werror_flag"
18399                          || test ! -s conftest.err'
18400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401   (eval $ac_try) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); }; } &&
18405          { ac_try='test -s conftest.$ac_objext'
18406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407   (eval $ac_try) 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; }; then
18411   ac_hi=$ac_mid
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 ac_lo=`expr '(' $ac_mid ')' + 1`
18417 fi
18418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18419 done
18420 case $ac_lo in
18421 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18423 See \`config.log' for more details." >&5
18424 echo "$as_me: error: cannot compute sizeof (long long int), 77
18425 See \`config.log' for more details." >&2;}
18426    { (exit 1); exit 1; }; } ;;
18427 esac
18428 else
18429   if test "$cross_compiling" = yes; then
18430   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18431 See \`config.log' for more details." >&5
18432 echo "$as_me: error: cannot run test program while cross compiling
18433 See \`config.log' for more details." >&2;}
18434    { (exit 1); exit 1; }; }
18435 else
18436   cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442 $ac_includes_default
18443 long longval () { return (long) (sizeof (long long int)); }
18444 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18445 #include <stdio.h>
18446 #include <stdlib.h>
18447 int
18448 main ()
18449 {
18450
18451   FILE *f = fopen ("conftest.val", "w");
18452   if (! f)
18453     exit (1);
18454   if (((long) (sizeof (long long int))) < 0)
18455     {
18456       long i = longval ();
18457       if (i != ((long) (sizeof (long long int))))
18458         exit (1);
18459       fprintf (f, "%ld\n", i);
18460     }
18461   else
18462     {
18463       unsigned long i = ulongval ();
18464       if (i != ((long) (sizeof (long long int))))
18465         exit (1);
18466       fprintf (f, "%lu\n", i);
18467     }
18468   exit (ferror (f) || fclose (f) != 0);
18469
18470   ;
18471   return 0;
18472 }
18473 _ACEOF
18474 rm -f conftest$ac_exeext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476   (eval $ac_link) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481   (eval $ac_try) 2>&5
18482   ac_status=$?
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); }; }; then
18485   ac_cv_sizeof_long_long_int=`cat conftest.val`
18486 else
18487   echo "$as_me: program exited with status $ac_status" >&5
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491 ( exit $ac_status )
18492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18493 See \`config.log' for more details." >&5
18494 echo "$as_me: error: cannot compute sizeof (long long int), 77
18495 See \`config.log' for more details." >&2;}
18496    { (exit 1); exit 1; }; }
18497 fi
18498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18499 fi
18500 fi
18501 rm -f conftest.val
18502 else
18503   ac_cv_sizeof_long_long_int=0
18504 fi
18505 fi
18506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18507 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18508 cat >>confdefs.h <<_ACEOF
18509 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18510 _ACEOF
18511
18512
18513 echo "$as_me:$LINENO: checking for int *" >&5
18514 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18515 if test "${ac_cv_type_int_p+set}" = set; then
18516   echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518   cat >conftest.$ac_ext <<_ACEOF
18519 /* confdefs.h.  */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h.  */
18524 $ac_includes_default
18525 int
18526 main ()
18527 {
18528 if ((int * *) 0)
18529   return 0;
18530 if (sizeof (int *))
18531   return 0;
18532   ;
18533   return 0;
18534 }
18535 _ACEOF
18536 rm -f conftest.$ac_objext
18537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18538   (eval $ac_compile) 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } &&
18545          { ac_try='test -z "$ac_c_werror_flag"
18546                          || test ! -s conftest.err'
18547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548   (eval $ac_try) 2>&5
18549   ac_status=$?
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); }; } &&
18552          { ac_try='test -s conftest.$ac_objext'
18553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554   (eval $ac_try) 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; }; then
18558   ac_cv_type_int_p=yes
18559 else
18560   echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 ac_cv_type_int_p=no
18564 fi
18565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18566 fi
18567 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18568 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18569
18570 echo "$as_me:$LINENO: checking size of int *" >&5
18571 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18572 if test "${ac_cv_sizeof_int_p+set}" = set; then
18573   echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575   if test "$ac_cv_type_int_p" = yes; then
18576   # The cast to unsigned long works around a bug in the HP C Compiler
18577   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18578   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18579   # This bug is HP SR number 8606223364.
18580   if test "$cross_compiling" = yes; then
18581   # Depending upon the size, compute the lo and hi bounds.
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h.  */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h.  */
18588 $ac_includes_default
18589 int
18590 main ()
18591 {
18592 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18593 test_array [0] = 0
18594
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18601   (eval $ac_compile) 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } &&
18608          { ac_try='test -z "$ac_c_werror_flag"
18609                          || test ! -s conftest.err'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; } &&
18615          { ac_try='test -s conftest.$ac_objext'
18616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617   (eval $ac_try) 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; }; then
18621   ac_lo=0 ac_mid=0
18622   while :; do
18623     cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h.  */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h.  */
18629 $ac_includes_default
18630 int
18631 main ()
18632 {
18633 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18634 test_array [0] = 0
18635
18636   ;
18637   return 0;
18638 }
18639 _ACEOF
18640 rm -f conftest.$ac_objext
18641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18642   (eval $ac_compile) 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } &&
18649          { ac_try='test -z "$ac_c_werror_flag"
18650                          || test ! -s conftest.err'
18651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652   (eval $ac_try) 2>&5
18653   ac_status=$?
18654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655   (exit $ac_status); }; } &&
18656          { ac_try='test -s conftest.$ac_objext'
18657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658   (eval $ac_try) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); }; }; then
18662   ac_hi=$ac_mid; break
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 ac_lo=`expr $ac_mid + 1`
18668                     if test $ac_lo -le $ac_mid; then
18669                       ac_lo= ac_hi=
18670                       break
18671                     fi
18672                     ac_mid=`expr 2 '*' $ac_mid + 1`
18673 fi
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18675   done
18676 else
18677   echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18679
18680 cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h.  */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h.  */
18686 $ac_includes_default
18687 int
18688 main ()
18689 {
18690 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18691 test_array [0] = 0
18692
18693   ;
18694   return 0;
18695 }
18696 _ACEOF
18697 rm -f conftest.$ac_objext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18699   (eval $ac_compile) 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } &&
18706          { ac_try='test -z "$ac_c_werror_flag"
18707                          || test ! -s conftest.err'
18708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709   (eval $ac_try) 2>&5
18710   ac_status=$?
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); }; } &&
18713          { ac_try='test -s conftest.$ac_objext'
18714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715   (eval $ac_try) 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); }; }; then
18719   ac_hi=-1 ac_mid=-1
18720   while :; do
18721     cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727 $ac_includes_default
18728 int
18729 main ()
18730 {
18731 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18732 test_array [0] = 0
18733
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18740   (eval $ac_compile) 2>conftest.er1
18741   ac_status=$?
18742   grep -v '^ *+' conftest.er1 >conftest.err
18743   rm -f conftest.er1
18744   cat conftest.err >&5
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } &&
18747          { ac_try='test -z "$ac_c_werror_flag"
18748                          || test ! -s conftest.err'
18749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750   (eval $ac_try) 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; } &&
18754          { ac_try='test -s conftest.$ac_objext'
18755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756   (eval $ac_try) 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; }; then
18760   ac_lo=$ac_mid; break
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765 ac_hi=`expr '(' $ac_mid ')' - 1`
18766                        if test $ac_mid -le $ac_hi; then
18767                          ac_lo= ac_hi=
18768                          break
18769                        fi
18770                        ac_mid=`expr 2 '*' $ac_mid`
18771 fi
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18773   done
18774 else
18775   echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_lo= ac_hi=
18779 fi
18780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18781 fi
18782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18783 # Binary search between lo and hi bounds.
18784 while test "x$ac_lo" != "x$ac_hi"; do
18785   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18786   cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h.  */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h.  */
18792 $ac_includes_default
18793 int
18794 main ()
18795 {
18796 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18797 test_array [0] = 0
18798
18799   ;
18800   return 0;
18801 }
18802 _ACEOF
18803 rm -f conftest.$ac_objext
18804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18805   (eval $ac_compile) 2>conftest.er1
18806   ac_status=$?
18807   grep -v '^ *+' conftest.er1 >conftest.err
18808   rm -f conftest.er1
18809   cat conftest.err >&5
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); } &&
18812          { ac_try='test -z "$ac_c_werror_flag"
18813                          || test ! -s conftest.err'
18814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815   (eval $ac_try) 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); }; } &&
18819          { ac_try='test -s conftest.$ac_objext'
18820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821   (eval $ac_try) 2>&5
18822   ac_status=$?
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); }; }; then
18825   ac_hi=$ac_mid
18826 else
18827   echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18829
18830 ac_lo=`expr '(' $ac_mid ')' + 1`
18831 fi
18832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18833 done
18834 case $ac_lo in
18835 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18836 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18837 See \`config.log' for more details." >&5
18838 echo "$as_me: error: cannot compute sizeof (int *), 77
18839 See \`config.log' for more details." >&2;}
18840    { (exit 1); exit 1; }; } ;;
18841 esac
18842 else
18843   if test "$cross_compiling" = yes; then
18844   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18845 See \`config.log' for more details." >&5
18846 echo "$as_me: error: cannot run test program while cross compiling
18847 See \`config.log' for more details." >&2;}
18848    { (exit 1); exit 1; }; }
18849 else
18850   cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856 $ac_includes_default
18857 long longval () { return (long) (sizeof (int *)); }
18858 unsigned long ulongval () { return (long) (sizeof (int *)); }
18859 #include <stdio.h>
18860 #include <stdlib.h>
18861 int
18862 main ()
18863 {
18864
18865   FILE *f = fopen ("conftest.val", "w");
18866   if (! f)
18867     exit (1);
18868   if (((long) (sizeof (int *))) < 0)
18869     {
18870       long i = longval ();
18871       if (i != ((long) (sizeof (int *))))
18872         exit (1);
18873       fprintf (f, "%ld\n", i);
18874     }
18875   else
18876     {
18877       unsigned long i = ulongval ();
18878       if (i != ((long) (sizeof (int *))))
18879         exit (1);
18880       fprintf (f, "%lu\n", i);
18881     }
18882   exit (ferror (f) || fclose (f) != 0);
18883
18884   ;
18885   return 0;
18886 }
18887 _ACEOF
18888 rm -f conftest$ac_exeext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18890   (eval $ac_link) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895   (eval $ac_try) 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   ac_cv_sizeof_int_p=`cat conftest.val`
18900 else
18901   echo "$as_me: program exited with status $ac_status" >&5
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ( exit $ac_status )
18906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18907 See \`config.log' for more details." >&5
18908 echo "$as_me: error: cannot compute sizeof (int *), 77
18909 See \`config.log' for more details." >&2;}
18910    { (exit 1); exit 1; }; }
18911 fi
18912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18913 fi
18914 fi
18915 rm -f conftest.val
18916 else
18917   ac_cv_sizeof_int_p=0
18918 fi
18919 fi
18920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18921 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18922 cat >>confdefs.h <<_ACEOF
18923 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18924 _ACEOF
18925
18926
18927
18928 # Check for sys/types.h types
18929 echo "$as_me:$LINENO: checking for u_int type" >&5
18930 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18931 if test "${ac_cv_have_u_int+set}" = set; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934
18935     cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h.  */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h.  */
18941  #include <sys/types.h>
18942 int
18943 main ()
18944 {
18945  u_int a; a = 1;
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext
18951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952   (eval $ac_compile) 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } &&
18959          { ac_try='test -z "$ac_c_werror_flag"
18960                          || test ! -s conftest.err'
18961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962   (eval $ac_try) 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; } &&
18966          { ac_try='test -s conftest.$ac_objext'
18967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968   (eval $ac_try) 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; }; then
18972    ac_cv_have_u_int="yes"
18973 else
18974   echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977  ac_cv_have_u_int="no"
18978
18979 fi
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981
18982 fi
18983 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
18984 echo "${ECHO_T}$ac_cv_have_u_int" >&6
18985 if test "x$ac_cv_have_u_int" = "xyes" ; then
18986    cat >>confdefs.h <<\_ACEOF
18987 #define HAVE_U_INT 1
18988 _ACEOF
18989
18990    have_u_int=1
18991 fi
18992
18993 echo "$as_me:$LINENO: checking for intmax_t type" >&5
18994 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
18995 if test "${ac_cv_have_intmax_t+set}" = set; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998
18999    cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005  #include <sys/types.h>
19006 int
19007 main ()
19008 {
19009  intmax_t a; a = 1;
19010   ;
19011   return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19016   (eval $ac_compile) 2>conftest.er1
19017   ac_status=$?
19018   grep -v '^ *+' conftest.er1 >conftest.err
19019   rm -f conftest.er1
19020   cat conftest.err >&5
19021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); } &&
19023          { ac_try='test -z "$ac_c_werror_flag"
19024                          || test ! -s conftest.err'
19025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026   (eval $ac_try) 2>&5
19027   ac_status=$?
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); }; } &&
19030          { ac_try='test -s conftest.$ac_objext'
19031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032   (eval $ac_try) 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); }; }; then
19036    ac_cv_have_intmax_t="yes"
19037 else
19038   echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19040
19041
19042          cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h.  */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h.  */
19048  #include <stdint.h>
19049 int
19050 main ()
19051 {
19052  intmax_t a; a = 1;
19053   ;
19054   return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19059   (eval $ac_compile) 2>conftest.er1
19060   ac_status=$?
19061   grep -v '^ *+' conftest.er1 >conftest.err
19062   rm -f conftest.er1
19063   cat conftest.err >&5
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); } &&
19066          { ac_try='test -z "$ac_c_werror_flag"
19067                          || test ! -s conftest.err'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; } &&
19073          { ac_try='test -s conftest.$ac_objext'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079    ac_cv_have_intmax_t="yes"
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084  ac_cv_have_intmax_t="no"
19085
19086 fi
19087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19088
19089
19090 fi
19091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19092
19093
19094 fi
19095 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19096 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19097 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19098    cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_INTMAX_T 1
19100 _ACEOF
19101
19102    have_intmax_t=1
19103 fi
19104
19105
19106 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19107 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19108 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19109   echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111
19112    cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h.  */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h.  */
19118  #include <sys/types.h>
19119 int
19120 main ()
19121 {
19122  u_intmax_t a; a = 1;
19123   ;
19124   return 0;
19125 }
19126 _ACEOF
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129   (eval $ac_compile) 2>conftest.er1
19130   ac_status=$?
19131   grep -v '^ *+' conftest.er1 >conftest.err
19132   rm -f conftest.er1
19133   cat conftest.err >&5
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); } &&
19136          { ac_try='test -z "$ac_c_werror_flag"
19137                          || test ! -s conftest.err'
19138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139   (eval $ac_try) 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; } &&
19143          { ac_try='test -s conftest.$ac_objext'
19144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145   (eval $ac_try) 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; }; then
19149    ac_cv_have_u_intmax_t="yes"
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154
19155          cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161  #include <stdint.h>
19162 int
19163 main ()
19164 {
19165  u_intmax_t a; a = 1;
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172   (eval $ac_compile) 2>conftest.er1
19173   ac_status=$?
19174   grep -v '^ *+' conftest.er1 >conftest.err
19175   rm -f conftest.er1
19176   cat conftest.err >&5
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); } &&
19179          { ac_try='test -z "$ac_c_werror_flag"
19180                          || test ! -s conftest.err'
19181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182   (eval $ac_try) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; } &&
19186          { ac_try='test -s conftest.$ac_objext'
19187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188   (eval $ac_try) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192    ac_cv_have_u_intmax_t="yes"
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197  ac_cv_have_u_intmax_t="no"
19198
19199 fi
19200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19201
19202
19203 fi
19204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19205
19206 fi
19207 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19208 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19209 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19210    cat >>confdefs.h <<\_ACEOF
19211 #define HAVE_U_INTMAX_T 1
19212 _ACEOF
19213
19214    have_u_intmax_t=1
19215 fi
19216
19217
19218 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19219 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19220 if test "${ac_cv_have_intxx_t+set}" = set; then
19221   echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223
19224    cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230  #include <sys/types.h>
19231 int
19232 main ()
19233 {
19234  int8_t a; int16_t b; int32_t c; a = b = c = 1;
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241   (eval $ac_compile) 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } &&
19248          { ac_try='test -z "$ac_c_werror_flag"
19249                          || test ! -s conftest.err'
19250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251   (eval $ac_try) 2>&5
19252   ac_status=$?
19253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254   (exit $ac_status); }; } &&
19255          { ac_try='test -s conftest.$ac_objext'
19256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257   (eval $ac_try) 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; }; then
19261    ac_cv_have_intxx_t="yes"
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266  ac_cv_have_intxx_t="no"
19267
19268 fi
19269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19270
19271 fi
19272 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19273 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19274 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19275    cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_INTXX_T 1
19277 _ACEOF
19278
19279    have_intxx_t=1
19280 fi
19281
19282 echo "$as_me:$LINENO: checking for int64_t type" >&5
19283 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19284 if test "${ac_cv_have_int64_t+set}" = set; then
19285   echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287
19288    cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294  #include <sys/types.h>
19295 int
19296 main ()
19297 {
19298  int64_t a; a = 1;
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305   (eval $ac_compile) 2>conftest.er1
19306   ac_status=$?
19307   grep -v '^ *+' conftest.er1 >conftest.err
19308   rm -f conftest.er1
19309   cat conftest.err >&5
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); } &&
19312          { ac_try='test -z "$ac_c_werror_flag"
19313                          || test ! -s conftest.err'
19314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315   (eval $ac_try) 2>&5
19316   ac_status=$?
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); }; } &&
19319          { ac_try='test -s conftest.$ac_objext'
19320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321   (eval $ac_try) 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; }; then
19325    ac_cv_have_int64_t="yes"
19326 else
19327   echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330  ac_cv_have_int64_t="no"
19331
19332 fi
19333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19334
19335 fi
19336 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19337 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19338 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19339    cat >>confdefs.h <<\_ACEOF
19340 #define HAVE_INT64_T 1
19341 _ACEOF
19342
19343    have_int64_t=1
19344 fi
19345
19346 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19347 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19348 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351
19352    cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358  #include <sys/types.h>
19359 int
19360 main ()
19361 {
19362  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369   (eval $ac_compile) 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } &&
19376          { ac_try='test -z "$ac_c_werror_flag"
19377                          || test ! -s conftest.err'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; } &&
19383          { ac_try='test -s conftest.$ac_objext'
19384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385   (eval $ac_try) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }; }; then
19389    ac_cv_have_u_intxx_t="yes"
19390 else
19391   echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394  ac_cv_have_u_intxx_t="no"
19395
19396 fi
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398
19399 fi
19400 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19401 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19402 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19403    cat >>confdefs.h <<\_ACEOF
19404 #define HAVE_U_INTXX_T 1
19405 _ACEOF
19406
19407    have_u_intxx_t=1
19408 fi
19409
19410 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19411 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19412 if test "${ac_cv_have_u_int64_t+set}" = set; then
19413   echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415
19416    cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h.  */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h.  */
19422  #include <sys/types.h>
19423 int
19424 main ()
19425 {
19426  u_int64_t a; a = 1;
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19433   (eval $ac_compile) 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } &&
19440          { ac_try='test -z "$ac_c_werror_flag"
19441                          || test ! -s conftest.err'
19442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443   (eval $ac_try) 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; } &&
19447          { ac_try='test -s conftest.$ac_objext'
19448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449   (eval $ac_try) 2>&5
19450   ac_status=$?
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; }; then
19453    ac_cv_have_u_int64_t="yes"
19454 else
19455   echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19457
19458  ac_cv_have_u_int64_t="no"
19459
19460 fi
19461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19462
19463 fi
19464 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19465 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19466 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19467    cat >>confdefs.h <<\_ACEOF
19468 #define HAVE_U_INT64_T 1
19469 _ACEOF
19470
19471    have_u_int64_t=1
19472 fi
19473
19474 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19475            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19476 then
19477    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19478 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19479    cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485  #include <sys/bitypes.h>
19486 int
19487 main ()
19488 {
19489  int8_t a; int16_t b; int32_t c;
19490         u_int8_t e; u_int16_t f; u_int32_t g;
19491         a = b = c = e = f = g = 1;
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498   (eval $ac_compile) 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_c_werror_flag"
19506                          || test ! -s conftest.err'
19507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508   (eval $ac_try) 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; } &&
19512          { ac_try='test -s conftest.$ac_objext'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518    cat >>confdefs.h <<\_ACEOF
19519 #define HAVE_U_INTXX_T 1
19520 _ACEOF
19521
19522         cat >>confdefs.h <<\_ACEOF
19523 #define HAVE_INTXX_T 1
19524 _ACEOF
19525
19526         cat >>confdefs.h <<\_ACEOF
19527 #define HAVE_SYS_BITYPES_H 1
19528 _ACEOF
19529
19530         echo "$as_me:$LINENO: result: yes" >&5
19531 echo "${ECHO_T}yes" >&6
19532 else
19533   echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19535
19536  echo "$as_me:$LINENO: result: no" >&5
19537 echo "${ECHO_T}no" >&6
19538
19539 fi
19540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19541 fi
19542
19543 if test -z "$have_u_intxx_t" ; then
19544    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19545 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19546 if test "${ac_cv_have_uintxx_t+set}" = set; then
19547   echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549
19550       cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h.  */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h.  */
19556  #include <sys/types.h>
19557 int
19558 main ()
19559 {
19560  uint8_t a; uint16_t b;
19561            uint32_t c; a = b = c = 1;
19562   ;
19563   return 0;
19564 }
19565 _ACEOF
19566 rm -f conftest.$ac_objext
19567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568   (eval $ac_compile) 2>conftest.er1
19569   ac_status=$?
19570   grep -v '^ *+' conftest.er1 >conftest.err
19571   rm -f conftest.er1
19572   cat conftest.err >&5
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } &&
19575          { ac_try='test -z "$ac_c_werror_flag"
19576                          || test ! -s conftest.err'
19577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578   (eval $ac_try) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; } &&
19582          { ac_try='test -s conftest.$ac_objext'
19583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584   (eval $ac_try) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588    ac_cv_have_uintxx_t="yes"
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593  ac_cv_have_uintxx_t="no"
19594
19595 fi
19596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597
19598 fi
19599 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19600 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19601    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19602       cat >>confdefs.h <<\_ACEOF
19603 #define HAVE_UINTXX_T 1
19604 _ACEOF
19605
19606    fi
19607 fi
19608
19609 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19610           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19611 then
19612    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19613 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19614    cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620  #include <sys/bitypes.h>
19621 int
19622 main ()
19623 {
19624  int64_t a; u_int64_t b;
19625        a = b = 1;
19626   ;
19627   return 0;
19628 }
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632   (eval $ac_compile) 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } &&
19639          { ac_try='test -z "$ac_c_werror_flag"
19640                          || test ! -s conftest.err'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; } &&
19646          { ac_try='test -s conftest.$ac_objext'
19647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648   (eval $ac_try) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652    cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_U_INT64_T 1
19654 _ACEOF
19655
19656        cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_INT64_T 1
19658 _ACEOF
19659
19660        echo "$as_me:$LINENO: result: yes" >&5
19661 echo "${ECHO_T}yes" >&6
19662 else
19663   echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666  echo "$as_me:$LINENO: result: no" >&5
19667 echo "${ECHO_T}no" >&6
19668
19669 fi
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671 fi
19672
19673 if (test -z "$have_uintxx_t" && \
19674           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19675 then
19676    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19677 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19678    cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h.  */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h.  */
19684  #include <sys/bitypes.h>
19685 int
19686 main ()
19687 {
19688  uint8_t a; uint16_t b;
19689           uint32_t c; a = b = c = 1;
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696   (eval $ac_compile) 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } &&
19703          { ac_try='test -z "$ac_c_werror_flag"
19704                          || test ! -s conftest.err'
19705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706   (eval $ac_try) 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; } &&
19710          { ac_try='test -s conftest.$ac_objext'
19711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712   (eval $ac_try) 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; }; then
19716    cat >>confdefs.h <<\_ACEOF
19717 #define HAVE_UINTXX_T 1
19718 _ACEOF
19719
19720        echo "$as_me:$LINENO: result: yes" >&5
19721 echo "${ECHO_T}yes" >&6
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726  echo "$as_me:$LINENO: result: no" >&5
19727 echo "${ECHO_T}no" >&6
19728
19729 fi
19730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19731
19732 fi
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750 for ac_func in \
19751         fork \
19752         getcwd \
19753         gethostname \
19754         getpid \
19755         gettimeofday \
19756         setpgid \
19757         setpgrp \
19758         setsid \
19759         signal \
19760         strerror \
19761         strncmp \
19762         strncpy \
19763         vfprintf \
19764
19765 do
19766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19767 echo "$as_me:$LINENO: checking for $ac_func" >&5
19768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19769 if eval "test \"\${$as_ac_var+set}\" = set"; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h.  */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h.  */
19778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19780 #define $ac_func innocuous_$ac_func
19781
19782 /* System header to define __stub macros and hopefully few prototypes,
19783     which can conflict with char $ac_func (); below.
19784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19785     <limits.h> exists even on freestanding compilers.  */
19786
19787 #ifdef __STDC__
19788 # include <limits.h>
19789 #else
19790 # include <assert.h>
19791 #endif
19792
19793 #undef $ac_func
19794
19795 /* Override any gcc2 internal prototype to avoid an error.  */
19796 #ifdef __cplusplus
19797 extern "C"
19798 {
19799 #endif
19800 /* We use char because int might match the return type of a gcc2
19801    builtin and then its argument prototype would still apply.  */
19802 char $ac_func ();
19803 /* The GNU C library defines this for functions which it implements
19804     to always fail with ENOSYS.  Some functions are actually named
19805     something starting with __ and the normal name is an alias.  */
19806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19807 choke me
19808 #else
19809 char (*f) () = $ac_func;
19810 #endif
19811 #ifdef __cplusplus
19812 }
19813 #endif
19814
19815 int
19816 main ()
19817 {
19818 return f != $ac_func;
19819   ;
19820   return 0;
19821 }
19822 _ACEOF
19823 rm -f conftest.$ac_objext conftest$ac_exeext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19825   (eval $ac_link) 2>conftest.er1
19826   ac_status=$?
19827   grep -v '^ *+' conftest.er1 >conftest.err
19828   rm -f conftest.er1
19829   cat conftest.err >&5
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); } &&
19832          { ac_try='test -z "$ac_c_werror_flag"
19833                          || test ! -s conftest.err'
19834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835   (eval $ac_try) 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); }; } &&
19839          { ac_try='test -s conftest$ac_exeext'
19840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841   (eval $ac_try) 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; }; then
19845   eval "$as_ac_var=yes"
19846 else
19847   echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19849
19850 eval "$as_ac_var=no"
19851 fi
19852 rm -f conftest.err conftest.$ac_objext \
19853       conftest$ac_exeext conftest.$ac_ext
19854 fi
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19857 if test `eval echo '${'$as_ac_var'}'` = yes; then
19858   cat >>confdefs.h <<_ACEOF
19859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19860 _ACEOF
19861
19862 else
19863   echo 'configure: cannot find needed function.'; exit 1
19864
19865 fi
19866 done
19867
19868
19869
19870 for ac_func in fchdir
19871 do
19872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19873 echo "$as_me:$LINENO: checking for $ac_func" >&5
19874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19875 if eval "test \"\${$as_ac_var+set}\" = set"; then
19876   echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878   cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19886 #define $ac_func innocuous_$ac_func
19887
19888 /* System header to define __stub macros and hopefully few prototypes,
19889     which can conflict with char $ac_func (); below.
19890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19891     <limits.h> exists even on freestanding compilers.  */
19892
19893 #ifdef __STDC__
19894 # include <limits.h>
19895 #else
19896 # include <assert.h>
19897 #endif
19898
19899 #undef $ac_func
19900
19901 /* Override any gcc2 internal prototype to avoid an error.  */
19902 #ifdef __cplusplus
19903 extern "C"
19904 {
19905 #endif
19906 /* We use char because int might match the return type of a gcc2
19907    builtin and then its argument prototype would still apply.  */
19908 char $ac_func ();
19909 /* The GNU C library defines this for functions which it implements
19910     to always fail with ENOSYS.  Some functions are actually named
19911     something starting with __ and the normal name is an alias.  */
19912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19913 choke me
19914 #else
19915 char (*f) () = $ac_func;
19916 #endif
19917 #ifdef __cplusplus
19918 }
19919 #endif
19920
19921 int
19922 main ()
19923 {
19924 return f != $ac_func;
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931   (eval $ac_link) 2>conftest.er1
19932   ac_status=$?
19933   grep -v '^ *+' conftest.er1 >conftest.err
19934   rm -f conftest.er1
19935   cat conftest.err >&5
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } &&
19938          { ac_try='test -z "$ac_c_werror_flag"
19939                          || test ! -s conftest.err'
19940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941   (eval $ac_try) 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); }; } &&
19945          { ac_try='test -s conftest$ac_exeext'
19946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947   (eval $ac_try) 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); }; }; then
19951   eval "$as_ac_var=yes"
19952 else
19953   echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956 eval "$as_ac_var=no"
19957 fi
19958 rm -f conftest.err conftest.$ac_objext \
19959       conftest$ac_exeext conftest.$ac_ext
19960 fi
19961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19963 if test `eval echo '${'$as_ac_var'}'` = yes; then
19964   cat >>confdefs.h <<_ACEOF
19965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19966 _ACEOF
19967  cat >>confdefs.h <<\_ACEOF
19968 #define HAVE_FCHDIR 1
19969 _ACEOF
19970
19971 fi
19972 done
19973
19974
19975 for ac_func in strtoll
19976 do
19977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19978 echo "$as_me:$LINENO: checking for $ac_func" >&5
19979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19980 if eval "test \"\${$as_ac_var+set}\" = set"; then
19981   echo $ECHO_N "(cached) $ECHO_C" >&6
19982 else
19983   cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h.  */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h.  */
19989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19991 #define $ac_func innocuous_$ac_func
19992
19993 /* System header to define __stub macros and hopefully few prototypes,
19994     which can conflict with char $ac_func (); below.
19995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19996     <limits.h> exists even on freestanding compilers.  */
19997
19998 #ifdef __STDC__
19999 # include <limits.h>
20000 #else
20001 # include <assert.h>
20002 #endif
20003
20004 #undef $ac_func
20005
20006 /* Override any gcc2 internal prototype to avoid an error.  */
20007 #ifdef __cplusplus
20008 extern "C"
20009 {
20010 #endif
20011 /* We use char because int might match the return type of a gcc2
20012    builtin and then its argument prototype would still apply.  */
20013 char $ac_func ();
20014 /* The GNU C library defines this for functions which it implements
20015     to always fail with ENOSYS.  Some functions are actually named
20016     something starting with __ and the normal name is an alias.  */
20017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20018 choke me
20019 #else
20020 char (*f) () = $ac_func;
20021 #endif
20022 #ifdef __cplusplus
20023 }
20024 #endif
20025
20026 int
20027 main ()
20028 {
20029 return f != $ac_func;
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20036   (eval $ac_link) 2>conftest.er1
20037   ac_status=$?
20038   grep -v '^ *+' conftest.er1 >conftest.err
20039   rm -f conftest.er1
20040   cat conftest.err >&5
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); } &&
20043          { ac_try='test -z "$ac_c_werror_flag"
20044                          || test ! -s conftest.err'
20045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046   (eval $ac_try) 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); }; } &&
20050          { ac_try='test -s conftest$ac_exeext'
20051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052   (eval $ac_try) 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; }; then
20056   eval "$as_ac_var=yes"
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 eval "$as_ac_var=no"
20062 fi
20063 rm -f conftest.err conftest.$ac_objext \
20064       conftest$ac_exeext conftest.$ac_ext
20065 fi
20066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20068 if test `eval echo '${'$as_ac_var'}'` = yes; then
20069   cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20071 _ACEOF
20072  cat >>confdefs.h <<\_ACEOF
20073 #define HAVE_STRTOLL 1
20074 _ACEOF
20075
20076 fi
20077 done
20078
20079
20080
20081 for ac_func in chflags
20082 do
20083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20084 echo "$as_me:$LINENO: checking for $ac_func" >&5
20085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20086 if eval "test \"\${$as_ac_var+set}\" = set"; then
20087   echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089   cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h.  */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h.  */
20095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20097 #define $ac_func innocuous_$ac_func
20098
20099 /* System header to define __stub macros and hopefully few prototypes,
20100     which can conflict with char $ac_func (); below.
20101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20102     <limits.h> exists even on freestanding compilers.  */
20103
20104 #ifdef __STDC__
20105 # include <limits.h>
20106 #else
20107 # include <assert.h>
20108 #endif
20109
20110 #undef $ac_func
20111
20112 /* Override any gcc2 internal prototype to avoid an error.  */
20113 #ifdef __cplusplus
20114 extern "C"
20115 {
20116 #endif
20117 /* We use char because int might match the return type of a gcc2
20118    builtin and then its argument prototype would still apply.  */
20119 char $ac_func ();
20120 /* The GNU C library defines this for functions which it implements
20121     to always fail with ENOSYS.  Some functions are actually named
20122     something starting with __ and the normal name is an alias.  */
20123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20124 choke me
20125 #else
20126 char (*f) () = $ac_func;
20127 #endif
20128 #ifdef __cplusplus
20129 }
20130 #endif
20131
20132 int
20133 main ()
20134 {
20135 return f != $ac_func;
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142   (eval $ac_link) 2>conftest.er1
20143   ac_status=$?
20144   grep -v '^ *+' conftest.er1 >conftest.err
20145   rm -f conftest.er1
20146   cat conftest.err >&5
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } &&
20149          { ac_try='test -z "$ac_c_werror_flag"
20150                          || test ! -s conftest.err'
20151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152   (eval $ac_try) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); }; } &&
20156          { ac_try='test -s conftest$ac_exeext'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   eval "$as_ac_var=yes"
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 eval "$as_ac_var=no"
20168 fi
20169 rm -f conftest.err conftest.$ac_objext \
20170       conftest$ac_exeext conftest.$ac_ext
20171 fi
20172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20174 if test `eval echo '${'$as_ac_var'}'` = yes; then
20175   cat >>confdefs.h <<_ACEOF
20176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20177 _ACEOF
20178
20179 fi
20180 done
20181
20182
20183
20184
20185
20186
20187 for ac_func in snprintf vsnprintf gethostid fseeko
20188 do
20189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20190 echo "$as_me:$LINENO: checking for $ac_func" >&5
20191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20192 if eval "test \"\${$as_ac_var+set}\" = set"; then
20193   echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195   cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20203 #define $ac_func innocuous_$ac_func
20204
20205 /* System header to define __stub macros and hopefully few prototypes,
20206     which can conflict with char $ac_func (); below.
20207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20208     <limits.h> exists even on freestanding compilers.  */
20209
20210 #ifdef __STDC__
20211 # include <limits.h>
20212 #else
20213 # include <assert.h>
20214 #endif
20215
20216 #undef $ac_func
20217
20218 /* Override any gcc2 internal prototype to avoid an error.  */
20219 #ifdef __cplusplus
20220 extern "C"
20221 {
20222 #endif
20223 /* We use char because int might match the return type of a gcc2
20224    builtin and then its argument prototype would still apply.  */
20225 char $ac_func ();
20226 /* The GNU C library defines this for functions which it implements
20227     to always fail with ENOSYS.  Some functions are actually named
20228     something starting with __ and the normal name is an alias.  */
20229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20230 choke me
20231 #else
20232 char (*f) () = $ac_func;
20233 #endif
20234 #ifdef __cplusplus
20235 }
20236 #endif
20237
20238 int
20239 main ()
20240 {
20241 return f != $ac_func;
20242   ;
20243   return 0;
20244 }
20245 _ACEOF
20246 rm -f conftest.$ac_objext conftest$ac_exeext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20248   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 eval "$as_ac_var=no"
20274 fi
20275 rm -f conftest.err conftest.$ac_objext \
20276       conftest$ac_exeext conftest.$ac_ext
20277 fi
20278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20280 if test `eval echo '${'$as_ac_var'}'` = yes; then
20281   cat >>confdefs.h <<_ACEOF
20282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20283 _ACEOF
20284
20285 fi
20286 done
20287
20288
20289
20290
20291
20292
20293 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20294 do
20295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296 echo "$as_me:$LINENO: checking for $ac_func" >&5
20297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20298 if eval "test \"\${$as_ac_var+set}\" = set"; then
20299   echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301   cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20309 #define $ac_func innocuous_$ac_func
20310
20311 /* System header to define __stub macros and hopefully few prototypes,
20312     which can conflict with char $ac_func (); below.
20313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20314     <limits.h> exists even on freestanding compilers.  */
20315
20316 #ifdef __STDC__
20317 # include <limits.h>
20318 #else
20319 # include <assert.h>
20320 #endif
20321
20322 #undef $ac_func
20323
20324 /* Override any gcc2 internal prototype to avoid an error.  */
20325 #ifdef __cplusplus
20326 extern "C"
20327 {
20328 #endif
20329 /* We use char because int might match the return type of a gcc2
20330    builtin and then its argument prototype would still apply.  */
20331 char $ac_func ();
20332 /* The GNU C library defines this for functions which it implements
20333     to always fail with ENOSYS.  Some functions are actually named
20334     something starting with __ and the normal name is an alias.  */
20335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20336 choke me
20337 #else
20338 char (*f) () = $ac_func;
20339 #endif
20340 #ifdef __cplusplus
20341 }
20342 #endif
20343
20344 int
20345 main ()
20346 {
20347 return f != $ac_func;
20348   ;
20349   return 0;
20350 }
20351 _ACEOF
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354   (eval $ac_link) 2>conftest.er1
20355   ac_status=$?
20356   grep -v '^ *+' conftest.er1 >conftest.err
20357   rm -f conftest.er1
20358   cat conftest.err >&5
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); } &&
20361          { ac_try='test -z "$ac_c_werror_flag"
20362                          || test ! -s conftest.err'
20363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364   (eval $ac_try) 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); }; } &&
20368          { ac_try='test -s conftest$ac_exeext'
20369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370   (eval $ac_try) 2>&5
20371   ac_status=$?
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); }; }; then
20374   eval "$as_ac_var=yes"
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 eval "$as_ac_var=no"
20380 fi
20381 rm -f conftest.err conftest.$ac_objext \
20382       conftest$ac_exeext conftest.$ac_ext
20383 fi
20384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20386 if test `eval echo '${'$as_ac_var'}'` = yes; then
20387   cat >>confdefs.h <<_ACEOF
20388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20389 _ACEOF
20390
20391 fi
20392 done
20393
20394
20395 # If resolver functions are not in libc check for -lnsl or -lresolv.
20396 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20397 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20398 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401   cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h.  */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h.  */
20407 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20409 #define gethostbyname_r innocuous_gethostbyname_r
20410
20411 /* System header to define __stub macros and hopefully few prototypes,
20412     which can conflict with char gethostbyname_r (); below.
20413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20414     <limits.h> exists even on freestanding compilers.  */
20415
20416 #ifdef __STDC__
20417 # include <limits.h>
20418 #else
20419 # include <assert.h>
20420 #endif
20421
20422 #undef gethostbyname_r
20423
20424 /* Override any gcc2 internal prototype to avoid an error.  */
20425 #ifdef __cplusplus
20426 extern "C"
20427 {
20428 #endif
20429 /* We use char because int might match the return type of a gcc2
20430    builtin and then its argument prototype would still apply.  */
20431 char gethostbyname_r ();
20432 /* The GNU C library defines this for functions which it implements
20433     to always fail with ENOSYS.  Some functions are actually named
20434     something starting with __ and the normal name is an alias.  */
20435 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20436 choke me
20437 #else
20438 char (*f) () = gethostbyname_r;
20439 #endif
20440 #ifdef __cplusplus
20441 }
20442 #endif
20443
20444 int
20445 main ()
20446 {
20447 return f != gethostbyname_r;
20448   ;
20449   return 0;
20450 }
20451 _ACEOF
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20454   (eval $ac_link) 2>conftest.er1
20455   ac_status=$?
20456   grep -v '^ *+' conftest.er1 >conftest.err
20457   rm -f conftest.er1
20458   cat conftest.err >&5
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); } &&
20461          { ac_try='test -z "$ac_c_werror_flag"
20462                          || test ! -s conftest.err'
20463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464   (eval $ac_try) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; } &&
20468          { ac_try='test -s conftest$ac_exeext'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   ac_cv_func_gethostbyname_r=yes
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_cv_func_gethostbyname_r=no
20480 fi
20481 rm -f conftest.err conftest.$ac_objext \
20482       conftest$ac_exeext conftest.$ac_ext
20483 fi
20484 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20485 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20486 if test $ac_cv_func_gethostbyname_r = yes; then
20487   echo "$as_me:$LINENO: result: using libc's resolver" >&5
20488 echo "${ECHO_T}using libc's resolver" >&6
20489 else
20490
20491 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20492 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20493 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20494   echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496   ac_check_lib_save_LIBS=$LIBS
20497 LIBS="-lnsl  $LIBS"
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504
20505 /* Override any gcc2 internal prototype to avoid an error.  */
20506 #ifdef __cplusplus
20507 extern "C"
20508 #endif
20509 /* We use char because int might match the return type of a gcc2
20510    builtin and then its argument prototype would still apply.  */
20511 char gethostbyname_r ();
20512 int
20513 main ()
20514 {
20515 gethostbyname_r ();
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 rm -f conftest.$ac_objext conftest$ac_exeext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522   (eval $ac_link) 2>conftest.er1
20523   ac_status=$?
20524   grep -v '^ *+' conftest.er1 >conftest.err
20525   rm -f conftest.er1
20526   cat conftest.err >&5
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } &&
20529          { ac_try='test -z "$ac_c_werror_flag"
20530                          || test ! -s conftest.err'
20531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532   (eval $ac_try) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; } &&
20536          { ac_try='test -s conftest$ac_exeext'
20537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538   (eval $ac_try) 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; }; then
20542   ac_cv_lib_nsl_gethostbyname_r=yes
20543 else
20544   echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 ac_cv_lib_nsl_gethostbyname_r=no
20548 fi
20549 rm -f conftest.err conftest.$ac_objext \
20550       conftest$ac_exeext conftest.$ac_ext
20551 LIBS=$ac_check_lib_save_LIBS
20552 fi
20553 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20554 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20555 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20556   cat >>confdefs.h <<_ACEOF
20557 #define HAVE_LIBNSL 1
20558 _ACEOF
20559
20560   LIBS="-lnsl $LIBS"
20561
20562 fi
20563
20564
20565 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20566 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20567 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   ac_check_lib_save_LIBS=$LIBS
20571 LIBS="-lresolv  $LIBS"
20572 cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578
20579 /* Override any gcc2 internal prototype to avoid an error.  */
20580 #ifdef __cplusplus
20581 extern "C"
20582 #endif
20583 /* We use char because int might match the return type of a gcc2
20584    builtin and then its argument prototype would still apply.  */
20585 char gethostbyname_r ();
20586 int
20587 main ()
20588 {
20589 gethostbyname_r ();
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext conftest$ac_exeext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20596   (eval $ac_link) 2>conftest.er1
20597   ac_status=$?
20598   grep -v '^ *+' conftest.er1 >conftest.err
20599   rm -f conftest.er1
20600   cat conftest.err >&5
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); } &&
20603          { ac_try='test -z "$ac_c_werror_flag"
20604                          || test ! -s conftest.err'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; } &&
20610          { ac_try='test -s conftest$ac_exeext'
20611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612   (eval $ac_try) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; }; then
20616   ac_cv_lib_resolv_gethostbyname_r=yes
20617 else
20618   echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621 ac_cv_lib_resolv_gethostbyname_r=no
20622 fi
20623 rm -f conftest.err conftest.$ac_objext \
20624       conftest$ac_exeext conftest.$ac_ext
20625 LIBS=$ac_check_lib_save_LIBS
20626 fi
20627 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20628 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20629 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20630   cat >>confdefs.h <<_ACEOF
20631 #define HAVE_LIBRESOLV 1
20632 _ACEOF
20633
20634   LIBS="-lresolv $LIBS"
20635
20636 fi
20637
20638 fi
20639
20640
20641
20642
20643
20644 for ac_func in inet_pton
20645 do
20646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20647 echo "$as_me:$LINENO: checking for $ac_func" >&5
20648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20649 if eval "test \"\${$as_ac_var+set}\" = set"; then
20650   echo $ECHO_N "(cached) $ECHO_C" >&6
20651 else
20652   cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20660 #define $ac_func innocuous_$ac_func
20661
20662 /* System header to define __stub macros and hopefully few prototypes,
20663     which can conflict with char $ac_func (); below.
20664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20665     <limits.h> exists even on freestanding compilers.  */
20666
20667 #ifdef __STDC__
20668 # include <limits.h>
20669 #else
20670 # include <assert.h>
20671 #endif
20672
20673 #undef $ac_func
20674
20675 /* Override any gcc2 internal prototype to avoid an error.  */
20676 #ifdef __cplusplus
20677 extern "C"
20678 {
20679 #endif
20680 /* We use char because int might match the return type of a gcc2
20681    builtin and then its argument prototype would still apply.  */
20682 char $ac_func ();
20683 /* The GNU C library defines this for functions which it implements
20684     to always fail with ENOSYS.  Some functions are actually named
20685     something starting with __ and the normal name is an alias.  */
20686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20687 choke me
20688 #else
20689 char (*f) () = $ac_func;
20690 #endif
20691 #ifdef __cplusplus
20692 }
20693 #endif
20694
20695 int
20696 main ()
20697 {
20698 return f != $ac_func;
20699   ;
20700   return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext conftest$ac_exeext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20705   (eval $ac_link) 2>conftest.er1
20706   ac_status=$?
20707   grep -v '^ *+' conftest.er1 >conftest.err
20708   rm -f conftest.er1
20709   cat conftest.err >&5
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } &&
20712          { ac_try='test -z "$ac_c_werror_flag"
20713                          || test ! -s conftest.err'
20714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715   (eval $ac_try) 2>&5
20716   ac_status=$?
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); }; } &&
20719          { ac_try='test -s conftest$ac_exeext'
20720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721   (eval $ac_try) 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; }; then
20725   eval "$as_ac_var=yes"
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730 eval "$as_ac_var=no"
20731 fi
20732 rm -f conftest.err conftest.$ac_objext \
20733       conftest$ac_exeext conftest.$ac_ext
20734 fi
20735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20737 if test `eval echo '${'$as_ac_var'}'` = yes; then
20738   cat >>confdefs.h <<_ACEOF
20739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20740 _ACEOF
20741  cat >>confdefs.h <<\_ACEOF
20742 #define HAVE_INET_PTON 1
20743 _ACEOF
20744
20745 fi
20746 done
20747
20748
20749 for ac_func in inet_ntop
20750 do
20751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20752 echo "$as_me:$LINENO: checking for $ac_func" >&5
20753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20754 if eval "test \"\${$as_ac_var+set}\" = set"; then
20755   echo $ECHO_N "(cached) $ECHO_C" >&6
20756 else
20757   cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h.  */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h.  */
20763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20765 #define $ac_func innocuous_$ac_func
20766
20767 /* System header to define __stub macros and hopefully few prototypes,
20768     which can conflict with char $ac_func (); below.
20769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20770     <limits.h> exists even on freestanding compilers.  */
20771
20772 #ifdef __STDC__
20773 # include <limits.h>
20774 #else
20775 # include <assert.h>
20776 #endif
20777
20778 #undef $ac_func
20779
20780 /* Override any gcc2 internal prototype to avoid an error.  */
20781 #ifdef __cplusplus
20782 extern "C"
20783 {
20784 #endif
20785 /* We use char because int might match the return type of a gcc2
20786    builtin and then its argument prototype would still apply.  */
20787 char $ac_func ();
20788 /* The GNU C library defines this for functions which it implements
20789     to always fail with ENOSYS.  Some functions are actually named
20790     something starting with __ and the normal name is an alias.  */
20791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20792 choke me
20793 #else
20794 char (*f) () = $ac_func;
20795 #endif
20796 #ifdef __cplusplus
20797 }
20798 #endif
20799
20800 int
20801 main ()
20802 {
20803 return f != $ac_func;
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20810   (eval $ac_link) 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } &&
20817          { ac_try='test -z "$ac_c_werror_flag"
20818                          || test ! -s conftest.err'
20819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820   (eval $ac_try) 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; } &&
20824          { ac_try='test -s conftest$ac_exeext'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; }; then
20830   eval "$as_ac_var=yes"
20831 else
20832   echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835 eval "$as_ac_var=no"
20836 fi
20837 rm -f conftest.err conftest.$ac_objext \
20838       conftest$ac_exeext conftest.$ac_ext
20839 fi
20840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20842 if test `eval echo '${'$as_ac_var'}'` = yes; then
20843   cat >>confdefs.h <<_ACEOF
20844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20845 _ACEOF
20846  cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_INET_NTOP 1
20848 _ACEOF
20849
20850 fi
20851 done
20852
20853
20854 for ac_func in gethostbyname2
20855 do
20856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20857 echo "$as_me:$LINENO: checking for $ac_func" >&5
20858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20859 if eval "test \"\${$as_ac_var+set}\" = set"; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20869    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20870 #define $ac_func innocuous_$ac_func
20871
20872 /* System header to define __stub macros and hopefully few prototypes,
20873     which can conflict with char $ac_func (); below.
20874     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875     <limits.h> exists even on freestanding compilers.  */
20876
20877 #ifdef __STDC__
20878 # include <limits.h>
20879 #else
20880 # include <assert.h>
20881 #endif
20882
20883 #undef $ac_func
20884
20885 /* Override any gcc2 internal prototype to avoid an error.  */
20886 #ifdef __cplusplus
20887 extern "C"
20888 {
20889 #endif
20890 /* We use char because int might match the return type of a gcc2
20891    builtin and then its argument prototype would still apply.  */
20892 char $ac_func ();
20893 /* The GNU C library defines this for functions which it implements
20894     to always fail with ENOSYS.  Some functions are actually named
20895     something starting with __ and the normal name is an alias.  */
20896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20897 choke me
20898 #else
20899 char (*f) () = $ac_func;
20900 #endif
20901 #ifdef __cplusplus
20902 }
20903 #endif
20904
20905 int
20906 main ()
20907 {
20908 return f != $ac_func;
20909   ;
20910   return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915   (eval $ac_link) 2>conftest.er1
20916   ac_status=$?
20917   grep -v '^ *+' conftest.er1 >conftest.err
20918   rm -f conftest.er1
20919   cat conftest.err >&5
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); } &&
20922          { ac_try='test -z "$ac_c_werror_flag"
20923                          || test ! -s conftest.err'
20924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925   (eval $ac_try) 2>&5
20926   ac_status=$?
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); }; } &&
20929          { ac_try='test -s conftest$ac_exeext'
20930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931   (eval $ac_try) 2>&5
20932   ac_status=$?
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); }; }; then
20935   eval "$as_ac_var=yes"
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 eval "$as_ac_var=no"
20941 fi
20942 rm -f conftest.err conftest.$ac_objext \
20943       conftest$ac_exeext conftest.$ac_ext
20944 fi
20945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20947 if test `eval echo '${'$as_ac_var'}'` = yes; then
20948   cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20950 _ACEOF
20951  cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_GETHOSTBYNAME2 1
20953 _ACEOF
20954
20955 fi
20956 done
20957
20958
20959 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
20960 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
20961 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
20962   echo $ECHO_N "(cached) $ECHO_C" >&6
20963 else
20964   cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970 #include <sys/socket.h>
20971 int
20972 main ()
20973 {
20974 struct sockaddr s; s.sa_len;
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest.$ac_objext
20980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20981   (eval $ac_compile) 2>conftest.er1
20982   ac_status=$?
20983   grep -v '^ *+' conftest.er1 >conftest.err
20984   rm -f conftest.er1
20985   cat conftest.err >&5
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); } &&
20988          { ac_try='test -z "$ac_c_werror_flag"
20989                          || test ! -s conftest.err'
20990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991   (eval $ac_try) 2>&5
20992   ac_status=$?
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); }; } &&
20995          { ac_try='test -s conftest.$ac_objext'
20996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997   (eval $ac_try) 2>&5
20998   ac_status=$?
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); }; }; then
21001   ac_cv_struct_sockaddr_sa_len=yes
21002 else
21003   echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21005
21006 ac_cv_struct_sockaddr_sa_len=no
21007 fi
21008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21009 fi
21010 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21011 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21012
21013  if test $ac_cv_struct_sockaddr_sa_len = yes; then
21014
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_SA_LEN 1
21017 _ACEOF
21018
21019  fi
21020
21021
21022 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21023 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21024 if test "${ac_cv_ipv6_support+set}" = set; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027   cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033  #include <sys/types.h>
21034 #include <sys/socket.h>
21035 #include <netinet/in.h>
21036 int
21037 main ()
21038 {
21039 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21040  0;
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21047   (eval $ac_link) 2>conftest.er1
21048   ac_status=$?
21049   grep -v '^ *+' conftest.er1 >conftest.err
21050   rm -f conftest.er1
21051   cat conftest.err >&5
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); } &&
21054          { ac_try='test -z "$ac_c_werror_flag"
21055                          || test ! -s conftest.err'
21056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057   (eval $ac_try) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; } &&
21061          { ac_try='test -s conftest$ac_exeext'
21062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063   (eval $ac_try) 2>&5
21064   ac_status=$?
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); }; }; then
21067   ac_cv_ipv6_support=yes
21068 else
21069   echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072 ac_cv_ipv6_support=no
21073 fi
21074 rm -f conftest.err conftest.$ac_objext \
21075       conftest$ac_exeext conftest.$ac_ext
21076 fi
21077 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21078 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21079
21080 if test "$ac_cv_ipv6_support" = yes; then
21081
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_IPV6 1
21084 _ACEOF
21085
21086 fi
21087
21088
21089
21090
21091 for ac_func in strftime
21092 do
21093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21094 echo "$as_me:$LINENO: checking for $ac_func" >&5
21095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21096 if eval "test \"\${$as_ac_var+set}\" = set"; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21107 #define $ac_func innocuous_$ac_func
21108
21109 /* System header to define __stub macros and hopefully few prototypes,
21110     which can conflict with char $ac_func (); below.
21111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21112     <limits.h> exists even on freestanding compilers.  */
21113
21114 #ifdef __STDC__
21115 # include <limits.h>
21116 #else
21117 # include <assert.h>
21118 #endif
21119
21120 #undef $ac_func
21121
21122 /* Override any gcc2 internal prototype to avoid an error.  */
21123 #ifdef __cplusplus
21124 extern "C"
21125 {
21126 #endif
21127 /* We use char because int might match the return type of a gcc2
21128    builtin and then its argument prototype would still apply.  */
21129 char $ac_func ();
21130 /* The GNU C library defines this for functions which it implements
21131     to always fail with ENOSYS.  Some functions are actually named
21132     something starting with __ and the normal name is an alias.  */
21133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21134 choke me
21135 #else
21136 char (*f) () = $ac_func;
21137 #endif
21138 #ifdef __cplusplus
21139 }
21140 #endif
21141
21142 int
21143 main ()
21144 {
21145 return f != $ac_func;
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152   (eval $ac_link) 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } &&
21159          { ac_try='test -z "$ac_c_werror_flag"
21160                          || test ! -s conftest.err'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; } &&
21166          { ac_try='test -s conftest$ac_exeext'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   eval "$as_ac_var=yes"
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 eval "$as_ac_var=no"
21178 fi
21179 rm -f conftest.err conftest.$ac_objext \
21180       conftest$ac_exeext conftest.$ac_ext
21181 fi
21182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21184 if test `eval echo '${'$as_ac_var'}'` = yes; then
21185   cat >>confdefs.h <<_ACEOF
21186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21187 _ACEOF
21188
21189 else
21190   # strftime is in -lintl on SCO UNIX.
21191 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21192 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21193 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196   ac_check_lib_save_LIBS=$LIBS
21197 LIBS="-lintl  $LIBS"
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204
21205 /* Override any gcc2 internal prototype to avoid an error.  */
21206 #ifdef __cplusplus
21207 extern "C"
21208 #endif
21209 /* We use char because int might match the return type of a gcc2
21210    builtin and then its argument prototype would still apply.  */
21211 char strftime ();
21212 int
21213 main ()
21214 {
21215 strftime ();
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21222   (eval $ac_link) 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } &&
21229          { ac_try='test -z "$ac_c_werror_flag"
21230                          || test ! -s conftest.err'
21231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232   (eval $ac_try) 2>&5
21233   ac_status=$?
21234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235   (exit $ac_status); }; } &&
21236          { ac_try='test -s conftest$ac_exeext'
21237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238   (eval $ac_try) 2>&5
21239   ac_status=$?
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); }; }; then
21242   ac_cv_lib_intl_strftime=yes
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247 ac_cv_lib_intl_strftime=no
21248 fi
21249 rm -f conftest.err conftest.$ac_objext \
21250       conftest$ac_exeext conftest.$ac_ext
21251 LIBS=$ac_check_lib_save_LIBS
21252 fi
21253 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21254 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21255 if test $ac_cv_lib_intl_strftime = yes; then
21256   cat >>confdefs.h <<\_ACEOF
21257 #define HAVE_STRFTIME 1
21258 _ACEOF
21259
21260 LIBS="-lintl $LIBS"
21261 fi
21262
21263 fi
21264 done
21265
21266
21267 for ac_func in vprintf
21268 do
21269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21270 echo "$as_me:$LINENO: checking for $ac_func" >&5
21271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21272 if eval "test \"\${$as_ac_var+set}\" = set"; then
21273   echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275   cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21283 #define $ac_func innocuous_$ac_func
21284
21285 /* System header to define __stub macros and hopefully few prototypes,
21286     which can conflict with char $ac_func (); below.
21287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21288     <limits.h> exists even on freestanding compilers.  */
21289
21290 #ifdef __STDC__
21291 # include <limits.h>
21292 #else
21293 # include <assert.h>
21294 #endif
21295
21296 #undef $ac_func
21297
21298 /* Override any gcc2 internal prototype to avoid an error.  */
21299 #ifdef __cplusplus
21300 extern "C"
21301 {
21302 #endif
21303 /* We use char because int might match the return type of a gcc2
21304    builtin and then its argument prototype would still apply.  */
21305 char $ac_func ();
21306 /* The GNU C library defines this for functions which it implements
21307     to always fail with ENOSYS.  Some functions are actually named
21308     something starting with __ and the normal name is an alias.  */
21309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21310 choke me
21311 #else
21312 char (*f) () = $ac_func;
21313 #endif
21314 #ifdef __cplusplus
21315 }
21316 #endif
21317
21318 int
21319 main ()
21320 {
21321 return f != $ac_func;
21322   ;
21323   return 0;
21324 }
21325 _ACEOF
21326 rm -f conftest.$ac_objext conftest$ac_exeext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21328   (eval $ac_link) 2>conftest.er1
21329   ac_status=$?
21330   grep -v '^ *+' conftest.er1 >conftest.err
21331   rm -f conftest.er1
21332   cat conftest.err >&5
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); } &&
21335          { ac_try='test -z "$ac_c_werror_flag"
21336                          || test ! -s conftest.err'
21337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338   (eval $ac_try) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; } &&
21342          { ac_try='test -s conftest$ac_exeext'
21343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344   (eval $ac_try) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   eval "$as_ac_var=yes"
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353 eval "$as_ac_var=no"
21354 fi
21355 rm -f conftest.err conftest.$ac_objext \
21356       conftest$ac_exeext conftest.$ac_ext
21357 fi
21358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21360 if test `eval echo '${'$as_ac_var'}'` = yes; then
21361   cat >>confdefs.h <<_ACEOF
21362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21363 _ACEOF
21364
21365 echo "$as_me:$LINENO: checking for _doprnt" >&5
21366 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21367 if test "${ac_cv_func__doprnt+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21378 #define _doprnt innocuous__doprnt
21379
21380 /* System header to define __stub macros and hopefully few prototypes,
21381     which can conflict with char _doprnt (); below.
21382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21383     <limits.h> exists even on freestanding compilers.  */
21384
21385 #ifdef __STDC__
21386 # include <limits.h>
21387 #else
21388 # include <assert.h>
21389 #endif
21390
21391 #undef _doprnt
21392
21393 /* Override any gcc2 internal prototype to avoid an error.  */
21394 #ifdef __cplusplus
21395 extern "C"
21396 {
21397 #endif
21398 /* We use char because int might match the return type of a gcc2
21399    builtin and then its argument prototype would still apply.  */
21400 char _doprnt ();
21401 /* The GNU C library defines this for functions which it implements
21402     to always fail with ENOSYS.  Some functions are actually named
21403     something starting with __ and the normal name is an alias.  */
21404 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21405 choke me
21406 #else
21407 char (*f) () = _doprnt;
21408 #endif
21409 #ifdef __cplusplus
21410 }
21411 #endif
21412
21413 int
21414 main ()
21415 {
21416 return f != _doprnt;
21417   ;
21418   return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest.$ac_objext conftest$ac_exeext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423   (eval $ac_link) 2>conftest.er1
21424   ac_status=$?
21425   grep -v '^ *+' conftest.er1 >conftest.err
21426   rm -f conftest.er1
21427   cat conftest.err >&5
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } &&
21430          { ac_try='test -z "$ac_c_werror_flag"
21431                          || test ! -s conftest.err'
21432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433   (eval $ac_try) 2>&5
21434   ac_status=$?
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); }; } &&
21437          { ac_try='test -s conftest$ac_exeext'
21438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439   (eval $ac_try) 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; }; then
21443   ac_cv_func__doprnt=yes
21444 else
21445   echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448 ac_cv_func__doprnt=no
21449 fi
21450 rm -f conftest.err conftest.$ac_objext \
21451       conftest$ac_exeext conftest.$ac_ext
21452 fi
21453 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21454 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21455 if test $ac_cv_func__doprnt = yes; then
21456
21457 cat >>confdefs.h <<\_ACEOF
21458 #define HAVE_DOPRNT 1
21459 _ACEOF
21460
21461 fi
21462
21463 fi
21464 done
21465
21466
21467 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21468 # for constant arguments.  Useless!
21469 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21470 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21471 if test "${ac_cv_working_alloca_h+set}" = set; then
21472   echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474   cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h.  */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h.  */
21480 #include <alloca.h>
21481 int
21482 main ()
21483 {
21484 char *p = (char *) alloca (2 * sizeof (int));
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491   (eval $ac_link) 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } &&
21498          { ac_try='test -z "$ac_c_werror_flag"
21499                          || test ! -s conftest.err'
21500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501   (eval $ac_try) 2>&5
21502   ac_status=$?
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); }; } &&
21505          { ac_try='test -s conftest$ac_exeext'
21506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507   (eval $ac_try) 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; }; then
21511   ac_cv_working_alloca_h=yes
21512 else
21513   echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516 ac_cv_working_alloca_h=no
21517 fi
21518 rm -f conftest.err conftest.$ac_objext \
21519       conftest$ac_exeext conftest.$ac_ext
21520 fi
21521 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21522 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21523 if test $ac_cv_working_alloca_h = yes; then
21524
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_ALLOCA_H 1
21527 _ACEOF
21528
21529 fi
21530
21531 echo "$as_me:$LINENO: checking for alloca" >&5
21532 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21533 if test "${ac_cv_func_alloca_works+set}" = set; then
21534   echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21536   cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 #ifdef __GNUC__
21543 # define alloca __builtin_alloca
21544 #else
21545 # ifdef _MSC_VER
21546 #  include <malloc.h>
21547 #  define alloca _alloca
21548 # else
21549 #  if HAVE_ALLOCA_H
21550 #   include <alloca.h>
21551 #  else
21552 #   ifdef _AIX
21553  #pragma alloca
21554 #   else
21555 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21556 char *alloca ();
21557 #    endif
21558 #   endif
21559 #  endif
21560 # endif
21561 #endif
21562
21563 int
21564 main ()
21565 {
21566 char *p = (char *) alloca (1);
21567   ;
21568   return 0;
21569 }
21570 _ACEOF
21571 rm -f conftest.$ac_objext conftest$ac_exeext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21573   (eval $ac_link) 2>conftest.er1
21574   ac_status=$?
21575   grep -v '^ *+' conftest.er1 >conftest.err
21576   rm -f conftest.er1
21577   cat conftest.err >&5
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); } &&
21580          { ac_try='test -z "$ac_c_werror_flag"
21581                          || test ! -s conftest.err'
21582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583   (eval $ac_try) 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); }; } &&
21587          { ac_try='test -s conftest$ac_exeext'
21588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589   (eval $ac_try) 2>&5
21590   ac_status=$?
21591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592   (exit $ac_status); }; }; then
21593   ac_cv_func_alloca_works=yes
21594 else
21595   echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598 ac_cv_func_alloca_works=no
21599 fi
21600 rm -f conftest.err conftest.$ac_objext \
21601       conftest$ac_exeext conftest.$ac_ext
21602 fi
21603 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21604 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21605
21606 if test $ac_cv_func_alloca_works = yes; then
21607
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_ALLOCA 1
21610 _ACEOF
21611
21612 else
21613   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21614 # that cause trouble.  Some versions do not even contain alloca or
21615 # contain a buggy version.  If you still want to use their alloca,
21616 # use ar to extract alloca.o from them instead of compiling alloca.c.
21617
21618 ALLOCA=alloca.$ac_objext
21619
21620 cat >>confdefs.h <<\_ACEOF
21621 #define C_ALLOCA 1
21622 _ACEOF
21623
21624
21625 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21626 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21627 if test "${ac_cv_os_cray+set}" = set; then
21628   echo $ECHO_N "(cached) $ECHO_C" >&6
21629 else
21630   cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h.  */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h.  */
21636 #if defined(CRAY) && ! defined(CRAY2)
21637 webecray
21638 #else
21639 wenotbecray
21640 #endif
21641
21642 _ACEOF
21643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21644   $EGREP "webecray" >/dev/null 2>&1; then
21645   ac_cv_os_cray=yes
21646 else
21647   ac_cv_os_cray=no
21648 fi
21649 rm -f conftest*
21650
21651 fi
21652 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21653 echo "${ECHO_T}$ac_cv_os_cray" >&6
21654 if test $ac_cv_os_cray = yes; then
21655   for ac_func in _getb67 GETB67 getb67; do
21656     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21657 echo "$as_me:$LINENO: checking for $ac_func" >&5
21658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21659 if eval "test \"\${$as_ac_var+set}\" = set"; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662   cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h.  */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h.  */
21668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21670 #define $ac_func innocuous_$ac_func
21671
21672 /* System header to define __stub macros and hopefully few prototypes,
21673     which can conflict with char $ac_func (); below.
21674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21675     <limits.h> exists even on freestanding compilers.  */
21676
21677 #ifdef __STDC__
21678 # include <limits.h>
21679 #else
21680 # include <assert.h>
21681 #endif
21682
21683 #undef $ac_func
21684
21685 /* Override any gcc2 internal prototype to avoid an error.  */
21686 #ifdef __cplusplus
21687 extern "C"
21688 {
21689 #endif
21690 /* We use char because int might match the return type of a gcc2
21691    builtin and then its argument prototype would still apply.  */
21692 char $ac_func ();
21693 /* The GNU C library defines this for functions which it implements
21694     to always fail with ENOSYS.  Some functions are actually named
21695     something starting with __ and the normal name is an alias.  */
21696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21697 choke me
21698 #else
21699 char (*f) () = $ac_func;
21700 #endif
21701 #ifdef __cplusplus
21702 }
21703 #endif
21704
21705 int
21706 main ()
21707 {
21708 return f != $ac_func;
21709   ;
21710   return 0;
21711 }
21712 _ACEOF
21713 rm -f conftest.$ac_objext conftest$ac_exeext
21714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21715   (eval $ac_link) 2>conftest.er1
21716   ac_status=$?
21717   grep -v '^ *+' conftest.er1 >conftest.err
21718   rm -f conftest.er1
21719   cat conftest.err >&5
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); } &&
21722          { ac_try='test -z "$ac_c_werror_flag"
21723                          || test ! -s conftest.err'
21724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725   (eval $ac_try) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); }; } &&
21729          { ac_try='test -s conftest$ac_exeext'
21730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731   (eval $ac_try) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); }; }; then
21735   eval "$as_ac_var=yes"
21736 else
21737   echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740 eval "$as_ac_var=no"
21741 fi
21742 rm -f conftest.err conftest.$ac_objext \
21743       conftest$ac_exeext conftest.$ac_ext
21744 fi
21745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21747 if test `eval echo '${'$as_ac_var'}'` = yes; then
21748
21749 cat >>confdefs.h <<_ACEOF
21750 #define CRAY_STACKSEG_END $ac_func
21751 _ACEOF
21752
21753     break
21754 fi
21755
21756   done
21757 fi
21758
21759 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21760 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21761 if test "${ac_cv_c_stack_direction+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764   if test "$cross_compiling" = yes; then
21765   ac_cv_c_stack_direction=0
21766 else
21767   cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773 int
21774 find_stack_direction ()
21775 {
21776   static char *addr = 0;
21777   auto char dummy;
21778   if (addr == 0)
21779     {
21780       addr = &dummy;
21781       return find_stack_direction ();
21782     }
21783   else
21784     return (&dummy > addr) ? 1 : -1;
21785 }
21786
21787 int
21788 main ()
21789 {
21790   exit (find_stack_direction () < 0);
21791 }
21792 _ACEOF
21793 rm -f conftest$ac_exeext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21795   (eval $ac_link) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800   (eval $ac_try) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); }; }; then
21804   ac_cv_c_stack_direction=1
21805 else
21806   echo "$as_me: program exited with status $ac_status" >&5
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 ( exit $ac_status )
21811 ac_cv_c_stack_direction=-1
21812 fi
21813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21814 fi
21815 fi
21816 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21817 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21818
21819 cat >>confdefs.h <<_ACEOF
21820 #define STACK_DIRECTION $ac_cv_c_stack_direction
21821 _ACEOF
21822
21823
21824 fi
21825
21826 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21827 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21828 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21829 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832   ac_check_lib_save_LIBS=$LIBS
21833 LIBS="-lsun  $LIBS"
21834 cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840
21841 /* Override any gcc2 internal prototype to avoid an error.  */
21842 #ifdef __cplusplus
21843 extern "C"
21844 #endif
21845 /* We use char because int might match the return type of a gcc2
21846    builtin and then its argument prototype would still apply.  */
21847 char getmntent ();
21848 int
21849 main ()
21850 {
21851 getmntent ();
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest.$ac_objext conftest$ac_exeext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21858   (eval $ac_link) 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } &&
21865          { ac_try='test -z "$ac_c_werror_flag"
21866                          || test ! -s conftest.err'
21867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; } &&
21872          { ac_try='test -s conftest$ac_exeext'
21873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874   (eval $ac_try) 2>&5
21875   ac_status=$?
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); }; }; then
21878   ac_cv_lib_sun_getmntent=yes
21879 else
21880   echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 ac_cv_lib_sun_getmntent=no
21884 fi
21885 rm -f conftest.err conftest.$ac_objext \
21886       conftest$ac_exeext conftest.$ac_ext
21887 LIBS=$ac_check_lib_save_LIBS
21888 fi
21889 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21890 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21891 if test $ac_cv_lib_sun_getmntent = yes; then
21892   LIBS="-lsun $LIBS"
21893 else
21894   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21895 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21896 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899   ac_check_lib_save_LIBS=$LIBS
21900 LIBS="-lseq  $LIBS"
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907
21908 /* Override any gcc2 internal prototype to avoid an error.  */
21909 #ifdef __cplusplus
21910 extern "C"
21911 #endif
21912 /* We use char because int might match the return type of a gcc2
21913    builtin and then its argument prototype would still apply.  */
21914 char getmntent ();
21915 int
21916 main ()
21917 {
21918 getmntent ();
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21925   (eval $ac_link) 2>conftest.er1
21926   ac_status=$?
21927   grep -v '^ *+' conftest.er1 >conftest.err
21928   rm -f conftest.er1
21929   cat conftest.err >&5
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); } &&
21932          { ac_try='test -z "$ac_c_werror_flag"
21933                          || test ! -s conftest.err'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; } &&
21939          { ac_try='test -s conftest$ac_exeext'
21940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941   (eval $ac_try) 2>&5
21942   ac_status=$?
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); }; }; then
21945   ac_cv_lib_seq_getmntent=yes
21946 else
21947   echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21949
21950 ac_cv_lib_seq_getmntent=no
21951 fi
21952 rm -f conftest.err conftest.$ac_objext \
21953       conftest$ac_exeext conftest.$ac_ext
21954 LIBS=$ac_check_lib_save_LIBS
21955 fi
21956 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
21957 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
21958 if test $ac_cv_lib_seq_getmntent = yes; then
21959   LIBS="-lseq $LIBS"
21960 else
21961   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
21962 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
21963 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
21964   echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966   ac_check_lib_save_LIBS=$LIBS
21967 LIBS="-lgen  $LIBS"
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h.  */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h.  */
21974
21975 /* Override any gcc2 internal prototype to avoid an error.  */
21976 #ifdef __cplusplus
21977 extern "C"
21978 #endif
21979 /* We use char because int might match the return type of a gcc2
21980    builtin and then its argument prototype would still apply.  */
21981 char getmntent ();
21982 int
21983 main ()
21984 {
21985 getmntent ();
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext conftest$ac_exeext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21992   (eval $ac_link) 2>conftest.er1
21993   ac_status=$?
21994   grep -v '^ *+' conftest.er1 >conftest.err
21995   rm -f conftest.er1
21996   cat conftest.err >&5
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); } &&
21999          { ac_try='test -z "$ac_c_werror_flag"
22000                          || test ! -s conftest.err'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; } &&
22006          { ac_try='test -s conftest$ac_exeext'
22007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008   (eval $ac_try) 2>&5
22009   ac_status=$?
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); }; }; then
22012   ac_cv_lib_gen_getmntent=yes
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017 ac_cv_lib_gen_getmntent=no
22018 fi
22019 rm -f conftest.err conftest.$ac_objext \
22020       conftest$ac_exeext conftest.$ac_ext
22021 LIBS=$ac_check_lib_save_LIBS
22022 fi
22023 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22024 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22025 if test $ac_cv_lib_gen_getmntent = yes; then
22026   LIBS="-lgen $LIBS"
22027 fi
22028
22029 fi
22030
22031 fi
22032
22033
22034 for ac_func in getmntent
22035 do
22036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22037 echo "$as_me:$LINENO: checking for $ac_func" >&5
22038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22039 if eval "test \"\${$as_ac_var+set}\" = set"; then
22040   echo $ECHO_N "(cached) $ECHO_C" >&6
22041 else
22042   cat >conftest.$ac_ext <<_ACEOF
22043 /* confdefs.h.  */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h.  */
22048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22050 #define $ac_func innocuous_$ac_func
22051
22052 /* System header to define __stub macros and hopefully few prototypes,
22053     which can conflict with char $ac_func (); below.
22054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22055     <limits.h> exists even on freestanding compilers.  */
22056
22057 #ifdef __STDC__
22058 # include <limits.h>
22059 #else
22060 # include <assert.h>
22061 #endif
22062
22063 #undef $ac_func
22064
22065 /* Override any gcc2 internal prototype to avoid an error.  */
22066 #ifdef __cplusplus
22067 extern "C"
22068 {
22069 #endif
22070 /* We use char because int might match the return type of a gcc2
22071    builtin and then its argument prototype would still apply.  */
22072 char $ac_func ();
22073 /* The GNU C library defines this for functions which it implements
22074     to always fail with ENOSYS.  Some functions are actually named
22075     something starting with __ and the normal name is an alias.  */
22076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22077 choke me
22078 #else
22079 char (*f) () = $ac_func;
22080 #endif
22081 #ifdef __cplusplus
22082 }
22083 #endif
22084
22085 int
22086 main ()
22087 {
22088 return f != $ac_func;
22089   ;
22090   return 0;
22091 }
22092 _ACEOF
22093 rm -f conftest.$ac_objext conftest$ac_exeext
22094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22095   (eval $ac_link) 2>conftest.er1
22096   ac_status=$?
22097   grep -v '^ *+' conftest.er1 >conftest.err
22098   rm -f conftest.er1
22099   cat conftest.err >&5
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); } &&
22102          { ac_try='test -z "$ac_c_werror_flag"
22103                          || test ! -s conftest.err'
22104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105   (eval $ac_try) 2>&5
22106   ac_status=$?
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); }; } &&
22109          { ac_try='test -s conftest$ac_exeext'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; }; then
22115   eval "$as_ac_var=yes"
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120 eval "$as_ac_var=no"
22121 fi
22122 rm -f conftest.err conftest.$ac_objext \
22123       conftest$ac_exeext conftest.$ac_ext
22124 fi
22125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22127 if test `eval echo '${'$as_ac_var'}'` = yes; then
22128   cat >>confdefs.h <<_ACEOF
22129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22130 _ACEOF
22131
22132 fi
22133 done
22134
22135
22136 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22137 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22138 if test "${ac_cv_func_closedir_void+set}" = set; then
22139   echo $ECHO_N "(cached) $ECHO_C" >&6
22140 else
22141   if test "$cross_compiling" = yes; then
22142   ac_cv_func_closedir_void=yes
22143 else
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150 $ac_includes_default
22151 #include <$ac_header_dirent>
22152 #ifndef __cplusplus
22153 int closedir ();
22154 #endif
22155
22156 int
22157 main ()
22158 {
22159 exit (closedir (opendir (".")) != 0);
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166   (eval $ac_link) 2>&5
22167   ac_status=$?
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171   (eval $ac_try) 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); }; }; then
22175   ac_cv_func_closedir_void=no
22176 else
22177   echo "$as_me: program exited with status $ac_status" >&5
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181 ( exit $ac_status )
22182 ac_cv_func_closedir_void=yes
22183 fi
22184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22185 fi
22186 fi
22187 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22188 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22189 if test $ac_cv_func_closedir_void = yes; then
22190
22191 cat >>confdefs.h <<\_ACEOF
22192 #define CLOSEDIR_VOID 1
22193 _ACEOF
22194
22195 fi
22196
22197 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22198 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22199 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22200   echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202   if test "$cross_compiling" = yes; then
22203   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22204 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22205    { (exit 1); exit 1; }; }
22206 else
22207   cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213 #if HAVE_UNISTD_H
22214 # include <unistd.h>
22215 #endif
22216
22217 int
22218 main ()
22219 {
22220 /* If this system has a BSD-style setpgrp which takes arguments,
22221   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22222   exit successfully. */
22223   exit (setpgrp (1,1) == -1 ? 0 : 1);
22224   ;
22225   return 0;
22226 }
22227 _ACEOF
22228 rm -f conftest$ac_exeext
22229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230   (eval $ac_link) 2>&5
22231   ac_status=$?
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235   (eval $ac_try) 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); }; }; then
22239   ac_cv_func_setpgrp_void=no
22240 else
22241   echo "$as_me: program exited with status $ac_status" >&5
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245 ( exit $ac_status )
22246 ac_cv_func_setpgrp_void=yes
22247 fi
22248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22249 fi
22250 fi
22251 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22252 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22253 if test $ac_cv_func_setpgrp_void = yes; then
22254
22255 cat >>confdefs.h <<\_ACEOF
22256 #define SETPGRP_VOID 1
22257 _ACEOF
22258
22259 fi
22260                       # AC_FUNC_FNMATCH    dnl use local version
22261
22262
22263 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22264 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22265 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22266   echo $ECHO_N "(cached) $ECHO_C" >&6
22267 else
22268   ac_check_lib_save_LIBS=$LIBS
22269 LIBS="-lxpg4  $LIBS"
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h.  */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h.  */
22276
22277 /* Override any gcc2 internal prototype to avoid an error.  */
22278 #ifdef __cplusplus
22279 extern "C"
22280 #endif
22281 /* We use char because int might match the return type of a gcc2
22282    builtin and then its argument prototype would still apply.  */
22283 char setlocale ();
22284 int
22285 main ()
22286 {
22287 setlocale ();
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22294   (eval $ac_link) 2>conftest.er1
22295   ac_status=$?
22296   grep -v '^ *+' conftest.er1 >conftest.err
22297   rm -f conftest.er1
22298   cat conftest.err >&5
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } &&
22301          { ac_try='test -z "$ac_c_werror_flag"
22302                          || test ! -s conftest.err'
22303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304   (eval $ac_try) 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; } &&
22308          { ac_try='test -s conftest$ac_exeext'
22309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310   (eval $ac_try) 2>&5
22311   ac_status=$?
22312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313   (exit $ac_status); }; }; then
22314   ac_cv_lib_xpg4_setlocale=yes
22315 else
22316   echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22318
22319 ac_cv_lib_xpg4_setlocale=no
22320 fi
22321 rm -f conftest.err conftest.$ac_objext \
22322       conftest$ac_exeext conftest.$ac_ext
22323 LIBS=$ac_check_lib_save_LIBS
22324 fi
22325 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22326 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22327 if test $ac_cv_lib_xpg4_setlocale = yes; then
22328   LIBS="$LIBS -lxpg4"
22329 fi
22330
22331
22332
22333
22334 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22335 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22336 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22337   echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339   ac_check_lib_save_LIBS=$LIBS
22340 LIBS="-lsun  $LIBS"
22341 cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347
22348 /* Override any gcc2 internal prototype to avoid an error.  */
22349 #ifdef __cplusplus
22350 extern "C"
22351 #endif
22352 /* We use char because int might match the return type of a gcc2
22353    builtin and then its argument prototype would still apply.  */
22354 char getpwnam ();
22355 int
22356 main ()
22357 {
22358 getpwnam ();
22359   ;
22360   return 0;
22361 }
22362 _ACEOF
22363 rm -f conftest.$ac_objext conftest$ac_exeext
22364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22365   (eval $ac_link) 2>conftest.er1
22366   ac_status=$?
22367   grep -v '^ *+' conftest.er1 >conftest.err
22368   rm -f conftest.er1
22369   cat conftest.err >&5
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); } &&
22372          { ac_try='test -z "$ac_c_werror_flag"
22373                          || test ! -s conftest.err'
22374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375   (eval $ac_try) 2>&5
22376   ac_status=$?
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); }; } &&
22379          { ac_try='test -s conftest$ac_exeext'
22380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381   (eval $ac_try) 2>&5
22382   ac_status=$?
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); }; }; then
22385   ac_cv_lib_sun_getpwnam=yes
22386 else
22387   echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22389
22390 ac_cv_lib_sun_getpwnam=no
22391 fi
22392 rm -f conftest.err conftest.$ac_objext \
22393       conftest$ac_exeext conftest.$ac_ext
22394 LIBS=$ac_check_lib_save_LIBS
22395 fi
22396 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22397 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22398 if test $ac_cv_lib_sun_getpwnam = yes; then
22399   cat >>confdefs.h <<_ACEOF
22400 #define HAVE_LIBSUN 1
22401 _ACEOF
22402
22403   LIBS="-lsun $LIBS"
22404
22405 fi
22406
22407
22408
22409 for ac_header in zlib.h
22410 do
22411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22413   echo "$as_me:$LINENO: checking for $ac_header" >&5
22414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22416   echo $ECHO_N "(cached) $ECHO_C" >&6
22417 fi
22418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22420 else
22421   # Is the header compilable?
22422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
22432 _ACEOF
22433 rm -f conftest.$ac_objext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22435   (eval $ac_compile) 2>conftest.er1
22436   ac_status=$?
22437   grep -v '^ *+' conftest.er1 >conftest.err
22438   rm -f conftest.er1
22439   cat conftest.err >&5
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } &&
22442          { ac_try='test -z "$ac_c_werror_flag"
22443                          || test ! -s conftest.err'
22444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445   (eval $ac_try) 2>&5
22446   ac_status=$?
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); }; } &&
22449          { ac_try='test -s conftest.$ac_objext'
22450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451   (eval $ac_try) 2>&5
22452   ac_status=$?
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); }; }; then
22455   ac_header_compiler=yes
22456 else
22457   echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 ac_header_compiler=no
22461 fi
22462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22464 echo "${ECHO_T}$ac_header_compiler" >&6
22465
22466 # Is the header present?
22467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22469 cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 #include <$ac_header>
22476 _ACEOF
22477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22478   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22479   ac_status=$?
22480   grep -v '^ *+' conftest.er1 >conftest.err
22481   rm -f conftest.er1
22482   cat conftest.err >&5
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); } >/dev/null; then
22485   if test -s conftest.err; then
22486     ac_cpp_err=$ac_c_preproc_warn_flag
22487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22488   else
22489     ac_cpp_err=
22490   fi
22491 else
22492   ac_cpp_err=yes
22493 fi
22494 if test -z "$ac_cpp_err"; then
22495   ac_header_preproc=yes
22496 else
22497   echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22499
22500   ac_header_preproc=no
22501 fi
22502 rm -f conftest.err conftest.$ac_ext
22503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22504 echo "${ECHO_T}$ac_header_preproc" >&6
22505
22506 # So?  What about this header?
22507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22508   yes:no: )
22509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22513     ac_header_preproc=yes
22514     ;;
22515   no:yes:* )
22516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22528     (
22529       cat <<\_ASBOX
22530 ## ------------------------------------------ ##
22531 ## Report this to the AC_PACKAGE_NAME lists.  ##
22532 ## ------------------------------------------ ##
22533 _ASBOX
22534     ) |
22535       sed "s/^/$as_me: WARNING:     /" >&2
22536     ;;
22537 esac
22538 echo "$as_me:$LINENO: checking for $ac_header" >&5
22539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   eval "$as_ac_Header=\$ac_header_preproc"
22544 fi
22545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22547
22548 fi
22549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22550   cat >>confdefs.h <<_ACEOF
22551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22552 _ACEOF
22553
22554 fi
22555
22556 done
22557
22558 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22559 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22560 if test "${ac_cv_lib_z_deflate+set}" = set; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 else
22563   ac_check_lib_save_LIBS=$LIBS
22564 LIBS="-lz  $LIBS"
22565 cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h.  */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h.  */
22571
22572 /* Override any gcc2 internal prototype to avoid an error.  */
22573 #ifdef __cplusplus
22574 extern "C"
22575 #endif
22576 /* We use char because int might match the return type of a gcc2
22577    builtin and then its argument prototype would still apply.  */
22578 char deflate ();
22579 int
22580 main ()
22581 {
22582 deflate ();
22583   ;
22584   return 0;
22585 }
22586 _ACEOF
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22589   (eval $ac_link) 2>conftest.er1
22590   ac_status=$?
22591   grep -v '^ *+' conftest.er1 >conftest.err
22592   rm -f conftest.er1
22593   cat conftest.err >&5
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); } &&
22596          { ac_try='test -z "$ac_c_werror_flag"
22597                          || test ! -s conftest.err'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; } &&
22603          { ac_try='test -s conftest$ac_exeext'
22604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605   (eval $ac_try) 2>&5
22606   ac_status=$?
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); }; }; then
22609   ac_cv_lib_z_deflate=yes
22610 else
22611   echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ac_cv_lib_z_deflate=no
22615 fi
22616 rm -f conftest.err conftest.$ac_objext \
22617       conftest$ac_exeext conftest.$ac_ext
22618 LIBS=$ac_check_lib_save_LIBS
22619 fi
22620 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22621 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22622 if test $ac_cv_lib_z_deflate = yes; then
22623   FDLIBS="-lz"
22624 fi
22625
22626 have_zlib=no
22627 if test x$FDLIBS = x-lz; then
22628   cat >>confdefs.h <<\_ACEOF
22629 #define HAVE_LIBZ 1
22630 _ACEOF
22631
22632   have_zlib=yes
22633 fi
22634
22635 have_acl=no
22636 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22637   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22638 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22639 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22640   echo $ECHO_N "(cached) $ECHO_C" >&6
22641 fi
22642 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22643 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22644 else
22645   # Is the header compilable?
22646 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22647 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654 $ac_includes_default
22655 #include <sys/acl.h>
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659   (eval $ac_compile) 2>conftest.er1
22660   ac_status=$?
22661   grep -v '^ *+' conftest.er1 >conftest.err
22662   rm -f conftest.er1
22663   cat conftest.err >&5
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } &&
22666          { ac_try='test -z "$ac_c_werror_flag"
22667                          || test ! -s conftest.err'
22668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669   (eval $ac_try) 2>&5
22670   ac_status=$?
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); }; } &&
22673          { ac_try='test -s conftest.$ac_objext'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; }; then
22679   ac_header_compiler=yes
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684 ac_header_compiler=no
22685 fi
22686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22688 echo "${ECHO_T}$ac_header_compiler" >&6
22689
22690 # Is the header present?
22691 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22692 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22693 cat >conftest.$ac_ext <<_ACEOF
22694 /* confdefs.h.  */
22695 _ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h.  */
22699 #include <sys/acl.h>
22700 _ACEOF
22701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22703   ac_status=$?
22704   grep -v '^ *+' conftest.er1 >conftest.err
22705   rm -f conftest.er1
22706   cat conftest.err >&5
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } >/dev/null; then
22709   if test -s conftest.err; then
22710     ac_cpp_err=$ac_c_preproc_warn_flag
22711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22712   else
22713     ac_cpp_err=
22714   fi
22715 else
22716   ac_cpp_err=yes
22717 fi
22718 if test -z "$ac_cpp_err"; then
22719   ac_header_preproc=yes
22720 else
22721   echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22723
22724   ac_header_preproc=no
22725 fi
22726 rm -f conftest.err conftest.$ac_ext
22727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22728 echo "${ECHO_T}$ac_header_preproc" >&6
22729
22730 # So?  What about this header?
22731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22732   yes:no: )
22733     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22734 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22735     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22736 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22737     ac_header_preproc=yes
22738     ;;
22739   no:yes:* )
22740     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22741 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22742     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
22743 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
22744     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22745 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22746     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
22747 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22748     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22749 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22750     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22751 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22752     (
22753       cat <<\_ASBOX
22754 ## ------------------------------------------ ##
22755 ## Report this to the AC_PACKAGE_NAME lists.  ##
22756 ## ------------------------------------------ ##
22757 _ASBOX
22758     ) |
22759       sed "s/^/$as_me: WARNING:     /" >&2
22760     ;;
22761 esac
22762 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22763 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22764 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22765   echo $ECHO_N "(cached) $ECHO_C" >&6
22766 else
22767   ac_cv_header_sys_acl_h=$ac_header_preproc
22768 fi
22769 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22770 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22771
22772 fi
22773
22774
22775 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22776 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22777 if test "${ac_cv_func_acl_get_file+set}" = set; then
22778   echo $ECHO_N "(cached) $ECHO_C" >&6
22779 else
22780   cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h.  */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h.  */
22786 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22788 #define acl_get_file innocuous_acl_get_file
22789
22790 /* System header to define __stub macros and hopefully few prototypes,
22791     which can conflict with char acl_get_file (); below.
22792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22793     <limits.h> exists even on freestanding compilers.  */
22794
22795 #ifdef __STDC__
22796 # include <limits.h>
22797 #else
22798 # include <assert.h>
22799 #endif
22800
22801 #undef acl_get_file
22802
22803 /* Override any gcc2 internal prototype to avoid an error.  */
22804 #ifdef __cplusplus
22805 extern "C"
22806 {
22807 #endif
22808 /* We use char because int might match the return type of a gcc2
22809    builtin and then its argument prototype would still apply.  */
22810 char acl_get_file ();
22811 /* The GNU C library defines this for functions which it implements
22812     to always fail with ENOSYS.  Some functions are actually named
22813     something starting with __ and the normal name is an alias.  */
22814 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22815 choke me
22816 #else
22817 char (*f) () = acl_get_file;
22818 #endif
22819 #ifdef __cplusplus
22820 }
22821 #endif
22822
22823 int
22824 main ()
22825 {
22826 return f != acl_get_file;
22827   ;
22828   return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833   (eval $ac_link) 2>conftest.er1
22834   ac_status=$?
22835   grep -v '^ *+' conftest.er1 >conftest.err
22836   rm -f conftest.er1
22837   cat conftest.err >&5
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); } &&
22840          { ac_try='test -z "$ac_c_werror_flag"
22841                          || test ! -s conftest.err'
22842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843   (eval $ac_try) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); }; } &&
22847          { ac_try='test -s conftest$ac_exeext'
22848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849   (eval $ac_try) 2>&5
22850   ac_status=$?
22851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852   (exit $ac_status); }; }; then
22853   ac_cv_func_acl_get_file=yes
22854 else
22855   echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858 ac_cv_func_acl_get_file=no
22859 fi
22860 rm -f conftest.err conftest.$ac_objext \
22861       conftest$ac_exeext conftest.$ac_ext
22862 fi
22863 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22864 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22865 if test $ac_cv_func_acl_get_file = yes; then
22866   have_acl=yes
22867 else
22868   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22869 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22870 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22871   echo $ECHO_N "(cached) $ECHO_C" >&6
22872 else
22873   ac_check_lib_save_LIBS=$LIBS
22874 LIBS="-lacl  $LIBS"
22875 cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h.  */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h.  */
22881
22882 /* Override any gcc2 internal prototype to avoid an error.  */
22883 #ifdef __cplusplus
22884 extern "C"
22885 #endif
22886 /* We use char because int might match the return type of a gcc2
22887    builtin and then its argument prototype would still apply.  */
22888 char acl_get_file ();
22889 int
22890 main ()
22891 {
22892 acl_get_file ();
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 rm -f conftest.$ac_objext conftest$ac_exeext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899   (eval $ac_link) 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } &&
22906          { ac_try='test -z "$ac_c_werror_flag"
22907                          || test ! -s conftest.err'
22908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909   (eval $ac_try) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; } &&
22913          { ac_try='test -s conftest$ac_exeext'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; }; then
22919   ac_cv_lib_acl_acl_get_file=yes
22920 else
22921   echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 ac_cv_lib_acl_acl_get_file=no
22925 fi
22926 rm -f conftest.err conftest.$ac_objext \
22927       conftest$ac_exeext conftest.$ac_ext
22928 LIBS=$ac_check_lib_save_LIBS
22929 fi
22930 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22931 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22932 if test $ac_cv_lib_acl_acl_get_file = yes; then
22933   have_acl=yes; FDLIBS="-lacl $FDLIBS"
22934 fi
22935
22936
22937 fi
22938
22939 if test $have_acl = yes; then
22940    cat >>confdefs.h <<\_ACEOF
22941 #define HAVE_ACL 1
22942 _ACEOF
22943
22944 fi
22945
22946 PTHREAD_LIB=""
22947 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22948 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22949 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22950   echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952   ac_check_lib_save_LIBS=$LIBS
22953 LIBS="-lpthread  $LIBS"
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
22961 /* Override any gcc2 internal prototype to avoid an error.  */
22962 #ifdef __cplusplus
22963 extern "C"
22964 #endif
22965 /* We use char because int might match the return type of a gcc2
22966    builtin and then its argument prototype would still apply.  */
22967 char pthread_create ();
22968 int
22969 main ()
22970 {
22971 pthread_create ();
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext conftest$ac_exeext
22977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22978   (eval $ac_link) 2>conftest.er1
22979   ac_status=$?
22980   grep -v '^ *+' conftest.er1 >conftest.err
22981   rm -f conftest.er1
22982   cat conftest.err >&5
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } &&
22985          { ac_try='test -z "$ac_c_werror_flag"
22986                          || test ! -s conftest.err'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; } &&
22992          { ac_try='test -s conftest$ac_exeext'
22993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994   (eval $ac_try) 2>&5
22995   ac_status=$?
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); }; }; then
22998   ac_cv_lib_pthread_pthread_create=yes
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003 ac_cv_lib_pthread_pthread_create=no
23004 fi
23005 rm -f conftest.err conftest.$ac_objext \
23006       conftest$ac_exeext conftest.$ac_ext
23007 LIBS=$ac_check_lib_save_LIBS
23008 fi
23009 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23010 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23011 if test $ac_cv_lib_pthread_pthread_create = yes; then
23012   PTHREAD_LIB="-lpthread"
23013 else
23014   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23015 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23016 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23017   echo $ECHO_N "(cached) $ECHO_C" >&6
23018 else
23019   ac_check_lib_save_LIBS=$LIBS
23020 LIBS="-lpthreads  $LIBS"
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027
23028 /* Override any gcc2 internal prototype to avoid an error.  */
23029 #ifdef __cplusplus
23030 extern "C"
23031 #endif
23032 /* We use char because int might match the return type of a gcc2
23033    builtin and then its argument prototype would still apply.  */
23034 char pthread_create ();
23035 int
23036 main ()
23037 {
23038 pthread_create ();
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 rm -f conftest.$ac_objext conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045   (eval $ac_link) 2>conftest.er1
23046   ac_status=$?
23047   grep -v '^ *+' conftest.er1 >conftest.err
23048   rm -f conftest.er1
23049   cat conftest.err >&5
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } &&
23052          { ac_try='test -z "$ac_c_werror_flag"
23053                          || test ! -s conftest.err'
23054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055   (eval $ac_try) 2>&5
23056   ac_status=$?
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); }; } &&
23059          { ac_try='test -s conftest$ac_exeext'
23060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061   (eval $ac_try) 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; }; then
23065   ac_cv_lib_pthreads_pthread_create=yes
23066 else
23067   echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23069
23070 ac_cv_lib_pthreads_pthread_create=no
23071 fi
23072 rm -f conftest.err conftest.$ac_objext \
23073       conftest$ac_exeext conftest.$ac_ext
23074 LIBS=$ac_check_lib_save_LIBS
23075 fi
23076 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23077 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23078 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23079   PTHREAD_LIB="-lpthreads"
23080 else
23081   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23082 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23083 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086   ac_check_lib_save_LIBS=$LIBS
23087 LIBS="-lc_r  $LIBS"
23088 cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h.  */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h.  */
23094
23095 /* Override any gcc2 internal prototype to avoid an error.  */
23096 #ifdef __cplusplus
23097 extern "C"
23098 #endif
23099 /* We use char because int might match the return type of a gcc2
23100    builtin and then its argument prototype would still apply.  */
23101 char pthread_create ();
23102 int
23103 main ()
23104 {
23105 pthread_create ();
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext conftest$ac_exeext
23111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23112   (eval $ac_link) 2>conftest.er1
23113   ac_status=$?
23114   grep -v '^ *+' conftest.er1 >conftest.err
23115   rm -f conftest.er1
23116   cat conftest.err >&5
23117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118   (exit $ac_status); } &&
23119          { ac_try='test -z "$ac_c_werror_flag"
23120                          || test ! -s conftest.err'
23121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122   (eval $ac_try) 2>&5
23123   ac_status=$?
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); }; } &&
23126          { ac_try='test -s conftest$ac_exeext'
23127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128   (eval $ac_try) 2>&5
23129   ac_status=$?
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); }; }; then
23132   ac_cv_lib_c_r_pthread_create=yes
23133 else
23134   echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23136
23137 ac_cv_lib_c_r_pthread_create=no
23138 fi
23139 rm -f conftest.err conftest.$ac_objext \
23140       conftest$ac_exeext conftest.$ac_ext
23141 LIBS=$ac_check_lib_save_LIBS
23142 fi
23143 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23144 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23145 if test $ac_cv_lib_c_r_pthread_create = yes; then
23146   PTHREAD_LIB="-lc_r"
23147 else
23148   echo "$as_me:$LINENO: checking for pthread_create" >&5
23149 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23150 if test "${ac_cv_func_pthread_create+set}" = set; then
23151   echo $ECHO_N "(cached) $ECHO_C" >&6
23152 else
23153   cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h.  */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h.  */
23159 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23161 #define pthread_create innocuous_pthread_create
23162
23163 /* System header to define __stub macros and hopefully few prototypes,
23164     which can conflict with char pthread_create (); below.
23165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23166     <limits.h> exists even on freestanding compilers.  */
23167
23168 #ifdef __STDC__
23169 # include <limits.h>
23170 #else
23171 # include <assert.h>
23172 #endif
23173
23174 #undef pthread_create
23175
23176 /* Override any gcc2 internal prototype to avoid an error.  */
23177 #ifdef __cplusplus
23178 extern "C"
23179 {
23180 #endif
23181 /* We use char because int might match the return type of a gcc2
23182    builtin and then its argument prototype would still apply.  */
23183 char pthread_create ();
23184 /* The GNU C library defines this for functions which it implements
23185     to always fail with ENOSYS.  Some functions are actually named
23186     something starting with __ and the normal name is an alias.  */
23187 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23188 choke me
23189 #else
23190 char (*f) () = pthread_create;
23191 #endif
23192 #ifdef __cplusplus
23193 }
23194 #endif
23195
23196 int
23197 main ()
23198 {
23199 return f != pthread_create;
23200   ;
23201   return 0;
23202 }
23203 _ACEOF
23204 rm -f conftest.$ac_objext conftest$ac_exeext
23205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23206   (eval $ac_link) 2>conftest.er1
23207   ac_status=$?
23208   grep -v '^ *+' conftest.er1 >conftest.err
23209   rm -f conftest.er1
23210   cat conftest.err >&5
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); } &&
23213          { ac_try='test -z "$ac_c_werror_flag"
23214                          || test ! -s conftest.err'
23215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216   (eval $ac_try) 2>&5
23217   ac_status=$?
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); }; } &&
23220          { ac_try='test -s conftest$ac_exeext'
23221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222   (eval $ac_try) 2>&5
23223   ac_status=$?
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); }; }; then
23226   ac_cv_func_pthread_create=yes
23227 else
23228   echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23230
23231 ac_cv_func_pthread_create=no
23232 fi
23233 rm -f conftest.err conftest.$ac_objext \
23234       conftest$ac_exeext conftest.$ac_ext
23235 fi
23236 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23237 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23238
23239
23240 fi
23241
23242
23243 fi
23244
23245
23246 fi
23247
23248
23249
23250 cat >>confdefs.h <<\_ACEOF
23251 #define FDLIBS 1
23252 _ACEOF
23253
23254
23255
23256 CFLAGS=${CFLAGS--O}
23257 LDFLAGS=${LDFLAGS--O}
23258 DB_LIBS="${SQL_LFLAGS}"
23259
23260 CPPFLAGS="$CPPFLAGS"
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276 OBJLIST=
23277
23278
23279 lld="lld"
23280 llu="llu"
23281
23282 WCFLAGS=
23283 WLDFLAGS=
23284
23285 #
23286 # Finally we set appropriate distribution specific
23287 #  variables and defaults
23288 #
23289 # PFILES are platform specific files
23290 PFILES="platforms/Makefile"
23291 PSCMD="ps -e"
23292 WIN32=
23293 MACOSX=
23294 hostname=`uname -n | cut -d '.' -f 1`
23295 case "$DISTNAME" in
23296 aix)
23297         DISTVER=`uname -r`
23298         PSCMD="ps -e -o pid,comm"
23299         PFILES="${PFILES} \
23300            platforms/aix/Makefile"
23301         TAPEDRIVE="/dev/rmt0.1"
23302   ;;
23303 alpha)
23304         DISTVER=`uname -r`
23305         PTHREAD_LIB="-lpthread -lexc"
23306         if test "${CC}" = "gcc" ; then
23307            lld="lld"
23308            llu="llu"
23309         else
23310            lld="ld"
23311            llu="lu"
23312         fi
23313         TAPEDRIVE="/dev/nrmt0"
23314   ;;
23315 bsdi)
23316         DISTVER=`uname -a |awk '{print $3}'`
23317         TAPEDRIVE="/dev/nrmt0"
23318         PTHREAD_LIB="-pthread"
23319         CFLAGS="${CFLAGS} -pthread"
23320         PSCMD="ps -ax -o pid,command"
23321         lld="qd"
23322         llu="qu"
23323         PFILES="${PFILES} \
23324             platforms/bsdi/Makefile \
23325             platforms/bsdi/bacula-fd \
23326             platforms/bsdi/bacula-sd \
23327             platforms/bsdi/bacula-dir"
23328         largefile_support="yes"
23329   ;;
23330 cygwin)
23331         DISTVER=`uname -a |awk '{print $3}'`
23332         TAPEDRIVE="/dev/nrst0"
23333         WIN32=win32
23334         WCFLAGS="-mwindows"
23335         WLDFLAGS="-mwindows"
23336   ;;
23337 darwin)
23338         DISTVER=`uname -r`
23339         TAPEDRIVE="/dev/nst0"
23340         PSCMD="ps -e -o pid,command"
23341         MACOSX=macosx
23342         PFILES="${PFILES} \
23343            platforms/darwin/Makefile"
23344   ;;
23345 debian)
23346         DISTVER=`cat /etc/debian_version`
23347         TAPEDRIVE="/dev/nrst0"
23348         PSCMD="ps -e -o pid,command"
23349   ;;
23350 freebsd)
23351         DISTVER=`uname -a |awk '{print $3}'`
23352         VER=`echo $DISTVER | cut -c 1`
23353         if test x$VER = x4 ; then
23354            PTHREAD_LIB="-pthread"
23355            CFLAGS="${CFLAGS} -pthread"
23356         fi
23357         lld="qd"
23358         llu="qu"
23359         TAPEDRIVE="/dev/nrsa0"
23360         PSCMD="ps -ax -o pid,command"
23361         PFILES="${PFILES} \
23362             platforms/freebsd/Makefile \
23363             platforms/freebsd/bacula-fd \
23364             platforms/freebsd/bacula-sd \
23365             platforms/freebsd/bacula-dir"
23366         largefile_support="yes"
23367   ;;
23368 hpux)
23369         PSCMD="UNIX95=1 ps -e -o pid,comm"
23370         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23371         DISTVER=`uname -r`
23372         TAPEDRIVE="/dev/rmt/0hnb"
23373         PTHREAD_LIB="-lpthread"
23374         cat >>confdefs.h <<\_ACEOF
23375 #define _INCLUDE_LONGLONG 1
23376 _ACEOF
23377
23378   ;;
23379 irix)
23380         DISTVER=`uname -r`
23381         TAPEDRIVE="/dev/rmt/0cbn"
23382         PSCMD="ps -e -o pid,comm"
23383         PFILES="${PFILES} \
23384             platforms/irix/Makefile \
23385             platforms/irix/bacula-fd \
23386             platforms/irix/bacula-sd \
23387             platforms/irix/bacula-dir"
23388   ;;
23389 netbsd)
23390         DISTVER=`uname -a |awk '{print $3}'`
23391         lld="qd"
23392         llu="qu"
23393         TAPEDRIVE="/dev/nrst0"
23394         PSCMD="ps -ax -o pid,command"
23395         PTHREAD_LIB="-pthread"
23396         CFLAGS="${CFLAGS} -pthread"
23397   ;;
23398 openbsd)
23399         DISTVER=`uname -a |awk '{print $3}'`
23400         lld="qd"
23401         llu="qu"
23402         TAPEDRIVE="/dev/nrst0"
23403         PSCMD="ps -ax -o pid,command"
23404         PTHREAD_LIB="-pthread"
23405         CFLAGS="${CFLAGS} -pthread"
23406         PFILES="${PFILES} \
23407             platforms/openbsd/Makefile \
23408             platforms/openbsd/bacula-fd \
23409             platforms/openbsd/bacula-sd \
23410             platforms/openbsd/bacula-dir"
23411   ;;
23412 redhat)
23413         if test -f /etc/whitebox-release ; then
23414            f=/etc/whitebox-release
23415         else
23416            f=/etc/redhat-release
23417         fi
23418         if test `cat $f | grep release |\
23419                    cut -f 3 -d ' '`x = "Enterprise"x ; then
23420            DISTVER="Enterprise "`cat $f | grep release |\
23421                     cut -f 6 -d ' '`
23422         else
23423             DISTVER=`cat /etc/redhat-release | grep release |\
23424                      cut -f 5 -d ' '`
23425         fi
23426         TAPEDRIVE="/dev/nst0"
23427         PSCMD="ps -e -o pid,command"
23428         PFILES="${PFILES} \
23429             platforms/redhat/Makefile \
23430             platforms/redhat/bacula-fd \
23431             platforms/redhat/bacula-sd \
23432             platforms/redhat/bacula-dir \
23433             platforms/redhat/bacula.spec \
23434             "
23435         hostname=`hostname -s`
23436   ;;
23437 mandrake)
23438         DISTVER=`cat /etc/mandrake-release | grep release |\
23439            cut -f 5 -d ' '`
23440         TAPEDRIVE="/dev/nst0"
23441         PSCMD="ps -e -o pid,command"
23442         PFILES="${PFILES} \
23443             platforms/mandrake/Makefile \
23444             platforms/mandrake/bacula-fd \
23445             platforms/mandrake/bacula-sd \
23446             platforms/mandrake/bacula-dir \
23447             platforms/mandrake/bacula.spec \
23448             "
23449   ;;
23450 gentoo)
23451         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23452         TAPEDRIVE="/dev/nst0"
23453         PSCMD="ps -e -o pid,command"
23454         PFILES="${PFILES} \
23455             platforms/gentoo/Makefile \
23456          platforms/gentoo/bacula-init \
23457             platforms/gentoo/bacula-fd \
23458             platforms/gentoo/bacula-sd \
23459             platforms/gentoo/bacula-dir"
23460   ;;
23461 slackware)
23462         DISTVER=`cat /etc/slackware-version`
23463         TAPEDRIVE="/dev/nst0"
23464         PSCMD="ps -e -o pid,command"
23465         PFILES="${PFILES} \
23466             platforms/slackware/Makefile \
23467             platforms/slackware/rc.bacula-fd \
23468             platforms/slackware/rc.bacula-sd \
23469             platforms/slackware/rc.bacula-dir\
23470             platforms/slackware/functions.bacula"
23471   ;;
23472 solaris)
23473         DISTVER=`uname -r`
23474         TAPEDRIVE="/dev/rmt/0cbn"
23475         PSCMD="ps -e -o pid,comm"
23476         PFILES="${PFILES} \
23477             platforms/solaris/Makefile \
23478             platforms/solaris/bacula-fd \
23479             platforms/solaris/bacula-sd \
23480             platforms/solaris/bacula-dir"
23481         if test x$DISTVER = x5.6 ; then
23482             cat >>confdefs.h <<\_ACEOF
23483 #define HAVE_OLD_SOCKOPT 1
23484 _ACEOF
23485
23486         fi
23487         LIBS="$LIBS -lresolv"
23488   ;;
23489 suse)
23490         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23491             cut -f 3 -d ' '`
23492         TAPEDRIVE="/dev/nst0"
23493         PSCMD="ps -e -o pid,command"
23494         PFILES="${PFILES} \
23495             platforms/suse/Makefile \
23496             platforms/suse/bacula-fd \
23497             platforms/suse/bacula-sd \
23498             platforms/suse/bacula-dir \
23499             platforms/suse/bacula \
23500             platforms/suse/bacula.spec"
23501   ;;
23502 suse5)
23503         DISTNAME=suse
23504         DISTVER=5.x
23505         TAPEDRIVE="/dev/nst0"
23506         PSCMD="ps -e -o pid,command"
23507         PFILES="${PFILES} \
23508             platforms/suse/Makefile \
23509             platforms/suse/bacula-fd \
23510             platforms/suse/bacula-sd \
23511             platforms/suse/bacula-dir"
23512   ;;
23513 unknown)
23514         DISTVER=unknown
23515         TAPEDRIVE="/dev/nst0"
23516   ;;
23517 *)
23518   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23519   ;;
23520 esac
23521
23522
23523
23524 LIBS="$PTHREAD_LIB $LIBS"
23525
23526 cat >>confdefs.h <<_ACEOF
23527 #define lld "$lld"
23528 _ACEOF
23529
23530 cat >>confdefs.h <<_ACEOF
23531 #define llu "$llu"
23532 _ACEOF
23533
23534
23535
23536
23537
23538
23539
23540
23541 MCOMMON=./autoconf/Make.common
23542
23543
23544 if test "x${subsysdir}" = "x${sbindir}" ; then
23545    echo " "
23546    echo " "
23547    echo "You have set both --sbindir and --with-subsys-dir"
23548    echo "  equal to: ${subsysdir} "
23549    echo "This is not permitted. Please reconfigure."
23550    echo " "
23551    echo "Aborting configuration ..."
23552    echo " "
23553    echo " "
23554    exit 1
23555 fi
23556
23557                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
23558           ac_config_commands="$ac_config_commands default"
23559 cat >confcache <<\_ACEOF
23560 # This file is a shell script that caches the results of configure
23561 # tests run on this system so they can be shared between configure
23562 # scripts and configure runs, see configure's option --config-cache.
23563 # It is not useful on other systems.  If it contains results you don't
23564 # want to keep, you may remove or edit it.
23565 #
23566 # config.status only pays attention to the cache file if you give it
23567 # the --recheck option to rerun configure.
23568 #
23569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23571 # following values.
23572
23573 _ACEOF
23574
23575 # The following way of writing the cache mishandles newlines in values,
23576 # but we know of no workaround that is simple, portable, and efficient.
23577 # So, don't put newlines in cache variables' values.
23578 # Ultrix sh set writes to stderr and can't be redirected directly,
23579 # and sets the high bit in the cache file unless we assign to the vars.
23580 {
23581   (set) 2>&1 |
23582     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23583     *ac_space=\ *)
23584       # `set' does not quote correctly, so add quotes (double-quote
23585       # substitution turns \\\\ into \\, and sed turns \\ into \).
23586       sed -n \
23587         "s/'/'\\\\''/g;
23588           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23589       ;;
23590     *)
23591       # `set' quotes correctly as required by POSIX, so do not add quotes.
23592       sed -n \
23593         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23594       ;;
23595     esac;
23596 } |
23597   sed '
23598      t clear
23599      : clear
23600      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23601      t end
23602      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23603      : end' >>confcache
23604 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23605   if test -w $cache_file; then
23606     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23607     cat confcache >$cache_file
23608   else
23609     echo "not updating unwritable cache $cache_file"
23610   fi
23611 fi
23612 rm -f confcache
23613
23614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23615 # Let make expand exec_prefix.
23616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23617
23618 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23619 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23620 # trailing colons and then remove the whole line if VPATH becomes empty
23621 # (actually we leave an empty line to preserve line numbers).
23622 if test "x$srcdir" = x.; then
23623   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23624 s/:*\$(srcdir):*/:/;
23625 s/:*\${srcdir}:*/:/;
23626 s/:*@srcdir@:*/:/;
23627 s/^\([^=]*=[     ]*\):*/\1/;
23628 s/:*$//;
23629 s/^[^=]*=[       ]*$//;
23630 }'
23631 fi
23632
23633 DEFS=-DHAVE_CONFIG_H
23634
23635 ac_libobjs=
23636 ac_ltlibobjs=
23637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23638   # 1. Remove the extension, and $U if already installed.
23639   ac_i=`echo "$ac_i" |
23640          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23641   # 2. Add them.
23642   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23643   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23644 done
23645 LIBOBJS=$ac_libobjs
23646
23647 LTLIBOBJS=$ac_ltlibobjs
23648
23649
23650
23651 : ${CONFIG_STATUS=./config.status}
23652 ac_clean_files_save=$ac_clean_files
23653 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23654 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23655 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23656 cat >$CONFIG_STATUS <<_ACEOF
23657 #! $SHELL
23658 # Generated by $as_me.
23659 # Run this file to recreate the current configuration.
23660 # Compiler output produced by configure, useful for debugging
23661 # configure, is in config.log if it exists.
23662
23663 debug=false
23664 ac_cs_recheck=false
23665 ac_cs_silent=false
23666 SHELL=\${CONFIG_SHELL-$SHELL}
23667 _ACEOF
23668
23669 cat >>$CONFIG_STATUS <<\_ACEOF
23670 ## --------------------- ##
23671 ## M4sh Initialization.  ##
23672 ## --------------------- ##
23673
23674 # Be Bourne compatible
23675 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23676   emulate sh
23677   NULLCMD=:
23678   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23679   # is contrary to our usage.  Disable this feature.
23680   alias -g '${1+"$@"}'='"$@"'
23681 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23682   set -o posix
23683 fi
23684 DUALCASE=1; export DUALCASE # for MKS sh
23685
23686 # Support unset when possible.
23687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23688   as_unset=unset
23689 else
23690   as_unset=false
23691 fi
23692
23693
23694 # Work around bugs in pre-3.0 UWIN ksh.
23695 $as_unset ENV MAIL MAILPATH
23696 PS1='$ '
23697 PS2='> '
23698 PS4='+ '
23699
23700 # NLS nuisances.
23701 for as_var in \
23702   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23703   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23704   LC_TELEPHONE LC_TIME
23705 do
23706   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23707     eval $as_var=C; export $as_var
23708   else
23709     $as_unset $as_var
23710   fi
23711 done
23712
23713 # Required to use basename.
23714 if expr a : '\(a\)' >/dev/null 2>&1; then
23715   as_expr=expr
23716 else
23717   as_expr=false
23718 fi
23719
23720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23721   as_basename=basename
23722 else
23723   as_basename=false
23724 fi
23725
23726
23727 # Name of the executable.
23728 as_me=`$as_basename "$0" ||
23729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23730          X"$0" : 'X\(//\)$' \| \
23731          X"$0" : 'X\(/\)$' \| \
23732          .     : '\(.\)' 2>/dev/null ||
23733 echo X/"$0" |
23734     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23735           /^X\/\(\/\/\)$/{ s//\1/; q; }
23736           /^X\/\(\/\).*/{ s//\1/; q; }
23737           s/.*/./; q'`
23738
23739
23740 # PATH needs CR, and LINENO needs CR and PATH.
23741 # Avoid depending upon Character Ranges.
23742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23745 as_cr_digits='0123456789'
23746 as_cr_alnum=$as_cr_Letters$as_cr_digits
23747
23748 # The user is always right.
23749 if test "${PATH_SEPARATOR+set}" != set; then
23750   echo "#! /bin/sh" >conf$$.sh
23751   echo  "exit 0"   >>conf$$.sh
23752   chmod +x conf$$.sh
23753   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23754     PATH_SEPARATOR=';'
23755   else
23756     PATH_SEPARATOR=:
23757   fi
23758   rm -f conf$$.sh
23759 fi
23760
23761
23762   as_lineno_1=$LINENO
23763   as_lineno_2=$LINENO
23764   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23765   test "x$as_lineno_1" != "x$as_lineno_2" &&
23766   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23767   # Find who we are.  Look in the path if we contain no path at all
23768   # relative or not.
23769   case $0 in
23770     *[\\/]* ) as_myself=$0 ;;
23771     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23772 for as_dir in $PATH
23773 do
23774   IFS=$as_save_IFS
23775   test -z "$as_dir" && as_dir=.
23776   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23777 done
23778
23779        ;;
23780   esac
23781   # We did not find ourselves, most probably we were run as `sh COMMAND'
23782   # in which case we are not to be found in the path.
23783   if test "x$as_myself" = x; then
23784     as_myself=$0
23785   fi
23786   if test ! -f "$as_myself"; then
23787     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23789    { (exit 1); exit 1; }; }
23790   fi
23791   case $CONFIG_SHELL in
23792   '')
23793     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23795 do
23796   IFS=$as_save_IFS
23797   test -z "$as_dir" && as_dir=.
23798   for as_base in sh bash ksh sh5; do
23799          case $as_dir in
23800          /*)
23801            if ("$as_dir/$as_base" -c '
23802   as_lineno_1=$LINENO
23803   as_lineno_2=$LINENO
23804   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23805   test "x$as_lineno_1" != "x$as_lineno_2" &&
23806   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23807              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23808              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23809              CONFIG_SHELL=$as_dir/$as_base
23810              export CONFIG_SHELL
23811              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23812            fi;;
23813          esac
23814        done
23815 done
23816 ;;
23817   esac
23818
23819   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23820   # uniformly replaced by the line number.  The first 'sed' inserts a
23821   # line-number line before each line; the second 'sed' does the real
23822   # work.  The second script uses 'N' to pair each line-number line
23823   # with the numbered line, and appends trailing '-' during
23824   # substitution so that $LINENO is not a special case at line end.
23825   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23826   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23827   sed '=' <$as_myself |
23828     sed '
23829       N
23830       s,$,-,
23831       : loop
23832       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23833       t loop
23834       s,-$,,
23835       s,^['$as_cr_digits']*\n,,
23836     ' >$as_me.lineno &&
23837   chmod +x $as_me.lineno ||
23838     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23840    { (exit 1); exit 1; }; }
23841
23842   # Don't try to exec as it changes $[0], causing all sort of problems
23843   # (the dirname of $[0] is not the place where we might find the
23844   # original and so on.  Autoconf is especially sensible to this).
23845   . ./$as_me.lineno
23846   # Exit status is that of the last command.
23847   exit
23848 }
23849
23850
23851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23852   *c*,-n*) ECHO_N= ECHO_C='
23853 ' ECHO_T='      ' ;;
23854   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23855   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23856 esac
23857
23858 if expr a : '\(a\)' >/dev/null 2>&1; then
23859   as_expr=expr
23860 else
23861   as_expr=false
23862 fi
23863
23864 rm -f conf$$ conf$$.exe conf$$.file
23865 echo >conf$$.file
23866 if ln -s conf$$.file conf$$ 2>/dev/null; then
23867   # We could just check for DJGPP; but this test a) works b) is more generic
23868   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23869   if test -f conf$$.exe; then
23870     # Don't use ln at all; we don't have any links
23871     as_ln_s='cp -p'
23872   else
23873     as_ln_s='ln -s'
23874   fi
23875 elif ln conf$$.file conf$$ 2>/dev/null; then
23876   as_ln_s=ln
23877 else
23878   as_ln_s='cp -p'
23879 fi
23880 rm -f conf$$ conf$$.exe conf$$.file
23881
23882 if mkdir -p . 2>/dev/null; then
23883   as_mkdir_p=:
23884 else
23885   test -d ./-p && rmdir ./-p
23886   as_mkdir_p=false
23887 fi
23888
23889 as_executable_p="test -f"
23890
23891 # Sed expression to map a string onto a valid CPP name.
23892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23893
23894 # Sed expression to map a string onto a valid variable name.
23895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23896
23897
23898 # IFS
23899 # We need space, tab and new line, in precisely that order.
23900 as_nl='
23901 '
23902 IFS="   $as_nl"
23903
23904 # CDPATH.
23905 $as_unset CDPATH
23906
23907 exec 6>&1
23908
23909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23910 # report actual input values of CONFIG_FILES etc. instead of their
23911 # values after options handling.  Logging --version etc. is OK.
23912 exec 5>>config.log
23913 {
23914   echo
23915   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23916 ## Running $as_me. ##
23917 _ASBOX
23918 } >&5
23919 cat >&5 <<_CSEOF
23920
23921 This file was extended by $as_me, which was
23922 generated by GNU Autoconf 2.59.  Invocation command line was
23923
23924   CONFIG_FILES    = $CONFIG_FILES
23925   CONFIG_HEADERS  = $CONFIG_HEADERS
23926   CONFIG_LINKS    = $CONFIG_LINKS
23927   CONFIG_COMMANDS = $CONFIG_COMMANDS
23928   $ $0 $@
23929
23930 _CSEOF
23931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23932 echo >&5
23933 _ACEOF
23934
23935 # Files that config.status was made for.
23936 if test -n "$ac_config_files"; then
23937   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23938 fi
23939
23940 if test -n "$ac_config_headers"; then
23941   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23942 fi
23943
23944 if test -n "$ac_config_links"; then
23945   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23946 fi
23947
23948 if test -n "$ac_config_commands"; then
23949   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23950 fi
23951
23952 cat >>$CONFIG_STATUS <<\_ACEOF
23953
23954 ac_cs_usage="\
23955 \`$as_me' instantiates files from templates according to the
23956 current configuration.
23957
23958 Usage: $0 [OPTIONS] [FILE]...
23959
23960   -h, --help       print this help, then exit
23961   -V, --version    print version number, then exit
23962   -q, --quiet      do not print progress messages
23963   -d, --debug      don't remove temporary files
23964       --recheck    update $as_me by reconfiguring in the same conditions
23965   --file=FILE[:TEMPLATE]
23966                    instantiate the configuration file FILE
23967   --header=FILE[:TEMPLATE]
23968                    instantiate the configuration header FILE
23969
23970 Configuration files:
23971 $config_files
23972
23973 Configuration headers:
23974 $config_headers
23975
23976 Configuration commands:
23977 $config_commands
23978
23979 Report bugs to <bug-autoconf@gnu.org>."
23980 _ACEOF
23981
23982 cat >>$CONFIG_STATUS <<_ACEOF
23983 ac_cs_version="\\
23984 config.status
23985 configured by $0, generated by GNU Autoconf 2.59,
23986   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23987
23988 Copyright (C) 2003 Free Software Foundation, Inc.
23989 This config.status script is free software; the Free Software Foundation
23990 gives unlimited permission to copy, distribute and modify it."
23991 srcdir=$srcdir
23992 INSTALL="$INSTALL"
23993 _ACEOF
23994
23995 cat >>$CONFIG_STATUS <<\_ACEOF
23996 # If no file are specified by the user, then we need to provide default
23997 # value.  By we need to know if files were specified by the user.
23998 ac_need_defaults=:
23999 while test $# != 0
24000 do
24001   case $1 in
24002   --*=*)
24003     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24004     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24005     ac_shift=:
24006     ;;
24007   -*)
24008     ac_option=$1
24009     ac_optarg=$2
24010     ac_shift=shift
24011     ;;
24012   *) # This is not an option, so the user has probably given explicit
24013      # arguments.
24014      ac_option=$1
24015      ac_need_defaults=false;;
24016   esac
24017
24018   case $ac_option in
24019   # Handling of the options.
24020 _ACEOF
24021 cat >>$CONFIG_STATUS <<\_ACEOF
24022   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24023     ac_cs_recheck=: ;;
24024   --version | --vers* | -V )
24025     echo "$ac_cs_version"; exit 0 ;;
24026   --he | --h)
24027     # Conflict between --help and --header
24028     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24029 Try \`$0 --help' for more information." >&5
24030 echo "$as_me: error: ambiguous option: $1
24031 Try \`$0 --help' for more information." >&2;}
24032    { (exit 1); exit 1; }; };;
24033   --help | --hel | -h )
24034     echo "$ac_cs_usage"; exit 0 ;;
24035   --debug | --d* | -d )
24036     debug=: ;;
24037   --file | --fil | --fi | --f )
24038     $ac_shift
24039     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24040     ac_need_defaults=false;;
24041   --header | --heade | --head | --hea )
24042     $ac_shift
24043     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24044     ac_need_defaults=false;;
24045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24046   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24047     ac_cs_silent=: ;;
24048
24049   # This is an error.
24050   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24051 Try \`$0 --help' for more information." >&5
24052 echo "$as_me: error: unrecognized option: $1
24053 Try \`$0 --help' for more information." >&2;}
24054    { (exit 1); exit 1; }; } ;;
24055
24056   *) ac_config_targets="$ac_config_targets $1" ;;
24057
24058   esac
24059   shift
24060 done
24061
24062 ac_configure_extra_args=
24063
24064 if $ac_cs_silent; then
24065   exec 6>/dev/null
24066   ac_configure_extra_args="$ac_configure_extra_args --silent"
24067 fi
24068
24069 _ACEOF
24070 cat >>$CONFIG_STATUS <<_ACEOF
24071 if \$ac_cs_recheck; then
24072   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24073   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24074 fi
24075
24076 _ACEOF
24077
24078 cat >>$CONFIG_STATUS <<_ACEOF
24079 #
24080 # INIT-COMMANDS section.
24081 #
24082
24083 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24084     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24085     # from automake.
24086     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24087     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24088     LINGUAS="${LINGUAS-%UNSET%}"
24089
24090
24091 _ACEOF
24092
24093
24094
24095 cat >>$CONFIG_STATUS <<\_ACEOF
24096 for ac_config_target in $ac_config_targets
24097 do
24098   case "$ac_config_target" in
24099   # Handling of arguments.
24100   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24101   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24102   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24103   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24104   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24105   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24106   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24107   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24108   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24109   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24110   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24111   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24112   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24113   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24114   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24115   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24116   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24117   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24118   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24119   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24120   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24121   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24122   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24123   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24124   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24125   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24126   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24127   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24128   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24129   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24130   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24131   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24132   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24133   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24134   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24135   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24136   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24137   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24138   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24139   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24140   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24141   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24142   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24143   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24144   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24145   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24146   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24147   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24148   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24149   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24150   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24151   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24152   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24153   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24154   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24155   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24156   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24157   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24158   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24159   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24160   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24161   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24162   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24163   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24164   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24165   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24166   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24167   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24168   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24169   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24170   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24171   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24172   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24173   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24174   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24175   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24176   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24177   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24178   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24179   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24180   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24181   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24182   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24183   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24184   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24185   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24186   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24187   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24188   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24189   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24190   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24191   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24192   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24193   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24194   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24195   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24196   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24197   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24198   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24200    { (exit 1); exit 1; }; };;
24201   esac
24202 done
24203
24204 # If the user did not use the arguments to specify the items to instantiate,
24205 # then the envvar interface is used.  Set only those that are not.
24206 # We use the long form for the default assignment because of an extremely
24207 # bizarre bug on SunOS 4.1.3.
24208 if $ac_need_defaults; then
24209   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24210   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24211   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24212 fi
24213
24214 # Have a temporary directory for convenience.  Make it in the build tree
24215 # simply because there is no reason to put it here, and in addition,
24216 # creating and moving files from /tmp can sometimes cause problems.
24217 # Create a temporary directory, and hook for its removal unless debugging.
24218 $debug ||
24219 {
24220   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24221   trap '{ (exit 1); exit 1; }' 1 2 13 15
24222 }
24223
24224 # Create a (secure) tmp directory for tmp files.
24225
24226 {
24227   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24228   test -n "$tmp" && test -d "$tmp"
24229 }  ||
24230 {
24231   tmp=./confstat$$-$RANDOM
24232   (umask 077 && mkdir $tmp)
24233 } ||
24234 {
24235    echo "$me: cannot create a temporary directory in ." >&2
24236    { (exit 1); exit 1; }
24237 }
24238
24239 _ACEOF
24240
24241 cat >>$CONFIG_STATUS <<_ACEOF
24242
24243 #
24244 # CONFIG_FILES section.
24245 #
24246
24247 # No need to generate the scripts if there are no CONFIG_FILES.
24248 # This happens for instance when ./config.status config.h
24249 if test -n "\$CONFIG_FILES"; then
24250   # Protect against being on the right side of a sed subst in config.status.
24251   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24252    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24253 s,@SHELL@,$SHELL,;t t
24254 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24255 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24256 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24257 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24258 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24259 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24260 s,@exec_prefix@,$exec_prefix,;t t
24261 s,@prefix@,$prefix,;t t
24262 s,@program_transform_name@,$program_transform_name,;t t
24263 s,@bindir@,$bindir,;t t
24264 s,@sbindir@,$sbindir,;t t
24265 s,@libexecdir@,$libexecdir,;t t
24266 s,@datadir@,$datadir,;t t
24267 s,@sysconfdir@,$sysconfdir,;t t
24268 s,@sharedstatedir@,$sharedstatedir,;t t
24269 s,@localstatedir@,$localstatedir,;t t
24270 s,@libdir@,$libdir,;t t
24271 s,@includedir@,$includedir,;t t
24272 s,@oldincludedir@,$oldincludedir,;t t
24273 s,@infodir@,$infodir,;t t
24274 s,@mandir@,$mandir,;t t
24275 s,@build_alias@,$build_alias,;t t
24276 s,@host_alias@,$host_alias,;t t
24277 s,@target_alias@,$target_alias,;t t
24278 s,@DEFS@,$DEFS,;t t
24279 s,@ECHO_C@,$ECHO_C,;t t
24280 s,@ECHO_N@,$ECHO_N,;t t
24281 s,@ECHO_T@,$ECHO_T,;t t
24282 s,@LIBS@,$LIBS,;t t
24283 s,@BUILD_DIR@,$BUILD_DIR,;t t
24284 s,@TRUEPRG@,$TRUEPRG,;t t
24285 s,@FALSEPRG@,$FALSEPRG,;t t
24286 s,@VERSION@,$VERSION,;t t
24287 s,@DATE@,$DATE,;t t
24288 s,@LSMDATE@,$LSMDATE,;t t
24289 s,@CC@,$CC,;t t
24290 s,@CFLAGS@,$CFLAGS,;t t
24291 s,@LDFLAGS@,$LDFLAGS,;t t
24292 s,@CPPFLAGS@,$CPPFLAGS,;t t
24293 s,@ac_ct_CC@,$ac_ct_CC,;t t
24294 s,@EXEEXT@,$EXEEXT,;t t
24295 s,@OBJEXT@,$OBJEXT,;t t
24296 s,@CXX@,$CXX,;t t
24297 s,@CXXFLAGS@,$CXXFLAGS,;t t
24298 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24299 s,@CPP@,$CPP,;t t
24300 s,@EGREP@,$EGREP,;t t
24301 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24302 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24303 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24304 s,@RANLIB@,$RANLIB,;t t
24305 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24306 s,@MV@,$MV,;t t
24307 s,@RM@,$RM,;t t
24308 s,@CP@,$CP,;t t
24309 s,@SED@,$SED,;t t
24310 s,@ECHO@,$ECHO,;t t
24311 s,@CMP@,$CMP,;t t
24312 s,@TBL@,$TBL,;t t
24313 s,@AR@,$AR,;t t
24314 s,@OPENSSL@,$OPENSSL,;t t
24315 s,@MTX@,$MTX,;t t
24316 s,@DF@,$DF,;t t
24317 s,@MKISOFS@,$MKISOFS,;t t
24318 s,@PYTHON@,$PYTHON,;t t
24319 s,@GROWISOFS@,$GROWISOFS,;t t
24320 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24321 s,@PKGCONFIG@,$PKGCONFIG,;t t
24322 s,@WXCONFIG@,$WXCONFIG,;t t
24323 s,@WXFLAGS@,$WXFLAGS,;t t
24324 s,@CDRECORD@,$CDRECORD,;t t
24325 s,@PIDOF@,$PIDOF,;t t
24326 s,@AWK@,$AWK,;t t
24327 s,@ARFLAGS@,$ARFLAGS,;t t
24328 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24329 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24330 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24331 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24332 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24333 s,@build@,$build,;t t
24334 s,@build_cpu@,$build_cpu,;t t
24335 s,@build_vendor@,$build_vendor,;t t
24336 s,@build_os@,$build_os,;t t
24337 s,@host@,$host,;t t
24338 s,@host_cpu@,$host_cpu,;t t
24339 s,@host_vendor@,$host_vendor,;t t
24340 s,@host_os@,$host_os,;t t
24341 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24342 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24343 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24344 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24345 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24346 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24347 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24348 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24349 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24350 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24351 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24352 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24353 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24354 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24355 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24356 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24357 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24358 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24359 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24360 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24361 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24362 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24363 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24364 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24365 s,@SET_MAKE@,$SET_MAKE,;t t
24366 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24367 s,@USE_NLS@,$USE_NLS,;t t
24368 s,@MSGFMT@,$MSGFMT,;t t
24369 s,@GMSGFMT@,$GMSGFMT,;t t
24370 s,@XGETTEXT@,$XGETTEXT,;t t
24371 s,@MSGMERGE@,$MSGMERGE,;t t
24372 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24373 s,@LIBICONV@,$LIBICONV,;t t
24374 s,@LTLIBICONV@,$LTLIBICONV,;t t
24375 s,@INTLLIBS@,$INTLLIBS,;t t
24376 s,@LIBINTL@,$LIBINTL,;t t
24377 s,@LTLIBINTL@,$LTLIBINTL,;t t
24378 s,@POSUB@,$POSUB,;t t
24379 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24380 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24381 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24382 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24383 s,@GNOME_DIR@,$GNOME_DIR,;t t
24384 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24385 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24386 s,@WX_DIR@,$WX_DIR,;t t
24387 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24388 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24389 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24390 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24391 s,@STATIC_FD@,$STATIC_FD,;t t
24392 s,@STATIC_SD@,$STATIC_SD,;t t
24393 s,@STATIC_DIR@,$STATIC_DIR,;t t
24394 s,@STATIC_CONS@,$STATIC_CONS,;t t
24395 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24396 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24397 s,@ALL_DIRS@,$ALL_DIRS,;t t
24398 s,@CONS_INC@,$CONS_INC,;t t
24399 s,@CONS_OBJ@,$CONS_OBJ,;t t
24400 s,@CONS_SRC@,$CONS_SRC,;t t
24401 s,@CONS_LIBS@,$CONS_LIBS,;t t
24402 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24403 s,@READLINE_SRC@,$READLINE_SRC,;t t
24404 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24405 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24406 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24407 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24408 s,@working_dir@,$working_dir,;t t
24409 s,@scriptdir@,$scriptdir,;t t
24410 s,@dump_email@,$dump_email,;t t
24411 s,@job_email@,$job_email,;t t
24412 s,@smtp_host@,$smtp_host,;t t
24413 s,@piddir@,$piddir,;t t
24414 s,@subsysdir@,$subsysdir,;t t
24415 s,@baseport@,$baseport,;t t
24416 s,@dir_port@,$dir_port,;t t
24417 s,@fd_port@,$fd_port,;t t
24418 s,@sd_port@,$sd_port,;t t
24419 s,@dir_password@,$dir_password,;t t
24420 s,@fd_password@,$fd_password,;t t
24421 s,@sd_password@,$sd_password,;t t
24422 s,@mon_dir_password@,$mon_dir_password,;t t
24423 s,@mon_fd_password@,$mon_fd_password,;t t
24424 s,@mon_sd_password@,$mon_sd_password,;t t
24425 s,@dir_user@,$dir_user,;t t
24426 s,@dir_group@,$dir_group,;t t
24427 s,@sd_user@,$sd_user,;t t
24428 s,@sd_group@,$sd_group,;t t
24429 s,@fd_user@,$fd_user,;t t
24430 s,@fd_group@,$fd_group,;t t
24431 s,@SBINPERM@,$SBINPERM,;t t
24432 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24433 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24434 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24435 s,@cats@,$cats,;t t
24436 s,@DB_NAME@,$DB_NAME,;t t
24437 s,@GETCONF@,$GETCONF,;t t
24438 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24439 s,@X_CFLAGS@,$X_CFLAGS,;t t
24440 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24441 s,@X_LIBS@,$X_LIBS,;t t
24442 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24443 s,@LIBOBJS@,$LIBOBJS,;t t
24444 s,@ALLOCA@,$ALLOCA,;t t
24445 s,@FDLIBS@,$FDLIBS,;t t
24446 s,@DEBUG@,$DEBUG,;t t
24447 s,@DINCLUDE@,$DINCLUDE,;t t
24448 s,@DLIB@,$DLIB,;t t
24449 s,@DB_LIBS@,$DB_LIBS,;t t
24450 s,@WCFLAGS@,$WCFLAGS,;t t
24451 s,@WLDFLAGS@,$WLDFLAGS,;t t
24452 s,@OBJLIST@,$OBJLIST,;t t
24453 s,@hostname@,$hostname,;t t
24454 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24455 s,@PSCMD@,$PSCMD,;t t
24456 s,@WIN32@,$WIN32,;t t
24457 s,@MACOSX@,$MACOSX,;t t
24458 s,@DISTNAME@,$DISTNAME,;t t
24459 s,@DISTVER@,$DISTVER,;t t
24460 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24461 /@MCOMMON@/r $MCOMMON
24462 s,@MCOMMON@,,;t t
24463 CEOF
24464
24465 _ACEOF
24466
24467   cat >>$CONFIG_STATUS <<\_ACEOF
24468   # Split the substitutions into bite-sized pieces for seds with
24469   # small command number limits, like on Digital OSF/1 and HP-UX.
24470   ac_max_sed_lines=48
24471   ac_sed_frag=1 # Number of current file.
24472   ac_beg=1 # First line for current file.
24473   ac_end=$ac_max_sed_lines # Line after last line for current file.
24474   ac_more_lines=:
24475   ac_sed_cmds=
24476   while $ac_more_lines; do
24477     if test $ac_beg -gt 1; then
24478       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24479     else
24480       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24481     fi
24482     if test ! -s $tmp/subs.frag; then
24483       ac_more_lines=false
24484     else
24485       # The purpose of the label and of the branching condition is to
24486       # speed up the sed processing (if there are no `@' at all, there
24487       # is no need to browse any of the substitutions).
24488       # These are the two extra sed commands mentioned above.
24489       (echo ':t
24490   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24491       if test -z "$ac_sed_cmds"; then
24492         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24493       else
24494         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24495       fi
24496       ac_sed_frag=`expr $ac_sed_frag + 1`
24497       ac_beg=$ac_end
24498       ac_end=`expr $ac_end + $ac_max_sed_lines`
24499     fi
24500   done
24501   if test -z "$ac_sed_cmds"; then
24502     ac_sed_cmds=cat
24503   fi
24504 fi # test -n "$CONFIG_FILES"
24505
24506 _ACEOF
24507 cat >>$CONFIG_STATUS <<\_ACEOF
24508 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24509   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24510   case $ac_file in
24511   - | *:- | *:-:* ) # input from stdin
24512         cat >$tmp/stdin
24513         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24514         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24515   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24516         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24517   * )   ac_file_in=$ac_file.in ;;
24518   esac
24519
24520   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24521   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24523          X"$ac_file" : 'X\(//\)[^/]' \| \
24524          X"$ac_file" : 'X\(//\)$' \| \
24525          X"$ac_file" : 'X\(/\)' \| \
24526          .     : '\(.\)' 2>/dev/null ||
24527 echo X"$ac_file" |
24528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24529           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24530           /^X\(\/\/\)$/{ s//\1/; q; }
24531           /^X\(\/\).*/{ s//\1/; q; }
24532           s/.*/./; q'`
24533   { if $as_mkdir_p; then
24534     mkdir -p "$ac_dir"
24535   else
24536     as_dir="$ac_dir"
24537     as_dirs=
24538     while test ! -d "$as_dir"; do
24539       as_dirs="$as_dir $as_dirs"
24540       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24542          X"$as_dir" : 'X\(//\)[^/]' \| \
24543          X"$as_dir" : 'X\(//\)$' \| \
24544          X"$as_dir" : 'X\(/\)' \| \
24545          .     : '\(.\)' 2>/dev/null ||
24546 echo X"$as_dir" |
24547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24548           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24549           /^X\(\/\/\)$/{ s//\1/; q; }
24550           /^X\(\/\).*/{ s//\1/; q; }
24551           s/.*/./; q'`
24552     done
24553     test ! -n "$as_dirs" || mkdir $as_dirs
24554   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24555 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24556    { (exit 1); exit 1; }; }; }
24557
24558   ac_builddir=.
24559
24560 if test "$ac_dir" != .; then
24561   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24562   # A "../" for each directory in $ac_dir_suffix.
24563   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24564 else
24565   ac_dir_suffix= ac_top_builddir=
24566 fi
24567
24568 case $srcdir in
24569   .)  # No --srcdir option.  We are building in place.
24570     ac_srcdir=.
24571     if test -z "$ac_top_builddir"; then
24572        ac_top_srcdir=.
24573     else
24574        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24575     fi ;;
24576   [\\/]* | ?:[\\/]* )  # Absolute path.
24577     ac_srcdir=$srcdir$ac_dir_suffix;
24578     ac_top_srcdir=$srcdir ;;
24579   *) # Relative path.
24580     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24581     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24582 esac
24583
24584 # Do not use `cd foo && pwd` to compute absolute paths, because
24585 # the directories may not exist.
24586 case `pwd` in
24587 .) ac_abs_builddir="$ac_dir";;
24588 *)
24589   case "$ac_dir" in
24590   .) ac_abs_builddir=`pwd`;;
24591   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24592   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24593   esac;;
24594 esac
24595 case $ac_abs_builddir in
24596 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24597 *)
24598   case ${ac_top_builddir}. in
24599   .) ac_abs_top_builddir=$ac_abs_builddir;;
24600   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24601   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24602   esac;;
24603 esac
24604 case $ac_abs_builddir in
24605 .) ac_abs_srcdir=$ac_srcdir;;
24606 *)
24607   case $ac_srcdir in
24608   .) ac_abs_srcdir=$ac_abs_builddir;;
24609   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24610   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24611   esac;;
24612 esac
24613 case $ac_abs_builddir in
24614 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24615 *)
24616   case $ac_top_srcdir in
24617   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24618   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24619   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24620   esac;;
24621 esac
24622
24623
24624   case $INSTALL in
24625   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24626   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24627   esac
24628
24629   if test x"$ac_file" != x-; then
24630     { echo "$as_me:$LINENO: creating $ac_file" >&5
24631 echo "$as_me: creating $ac_file" >&6;}
24632     rm -f "$ac_file"
24633   fi
24634   # Let's still pretend it is `configure' which instantiates (i.e., don't
24635   # use $as_me), people would be surprised to read:
24636   #    /* config.h.  Generated by config.status.  */
24637   if test x"$ac_file" = x-; then
24638     configure_input=
24639   else
24640     configure_input="$ac_file.  "
24641   fi
24642   configure_input=$configure_input"Generated from `echo $ac_file_in |
24643                                      sed 's,.*/,,'` by configure."
24644
24645   # First look for the input files in the build tree, otherwise in the
24646   # src tree.
24647   ac_file_inputs=`IFS=:
24648     for f in $ac_file_in; do
24649       case $f in
24650       -) echo $tmp/stdin ;;
24651       [\\/$]*)
24652          # Absolute (can't be DOS-style, as IFS=:)
24653          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24654 echo "$as_me: error: cannot find input file: $f" >&2;}
24655    { (exit 1); exit 1; }; }
24656          echo "$f";;
24657       *) # Relative
24658          if test -f "$f"; then
24659            # Build tree
24660            echo "$f"
24661          elif test -f "$srcdir/$f"; then
24662            # Source tree
24663            echo "$srcdir/$f"
24664          else
24665            # /dev/null tree
24666            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24667 echo "$as_me: error: cannot find input file: $f" >&2;}
24668    { (exit 1); exit 1; }; }
24669          fi;;
24670       esac
24671     done` || { (exit 1); exit 1; }
24672 _ACEOF
24673 cat >>$CONFIG_STATUS <<_ACEOF
24674   sed "$ac_vpsub
24675 $extrasub
24676 _ACEOF
24677 cat >>$CONFIG_STATUS <<\_ACEOF
24678 :t
24679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24680 s,@configure_input@,$configure_input,;t t
24681 s,@srcdir@,$ac_srcdir,;t t
24682 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24683 s,@top_srcdir@,$ac_top_srcdir,;t t
24684 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24685 s,@builddir@,$ac_builddir,;t t
24686 s,@abs_builddir@,$ac_abs_builddir,;t t
24687 s,@top_builddir@,$ac_top_builddir,;t t
24688 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24689 s,@INSTALL@,$ac_INSTALL,;t t
24690 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24691   rm -f $tmp/stdin
24692   if test x"$ac_file" != x-; then
24693     mv $tmp/out $ac_file
24694   else
24695     cat $tmp/out
24696     rm -f $tmp/out
24697   fi
24698
24699 done
24700 _ACEOF
24701 cat >>$CONFIG_STATUS <<\_ACEOF
24702
24703 #
24704 # CONFIG_HEADER section.
24705 #
24706
24707 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24708 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24709 #
24710 # ac_d sets the value in "#define NAME VALUE" lines.
24711 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24712 ac_dB='[         ].*$,\1#\2'
24713 ac_dC=' '
24714 ac_dD=',;t'
24715 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24716 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24717 ac_uB='$,\1#\2define\3'
24718 ac_uC=' '
24719 ac_uD=',;t'
24720
24721 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24722   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24723   case $ac_file in
24724   - | *:- | *:-:* ) # input from stdin
24725         cat >$tmp/stdin
24726         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24727         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24728   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24729         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24730   * )   ac_file_in=$ac_file.in ;;
24731   esac
24732
24733   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24734 echo "$as_me: creating $ac_file" >&6;}
24735
24736   # First look for the input files in the build tree, otherwise in the
24737   # src tree.
24738   ac_file_inputs=`IFS=:
24739     for f in $ac_file_in; do
24740       case $f in
24741       -) echo $tmp/stdin ;;
24742       [\\/$]*)
24743          # Absolute (can't be DOS-style, as IFS=:)
24744          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24745 echo "$as_me: error: cannot find input file: $f" >&2;}
24746    { (exit 1); exit 1; }; }
24747          # Do quote $f, to prevent DOS paths from being IFS'd.
24748          echo "$f";;
24749       *) # Relative
24750          if test -f "$f"; then
24751            # Build tree
24752            echo "$f"
24753          elif test -f "$srcdir/$f"; then
24754            # Source tree
24755            echo "$srcdir/$f"
24756          else
24757            # /dev/null tree
24758            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24759 echo "$as_me: error: cannot find input file: $f" >&2;}
24760    { (exit 1); exit 1; }; }
24761          fi;;
24762       esac
24763     done` || { (exit 1); exit 1; }
24764   # Remove the trailing spaces.
24765   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24766
24767 _ACEOF
24768
24769 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24770 # `conftest.undefs', that substitutes the proper values into
24771 # config.h.in to produce config.h.  The first handles `#define'
24772 # templates, and the second `#undef' templates.
24773 # And first: Protect against being on the right side of a sed subst in
24774 # config.status.  Protect against being in an unquoted here document
24775 # in config.status.
24776 rm -f conftest.defines conftest.undefs
24777 # Using a here document instead of a string reduces the quoting nightmare.
24778 # Putting comments in sed scripts is not portable.
24779 #
24780 # `end' is used to avoid that the second main sed command (meant for
24781 # 0-ary CPP macros) applies to n-ary macro definitions.
24782 # See the Autoconf documentation for `clear'.
24783 cat >confdef2sed.sed <<\_ACEOF
24784 s/[\\&,]/\\&/g
24785 s,[\\$`],\\&,g
24786 t clear
24787 : clear
24788 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24789 t end
24790 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24791 : end
24792 _ACEOF
24793 # If some macros were called several times there might be several times
24794 # the same #defines, which is useless.  Nevertheless, we may not want to
24795 # sort them, since we want the *last* AC-DEFINE to be honored.
24796 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24797 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24798 rm -f confdef2sed.sed
24799
24800 # This sed command replaces #undef with comments.  This is necessary, for
24801 # example, in the case of _POSIX_SOURCE, which is predefined and required
24802 # on some systems where configure will not decide to define it.
24803 cat >>conftest.undefs <<\_ACEOF
24804 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24805 _ACEOF
24806
24807 # Break up conftest.defines because some shells have a limit on the size
24808 # of here documents, and old seds have small limits too (100 cmds).
24809 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24810 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24811 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24812 echo '  :' >>$CONFIG_STATUS
24813 rm -f conftest.tail
24814 while grep . conftest.defines >/dev/null
24815 do
24816   # Write a limited-size here document to $tmp/defines.sed.
24817   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24818   # Speed up: don't consider the non `#define' lines.
24819   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24820   # Work around the forget-to-reset-the-flag bug.
24821   echo 't clr' >>$CONFIG_STATUS
24822   echo ': clr' >>$CONFIG_STATUS
24823   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24824   echo 'CEOF
24825   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24826   rm -f $tmp/in
24827   mv $tmp/out $tmp/in
24828 ' >>$CONFIG_STATUS
24829   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24830   rm -f conftest.defines
24831   mv conftest.tail conftest.defines
24832 done
24833 rm -f conftest.defines
24834 echo '  fi # grep' >>$CONFIG_STATUS
24835 echo >>$CONFIG_STATUS
24836
24837 # Break up conftest.undefs because some shells have a limit on the size
24838 # of here documents, and old seds have small limits too (100 cmds).
24839 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24840 rm -f conftest.tail
24841 while grep . conftest.undefs >/dev/null
24842 do
24843   # Write a limited-size here document to $tmp/undefs.sed.
24844   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24845   # Speed up: don't consider the non `#undef'
24846   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24847   # Work around the forget-to-reset-the-flag bug.
24848   echo 't clr' >>$CONFIG_STATUS
24849   echo ': clr' >>$CONFIG_STATUS
24850   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24851   echo 'CEOF
24852   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24853   rm -f $tmp/in
24854   mv $tmp/out $tmp/in
24855 ' >>$CONFIG_STATUS
24856   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24857   rm -f conftest.undefs
24858   mv conftest.tail conftest.undefs
24859 done
24860 rm -f conftest.undefs
24861
24862 cat >>$CONFIG_STATUS <<\_ACEOF
24863   # Let's still pretend it is `configure' which instantiates (i.e., don't
24864   # use $as_me), people would be surprised to read:
24865   #    /* config.h.  Generated by config.status.  */
24866   if test x"$ac_file" = x-; then
24867     echo "/* Generated by configure.  */" >$tmp/config.h
24868   else
24869     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24870   fi
24871   cat $tmp/in >>$tmp/config.h
24872   rm -f $tmp/in
24873   if test x"$ac_file" != x-; then
24874     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24875       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24876 echo "$as_me: $ac_file is unchanged" >&6;}
24877     else
24878       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24880          X"$ac_file" : 'X\(//\)[^/]' \| \
24881          X"$ac_file" : 'X\(//\)$' \| \
24882          X"$ac_file" : 'X\(/\)' \| \
24883          .     : '\(.\)' 2>/dev/null ||
24884 echo X"$ac_file" |
24885     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24886           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24887           /^X\(\/\/\)$/{ s//\1/; q; }
24888           /^X\(\/\).*/{ s//\1/; q; }
24889           s/.*/./; q'`
24890       { if $as_mkdir_p; then
24891     mkdir -p "$ac_dir"
24892   else
24893     as_dir="$ac_dir"
24894     as_dirs=
24895     while test ! -d "$as_dir"; do
24896       as_dirs="$as_dir $as_dirs"
24897       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24899          X"$as_dir" : 'X\(//\)[^/]' \| \
24900          X"$as_dir" : 'X\(//\)$' \| \
24901          X"$as_dir" : 'X\(/\)' \| \
24902          .     : '\(.\)' 2>/dev/null ||
24903 echo X"$as_dir" |
24904     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24905           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24906           /^X\(\/\/\)$/{ s//\1/; q; }
24907           /^X\(\/\).*/{ s//\1/; q; }
24908           s/.*/./; q'`
24909     done
24910     test ! -n "$as_dirs" || mkdir $as_dirs
24911   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24912 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24913    { (exit 1); exit 1; }; }; }
24914
24915       rm -f $ac_file
24916       mv $tmp/config.h $ac_file
24917     fi
24918   else
24919     cat $tmp/config.h
24920     rm -f $tmp/config.h
24921   fi
24922 done
24923 _ACEOF
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24925
24926 #
24927 # CONFIG_COMMANDS section.
24928 #
24929 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24930   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24931   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24932   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24933 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24934          X"$ac_dest" : 'X\(//\)[^/]' \| \
24935          X"$ac_dest" : 'X\(//\)$' \| \
24936          X"$ac_dest" : 'X\(/\)' \| \
24937          .     : '\(.\)' 2>/dev/null ||
24938 echo X"$ac_dest" |
24939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24940           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24941           /^X\(\/\/\)$/{ s//\1/; q; }
24942           /^X\(\/\).*/{ s//\1/; q; }
24943           s/.*/./; q'`
24944   { if $as_mkdir_p; then
24945     mkdir -p "$ac_dir"
24946   else
24947     as_dir="$ac_dir"
24948     as_dirs=
24949     while test ! -d "$as_dir"; do
24950       as_dirs="$as_dir $as_dirs"
24951       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24953          X"$as_dir" : 'X\(//\)[^/]' \| \
24954          X"$as_dir" : 'X\(//\)$' \| \
24955          X"$as_dir" : 'X\(/\)' \| \
24956          .     : '\(.\)' 2>/dev/null ||
24957 echo X"$as_dir" |
24958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24959           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24960           /^X\(\/\/\)$/{ s//\1/; q; }
24961           /^X\(\/\).*/{ s//\1/; q; }
24962           s/.*/./; q'`
24963     done
24964     test ! -n "$as_dirs" || mkdir $as_dirs
24965   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24967    { (exit 1); exit 1; }; }; }
24968
24969   ac_builddir=.
24970
24971 if test "$ac_dir" != .; then
24972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24973   # A "../" for each directory in $ac_dir_suffix.
24974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24975 else
24976   ac_dir_suffix= ac_top_builddir=
24977 fi
24978
24979 case $srcdir in
24980   .)  # No --srcdir option.  We are building in place.
24981     ac_srcdir=.
24982     if test -z "$ac_top_builddir"; then
24983        ac_top_srcdir=.
24984     else
24985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24986     fi ;;
24987   [\\/]* | ?:[\\/]* )  # Absolute path.
24988     ac_srcdir=$srcdir$ac_dir_suffix;
24989     ac_top_srcdir=$srcdir ;;
24990   *) # Relative path.
24991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24993 esac
24994
24995 # Do not use `cd foo && pwd` to compute absolute paths, because
24996 # the directories may not exist.
24997 case `pwd` in
24998 .) ac_abs_builddir="$ac_dir";;
24999 *)
25000   case "$ac_dir" in
25001   .) ac_abs_builddir=`pwd`;;
25002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25003   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25004   esac;;
25005 esac
25006 case $ac_abs_builddir in
25007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25008 *)
25009   case ${ac_top_builddir}. in
25010   .) ac_abs_top_builddir=$ac_abs_builddir;;
25011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25013   esac;;
25014 esac
25015 case $ac_abs_builddir in
25016 .) ac_abs_srcdir=$ac_srcdir;;
25017 *)
25018   case $ac_srcdir in
25019   .) ac_abs_srcdir=$ac_abs_builddir;;
25020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25022   esac;;
25023 esac
25024 case $ac_abs_builddir in
25025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25026 *)
25027   case $ac_top_srcdir in
25028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25031   esac;;
25032 esac
25033
25034
25035   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25036 echo "$as_me: executing $ac_dest commands" >&6;}
25037   case $ac_dest in
25038     default-1 )
25039     for ac_file in $CONFIG_FILES; do
25040       # Support "outfile[:infile[:infile...]]"
25041       case "$ac_file" in
25042         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25043       esac
25044       # PO directories have a Makefile.in generated from Makefile.in.in.
25045       case "$ac_file" in */Makefile.in)
25046         # Adjust a relative srcdir.
25047         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25048         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25049         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25050         # In autoconf-2.13 it is called $ac_given_srcdir.
25051         # In autoconf-2.50 it is called $srcdir.
25052         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25053         case "$ac_given_srcdir" in
25054           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25055           /*) top_srcdir="$ac_given_srcdir" ;;
25056           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25057         esac
25058         # Treat a directory as a PO directory if and only if it has a
25059         # POTFILES.in file. This allows packages to have multiple PO
25060         # directories under different names or in different locations.
25061         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25062           rm -f "$ac_dir/POTFILES"
25063           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25064           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25065           POMAKEFILEDEPS="POTFILES.in"
25066           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25067           # on $ac_dir but don't depend on user-specified configuration
25068           # parameters.
25069           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25070             # The LINGUAS file contains the set of available languages.
25071             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25072               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25073             fi
25074             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25075             # Hide the ALL_LINGUAS assigment from automake.
25076             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25077             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25078           else
25079             # The set of available languages was given in configure.in.
25080             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25081           fi
25082           # Compute POFILES
25083           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25084           # Compute UPDATEPOFILES
25085           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25086           # Compute DUMMYPOFILES
25087           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25088           # Compute GMOFILES
25089           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25090           case "$ac_given_srcdir" in
25091             .) srcdirpre= ;;
25092             *) srcdirpre='$(srcdir)/' ;;
25093           esac
25094           POFILES=
25095           UPDATEPOFILES=
25096           DUMMYPOFILES=
25097           GMOFILES=
25098           for lang in $ALL_LINGUAS; do
25099             POFILES="$POFILES $srcdirpre$lang.po"
25100             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25101             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25102             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25103           done
25104           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25105           # environment variable.
25106           INST_LINGUAS=
25107           if test -n "$ALL_LINGUAS"; then
25108             for presentlang in $ALL_LINGUAS; do
25109               useit=no
25110               if test "%UNSET%" != "$LINGUAS"; then
25111                 desiredlanguages="$LINGUAS"
25112               else
25113                 desiredlanguages="$ALL_LINGUAS"
25114               fi
25115               for desiredlang in $desiredlanguages; do
25116                 # Use the presentlang catalog if desiredlang is
25117                 #   a. equal to presentlang, or
25118                 #   b. a variant of presentlang (because in this case,
25119                 #      presentlang can be used as a fallback for messages
25120                 #      which are not translated in the desiredlang catalog).
25121                 case "$desiredlang" in
25122                   "$presentlang"*) useit=yes;;
25123                 esac
25124               done
25125               if test $useit = yes; then
25126                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25127               fi
25128             done
25129           fi
25130           CATALOGS=
25131           if test -n "$INST_LINGUAS"; then
25132             for lang in $INST_LINGUAS; do
25133               CATALOGS="$CATALOGS $lang.gmo"
25134             done
25135           fi
25136           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25137           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"
25138           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25139             if test -f "$f"; then
25140               case "$f" in
25141                 *.orig | *.bak | *~) ;;
25142                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25143               esac
25144             fi
25145           done
25146         fi
25147         ;;
25148       esac
25149     done ;;
25150     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25151  ;;
25152   esac
25153 done
25154 _ACEOF
25155
25156 cat >>$CONFIG_STATUS <<\_ACEOF
25157
25158 { (exit 0); exit 0; }
25159 _ACEOF
25160 chmod +x $CONFIG_STATUS
25161 ac_clean_files=$ac_clean_files_save
25162
25163
25164 # configure is writing to config.log, and then calls config.status.
25165 # config.status does its own redirection, appending to config.log.
25166 # Unfortunately, on DOS this fails, as config.log is still kept open
25167 # by configure, so config.status won't be able to write to it; its
25168 # output is simply discarded.  So we exec the FD to /dev/null,
25169 # effectively closing config.log, so it can be properly (re)opened and
25170 # appended to by config.status.  When coming back to configure, we
25171 # need to make the FD available again.
25172 if test "$no_create" != yes; then
25173   ac_cs_success=:
25174   ac_config_status_args=
25175   test "$silent" = yes &&
25176     ac_config_status_args="$ac_config_status_args --quiet"
25177   exec 5>/dev/null
25178   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25179   exec 5>>config.log
25180   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25181   # would make configure fail if this is the last instruction.
25182   $ac_cs_success || { (exit 1); exit 1; }
25183 fi
25184
25185
25186 cd scripts
25187 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25188 chmod 755 dvd-writepart dvd-freespace
25189 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25190 cd ..
25191
25192 c=src/cats
25193
25194 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
25195 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
25196
25197 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
25198 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
25199
25200 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
25201 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
25202
25203 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
25204 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
25205
25206 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
25207 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
25208
25209 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25210 chmod 755 $c/sqlite
25211 chmod 755 $c/mysql
25212
25213 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25214    largefile_support="yes"
25215 fi
25216
25217 #
25218 # A whole lot of hand springs to get the compiler version.
25219 #  This is because gcc changed the output in version 3.0
25220 #
25221 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25222 if test "x${CCVERSION}" = "x" ; then
25223   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25224 fi
25225 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25226 if test x"${CXXVERSION}" = x ; then
25227   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25228 fi
25229
25230 if test "x${subsysdir}" = "x${sbindir}" ; then
25231    echo " "
25232    echo " "
25233    echo "You have set --sbindir and --with-subsys-dir"
25234    echo "  both equal to: ${subsysdir} "
25235    echo "  This is not permitted. Please reconfigure."
25236    echo " "
25237    echo "Aborting configuration ..."
25238    echo " "
25239    echo " "
25240    exit 1
25241 fi
25242
25243 if test "x${db_name}" = "xInternal" ; then
25244    echo " "
25245    echo " "
25246    echo "You have not specified either --enable-client-only or one of the"
25247    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25248    echo "  This is not permitted. Please reconfigure."
25249    echo " "
25250    echo "Aborting the configuration ..."
25251    echo " "
25252    echo " "
25253    exit 1
25254 fi
25255
25256 echo "
25257 Configuration on `date`:
25258
25259   Host:                       $host -- ${DISTNAME} ${DISTVER}
25260   Bacula version:             ${VERSION} (${DATE})
25261   Source code location:       ${srcdir}
25262   Install binaries:           ${sbindir}
25263   Install config files:       ${sysconfdir}
25264   Scripts directory:          ${scriptdir}
25265   Working directory:          ${working_dir}
25266   PID directory:              ${piddir}
25267   Subsys directory:           ${subsysdir}
25268   Man directory:              ${mandir}
25269   Data directory:             ${datadir}
25270   C Compiler:                 ${CC} ${CCVERSION}
25271   C++ Compiler:               ${CXX} ${CXXVERSION}
25272   Compiler flags:             ${WCFLAGS} ${CFLAGS}
25273   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
25274   Libraries:                  ${LIBS}
25275   Statically Linked Tools:    ${support_static_tools}
25276   Statically Linked FD:       ${support_static_fd}
25277   Statically Linked SD:       ${support_static_sd}
25278   Statically Linked DIR:      ${support_static_dir}
25279   Statically Linked CONS:     ${support_static_cons}
25280   Database type:              ${db_name}
25281   Database lib:               ${DB_LIBS}
25282
25283   Job Output Email:           ${job_email}
25284   Traceback Email:            ${dump_email}
25285   SMTP Host Address:          ${smtp_host}
25286
25287   Director Port:              ${dir_port}
25288   File daemon Port:           ${fd_port}
25289   Storage daemon Port:        ${sd_port}
25290
25291   Director User:              ${dir_user}
25292   Director Group:             ${dir_group}
25293   Storage Daemon User:        ${sd_user}
25294   Storage DaemonGroup:        ${sd_group}
25295   File Daemon User:           ${fd_user}
25296   File Daemon Group:          ${fd_group}
25297
25298   SQL binaries Directory      ${SQL_BINDIR}
25299
25300   Large file support:         $largefile_support
25301   Bacula conio support:       ${got_conio} ${CONS_LIBS}
25302   readline support:           ${got_readline} ${PRTREADLINE_SRC}
25303   TCP Wrappers support:       ${TCPW_MSG}
25304   TLS support:                ${support_tls}
25305   ZLIB support:               ${have_zlib}
25306   enable-smartalloc:          ${support_smartalloc}
25307   enable-gnome:               ${support_gnome} ${gnome_version}
25308   enable-wx-console:          ${support_wx_console} ${wx_version}
25309   enable-tray-monitor:        ${support_tray_monitor}
25310   client-only:                ${build_client_only}
25311   ACL support:                ${have_acl}
25312   Python support:             ${support_python} ${PYTHON_LIBS}
25313
25314   " > config.out
25315
25316 cat config.out