3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-gnome enable build of gnome-console GUI [disabled]"
17 --with-gnome-includes Specify location of GNOME headers"
19 --with-gnome-libs Specify location of GNOME libs"
21 --with-gnome Specify prefix for GNOME files"
23 --enable-smartalloc enable smartalloc debugging support [disabled]"
25 --enable-static-tools enable static tape tools [disabled]"
27 --enable-static-fd enable static File daemon [disabled]"
29 --enable-static-sd enable static Storage daemon [disabled]"
31 --enable-static-dir enable static Director [disabled]"
33 --enable-static-cons enable static Console [disabled]"
35 --enable-client-only build client (File daemon) only [disabled]"
37 --disable-readline disable readline support [enabled]
40 --with-readline=DIR specify readline library directory"
42 --with-tcp-wrappers=DIR enable tcpwrappers support"
44 --with-working-dir=PATH specify path of Bacula working directory"
46 --with-scriptdir=PATH specify path of Bacula scripts directory"
48 --with-dump-email=EMAIL dump email address"
50 --with-job-email=EMAIL job output email address"
52 --with-smtp-host=HOST SMTP mail host address"
54 --with-pid-dir=PATH specify location of Bacula pid files"
56 --with-subsys-dir=PATH specify location of Bacula subsys file"
58 --with-baseport=PORT specify base port address for daemons"
60 --with-dir-password=PASSWORD specify Director's password"
62 --with-fd-password=PASSWORD specify Client's password"
64 --with-sd-password=PASSWORD specify Storage daemon's password"
67 Which DBMS do you want to use (please select only one):
68 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
69 install directory, default is to search through
70 a number of common places for the MySQL files."
73 Which DBMS do you want to use (please select only one):
74 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
75 install directory, default is to search through
76 a number of common places for the MySQL files."
79 Which DBMS do you want to use (please select only one):
80 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
81 install directory, default is to search through
82 a number of common places for the SQLite files."
84 --disable-largefile omit support for large files"
86 --with-x use the X Window System"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=src/version.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
603 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628 # Extract the first word of "$ac_prog", so it can be a program name with args.
629 set dummy $ac_prog; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
637 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
640 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
648 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
656 TRUEPRG="$ac_cv_path_TRUEPRG"
657 if test -n "$TRUEPRG"; then
658 echo "$ac_t""$TRUEPRG" 1>&6
660 echo "$ac_t""no" 1>&6
663 test -n "$TRUEPRG" && break
665 test -n "$TRUEPRG" || TRUEPRG=":"
669 # Extract the first word of "$ac_prog", so it can be a program name with args.
670 set dummy $ac_prog; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
678 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
681 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
697 FALSEPRG="$ac_cv_path_FALSEPRG"
698 if test -n "$FALSEPRG"; then
699 echo "$ac_t""$FALSEPRG" 1>&6
701 echo "$ac_t""no" 1>&6
704 test -n "$FALSEPRG" && break
706 test -n "$FALSEPRG" || FALSEPRG=":"
710 # Make sure we can run config.sub.
711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
715 echo $ac_n "checking host system type""... $ac_c" 1>&6
716 echo "configure:717: checking host system type" >&5
719 case "$host_alias" in
723 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
724 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
726 *) host_alias=$nonopt ;;
730 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
731 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$host" 1>&6
737 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
738 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
739 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
740 echo "configuring for bacula $VERSION ($DATE)"
744 # Extract the first word of "gcc", so it can be a program name with args.
745 set dummy gcc; ac_word=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 for ac_dir in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
799 if test $ac_prog_rejected = yes; then
800 # We found a bogon in the path, so make sure we never use it.
801 set dummy $ac_cv_prog_CC
803 if test $# -gt 0; then
804 # We chose a different compiler from the bogus one.
805 # However, it has the same basename, so the bogon will be chosen
806 # first if we set CC to just the basename; use the full file name.
808 set dummy "$ac_dir/$ac_word" "$@"
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
825 # Extract the first word of "cl", so it can be a program name with args.
826 set dummy cl; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CPP $CPPFLAGS'
865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cc_cross
869 cat > conftest.$ac_ext << EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
877 ac_cv_prog_cc_works=yes
878 # If we can't run a trivial program, we are probably using a cross compiler.
879 if (./conftest; exit) 2>/dev/null; then
880 ac_cv_prog_cc_cross=no
882 ac_cv_prog_cc_cross=yes
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
887 ac_cv_prog_cc_works=no
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp='$CPP $CPPFLAGS'
893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling=$ac_cv_prog_cc_cross
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c <<EOF
916 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
931 ac_test_CFLAGS="${CFLAGS+set}"
932 ac_save_CFLAGS="$CFLAGS"
934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935 echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 echo 'void f(){}' > conftest.c
940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
949 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950 if test "$ac_test_CFLAGS" = set; then
951 CFLAGS="$ac_save_CFLAGS"
952 elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
959 if test "$GCC" = yes; then
966 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
968 # Extract the first word of "$ac_prog", so it can be a program name with args.
969 set dummy $ac_prog; ac_word=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$CXX"; then
976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_CXX="$ac_prog"
990 CXX="$ac_cv_prog_CXX"
991 if test -n "$CXX"; then
992 echo "$ac_t""$CXX" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$CXX" && break
999 test -n "$CXX" || CXX="gcc"
1002 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1007 ac_cpp='$CXXCPP $CPPFLAGS'
1008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1010 cross_compiling=$ac_cv_prog_cxx_cross
1012 cat > conftest.$ac_ext << EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1017 int main(){return(0);}
1019 if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1020 ac_cv_prog_cxx_works=yes
1021 # If we can't run a trivial program, we are probably using a cross compiler.
1022 if (./conftest; exit) 2>/dev/null; then
1023 ac_cv_prog_cxx_cross=no
1025 ac_cv_prog_cxx_cross=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 ac_cv_prog_cxx_works=no
1034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1035 ac_cpp='$CPP $CPPFLAGS'
1036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1038 cross_compiling=$ac_cv_prog_cc_cross
1040 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1041 if test $ac_cv_prog_cxx_works = no; then
1042 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1044 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1046 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1047 cross_compiling=$ac_cv_prog_cxx_cross
1049 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether we are using GNU C++" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.C <<EOF
1059 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1066 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1068 if test $ac_cv_prog_gxx = yes; then
1074 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1075 ac_save_CXXFLAGS="$CXXFLAGS"
1077 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ${CXX-g++} accepts -g" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 echo 'void f(){}' > conftest.cc
1083 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1084 ac_cv_prog_cxx_g=yes
1092 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1093 if test "$ac_test_CXXFLAGS" = set; then
1094 CXXFLAGS="$ac_save_CXXFLAGS"
1095 elif test $ac_cv_prog_cxx_g = yes; then
1096 if test "$GXX" = yes; then
1102 if test "$GXX" = yes; then
1109 for ac_declaration in \
1111 '#include <stdlib.h>' \
1112 'extern "C" void std::exit (int) throw (); using std::exit;' \
1113 'extern "C" void std::exit (int); using std::exit;' \
1114 'extern "C" void exit (int) throw ();' \
1115 'extern "C" void exit (int);' \
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1127 if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1144 if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1153 if test -n "$ac_declaration"; then
1154 echo '#ifdef __cplusplus' >>confdefs.h
1155 echo $ac_declaration >>confdefs.h
1156 echo '#endif' >>confdefs.h
1160 if test "x$CC" != xcc; then
1161 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether $CC and cc understand -c and -o together" >&5
1164 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether cc understands -c and -o together" >&5
1167 set dummy $CC; ac_cc="`echo $2 |
1168 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 echo 'foo(){}' > conftest.c
1173 # Make sure it works both with $CC and with simple cc.
1174 # We do the test twice because some compilers refuse to overwrite an
1175 # existing .o file with -o, though they will create one.
1176 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1177 if { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1178 test -f conftest.o && { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1180 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1181 if test "x$CC" != xcc; then
1182 # Test first that cc exists at all.
1183 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1184 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1185 if { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1186 test -f conftest.o && { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1191 # cc exists but doesn't like -o.
1192 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1197 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1202 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1205 echo "$ac_t""no" 1>&6
1206 cat >> confdefs.h <<\EOF
1207 #define NO_MINUS_C_MINUS_O 1
1211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1212 echo "configure:1213: checking how to run the C preprocessor" >&5
1213 # On Suns, sometimes $CPP names a directory.
1214 if test -n "$CPP" && test -d "$CPP"; then
1217 if test -z "$CPP"; then
1218 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 # This must be in double quotes, not single quotes, because CPP may get
1222 # substituted into the Makefile and "${CC-cc}" will confuse make.
1224 # On the NeXT, cc -E runs the code through the compiler's parser,
1225 # not just through cpp.
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 CPP="${CC-cc} -E -traditional-cpp"
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1259 CPP="${CC-cc} -nologo -E"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1283 ac_cv_prog_CPP="$CPP"
1285 CPP="$ac_cv_prog_CPP"
1287 ac_cv_prog_CPP="$CPP"
1289 echo "$ac_t""$CPP" 1>&6
1291 if test $ac_cv_prog_gcc = yes; then
1292 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether ${CC-cc} needs -traditional" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_pattern="Autoconf.*'x'"
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1305 egrep "$ac_pattern" >/dev/null 2>&1; then
1307 ac_cv_prog_gcc_traditional=yes
1310 ac_cv_prog_gcc_traditional=no
1315 if test $ac_cv_prog_gcc_traditional = no; then
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1323 egrep "$ac_pattern" >/dev/null 2>&1; then
1325 ac_cv_prog_gcc_traditional=yes
1332 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1333 if test $ac_cv_prog_gcc_traditional = yes; then
1334 CC="$CC -traditional"
1340 cat >> confdefs.h <<\EOF
1346 # Find a good install program. We prefer a C program (faster),
1347 # so one script is as good as another. But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1358 echo "configure:1359: checking for a BSD compatible install" >&5
1359 if test -z "$INSTALL"; then
1360 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1364 for ac_dir in $PATH; do
1365 # Account for people who put trailing slashes in PATH elements.
1367 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1369 # OSF1 and SCO ODT 3.0 have their own names for install.
1370 # Don't use installbsd from OSF since it installs stuff as root
1372 for ac_prog in ginstall scoinst install; do
1373 if test -f $ac_dir/$ac_prog; then
1374 if test $ac_prog = install &&
1375 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1376 # AIX install. It has an incompatible calling convention.
1379 ac_cv_path_install="$ac_dir/$ac_prog -c"
1390 if test "${ac_cv_path_install+set}" = set; then
1391 INSTALL="$ac_cv_path_install"
1393 # As a last resort, use the slow shell script. We don't cache a
1394 # path for INSTALL within a source directory, because that will
1395 # break other packages using the cache if that directory is
1396 # removed, or if the path is relative.
1397 INSTALL="$ac_install_sh"
1400 echo "$ac_t""$INSTALL" 1>&6
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1410 # Extract the first word of "ranlib", so it can be a program name with args.
1411 set dummy ranlib; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$RANLIB"; then
1418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_RANLIB="ranlib"
1430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1433 RANLIB="$ac_cv_prog_RANLIB"
1434 if test -n "$RANLIB"; then
1435 echo "$ac_t""$RANLIB" 1>&6
1437 echo "$ac_t""no" 1>&6
1440 # Extract the first word of "mv", so it can be a program name with args.
1441 set dummy mv; ac_word=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1449 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1452 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1457 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 if test -f $ac_dir/$ac_word; then
1460 ac_cv_path_MV="$ac_dir/$ac_word"
1465 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1470 if test -n "$MV"; then
1471 echo "$ac_t""$MV" 1>&6
1473 echo "$ac_t""no" 1>&6
1476 # Extract the first word of "rm", so it can be a program name with args.
1477 set dummy rm; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1488 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_path_RM="$ac_dir/$ac_word"
1501 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1506 if test -n "$RM"; then
1507 echo "$ac_t""$RM" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 # Extract the first word of "cp", so it can be a program name with args.
1513 set dummy cp; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1524 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_path_CP="$ac_dir/$ac_word"
1537 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1542 if test -n "$CP"; then
1543 echo "$ac_t""$CP" 1>&6
1545 echo "$ac_t""no" 1>&6
1548 # Extract the first word of "sed", so it can be a program name with args.
1549 set dummy sed; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1560 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_path_SED="$ac_dir/$ac_word"
1573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1577 SED="$ac_cv_path_SED"
1578 if test -n "$SED"; then
1579 echo "$ac_t""$SED" 1>&6
1581 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "awk", so it can be a program name with args.
1585 set dummy awk; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1596 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_path_AWK="$ac_dir/$ac_word"
1609 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1613 AWK="$ac_cv_path_AWK"
1614 if test -n "$AWK"; then
1615 echo "$ac_t""$AWK" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 # Extract the first word of "echo", so it can be a program name with args.
1621 set dummy echo; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1629 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1632 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 for ac_dir in $ac_dummy; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f $ac_dir/$ac_word; then
1640 ac_cv_path_ECHO="$ac_dir/$ac_word"
1645 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1649 ECHO="$ac_cv_path_ECHO"
1650 if test -n "$ECHO"; then
1651 echo "$ac_t""$ECHO" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 # Extract the first word of "cmp", so it can be a program name with args.
1657 set dummy cmp; ac_word=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5
1660 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1668 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_path_CMP="$ac_dir/$ac_word"
1681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1685 CMP="$ac_cv_path_CMP"
1686 if test -n "$CMP"; then
1687 echo "$ac_t""$CMP" 1>&6
1689 echo "$ac_t""no" 1>&6
1692 # Extract the first word of "tbl", so it can be a program name with args.
1693 set dummy tbl; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1701 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1704 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1712 ac_cv_path_TBL="$ac_dir/$ac_word"
1717 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1721 TBL="$ac_cv_path_TBL"
1722 if test -n "$TBL"; then
1723 echo "$ac_t""$TBL" 1>&6
1725 echo "$ac_t""no" 1>&6
1728 # Extract the first word of "ar", so it can be a program name with args.
1729 set dummy ar; ac_word=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1740 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_path_AR="$ac_dir/$ac_word"
1753 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1758 if test -n "$AR"; then
1759 echo "$ac_t""$AR" 1>&6
1761 echo "$ac_t""no" 1>&6
1764 # Extract the first word of "ranlib", so it can be a program name with args.
1765 set dummy ranlib; ac_word=$2
1766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1767 echo "configure:1768: checking for $ac_word" >&5
1768 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1776 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1789 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1793 RANLIB="$ac_cv_path_RANLIB"
1794 if test -n "$RANLIB"; then
1795 echo "$ac_t""$RANLIB" 1>&6
1797 echo "$ac_t""no" 1>&6
1800 # Extract the first word of "openssl", so it can be a program name with args.
1801 set dummy openssl; ac_word=$2
1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_word" >&5
1804 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1812 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1817 for ac_dir in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1825 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1829 OPENSSL="$ac_cv_path_OPENSSL"
1830 if test -n "$OPENSSL"; then
1831 echo "$ac_t""$OPENSSL" 1>&6
1833 echo "$ac_t""no" 1>&6
1836 # Extract the first word of "mtx", so it can be a program name with args.
1837 set dummy mtx; ac_word=$2
1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1839 echo "configure:1840: checking for $ac_word" >&5
1840 if eval "test \"`echo '$''{'ac_cv_path_MTX'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1845 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
1848 ac_cv_path_MTX="$MTX" # Let the user override the test with a dos path.
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 for ac_dir in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f $ac_dir/$ac_word; then
1856 ac_cv_path_MTX="$ac_dir/$ac_word"
1861 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
1865 MTX="$ac_cv_path_MTX"
1866 if test -n "$MTX"; then
1867 echo "$ac_t""$MTX" 1>&6
1869 echo "$ac_t""no" 1>&6
1872 # Extract the first word of "pkg-config", so it can be a program name with args.
1873 set dummy pkg-config; ac_word=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_path_PKGCONFIG'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 case "$PKGCONFIG" in
1881 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
1884 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a dos path.
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_path_PKGCONFIG="$ac_dir/$ac_word"
1897 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
1901 PKGCONFIG="$ac_cv_path_PKGCONFIG"
1902 if test -n "$PKGCONFIG"; then
1903 echo "$ac_t""$PKGCONFIG" 1>&6
1905 echo "$ac_t""no" 1>&6
1909 test -n "$ARFLAG" || ARFLAGS="cr"
1922 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1923 echo "configure:1924: checking for Operating System" >&5
1924 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1925 echo "configure:1926: checking for Cygwin environment" >&5
1926 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1936 #define __CYGWIN__ __CYGWIN32__
1941 if { (eval echo configure:1942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1945 echo "configure: failed program was:" >&5
1946 cat conftest.$ac_ext >&5
1954 echo "$ac_t""$ac_cv_cygwin" 1>&6
1956 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1957 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1963 HAVE_SUN_OS_FALSE='#'
1965 HAVE_SUN_OS_TRUE='#'
1968 cat >> confdefs.h <<\EOF
1969 #define HAVE_SUN_OS 1
1977 HAVE_SUN_OS_FALSE='#'
1979 HAVE_SUN_OS_TRUE='#'
1984 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1990 HAVE_OSF1_OS_FALSE='#'
1992 HAVE_OSF1_OS_TRUE='#'
1995 cat >> confdefs.h <<\EOF
1996 #define HAVE_OSF1_OS 1
2004 HAVE_OSF1_OS_FALSE='#'
2006 HAVE_OSF1_OS_TRUE='#'
2011 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2017 HAVE_AIX_OS_FALSE='#'
2019 HAVE_AIX_OS_TRUE='#'
2022 cat >> confdefs.h <<\EOF
2023 #define HAVE_AIX_OS 1
2031 HAVE_AIX_OS_FALSE='#'
2033 HAVE_AIX_OS_TRUE='#'
2038 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2044 HAVE_HPUX_OS_FALSE='#'
2046 HAVE_HPUX_OS_TRUE='#'
2049 cat >> confdefs.h <<\EOF
2050 #define HAVE_HPUX_OS 1
2058 HAVE_HPUX_OS_FALSE='#'
2060 HAVE_HPUX_OS_TRUE='#'
2065 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
2071 HAVE_LINUX_OS_FALSE='#'
2073 HAVE_LINUX_OS_TRUE='#'
2074 HAVE_LINUX_OS_FALSE=
2076 cat >> confdefs.h <<\EOF
2077 #define HAVE_LINUX_OS 1
2085 HAVE_LINUX_OS_FALSE='#'
2087 HAVE_LINUX_OS_TRUE='#'
2088 HAVE_LINUX_OS_FALSE=
2092 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2097 HAVE_FREEBSD_OS_TRUE=
2098 HAVE_FREEBSD_OS_FALSE='#'
2100 HAVE_FREEBSD_OS_TRUE='#'
2101 HAVE_FREEBSD_OS_FALSE=
2103 cat >> confdefs.h <<\EOF
2104 #define HAVE_FREEBSD_OS 1
2111 HAVE_FREEBSD_OS_TRUE=
2112 HAVE_FREEBSD_OS_FALSE='#'
2114 HAVE_FREEBSD_OS_TRUE='#'
2115 HAVE_FREEBSD_OS_FALSE=
2119 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2124 HAVE_NETBSD_OS_TRUE=
2125 HAVE_NETBSD_OS_FALSE='#'
2127 HAVE_NETBSD_OS_TRUE='#'
2128 HAVE_NETBSD_OS_FALSE=
2130 cat >> confdefs.h <<\EOF
2131 #define HAVE_NETBSD_OS 1
2138 HAVE_NETBSD_OS_TRUE=
2139 HAVE_NETBSD_OS_FALSE='#'
2141 HAVE_NETBSD_OS_TRUE='#'
2142 HAVE_NETBSD_OS_FALSE=
2146 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2151 HAVE_OPENBSD_OS_TRUE=
2152 HAVE_OPENBSD_OS_FALSE='#'
2154 HAVE_OPENBSD_OS_TRUE='#'
2155 HAVE_OPENBSD_OS_FALSE=
2157 cat >> confdefs.h <<\EOF
2158 #define HAVE_OPENBSD_OS 1
2165 HAVE_OPENBSD_OS_TRUE=
2166 HAVE_OPENBSD_OS_FALSE='#'
2168 HAVE_OPENBSD_OS_TRUE='#'
2169 HAVE_OPENBSD_OS_FALSE=
2173 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2179 HAVE_BSDI_OS_FALSE='#'
2181 HAVE_BSDI_OS_TRUE='#'
2184 cat >> confdefs.h <<\EOF
2185 #define HAVE_BSDI_OS 1
2193 HAVE_BSDI_OS_FALSE='#'
2195 HAVE_BSDI_OS_TRUE='#'
2200 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2206 HAVE_SGI_OS_FALSE='#'
2208 HAVE_SGI_OS_TRUE='#'
2211 cat >> confdefs.h <<\EOF
2212 #define HAVE_SGI_OS 1
2220 HAVE_SGI_OS_FALSE='#'
2222 HAVE_SGI_OS_TRUE='#'
2227 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2233 HAVE_IRIX_OS_FALSE='#'
2235 HAVE_IRIX_OS_TRUE='#'
2238 cat >> confdefs.h <<\EOF
2239 #define HAVE_IRIX_OS 1
2247 HAVE_IRIX_OS_FALSE='#'
2249 HAVE_IRIX_OS_TRUE='#'
2254 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2259 HAVE_DARWIN_OS_TRUE=
2260 HAVE_DARWIN_OS_FALSE='#'
2262 HAVE_DARWIN_OS_TRUE='#'
2263 HAVE_DARWIN_OS_FALSE=
2265 cat >> confdefs.h <<\EOF
2266 #define HAVE_DARWIN_OS 1
2273 HAVE_DARWIN_OS_TRUE=
2274 HAVE_DARWIN_OS_FALSE='#'
2276 HAVE_DARWIN_OS_TRUE='#'
2277 HAVE_DARWIN_OS_FALSE=
2281 echo "$ac_t""" "" 1>&6
2284 # -----------------------------------------------------------
2285 # ----------------------------------------------------------
2286 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2287 echo "configure:2288: checking for Operating System Distribution" >&5
2288 if test "x$DISTNAME" != "x"
2290 echo "distname set to $DISTNAME"
2291 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2294 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2297 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2300 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2303 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2306 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2309 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2312 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2315 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2318 elif test -f /etc/SuSE-release
2321 elif test -d /etc/SuSEconfig
2324 elif test -f /etc/mandrake-release
2327 elif test -f /etc/redhat-release
2330 elif test -f /etc/gentoo-release
2333 elif test -f /etc/debian_version
2336 elif test -f /etc/slackware-version
2339 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2342 elif test -f /etc/engarde-version
2345 elif test "$ac_cv_cygwin" = yes
2348 cat >> confdefs.h <<\EOF
2349 #define HAVE_CYGWIN 1
2355 echo "$ac_t""" "" 1>&6
2358 # -----------------------------------------------------------
2359 # ----------------------------------------------------------
2364 INSIDE_GNOME_COMMON_TRUE=
2365 INSIDE_GNOME_COMMON_FALSE='#'
2367 INSIDE_GNOME_COMMON_TRUE='#'
2368 INSIDE_GNOME_COMMON_FALSE=
2371 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2373 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2376 # ------------------------------------------------------------------
2377 # If the user has not set --prefix, we set our default to nothing.
2378 # In this case, if the user has not set --sysconfdir, we set it
2379 # to the package default of /etc/bacula. If either --prefix or
2380 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2381 # ------------------------------------------------------------------
2382 if test x${prefix} = xNONE ; then
2383 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2384 sysconfdir=/etc/bacula
2388 sysconfdir=`eval echo ${sysconfdir}`
2390 # -------------------------------------------------------------------------
2391 # If the user has not set --exec-prefix, we default to ${prefix}
2392 # -------------------------------------------------------------------------
2393 if test x${exec_prefix} = xNONE ; then
2394 exec_prefix=${prefix}
2397 # ------------------------------------------------------------------
2398 # If the user has not set --sbindir, we set our default as /sbin
2399 # ------------------------------------------------------------------
2400 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2401 sbindir=${exec_prefix}/sbin
2403 sbindir=`eval echo ${sbindir}`
2405 # ------------------------------------------------------------------
2406 # All list of languages for which a translation exist. Each
2407 # language is separated by a space.
2408 # ------------------------------------------------------------------
2411 for ac_prog in msgfmt
2413 # Extract the first word of "$ac_prog", so it can be a program name with args.
2414 set dummy $ac_prog; ac_word=$2
2415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2416 echo "configure:2417: checking for $ac_word" >&5
2417 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2422 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2425 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2430 for ac_dir in $ac_dummy; do
2431 test -z "$ac_dir" && ac_dir=.
2432 if test -f $ac_dir/$ac_word; then
2433 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2441 MSGFMT="$ac_cv_path_MSGFMT"
2442 if test -n "$MSGFMT"; then
2443 echo "$ac_t""$MSGFMT" 1>&6
2445 echo "$ac_t""no" 1>&6
2448 test -n "$MSGFMT" && break
2450 test -n "$MSGFMT" || MSGFMT="no"
2452 if test "$MSGFMT" = "no"
2454 echo 'msgfmt program not found, disabling NLS !'
2456 USE_INCLUDED_LIBINTL=no
2464 support_smartalloc=yes
2465 support_readline=yes
2467 support_static_tools=no
2468 support_static_fd=no
2469 support_static_sd=no
2470 support_static_dir=no
2471 support_static_cons=no
2472 build_client_only=no
2478 # -------------------------------------------
2479 # gnome (default off)
2480 # -------------------------------------------
2481 # Check whether --enable-gnome or --disable-gnome was given.
2482 if test "${enable_gnome+set}" = set; then
2483 enableval="$enable_gnome"
2484 if test x$enableval = xyes; then
2491 if test x$support_gnome = xyes; then
2492 abc=`$PKGCONFIG --exists libgnomeui-2.0`
2494 if test $pkg = 0; then
2495 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
2496 GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
2497 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
2498 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
2503 GNOME_DIR=src/gnome2-console
2515 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2516 if test "${with_gnome_includes+set}" = set; then
2517 withval="$with_gnome_includes"
2519 CFLAGS="$CFLAGS -I$withval"
2524 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2525 if test "${with_gnome_libs+set}" = set; then
2526 withval="$with_gnome_libs"
2528 LDFLAGS="$LDFLAGS -L$withval"
2529 gnome_prefix=$withval
2534 # Check whether --with-gnome or --without-gnome was given.
2535 if test "${with_gnome+set}" = set; then
2536 withval="$with_gnome"
2537 if test x$withval = xyes; then
2541 if test "x$withval" = xno; then
2545 LDFLAGS="$LDFLAGS -L$withval/lib"
2546 CFLAGS="$CFLAGS -I$withval/include"
2547 gnome_prefix=$withval/lib
2555 if test "x$want_gnome" = xyes; then
2557 # Extract the first word of "gnome-config", so it can be a program name with args.
2558 set dummy gnome-config; ac_word=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5
2561 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 case "$GNOME_CONFIG" in
2566 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2569 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2574 for ac_dir in $ac_dummy; do
2575 test -z "$ac_dir" && ac_dir=.
2576 if test -f $ac_dir/$ac_word; then
2577 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2582 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2586 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2587 if test -n "$GNOME_CONFIG"; then
2588 echo "$ac_t""$GNOME_CONFIG" 1>&6
2590 echo "$ac_t""no" 1>&6
2593 if test "$GNOME_CONFIG" = "no"; then
2594 no_gnome_config="yes"
2596 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2597 echo "configure:2598: checking if $GNOME_CONFIG works" >&5
2598 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2599 echo "$ac_t""yes" 1>&6
2602 # Extract the first word of "orbit-config", so it can be a program name with args.
2603 set dummy orbit-config; ac_word=$2
2604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_word" >&5
2606 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 case "$ORBIT_CONFIG" in
2611 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2614 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2619 for ac_dir in $ac_dummy; do
2620 test -z "$ac_dir" && ac_dir=.
2621 if test -f $ac_dir/$ac_word; then
2622 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2627 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2631 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2632 if test -n "$ORBIT_CONFIG"; then
2633 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2635 echo "$ac_t""no" 1>&6
2638 # Extract the first word of "orbit-idl", so it can be a program name with args.
2639 set dummy orbit-idl; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 case "$ORBIT_IDL" in
2647 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2650 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2655 for ac_dir in $ac_dummy; do
2656 test -z "$ac_dir" && ac_dir=.
2657 if test -f $ac_dir/$ac_word; then
2658 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2663 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2667 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2668 if test -n "$ORBIT_IDL"; then
2669 echo "$ac_t""$ORBIT_IDL" 1>&6
2671 echo "$ac_t""no" 1>&6
2674 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2675 echo "configure:2676: checking for working ORBit environment" >&5
2676 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2680 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2681 gnome_cv_orbit_found=no
2683 gnome_cv_orbit_found=yes
2688 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2691 if test x$gnome_cv_orbit_found = xyes; then
2693 HAVE_ORBIT_FALSE='#'
2698 if test x$gnome_cv_orbit_found = xyes; then
2700 ORBIT_CFLAGS=`orbit-config --cflags client server`
2701 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2705 if test xfail = xfailure; then
2706 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2710 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2711 echo "configure:2712: checking for gnorba libraries" >&5
2712 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2716 gnome_cv_gnorba_found=no
2717 if test x$gnome_cv_orbit_found = xyes; then
2718 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2719 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2720 if test -n "$GNORBA_LIBS"; then
2721 gnome_cv_gnorba_found=yes
2727 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2730 if test x$gnome_cv_gnorba_found = xyes; then
2732 HAVE_GNORBA_FALSE='#'
2734 HAVE_GNORBA_TRUE='#'
2737 if test x$gnome_cv_orbit_found = xyes; then
2739 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2740 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2744 if test xfail = xfailure; then
2745 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2749 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2750 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2751 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2752 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2753 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2754 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2755 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2758 echo "$ac_t""no" 1>&6
2759 no_gnome_config="yes"
2763 if test x$exec_prefix = xNONE; then
2764 if test x$prefix = xNONE; then
2765 gnome_prefix=$ac_default_prefix/lib
2767 gnome_prefix=$prefix/lib
2770 gnome_prefix=`eval echo \`echo $libdir\``
2773 if test "$no_gnome_config" = "yes"; then
2774 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2775 echo "configure:2776: checking for gnomeConf.sh file in $gnome_prefix" >&5
2776 if test -f $gnome_prefix/gnomeConf.sh; then
2777 echo "$ac_t""found" 1>&6
2778 echo "loading gnome configuration from" \
2779 "$gnome_prefix/gnomeConf.sh"
2780 . $gnome_prefix/gnomeConf.sh
2783 echo "$ac_t""not found" 1>&6
2784 if test xfail = xfail; then
2785 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2794 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2795 echo "configure:2796: checking extra library \"$i\"" >&5
2799 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2800 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2803 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2804 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2807 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2808 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2810 echo "$ac_t""unknown library" 1>&6
2812 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2813 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2818 GNOME_DIR=src/gnome-console
2824 # -------------------------------------------
2825 # smartalloc (default off)
2826 # -------------------------------------------
2827 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2828 if test "${enable_smartalloc+set}" = set; then
2829 enableval="$enable_smartalloc"
2830 if test x$enableval = xno; then
2831 support_smartalloc=no
2836 if test x$support_smartalloc = xyes; then
2837 cat >> confdefs.h <<\EOF
2838 #define SMARTALLOC 1
2843 # -------------------------------------------
2844 # static-tools (default off)
2845 # -------------------------------------------
2846 # Check whether --enable-static-tools or --disable-static-tools was given.
2847 if test "${enable_static_tools+set}" = set; then
2848 enableval="$enable_static_tools"
2849 if test x$enableval = xyes; then
2850 support_static_tools=yes
2856 if test x$support_static_tools = xyes; then
2857 TTOOL_LDFLAGS="-static"
2861 # -------------------------------------------
2862 # static-fd (default off)
2863 # -------------------------------------------
2864 # Check whether --enable-static-fd or --disable-static-fd was given.
2865 if test "${enable_static_fd+set}" = set; then
2866 enableval="$enable_static_fd"
2867 if test x$enableval = xyes; then
2868 support_static_fd=yes
2874 if test x$support_static_fd = xyes; then
2875 STATIC_FD="static-bacula-fd"
2879 # -------------------------------------------
2880 # static-sd (default off)
2881 # -------------------------------------------
2882 # Check whether --enable-static-sd or --disable-static-sd was given.
2883 if test "${enable_static_sd+set}" = set; then
2884 enableval="$enable_static_sd"
2885 if test x$enableval = xyes; then
2886 support_static_sd=yes
2892 if test x$support_static_sd = xyes; then
2893 STATIC_SD="static-bacula-sd"
2897 # -------------------------------------------
2898 # static-dir (default off)
2899 # -------------------------------------------
2900 # Check whether --enable-static-dir or --disable-static-dir was given.
2901 if test "${enable_static_dir+set}" = set; then
2902 enableval="$enable_static_dir"
2903 if test x$enableval = xyes; then
2904 support_static_dir=yes
2910 if test x$support_static_dir = xyes; then
2911 STATIC_DIR="static-bacula-dir"
2915 # -------------------------------------------
2916 # static-cons (default off)
2917 # -------------------------------------------
2918 # Check whether --enable-static-cons or --disable-static-cons was given.
2919 if test "${enable_static_cons+set}" = set; then
2920 enableval="$enable_static_cons"
2921 if test x$enableval = xyes; then
2922 support_static_cons=yes
2928 if test x$support_static_cons = xyes; then
2929 STATIC_CONS="static-console"
2933 # -------------------------------------------
2934 # client_only (default off)
2935 # -------------------------------------------
2936 # Check whether --enable-client-only or --disable-client-only was given.
2937 if test "${enable_client_only+set}" = set; then
2938 enableval="$enable_client_only"
2939 if test x$enableval = xyes; then
2940 build_client_only=yes
2944 if test x$build_client_only = xno; then
2951 # ---------------------------------------------------
2952 # Check for readline support/directory (default on)
2953 # ---------------------------------------------------
2954 # this allows you to turn it completely off
2955 # Check whether --enable-readline or --disable-readline was given.
2956 if test "${enable_readline+set}" = set; then
2957 enableval="$enable_readline"
2958 if test x$enableval = xno; then
2966 if test x$support_readline = xyes; then
2967 # Check whether --with-readline or --without-readline was given.
2968 if test "${with_readline+set}" = set; then
2969 withval="$with_readline"
2971 case "$with_readline" in
2974 if test "$with_readline" != "yes"; then
2975 CONS_INC="-I${with_readline}"
2976 CONS_LDFLAGS="-L$with_readline"
2978 with_readline="/usr/include/readline"
2980 ac_safe=`echo "${with_readline}/readline.h" | sed 'y%./+-%__p_%'`
2981 echo $ac_n "checking for ${with_readline}/readline.h""... $ac_c" 1>&6
2982 echo "configure:2983: checking for ${with_readline}/readline.h" >&5
2983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 #include <${with_readline}/readline.h>
2991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2992 { (eval echo configure:2993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2994 if test -z "$ac_err"; then
2996 eval "ac_cv_header_$ac_safe=yes"
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 eval "ac_cv_header_$ac_safe=no"
3006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3007 echo "$ac_t""yes" 1>&6
3008 cat >> confdefs.h <<\EOF
3009 #define HAVE_READLINE 1
3012 CONS_LIBS="-lreadline -ltermcap"
3016 echo "$ac_t""no" 1>&6
3017 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
3027 # check for standard readline library
3028 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
3029 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
3030 echo "configure:3031: checking for /usr/include/readline/readline.h" >&5
3031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 #include </usr/include/readline/readline.h>
3039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3040 { (eval echo configure:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3042 if test -z "$ac_err"; then
3044 eval "ac_cv_header_$ac_safe=yes"
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 eval "ac_cv_header_$ac_safe=no"
3054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3055 echo "$ac_t""yes" 1>&6
3056 cat >> confdefs.h <<\EOF
3057 #define HAVE_READLINE 1
3061 CONS_INC="-I/usr/include/readline"
3062 CONS_LIBS="-lreadline -ltermcap"
3065 echo "$ac_t""no" 1>&6
3067 # Did not find standard library, so try Bacula's default
3068 ac_safe=`echo "${TOP_DIR}/depkgs/readline/readline.h" | sed 'y%./+-%__p_%'`
3069 echo $ac_n "checking for ${TOP_DIR}/depkgs/readline/readline.h""... $ac_c" 1>&6
3070 echo "configure:3071: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
3071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <${TOP_DIR}/depkgs/readline/readline.h>
3079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3080 { (eval echo configure:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3082 if test -z "$ac_err"; then
3084 eval "ac_cv_header_$ac_safe=yes"
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3090 eval "ac_cv_header_$ac_safe=no"
3094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 cat >> confdefs.h <<\EOF
3097 #define HAVE_READLINE 1
3101 CONS_INC="-I${TOP_DIR}/depkgs/readline"
3102 CONS_LIBS="-lreadline -lhistory -ltermcap"
3103 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
3104 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
3107 echo "$ac_t""no" 1>&6
3108 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
3127 # Minimal stuff for readline Makefile configuration
3131 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3132 echo "configure:3133: checking whether stat file-mode macros are broken" >&5
3133 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 #include <sys/types.h>
3140 #include <sys/stat.h>
3142 #if defined(S_ISBLK) && defined(S_IFDIR)
3143 # if S_ISBLK (S_IFDIR)
3148 #if defined(S_ISBLK) && defined(S_IFCHR)
3149 # if S_ISBLK (S_IFCHR)
3154 #if defined(S_ISLNK) && defined(S_IFREG)
3155 # if S_ISLNK (S_IFREG)
3160 #if defined(S_ISSOCK) && defined(S_IFREG)
3161 # if S_ISSOCK (S_IFREG)
3167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168 egrep "You lose" >/dev/null 2>&1; then
3170 ac_cv_header_stat_broken=yes
3173 ac_cv_header_stat_broken=no
3179 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3180 if test $ac_cv_header_stat_broken = yes; then
3181 cat >> confdefs.h <<\EOF
3182 #define STAT_MACROS_BROKEN 1
3188 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3191 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_hdr that defines DIR" >&5
3193 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <sys/types.h>
3205 if { (eval echo configure:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3207 eval "ac_cv_header_dirent_$ac_safe=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3212 eval "ac_cv_header_dirent_$ac_safe=no"
3216 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3219 cat >> confdefs.h <<EOF
3220 #define $ac_tr_hdr 1
3222 ac_header_dirent=$ac_hdr; break
3224 echo "$ac_t""no" 1>&6
3227 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3228 if test $ac_header_dirent = dirent.h; then
3229 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3230 echo "configure:3231: checking for opendir in -ldir" >&5
3231 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 ac_save_LIBS="$LIBS"
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 /* Override any gcc2 internal prototype to avoid an error. */
3241 /* We use char because int might match the return type of a gcc2
3242 builtin and then its argument prototype would still apply. */
3249 if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3251 eval "ac_cv_lib_$ac_lib_var=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 eval "ac_cv_lib_$ac_lib_var=no"
3259 LIBS="$ac_save_LIBS"
3262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3263 echo "$ac_t""yes" 1>&6
3266 echo "$ac_t""no" 1>&6
3270 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3271 echo "configure:3272: checking for opendir in -lx" >&5
3272 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 ac_save_LIBS="$LIBS"
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3290 if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3292 eval "ac_cv_lib_$ac_lib_var=yes"
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 eval "ac_cv_lib_$ac_lib_var=no"
3300 LIBS="$ac_save_LIBS"
3303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3307 echo "$ac_t""no" 1>&6
3313 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3316 echo "configure:3317: checking for $ac_func" >&5
3317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* System header to define __stub macros and hopefully few prototypes,
3324 which can conflict with char $ac_func(); below. */
3326 /* Override any gcc2 internal prototype to avoid an error. */
3327 /* We use char because int might match the return type of a gcc2
3328 builtin and then its argument prototype would still apply. */
3333 /* The GNU C library defines this for functions which it implements
3334 to always fail with ENOSYS. Some functions are actually named
3335 something starting with __ and the normal name is an alias. */
3336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3344 if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 eval "ac_cv_func_$ac_func=yes"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3351 eval "ac_cv_func_$ac_func=no"
3356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3359 cat >> confdefs.h <<EOF
3360 #define $ac_tr_func 1
3364 echo "$ac_t""no" 1>&6
3368 for ac_func in nanosleep
3370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3371 echo "configure:3372: checking for $ac_func" >&5
3372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 /* System header to define __stub macros and hopefully few prototypes,
3379 which can conflict with char $ac_func(); below. */
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3388 /* The GNU C library defines this for functions which it implements
3389 to always fail with ENOSYS. Some functions are actually named
3390 something starting with __ and the normal name is an alias. */
3391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3399 if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401 eval "ac_cv_func_$ac_func=yes"
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3406 eval "ac_cv_func_$ac_func=no"
3411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3412 echo "$ac_t""yes" 1>&6
3413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3414 cat >> confdefs.h <<EOF
3415 #define $ac_tr_func 1
3419 echo "$ac_t""no" 1>&6
3424 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3425 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3426 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3428 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3429 echo "configure:3430: checking for getopt_long" >&5
3430 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 /* System header to define __stub macros and hopefully few prototypes,
3437 which can conflict with char getopt_long(); below. */
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3446 /* The GNU C library defines this for functions which it implements
3447 to always fail with ENOSYS. Some functions are actually named
3448 something starting with __ and the normal name is an alias. */
3449 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3457 if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3459 eval "ac_cv_func_getopt_long=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3464 eval "ac_cv_func_getopt_long=no"
3469 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 cat >> confdefs.h <<\EOF
3472 #define HAVE_GETOPT_LONG 1
3476 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3482 echo "configure:3483: checking for working strcoll" >&5
3483 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 if test "$cross_compiling" = yes; then
3487 ac_cv_func_strcoll_works=no
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3495 exit (strcoll ("abc", "def") >= 0 ||
3496 strcoll ("ABC", "DEF") >= 0 ||
3497 strcoll ("123", "456") >= 0);
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3502 ac_cv_func_strcoll_works=yes
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 ac_cv_func_strcoll_works=no
3514 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3515 if test $ac_cv_func_strcoll_works = yes; then
3516 cat >> confdefs.h <<\EOF
3517 #define HAVE_STRCOLL 1
3523 for ac_hdr in varargs.h \
3524 sys/ptem.h sys/pte.h sys/stream.h
3526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $ac_hdr" >&5
3529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3538 { (eval echo configure:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3540 if test -z "$ac_err"; then
3542 eval "ac_cv_header_$ac_safe=yes"
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 eval "ac_cv_header_$ac_safe=no"
3552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3553 echo "$ac_t""yes" 1>&6
3554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3555 cat >> confdefs.h <<EOF
3556 #define $ac_tr_hdr 1
3560 echo "$ac_t""no" 1>&6
3565 # End of readline stuff
3566 # -----------------------------------------------------------------------
3569 # ---------------------------------------------------
3570 # Check for GMP support/directory
3571 # ---------------------------------------------------
3575 # [ --with-gmp[=DIR] Specify gmp library directory],
3577 # case "$with_gmp" in
3580 # if test "$with_gmp" != "yes"; then
3581 # GMP_INC="-I$with_gmp"
3583 # GMP_LDFLAGS="-L$with_gmp"
3585 # with_gmp="/usr/include"
3587 # AC_CHECK_HEADER($with_gmp/gmp.h,
3588 # [ AC_MSG_RESULT(yes)
3589 # AC_DEFINE(HAVE_GMP)
3593 # [ AC_MSG_ERROR([*** gmp library missing])
3599 # # check for standard gmp library
3600 # AC_CHECK_HEADER(/usr/include/gmp.h,
3601 # [ AC_MSG_RESULT(yes)
3602 # AC_DEFINE(HAVE_GMP)
3607 # # Did not find standard library, so use our own
3608 # AC_MSG_RESULT(yes)
3609 # AC_DEFINE(HAVE_GMP)
3612 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3614 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3615 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3621 #AC_SUBST(GMP_LDFLAGS)
3625 # -----------------------------------------------------------------------
3628 # ---------------------------------------------------
3629 # Check for CWEB support/directory
3630 # ---------------------------------------------------
3635 # [ --with-cweb[=DIR] Specify cweb library directory],
3637 # case "$with_cweb" in
3640 # if test "$with_cweb" != "yes"; then
3641 # CWEB_INC="-I$with_cweb"
3642 # CWEB_LIBS="-lcweb"
3643 # CWEB_LDFLAGS="-L$with_cweb"
3645 # with_cweb="/usr/include"
3647 # AC_CHECK_HEADER($with_cweb/cweb.h,
3648 # [ AC_MSG_RESULT(yes)
3649 # AC_DEFINE(HAVE_CWEB)
3650 # CWEB_LIBS="-lcweb"
3653 # [ AC_MSG_ERROR([*** cweb library missing])
3659 # # check for standard cweb library
3660 # AC_CHECK_HEADER(/usr/include/cweb.h,
3661 # [ AC_MSG_RESULT(yes)
3662 # AC_DEFINE(HAVE_CWEB)
3665 # CWEB_LIBS="-lcweb"
3667 # # Did not find starndard library, so use our own
3668 # AC_MSG_RESULT(yes)
3669 # AC_DEFINE(HAVE_CWEB)
3672 # CWEB=${TOP_DIR}/depkgs/cweb
3673 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3674 # CWEB_LIBS="-lcweb"
3675 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3676 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3682 #AC_SUBST(CWEB_LIBS)
3683 #AC_SUBST(CWEB_LDFLAGS)
3687 # -----------------------------------------------------------------------
3691 # -----------------------------------------------------------
3692 # Check whether user wants TCP wrappers support (default off)
3693 # -----------------------------------------------------------
3695 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3696 if test "${with_tcp_wrappers+set}" = set; then
3697 withval="$with_tcp_wrappers"
3699 if test "x$withval" != "xno" ; then
3701 LIBS="$LIBS -lwrap -lnsl"
3702 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3703 echo "configure:3704: checking for libwrap" >&5
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3708 int deny_severity = 0;
3709 int allow_severity = 0;
3710 struct request_info *req;
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 echo "$ac_t""yes" 1>&6
3719 cat >> confdefs.h <<\EOF
3720 #define HAVE_LIBWRAP 1
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3729 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3739 # ------------------------------------------
3740 # Where to place working dir
3741 # ------------------------------------------
3742 working_dir=`eval echo ${sysconfdir}/working`
3743 # Check whether --with-working-dir or --without-working-dir was given.
3744 if test "${with_working_dir+set}" = set; then
3745 withval="$with_working_dir"
3747 if test "x$withval" != "xno" ; then
3748 working_dir=$withval
3758 # ------------------------------------------
3759 # Where to place scriptdir (script files)
3760 # ------------------------------------------
3761 scriptdir=`eval echo ${sysconfdir}`
3762 # Check whether --with-scriptdir or --without-scriptdir was given.
3763 if test "${with_scriptdir+set}" = set; then
3764 withval="$with_scriptdir"
3766 if test "x$withval" != "xno" ; then
3777 # ------------------------------------------
3778 # Where to send dump email
3779 # ------------------------------------------
3780 dump_email=root@localhost
3781 # Check whether --with-dump-email or --without-dump-email was given.
3782 if test "${with_dump_email+set}" = set; then
3783 withval="$with_dump_email"
3785 if test "x$withval" != "xno" ; then
3795 # ------------------------------------------
3796 # Where to send job email
3797 # ------------------------------------------
3798 job_email=root@localhost
3799 # Check whether --with-job-email or --without-job-email was given.
3800 if test "${with_job_email+set}" = set; then
3801 withval="$with_job_email"
3803 if test "x$withval" != "xno" ; then
3813 # ------------------------------------------
3814 # Where to find smtp host
3815 # ------------------------------------------
3817 # Check whether --with-smtp_host or --without-smtp_host was given.
3818 if test "${with_smtp_host+set}" = set; then
3819 withval="$with_smtp_host"
3821 if test "x$withval" != "xno" ; then
3832 # ------------------------------------
3833 # Where to place pid files
3834 # ------------------------------------
3836 # Check whether --with-pid-dir or --without-pid-dir was given.
3837 if test "${with_pid_dir+set}" = set; then
3838 withval="$with_pid_dir"
3840 if test "x$withval" != "xno" ; then
3848 cat >> confdefs.h <<EOF
3849 #define _PATH_BACULA_PIDDIR "$piddir"
3855 # ------------------------------------
3856 # Where to place subsys "lock file"
3857 # ------------------------------------
3858 subsysdir=/var/run/subsys
3859 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3860 if test "${with_subsys_dir+set}" = set; then
3861 withval="$with_subsys_dir"
3863 if test "x$withval" != "xno" ; then
3875 # ------------------------------------
3876 # Where to start assigning ports
3877 # ------------------------------------
3879 # Check whether --with-baseport or --without-baseport was given.
3880 if test "${with_baseport+set}" = set; then
3881 withval="$with_baseport"
3883 if test "x$withval" != "xno" ; then
3892 dir_port=`expr $baseport`
3893 fd_port=`expr $baseport + 1`
3894 sd_port=`expr $fd_port + 1`
3901 # ------------------------------------------
3902 # Generate passwords
3903 # ------------------------------------------
3905 # Check whether --with-dir-password or --without-dir-password was given.
3906 if test "${with_dir_password+set}" = set; then
3907 withval="$with_dir_password"
3909 if test "x$withval" != "xno" ; then
3910 dir_password=$withval
3917 if test "x$dir_password" = "x" ; then
3918 if test "x$OPENSSL" = "xnone" ; then
3919 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3920 key=`autoconf/randpass 33`
3922 key=`openssl rand -base64 33`
3928 # Check whether --with-fd-password or --without-fd-password was given.
3929 if test "${with_fd_password+set}" = set; then
3930 withval="$with_fd_password"
3932 if test "x$withval" != "xno" ; then
3933 fd_password=$withval
3940 if test "x$fd_password" = "x" ; then
3941 if test "x$OPENSSL" = "xnone" ; then
3942 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3943 key=`autoconf/randpass 37`
3945 key=`openssl rand -base64 33`
3951 # Check whether --with-sd-password or --without-sd-password was given.
3952 if test "${with_sd_password+set}" = set; then
3953 withval="$with_sd_password"
3955 if test "x$withval" != "xno" ; then
3956 sd_password=$withval
3963 if test "x$sd_password" = "x" ; then
3964 if test "x$OPENSSL" = "xnone" ; then
3965 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3966 key=`autoconf/randpass 41`
3968 key=`openssl rand -base64 33`
3981 # ------------------------------------------------
3982 # Bacula check for various SQL database engines
3983 # ------------------------------------------------
3986 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3987 echo "configure:3988: checking for MySQL support" >&5
3988 # Check whether --with-mysql or --without-mysql was given.
3989 if test "${with_mysql+set}" = set; then
3990 withval="$with_mysql"
3992 if test "$withval" != "no"; then
3993 if test "$withval" = "yes"; then
3994 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3995 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3996 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3997 MYSQL_BINDIR=/usr/local/mysql/bin
3998 elif test -f /usr/include/mysql/mysql.h; then
3999 MYSQL_INCDIR=/usr/include/mysql
4000 MYSQL_LIBDIR=/usr/lib/mysql
4001 MYSQL_BINDIR=/usr/bin
4002 elif test -f /usr/include/mysql.h; then
4003 MYSQL_INCDIR=/usr/include
4004 MYSQL_LIBDIR=/usr/lib
4005 MYSQL_BINDIR=/usr/bin
4006 elif test -f /usr/local/include/mysql/mysql.h; then
4007 MYSQL_INCDIR=/usr/local/include/mysql
4008 MYSQL_LIBDIR=/usr/local/lib/mysql
4009 MYSQL_BINDIR=/usr/local/bin
4010 elif test -f /usr/local/include/mysql.h; then
4011 MYSQL_INCDIR=/usr/local/include
4012 MYSQL_LIBDIR=/usr/local/lib
4013 MYSQL_BINDIR=/usr/local/bin
4015 echo "$ac_t""no" 1>&6
4016 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
4019 if test -f $withval/include/mysql/mysql.h; then
4020 MYSQL_INCDIR=$withval/include/mysql
4021 MYSQL_LIBDIR=$withval/lib/mysql
4022 MYSQL_BINDIR=$withval/bin
4023 elif test -f $withval/include/mysql.h; then
4024 MYSQL_INCDIR=$withval/include
4025 MYSQL_LIBDIR=$withval/lib
4026 MYSQL_BINDIR=$withval/bin
4028 echo "$ac_t""no" 1>&6
4029 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
4032 SQL_INCLUDE=-I$MYSQL_INCDIR
4033 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
4034 SQL_BINDIR=$MYSQL_BINDIR
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_MYSQL 1
4040 echo "$ac_t""yes" 1>&6
4047 echo "$ac_t""no" 1>&6
4052 echo "$ac_t""no" 1>&6
4057 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
4058 if test "${with_embedded_mysql+set}" = set; then
4059 withval="$with_embedded_mysql"
4061 if test "$withval" != "no"; then
4062 if test "$withval" = "yes"; then
4063 if test -f /usr/local/mysql/include/mysql/mysql.h; then
4064 MYSQL_INCDIR=/usr/local/mysql/include/mysql
4065 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
4066 MYSQL_BINDIR=/usr/local/mysql/bin
4067 elif test -f /usr/include/mysql/mysql.h; then
4068 MYSQL_INCDIR=/usr/include/mysql
4069 MYSQL_LIBDIR=/usr/lib/mysql
4070 MYSQL_BINDIR=/usr/bin
4071 elif test -f /usr/include/mysql.h; then
4072 MYSQL_INCDIR=/usr/include
4073 MYSQL_LIBDIR=/usr/lib
4074 MYSQL_BINDIR=/usr/bin
4075 elif test -f /usr/local/include/mysql/mysql.h; then
4076 MYSQL_INCDIR=/usr/local/include/mysql
4077 MYSQL_LIBDIR=/usr/local/lib/mysql
4078 MYSQL_BINDIR=/usr/local/bin
4079 elif test -f /usr/local/include/mysql.h; then
4080 MYSQL_INCDIR=/usr/local/include
4081 MYSQL_LIBDIR=/usr/local/lib
4082 MYSQL_BINDIR=/usr/local/bin
4084 echo "$ac_t""no" 1>&6
4085 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
4088 if test -f $withval/include/mysql/mysql.h; then
4089 MYSQL_INCDIR=$withval/include/mysql
4090 MYSQL_LIBDIR=$withval/lib/mysql
4091 MYSQL_BINDIR=$withval/bin
4092 elif test -f $withval/include/mysql.h; then
4093 MYSQL_INCDIR=$withval/include
4094 MYSQL_LIBDIR=$withval/lib
4095 MYSQL_BINDIR=$withval/bin
4097 echo "$ac_t""no" 1>&6
4098 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
4101 SQL_INCLUDE=-I$MYSQL_INCDIR
4102 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
4103 SQL_BINDIR=$MYSQL_BINDIR
4105 cat >> confdefs.h <<\EOF
4106 #define HAVE_MYSQL 1
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_EMBEDDED_MYSQL 1
4113 echo "$ac_t""yes" 1>&6
4120 echo "$ac_t""no" 1>&6
4125 echo "$ac_t""no" 1>&6
4138 # ------------------------------------------------
4139 # Bacula check for various SQL database engines
4140 # ------------------------------------------------
4143 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
4144 echo "configure:4145: checking for SQLite support" >&5
4145 # Check whether --with-sqlite or --without-sqlite was given.
4146 if test "${with_sqlite+set}" = set; then
4147 withval="$with_sqlite"
4149 if test "$withval" != "no"; then
4150 if test "$withval" = "yes"; then
4151 if test -f /usr/local/include/sqlite.h; then
4152 SQLITE_INCDIR=/usr/local/include
4153 SQLITE_LIBDIR=/usr/local/lib
4154 SQLITE_BINDIR=/usr/local/bin
4155 elif test -f /usr/include/sqlite.h; then
4156 SQLITE_INCDIR=/usr/include
4157 SQLITE_LIBDIR=/usr/lib
4158 SQLITE_BINDIR=/usr/bin
4160 echo "$ac_t""no" 1>&6
4161 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
4164 if test -f $withval/sqlite.h; then
4165 SQLITE_INCDIR=$withval
4166 SQLITE_LIBDIR=$withval
4167 SQLITE_BINDIR=$withval
4169 echo "$ac_t""no" 1>&6
4170 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4173 SQL_INCLUDE=-I$SQLITE_INCDIR
4174 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4175 SQL_BINDIR=$SQLITE_BINDIR
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_SQLITE 1
4181 echo "$ac_t""yes" 1>&6
4188 echo "$ac_t""no" 1>&6
4193 echo "$ac_t""no" 1>&6
4206 cat >> confdefs.h <<\EOF
4207 #define PROTOTYPES 1
4211 if test -z "$CFLAGS"; then
4212 if test -z "$CCOPTS"; then
4219 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4220 echo "configure:4221: checking for mingw32 environment" >&5
4221 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4232 if { (eval echo configure:4233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4236 echo "configure: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
4245 echo "$ac_t""$ac_cv_mingw32" 1>&6
4247 test "$ac_cv_mingw32" = yes && MINGW32=yes
4250 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4251 echo "configure:4252: checking for executable suffix" >&5
4252 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4259 echo 'int main () { return 0; }' > conftest.$ac_ext
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4262 for file in conftest.*; do
4264 *.c | *.o | *.obj) ;;
4265 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4269 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4272 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4277 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4278 echo "$ac_t""${ac_cv_exeext}" 1>&6
4282 largefile_support="no"
4283 echo $ac_n "checking build system type""... $ac_c" 1>&6
4284 echo "configure:4285: checking build system type" >&5
4287 case "$build_alias" in
4290 NONE) build_alias=$host_alias ;;
4291 *) build_alias=$nonopt ;;
4295 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4296 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4297 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4298 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4299 echo "$ac_t""$build" 1>&6
4301 if test $host != $build; then
4302 ac_tool_prefix=${host_alias}-
4308 # Check whether --enable-largefile or --disable-largefile was given.
4309 if test "${enable_largefile+set}" = set; then
4310 enableval="$enable_largefile"
4314 if test "$enable_largefile" != no; then
4315 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4318 echo "configure:4319: checking for $ac_word" >&5
4319 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 if test -n "$GETCONF"; then
4323 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4327 for ac_dir in $ac_dummy; do
4328 test -z "$ac_dir" && ac_dir=.
4329 if test -f $ac_dir/$ac_word; then
4330 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4335 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4338 GETCONF="$ac_cv_prog_GETCONF"
4339 if test -n "$GETCONF"; then
4340 echo "$ac_t""$GETCONF" 1>&6
4342 echo "$ac_t""no" 1>&6
4347 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4348 echo "configure:4349: checking for CFLAGS value to request large file support" >&5
4349 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4353 ac_cv_sys_largefile_CFLAGS=no
4355 # IRIX 6.2 and later require cc -n32.
4356 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4357 if test "$GCC" != yes; then
4358 ac_cv_sys_largefile_CFLAGS=-n32
4361 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 ac_cv_sys_largefile_CFLAGS=no
4384 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4385 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4386 echo "configure:4387: checking for LDFLAGS value to request large file support" >&5
4387 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4391 ac_cv_sys_largefile_LDFLAGS=no
4396 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4397 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4398 echo "configure:4399: checking for LIBS value to request large file support" >&5
4399 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4403 ac_cv_sys_largefile_LIBS=no
4408 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4410 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4413 -D_FILE_OFFSET_BITS=*) ;;
4414 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4415 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4421 '') CPPFLAGS="$ac_flag" ;;
4422 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4430 '') CFLAGS="$ac_flag" ;;
4431 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4436 case "$ac_cv_sys_largefile_LDFLAGS" in
4440 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4441 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4444 case "$ac_cv_sys_largefile_LIBS" in
4448 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4449 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4452 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4453 echo "configure:4454: checking for _FILE_OFFSET_BITS" >&5
4454 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 ac_cv_sys_file_offset_bits=no
4459 # HP-UX 10.20 and later
4460 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4461 ac_cv_sys_file_offset_bits=64 ;;
4463 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4465 -D_FILE_OFFSET_BITS)
4466 ac_cv_sys_file_offset_bits=1 ;;
4467 -D_FILE_OFFSET_BITS=*)
4468 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4474 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4475 if test "$ac_cv_sys_file_offset_bits" != no; then
4476 cat >> confdefs.h <<EOF
4477 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4481 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4482 echo "configure:4483: checking for _LARGEFILE_SOURCE" >&5
4483 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 ac_cv_sys_largefile_source=no
4488 # HP-UX 10.20 and later
4489 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4490 ac_cv_sys_largefile_source=1 ;;
4492 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4494 -D_LARGEFILE_SOURCE)
4495 ac_cv_sys_largefile_source=1 ;;
4496 -D_LARGEFILE_SOURCE=*)
4497 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4503 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4504 if test "$ac_cv_sys_largefile_source" != no; then
4505 cat >> confdefs.h <<EOF
4506 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4510 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4511 echo "configure:4512: checking for _LARGE_FILES" >&5
4512 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 ac_cv_sys_large_files=no
4518 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4519 ac_cv_sys_large_files=1 ;;
4521 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4524 ac_cv_sys_large_files=1 ;;
4526 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4532 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4533 if test "$ac_cv_sys_large_files" != no; then
4534 cat >> confdefs.h <<EOF
4535 #define _LARGE_FILES $ac_cv_sys_large_files
4543 # If we find X, set shell vars x_includes and x_libraries to the
4544 # paths, otherwise set no_x=yes.
4545 # Uses ac_ vars as temps to allow command line to override cache and checks.
4546 # --without-x overrides everything else, but does not touch the cache.
4547 echo $ac_n "checking for X""... $ac_c" 1>&6
4548 echo "configure:4549: checking for X" >&5
4550 # Check whether --with-x or --without-x was given.
4551 if test "${with_x+set}" = set; then
4556 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4557 if test "x$with_x" = xno; then
4558 # The user explicitly disabled X.
4561 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4562 # Both variables are already set.
4565 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 # One or both of the vars are not set, and there is no cached value.
4569 ac_x_includes=NO ac_x_libraries=NO
4571 if mkdir conftestdir; then
4573 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4574 cat > Imakefile <<'EOF'
4576 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4578 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4579 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4580 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4581 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4582 for ac_extension in a so sl; do
4583 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4584 test -f $ac_im_libdir/libX11.$ac_extension; then
4585 ac_im_usrlibdir=$ac_im_libdir; break
4588 # Screen out bogus values from the imake configuration. They are
4589 # bogus both because they are the default anyway, and because
4590 # using them would break gcc on systems where it needs fixed includes.
4591 case "$ac_im_incroot" in
4593 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4595 case "$ac_im_usrlibdir" in
4597 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4604 if test "$ac_x_includes" = NO; then
4605 # Guess where to find include files, by looking for this one X11 .h file.
4606 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4608 # First, try using that file with no special directory specified.
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <$x_direct_test_include>
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4619 # We can compile using X headers with no special include directory.
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4626 # Look for the header file in a standard set of common directories.
4627 # Check X11 before X11Rn because it is often a symlink to the current release.
4630 /usr/X11R6/include \
4631 /usr/X11R5/include \
4632 /usr/X11R4/include \
4635 /usr/include/X11R6 \
4636 /usr/include/X11R5 \
4637 /usr/include/X11R4 \
4639 /usr/local/X11/include \
4640 /usr/local/X11R6/include \
4641 /usr/local/X11R5/include \
4642 /usr/local/X11R4/include \
4644 /usr/local/include/X11 \
4645 /usr/local/include/X11R6 \
4646 /usr/local/include/X11R5 \
4647 /usr/local/include/X11R4 \
4651 /usr/XFree86/include/X11 \
4654 /usr/local/include \
4655 /usr/unsupported/include \
4656 /usr/athena/include \
4657 /usr/local/x11r5/include \
4658 /usr/lpp/Xamples/include \
4660 /usr/openwin/include \
4661 /usr/openwin/share/include \
4664 if test -r "$ac_dir/$x_direct_test_include"; then
4665 ac_x_includes=$ac_dir
4671 fi # $ac_x_includes = NO
4673 if test "$ac_x_libraries" = NO; then
4674 # Check for the libraries.
4676 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4677 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4679 # See if we find them without any special options.
4680 # Don't add to $LIBS permanently.
4681 ac_save_LIBS="$LIBS"
4682 LIBS="-l$x_direct_test_library $LIBS"
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4688 ${x_direct_test_function}()
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 LIBS="$ac_save_LIBS"
4694 # We can link X programs with no special library path.
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 LIBS="$ac_save_LIBS"
4701 # First see if replacing the include by lib works.
4702 # Check X11 before X11Rn because it is often a symlink to the current release.
4703 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4714 /usr/local/X11/lib \
4715 /usr/local/X11R6/lib \
4716 /usr/local/X11R5/lib \
4717 /usr/local/X11R4/lib \
4719 /usr/local/lib/X11 \
4720 /usr/local/lib/X11R6 \
4721 /usr/local/lib/X11R5 \
4722 /usr/local/lib/X11R4 \
4726 /usr/XFree86/lib/X11 \
4730 /usr/unsupported/lib \
4732 /usr/local/x11r5/lib \
4733 /usr/lpp/Xamples/lib \
4737 /usr/openwin/share/lib \
4740 for ac_extension in a so sl; do
4741 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4742 ac_x_libraries=$ac_dir
4749 fi # $ac_x_libraries = NO
4751 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4752 # Didn't find X anywhere. Cache the known absence of X.
4753 ac_cv_have_x="have_x=no"
4755 # Record where we found X for the cache.
4756 ac_cv_have_x="have_x=yes \
4757 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4761 eval "$ac_cv_have_x"
4764 if test "$have_x" != yes; then
4765 echo "$ac_t""$have_x" 1>&6
4768 # If each of the values was on the command line, it overrides each guess.
4769 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4770 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4771 # Update the cache value to reflect the command line values.
4772 ac_cv_have_x="have_x=yes \
4773 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4774 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4777 if test "$no_x" = yes; then
4778 # Not all programs may use this symbol, but it does not hurt to define it.
4779 cat >> confdefs.h <<\EOF
4780 #define X_DISPLAY_MISSING 1
4783 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4785 if test -n "$x_includes"; then
4786 X_CFLAGS="$X_CFLAGS -I$x_includes"
4789 # It would also be nice to do this for all -L options, not just this one.
4790 if test -n "$x_libraries"; then
4791 X_LIBS="$X_LIBS -L$x_libraries"
4792 # For Solaris; some versions of Sun CC require a space after -R and
4793 # others require no space. Words are not sufficient . . . .
4794 case "`(uname -sr) 2>/dev/null`" in
4796 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4797 echo "configure:4798: checking whether -R must be followed by a space" >&5
4798 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4817 if test $ac_R_nospace = yes; then
4818 echo "$ac_t""no" 1>&6
4819 X_LIBS="$X_LIBS -R$x_libraries"
4821 LIBS="$ac_xsave_LIBS -R $x_libraries"
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4840 if test $ac_R_space = yes; then
4841 echo "$ac_t""yes" 1>&6
4842 X_LIBS="$X_LIBS -R $x_libraries"
4844 echo "$ac_t""neither works" 1>&6
4847 LIBS="$ac_xsave_LIBS"
4851 # Check for system-dependent libraries X programs must link with.
4852 # Do this before checking for the system-independent R6 libraries
4853 # (-lICE), since we may need -lsocket or whatever for X linking.
4855 if test "$ISC" = yes; then
4856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4858 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4859 # libraries were built with DECnet support. And karl@cs.umb.edu says
4860 # the Alpha needs dnet_stub (dnet does not exist).
4861 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4862 echo "configure:4863: checking for dnet_ntoa in -ldnet" >&5
4863 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 ac_save_LIBS="$LIBS"
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_lib_$ac_lib_var=no"
4891 LIBS="$ac_save_LIBS"
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4898 echo "$ac_t""no" 1>&6
4901 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4902 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4903 echo "configure:4904: checking for dnet_ntoa in -ldnet_stub" >&5
4904 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 ac_save_LIBS="$LIBS"
4909 LIBS="-ldnet_stub $LIBS"
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 eval "ac_cv_lib_$ac_lib_var=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_lib_$ac_lib_var=no"
4932 LIBS="$ac_save_LIBS"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4939 echo "$ac_t""no" 1>&6
4944 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4945 # to get the SysV transport functions.
4946 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4948 # The nsl library prevents programs from opening the X display
4949 # on Irix 5.2, according to dickey@clark.net.
4950 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4951 echo "configure:4952: checking for gethostbyname" >&5
4952 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 /* System header to define __stub macros and hopefully few prototypes,
4959 which can conflict with char gethostbyname(); below. */
4961 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */
4964 char gethostbyname();
4968 /* The GNU C library defines this for functions which it implements
4969 to always fail with ENOSYS. Some functions are actually named
4970 something starting with __ and the normal name is an alias. */
4971 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4981 eval "ac_cv_func_gethostbyname=yes"
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4986 eval "ac_cv_func_gethostbyname=no"
4991 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4995 echo "$ac_t""no" 1>&6
4998 if test $ac_cv_func_gethostbyname = no; then
4999 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5000 echo "configure:5001: checking for gethostbyname in -lnsl" >&5
5001 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5005 ac_save_LIBS="$LIBS"
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* Override any gcc2 internal prototype to avoid an error. */
5011 /* We use char because int might match the return type of a gcc2
5012 builtin and then its argument prototype would still apply. */
5013 char gethostbyname();
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5021 eval "ac_cv_lib_$ac_lib_var=yes"
5023 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5026 eval "ac_cv_lib_$ac_lib_var=no"
5029 LIBS="$ac_save_LIBS"
5032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5033 echo "$ac_t""yes" 1>&6
5034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5036 echo "$ac_t""no" 1>&6
5041 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5042 # socket/setsockopt and other routines are undefined under SCO ODT
5043 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5044 # on later versions), says simon@lia.di.epfl.ch: it contains
5045 # gethostby* variants that don't use the nameserver (or something).
5046 # -lsocket must be given before -lnsl if both are needed.
5047 # We assume that if connect needs -lnsl, so does gethostbyname.
5048 echo $ac_n "checking for connect""... $ac_c" 1>&6
5049 echo "configure:5050: checking for connect" >&5
5050 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 /* System header to define __stub macros and hopefully few prototypes,
5057 which can conflict with char connect(); below. */
5059 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5066 /* The GNU C library defines this for functions which it implements
5067 to always fail with ENOSYS. Some functions are actually named
5068 something starting with __ and the normal name is an alias. */
5069 #if defined (__stub_connect) || defined (__stub___connect)
5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5079 eval "ac_cv_func_connect=yes"
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5084 eval "ac_cv_func_connect=no"
5089 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5093 echo "$ac_t""no" 1>&6
5096 if test $ac_cv_func_connect = no; then
5097 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5098 echo "configure:5099: checking for connect in -lsocket" >&5
5099 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 ac_save_LIBS="$LIBS"
5104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5108 /* Override any gcc2 internal prototype to avoid an error. */
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 eval "ac_cv_lib_$ac_lib_var=yes"
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5124 eval "ac_cv_lib_$ac_lib_var=no"
5127 LIBS="$ac_save_LIBS"
5130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5134 echo "$ac_t""no" 1>&6
5139 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5140 echo $ac_n "checking for remove""... $ac_c" 1>&6
5141 echo "configure:5142: checking for remove" >&5
5142 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 cat > conftest.$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5148 /* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char remove(); below. */
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5158 /* The GNU C library defines this for functions which it implements
5159 to always fail with ENOSYS. Some functions are actually named
5160 something starting with __ and the normal name is an alias. */
5161 #if defined (__stub_remove) || defined (__stub___remove)
5169 if { (eval echo configure:5170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5171 eval "ac_cv_func_remove=yes"
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5176 eval "ac_cv_func_remove=no"
5181 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5182 echo "$ac_t""yes" 1>&6
5185 echo "$ac_t""no" 1>&6
5188 if test $ac_cv_func_remove = no; then
5189 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5190 echo "configure:5191: checking for remove in -lposix" >&5
5191 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 ac_save_LIBS="$LIBS"
5196 LIBS="-lposix $LIBS"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_lib_$ac_lib_var=no"
5219 LIBS="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5226 echo "$ac_t""no" 1>&6
5231 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5232 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5233 echo "configure:5234: checking for shmat" >&5
5234 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* System header to define __stub macros and hopefully few prototypes,
5241 which can conflict with char shmat(); below. */
5243 /* Override any gcc2 internal prototype to avoid an error. */
5244 /* We use char because int might match the return type of a gcc2
5245 builtin and then its argument prototype would still apply. */
5250 /* The GNU C library defines this for functions which it implements
5251 to always fail with ENOSYS. Some functions are actually named
5252 something starting with __ and the normal name is an alias. */
5253 #if defined (__stub_shmat) || defined (__stub___shmat)
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5263 eval "ac_cv_func_shmat=yes"
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5268 eval "ac_cv_func_shmat=no"
5273 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5277 echo "$ac_t""no" 1>&6
5280 if test $ac_cv_func_shmat = no; then
5281 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5282 echo "configure:5283: checking for shmat in -lipc" >&5
5283 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 ac_save_LIBS="$LIBS"
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292 /* Override any gcc2 internal prototype to avoid an error. */
5293 /* We use char because int might match the return type of a gcc2
5294 builtin and then its argument prototype would still apply. */
5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 eval "ac_cv_lib_$ac_lib_var=yes"
5305 echo "configure: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5308 eval "ac_cv_lib_$ac_lib_var=no"
5311 LIBS="$ac_save_LIBS"
5314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5318 echo "$ac_t""no" 1>&6
5324 # Check for libraries that X11R6 Xt/Xaw programs need.
5325 ac_save_LDFLAGS="$LDFLAGS"
5326 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5327 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5328 # check for ICE first), but we must link in the order -lSM -lICE or
5329 # we get undefined symbols. So assume we have SM if we have ICE.
5330 # These have to be linked with before -lX11, unlike the other
5331 # libraries we check for below, so use a different variable.
5332 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5333 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5334 echo "configure:5335: checking for IceConnectionNumber in -lICE" >&5
5335 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 ac_save_LIBS="$LIBS"
5340 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5344 /* Override any gcc2 internal prototype to avoid an error. */
5345 /* We use char because int might match the return type of a gcc2
5346 builtin and then its argument prototype would still apply. */
5347 char IceConnectionNumber();
5350 IceConnectionNumber()
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5355 eval "ac_cv_lib_$ac_lib_var=yes"
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 eval "ac_cv_lib_$ac_lib_var=no"
5363 LIBS="$ac_save_LIBS"
5366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5370 echo "$ac_t""no" 1>&6
5373 LDFLAGS="$ac_save_LDFLAGS"
5403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5405 echo "configure:5406: checking for $ac_hdr" >&5
5406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5415 { (eval echo configure:5416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5417 if test -z "$ac_err"; then
5419 eval "ac_cv_header_$ac_safe=yes"
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 eval "ac_cv_header_$ac_safe=no"
5429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5432 cat >> confdefs.h <<EOF
5433 #define $ac_tr_hdr 1
5437 echo "$ac_t""no" 1>&6
5441 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5442 echo "configure:5443: checking for ANSI C header files" >&5
5443 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5455 { (eval echo configure:5456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5457 if test -z "$ac_err"; then
5459 ac_cv_header_stdc=yes
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 ac_cv_header_stdc=no
5469 if test $ac_cv_header_stdc = yes; then
5470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5477 egrep "memchr" >/dev/null 2>&1; then
5481 ac_cv_header_stdc=no
5487 if test $ac_cv_header_stdc = yes; then
5488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5495 egrep "free" >/dev/null 2>&1; then
5499 ac_cv_header_stdc=no
5505 if test $ac_cv_header_stdc = yes; then
5506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5507 if test "$cross_compiling" = yes; then
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5514 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5515 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5517 int main () { int i; for (i = 0; i < 256; i++)
5518 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 ac_cv_header_stdc=no
5537 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5538 if test $ac_cv_header_stdc = yes; then
5539 cat >> confdefs.h <<\EOF
5540 #define STDC_HEADERS 1
5545 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5546 echo "configure:5547: checking whether sys/types.h defines makedev" >&5
5547 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #include <sys/types.h>
5555 return makedev(0, 0);
5558 if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5560 ac_cv_header_sys_types_h_makedev=yes
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5565 ac_cv_header_sys_types_h_makedev=no
5571 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5573 if test $ac_cv_header_sys_types_h_makedev = no; then
5574 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5575 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5576 echo "configure:5577: checking for sys/mkdev.h" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 #include <sys/mkdev.h>
5585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5586 { (eval echo configure:5587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5588 if test -z "$ac_err"; then
5590 eval "ac_cv_header_$ac_safe=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5596 eval "ac_cv_header_$ac_safe=no"
5600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 cat >> confdefs.h <<\EOF
5603 #define MAJOR_IN_MKDEV 1
5607 echo "$ac_t""no" 1>&6
5611 if test $ac_cv_header_sys_mkdev_h = no; then
5612 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5613 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5614 echo "configure:5615: checking for sys/sysmacros.h" >&5
5615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 #include <sys/sysmacros.h>
5623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5624 { (eval echo configure:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5626 if test -z "$ac_err"; then
5628 eval "ac_cv_header_$ac_safe=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 eval "ac_cv_header_$ac_safe=no"
5638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5640 cat >> confdefs.h <<\EOF
5641 #define MAJOR_IN_SYSMACROS 1
5645 echo "$ac_t""no" 1>&6
5652 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5655 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5656 echo "configure:5657: checking for $ac_hdr that defines DIR" >&5
5657 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5658 echo $ac_n "(cached) $ac_c" 1>&6
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 #include <sys/types.h>
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 eval "ac_cv_header_dirent_$ac_safe=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 eval "ac_cv_header_dirent_$ac_safe=no"
5680 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5681 echo "$ac_t""yes" 1>&6
5682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5683 cat >> confdefs.h <<EOF
5684 #define $ac_tr_hdr 1
5686 ac_header_dirent=$ac_hdr; break
5688 echo "$ac_t""no" 1>&6
5691 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5692 if test $ac_header_dirent = dirent.h; then
5693 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5694 echo "configure:5695: checking for opendir in -ldir" >&5
5695 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 ac_save_LIBS="$LIBS"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5704 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 eval "ac_cv_lib_$ac_lib_var=yes"
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 eval "ac_cv_lib_$ac_lib_var=no"
5723 LIBS="$ac_save_LIBS"
5726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6
5730 echo "$ac_t""no" 1>&6
5734 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5735 echo "configure:5736: checking for opendir in -lx" >&5
5736 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5740 ac_save_LIBS="$LIBS"
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5756 eval "ac_cv_lib_$ac_lib_var=yes"
5758 echo "configure: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5761 eval "ac_cv_lib_$ac_lib_var=no"
5764 LIBS="$ac_save_LIBS"
5767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5768 echo "$ac_t""yes" 1>&6
5771 echo "$ac_t""no" 1>&6
5776 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5777 echo "configure:5778: checking whether stat file-mode macros are broken" >&5
5778 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 #include <sys/types.h>
5785 #include <sys/stat.h>
5787 #if defined(S_ISBLK) && defined(S_IFDIR)
5788 # if S_ISBLK (S_IFDIR)
5793 #if defined(S_ISBLK) && defined(S_IFCHR)
5794 # if S_ISBLK (S_IFCHR)
5799 #if defined(S_ISLNK) && defined(S_IFREG)
5800 # if S_ISLNK (S_IFREG)
5805 #if defined(S_ISSOCK) && defined(S_IFREG)
5806 # if S_ISSOCK (S_IFREG)
5812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5813 egrep "You lose" >/dev/null 2>&1; then
5815 ac_cv_header_stat_broken=yes
5818 ac_cv_header_stat_broken=no
5824 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5825 if test $ac_cv_header_stat_broken = yes; then
5826 cat >> confdefs.h <<\EOF
5827 #define STAT_MACROS_BROKEN 1
5832 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5833 echo "configure:5834: checking for sys/wait.h that is POSIX.1 compatible" >&5
5834 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 #include <sys/types.h>
5841 #include <sys/wait.h>
5843 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5846 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5851 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5854 if { (eval echo configure:5855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5856 ac_cv_header_sys_wait_h=yes
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5861 ac_cv_header_sys_wait_h=no
5866 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5867 if test $ac_cv_header_sys_wait_h = yes; then
5868 cat >> confdefs.h <<\EOF
5869 #define HAVE_SYS_WAIT_H 1
5874 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5875 echo "configure:5876: checking whether time.h and sys/time.h may both be included" >&5
5876 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5882 #include <sys/types.h>
5883 #include <sys/time.h>
5889 if { (eval echo configure:5890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5891 ac_cv_header_time=yes
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5896 ac_cv_header_time=no
5901 echo "$ac_t""$ac_cv_header_time" 1>&6
5902 if test $ac_cv_header_time = yes; then
5903 cat >> confdefs.h <<\EOF
5904 #define TIME_WITH_SYS_TIME 1
5909 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5910 echo "configure:5911: checking for st_blksize in struct stat" >&5
5911 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5912 echo $ac_n "(cached) $ac_c" 1>&6
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 #include <sys/types.h>
5918 #include <sys/stat.h>
5920 struct stat s; s.st_blksize;
5923 if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5925 ac_cv_struct_st_blksize=yes
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5930 ac_cv_struct_st_blksize=no
5935 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5936 if test $ac_cv_struct_st_blksize = yes; then
5937 cat >> confdefs.h <<\EOF
5938 #define HAVE_ST_BLKSIZE 1
5943 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5944 echo "configure:5945: checking for st_blocks in struct stat" >&5
5945 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 #include <sys/types.h>
5952 #include <sys/stat.h>
5954 struct stat s; s.st_blocks;
5957 if { (eval echo configure:5958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5959 ac_cv_struct_st_blocks=yes
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 ac_cv_struct_st_blocks=no
5969 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5970 if test $ac_cv_struct_st_blocks = yes; then
5971 cat >> confdefs.h <<\EOF
5972 #define HAVE_ST_BLOCKS 1
5976 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5979 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5980 echo "configure:5981: checking whether struct tm is in sys/time.h or time.h" >&5
5981 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 #include <sys/types.h>
5990 struct tm *tp; tp->tm_sec;
5993 if { (eval echo configure:5994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5995 ac_cv_struct_tm=time.h
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 ac_cv_struct_tm=sys/time.h
6005 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6006 if test $ac_cv_struct_tm = sys/time.h; then
6007 cat >> confdefs.h <<\EOF
6008 #define TM_IN_SYS_TIME 1
6013 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
6014 echo "configure:6015: checking for tm_zone in struct tm" >&5
6015 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 #include <sys/types.h>
6022 #include <$ac_cv_struct_tm>
6024 struct tm tm; tm.tm_zone;
6027 if { (eval echo configure:6028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6029 ac_cv_struct_tm_zone=yes
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 ac_cv_struct_tm_zone=no
6039 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
6040 if test "$ac_cv_struct_tm_zone" = yes; then
6041 cat >> confdefs.h <<\EOF
6042 #define HAVE_TM_ZONE 1
6046 echo $ac_n "checking for tzname""... $ac_c" 1>&6
6047 echo "configure:6048: checking for tzname" >&5
6048 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6055 #ifndef tzname /* For SGI. */
6056 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6064 ac_cv_var_tzname=yes
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6074 echo "$ac_t""$ac_cv_var_tzname" 1>&6
6075 if test $ac_cv_var_tzname = yes; then
6076 cat >> confdefs.h <<\EOF
6077 #define HAVE_TZNAME 1
6084 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
6085 echo "configure:6086: checking for utime.h" >&5
6086 if eval "test \"`echo '$''{'ba_cv_header_utime_h'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6093 #include <sys/types.h>
6099 if { (eval echo configure:6100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6101 ba_cv_header_utime_h=yes
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6106 ba_cv_header_utime_h=no
6111 echo "$ac_t""$ba_cv_header_utime_h" 1>&6
6112 test $ba_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
6113 #define HAVE_UTIME_H 1
6117 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6118 echo "configure:6119: checking for socklen_t" >&5
6119 if eval "test \"`echo '$''{'ba_cv_header_socklen_t'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6126 #include <sys/types.h>
6127 #include <sys/socket.h>
6132 if { (eval echo configure:6133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6134 ba_cv_header_socklen_t=yes
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 ba_cv_header_socklen_t=no
6144 echo "$ac_t""$ba_cv_header_socklen_t" 1>&6
6145 test $ba_cv_header_socklen_t = yes && cat >> confdefs.h <<\EOF
6146 #define HAVE_SOCKLEN_T 1
6150 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
6151 echo "configure:6152: checking for bigendian" >&5
6152 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 if test "$cross_compiling" = yes; then
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 main(){long a=1L; char *p=(char *)&a; exit(*p);}
6163 if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6167 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6177 echo "$ac_t""$ba_cv_bigendian" 1>&6
6178 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
6179 #define HAVE_BIGENDIAN 1
6184 echo $ac_n "checking for working const""... $ac_c" 1>&6
6185 echo "configure:6186: checking for working const" >&5
6186 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6195 /* Ultrix mips cc rejects this. */
6196 typedef int charset[2]; const charset x;
6197 /* SunOS 4.1.1 cc rejects this. */
6198 char const *const *ccp;
6200 /* NEC SVR4.0.2 mips cc rejects this. */
6201 struct point {int x, y;};
6202 static struct point const zero = {0,0};
6203 /* AIX XL C 1.02.0.0 rejects this.
6204 It does not let you subtract one const X* pointer from another in an arm
6205 of an if-expression whose if-part is not a constant expression */
6206 const char *g = "string";
6207 ccp = &g + (g ? g-g : 0);
6208 /* HPUX 7.0 cc rejects these. */
6211 ccp = (char const *const *) p;
6212 { /* SCO 3.2v4 cc rejects this. */
6214 char const *s = 0 ? (char *) 0 : (char const *) 0;
6218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6220 const int *foo = &x[0];
6223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6224 typedef const int *iptr;
6228 { /* AIX XL C 1.02.0.0 rejects this saying
6229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6230 struct s { int j; const int *ap[3]; };
6231 struct s *b; b->j = 5;
6233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6239 if { (eval echo configure:6240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6243 echo "configure: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6251 echo "$ac_t""$ac_cv_c_const" 1>&6
6252 if test $ac_cv_c_const = no; then
6253 cat >> confdefs.h <<\EOF
6261 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6262 echo "configure:6263: checking how to get filesystem type" >&5
6264 # The order of these tests is important.
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 #include <sys/statvfs.h>
6269 #include <sys/fstyp.h>
6271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6272 { (eval echo configure:6273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6274 if test -z "$ac_err"; then
6276 cat >> confdefs.h <<\EOF
6277 #define FSTYPE_STATVFS 1
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6286 if test $fstype = no; then
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 #include <sys/statfs.h>
6291 #include <sys/fstyp.h>
6293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6294 { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6296 if test -z "$ac_err"; then
6298 cat >> confdefs.h <<\EOF
6299 #define FSTYPE_USG_STATFS 1
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6309 if test $fstype = no; then
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6313 #include <sys/statfs.h>
6314 #include <sys/vmount.h>
6316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6317 { (eval echo configure:6318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6319 if test -z "$ac_err"; then
6321 cat >> confdefs.h <<\EOF
6322 #define FSTYPE_AIX_STATFS 1
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6332 if test $fstype = no; then
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6339 { (eval echo configure:6340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6341 if test -z "$ac_err"; then
6343 cat >> confdefs.h <<\EOF
6344 #define FSTYPE_MNTENT 1
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6354 if test $fstype = no; then
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 #include <sys/mount.h>
6360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361 egrep "f_type;" >/dev/null 2>&1; then
6363 cat >> confdefs.h <<\EOF
6364 #define FSTYPE_STATFS 1
6371 if test $fstype = no; then
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6375 #include <sys/mount.h>
6376 #include <sys/fs_types.h>
6378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6379 { (eval echo configure:6380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6381 if test -z "$ac_err"; then
6383 cat >> confdefs.h <<\EOF
6384 #define FSTYPE_GETMNT 1
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6394 echo "$ac_t""$fstype" 1>&6
6396 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6397 echo "configure:6398: checking return type of signal handlers" >&5
6398 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 #include <sys/types.h>
6410 extern "C" void (*signal (int, void (*)(int)))(int);
6412 void (*signal ()) ();
6419 if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6421 ac_cv_type_signal=void
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 ac_cv_type_signal=int
6431 echo "$ac_t""$ac_cv_type_signal" 1>&6
6432 cat >> confdefs.h <<EOF
6433 #define RETSIGTYPE $ac_cv_type_signal
6438 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6439 echo "configure:6440: checking for type of signal functions" >&5
6440 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6451 struct sigaction sa;
6452 sigemptyset(&ss); sigsuspend(&ss);
6453 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6454 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6458 if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6460 bash_cv_signal_vintage=posix
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6472 int mask = sigmask(SIGINT);
6473 sigsetmask(mask); sigblock(mask); sigpause(mask);
6477 if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6479 bash_cv_signal_vintage=4.2bsd
6481 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6490 RETSIGTYPE foo() { }
6493 int mask = sigmask(SIGINT);
6494 sigset(SIGINT, foo); sigrelse(SIGINT);
6495 sighold(SIGINT); sigpause(SIGINT);
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 bash_cv_signal_vintage=svr3
6503 echo "configure: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 bash_cv_signal_vintage=v7
6519 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6520 if test "$bash_cv_signal_vintage" = posix; then
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_POSIX_SIGNALS 1
6525 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6526 cat >> confdefs.h <<\EOF
6527 #define HAVE_BSD_SIGNALS 1
6530 elif test "$bash_cv_signal_vintage" = svr3; then
6531 cat >> confdefs.h <<\EOF
6532 #define HAVE_USG_SIGHOLD 1
6537 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6538 echo "configure:6539: checking for mode_t" >&5
6539 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6545 #include <sys/types.h>
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6554 ac_cv_type_mode_t=yes
6557 ac_cv_type_mode_t=no
6562 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6563 if test $ac_cv_type_mode_t = no; then
6564 cat >> confdefs.h <<\EOF
6570 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6571 echo "configure:6572: checking for uid_t in sys/types.h" >&5
6572 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 #include <sys/types.h>
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 egrep "uid_t" >/dev/null 2>&1; then
6583 ac_cv_type_uid_t=yes
6592 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6593 if test $ac_cv_type_uid_t = no; then
6594 cat >> confdefs.h <<\EOF
6598 cat >> confdefs.h <<\EOF
6604 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6605 echo "configure:6606: checking for size_t" >&5
6606 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 #include <sys/types.h>
6618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6619 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6621 ac_cv_type_size_t=yes
6624 ac_cv_type_size_t=no
6629 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6630 if test $ac_cv_type_size_t = no; then
6631 cat >> confdefs.h <<\EOF
6632 #define size_t unsigned
6637 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6638 echo "configure:6639: checking for pid_t" >&5
6639 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 #include <sys/types.h>
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6654 ac_cv_type_pid_t=yes
6662 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6663 if test $ac_cv_type_pid_t = no; then
6664 cat >> confdefs.h <<\EOF
6670 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6671 echo "configure:6672: checking for off_t" >&5
6672 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 #include <sys/types.h>
6684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6685 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6687 ac_cv_type_off_t=yes
6695 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6696 if test $ac_cv_type_off_t = no; then
6697 cat >> confdefs.h <<\EOF
6703 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6704 echo "configure:6705: checking for ino_t" >&5
6705 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/types.h>
6717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6718 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6720 ac_cv_type_ino_t=yes
6728 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6729 if test $ac_cv_type_ino_t = no; then
6730 cat >> confdefs.h <<\EOF
6731 #define ino_t unsigned long
6736 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6737 echo "configure:6738: checking for dev_t" >&5
6738 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 #include <sys/types.h>
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6753 ac_cv_type_dev_t=yes
6761 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6762 if test $ac_cv_type_dev_t = no; then
6763 cat >> confdefs.h <<\EOF
6764 #define dev_t unsigned long
6769 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6770 echo "configure:6771: checking for daddr_t" >&5
6771 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <sys/types.h>
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6786 ac_cv_type_daddr_t=yes
6789 ac_cv_type_daddr_t=no
6794 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6795 if test $ac_cv_type_daddr_t = no; then
6796 cat >> confdefs.h <<\EOF
6797 #define daddr_t long
6802 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6803 echo "configure:6804: checking for major_t" >&5
6804 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6810 #include <sys/types.h>
6816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6817 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6819 ac_cv_type_major_t=yes
6822 ac_cv_type_major_t=no
6827 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6828 if test $ac_cv_type_major_t = no; then
6829 cat >> confdefs.h <<\EOF
6835 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6836 echo "configure:6837: checking for minor_t" >&5
6837 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6838 echo $ac_n "(cached) $ac_c" 1>&6
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure"
6842 #include "confdefs.h"
6843 #include <sys/types.h>
6849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6852 ac_cv_type_minor_t=yes
6855 ac_cv_type_minor_t=no
6860 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6861 if test $ac_cv_type_minor_t = no; then
6862 cat >> confdefs.h <<\EOF
6868 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6869 echo "configure:6870: checking for ssize_t" >&5
6870 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6871 echo $ac_n "(cached) $ac_c" 1>&6
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 #include <sys/types.h>
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6885 ac_cv_type_ssize_t=yes
6888 ac_cv_type_ssize_t=no
6893 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6894 if test $ac_cv_type_ssize_t = no; then
6895 cat >> confdefs.h <<\EOF
6901 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6902 echo "configure:6903: checking for st_blocks in struct stat" >&5
6903 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 #include <sys/types.h>
6910 #include <sys/stat.h>
6912 struct stat s; s.st_blocks;
6915 if { (eval echo configure:6916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6917 ac_cv_struct_st_blocks=yes
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 ac_cv_struct_st_blocks=no
6927 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6928 if test $ac_cv_struct_st_blocks = yes; then
6929 cat >> confdefs.h <<\EOF
6930 #define HAVE_ST_BLOCKS 1
6934 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6937 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6938 echo "configure:6939: checking for st_rdev in struct stat" >&5
6939 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 #include <sys/types.h>
6946 #include <sys/stat.h>
6948 struct stat s; s.st_rdev;
6951 if { (eval echo configure:6952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6953 ac_cv_struct_st_rdev=yes
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 ac_cv_struct_st_rdev=no
6963 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6964 if test $ac_cv_struct_st_rdev = yes; then
6965 cat >> confdefs.h <<\EOF
6966 #define HAVE_ST_RDEV 1
6971 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6972 echo "configure:6973: checking whether struct tm is in sys/time.h or time.h" >&5
6973 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 #include <sys/types.h>
6982 struct tm *tp; tp->tm_sec;
6985 if { (eval echo configure:6986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6987 ac_cv_struct_tm=time.h
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 ac_cv_struct_tm=sys/time.h
6997 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6998 if test $ac_cv_struct_tm = sys/time.h; then
6999 cat >> confdefs.h <<\EOF
7000 #define TM_IN_SYS_TIME 1
7005 echo $ac_n "checking for working const""... $ac_c" 1>&6
7006 echo "configure:7007: checking for working const" >&5
7007 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7016 /* Ultrix mips cc rejects this. */
7017 typedef int charset[2]; const charset x;
7018 /* SunOS 4.1.1 cc rejects this. */
7019 char const *const *ccp;
7021 /* NEC SVR4.0.2 mips cc rejects this. */
7022 struct point {int x, y;};
7023 static struct point const zero = {0,0};
7024 /* AIX XL C 1.02.0.0 rejects this.
7025 It does not let you subtract one const X* pointer from another in an arm
7026 of an if-expression whose if-part is not a constant expression */
7027 const char *g = "string";
7028 ccp = &g + (g ? g-g : 0);
7029 /* HPUX 7.0 cc rejects these. */
7032 ccp = (char const *const *) p;
7033 { /* SCO 3.2v4 cc rejects this. */
7035 char const *s = 0 ? (char *) 0 : (char const *) 0;
7039 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7041 const int *foo = &x[0];
7044 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7045 typedef const int *iptr;
7049 { /* AIX XL C 1.02.0.0 rejects this saying
7050 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7051 struct s { int j; const int *ap[3]; };
7052 struct s *b; b->j = 5;
7054 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7060 if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7072 echo "$ac_t""$ac_cv_c_const" 1>&6
7073 if test $ac_cv_c_const = no; then
7074 cat >> confdefs.h <<\EOF
7082 echo $ac_n "checking size of char""... $ac_c" 1>&6
7083 echo "configure:7084: checking size of char" >&5
7084 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 if test "$cross_compiling" = yes; then
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7096 FILE *f=fopen("conftestval", "w");
7098 fprintf(f, "%d\n", sizeof(char));
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7104 ac_cv_sizeof_char=`cat conftestval`
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7115 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7116 cat >> confdefs.h <<EOF
7117 #define SIZEOF_CHAR $ac_cv_sizeof_char
7121 echo $ac_n "checking size of short int""... $ac_c" 1>&6
7122 echo "configure:7123: checking size of short int" >&5
7123 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7126 if test "$cross_compiling" = yes; then
7127 ac_cv_sizeof_short_int=2
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7135 FILE *f=fopen("conftestval", "w");
7137 fprintf(f, "%d\n", sizeof(short int));
7141 if { (eval echo configure:7142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7143 ac_cv_sizeof_short_int=`cat conftestval`
7145 echo "configure: failed program was:" >&5
7146 cat conftest.$ac_ext >&5
7148 ac_cv_sizeof_short_int=0
7154 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
7155 cat >> confdefs.h <<EOF
7156 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
7160 echo $ac_n "checking size of int""... $ac_c" 1>&6
7161 echo "configure:7162: checking size of int" >&5
7162 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 if test "$cross_compiling" = yes; then
7168 cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7174 FILE *f=fopen("conftestval", "w");
7176 fprintf(f, "%d\n", sizeof(int));
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7182 ac_cv_sizeof_int=`cat conftestval`
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7193 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7194 cat >> confdefs.h <<EOF
7195 #define SIZEOF_INT $ac_cv_sizeof_int
7199 echo $ac_n "checking size of long int""... $ac_c" 1>&6
7200 echo "configure:7201: checking size of long int" >&5
7201 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 if test "$cross_compiling" = yes; then
7205 ac_cv_sizeof_long_int=4
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7213 FILE *f=fopen("conftestval", "w");
7215 fprintf(f, "%d\n", sizeof(long int));
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7221 ac_cv_sizeof_long_int=`cat conftestval`
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 ac_cv_sizeof_long_int=0
7232 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7233 cat >> confdefs.h <<EOF
7234 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7238 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7239 echo "configure:7240: checking size of long long int" >&5
7240 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7243 if test "$cross_compiling" = yes; then
7244 ac_cv_sizeof_long_long_int=8
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7252 FILE *f=fopen("conftestval", "w");
7254 fprintf(f, "%d\n", sizeof(long long int));
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7260 ac_cv_sizeof_long_long_int=`cat conftestval`
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 ac_cv_sizeof_long_long_int=0
7271 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7272 cat >> confdefs.h <<EOF
7273 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7277 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7278 echo "configure:7279: checking size of int *" >&5
7279 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 if test "$cross_compiling" = yes; then
7283 ac_cv_sizeof_int_p=4
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7291 FILE *f=fopen("conftestval", "w");
7293 fprintf(f, "%d\n", sizeof(int *));
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7299 ac_cv_sizeof_int_p=`cat conftestval`
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 ac_cv_sizeof_int_p=0
7310 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7311 cat >> confdefs.h <<EOF
7312 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7317 # Check for sys/types.h types
7318 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7319 echo "configure:7320: checking for u_int type" >&5
7320 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7321 echo $ac_n "(cached) $ac_c" 1>&6
7324 cat > conftest.$ac_ext <<EOF
7325 #line 7326 "configure"
7326 #include "confdefs.h"
7327 #include <sys/types.h>
7332 if { (eval echo configure:7333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7334 ac_cv_have_u_int="yes"
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7339 ac_cv_have_u_int="no"
7346 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7347 if test "x$ac_cv_have_u_int" = "xyes" ; then
7348 cat >> confdefs.h <<\EOF
7349 #define HAVE_U_INT 1
7355 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7356 echo "configure:7357: checking for intmax_t type" >&5
7357 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7361 cat > conftest.$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7364 #include <sys/types.h>
7369 if { (eval echo configure:7370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7371 ac_cv_have_intmax_t="yes"
7373 echo "configure: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7385 if { (eval echo configure:7386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7387 ac_cv_have_intmax_t="yes"
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 ac_cv_have_intmax_t="no"
7404 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7405 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7406 cat >> confdefs.h <<\EOF
7407 #define HAVE_INTMAX_T 1
7414 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7415 echo "configure:7416: checking for u_intmax_t type" >&5
7416 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 #include <sys/types.h>
7425 u_intmax_t a; a = 1;
7428 if { (eval echo configure:7429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7430 ac_cv_have_u_intmax_t="yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7441 u_intmax_t a; a = 1;
7444 if { (eval echo configure:7445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7446 ac_cv_have_u_intmax_t="yes"
7448 echo "configure: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7451 ac_cv_have_u_intmax_t="no"
7462 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7463 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7464 cat >> confdefs.h <<\EOF
7465 #define HAVE_U_INTMAX_T 1
7472 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7473 echo "configure:7474: checking for intXX_t types" >&5
7474 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 #include <sys/types.h>
7483 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7486 if { (eval echo configure:7487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7488 ac_cv_have_intxx_t="yes"
7490 echo "configure: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7493 ac_cv_have_intxx_t="no"
7500 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7501 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7502 cat >> confdefs.h <<\EOF
7503 #define HAVE_INTXX_T 1
7509 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7510 echo "configure:7511: checking for int64_t type" >&5
7511 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 #include <sys/types.h>
7523 if { (eval echo configure:7524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7525 ac_cv_have_int64_t="yes"
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7530 ac_cv_have_int64_t="no"
7537 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7538 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7539 cat >> confdefs.h <<\EOF
7540 #define HAVE_INT64_T 1
7546 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7547 echo "configure:7548: checking for u_intXX_t types" >&5
7548 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555 #include <sys/types.h>
7557 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7560 if { (eval echo configure:7561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7562 ac_cv_have_u_intxx_t="yes"
7564 echo "configure: failed program was:" >&5
7565 cat conftest.$ac_ext >&5
7567 ac_cv_have_u_intxx_t="no"
7574 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7575 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7576 cat >> confdefs.h <<\EOF
7577 #define HAVE_U_INTXX_T 1
7583 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7584 echo "configure:7585: checking for u_int64_t types" >&5
7585 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 #include <sys/types.h>
7597 if { (eval echo configure:7598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7599 ac_cv_have_u_int64_t="yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 ac_cv_have_u_int64_t="no"
7611 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7612 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7613 cat >> confdefs.h <<\EOF
7614 #define HAVE_U_INT64_T 1
7620 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7621 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7623 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7624 echo "configure:7625: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 #include <sys/bitypes.h>
7630 int8_t a; int16_t b; int32_t c;
7631 u_int8_t e; u_int16_t f; u_int32_t g;
7632 a = b = c = e = f = g = 1;
7635 if { (eval echo configure:7636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7637 cat >> confdefs.h <<\EOF
7638 #define HAVE_U_INTXX_T 1
7641 cat >> confdefs.h <<\EOF
7642 #define HAVE_INTXX_T 1
7645 cat >> confdefs.h <<\EOF
7646 #define HAVE_SYS_BITYPES_H 1
7649 echo "$ac_t""yes" 1>&6
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 echo "$ac_t""no" 1>&6
7660 if test -z "$have_u_intxx_t" ; then
7661 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7662 echo "configure:7663: checking for uintXX_t types" >&5
7663 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 #include <sys/types.h>
7672 uint8_t a; uint16_t b;
7673 uint32_t c; a = b = c = 1;
7676 if { (eval echo configure:7677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7678 ac_cv_have_uintxx_t="yes"
7680 echo "configure: failed program was:" >&5
7681 cat conftest.$ac_ext >&5
7683 ac_cv_have_uintxx_t="no"
7690 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7691 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7692 cat >> confdefs.h <<\EOF
7693 #define HAVE_UINTXX_T 1
7716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_func" >&5
7718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char $ac_func(); below. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7734 /* The GNU C library defines this for functions which it implements
7735 to always fail with ENOSYS. Some functions are actually named
7736 something starting with __ and the normal name is an alias. */
7737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7747 eval "ac_cv_func_$ac_func=yes"
7749 echo "configure: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7752 eval "ac_cv_func_$ac_func=no"
7757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7760 cat >> confdefs.h <<EOF
7761 #define $ac_tr_func 1
7765 echo "$ac_t""no" 1>&6
7766 echo 'configure: cannot find needed function.'; exit 1
7772 for ac_func in fchdir
7774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7775 echo "configure:7776: checking for $ac_func" >&5
7776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 /* System header to define __stub macros and hopefully few prototypes,
7783 which can conflict with char $ac_func(); below. */
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7792 /* The GNU C library defines this for functions which it implements
7793 to always fail with ENOSYS. Some functions are actually named
7794 something starting with __ and the normal name is an alias. */
7795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7805 eval "ac_cv_func_$ac_func=yes"
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 eval "ac_cv_func_$ac_func=no"
7815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7818 cat >> confdefs.h <<EOF
7819 #define $ac_tr_func 1
7821 cat >> confdefs.h <<\EOF
7822 #define HAVE_FCHDIR 1
7826 echo "$ac_t""no" 1>&6
7830 for ac_func in strtoll
7832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_func" >&5
7834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* System header to define __stub macros and hopefully few prototypes,
7841 which can conflict with char $ac_func(); below. */
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7850 /* The GNU C library defines this for functions which it implements
7851 to always fail with ENOSYS. Some functions are actually named
7852 something starting with __ and the normal name is an alias. */
7853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7861 if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7863 eval "ac_cv_func_$ac_func=yes"
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7868 eval "ac_cv_func_$ac_func=no"
7873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7876 cat >> confdefs.h <<EOF
7877 #define $ac_tr_func 1
7879 cat >> confdefs.h <<\EOF
7880 #define HAVE_STRTOLL 1
7884 echo "$ac_t""no" 1>&6
7889 for ac_func in chflags
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7892 echo "configure:7893: checking for $ac_func" >&5
7893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char $ac_func(); below. */
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7920 if { (eval echo configure:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7922 eval "ac_cv_func_$ac_func=yes"
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7927 eval "ac_cv_func_$ac_func=no"
7932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7935 cat >> confdefs.h <<EOF
7936 #define $ac_tr_func 1
7940 echo "$ac_t""no" 1>&6
7945 for ac_func in snprintf vsnprintf gethostid getdomainname
7947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7948 echo "configure:7949: checking for $ac_func" >&5
7949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7950 echo $ac_n "(cached) $ac_c" 1>&6
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* System header to define __stub macros and hopefully few prototypes,
7956 which can conflict with char $ac_func(); below. */
7958 /* Override any gcc2 internal prototype to avoid an error. */
7959 /* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7965 /* The GNU C library defines this for functions which it implements
7966 to always fail with ENOSYS. Some functions are actually named
7967 something starting with __ and the normal name is an alias. */
7968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7976 if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7978 eval "ac_cv_func_$ac_func=yes"
7980 echo "configure: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7983 eval "ac_cv_func_$ac_func=no"
7988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7989 echo "$ac_t""yes" 1>&6
7990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7991 cat >> confdefs.h <<EOF
7992 #define $ac_tr_func 1
7996 echo "$ac_t""no" 1>&6
8001 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
8003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8004 echo "configure:8005: checking for $ac_func" >&5
8005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8011 /* System header to define __stub macros and hopefully few prototypes,
8012 which can conflict with char $ac_func(); below. */
8014 /* Override any gcc2 internal prototype to avoid an error. */
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8021 /* The GNU C library defines this for functions which it implements
8022 to always fail with ENOSYS. Some functions are actually named
8023 something starting with __ and the normal name is an alias. */
8024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 eval "ac_cv_func_$ac_func=yes"
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 eval "ac_cv_func_$ac_func=no"
8044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8045 echo "$ac_t""yes" 1>&6
8046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8047 cat >> confdefs.h <<EOF
8048 #define $ac_tr_func 1
8052 echo "$ac_t""no" 1>&6
8057 # If resolver functions are not in libc check for -lnsl or -lresolv.
8058 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
8059 echo "configure:8060: checking for gethostbyname_r" >&5
8060 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char gethostbyname_r(); below. */
8069 /* Override any gcc2 internal prototype to avoid an error. */
8070 /* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8072 char gethostbyname_r();
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 eval "ac_cv_func_gethostbyname_r=yes"
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8094 eval "ac_cv_func_gethostbyname_r=no"
8099 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 echo "$ac_t""using libc's resolver" 1>&6
8103 echo "$ac_t""no" 1>&6
8104 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
8105 echo "configure:8106: checking for gethostbyname_r in -lnsl" >&5
8106 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 ac_save_LIBS="$LIBS"
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8114 "configure"
8114 #include "confdefs.h"
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8118 char gethostbyname_r();
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126 eval "ac_cv_lib_$ac_lib_var=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8131 eval "ac_cv_lib_$ac_lib_var=no"
8134 LIBS="$ac_save_LIBS"
8137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8138 echo "$ac_t""yes" 1>&6
8139 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
8140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8141 cat >> confdefs.h <<EOF
8142 #define $ac_tr_lib 1
8148 echo "$ac_t""no" 1>&6
8151 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
8152 echo "configure:8153: checking for gethostbyname_r in -lresolv" >&5
8153 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8157 ac_save_LIBS="$LIBS"
8158 LIBS="-lresolv $LIBS"
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165 char gethostbyname_r();
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8173 eval "ac_cv_lib_$ac_lib_var=yes"
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8178 eval "ac_cv_lib_$ac_lib_var=no"
8181 LIBS="$ac_save_LIBS"
8184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
8187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8188 cat >> confdefs.h <<EOF
8189 #define $ac_tr_lib 1
8192 LIBS="-lresolv $LIBS"
8195 echo "$ac_t""no" 1>&6
8202 # Find where sockets are (especially for Solaris)
8203 echo $ac_n "checking for socket""... $ac_c" 1>&6
8204 echo "configure:8205: checking for socket" >&5
8205 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 /* System header to define __stub macros and hopefully few prototypes,
8212 which can conflict with char socket(); below. */
8214 /* Override any gcc2 internal prototype to avoid an error. */
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8221 /* The GNU C library defines this for functions which it implements
8222 to always fail with ENOSYS. Some functions are actually named
8223 something starting with __ and the normal name is an alias. */
8224 #if defined (__stub_socket) || defined (__stub___socket)
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 eval "ac_cv_func_socket=yes"
8236 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8239 eval "ac_cv_func_socket=no"
8244 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8245 echo "$ac_t""yes" 1>&6
8246 echo "$ac_t""using libc's socket" 1>&6
8248 echo "$ac_t""no" 1>&6
8249 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
8250 echo "configure:8251: checking for socket in -lxnet" >&5
8251 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
8252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8255 ac_save_LIBS="$LIBS"
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* Override any gcc2 internal prototype to avoid an error. */
8261 /* We use char because int might match the return type of a gcc2
8262 builtin and then its argument prototype would still apply. */
8269 if { (eval echo configure:8270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 eval "ac_cv_lib_$ac_lib_var=yes"
8273 echo "configure: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 eval "ac_cv_lib_$ac_lib_var=no"
8279 LIBS="$ac_save_LIBS"
8282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
8285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8286 cat >> confdefs.h <<EOF
8287 #define $ac_tr_lib 1
8293 echo "$ac_t""no" 1>&6
8296 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8297 echo "configure:8298: checking for socket in -lsocket" >&5
8298 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
8299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8300 echo $ac_n "(cached) $ac_c" 1>&6
8302 ac_save_LIBS="$LIBS"
8303 LIBS="-lsocket $LIBS"
8304 cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8316 if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8318 eval "ac_cv_lib_$ac_lib_var=yes"
8320 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8323 eval "ac_cv_lib_$ac_lib_var=no"
8326 LIBS="$ac_save_LIBS"
8329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8330 echo "$ac_t""yes" 1>&6
8331 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
8332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8333 cat >> confdefs.h <<EOF
8334 #define $ac_tr_lib 1
8337 LIBS="-lsocket $LIBS"
8340 echo "$ac_t""no" 1>&6
8343 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8344 echo "configure:8345: checking for socket in -linet" >&5
8345 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8349 ac_save_LIBS="$LIBS"
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 /* Override any gcc2 internal prototype to avoid an error. */
8355 /* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8365 eval "ac_cv_lib_$ac_lib_var=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8370 eval "ac_cv_lib_$ac_lib_var=no"
8373 LIBS="$ac_save_LIBS"
8376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8378 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8380 cat >> confdefs.h <<EOF
8381 #define $ac_tr_lib 1
8387 echo "$ac_t""no" 1>&6
8393 for ac_func in inet_pton
8395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8396 echo "configure:8397: checking for $ac_func" >&5
8397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8398 echo $ac_n "(cached) $ac_c" 1>&6
8400 cat > conftest.$ac_ext <<EOF
8401 #line 8402 "configure"
8402 #include "confdefs.h"
8403 /* System header to define __stub macros and hopefully few prototypes,
8404 which can conflict with char $ac_func(); below. */
8406 /* Override any gcc2 internal prototype to avoid an error. */
8407 /* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8413 /* The GNU C library defines this for functions which it implements
8414 to always fail with ENOSYS. Some functions are actually named
8415 something starting with __ and the normal name is an alias. */
8416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8424 if { (eval echo configure:8425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8426 eval "ac_cv_func_$ac_func=yes"
8428 echo "configure: failed program was:" >&5
8429 cat conftest.$ac_ext >&5
8431 eval "ac_cv_func_$ac_func=no"
8436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8437 echo "$ac_t""yes" 1>&6
8438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8439 cat >> confdefs.h <<EOF
8440 #define $ac_tr_func 1
8442 cat >> confdefs.h <<\EOF
8443 #define HAVE_INET_PTON 1
8447 echo "$ac_t""no" 1>&6
8452 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8453 echo "configure:8454: checking for strftime" >&5
8454 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8455 echo $ac_n "(cached) $ac_c" 1>&6
8457 cat > conftest.$ac_ext <<EOF
8458 #line 8459 "configure"
8459 #include "confdefs.h"
8460 /* System header to define __stub macros and hopefully few prototypes,
8461 which can conflict with char strftime(); below. */
8463 /* Override any gcc2 internal prototype to avoid an error. */
8464 /* We use char because int might match the return type of a gcc2
8465 builtin and then its argument prototype would still apply. */
8470 /* The GNU C library defines this for functions which it implements
8471 to always fail with ENOSYS. Some functions are actually named
8472 something starting with __ and the normal name is an alias. */
8473 #if defined (__stub_strftime) || defined (__stub___strftime)
8481 if { (eval echo configure:8482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8483 eval "ac_cv_func_strftime=yes"
8485 echo "configure: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8488 eval "ac_cv_func_strftime=no"
8493 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8494 echo "$ac_t""yes" 1>&6
8495 cat >> confdefs.h <<\EOF
8496 #define HAVE_STRFTIME 1
8500 echo "$ac_t""no" 1>&6
8501 # strftime is in -lintl on SCO UNIX.
8502 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8503 echo "configure:8504: checking for strftime in -lintl" >&5
8504 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8506 echo $ac_n "(cached) $ac_c" 1>&6
8508 ac_save_LIBS="$LIBS"
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure"
8512 #include "confdefs.h"
8513 /* Override any gcc2 internal prototype to avoid an error. */
8514 /* We use char because int might match the return type of a gcc2
8515 builtin and then its argument prototype would still apply. */
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524 eval "ac_cv_lib_$ac_lib_var=yes"
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8529 eval "ac_cv_lib_$ac_lib_var=no"
8532 LIBS="$ac_save_LIBS"
8535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8536 echo "$ac_t""yes" 1>&6
8537 cat >> confdefs.h <<\EOF
8538 #define HAVE_STRFTIME 1
8543 echo "$ac_t""no" 1>&6
8548 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8549 echo "configure:8550: checking for vprintf" >&5
8550 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8551 echo $ac_n "(cached) $ac_c" 1>&6
8553 cat > conftest.$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8556 /* System header to define __stub macros and hopefully few prototypes,
8557 which can conflict with char vprintf(); below. */
8559 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8566 /* The GNU C library defines this for functions which it implements
8567 to always fail with ENOSYS. Some functions are actually named
8568 something starting with __ and the normal name is an alias. */
8569 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579 eval "ac_cv_func_vprintf=yes"
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8584 eval "ac_cv_func_vprintf=no"
8589 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8590 echo "$ac_t""yes" 1>&6
8591 cat >> confdefs.h <<\EOF
8592 #define HAVE_VPRINTF 1
8596 echo "$ac_t""no" 1>&6
8599 if test "$ac_cv_func_vprintf" != yes; then
8600 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8601 echo "configure:8602: checking for _doprnt" >&5
8602 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char _doprnt(); below. */
8611 /* Override any gcc2 internal prototype to avoid an error. */
8612 /* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8618 /* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8631 eval "ac_cv_func__doprnt=yes"
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 eval "ac_cv_func__doprnt=no"
8641 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8643 cat >> confdefs.h <<\EOF
8644 #define HAVE_DOPRNT 1
8648 echo "$ac_t""no" 1>&6
8653 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8654 # for constant arguments. Useless!
8655 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8656 echo "configure:8657: checking for working alloca.h" >&5
8657 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure"
8662 #include "confdefs.h"
8665 char *p = alloca(2 * sizeof(int));
8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8670 ac_cv_header_alloca_h=yes
8672 echo "configure: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8675 ac_cv_header_alloca_h=no
8680 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8681 if test $ac_cv_header_alloca_h = yes; then
8682 cat >> confdefs.h <<\EOF
8683 #define HAVE_ALLOCA_H 1
8688 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8689 echo "configure:8690: checking for alloca" >&5
8690 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8693 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8698 # define alloca __builtin_alloca
8701 # include <malloc.h>
8702 # define alloca _alloca
8705 # include <alloca.h>
8710 # ifndef alloca /* predefined by HP cc +Olibcalls */
8719 char *p = (char *) alloca(1);
8722 if { (eval echo configure:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8724 ac_cv_func_alloca_works=yes
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8729 ac_cv_func_alloca_works=no
8734 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8735 if test $ac_cv_func_alloca_works = yes; then
8736 cat >> confdefs.h <<\EOF
8737 #define HAVE_ALLOCA 1
8742 if test $ac_cv_func_alloca_works = no; then
8743 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8744 # that cause trouble. Some versions do not even contain alloca or
8745 # contain a buggy version. If you still want to use their alloca,
8746 # use ar to extract alloca.o from them instead of compiling alloca.c.
8747 ALLOCA=alloca.${ac_objext}
8748 cat >> confdefs.h <<\EOF
8753 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8754 echo "configure:8755: checking whether alloca needs Cray hooks" >&5
8755 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 #if defined(CRAY) && ! defined(CRAY2)
8768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8769 egrep "webecray" >/dev/null 2>&1; then
8780 echo "$ac_t""$ac_cv_os_cray" 1>&6
8781 if test $ac_cv_os_cray = yes; then
8782 for ac_func in _getb67 GETB67 getb67; do
8783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_func" >&5
8785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 /* System header to define __stub macros and hopefully few prototypes,
8792 which can conflict with char $ac_func(); below. */
8794 /* Override any gcc2 internal prototype to avoid an error. */
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8814 eval "ac_cv_func_$ac_func=yes"
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8819 eval "ac_cv_func_$ac_func=no"
8824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8825 echo "$ac_t""yes" 1>&6
8826 cat >> confdefs.h <<EOF
8827 #define CRAY_STACKSEG_END $ac_func
8832 echo "$ac_t""no" 1>&6
8838 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8839 echo "configure:8840: checking stack direction for C alloca" >&5
8840 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 if test "$cross_compiling" = yes; then
8844 ac_cv_c_stack_direction=0
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849 find_stack_direction ()
8851 static char *addr = 0;
8856 return find_stack_direction ();
8859 return (&dummy > addr) ? 1 : -1;
8863 exit (find_stack_direction() < 0);
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8868 ac_cv_c_stack_direction=1
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8873 ac_cv_c_stack_direction=-1
8880 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8881 cat >> confdefs.h <<EOF
8882 #define STACK_DIRECTION $ac_cv_c_stack_direction
8887 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8888 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8889 echo "configure:8890: checking for getmntent in -lsun" >&5
8890 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8892 echo $ac_n "(cached) $ac_c" 1>&6
8894 ac_save_LIBS="$LIBS"
8896 cat > conftest.$ac_ext <<EOF
8897 #line 8898 "configure"
8898 #include "confdefs.h"
8899 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8908 if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8910 eval "ac_cv_lib_$ac_lib_var=yes"
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8915 eval "ac_cv_lib_$ac_lib_var=no"
8918 LIBS="$ac_save_LIBS"
8921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8922 echo "$ac_t""yes" 1>&6
8925 echo "$ac_t""no" 1>&6
8926 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8927 echo "configure:8928: checking for getmntent in -lseq" >&5
8928 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8932 ac_save_LIBS="$LIBS"
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8936 "configure"
8936 #include "confdefs.h"
8937 /* Override any gcc2 internal prototype to avoid an error. */
8938 /* We use char because int might match the return type of a gcc2
8939 builtin and then its argument prototype would still apply. */
8946 if { (eval echo configure:8947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8948 eval "ac_cv_lib_$ac_lib_var=yes"
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 eval "ac_cv_lib_$ac_lib_var=no"
8956 LIBS="$ac_save_LIBS"
8959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8963 echo "$ac_t""no" 1>&6
8964 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8965 echo "configure:8966: checking for getmntent in -lgen" >&5
8966 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8970 ac_save_LIBS="$LIBS"
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8984 if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8986 eval "ac_cv_lib_$ac_lib_var=yes"
8988 echo "configure: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8991 eval "ac_cv_lib_$ac_lib_var=no"
8994 LIBS="$ac_save_LIBS"
8997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6
9001 echo "$ac_t""no" 1>&6
9008 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
9009 echo "configure:9010: checking for getmntent" >&5
9010 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 /* System header to define __stub macros and hopefully few prototypes,
9017 which can conflict with char getmntent(); below. */
9019 /* Override any gcc2 internal prototype to avoid an error. */
9020 /* We use char because int might match the return type of a gcc2
9021 builtin and then its argument prototype would still apply. */
9026 /* The GNU C library defines this for functions which it implements
9027 to always fail with ENOSYS. Some functions are actually named
9028 something starting with __ and the normal name is an alias. */
9029 #if defined (__stub_getmntent) || defined (__stub___getmntent)
9037 if { (eval echo configure:9038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9039 eval "ac_cv_func_getmntent=yes"
9041 echo "configure: failed program was:" >&5
9042 cat conftest.$ac_ext >&5
9044 eval "ac_cv_func_getmntent=no"
9049 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
9050 echo "$ac_t""yes" 1>&6
9051 cat >> confdefs.h <<\EOF
9052 #define HAVE_GETMNTENT 1
9056 echo "$ac_t""no" 1>&6
9059 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
9060 echo "configure:9061: checking whether closedir returns void" >&5
9061 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9064 if test "$cross_compiling" = yes; then
9065 ac_cv_func_closedir_void=yes
9067 cat > conftest.$ac_ext <<EOF
9068 #line 9069 "configure"
9069 #include "confdefs.h"
9070 #include <sys/types.h>
9071 #include <$ac_header_dirent>
9072 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
9074 if { (eval echo configure:9075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9076 ac_cv_func_closedir_void=no
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9081 ac_cv_func_closedir_void=yes
9088 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
9089 if test $ac_cv_func_closedir_void = yes; then
9090 cat >> confdefs.h <<\EOF
9091 #define CLOSEDIR_VOID 1
9096 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
9097 echo "configure:9098: checking whether setpgrp takes no argument" >&5
9098 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9101 if test "$cross_compiling" = yes; then
9102 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9108 #ifdef HAVE_UNISTD_H
9113 * If this system has a BSD-style setpgrp, which takes arguments, exit
9118 if (setpgrp(1,1) == -1)
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9127 ac_cv_func_setpgrp_void=no
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9132 ac_cv_func_setpgrp_void=yes
9140 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
9141 if test $ac_cv_func_setpgrp_void = yes; then
9142 cat >> confdefs.h <<\EOF
9143 #define SETPGRP_VOID 1
9147 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9148 echo "configure:9149: checking for working fnmatch" >&5
9149 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9152 # Some versions of Solaris or SCO have a broken fnmatch function.
9153 # So we run a test program. If we are cross-compiling, take no chance.
9154 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9155 if test "$cross_compiling" = yes; then
9156 ac_cv_func_fnmatch_works=no
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9161 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
9163 if { (eval echo configure:9164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9165 ac_cv_func_fnmatch_works=yes
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 ac_cv_func_fnmatch_works=no
9177 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
9178 if test $ac_cv_func_fnmatch_works = yes; then
9179 cat >> confdefs.h <<\EOF
9180 #define HAVE_FNMATCH 1
9187 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9188 echo "configure:9189: checking for setlocale in -lxpg4" >&5
9189 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9193 ac_save_LIBS="$LIBS"
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9198 /* Override any gcc2 internal prototype to avoid an error. */
9199 /* We use char because int might match the return type of a gcc2
9200 builtin and then its argument prototype would still apply. */
9207 if { (eval echo configure:9208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9209 eval "ac_cv_lib_$ac_lib_var=yes"
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9214 eval "ac_cv_lib_$ac_lib_var=no"
9217 LIBS="$ac_save_LIBS"
9220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9221 echo "$ac_t""yes" 1>&6
9224 echo "$ac_t""no" 1>&6
9229 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
9230 echo "configure:9231: checking for getpwnam in -lsun" >&5
9231 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
9232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9235 ac_save_LIBS="$LIBS"
9237 cat > conftest.$ac_ext <<EOF
9238 #line 9239 "configure"
9239 #include "confdefs.h"
9240 /* Override any gcc2 internal prototype to avoid an error. */
9241 /* We use char because int might match the return type of a gcc2
9242 builtin and then its argument prototype would still apply. */
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9251 eval "ac_cv_lib_$ac_lib_var=yes"
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9256 eval "ac_cv_lib_$ac_lib_var=no"
9259 LIBS="$ac_save_LIBS"
9262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9263 echo "$ac_t""yes" 1>&6
9264 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9266 cat >> confdefs.h <<EOF
9267 #define $ac_tr_lib 1
9273 echo "$ac_t""no" 1>&6
9277 for ac_hdr in zlib.h
9279 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9280 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9281 echo "configure:9282: checking for $ac_hdr" >&5
9282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9285 cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9291 { (eval echo configure:9292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9293 if test -z "$ac_err"; then
9295 eval "ac_cv_header_$ac_safe=yes"
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9301 eval "ac_cv_header_$ac_safe=no"
9305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6
9307 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9308 cat >> confdefs.h <<EOF
9309 #define $ac_tr_hdr 1
9313 echo "$ac_t""no" 1>&6
9317 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9318 echo "configure:9319: checking for deflate in -lz" >&5
9319 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9323 ac_save_LIBS="$LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 eval "ac_cv_lib_$ac_lib_var=yes"
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 eval "ac_cv_lib_$ac_lib_var=no"
9347 LIBS="$ac_save_LIBS"
9350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9354 echo "$ac_t""no" 1>&6
9358 if test x$FDLIBS = x-lz; then
9359 cat >> confdefs.h <<\EOF
9367 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
9368 echo "configure:9369: checking for pthread_create in -lpthread" >&5
9369 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9373 ac_save_LIBS="$LIBS"
9374 LIBS="-lpthread $LIBS"
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* Override any gcc2 internal prototype to avoid an error. */
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9381 char pthread_create();
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9389 eval "ac_cv_lib_$ac_lib_var=yes"
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 eval "ac_cv_lib_$ac_lib_var=no"
9397 LIBS="$ac_save_LIBS"
9400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9401 echo "$ac_t""yes" 1>&6
9402 PTHREAD_LIB="-lpthread"
9404 echo "$ac_t""no" 1>&6
9405 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9406 echo "configure:9407: checking for pthread_create in -lpthreads" >&5
9407 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9411 ac_save_LIBS="$LIBS"
9412 LIBS="-lpthreads $LIBS"
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 /* We use char because int might match the return type of a gcc2
9418 builtin and then its argument prototype would still apply. */
9419 char pthread_create();
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9427 eval "ac_cv_lib_$ac_lib_var=yes"
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9432 eval "ac_cv_lib_$ac_lib_var=no"
9435 LIBS="$ac_save_LIBS"
9438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9439 echo "$ac_t""yes" 1>&6
9440 PTHREAD_LIB="-lpthreads"
9442 echo "$ac_t""no" 1>&6
9443 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9444 echo "configure:9445: checking for pthread_create in -lc_r" >&5
9445 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9449 ac_save_LIBS="$LIBS"
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 /* Override any gcc2 internal prototype to avoid an error. */
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9457 char pthread_create();
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 eval "ac_cv_lib_$ac_lib_var=yes"
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 eval "ac_cv_lib_$ac_lib_var=no"
9473 LIBS="$ac_save_LIBS"
9476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9477 echo "$ac_t""yes" 1>&6
9480 echo "$ac_t""no" 1>&6
9481 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9482 echo "configure:9483: checking for pthread_create" >&5
9483 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9486 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 /* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char pthread_create(); below. */
9492 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495 char pthread_create();
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9512 eval "ac_cv_func_pthread_create=yes"
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9517 eval "ac_cv_func_pthread_create=no"
9522 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9526 echo "$ac_t""no" 1>&6
9540 cat >> confdefs.h <<\EOF
9547 LDFLAGS=${LDFLAGS--O}
9548 DB_LIBS="${SQL_LFLAGS}"
9550 CPPFLAGS="$CPPFLAGS"
9575 # Finally we set appropriate distribution specific
9576 # variables and defaults
9578 # PFILES are platform specific files
9579 PFILES="platforms/Makefile"
9586 PSCMD="ps -e -o pid,comm"
9588 platforms/aix/Makefile"
9589 TAPEDRIVE="/dev/rmt0.1"
9593 PTHREAD_LIB="-lpthread -lexc"
9594 if test "${CC}" = "gcc" ; then
9601 TAPEDRIVE="/dev/nrmt0"
9604 DISTVER=`uname -a |awk '{print $3}'`
9605 TAPEDRIVE="/dev/nrmt0"
9606 PTHREAD_LIB="-pthread"
9607 CFLAGS="${CFLAGS} -pthread"
9608 PSCMD="ps -x -o pid,command"
9612 platforms/bsdi/Makefile \
9613 platforms/bsdi/bacula-fd \
9614 platforms/bsdi/bacula-sd \
9615 platforms/bsdi/bacula-dir"
9616 hostname=`hostname -s`
9617 largefile_support="yes"
9620 DISTVER=`uname -a |awk '{print $3}'`
9621 TAPEDRIVE="/dev/nrst0"
9624 WLDFLAGS="-mwindows"
9628 TAPEDRIVE="/dev/nst0"
9629 PSCMD="ps -e -o pid,command"
9630 hostname=`hostname -s`
9632 platforms/darwin/Makefile"
9635 DISTVER=`cat /etc/debian_version`
9636 TAPEDRIVE="/dev/nrst0"
9637 PSCMD="ps -e -o pid,command"
9638 hostname=`hostname -s`
9641 DISTVER=`uname -a |awk '{print $3}'`
9642 PTHREAD_LIB="-pthread"
9643 CFLAGS="${CFLAGS} -pthread"
9646 TAPEDRIVE="/dev/nrsa0"
9647 PSCMD="ps -x -o pid,command"
9649 platforms/freebsd/Makefile \
9650 platforms/freebsd/bacula-fd \
9651 platforms/freebsd/bacula-sd \
9652 platforms/freebsd/bacula-dir"
9653 hostname=`hostname -s`
9654 largefile_support="yes"
9658 TAPEDRIVE="/dev/rmt/0hnb"
9662 TAPEDRIVE="/dev/rmt/0cbn"
9663 PSCMD="ps -e -o pid,comm"
9665 platforms/irix/Makefile \
9666 platforms/irix/bacula-fd \
9667 platforms/irix/bacula-sd \
9668 platforms/irix/bacula-dir"
9671 DISTVER=`uname -a |awk '{print $3}'`
9674 TAPEDRIVE="/dev/nrst0"
9675 PSCMD="ps -a -o pid,command"
9676 PTHREAD_LIB="-pthread"
9677 CFLAGS="${CFLAGS} -pthread"
9680 DISTVER=`uname -a |awk '{print $3}'`
9683 TAPEDRIVE="/dev/nrst0"
9684 PSCMD="ps -a -o pid,command"
9685 PTHREAD_LIB="-pthread"
9686 CFLAGS="${CFLAGS} -pthread"
9688 platforms/openbsd/Makefile \
9689 platforms/openbsd/bacula-fd \
9690 platforms/openbsd/bacula-sd \
9691 platforms/openbsd/bacula-dir"
9694 DISTVER=`cat /etc/redhat-release | grep release |\
9696 TAPEDRIVE="/dev/nst0"
9697 PSCMD="ps -e -o pid,command"
9699 platforms/redhat/Makefile \
9700 platforms/redhat/bacula-fd \
9701 platforms/redhat/bacula-sd \
9702 platforms/redhat/bacula-dir \
9703 platforms/redhat/bacula.spec \
9705 hostname=`hostname -s`
9708 DISTVER=`cat /etc/mandrake-release | grep release |\
9710 TAPEDRIVE="/dev/nst0"
9711 PSCMD="ps -e -o pid,command"
9713 platforms/mandrake/Makefile \
9714 platforms/mandrake/bacula-fd \
9715 platforms/mandrake/bacula-sd \
9716 platforms/mandrake/bacula-dir \
9717 platforms/mandrake/bacula.spec \
9719 hostname=`hostname -s`
9722 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
9723 TAPEDRIVE="/dev/nst0"
9724 PSCMD="ps -e -o pid,command"
9726 platforms/gentoo/Makefile \
9727 platforms/gentoo/bacula-fd \
9728 platforms/gentoo/bacula-sd \
9729 platforms/gentoo/bacula-dir"
9730 hostname=`hostname -s`
9734 DISTVER=`cat /etc/slackware-version`
9735 TAPEDRIVE="/dev/nst0"
9736 PSCMD="ps -e -o pid,command"
9737 hostname=`hostname -s`
9741 TAPEDRIVE="/dev/rmt/0cbn"
9742 PSCMD="ps -e -o pid,comm"
9744 platforms/solaris/Makefile \
9745 platforms/solaris/bacula-fd \
9746 platforms/solaris/bacula-sd \
9747 platforms/solaris/bacula-dir"
9748 if test x$DISTVER = x5.6 ; then
9749 cat >> confdefs.h <<\EOF
9750 #define HAVE_OLD_SOCKOPT 1
9756 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9758 TAPEDRIVE="/dev/nst0"
9759 PSCMD="ps -e -o pid,command"
9760 hostname=`hostname -s`
9765 TAPEDRIVE="/dev/nst0"
9766 PSCMD="ps -e -o pid,command"
9767 hostname=`hostname -s`
9771 TAPEDRIVE="/dev/nst0"
9774 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9780 LIBS="$PTHREAD_LIB $LIBS"
9782 cat >> confdefs.h <<EOF
9786 cat >> confdefs.h <<EOF
9796 MCOMMON=./autoconf/Make.common
9799 if test "x${subsysdir}" = "x${sbindir}" ; then
9802 echo "You have set both --sbindir and --with-subsys-dir"
9803 echo " equal to: ${subsysdir} "
9804 echo "This is not permitted. Please reconfigure."
9806 echo "Aborting configuration ..."
9813 cat > confcache <<\EOF
9814 # This file is a shell script that caches the results of configure
9815 # tests run on this system so they can be shared between configure
9816 # scripts and configure runs. It is not useful on other systems.
9817 # If it contains results you don't want to keep, you may remove or edit it.
9819 # By default, configure uses ./config.cache as the cache file,
9820 # creating it if it does not exist already. You can give configure
9821 # the --cache-file=FILE option to use a different cache file; that is
9822 # what configure does when it calls configure scripts in
9823 # subdirectories, so they share the cache.
9824 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9825 # config.status only pays attention to the cache file if you give it the
9826 # --recheck option to rerun configure.
9829 # The following way of writing the cache mishandles newlines in values,
9830 # but we know of no workaround that is simple, portable, and efficient.
9831 # So, don't put newlines in cache variables' values.
9832 # Ultrix sh set writes to stderr and can't be redirected directly,
9833 # and sets the high bit in the cache file unless we assign to the vars.
9835 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9837 # `set' does not quote correctly, so add quotes (double-quote substitution
9838 # turns \\\\ into \\, and sed turns \\ into \).
9840 -e "s/'/'\\\\''/g" \
9841 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9844 # `set' quotes correctly as required by POSIX, so do not add quotes.
9845 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9848 if cmp -s $cache_file confcache; then
9851 if test -w $cache_file; then
9852 echo "updating cache $cache_file"
9853 cat confcache > $cache_file
9855 echo "not updating unwritable cache $cache_file"
9860 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9863 # Let make expand exec_prefix.
9864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9866 # Any assignment to VPATH causes Sun make to only execute
9867 # the first set of double-colon rules, so remove it if not needed.
9868 # If there is a colon in the path, we need to keep it.
9869 if test "x$srcdir" = x.; then
9870 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9873 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9875 DEFS=-DHAVE_CONFIG_H
9877 # Without the "./", some shells look in PATH for config.status.
9878 : ${CONFIG_STATUS=./config.status}
9880 echo creating $CONFIG_STATUS
9881 rm -f $CONFIG_STATUS
9882 cat > $CONFIG_STATUS <<EOF
9884 # Generated automatically by configure.
9885 # Run this file to recreate the current configuration.
9886 # This directory was configured as follows,
9887 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9889 # $0 $ac_configure_args
9891 # Compiler output produced by configure, useful for debugging
9892 # configure, is in ./config.log if it exists.
9894 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9897 case "\$ac_option" in
9898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9899 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9900 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9901 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9902 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9904 -help | --help | --hel | --he | --h)
9905 echo "\$ac_cs_usage"; exit 0 ;;
9906 *) echo "\$ac_cs_usage"; exit 1 ;;
9910 ac_given_srcdir=$srcdir
9911 ac_given_INSTALL="$INSTALL"
9913 trap 'rm -fr `echo "autoconf/Make.common \
9916 rescue/linux/Makefile \
9917 rescue/freebsd/Makefile \
9918 rescue/solaris/Makefile \
9919 scripts/startmysql \
9921 scripts/btraceback \
9930 scripts/bacula.desktop.gnome1 \
9931 scripts/bacula.desktop.gnome2 \
9932 scripts/mtx-changer \
9936 src/console/Makefile \
9937 src/console/console.conf \
9938 src/gnome-console/Makefile \
9939 src/gnome-console/gnome-console.conf \
9940 src/gnome2-console/Makefile \
9941 src/gnome2-console/gnome-console.conf \
9942 src/tconsole/Makefile \
9944 src/dird/bacula-dir.conf \
9946 src/stored/Makefile \
9947 src/stored/bacula-sd.conf \
9948 src/filed/Makefile \
9949 src/filed/bacula-fd.conf \
9950 src/filed/win32/Makefile \
9952 src/cats/make_catalog_backup \
9953 src/cats/delete_catalog_backup \
9954 src/cats/alter_mysql_tables \
9955 src/cats/make_mysql_tables \
9956 src/cats/drop_mysql_tables \
9957 src/cats/create_mysql_database \
9958 src/cats/grant_mysql_privileges \
9959 src/cats/alter_sqlite_tables \
9960 src/cats/make_sqlite_tables \
9961 src/cats/drop_sqlite_tables \
9962 src/cats/create_sqlite_database \
9965 src/cats/create_bdb_database \
9966 src/cats/make_bdb_tables \
9967 src/cats/drop_bdb_tables \
9968 src/cats/make_bacula_tables \
9969 src/cats/drop_bacula_tables \
9970 src/findlib/Makefile \
9971 src/tools/Makefile \
9972 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9974 cat >> $CONFIG_STATUS <<EOF
9976 # Protect against being on the right side of a sed subst in config.status.
9977 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9978 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9982 s%@CFLAGS@%$CFLAGS%g
9983 s%@CPPFLAGS@%$CPPFLAGS%g
9984 s%@CXXFLAGS@%$CXXFLAGS%g
9985 s%@FFLAGS@%$FFLAGS%g
9987 s%@LDFLAGS@%$LDFLAGS%g
9989 s%@exec_prefix@%$exec_prefix%g
9990 s%@prefix@%$prefix%g
9991 s%@program_transform_name@%$program_transform_name%g
9992 s%@bindir@%$bindir%g
9993 s%@sbindir@%$sbindir%g
9994 s%@libexecdir@%$libexecdir%g
9995 s%@datadir@%$datadir%g
9996 s%@sysconfdir@%$sysconfdir%g
9997 s%@sharedstatedir@%$sharedstatedir%g
9998 s%@localstatedir@%$localstatedir%g
9999 s%@libdir@%$libdir%g
10000 s%@includedir@%$includedir%g
10001 s%@oldincludedir@%$oldincludedir%g
10002 s%@infodir@%$infodir%g
10003 s%@mandir@%$mandir%g
10004 s%@BUILD_DIR@%$BUILD_DIR%g
10005 s%@TRUEPRG@%$TRUEPRG%g
10006 s%@FALSEPRG@%$FALSEPRG%g
10008 s%@host_alias@%$host_alias%g
10009 s%@host_cpu@%$host_cpu%g
10010 s%@host_vendor@%$host_vendor%g
10011 s%@host_os@%$host_os%g
10012 s%@VERSION@%$VERSION%g
10014 s%@LSMDATE@%$LSMDATE%g
10018 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10019 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10020 s%@INSTALL_DATA@%$INSTALL_DATA%g
10021 s%@RANLIB@%$RANLIB%g
10031 s%@OPENSSL@%$OPENSSL%g
10033 s%@PKGCONFIG@%$PKGCONFIG%g
10034 s%@ARFLAGS@%$ARFLAGS%g
10035 s%@MAKE_SHELL@%$MAKE_SHELL%g
10036 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
10037 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
10038 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
10039 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
10040 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
10041 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
10042 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
10043 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
10044 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
10045 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
10046 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
10047 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
10048 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
10049 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
10050 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
10051 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
10052 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
10053 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
10054 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
10055 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
10056 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
10057 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
10058 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
10059 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
10060 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
10061 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
10062 s%@HAVE_DARWIN_OS_TRUE@%$HAVE_DARWIN_OS_TRUE%g
10063 s%@HAVE_DARWIN_OS_FALSE@%$HAVE_DARWIN_OS_FALSE%g
10064 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
10065 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
10066 s%@MSGFMT@%$MSGFMT%g
10067 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
10068 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
10069 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
10070 s%@GNOME_LIBS@%$GNOME_LIBS%g
10071 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
10072 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
10073 s%@ZVT_LIBS@%$ZVT_LIBS%g
10074 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
10075 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
10076 s%@ORBIT_IDL@%$ORBIT_IDL%g
10077 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
10078 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
10079 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
10080 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
10081 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
10082 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
10083 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
10084 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
10085 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
10086 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
10087 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
10088 s%@GNOME_DIR@%$GNOME_DIR%g
10089 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
10090 s%@STATIC_FD@%$STATIC_FD%g
10091 s%@STATIC_SD@%$STATIC_SD%g
10092 s%@STATIC_DIR@%$STATIC_DIR%g
10093 s%@STATIC_CONS@%$STATIC_CONS%g
10094 s%@ALL_DIRS@%$ALL_DIRS%g
10095 s%@CONS_INC@%$CONS_INC%g
10096 s%@CONS_LIBS@%$CONS_LIBS%g
10097 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
10098 s%@READLINE_SRC@%$READLINE_SRC%g
10099 s%@working_dir@%$working_dir%g
10100 s%@scriptdir@%$scriptdir%g
10101 s%@dump_email@%$dump_email%g
10102 s%@job_email@%$job_email%g
10103 s%@smtp_host@%$smtp_host%g
10104 s%@piddir@%$piddir%g
10105 s%@subsysdir@%$subsysdir%g
10106 s%@baseport@%$baseport%g
10107 s%@dir_port@%$dir_port%g
10108 s%@fd_port@%$fd_port%g
10109 s%@sd_port@%$sd_port%g
10110 s%@dir_password@%$dir_password%g
10111 s%@fd_password@%$fd_password%g
10112 s%@sd_password@%$sd_password%g
10113 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
10114 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
10115 s%@SQL_BINDIR@%$SQL_BINDIR%g
10117 s%@DB_NAME@%$DB_NAME%g
10118 s%@EXEEXT@%$EXEEXT%g
10120 s%@build_alias@%$build_alias%g
10121 s%@build_cpu@%$build_cpu%g
10122 s%@build_vendor@%$build_vendor%g
10123 s%@build_os@%$build_os%g
10124 s%@GETCONF@%$GETCONF%g
10125 s%@X_CFLAGS@%$X_CFLAGS%g
10126 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
10127 s%@X_LIBS@%$X_LIBS%g
10128 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10129 s%@LIBOBJS@%$LIBOBJS%g
10130 s%@ALLOCA@%$ALLOCA%g
10131 s%@FDLIBS@%$FDLIBS%g
10133 s%@DINCLUDE@%$DINCLUDE%g
10135 s%@DB_LIBS@%$DB_LIBS%g
10136 s%@WCFLAGS@%$WCFLAGS%g
10137 s%@WLDFLAGS@%$WLDFLAGS%g
10138 s%@OBJLIST@%$OBJLIST%g
10139 s%@hostname@%$hostname%g
10140 s%@TAPEDRIVE@%$TAPEDRIVE%g
10143 s%@DISTNAME@%$DISTNAME%g
10144 s%@DISTVER@%$DISTVER%g
10145 /@MCOMMON@/r $MCOMMON
10151 cat >> $CONFIG_STATUS <<\EOF
10153 # Split the substitutions into bite-sized pieces for seds with
10154 # small command number limits, like on Digital OSF/1 and HP-UX.
10155 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10156 ac_file=1 # Number of current file.
10157 ac_beg=1 # First line for current file.
10158 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10161 while $ac_more_lines; do
10162 if test $ac_beg -gt 1; then
10163 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10165 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10167 if test ! -s conftest.s$ac_file; then
10168 ac_more_lines=false
10169 rm -f conftest.s$ac_file
10171 if test -z "$ac_sed_cmds"; then
10172 ac_sed_cmds="sed -f conftest.s$ac_file"
10174 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10176 ac_file=`expr $ac_file + 1`
10178 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10181 if test -z "$ac_sed_cmds"; then
10186 cat >> $CONFIG_STATUS <<EOF
10188 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
10191 rescue/linux/Makefile \
10192 rescue/freebsd/Makefile \
10193 rescue/solaris/Makefile \
10194 scripts/startmysql \
10195 scripts/stopmysql \
10196 scripts/btraceback \
10204 scripts/logrotate \
10205 scripts/bacula.desktop.gnome1 \
10206 scripts/bacula.desktop.gnome2 \
10207 scripts/mtx-changer \
10211 src/console/Makefile \
10212 src/console/console.conf \
10213 src/gnome-console/Makefile \
10214 src/gnome-console/gnome-console.conf \
10215 src/gnome2-console/Makefile \
10216 src/gnome2-console/gnome-console.conf \
10217 src/tconsole/Makefile \
10218 src/dird/Makefile \
10219 src/dird/bacula-dir.conf \
10221 src/stored/Makefile \
10222 src/stored/bacula-sd.conf \
10223 src/filed/Makefile \
10224 src/filed/bacula-fd.conf \
10225 src/filed/win32/Makefile \
10226 src/cats/Makefile \
10227 src/cats/make_catalog_backup \
10228 src/cats/delete_catalog_backup \
10229 src/cats/alter_mysql_tables \
10230 src/cats/make_mysql_tables \
10231 src/cats/drop_mysql_tables \
10232 src/cats/create_mysql_database \
10233 src/cats/grant_mysql_privileges \
10234 src/cats/alter_sqlite_tables \
10235 src/cats/make_sqlite_tables \
10236 src/cats/drop_sqlite_tables \
10237 src/cats/create_sqlite_database \
10240 src/cats/create_bdb_database \
10241 src/cats/make_bdb_tables \
10242 src/cats/drop_bdb_tables \
10243 src/cats/make_bacula_tables \
10244 src/cats/drop_bacula_tables \
10245 src/findlib/Makefile \
10246 src/tools/Makefile \
10249 cat >> $CONFIG_STATUS <<\EOF
10250 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10253 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10254 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10255 *) ac_file_in="${ac_file}.in" ;;
10258 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10260 # Remove last slash and all that follows it. Not all systems have dirname.
10261 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10262 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10263 # The file is in a subdirectory.
10264 test ! -d "$ac_dir" && mkdir "$ac_dir"
10265 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10266 # A "../" for each directory in $ac_dir_suffix.
10267 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10269 ac_dir_suffix= ac_dots=
10272 case "$ac_given_srcdir" in
10274 if test -z "$ac_dots"; then top_srcdir=.
10275 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10276 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10277 *) # Relative path.
10278 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10279 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10282 case "$ac_given_INSTALL" in
10283 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10284 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10287 echo creating "$ac_file"
10289 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10291 *Makefile*) ac_comsub="1i\\
10292 # $configure_input" ;;
10296 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10298 s%@configure_input@%$configure_input%g
10299 s%@srcdir@%$srcdir%g
10300 s%@top_srcdir@%$top_srcdir%g
10301 s%@INSTALL@%$INSTALL%g
10302 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10309 # ac_d sets the value in "#define NAME VALUE" lines.
10310 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10311 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10314 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10315 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10316 ac_uB='\([ ]\)%\1#\2define\3'
10319 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10320 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10321 ac_eB='$%\1#\2define\3'
10325 if test "${CONFIG_HEADERS+set}" != set; then
10327 cat >> $CONFIG_STATUS <<EOF
10328 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
10330 cat >> $CONFIG_STATUS <<\EOF
10332 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10335 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10336 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10337 *) ac_file_in="${ac_file}.in" ;;
10340 echo creating $ac_file
10342 rm -f conftest.frag conftest.in conftest.out
10343 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10344 cat $ac_file_inputs > conftest.in
10348 # Transform confdefs.h into a sed script conftest.vals that substitutes
10349 # the proper values into config.h.in to produce config.h. And first:
10350 # Protect against being on the right side of a sed subst in config.status.
10351 # Protect against being in an unquoted here document in config.status.
10352 rm -f conftest.vals
10353 cat > conftest.hdr <<\EOF
10356 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10360 sed -n -f conftest.hdr confdefs.h > conftest.vals
10363 # This sed command replaces #undef with comments. This is necessary, for
10364 # example, in the case of _POSIX_SOURCE, which is predefined and required
10365 # on some systems where configure will not decide to define it.
10366 cat >> conftest.vals <<\EOF
10367 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10370 # Break up conftest.vals because some shells have a limit on
10371 # the size of here documents, and old seds have small limits too.
10373 rm -f conftest.tail
10376 ac_lines=`grep -c . conftest.vals`
10377 # grep -c gives empty output for an empty file on some AIX systems.
10378 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10379 # Write a limited-size here document to conftest.frag.
10380 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10381 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10383 sed -f conftest.frag conftest.in > conftest.out
10385 mv conftest.out conftest.in
10386 ' >> $CONFIG_STATUS
10387 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10388 rm -f conftest.vals
10389 mv conftest.tail conftest.vals
10391 rm -f conftest.vals
10393 cat >> $CONFIG_STATUS <<\EOF
10394 rm -f conftest.frag conftest.h
10395 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10396 cat conftest.in >> conftest.h
10398 if cmp -s $ac_file conftest.h 2>/dev/null; then
10399 echo "$ac_file is unchanged"
10402 # Remove last slash and all that follows it. Not all systems have dirname.
10403 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10405 # The file is in a subdirectory.
10406 test ! -d "$ac_dir" && mkdir "$ac_dir"
10409 mv conftest.h $ac_file
10414 cat >> $CONFIG_STATUS <<EOF
10417 cat >> $CONFIG_STATUS <<\EOF
10418 (echo "Doing make of dependencies"; make depend;)
10422 chmod +x $CONFIG_STATUS
10423 rm -fr confdefs* $ac_clean_files
10424 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10428 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
10429 chmod 755 console gconsole mtx-changer
10431 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
10432 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
10433 chmod 755 src/cats/create_mysql_database
10434 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
10435 chmod 755 src/cats/alter_mysql_tables
10436 chmod 755 src/cats/grant_mysql_privileges
10437 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
10438 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
10439 chmod 755 src/cats/create_sqlite_database
10440 chmod 755 src/cats/alter_sqlite_tables
10441 chmod 755 src/cats/sqlite
10442 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
10443 chmod 755 src/cats/create_bdb_database
10445 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
10446 largefile_support="yes"
10450 # A whole lot of hand springs to get the compiler version.
10451 # This is because gcc changed the output in version 3.0
10453 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
10454 if test "x${CCVERSION}" = "x" ; then
10455 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
10457 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
10458 if test x"${CXXVERSION}" = x ; then
10459 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
10462 if test "x${subsysdir}" = "x${sbindir}" ; then
10465 echo "You have set --sbindir and --with-subsys-dir"
10466 echo " both equal to: ${subsysdir} "
10467 echo " This is not permitted. Please reconfigure."
10468 echo "Aborting configuration ..."
10475 Configuration on `date`:
10477 Host: $host -- ${DISTNAME} ${DISTVER}
10478 Bacula version: ${VERSION} (${DATE})
10479 Source code location: ${srcdir}
10480 Install binaries: ${sbindir}
10481 Install config files: ${sysconfdir}
10482 Scripts directory: ${scriptdir}
10483 Working directory: ${working_dir}
10484 PID directory: ${piddir}
10485 Subsys directory: ${subsysdir}
10486 C Compiler: ${CC} ${CCVERSION}
10487 C++ Compiler: ${CXX} ${CXXVERSION}
10488 Compiler flags: ${WCFLAGS} ${CFLAGS}
10489 Linker flags: ${WLDFLAGS} ${LDFLAGS}
10491 Statically Linked Tools: ${support_static_tools}
10492 Statically Linked FD: ${support_static_fd}
10493 Statically Linked SD: ${support_static_sd}
10494 Statically Linked DIR: ${support_static_dir}
10495 Statically Linked CONS: ${support_static_cons}
10496 Database type: ${db_name}
10497 Database lib: ${DB_LIBS}
10499 Job Output Email: ${job_email}
10500 Traceback Email: ${dump_email}
10501 SMTP Host Address: ${smtp_host}
10502 Director Port ${dir_port}
10503 File daemon Port ${fd_port}
10504 Storage daemon Port ${sd_port}
10505 SQL binaries Directory ${SQL_BINDIR}
10507 Large file support: $largefile_support
10508 readline support: ${got_readline} ${PRTREADLINE_SRC}
10509 TCP Wrappers support: ${TCPW_MSG}
10510 ZLIB support: ${have_zlib}
10511 enable-smartalloc: ${support_smartalloc}
10512 enable-gnome: ${support_gnome}
10513 client-only: ${build_client_only}
10520 # cweb support: ${got_cweb} ${CWEB_SRC}
10521 # gmp support: ${got_gmp} ${GMP_SRC}