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-wx-console enable build of wxWidgets console [disabled]"
25 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) [disabled]"
27 --enable-smartalloc enable smartalloc debugging support [disabled]"
29 --enable-static-tools enable static tape tools [disabled]"
31 --enable-static-fd enable static File daemon [disabled]"
33 --enable-static-sd enable static Storage daemon [disabled]"
35 --enable-static-dir enable static Director [disabled]"
37 --enable-static-cons enable static Console [disabled]"
39 --enable-client-only build client (File daemon) only [disabled]"
41 --disable-conio disable conio support [enabled]
44 --disable-readline disable readline support [disable]
47 --with-readline=DIR specify readline library directory"
49 --with-tcp-wrappers=DIR enable tcpwrappers support"
51 --with-working-dir=PATH specify path of Bacula working directory"
53 --with-scriptdir=PATH specify path of Bacula scripts directory"
55 --with-dump-email=EMAIL dump email address"
57 --with-job-email=EMAIL job output email address"
59 --with-smtp-host=HOST SMTP mail host address"
61 --with-pid-dir=PATH specify location of Bacula pid files"
63 --with-subsys-dir=PATH specify location of Bacula subsys file"
65 --with-baseport=PORT specify base port address for daemons"
67 --with-dir-password=PASSWORD specify Director's password"
69 --with-fd-password=PASSWORD specify Client's password"
71 --with-sd-password=PASSWORD specify Storage daemon's password"
73 --with-dir-user=USER specify user for Director daemon"
75 --with-dir-group=GROUP specify group for Director daemon"
77 --with-sd-user=USER specify user for Storage daemon"
79 --with-sd-group=GROUP specify group for Storage daemon"
81 --with-fd-user=USER specify user for File daemon"
83 --with-fd-group=GROUP specify group for File daemon"
85 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)"
87 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
88 base install directory, defaults to /usr/local/pgsql"
91 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
92 install directory, default is to search through
93 a number of common places for the MySQL files."
96 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
97 install directory, default is to search through
98 a number of common places for the MySQL files."
101 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
102 install directory, default is to search through
103 a number of common places for the SQLite files."
105 --disable-largefile omit support for large files"
107 --with-x use the X Window System"
109 # Initialize some variables set by options.
110 # The variables have the same names as the options, with
111 # dashes changed to underlines.
113 cache_file=./config.cache
122 program_transform_name=s,x,x,
130 bindir='${exec_prefix}/bin'
131 sbindir='${exec_prefix}/sbin'
132 libexecdir='${exec_prefix}/libexec'
133 datadir='${prefix}/share'
134 sysconfdir='${prefix}/etc'
135 sharedstatedir='${prefix}/com'
136 localstatedir='${prefix}/var'
137 libdir='${exec_prefix}/lib'
138 includedir='${prefix}/include'
139 oldincludedir='/usr/include'
140 infodir='${prefix}/info'
141 mandir='${prefix}/man'
143 # Initialize some other variables.
146 SHELL=${CONFIG_SHELL-/bin/sh}
147 # Maximum number of lines to put in a shell here document.
154 # If the previous option needs an argument, assign it.
155 if test -n "$ac_prev"; then
156 eval "$ac_prev=\$ac_option"
162 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir="$ac_optarg" ;;
175 -build | --build | --buil | --bui | --bu)
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build="$ac_optarg" ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file="$ac_optarg" ;;
187 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
189 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
191 datadir="$ac_optarg" ;;
193 -disable-* | --disable-*)
194 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}=no" ;;
202 -enable-* | --enable-*)
203 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}='$ac_optarg'" ;;
215 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
216 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
217 | --exec | --exe | --ex)
218 ac_prev=exec_prefix ;;
219 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
220 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
221 | --exec=* | --exe=* | --ex=*)
222 exec_prefix="$ac_optarg" ;;
224 -gas | --gas | --ga | --g)
225 # Obsolete; use --with-gas.
228 -help | --help | --hel | --he)
229 # Omit some internal or obsolete options to make the list less imposing.
230 # This message is too long to be a string in the A/UX 3.1 sh.
232 Usage: configure [options] [host]
233 Options: [defaults in brackets after descriptions]
235 --cache-file=FILE cache test results in FILE
236 --help print this message
237 --no-create do not create output files
238 --quiet, --silent do not print \`checking...' messages
239 --version print the version of autoconf that created configure
240 Directory and file names:
241 --prefix=PREFIX install architecture-independent files in PREFIX
243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
245 --bindir=DIR user executables in DIR [EPREFIX/bin]
246 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
247 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
248 --datadir=DIR read-only architecture-independent data in DIR
250 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
251 --sharedstatedir=DIR modifiable architecture-independent data in DIR
253 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
254 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
255 --includedir=DIR C header files in DIR [PREFIX/include]
256 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
257 --infodir=DIR info documentation in DIR [PREFIX/info]
258 --mandir=DIR man documentation in DIR [PREFIX/man]
259 --srcdir=DIR find the sources in DIR [configure dir or ..]
260 --program-prefix=PREFIX prepend PREFIX to installed program names
261 --program-suffix=SUFFIX append SUFFIX to installed program names
262 --program-transform-name=PROGRAM
263 run sed PROGRAM on installed program names
267 --build=BUILD configure for building on BUILD [BUILD=HOST]
268 --host=HOST configure for HOST [guessed]
269 --target=TARGET configure for TARGET [TARGET=HOST]
270 Features and packages:
271 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
272 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
273 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
274 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
275 --x-includes=DIR X include files are in DIR
276 --x-libraries=DIR X library files are in DIR
278 if test -n "$ac_help"; then
279 echo "--enable and --with options recognized:$ac_help"
283 -host | --host | --hos | --ho)
285 -host=* | --host=* | --hos=* | --ho=*)
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir="$ac_optarg" ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir="$ac_optarg" ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
303 libdir="$ac_optarg" ;;
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir="$ac_optarg" ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir="$ac_optarg" ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
324 mandir="$ac_optarg" ;;
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir="$ac_optarg" ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
350 prefix="$ac_optarg" ;;
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix="$ac_optarg" ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix="$ac_optarg" ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name="$ac_optarg" ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir="$ac_optarg" ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir="$ac_optarg" ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
412 srcdir="$ac_optarg" ;;
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir="$ac_optarg" ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target="$ac_optarg" ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers)
430 echo "configure generated by autoconf version 2.13"
434 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}='$ac_optarg'" ;;
446 -without-* | --without-*)
447 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}=no" ;;
456 # Obsolete; use --with-x.
459 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
460 | --x-incl | --x-inc | --x-in | --x-i)
461 ac_prev=x_includes ;;
462 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
463 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
464 x_includes="$ac_optarg" ;;
466 -x-libraries | --x-libraries | --x-librarie | --x-librari \
467 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
468 ac_prev=x_libraries ;;
469 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
470 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
471 x_libraries="$ac_optarg" ;;
473 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
477 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
478 echo "configure: warning: $ac_option: invalid host type" 1>&2
480 if test "x$nonopt" != xNONE; then
481 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
489 if test -n "$ac_prev"; then
490 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
493 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
495 # File descriptor usage:
498 # 2 errors and warnings
499 # 3 some systems may open it to /dev/tty
500 # 4 used on the Kubota Titan
501 # 6 checking for... messages and results
502 # 5 compiler messages saved in config.log
503 if test "$silent" = yes; then
511 This file contains any messages produced by compilers while
512 running configure, to aid debugging if configure makes a mistake.
515 # Strip out --no-create and --no-recursion so they do not pile up.
516 # Also quote any args containing shell metacharacters.
521 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
522 | --no-cr | --no-c) ;;
523 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
524 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
526 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
527 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
532 # Only set these to C if already set. These must not be set unconditionally
533 # because not all systems understand e.g. LANG=C (notably SCO).
534 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
535 # Non-C LC_CTYPE values break the ctype check.
536 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
537 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
538 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
539 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
542 rm -rf conftest* confdefs.h
543 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
546 # A filename unique to this package, relative to the directory that
547 # configure is in, which we can look for to find out if srcdir is correct.
548 ac_unique_file=src/version.h
550 # Find the source files, if location was not specified.
551 if test -z "$srcdir"; then
552 ac_srcdir_defaulted=yes
553 # Try the directory containing this script, then its parent.
555 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
556 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
558 if test ! -r $srcdir/$ac_unique_file; then
562 ac_srcdir_defaulted=no
564 if test ! -r $srcdir/$ac_unique_file; then
565 if test "$ac_srcdir_defaulted" = yes; then
566 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
568 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
571 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
573 # Prefer explicitly selected file to automatically selected ones.
574 if test -z "$CONFIG_SITE"; then
575 if test "x$prefix" != xNONE; then
576 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
578 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
581 for ac_site_file in $CONFIG_SITE; do
582 if test -r "$ac_site_file"; then
583 echo "loading site script $ac_site_file"
588 if test -r "$cache_file"; then
589 echo "loading cache $cache_file"
592 echo "creating cache $cache_file"
597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
598 ac_cpp='$CPP $CPPFLAGS'
599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
601 cross_compiling=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
614 ac_n= ac_c='\c' ac_t=
624 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
625 if test -f $ac_dir/install-sh; then
627 ac_install_sh="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh; then
631 ac_install_sh="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
638 ac_config_guess=$ac_aux_dir/config.guess
639 ac_config_sub=$ac_aux_dir/config.sub
640 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
649 # Extract the first word of "$ac_prog", so it can be a program name with args.
650 set dummy $ac_prog; ac_word=$2
651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
652 echo "configure:653: checking for $ac_word" >&5
653 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
654 echo $ac_n "(cached) $ac_c" 1>&6
658 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
661 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
666 for ac_dir in $ac_dummy; do
667 test -z "$ac_dir" && ac_dir=.
668 if test -f $ac_dir/$ac_word; then
669 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
677 TRUEPRG="$ac_cv_path_TRUEPRG"
678 if test -n "$TRUEPRG"; then
679 echo "$ac_t""$TRUEPRG" 1>&6
681 echo "$ac_t""no" 1>&6
684 test -n "$TRUEPRG" && break
686 test -n "$TRUEPRG" || TRUEPRG=":"
690 # Extract the first word of "$ac_prog", so it can be a program name with args.
691 set dummy $ac_prog; ac_word=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
699 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
702 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
707 for ac_dir in $ac_dummy; do
708 test -z "$ac_dir" && ac_dir=.
709 if test -f $ac_dir/$ac_word; then
710 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
718 FALSEPRG="$ac_cv_path_FALSEPRG"
719 if test -n "$FALSEPRG"; then
720 echo "$ac_t""$FALSEPRG" 1>&6
722 echo "$ac_t""no" 1>&6
725 test -n "$FALSEPRG" && break
727 test -n "$FALSEPRG" || FALSEPRG=":"
732 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
733 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
734 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
735 echo "configuring for bacula $VERSION ($DATE)"
739 # Extract the first word of "gcc", so it can be a program name with args.
740 set dummy gcc; ac_word=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 echo "configure:743: checking for $ac_word" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 if test -n "$CC"; then
747 ac_cv_prog_CC="$CC" # Let the user override the test.
749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 for ac_dir in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir=.
753 if test -f $ac_dir/$ac_word; then
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
765 echo "$ac_t""no" 1>&6
768 if test -z "$CC"; then
769 # Extract the first word of "cc", so it can be a program name with args.
770 set dummy cc; ac_word=$2
771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772 echo "configure:773: checking for $ac_word" >&5
773 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 if test -n "$CC"; then
777 ac_cv_prog_CC="$CC" # Let the user override the test.
779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
782 for ac_dir in $ac_dummy; do
783 test -z "$ac_dir" && ac_dir=.
784 if test -f $ac_dir/$ac_word; then
785 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
794 if test $ac_prog_rejected = yes; then
795 # We found a bogon in the path, so make sure we never use it.
796 set dummy $ac_cv_prog_CC
798 if test $# -gt 0; then
799 # We chose a different compiler from the bogus one.
800 # However, it has the same basename, so the bogon will be chosen
801 # first if we set CC to just the basename; use the full file name.
803 set dummy "$ac_dir/$ac_word" "$@"
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
814 echo "$ac_t""no" 1>&6
817 if test -z "$CC"; then
820 # Extract the first word of "cl", so it can be a program name with args.
821 set dummy cl; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
843 if test -n "$CC"; then
844 echo "$ac_t""$CC" 1>&6
846 echo "$ac_t""no" 1>&6
851 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
855 echo "configure:856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
859 ac_cpp='$CPP $CPPFLAGS'
860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
862 cross_compiling=$ac_cv_prog_cc_cross
864 cat > conftest.$ac_ext << EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 if { (eval echo configure:872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
872 ac_cv_prog_cc_works=yes
873 # If we can't run a trivial program, we are probably using a cross compiler.
874 if (./conftest; exit) 2>/dev/null; then
875 ac_cv_prog_cc_cross=no
877 ac_cv_prog_cc_cross=yes
880 echo "configure: failed program was:" >&5
881 cat conftest.$ac_ext >&5
882 ac_cv_prog_cc_works=no
886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
887 ac_cpp='$CPP $CPPFLAGS'
888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
890 cross_compiling=$ac_cv_prog_cc_cross
892 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
893 if test $ac_cv_prog_cc_works = no; then
894 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
898 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
899 cross_compiling=$ac_cv_prog_cc_cross
901 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
902 echo "configure:903: checking whether we are using GNU C" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 cat > conftest.c <<EOF
911 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
918 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
920 if test $ac_cv_prog_gcc = yes; then
926 ac_test_CFLAGS="${CFLAGS+set}"
927 ac_save_CFLAGS="$CFLAGS"
929 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
930 echo "configure:931: checking whether ${CC-cc} accepts -g" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 echo 'void f(){}' > conftest.c
935 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
945 if test "$ac_test_CFLAGS" = set; then
946 CFLAGS="$ac_save_CFLAGS"
947 elif test $ac_cv_prog_cc_g = yes; then
948 if test "$GCC" = yes; then
954 if test "$GCC" = yes; then
961 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
963 # Extract the first word of "$ac_prog", so it can be a program name with args.
964 set dummy $ac_prog; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test -n "$CXX"; then
971 ac_cv_prog_CXX="$CXX" # Let the user override the test.
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
975 for ac_dir in $ac_dummy; do
976 test -z "$ac_dir" && ac_dir=.
977 if test -f $ac_dir/$ac_word; then
978 ac_cv_prog_CXX="$ac_prog"
985 CXX="$ac_cv_prog_CXX"
986 if test -n "$CXX"; then
987 echo "$ac_t""$CXX" 1>&6
989 echo "$ac_t""no" 1>&6
992 test -n "$CXX" && break
994 test -n "$CXX" || CXX="gcc"
997 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
998 echo "configure:999: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1002 ac_cpp='$CXXCPP $CPPFLAGS'
1003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1005 cross_compiling=$ac_cv_prog_cxx_cross
1007 cat > conftest.$ac_ext << EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1012 int main(){return(0);}
1014 if { (eval echo configure:1015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1015 ac_cv_prog_cxx_works=yes
1016 # If we can't run a trivial program, we are probably using a cross compiler.
1017 if (./conftest; exit) 2>/dev/null; then
1018 ac_cv_prog_cxx_cross=no
1020 ac_cv_prog_cxx_cross=yes
1023 echo "configure: failed program was:" >&5
1024 cat conftest.$ac_ext >&5
1025 ac_cv_prog_cxx_works=no
1029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1030 ac_cpp='$CPP $CPPFLAGS'
1031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1033 cross_compiling=$ac_cv_prog_cc_cross
1035 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1036 if test $ac_cv_prog_cxx_works = no; then
1037 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1039 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1040 echo "configure:1041: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1041 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1042 cross_compiling=$ac_cv_prog_cxx_cross
1044 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether we are using GNU C++" >&5
1046 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1049 cat > conftest.C <<EOF
1054 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1061 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1063 if test $ac_cv_prog_gxx = yes; then
1069 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1070 ac_save_CXXFLAGS="$CXXFLAGS"
1072 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1073 echo "configure:1074: checking whether ${CXX-g++} accepts -g" >&5
1074 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 echo 'void f(){}' > conftest.cc
1078 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1079 ac_cv_prog_cxx_g=yes
1087 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1088 if test "$ac_test_CXXFLAGS" = set; then
1089 CXXFLAGS="$ac_save_CXXFLAGS"
1090 elif test $ac_cv_prog_cxx_g = yes; then
1091 if test "$GXX" = yes; then
1097 if test "$GXX" = yes; then
1104 if test "x$CC" != xcc; then
1105 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1106 echo "configure:1107: checking whether $CC and cc understand -c and -o together" >&5
1108 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether cc understands -c and -o together" >&5
1111 set dummy $CC; ac_cc="`echo $2 |
1112 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1113 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 echo 'foo(){}' > conftest.c
1117 # Make sure it works both with $CC and with simple cc.
1118 # We do the test twice because some compilers refuse to overwrite an
1119 # existing .o file with -o, though they will create one.
1120 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1121 if { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1122 test -f conftest.o && { (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1124 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1125 if test "x$CC" != xcc; then
1126 # Test first that cc exists at all.
1127 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1128 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1129 if { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1130 test -f conftest.o && { (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1135 # cc exists but doesn't like -o.
1136 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1141 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1146 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1147 echo "$ac_t""yes" 1>&6
1149 echo "$ac_t""no" 1>&6
1150 cat >> confdefs.h <<\EOF
1151 #define NO_MINUS_C_MINUS_O 1
1155 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1156 echo "configure:1157: checking how to run the C preprocessor" >&5
1157 # On Suns, sometimes $CPP names a directory.
1158 if test -n "$CPP" && test -d "$CPP"; then
1161 if test -z "$CPP"; then
1162 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 # This must be in double quotes, not single quotes, because CPP may get
1166 # substituted into the Makefile and "${CC-cc}" will confuse make.
1168 # On the NeXT, cc -E runs the code through the compiler's parser,
1169 # not just through cpp.
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1177 { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1179 if test -z "$ac_err"; then
1183 echo "configure: failed program was:" >&5
1184 cat conftest.$ac_ext >&5
1186 CPP="${CC-cc} -E -traditional-cpp"
1187 cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1196 if test -z "$ac_err"; then
1200 echo "configure: failed program was:" >&5
1201 cat conftest.$ac_ext >&5
1203 CPP="${CC-cc} -nologo -E"
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1211 { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1213 if test -z "$ac_err"; then
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1227 ac_cv_prog_CPP="$CPP"
1229 CPP="$ac_cv_prog_CPP"
1231 ac_cv_prog_CPP="$CPP"
1233 echo "$ac_t""$CPP" 1>&6
1235 if test $ac_cv_prog_gcc = yes; then
1236 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether ${CC-cc} needs -traditional" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 ac_pattern="Autoconf.*'x'"
1242 cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1249 egrep "$ac_pattern" >/dev/null 2>&1; then
1251 ac_cv_prog_gcc_traditional=yes
1254 ac_cv_prog_gcc_traditional=no
1259 if test $ac_cv_prog_gcc_traditional = no; then
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1267 egrep "$ac_pattern" >/dev/null 2>&1; then
1269 ac_cv_prog_gcc_traditional=yes
1276 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1277 if test $ac_cv_prog_gcc_traditional = yes; then
1278 CC="$CC -traditional"
1284 cat >> confdefs.h <<\EOF
1290 # Find a good install program. We prefer a C program (faster),
1291 # so one script is as good as another. But avoid the broken or
1292 # incompatible versions:
1293 # SysV /etc/install, /usr/sbin/install
1294 # SunOS /usr/etc/install
1295 # IRIX /sbin/install
1297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1300 # ./install, which can be erroneously created by make from ./install.sh.
1301 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1302 echo "configure:1303: checking for a BSD compatible install" >&5
1303 if test -z "$INSTALL"; then
1304 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1308 for ac_dir in $PATH; do
1309 # Account for people who put trailing slashes in PATH elements.
1311 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1313 # OSF1 and SCO ODT 3.0 have their own names for install.
1314 # Don't use installbsd from OSF since it installs stuff as root
1316 for ac_prog in ginstall scoinst install; do
1317 if test -f $ac_dir/$ac_prog; then
1318 if test $ac_prog = install &&
1319 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1320 # AIX install. It has an incompatible calling convention.
1323 ac_cv_path_install="$ac_dir/$ac_prog -c"
1334 if test "${ac_cv_path_install+set}" = set; then
1335 INSTALL="$ac_cv_path_install"
1337 # As a last resort, use the slow shell script. We don't cache a
1338 # path for INSTALL within a source directory, because that will
1339 # break other packages using the cache if that directory is
1340 # removed, or if the path is relative.
1341 INSTALL="$ac_install_sh"
1344 echo "$ac_t""$INSTALL" 1>&6
1346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1347 # It thinks the first close brace ends the variable substitution.
1348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1354 # Extract the first word of "ranlib", so it can be a program name with args.
1355 set dummy ranlib; ac_word=$2
1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_word" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 if test -n "$RANLIB"; then
1362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1366 for ac_dir in $ac_dummy; do
1367 test -z "$ac_dir" && ac_dir=.
1368 if test -f $ac_dir/$ac_word; then
1369 ac_cv_prog_RANLIB="ranlib"
1374 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1377 RANLIB="$ac_cv_prog_RANLIB"
1378 if test -n "$RANLIB"; then
1379 echo "$ac_t""$RANLIB" 1>&6
1381 echo "$ac_t""no" 1>&6
1384 # Extract the first word of "mv", so it can be a program name with args.
1385 set dummy mv; ac_word=$2
1386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_word" >&5
1388 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1393 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1396 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1401 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_path_MV="$ac_dir/$ac_word"
1409 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1414 if test -n "$MV"; then
1415 echo "$ac_t""$MV" 1>&6
1417 echo "$ac_t""no" 1>&6
1420 # Extract the first word of "rm", so it can be a program name with args.
1421 set dummy rm; ac_word=$2
1422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1423 echo "configure:1424: checking for $ac_word" >&5
1424 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1429 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1432 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1437 for ac_dir in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir=.
1439 if test -f $ac_dir/$ac_word; then
1440 ac_cv_path_RM="$ac_dir/$ac_word"
1445 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1450 if test -n "$RM"; then
1451 echo "$ac_t""$RM" 1>&6
1453 echo "$ac_t""no" 1>&6
1456 # Extract the first word of "cp", so it can be a program name with args.
1457 set dummy cp; ac_word=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1465 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1468 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1473 for ac_dir in $ac_dummy; do
1474 test -z "$ac_dir" && ac_dir=.
1475 if test -f $ac_dir/$ac_word; then
1476 ac_cv_path_CP="$ac_dir/$ac_word"
1481 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1486 if test -n "$CP"; then
1487 echo "$ac_t""$CP" 1>&6
1489 echo "$ac_t""no" 1>&6
1492 # Extract the first word of "sed", so it can be a program name with args.
1493 set dummy sed; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1501 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1504 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1509 for ac_dir in $ac_dummy; do
1510 test -z "$ac_dir" && ac_dir=.
1511 if test -f $ac_dir/$ac_word; then
1512 ac_cv_path_SED="$ac_dir/$ac_word"
1517 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1521 SED="$ac_cv_path_SED"
1522 if test -n "$SED"; then
1523 echo "$ac_t""$SED" 1>&6
1525 echo "$ac_t""no" 1>&6
1528 # Extract the first word of "awk", so it can be a program name with args.
1529 set dummy awk; ac_word=$2
1530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1531 echo "configure:1532: checking for $ac_word" >&5
1532 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1537 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1540 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1545 for ac_dir in $ac_dummy; do
1546 test -z "$ac_dir" && ac_dir=.
1547 if test -f $ac_dir/$ac_word; then
1548 ac_cv_path_AWK="$ac_dir/$ac_word"
1553 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1557 AWK="$ac_cv_path_AWK"
1558 if test -n "$AWK"; then
1559 echo "$ac_t""$AWK" 1>&6
1561 echo "$ac_t""no" 1>&6
1564 # Extract the first word of "echo", so it can be a program name with args.
1565 set dummy echo; ac_word=$2
1566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1567 echo "configure:1568: checking for $ac_word" >&5
1568 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1573 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1576 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1581 for ac_dir in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir=.
1583 if test -f $ac_dir/$ac_word; then
1584 ac_cv_path_ECHO="$ac_dir/$ac_word"
1589 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1593 ECHO="$ac_cv_path_ECHO"
1594 if test -n "$ECHO"; then
1595 echo "$ac_t""$ECHO" 1>&6
1597 echo "$ac_t""no" 1>&6
1600 # Extract the first word of "cmp", so it can be a program name with args.
1601 set dummy cmp; ac_word=$2
1602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603 echo "configure:1604: checking for $ac_word" >&5
1604 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1609 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1612 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1617 for ac_dir in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 if test -f $ac_dir/$ac_word; then
1620 ac_cv_path_CMP="$ac_dir/$ac_word"
1625 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1629 CMP="$ac_cv_path_CMP"
1630 if test -n "$CMP"; then
1631 echo "$ac_t""$CMP" 1>&6
1633 echo "$ac_t""no" 1>&6
1636 # Extract the first word of "tbl", so it can be a program name with args.
1637 set dummy tbl; ac_word=$2
1638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1639 echo "configure:1640: checking for $ac_word" >&5
1640 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1645 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1648 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1653 for ac_dir in $ac_dummy; do
1654 test -z "$ac_dir" && ac_dir=.
1655 if test -f $ac_dir/$ac_word; then
1656 ac_cv_path_TBL="$ac_dir/$ac_word"
1661 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1665 TBL="$ac_cv_path_TBL"
1666 if test -n "$TBL"; then
1667 echo "$ac_t""$TBL" 1>&6
1669 echo "$ac_t""no" 1>&6
1672 # Extract the first word of "ar", so it can be a program name with args.
1673 set dummy ar; ac_word=$2
1674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1675 echo "configure:1676: checking for $ac_word" >&5
1676 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1681 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1684 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1689 for ac_dir in $ac_dummy; do
1690 test -z "$ac_dir" && ac_dir=.
1691 if test -f $ac_dir/$ac_word; then
1692 ac_cv_path_AR="$ac_dir/$ac_word"
1697 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1702 if test -n "$AR"; then
1703 echo "$ac_t""$AR" 1>&6
1705 echo "$ac_t""no" 1>&6
1708 # Extract the first word of "openssl", so it can be a program name with args.
1709 set dummy openssl; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1717 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1720 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1725 for ac_dir in $ac_dummy; do
1726 test -z "$ac_dir" && ac_dir=.
1727 if test -f $ac_dir/$ac_word; then
1728 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1733 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1737 OPENSSL="$ac_cv_path_OPENSSL"
1738 if test -n "$OPENSSL"; then
1739 echo "$ac_t""$OPENSSL" 1>&6
1741 echo "$ac_t""no" 1>&6
1744 # Extract the first word of "mtx", so it can be a program name with args.
1745 set dummy mtx; ac_word=$2
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_word" >&5
1748 if eval "test \"`echo '$''{'ac_cv_path_MTX'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1753 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
1756 ac_cv_path_MTX="$MTX" # Let the user override the test with a dos path.
1759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1761 for ac_dir in $ac_dummy; do
1762 test -z "$ac_dir" && ac_dir=.
1763 if test -f $ac_dir/$ac_word; then
1764 ac_cv_path_MTX="$ac_dir/$ac_word"
1769 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
1773 MTX="$ac_cv_path_MTX"
1774 if test -n "$MTX"; then
1775 echo "$ac_t""$MTX" 1>&6
1777 echo "$ac_t""no" 1>&6
1780 # Extract the first word of "pkg-config", so it can be a program name with args.
1781 set dummy pkg-config; ac_word=$2
1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_word" >&5
1784 if eval "test \"`echo '$''{'ac_cv_path_PKGCONFIG'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 case "$PKGCONFIG" in
1789 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
1792 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a dos path.
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1797 for ac_dir in $ac_dummy; do
1798 test -z "$ac_dir" && ac_dir=.
1799 if test -f $ac_dir/$ac_word; then
1800 ac_cv_path_PKGCONFIG="$ac_dir/$ac_word"
1805 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
1809 PKGCONFIG="$ac_cv_path_PKGCONFIG"
1810 if test -n "$PKGCONFIG"; then
1811 echo "$ac_t""$PKGCONFIG" 1>&6
1813 echo "$ac_t""no" 1>&6
1816 # Extract the first word of "wx-config", so it can be a program name with args.
1817 set dummy wx-config; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_path_WXCONFIG'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1825 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
1828 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a dos path.
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_path_WXCONFIG="$ac_dir/$ac_word"
1841 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
1845 WXCONFIG="$ac_cv_path_WXCONFIG"
1846 if test -n "$WXCONFIG"; then
1847 echo "$ac_t""$WXCONFIG" 1>&6
1849 echo "$ac_t""no" 1>&6
1853 test -n "$ARFLAG" || ARFLAGS="cr"
1867 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1868 echo "configure:1869: checking for Cygwin environment" >&5
1869 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1879 #define __CYGWIN__ __CYGWIN32__
1884 if { (eval echo configure:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1897 echo "$ac_t""$ac_cv_cygwin" 1>&6
1899 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1900 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1906 HAVE_SUN_OS_FALSE='#'
1908 HAVE_SUN_OS_TRUE='#'
1911 cat >> confdefs.h <<\EOF
1912 #define HAVE_SUN_OS 1
1920 HAVE_SUN_OS_FALSE='#'
1922 HAVE_SUN_OS_TRUE='#'
1927 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1933 HAVE_OSF1_OS_FALSE='#'
1935 HAVE_OSF1_OS_TRUE='#'
1938 cat >> confdefs.h <<\EOF
1939 #define HAVE_OSF1_OS 1
1947 HAVE_OSF1_OS_FALSE='#'
1949 HAVE_OSF1_OS_TRUE='#'
1954 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1960 HAVE_AIX_OS_FALSE='#'
1962 HAVE_AIX_OS_TRUE='#'
1965 cat >> confdefs.h <<\EOF
1966 #define HAVE_AIX_OS 1
1974 HAVE_AIX_OS_FALSE='#'
1976 HAVE_AIX_OS_TRUE='#'
1981 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1987 HAVE_HPUX_OS_FALSE='#'
1989 HAVE_HPUX_OS_TRUE='#'
1992 cat >> confdefs.h <<\EOF
1993 #define HAVE_HPUX_OS 1
2001 HAVE_HPUX_OS_FALSE='#'
2003 HAVE_HPUX_OS_TRUE='#'
2008 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
2014 HAVE_LINUX_OS_FALSE='#'
2016 HAVE_LINUX_OS_TRUE='#'
2017 HAVE_LINUX_OS_FALSE=
2019 cat >> confdefs.h <<\EOF
2020 #define HAVE_LINUX_OS 1
2028 HAVE_LINUX_OS_FALSE='#'
2030 HAVE_LINUX_OS_TRUE='#'
2031 HAVE_LINUX_OS_FALSE=
2035 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2040 HAVE_FREEBSD_OS_TRUE=
2041 HAVE_FREEBSD_OS_FALSE='#'
2043 HAVE_FREEBSD_OS_TRUE='#'
2044 HAVE_FREEBSD_OS_FALSE=
2046 cat >> confdefs.h <<\EOF
2047 #define HAVE_FREEBSD_OS 1
2054 HAVE_FREEBSD_OS_TRUE=
2055 HAVE_FREEBSD_OS_FALSE='#'
2057 HAVE_FREEBSD_OS_TRUE='#'
2058 HAVE_FREEBSD_OS_FALSE=
2062 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2067 HAVE_NETBSD_OS_TRUE=
2068 HAVE_NETBSD_OS_FALSE='#'
2070 HAVE_NETBSD_OS_TRUE='#'
2071 HAVE_NETBSD_OS_FALSE=
2073 cat >> confdefs.h <<\EOF
2074 #define HAVE_NETBSD_OS 1
2081 HAVE_NETBSD_OS_TRUE=
2082 HAVE_NETBSD_OS_FALSE='#'
2084 HAVE_NETBSD_OS_TRUE='#'
2085 HAVE_NETBSD_OS_FALSE=
2089 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2094 HAVE_OPENBSD_OS_TRUE=
2095 HAVE_OPENBSD_OS_FALSE='#'
2097 HAVE_OPENBSD_OS_TRUE='#'
2098 HAVE_OPENBSD_OS_FALSE=
2100 cat >> confdefs.h <<\EOF
2101 #define HAVE_OPENBSD_OS 1
2108 HAVE_OPENBSD_OS_TRUE=
2109 HAVE_OPENBSD_OS_FALSE='#'
2111 HAVE_OPENBSD_OS_TRUE='#'
2112 HAVE_OPENBSD_OS_FALSE=
2116 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2122 HAVE_BSDI_OS_FALSE='#'
2124 HAVE_BSDI_OS_TRUE='#'
2127 cat >> confdefs.h <<\EOF
2128 #define HAVE_BSDI_OS 1
2136 HAVE_BSDI_OS_FALSE='#'
2138 HAVE_BSDI_OS_TRUE='#'
2143 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2149 HAVE_SGI_OS_FALSE='#'
2151 HAVE_SGI_OS_TRUE='#'
2154 cat >> confdefs.h <<\EOF
2155 #define HAVE_SGI_OS 1
2163 HAVE_SGI_OS_FALSE='#'
2165 HAVE_SGI_OS_TRUE='#'
2170 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2176 HAVE_IRIX_OS_FALSE='#'
2178 HAVE_IRIX_OS_TRUE='#'
2181 cat >> confdefs.h <<\EOF
2182 #define HAVE_IRIX_OS 1
2190 HAVE_IRIX_OS_FALSE='#'
2192 HAVE_IRIX_OS_TRUE='#'
2197 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2202 HAVE_DARWIN_OS_TRUE=
2203 HAVE_DARWIN_OS_FALSE='#'
2205 HAVE_DARWIN_OS_TRUE='#'
2206 HAVE_DARWIN_OS_FALSE=
2208 cat >> confdefs.h <<\EOF
2209 #define HAVE_DARWIN_OS 1
2216 HAVE_DARWIN_OS_TRUE=
2217 HAVE_DARWIN_OS_FALSE='#'
2219 HAVE_DARWIN_OS_TRUE='#'
2220 HAVE_DARWIN_OS_FALSE=
2225 # -----------------------------------------------------------
2226 # ----------------------------------------------------------
2227 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2228 echo "configure:2229: checking for Operating System Distribution" >&5
2229 if test "x$DISTNAME" != "x"
2231 echo "distname set to $DISTNAME"
2232 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2235 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
2238 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2241 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2244 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2247 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2250 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2253 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2256 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2259 elif test -f /etc/SuSE-release
2262 elif test -d /etc/SuSEconfig
2265 elif test -f /etc/mandrake-release
2268 elif test -f /etc/whitebox-release
2271 elif test -f /etc/redhat-release
2274 elif test -f /etc/gentoo-release
2277 elif test -f /etc/debian_version
2280 elif test -f /etc/slackware-version
2283 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
2286 elif test -f /etc/engarde-version
2289 elif test "$CYGWIN" = yes
2292 cat >> confdefs.h <<\EOF
2293 #define HAVE_CYGWIN 1
2299 echo "$ac_t""done" 1>&6
2302 # -----------------------------------------------------------
2303 # ----------------------------------------------------------
2308 INSIDE_GNOME_COMMON_TRUE=
2309 INSIDE_GNOME_COMMON_FALSE='#'
2311 INSIDE_GNOME_COMMON_TRUE='#'
2312 INSIDE_GNOME_COMMON_FALSE=
2315 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2317 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2320 # ------------------------------------------------------------------
2321 # If the user has not set --prefix, we set our default to nothing.
2322 # In this case, if the user has not set --sysconfdir, we set it
2323 # to the package default of /etc/bacula. If either --prefix or
2324 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2325 # ------------------------------------------------------------------
2326 if test x${prefix} = xNONE ; then
2327 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2328 sysconfdir=/etc/bacula
2332 sysconfdir=`eval echo ${sysconfdir}`
2334 # -------------------------------------------------------------------------
2335 # If the user has not set --exec-prefix, we default to ${prefix}
2336 # -------------------------------------------------------------------------
2337 if test x${exec_prefix} = xNONE ; then
2338 exec_prefix=${prefix}
2341 # ------------------------------------------------------------------
2342 # If the user has not set --sbindir, we set our default as /sbin
2343 # ------------------------------------------------------------------
2344 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2345 sbindir=${exec_prefix}/sbin
2347 sbindir=`eval echo ${sbindir}`
2349 # ------------------------------------------------------------------
2350 # All list of languages for which a translation exist. Each
2351 # language is separated by a space.
2352 # ------------------------------------------------------------------
2355 for ac_prog in msgfmt
2357 # Extract the first word of "$ac_prog", so it can be a program name with args.
2358 set dummy $ac_prog; ac_word=$2
2359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2360 echo "configure:2361: checking for $ac_word" >&5
2361 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2366 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2369 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2374 for ac_dir in $ac_dummy; do
2375 test -z "$ac_dir" && ac_dir=.
2376 if test -f $ac_dir/$ac_word; then
2377 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2385 MSGFMT="$ac_cv_path_MSGFMT"
2386 if test -n "$MSGFMT"; then
2387 echo "$ac_t""$MSGFMT" 1>&6
2389 echo "$ac_t""no" 1>&6
2392 test -n "$MSGFMT" && break
2394 test -n "$MSGFMT" || MSGFMT="no"
2396 if test "$MSGFMT" = "no"
2398 echo 'msgfmt program not found, disabling NLS !'
2400 USE_INCLUDED_LIBINTL=no
2408 support_postgresql=no
2409 support_smartalloc=yes
2410 support_readline=yes
2413 support_wx_console=no
2415 support_static_tools=no
2416 support_static_fd=no
2417 support_static_sd=no
2418 support_static_dir=no
2419 support_static_cons=no
2420 build_client_only=no
2426 # -------------------------------------------
2427 # gnome (default off)
2428 # -------------------------------------------
2429 # Check whether --enable-gnome or --disable-gnome was given.
2430 if test "${enable_gnome+set}" = set; then
2431 enableval="$enable_gnome"
2432 if test x$enableval = xyes; then
2439 if test x$support_gnome = xyes; then
2440 abc=`$PKGCONFIG --exists libgnomeui-2.0`
2442 if test $pkg = 0; then
2443 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
2444 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
2445 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
2446 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
2451 GNOME_DIR=src/gnome2-console
2452 gnome_version="Version 2.x"
2464 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2465 if test "${with_gnome_includes+set}" = set; then
2466 withval="$with_gnome_includes"
2468 CFLAGS="$CFLAGS -I$withval"
2473 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2474 if test "${with_gnome_libs+set}" = set; then
2475 withval="$with_gnome_libs"
2477 LDFLAGS="$LDFLAGS -L$withval"
2478 gnome_prefix=$withval
2483 # Check whether --with-gnome or --without-gnome was given.
2484 if test "${with_gnome+set}" = set; then
2485 withval="$with_gnome"
2486 if test x$withval = xyes; then
2490 if test "x$withval" = xno; then
2494 LDFLAGS="$LDFLAGS -L$withval/lib"
2495 CFLAGS="$CFLAGS -I$withval/include"
2496 gnome_prefix=$withval/lib
2504 if test "x$want_gnome" = xyes; then
2506 # Extract the first word of "gnome-config", so it can be a program name with args.
2507 set dummy gnome-config; ac_word=$2
2508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_word" >&5
2510 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 case "$GNOME_CONFIG" in
2515 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2518 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2523 for ac_dir in $ac_dummy; do
2524 test -z "$ac_dir" && ac_dir=.
2525 if test -f $ac_dir/$ac_word; then
2526 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2531 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2535 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2536 if test -n "$GNOME_CONFIG"; then
2537 echo "$ac_t""$GNOME_CONFIG" 1>&6
2539 echo "$ac_t""no" 1>&6
2542 if test "$GNOME_CONFIG" = "no"; then
2543 no_gnome_config="yes"
2545 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2546 echo "configure:2547: checking if $GNOME_CONFIG works" >&5
2547 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2548 echo "$ac_t""yes" 1>&6
2551 # Extract the first word of "orbit-config", so it can be a program name with args.
2552 set dummy orbit-config; ac_word=$2
2553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2554 echo "configure:2555: checking for $ac_word" >&5
2555 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 case "$ORBIT_CONFIG" in
2560 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2563 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2568 for ac_dir in $ac_dummy; do
2569 test -z "$ac_dir" && ac_dir=.
2570 if test -f $ac_dir/$ac_word; then
2571 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2576 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2580 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2581 if test -n "$ORBIT_CONFIG"; then
2582 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2584 echo "$ac_t""no" 1>&6
2587 # Extract the first word of "orbit-idl", so it can be a program name with args.
2588 set dummy orbit-idl; ac_word=$2
2589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_word" >&5
2591 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 case "$ORBIT_IDL" in
2596 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2599 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2604 for ac_dir in $ac_dummy; do
2605 test -z "$ac_dir" && ac_dir=.
2606 if test -f $ac_dir/$ac_word; then
2607 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2612 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2616 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2617 if test -n "$ORBIT_IDL"; then
2618 echo "$ac_t""$ORBIT_IDL" 1>&6
2620 echo "$ac_t""no" 1>&6
2623 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2624 echo "configure:2625: checking for working ORBit environment" >&5
2625 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2629 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2630 gnome_cv_orbit_found=no
2632 gnome_cv_orbit_found=yes
2637 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2640 if test x$gnome_cv_orbit_found = xyes; then
2642 HAVE_ORBIT_FALSE='#'
2647 if test x$gnome_cv_orbit_found = xyes; then
2649 ORBIT_CFLAGS=`orbit-config --cflags client server`
2650 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2654 if test xfail = xfailure; then
2655 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2659 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2660 echo "configure:2661: checking for gnorba libraries" >&5
2661 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2665 gnome_cv_gnorba_found=no
2666 if test x$gnome_cv_orbit_found = xyes; then
2667 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2668 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2669 if test -n "$GNORBA_LIBS"; then
2670 gnome_cv_gnorba_found=yes
2676 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2679 if test x$gnome_cv_gnorba_found = xyes; then
2681 HAVE_GNORBA_FALSE='#'
2683 HAVE_GNORBA_TRUE='#'
2686 if test x$gnome_cv_orbit_found = xyes; then
2688 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2689 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2693 if test xfail = xfailure; then
2694 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2698 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2699 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2700 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2701 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2702 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2703 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2704 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2707 echo "$ac_t""no" 1>&6
2708 no_gnome_config="yes"
2712 if test x$exec_prefix = xNONE; then
2713 if test x$prefix = xNONE; then
2714 gnome_prefix=$ac_default_prefix/lib
2716 gnome_prefix=$prefix/lib
2719 gnome_prefix=`eval echo \`echo $libdir\``
2722 if test "$no_gnome_config" = "yes"; then
2723 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2724 echo "configure:2725: checking for gnomeConf.sh file in $gnome_prefix" >&5
2725 if test -f $gnome_prefix/gnomeConf.sh; then
2726 echo "$ac_t""found" 1>&6
2727 echo "loading gnome configuration from" \
2728 "$gnome_prefix/gnomeConf.sh"
2729 . $gnome_prefix/gnomeConf.sh
2732 echo "$ac_t""not found" 1>&6
2733 if test xfail = xfail; then
2734 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2743 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2744 echo "configure:2745: checking extra library \"$i\"" >&5
2748 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2749 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2752 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2753 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2756 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2757 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2759 echo "$ac_t""unknown library" 1>&6
2761 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2762 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2767 GNOME_DIR=src/gnome-console
2768 gnome_version="Version 1.4"
2774 # -------------------------------------------
2775 # wx-console (default off)
2776 # -------------------------------------------
2777 # Check whether --enable-wx-console or --disable-wx-console was given.
2778 if test "${enable_wx_console+set}" = set; then
2779 enableval="$enable_wx_console"
2780 if test x$enableval = xyes; then
2781 support_wx_console=yes
2787 if test x$support_wx_console = xyes; then
2788 abc=`$WXCONFIG --cppflags`
2790 if test $pkg = 0; then
2791 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
2792 WXCONS_LDFLAGS=`$WXCONFIG --libs`
2795 WX_DIR=src/wx-console
2798 echo "wx-config program not found. wx-console disabled."
2800 support_wx_console=no
2806 # -------------------------------------------
2807 # tray-monitor (default off)
2808 # -------------------------------------------
2809 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
2810 if test "${enable_tray_monitor+set}" = set; then
2811 enableval="$enable_tray_monitor"
2812 if test x$enableval = xyes; then
2813 support_tray_monitor=yes
2819 if test x$support_tray_monitor = xyes; then
2820 abc=`$PKGCONFIG --exists gtk+-2.0`
2822 if test $pkg = 0; then
2823 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
2824 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
2827 TRAY_MONITOR_DIR=src/tray-monitor
2832 # -------------------------------------------
2833 # smartalloc (default off)
2834 # -------------------------------------------
2835 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2836 if test "${enable_smartalloc+set}" = set; then
2837 enableval="$enable_smartalloc"
2838 if test x$enableval = xno; then
2839 support_smartalloc=no
2844 if test x$support_smartalloc = xyes; then
2845 cat >> confdefs.h <<\EOF
2846 #define SMARTALLOC 1
2851 # -------------------------------------------
2852 # static-tools (default off)
2853 # -------------------------------------------
2854 # Check whether --enable-static-tools or --disable-static-tools was given.
2855 if test "${enable_static_tools+set}" = set; then
2856 enableval="$enable_static_tools"
2857 if test x$enableval = xyes; then
2858 support_static_tools=yes
2864 if test x$support_static_tools = xyes; then
2865 TTOOL_LDFLAGS="-static"
2869 # -------------------------------------------
2870 # static-fd (default off)
2871 # -------------------------------------------
2872 # Check whether --enable-static-fd or --disable-static-fd was given.
2873 if test "${enable_static_fd+set}" = set; then
2874 enableval="$enable_static_fd"
2875 if test x$enableval = xyes; then
2876 support_static_fd=yes
2882 if test x$support_static_fd = xyes; then
2883 STATIC_FD="static-bacula-fd"
2887 # -------------------------------------------
2888 # static-sd (default off)
2889 # -------------------------------------------
2890 # Check whether --enable-static-sd or --disable-static-sd was given.
2891 if test "${enable_static_sd+set}" = set; then
2892 enableval="$enable_static_sd"
2893 if test x$enableval = xyes; then
2894 support_static_sd=yes
2900 if test x$support_static_sd = xyes; then
2901 STATIC_SD="static-bacula-sd"
2905 # -------------------------------------------
2906 # static-dir (default off)
2907 # -------------------------------------------
2908 # Check whether --enable-static-dir or --disable-static-dir was given.
2909 if test "${enable_static_dir+set}" = set; then
2910 enableval="$enable_static_dir"
2911 if test x$enableval = xyes; then
2912 support_static_dir=yes
2918 if test x$support_static_dir = xyes; then
2919 STATIC_DIR="static-bacula-dir"
2923 # -------------------------------------------
2924 # static-cons (default off)
2925 # -------------------------------------------
2926 # Check whether --enable-static-cons or --disable-static-cons was given.
2927 if test "${enable_static_cons+set}" = set; then
2928 enableval="$enable_static_cons"
2929 if test x$enableval = xyes; then
2930 support_static_cons=yes
2938 if test x$support_static_cons = xyes; then
2939 STATIC_CONS="static-bconsole"
2940 STATIC_GNOME_CONS="static-gnome-console"
2941 STATIC_WX_CONS="static-wx-console"
2947 # -------------------------------------------
2948 # client_only (default off)
2949 # -------------------------------------------
2950 # Check whether --enable-client-only or --disable-client-only was given.
2951 if test "${enable_client_only+set}" = set; then
2952 enableval="$enable_client_only"
2953 if test x$enableval = xyes; then
2954 build_client_only=yes
2960 if test x$build_client_only = xno; then
2967 # ---------------------------------------------------
2968 # Check for conio (Bacula readline substitute)(
2969 # ---------------------------------------------------
2970 # this allows you to turn it completely off
2971 # Check whether --enable-conio or --disable-conio was given.
2972 if test "${enable_conio+set}" = set; then
2973 enableval="$enable_conio"
2974 if test x$enableval = xno; then
2981 if test x$support_conio = xyes; then
2982 ac_safe=`echo "termcap.h" | sed 'y%./+-%__p_%'`
2983 echo $ac_n "checking for termcap.h""... $ac_c" 1>&6
2984 echo "configure:2985: checking for termcap.h" >&5
2985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 #include <termcap.h>
2993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2994 { (eval echo configure:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2996 if test -z "$ac_err"; then
2998 eval "ac_cv_header_$ac_safe=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 eval "ac_cv_header_$ac_safe=no"
3008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3009 echo "$ac_t""yes" 1>&6
3010 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
3011 echo "configure:3012: checking for tgetent in -ltermcap" >&5
3012 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
3013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 ac_save_LIBS="$LIBS"
3017 LIBS="-ltermcap $LIBS"
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3032 eval "ac_cv_lib_$ac_lib_var=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 eval "ac_cv_lib_$ac_lib_var=no"
3040 LIBS="$ac_save_LIBS"
3043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 CONS_LIBS="-ltermcap"
3050 cat >> confdefs.h <<\EOF
3051 #define HAVE_CONIO 1
3056 echo "$ac_t""no" 1>&6
3057 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
3058 echo "configure:3059: checking for tgetent in -lncurses" >&5
3059 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
3060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 ac_save_LIBS="$LIBS"
3064 LIBS="-lncurses $LIBS"
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 eval "ac_cv_lib_$ac_lib_var=no"
3087 LIBS="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 CONS_LIBS="-lncurses"
3097 cat >> confdefs.h <<\EOF
3098 #define HAVE_CONIO 1
3103 echo "$ac_t""no" 1>&6
3104 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
3112 echo "$ac_t""no" 1>&6
3113 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
3119 # ---------------------------------------------------
3120 # Check for readline support/directory (default off)
3121 # ---------------------------------------------------
3122 # this allows you to turn it completely off
3123 # Check whether --enable-readline or --disable-readline was given.
3124 if test "${enable_readline+set}" = set; then
3125 enableval="$enable_readline"
3126 if test x$enableval = xno; then
3134 if test x$support_readline = xyes; then
3135 # Check whether --with-readline or --without-readline was given.
3136 if test "${with_readline+set}" = set; then
3137 withval="$with_readline"
3139 case "$with_readline" in
3142 if test "$with_readline" != "yes"; then
3143 CONS_INC="-I${with_readline}"
3144 CONS_LDFLAGS="-L$with_readline"
3146 with_readline="/usr/include/readline"
3148 ac_safe=`echo "${with_readline}/readline.h" | sed 'y%./+-%__p_%'`
3149 echo $ac_n "checking for ${with_readline}/readline.h""... $ac_c" 1>&6
3150 echo "configure:3151: checking for ${with_readline}/readline.h" >&5
3151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 #include <${with_readline}/readline.h>
3159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3160 { (eval echo configure:3161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3162 if test -z "$ac_err"; then
3164 eval "ac_cv_header_$ac_safe=yes"
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3170 eval "ac_cv_header_$ac_safe=no"
3174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3176 cat >> confdefs.h <<\EOF
3177 #define HAVE_READLINE 1
3180 CONS_LIBS="-lreadline -ltermcap"
3184 echo "$ac_t""no" 1>&6
3186 echo "readline.h not found. readline turned off ..."
3197 # check for standard readline library
3198 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
3199 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
3200 echo "configure:3201: checking for /usr/include/readline/readline.h" >&5
3201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 #include </usr/include/readline/readline.h>
3209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3210 { (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3212 if test -z "$ac_err"; then
3214 eval "ac_cv_header_$ac_safe=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_header_$ac_safe=no"
3224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3225 echo "$ac_t""yes" 1>&6
3226 cat >> confdefs.h <<\EOF
3227 #define HAVE_READLINE 1
3231 CONS_INC="-I/usr/include/readline"
3232 CONS_LIBS="-lreadline -ltermcap"
3235 echo "$ac_t""no" 1>&6
3237 # Did not find standard library, so try Bacula's default
3238 ac_safe=`echo "${TOP_DIR}/depkgs/readline/readline.h" | sed 'y%./+-%__p_%'`
3239 echo $ac_n "checking for ${TOP_DIR}/depkgs/readline/readline.h""... $ac_c" 1>&6
3240 echo "configure:3241: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
3241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <${TOP_DIR}/depkgs/readline/readline.h>
3249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3250 { (eval echo configure:3251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3252 if test -z "$ac_err"; then
3254 eval "ac_cv_header_$ac_safe=yes"
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 eval "ac_cv_header_$ac_safe=no"
3264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3265 echo "$ac_t""yes" 1>&6
3266 cat >> confdefs.h <<\EOF
3267 #define HAVE_READLINE 1
3271 CONS_INC="-I${TOP_DIR}/depkgs/readline"
3272 CONS_LIBS="-lreadline -lhistory -ltermcap"
3273 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
3274 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
3277 echo "$ac_t""no" 1>&6
3279 echo "readline.h not found. readline turned off ..."
3304 # Minimal stuff for readline Makefile configuration
3307 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3308 echo "configure:3309: checking whether stat file-mode macros are broken" >&5
3309 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3318 #if defined(S_ISBLK) && defined(S_IFDIR)
3319 # if S_ISBLK (S_IFDIR)
3324 #if defined(S_ISBLK) && defined(S_IFCHR)
3325 # if S_ISBLK (S_IFCHR)
3330 #if defined(S_ISLNK) && defined(S_IFREG)
3331 # if S_ISLNK (S_IFREG)
3336 #if defined(S_ISSOCK) && defined(S_IFREG)
3337 # if S_ISSOCK (S_IFREG)
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 egrep "You lose" >/dev/null 2>&1; then
3346 ac_cv_header_stat_broken=yes
3349 ac_cv_header_stat_broken=no
3355 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3356 if test $ac_cv_header_stat_broken = yes; then
3357 cat >> confdefs.h <<\EOF
3358 #define STAT_MACROS_BROKEN 1
3364 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3367 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3368 echo "configure:3369: checking for $ac_hdr that defines DIR" >&5
3369 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <sys/types.h>
3381 if { (eval echo configure:3382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3383 eval "ac_cv_header_dirent_$ac_safe=yes"
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3388 eval "ac_cv_header_dirent_$ac_safe=no"
3392 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3393 echo "$ac_t""yes" 1>&6
3394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3395 cat >> confdefs.h <<EOF
3396 #define $ac_tr_hdr 1
3398 ac_header_dirent=$ac_hdr; break
3400 echo "$ac_t""no" 1>&6
3403 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3404 if test $ac_header_dirent = dirent.h; then
3405 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3406 echo "configure:3407: checking for opendir in -ldir" >&5
3407 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3411 ac_save_LIBS="$LIBS"
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3425 if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3427 eval "ac_cv_lib_$ac_lib_var=yes"
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3432 eval "ac_cv_lib_$ac_lib_var=no"
3435 LIBS="$ac_save_LIBS"
3438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3439 echo "$ac_t""yes" 1>&6
3442 echo "$ac_t""no" 1>&6
3446 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3447 echo "configure:3448: checking for opendir in -lx" >&5
3448 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 ac_save_LIBS="$LIBS"
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3468 eval "ac_cv_lib_$ac_lib_var=yes"
3470 echo "configure: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3473 eval "ac_cv_lib_$ac_lib_var=no"
3476 LIBS="$ac_save_LIBS"
3479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3480 echo "$ac_t""yes" 1>&6
3483 echo "$ac_t""no" 1>&6
3488 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3491 echo "configure:3492: checking for $ac_func" >&5
3492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* System header to define __stub macros and hopefully few prototypes,
3499 which can conflict with char $ac_func(); below. */
3501 /* Override any gcc2 internal prototype to avoid an error. */
3502 /* We use char because int might match the return type of a gcc2
3503 builtin and then its argument prototype would still apply. */
3508 /* The GNU C library defines this for functions which it implements
3509 to always fail with ENOSYS. Some functions are actually named
3510 something starting with __ and the normal name is an alias. */
3511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3519 if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521 eval "ac_cv_func_$ac_func=yes"
3523 echo "configure: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3526 eval "ac_cv_func_$ac_func=no"
3531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3534 cat >> confdefs.h <<EOF
3535 #define $ac_tr_func 1
3539 echo "$ac_t""no" 1>&6
3543 for ac_func in nanosleep nl_langinfo
3545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3546 echo "configure:3547: checking for $ac_func" >&5
3547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3553 /* System header to define __stub macros and hopefully few prototypes,
3554 which can conflict with char $ac_func(); below. */
3556 /* Override any gcc2 internal prototype to avoid an error. */
3557 /* We use char because int might match the return type of a gcc2
3558 builtin and then its argument prototype would still apply. */
3563 /* The GNU C library defines this for functions which it implements
3564 to always fail with ENOSYS. Some functions are actually named
3565 something starting with __ and the normal name is an alias. */
3566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3574 if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 eval "ac_cv_func_$ac_func=yes"
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3581 eval "ac_cv_func_$ac_func=no"
3586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3589 cat >> confdefs.h <<EOF
3590 #define $ac_tr_func 1
3594 echo "$ac_t""no" 1>&6
3598 for ac_hdr in varargs.h
3600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $ac_hdr" >&5
3603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3612 { (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3614 if test -z "$ac_err"; then
3616 eval "ac_cv_header_$ac_safe=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3622 eval "ac_cv_header_$ac_safe=no"
3626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3629 cat >> confdefs.h <<EOF
3630 #define $ac_tr_hdr 1
3634 echo "$ac_t""no" 1>&6
3639 # End of readline/conio stuff
3640 # -----------------------------------------------------------------------
3643 # ---------------------------------------------------
3644 # Check for GMP support/directory
3645 # ---------------------------------------------------
3649 # [ --with-gmp[=DIR] Specify gmp library directory],
3651 # case "$with_gmp" in
3654 # if test "$with_gmp" != "yes"; then
3655 # GMP_INC="-I$with_gmp"
3657 # GMP_LDFLAGS="-L$with_gmp"
3659 # with_gmp="/usr/include"
3661 # AC_CHECK_HEADER($with_gmp/gmp.h,
3662 # [ AC_MSG_RESULT(yes)
3663 # AC_DEFINE(HAVE_GMP)
3667 # [ AC_MSG_ERROR([*** gmp library missing])
3673 # # check for standard gmp library
3674 # AC_CHECK_HEADER(/usr/include/gmp.h,
3675 # [ AC_MSG_RESULT(yes)
3676 # AC_DEFINE(HAVE_GMP)
3681 # # Did not find standard library, so use our own
3682 # AC_MSG_RESULT(yes)
3683 # AC_DEFINE(HAVE_GMP)
3686 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3688 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3689 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3695 #AC_SUBST(GMP_LDFLAGS)
3699 # -----------------------------------------------------------------------
3702 # ---------------------------------------------------
3703 # Check for CWEB support/directory
3704 # ---------------------------------------------------
3709 # [ --with-cweb[=DIR] Specify cweb library directory],
3711 # case "$with_cweb" in
3714 # if test "$with_cweb" != "yes"; then
3715 # CWEB_INC="-I$with_cweb"
3716 # CWEB_LIBS="-lcweb"
3717 # CWEB_LDFLAGS="-L$with_cweb"
3719 # with_cweb="/usr/include"
3721 # AC_CHECK_HEADER($with_cweb/cweb.h,
3722 # [ AC_MSG_RESULT(yes)
3723 # AC_DEFINE(HAVE_CWEB)
3724 # CWEB_LIBS="-lcweb"
3727 # [ AC_MSG_ERROR([*** cweb library missing])
3733 # # check for standard cweb library
3734 # AC_CHECK_HEADER(/usr/include/cweb.h,
3735 # [ AC_MSG_RESULT(yes)
3736 # AC_DEFINE(HAVE_CWEB)
3739 # CWEB_LIBS="-lcweb"
3741 # # Did not find starndard library, so use our own
3742 # AC_MSG_RESULT(yes)
3743 # AC_DEFINE(HAVE_CWEB)
3746 # CWEB=${TOP_DIR}/depkgs/cweb
3747 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3748 # CWEB_LIBS="-lcweb"
3749 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3750 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3756 #AC_SUBST(CWEB_LIBS)
3757 #AC_SUBST(CWEB_LDFLAGS)
3761 # -----------------------------------------------------------------------
3765 # -----------------------------------------------------------
3766 # Check whether user wants TCP wrappers support (default off)
3767 # -----------------------------------------------------------
3769 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3770 if test "${with_tcp_wrappers+set}" = set; then
3771 withval="$with_tcp_wrappers"
3773 if test "x$withval" != "xno" ; then
3775 LIBS="$saved_LIBS -lwrap"
3776 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3777 echo "configure:3778: checking for libwrap" >&5
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3782 int deny_severity = 0;
3783 int allow_severity = 0;
3784 struct request_info *req;
3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 echo "$ac_t""yes" 1>&6
3793 cat >> confdefs.h <<\EOF
3794 #define HAVE_LIBWRAP 1
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3804 LIBS="$saved_LIBS -lwrap -lnsl"
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3809 int deny_severity = 0;
3810 int allow_severity = 0;
3811 struct request_info *req;
3816 if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 echo "$ac_t""yes" 1>&6
3820 cat >> confdefs.h <<\EOF
3821 #define HAVE_LIBWRAP 1
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3830 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3843 # ------------------------------------------
3844 # Where to place working dir
3845 # ------------------------------------------
3846 working_dir=`eval echo ${prefix}/var/bacula/working`
3847 # Check whether --with-working-dir or --without-working-dir was given.
3848 if test "${with_working_dir+set}" = set; then
3849 withval="$with_working_dir"
3851 if test "x$withval" != "xno" ; then
3852 working_dir=$withval
3862 # ------------------------------------------
3863 # Where to place scriptdir (script files)
3864 # ------------------------------------------
3865 scriptdir=`eval echo ${sysconfdir}`
3866 # Check whether --with-scriptdir or --without-scriptdir was given.
3867 if test "${with_scriptdir+set}" = set; then
3868 withval="$with_scriptdir"
3870 if test "x$withval" != "xno" ; then
3881 # ------------------------------------------
3882 # Where to send dump email
3883 # ------------------------------------------
3884 dump_email=root@localhost
3885 # Check whether --with-dump-email or --without-dump-email was given.
3886 if test "${with_dump_email+set}" = set; then
3887 withval="$with_dump_email"
3889 if test "x$withval" != "xno" ; then
3899 # ------------------------------------------
3900 # Where to send job email
3901 # ------------------------------------------
3902 job_email=root@localhost
3903 # Check whether --with-job-email or --without-job-email was given.
3904 if test "${with_job_email+set}" = set; then
3905 withval="$with_job_email"
3907 if test "x$withval" != "xno" ; then
3917 # ------------------------------------------
3918 # Where to find smtp host
3919 # ------------------------------------------
3921 # Check whether --with-smtp_host or --without-smtp_host was given.
3922 if test "${with_smtp_host+set}" = set; then
3923 withval="$with_smtp_host"
3925 if test "x$withval" != "xno" ; then
3936 # ------------------------------------
3937 # Where to place pid files
3938 # ------------------------------------
3940 # Check whether --with-pid-dir or --without-pid-dir was given.
3941 if test "${with_pid_dir+set}" = set; then
3942 withval="$with_pid_dir"
3944 if test "x$withval" != "xno" ; then
3952 cat >> confdefs.h <<EOF
3953 #define _PATH_BACULA_PIDDIR "$piddir"
3959 # ------------------------------------
3960 # Where to place subsys "lock file"
3961 # ------------------------------------
3962 subsysdir=/var/run/subsys
3963 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3964 if test "${with_subsys_dir+set}" = set; then
3965 withval="$with_subsys_dir"
3967 if test "x$withval" != "xno" ; then
3979 # ------------------------------------
3980 # Where to start assigning ports
3981 # ------------------------------------
3983 # Check whether --with-baseport or --without-baseport was given.
3984 if test "${with_baseport+set}" = set; then
3985 withval="$with_baseport"
3987 if test "x$withval" != "xno" ; then
3996 dir_port=`expr $baseport`
3997 fd_port=`expr $baseport + 1`
3998 sd_port=`expr $fd_port + 1`
4005 # ------------------------------------------
4006 # Generate passwords
4007 # ------------------------------------------
4009 # Check whether --with-dir-password or --without-dir-password was given.
4010 if test "${with_dir_password+set}" = set; then
4011 withval="$with_dir_password"
4013 if test "x$withval" != "xno" ; then
4014 dir_password=$withval
4021 if test "x$dir_password" = "x" ; then
4022 if test "x$OPENSSL" = "xnone" ; then
4023 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
4024 key=`autoconf/randpass 33`
4026 key=`openssl rand -base64 33`
4032 # Check whether --with-fd-password or --without-fd-password was given.
4033 if test "${with_fd_password+set}" = set; then
4034 withval="$with_fd_password"
4036 if test "x$withval" != "xno" ; then
4037 fd_password=$withval
4044 if test "x$fd_password" = "x" ; then
4045 if test "x$OPENSSL" = "xnone" ; then
4046 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
4047 key=`autoconf/randpass 37`
4049 key=`openssl rand -base64 33`
4055 # Check whether --with-sd-password or --without-sd-password was given.
4056 if test "${with_sd_password+set}" = set; then
4057 withval="$with_sd_password"
4059 if test "x$withval" != "xno" ; then
4060 sd_password=$withval
4067 if test "x$sd_password" = "x" ; then
4068 if test "x$OPENSSL" = "xnone" ; then
4069 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
4070 key=`autoconf/randpass 41`
4072 key=`openssl rand -base64 33`
4084 # Handle users and groups for each daemon
4087 # Check whether --with-dir_user or --without-dir_user was given.
4088 if test "${with_dir_user+set}" = set; then
4089 withval="$with_dir_user"
4091 if test "x$withval" != "x" ; then
4100 # Check whether --with-dir_group or --without-dir_group was given.
4101 if test "${with_dir_group+set}" = set; then
4102 withval="$with_dir_group"
4104 if test "x$withval" != "x" ; then
4113 # Check whether --with-sd_user or --without-sd_user was given.
4114 if test "${with_sd_user+set}" = set; then
4115 withval="$with_sd_user"
4117 if test "x$withval" != "x" ; then
4126 # Check whether --with-sd_group or --without-sd_group was given.
4127 if test "${with_sd_group+set}" = set; then
4128 withval="$with_sd_group"
4130 if test "x$withval" != "x" ; then
4139 # Check whether --with-fd_user or --without-fd_user was given.
4140 if test "${with_fd_user+set}" = set; then
4141 withval="$with_fd_user"
4143 if test "x$withval" != "x" ; then
4152 # Check whether --with-fd_group or --without-fd_group was given.
4153 if test "${with_fd_group+set}" = set; then
4154 withval="$with_fd_group"
4156 if test "x$withval" != "x" ; then
4175 # allow setting default executable permissions
4178 # Check whether --with-sbin-perm or --without-sbin-perm was given.
4179 if test "${with_sbin_perm+set}" = set; then
4180 withval="$with_sbin_perm"
4182 if test "x$withval" != "x" ; then
4192 # ------------------------------------------------
4193 # Bacula check for various SQL database engines
4194 # ------------------------------------------------
4197 echo $ac_n "checking for PostgreSQL support""... $ac_c" 1>&6
4198 echo "configure:4199: checking for PostgreSQL support" >&5
4199 # Check whether --with-postgresql or --without-postgresql was given.
4200 if test "${with_postgresql+set}" = set; then
4201 withval="$with_postgresql"
4203 if test "$withval" != "no"; then
4204 if test "$db_found" = "yes"; then
4205 echo "$ac_t""error" 1>&6
4206 { echo "configure: error: "You can configure for only one database."" 1>&2; exit 1; };
4208 if test "$withval" = "yes"; then
4209 if test -f /usr/local/include/libpq-fe.h; then
4210 POSTGRESQL_INCDIR=/usr/local/include
4211 POSTGRESQL_LIBDIR=/usr/local/lib
4212 POSTGRESQL_BINDIR=/usr/local/bin
4213 elif test -f /usr/include/libpq-fe.h; then
4214 POSTGRESQL_INCDIR=/usr/include
4215 POSTGRESQL_LIBDIR=/usr/lib
4216 POSTGRESQL_BINDIR=/usr/bin
4217 elif test -f /usr/include/pgsql/libpq-fe.h; then
4218 POSTGRESQL_INCDIR=/usr/include/pgsql
4219 POSTGRESQL_LIBDIR=/usr/lib/pgsql
4220 POSTGRESQL_BINDIR=/usr/bin
4221 elif test -f /usr/include/postgresql/libpq-fe.h; then
4222 POSTGRESQL_INCDIR=/usr/include/postgresql
4223 POSTGRESQL_LIBDIR=/usr/lib/postgresql
4224 POSTGRESQL_BINDIR=/usr/bin
4226 echo "$ac_t""no" 1>&6
4227 { echo "configure: error: Unable to find libpq-fe.h in standard locations" 1>&2; exit 1; }
4229 elif test -f $withval/include/libpq-fe.h; then
4230 POSTGRESQL_INCDIR=$withval/include
4231 POSTGRESQL_LIBDIR=$withval/lib
4232 POSTGRESQL_BINDIR=$withval/bin
4234 echo "$ac_t""no" 1>&6
4235 { echo "configure: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" 1>&2; exit 1; }
4237 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
4238 echo $ac_n "checking for crypt""... $ac_c" 1>&6
4239 echo "configure:4240: checking for crypt" >&5
4240 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* System header to define __stub macros and hopefully few prototypes,
4247 which can conflict with char crypt(); below. */
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4256 /* The GNU C library defines this for functions which it implements
4257 to always fail with ENOSYS. Some functions are actually named
4258 something starting with __ and the normal name is an alias. */
4259 #if defined (__stub_crypt) || defined (__stub___crypt)
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4269 eval "ac_cv_func_crypt=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 eval "ac_cv_func_crypt=no"
4279 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4283 echo "$ac_t""no" 1>&6
4284 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4285 echo "configure:4286: checking for crypt in -lcrypt" >&5
4286 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 ac_save_LIBS="$LIBS"
4291 LIBS="-lcrypt $LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 eval "ac_cv_lib_$ac_lib_var=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_lib_$ac_lib_var=no"
4314 LIBS="$ac_save_LIBS"
4317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4318 echo "$ac_t""yes" 1>&6
4319 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
4321 echo "$ac_t""no" 1>&6
4326 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
4327 SQL_LFLAGS=$POSTGRESQL_LFLAGS
4328 SQL_BINDIR=$POSTGRESQL_BINDIR
4329 cat >> confdefs.h <<\EOF
4330 #define HAVE_POSTGRESQL 1
4333 echo "$ac_t""yes" 1>&6
4335 support_postgresql=yes
4339 echo "$ac_t""no" 1>&6
4344 echo "$ac_t""no" 1>&6
4356 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
4357 echo "configure:4358: checking for MySQL support" >&5
4358 # Check whether --with-mysql or --without-mysql was given.
4359 if test "${with_mysql+set}" = set; then
4360 withval="$with_mysql"
4362 if test "$withval" != "no"; then
4363 if test "$withval" = "yes"; then
4364 if test -f /usr/local/mysql/include/mysql/mysql.h; then
4365 MYSQL_INCDIR=/usr/local/mysql/include/mysql
4366 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
4367 MYSQL_BINDIR=/usr/local/mysql/bin
4368 elif test -f /usr/include/mysql/mysql.h; then
4369 MYSQL_INCDIR=/usr/include/mysql
4370 MYSQL_LIBDIR=/usr/lib/mysql
4371 MYSQL_BINDIR=/usr/bin
4372 elif test -f /usr/include/mysql.h; then
4373 MYSQL_INCDIR=/usr/include
4374 MYSQL_LIBDIR=/usr/lib
4375 MYSQL_BINDIR=/usr/bin
4376 elif test -f /usr/local/include/mysql/mysql.h; then
4377 MYSQL_INCDIR=/usr/local/include/mysql
4378 MYSQL_LIBDIR=/usr/local/lib/mysql
4379 MYSQL_BINDIR=/usr/local/bin
4380 elif test -f /usr/local/include/mysql.h; then
4381 MYSQL_INCDIR=/usr/local/include
4382 MYSQL_LIBDIR=/usr/local/lib
4383 MYSQL_BINDIR=/usr/local/bin
4385 echo "$ac_t""no" 1>&6
4386 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
4389 if test -f $withval/include/mysql/mysql.h; then
4390 MYSQL_INCDIR=$withval/include/mysql
4391 MYSQL_LIBDIR=$withval/lib/mysql
4392 MYSQL_BINDIR=$withval/bin
4393 elif test -f $withval/include/mysql.h; then
4394 MYSQL_INCDIR=$withval/include
4395 MYSQL_LIBDIR=$withval/lib
4396 MYSQL_BINDIR=$withval/bin
4398 echo "$ac_t""no" 1>&6
4399 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
4402 SQL_INCLUDE=-I$MYSQL_INCDIR
4403 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
4404 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
4405 cat >> confdefs.h <<\EOF
4406 #define HAVE_THREAD_SAFE_MYSQL 1
4410 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
4412 SQL_BINDIR=$MYSQL_BINDIR
4414 cat >> confdefs.h <<\EOF
4415 #define HAVE_MYSQL 1
4418 echo "$ac_t""yes" 1>&6
4425 echo "$ac_t""no" 1>&6
4432 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
4433 if test "${with_embedded_mysql+set}" = set; then
4434 withval="$with_embedded_mysql"
4436 if test "$withval" != "no"; then
4437 if test "$withval" = "yes"; then
4438 if test -f /usr/local/mysql/include/mysql/mysql.h; then
4439 MYSQL_INCDIR=/usr/local/mysql/include/mysql
4440 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
4441 MYSQL_BINDIR=/usr/local/mysql/bin
4442 elif test -f /usr/include/mysql/mysql.h; then
4443 MYSQL_INCDIR=/usr/include/mysql
4444 MYSQL_LIBDIR=/usr/lib/mysql
4445 MYSQL_BINDIR=/usr/bin
4446 elif test -f /usr/include/mysql.h; then
4447 MYSQL_INCDIR=/usr/include
4448 MYSQL_LIBDIR=/usr/lib
4449 MYSQL_BINDIR=/usr/bin
4450 elif test -f /usr/local/include/mysql/mysql.h; then
4451 MYSQL_INCDIR=/usr/local/include/mysql
4452 MYSQL_LIBDIR=/usr/local/lib/mysql
4453 MYSQL_BINDIR=/usr/local/bin
4454 elif test -f /usr/local/include/mysql.h; then
4455 MYSQL_INCDIR=/usr/local/include
4456 MYSQL_LIBDIR=/usr/local/lib
4457 MYSQL_BINDIR=/usr/local/bin
4459 echo "$ac_t""no" 1>&6
4460 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
4463 if test -f $withval/include/mysql/mysql.h; then
4464 MYSQL_INCDIR=$withval/include/mysql
4465 MYSQL_LIBDIR=$withval/lib/mysql
4466 MYSQL_BINDIR=$withval/bin
4467 elif test -f $withval/include/mysql.h; then
4468 MYSQL_INCDIR=$withval/include
4469 MYSQL_LIBDIR=$withval/lib
4470 MYSQL_BINDIR=$withval/bin
4472 echo "$ac_t""no" 1>&6
4473 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
4476 SQL_INCLUDE=-I$MYSQL_INCDIR
4477 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
4478 SQL_BINDIR=$MYSQL_BINDIR
4480 cat >> confdefs.h <<\EOF
4481 #define HAVE_MYSQL 1
4484 cat >> confdefs.h <<\EOF
4485 #define HAVE_EMBEDDED_MYSQL 1
4488 echo "$ac_t""yes" 1>&6
4495 echo "$ac_t""no" 1>&6
4511 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
4512 echo "configure:4513: checking for SQLite support" >&5
4513 # Check whether --with-sqlite or --without-sqlite was given.
4514 if test "${with_sqlite+set}" = set; then
4515 withval="$with_sqlite"
4517 if test "$withval" != "no"; then
4518 if test "$withval" = "yes"; then
4519 if test -f /usr/local/include/sqlite.h; then
4520 SQLITE_INCDIR=/usr/local/include
4521 SQLITE_LIBDIR=/usr/local/lib
4522 SQLITE_BINDIR=/usr/local/bin
4523 elif test -f /usr/include/sqlite.h; then
4524 SQLITE_INCDIR=/usr/include
4525 SQLITE_LIBDIR=/usr/lib
4526 SQLITE_BINDIR=/usr/bin
4528 echo "$ac_t""no" 1>&6
4529 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
4532 if test -f $withval/sqlite.h; then
4533 SQLITE_INCDIR=$withval
4534 SQLITE_LIBDIR=$withval
4535 SQLITE_BINDIR=$withval
4537 echo "$ac_t""no" 1>&6
4538 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
4541 SQL_INCLUDE=-I$SQLITE_INCDIR
4542 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
4543 SQL_BINDIR=$SQLITE_BINDIR
4545 cat >> confdefs.h <<\EOF
4546 #define HAVE_SQLITE 1
4549 echo "$ac_t""yes" 1>&6
4556 echo "$ac_t""no" 1>&6
4561 echo "$ac_t""no" 1>&6
4574 cat >> confdefs.h <<\EOF
4575 #define PROTOTYPES 1
4579 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
4580 if test -z "$CCOPTS"; then
4581 CCOPTS='-g -O2 -Wall'
4587 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4588 echo "configure:4589: checking for mingw32 environment" >&5
4589 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4600 if { (eval echo configure:4601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 echo "configure: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4613 echo "$ac_t""$ac_cv_mingw32" 1>&6
4615 test "$ac_cv_mingw32" = yes && MINGW32=yes
4618 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4619 echo "configure:4620: checking for executable suffix" >&5
4620 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4627 echo 'int main () { return 0; }' > conftest.$ac_ext
4629 if { (eval echo configure:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4630 for file in conftest.*; do
4632 *.c | *.o | *.obj) ;;
4633 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4637 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4640 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4645 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4646 echo "$ac_t""${ac_cv_exeext}" 1>&6
4650 largefile_support="no"
4651 echo $ac_n "checking build system type""... $ac_c" 1>&6
4652 echo "configure:4653: checking build system type" >&5
4655 case "$build_alias" in
4658 NONE) build_alias=$host_alias ;;
4659 *) build_alias=$nonopt ;;
4663 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4664 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4665 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4666 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4667 echo "$ac_t""$build" 1>&6
4670 # Make sure we can run config.sub.
4671 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
4672 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4675 echo $ac_n "checking host system type""... $ac_c" 1>&6
4676 echo "configure:4677: checking host system type" >&5
4679 case "$host_alias" in
4683 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
4684 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4686 *) host_alias=$nonopt ;;
4690 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
4691 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4692 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4693 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4694 echo "$ac_t""$host" 1>&6
4696 if test $host != $build; then
4697 ac_tool_prefix=${host_alias}-
4703 # Check whether --enable-largefile or --disable-largefile was given.
4704 if test "${enable_largefile+set}" = set; then
4705 enableval="$enable_largefile"
4709 if test "$enable_largefile" != no; then
4710 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4711 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4713 echo "configure:4714: checking for $ac_word" >&5
4714 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 if test -n "$GETCONF"; then
4718 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4722 for ac_dir in $ac_dummy; do
4723 test -z "$ac_dir" && ac_dir=.
4724 if test -f $ac_dir/$ac_word; then
4725 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4730 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4733 GETCONF="$ac_cv_prog_GETCONF"
4734 if test -n "$GETCONF"; then
4735 echo "$ac_t""$GETCONF" 1>&6
4737 echo "$ac_t""no" 1>&6
4742 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4743 echo "configure:4744: checking for CFLAGS value to request large file support" >&5
4744 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4748 ac_cv_sys_largefile_CFLAGS=no
4750 # IRIX 6.2 and later require cc -n32.
4751 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4752 if test "$GCC" != yes; then
4753 ac_cv_sys_largefile_CFLAGS=-n32
4756 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 ac_cv_sys_largefile_CFLAGS=no
4779 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4780 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4781 echo "configure:4782: checking for LDFLAGS value to request large file support" >&5
4782 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4786 ac_cv_sys_largefile_LDFLAGS=no
4791 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4792 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4793 echo "configure:4794: checking for LIBS value to request large file support" >&5
4794 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4798 ac_cv_sys_largefile_LIBS=no
4803 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4805 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4808 -D_FILE_OFFSET_BITS=*) ;;
4809 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4810 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4816 '') CPPFLAGS="$ac_flag" ;;
4817 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4825 '') CFLAGS="$ac_flag" ;;
4826 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4831 case "$ac_cv_sys_largefile_LDFLAGS" in
4835 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4836 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4839 case "$ac_cv_sys_largefile_LIBS" in
4843 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4844 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4847 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4848 echo "configure:4849: checking for _FILE_OFFSET_BITS" >&5
4849 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
4852 ac_cv_sys_file_offset_bits=no
4854 # HP-UX 10.20 and later
4855 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4856 ac_cv_sys_file_offset_bits=64 ;;
4858 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4860 -D_FILE_OFFSET_BITS)
4861 ac_cv_sys_file_offset_bits=1 ;;
4862 -D_FILE_OFFSET_BITS=*)
4863 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4869 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4870 if test "$ac_cv_sys_file_offset_bits" != no; then
4871 cat >> confdefs.h <<EOF
4872 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4876 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4877 echo "configure:4878: checking for _LARGEFILE_SOURCE" >&5
4878 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 ac_cv_sys_largefile_source=no
4883 # HP-UX 10.20 and later
4884 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4885 ac_cv_sys_largefile_source=1 ;;
4887 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4889 -D_LARGEFILE_SOURCE)
4890 ac_cv_sys_largefile_source=1 ;;
4891 -D_LARGEFILE_SOURCE=*)
4892 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4898 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4899 if test "$ac_cv_sys_largefile_source" != no; then
4900 cat >> confdefs.h <<EOF
4901 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4905 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4906 echo "configure:4907: checking for _LARGE_FILES" >&5
4907 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 ac_cv_sys_large_files=no
4913 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4914 ac_cv_sys_large_files=1 ;;
4916 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4919 ac_cv_sys_large_files=1 ;;
4921 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4927 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4928 if test "$ac_cv_sys_large_files" != no; then
4929 cat >> confdefs.h <<EOF
4930 #define _LARGE_FILES $ac_cv_sys_large_files
4938 # If we find X, set shell vars x_includes and x_libraries to the
4939 # paths, otherwise set no_x=yes.
4940 # Uses ac_ vars as temps to allow command line to override cache and checks.
4941 # --without-x overrides everything else, but does not touch the cache.
4942 echo $ac_n "checking for X""... $ac_c" 1>&6
4943 echo "configure:4944: checking for X" >&5
4945 # Check whether --with-x or --without-x was given.
4946 if test "${with_x+set}" = set; then
4951 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4952 if test "x$with_x" = xno; then
4953 # The user explicitly disabled X.
4956 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4957 # Both variables are already set.
4960 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 # One or both of the vars are not set, and there is no cached value.
4964 ac_x_includes=NO ac_x_libraries=NO
4966 if mkdir conftestdir; then
4968 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4969 cat > Imakefile <<'EOF'
4971 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4973 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4974 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4975 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4976 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4977 for ac_extension in a so sl; do
4978 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4979 test -f $ac_im_libdir/libX11.$ac_extension; then
4980 ac_im_usrlibdir=$ac_im_libdir; break
4983 # Screen out bogus values from the imake configuration. They are
4984 # bogus both because they are the default anyway, and because
4985 # using them would break gcc on systems where it needs fixed includes.
4986 case "$ac_im_incroot" in
4988 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4990 case "$ac_im_usrlibdir" in
4992 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4999 if test "$ac_x_includes" = NO; then
5000 # Guess where to find include files, by looking for this one X11 .h file.
5001 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5003 # First, try using that file with no special directory specified.
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 #include <$x_direct_test_include>
5009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010 { (eval echo configure:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012 if test -z "$ac_err"; then
5014 # We can compile using X headers with no special include directory.
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 # Look for the header file in a standard set of common directories.
5022 # Check X11 before X11Rn because it is often a symlink to the current release.
5025 /usr/X11R6/include \
5026 /usr/X11R5/include \
5027 /usr/X11R4/include \
5030 /usr/include/X11R6 \
5031 /usr/include/X11R5 \
5032 /usr/include/X11R4 \
5034 /usr/local/X11/include \
5035 /usr/local/X11R6/include \
5036 /usr/local/X11R5/include \
5037 /usr/local/X11R4/include \
5039 /usr/local/include/X11 \
5040 /usr/local/include/X11R6 \
5041 /usr/local/include/X11R5 \
5042 /usr/local/include/X11R4 \
5046 /usr/XFree86/include/X11 \
5049 /usr/local/include \
5050 /usr/unsupported/include \
5051 /usr/athena/include \
5052 /usr/local/x11r5/include \
5053 /usr/lpp/Xamples/include \
5055 /usr/openwin/include \
5056 /usr/openwin/share/include \
5059 if test -r "$ac_dir/$x_direct_test_include"; then
5060 ac_x_includes=$ac_dir
5066 fi # $ac_x_includes = NO
5068 if test "$ac_x_libraries" = NO; then
5069 # Check for the libraries.
5071 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5072 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5074 # See if we find them without any special options.
5075 # Don't add to $LIBS permanently.
5076 ac_save_LIBS="$LIBS"
5077 LIBS="-l$x_direct_test_library $LIBS"
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5083 ${x_direct_test_function}()
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 LIBS="$ac_save_LIBS"
5089 # We can link X programs with no special library path.
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5095 LIBS="$ac_save_LIBS"
5096 # First see if replacing the include by lib works.
5097 # Check X11 before X11Rn because it is often a symlink to the current release.
5098 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5109 /usr/local/X11/lib \
5110 /usr/local/X11R6/lib \
5111 /usr/local/X11R5/lib \
5112 /usr/local/X11R4/lib \
5114 /usr/local/lib/X11 \
5115 /usr/local/lib/X11R6 \
5116 /usr/local/lib/X11R5 \
5117 /usr/local/lib/X11R4 \
5121 /usr/XFree86/lib/X11 \
5125 /usr/unsupported/lib \
5127 /usr/local/x11r5/lib \
5128 /usr/lpp/Xamples/lib \
5132 /usr/openwin/share/lib \
5135 for ac_extension in a so sl; do
5136 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5137 ac_x_libraries=$ac_dir
5144 fi # $ac_x_libraries = NO
5146 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5147 # Didn't find X anywhere. Cache the known absence of X.
5148 ac_cv_have_x="have_x=no"
5150 # Record where we found X for the cache.
5151 ac_cv_have_x="have_x=yes \
5152 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5156 eval "$ac_cv_have_x"
5159 if test "$have_x" != yes; then
5160 echo "$ac_t""$have_x" 1>&6
5163 # If each of the values was on the command line, it overrides each guess.
5164 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5165 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5166 # Update the cache value to reflect the command line values.
5167 ac_cv_have_x="have_x=yes \
5168 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5169 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5172 if test "$no_x" = yes; then
5173 # Not all programs may use this symbol, but it does not hurt to define it.
5174 cat >> confdefs.h <<\EOF
5175 #define X_DISPLAY_MISSING 1
5178 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5180 if test -n "$x_includes"; then
5181 X_CFLAGS="$X_CFLAGS -I$x_includes"
5184 # It would also be nice to do this for all -L options, not just this one.
5185 if test -n "$x_libraries"; then
5186 X_LIBS="$X_LIBS -L$x_libraries"
5187 # For Solaris; some versions of Sun CC require a space after -R and
5188 # others require no space. Words are not sufficient . . . .
5189 case "`(uname -sr) 2>/dev/null`" in
5191 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5192 echo "configure:5193: checking whether -R must be followed by a space" >&5
5193 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5212 if test $ac_R_nospace = yes; then
5213 echo "$ac_t""no" 1>&6
5214 X_LIBS="$X_LIBS -R$x_libraries"
5216 LIBS="$ac_xsave_LIBS -R $x_libraries"
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5225 if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5235 if test $ac_R_space = yes; then
5236 echo "$ac_t""yes" 1>&6
5237 X_LIBS="$X_LIBS -R $x_libraries"
5239 echo "$ac_t""neither works" 1>&6
5242 LIBS="$ac_xsave_LIBS"
5246 # Check for system-dependent libraries X programs must link with.
5247 # Do this before checking for the system-independent R6 libraries
5248 # (-lICE), since we may need -lsocket or whatever for X linking.
5250 if test "$ISC" = yes; then
5251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5253 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5254 # libraries were built with DECnet support. And karl@cs.umb.edu says
5255 # the Alpha needs dnet_stub (dnet does not exist).
5256 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5257 echo "configure:5258: checking for dnet_ntoa in -ldnet" >&5
5258 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 ac_save_LIBS="$LIBS"
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5278 eval "ac_cv_lib_$ac_lib_var=yes"
5280 echo "configure: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5283 eval "ac_cv_lib_$ac_lib_var=no"
5286 LIBS="$ac_save_LIBS"
5289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5290 echo "$ac_t""yes" 1>&6
5291 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5293 echo "$ac_t""no" 1>&6
5296 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5297 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5298 echo "configure:5299: checking for dnet_ntoa in -ldnet_stub" >&5
5299 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5303 ac_save_LIBS="$LIBS"
5304 LIBS="-ldnet_stub $LIBS"
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5308 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319 eval "ac_cv_lib_$ac_lib_var=yes"
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5324 eval "ac_cv_lib_$ac_lib_var=no"
5327 LIBS="$ac_save_LIBS"
5330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5332 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5334 echo "$ac_t""no" 1>&6
5339 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5340 # to get the SysV transport functions.
5341 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5343 # The nsl library prevents programs from opening the X display
5344 # on Irix 5.2, according to dickey@clark.net.
5345 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5346 echo "configure:5347: checking for gethostbyname" >&5
5347 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5348 echo $ac_n "(cached) $ac_c" 1>&6
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* System header to define __stub macros and hopefully few prototypes,
5354 which can conflict with char gethostbyname(); below. */
5356 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5359 char gethostbyname();
5363 /* The GNU C library defines this for functions which it implements
5364 to always fail with ENOSYS. Some functions are actually named
5365 something starting with __ and the normal name is an alias. */
5366 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5374 if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5376 eval "ac_cv_func_gethostbyname=yes"
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5381 eval "ac_cv_func_gethostbyname=no"
5386 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5387 echo "$ac_t""yes" 1>&6
5390 echo "$ac_t""no" 1>&6
5393 if test $ac_cv_func_gethostbyname = no; then
5394 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5395 echo "configure:5396: checking for gethostbyname in -lnsl" >&5
5396 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5400 ac_save_LIBS="$LIBS"
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
5408 char gethostbyname();
5414 if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5416 eval "ac_cv_lib_$ac_lib_var=yes"
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 eval "ac_cv_lib_$ac_lib_var=no"
5424 LIBS="$ac_save_LIBS"
5427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5428 echo "$ac_t""yes" 1>&6
5429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5431 echo "$ac_t""no" 1>&6
5436 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5437 # socket/setsockopt and other routines are undefined under SCO ODT
5438 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5439 # on later versions), says simon@lia.di.epfl.ch: it contains
5440 # gethostby* variants that don't use the nameserver (or something).
5441 # -lsocket must be given before -lnsl if both are needed.
5442 # We assume that if connect needs -lnsl, so does gethostbyname.
5443 echo $ac_n "checking for connect""... $ac_c" 1>&6
5444 echo "configure:5445: checking for connect" >&5
5445 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5451 /* System header to define __stub macros and hopefully few prototypes,
5452 which can conflict with char connect(); below. */
5454 /* Override any gcc2 internal prototype to avoid an error. */
5455 /* We use char because int might match the return type of a gcc2
5456 builtin and then its argument prototype would still apply. */
5461 /* The GNU C library defines this for functions which it implements
5462 to always fail with ENOSYS. Some functions are actually named
5463 something starting with __ and the normal name is an alias. */
5464 #if defined (__stub_connect) || defined (__stub___connect)
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5474 eval "ac_cv_func_connect=yes"
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 eval "ac_cv_func_connect=no"
5484 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5488 echo "$ac_t""no" 1>&6
5491 if test $ac_cv_func_connect = no; then
5492 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5493 echo "configure:5494: checking for connect in -lsocket" >&5
5494 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 ac_save_LIBS="$LIBS"
5499 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5500 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5503 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5514 eval "ac_cv_lib_$ac_lib_var=yes"
5516 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5519 eval "ac_cv_lib_$ac_lib_var=no"
5522 LIBS="$ac_save_LIBS"
5525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5526 echo "$ac_t""yes" 1>&6
5527 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5529 echo "$ac_t""no" 1>&6
5534 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5535 echo $ac_n "checking for remove""... $ac_c" 1>&6
5536 echo "configure:5537: checking for remove" >&5
5537 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 /* System header to define __stub macros and hopefully few prototypes,
5544 which can conflict with char remove(); below. */
5546 /* Override any gcc2 internal prototype to avoid an error. */
5547 /* We use char because int might match the return type of a gcc2
5548 builtin and then its argument prototype would still apply. */
5553 /* The GNU C library defines this for functions which it implements
5554 to always fail with ENOSYS. Some functions are actually named
5555 something starting with __ and the normal name is an alias. */
5556 #if defined (__stub_remove) || defined (__stub___remove)
5564 if { (eval echo configure:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5566 eval "ac_cv_func_remove=yes"
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 eval "ac_cv_func_remove=no"
5576 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5577 echo "$ac_t""yes" 1>&6
5580 echo "$ac_t""no" 1>&6
5583 if test $ac_cv_func_remove = no; then
5584 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5585 echo "configure:5586: checking for remove in -lposix" >&5
5586 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 ac_save_LIBS="$LIBS"
5591 LIBS="-lposix $LIBS"
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5606 eval "ac_cv_lib_$ac_lib_var=yes"
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5611 eval "ac_cv_lib_$ac_lib_var=no"
5614 LIBS="$ac_save_LIBS"
5617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5621 echo "$ac_t""no" 1>&6
5626 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5627 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5628 echo "configure:5629: checking for shmat" >&5
5629 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 /* System header to define __stub macros and hopefully few prototypes,
5636 which can conflict with char shmat(); below. */
5638 /* Override any gcc2 internal prototype to avoid an error. */
5639 /* We use char because int might match the return type of a gcc2
5640 builtin and then its argument prototype would still apply. */
5645 /* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648 #if defined (__stub_shmat) || defined (__stub___shmat)
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5658 eval "ac_cv_func_shmat=yes"
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5663 eval "ac_cv_func_shmat=no"
5668 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5672 echo "$ac_t""no" 1>&6
5675 if test $ac_cv_func_shmat = no; then
5676 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5677 echo "configure:5678: checking for shmat in -lipc" >&5
5678 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5682 ac_save_LIBS="$LIBS"
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* Override any gcc2 internal prototype to avoid an error. */
5688 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698 eval "ac_cv_lib_$ac_lib_var=yes"
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5703 eval "ac_cv_lib_$ac_lib_var=no"
5706 LIBS="$ac_save_LIBS"
5709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5713 echo "$ac_t""no" 1>&6
5719 # Check for libraries that X11R6 Xt/Xaw programs need.
5720 ac_save_LDFLAGS="$LDFLAGS"
5721 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5722 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5723 # check for ICE first), but we must link in the order -lSM -lICE or
5724 # we get undefined symbols. So assume we have SM if we have ICE.
5725 # These have to be linked with before -lX11, unlike the other
5726 # libraries we check for below, so use a different variable.
5727 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5728 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5729 echo "configure:5730: checking for IceConnectionNumber in -lICE" >&5
5730 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 ac_save_LIBS="$LIBS"
5735 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5742 char IceConnectionNumber();
5745 IceConnectionNumber()
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 eval "ac_cv_lib_$ac_lib_var=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 eval "ac_cv_lib_$ac_lib_var=no"
5758 LIBS="$ac_save_LIBS"
5761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5765 echo "$ac_t""no" 1>&6
5768 LDFLAGS="$ac_save_LDFLAGS"
5801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5803 echo "configure:5804: checking for $ac_hdr" >&5
5804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5807 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
5812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5813 { (eval echo configure:5814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5815 if test -z "$ac_err"; then
5817 eval "ac_cv_header_$ac_safe=yes"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5823 eval "ac_cv_header_$ac_safe=no"
5827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5828 echo "$ac_t""yes" 1>&6
5829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5830 cat >> confdefs.h <<EOF
5831 #define $ac_tr_hdr 1
5835 echo "$ac_t""no" 1>&6
5839 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5840 echo "configure:5841: checking for ANSI C header files" >&5
5841 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5844 cat > conftest.$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5853 { (eval echo configure:5854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5855 if test -z "$ac_err"; then
5857 ac_cv_header_stdc=yes
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5863 ac_cv_header_stdc=no
5867 if test $ac_cv_header_stdc = yes; then
5868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 egrep "memchr" >/dev/null 2>&1; then
5879 ac_cv_header_stdc=no
5885 if test $ac_cv_header_stdc = yes; then
5886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5893 egrep "free" >/dev/null 2>&1; then
5897 ac_cv_header_stdc=no
5903 if test $ac_cv_header_stdc = yes; then
5904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5905 if test "$cross_compiling" = yes; then
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5912 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5913 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5915 int main () { int i; for (i = 0; i < 256; i++)
5916 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 ac_cv_header_stdc=no
5935 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5936 if test $ac_cv_header_stdc = yes; then
5937 cat >> confdefs.h <<\EOF
5938 #define STDC_HEADERS 1
5943 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5944 echo "configure:5945: checking whether sys/types.h defines makedev" >&5
5945 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+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>
5953 return makedev(0, 0);
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958 ac_cv_header_sys_types_h_makedev=yes
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5963 ac_cv_header_sys_types_h_makedev=no
5969 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5971 if test $ac_cv_header_sys_types_h_makedev = no; then
5972 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5973 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5974 echo "configure:5975: checking for sys/mkdev.h" >&5
5975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5978 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5981 #include <sys/mkdev.h>
5983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5984 { (eval echo configure:5985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5986 if test -z "$ac_err"; then
5988 eval "ac_cv_header_$ac_safe=yes"
5991 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5994 eval "ac_cv_header_$ac_safe=no"
5998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5999 echo "$ac_t""yes" 1>&6
6000 cat >> confdefs.h <<\EOF
6001 #define MAJOR_IN_MKDEV 1
6005 echo "$ac_t""no" 1>&6
6009 if test $ac_cv_header_sys_mkdev_h = no; then
6010 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
6011 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
6012 echo "configure:6013: checking for sys/sysmacros.h" >&5
6013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 #include <sys/sysmacros.h>
6021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6022 { (eval echo configure:6023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6024 if test -z "$ac_err"; then
6026 eval "ac_cv_header_$ac_safe=yes"
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6032 eval "ac_cv_header_$ac_safe=no"
6036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 cat >> confdefs.h <<\EOF
6039 #define MAJOR_IN_SYSMACROS 1
6043 echo "$ac_t""no" 1>&6
6050 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6053 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_hdr that defines DIR" >&5
6055 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 #include <sys/types.h>
6067 if { (eval echo configure:6068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6069 eval "ac_cv_header_dirent_$ac_safe=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 eval "ac_cv_header_dirent_$ac_safe=no"
6078 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6079 echo "$ac_t""yes" 1>&6
6080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6081 cat >> confdefs.h <<EOF
6082 #define $ac_tr_hdr 1
6084 ac_header_dirent=$ac_hdr; break
6086 echo "$ac_t""no" 1>&6
6089 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6090 if test $ac_header_dirent = dirent.h; then
6091 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6092 echo "configure:6093: checking for opendir in -ldir" >&5
6093 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6097 ac_save_LIBS="$LIBS"
6099 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6102 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6113 eval "ac_cv_lib_$ac_lib_var=yes"
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6118 eval "ac_cv_lib_$ac_lib_var=no"
6121 LIBS="$ac_save_LIBS"
6124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6125 echo "$ac_t""yes" 1>&6
6128 echo "$ac_t""no" 1>&6
6132 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6133 echo "configure:6134: checking for opendir in -lx" >&5
6134 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6138 ac_save_LIBS="$LIBS"
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 eval "ac_cv_lib_$ac_lib_var=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 eval "ac_cv_lib_$ac_lib_var=no"
6162 LIBS="$ac_save_LIBS"
6165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6169 echo "$ac_t""no" 1>&6
6174 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6175 echo "configure:6176: checking whether stat file-mode macros are broken" >&5
6176 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 #include <sys/types.h>
6183 #include <sys/stat.h>
6185 #if defined(S_ISBLK) && defined(S_IFDIR)
6186 # if S_ISBLK (S_IFDIR)
6191 #if defined(S_ISBLK) && defined(S_IFCHR)
6192 # if S_ISBLK (S_IFCHR)
6197 #if defined(S_ISLNK) && defined(S_IFREG)
6198 # if S_ISLNK (S_IFREG)
6203 #if defined(S_ISSOCK) && defined(S_IFREG)
6204 # if S_ISSOCK (S_IFREG)
6210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6211 egrep "You lose" >/dev/null 2>&1; then
6213 ac_cv_header_stat_broken=yes
6216 ac_cv_header_stat_broken=no
6222 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6223 if test $ac_cv_header_stat_broken = yes; then
6224 cat >> confdefs.h <<\EOF
6225 #define STAT_MACROS_BROKEN 1
6230 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6231 echo "configure:6232: checking for sys/wait.h that is POSIX.1 compatible" >&5
6232 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 #include <sys/types.h>
6239 #include <sys/wait.h>
6241 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6244 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6252 if { (eval echo configure:6253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6254 ac_cv_header_sys_wait_h=yes
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6259 ac_cv_header_sys_wait_h=no
6264 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6265 if test $ac_cv_header_sys_wait_h = yes; then
6266 cat >> confdefs.h <<\EOF
6267 #define HAVE_SYS_WAIT_H 1
6272 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6273 echo "configure:6274: checking whether time.h and sys/time.h may both be included" >&5
6274 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6280 #include <sys/types.h>
6281 #include <sys/time.h>
6287 if { (eval echo configure:6288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6289 ac_cv_header_time=yes
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 ac_cv_header_time=no
6299 echo "$ac_t""$ac_cv_header_time" 1>&6
6300 if test $ac_cv_header_time = yes; then
6301 cat >> confdefs.h <<\EOF
6302 #define TIME_WITH_SYS_TIME 1
6307 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6308 echo "configure:6309: checking for st_blksize in struct stat" >&5
6309 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6312 cat > conftest.$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6315 #include <sys/types.h>
6316 #include <sys/stat.h>
6318 struct stat s; s.st_blksize;
6321 if { (eval echo configure:6322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6323 ac_cv_struct_st_blksize=yes
6325 echo "configure: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 ac_cv_struct_st_blksize=no
6333 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6334 if test $ac_cv_struct_st_blksize = yes; then
6335 cat >> confdefs.h <<\EOF
6336 #define HAVE_ST_BLKSIZE 1
6341 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6342 echo "configure:6343: checking for st_blocks in struct stat" >&5
6343 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 #include <sys/types.h>
6350 #include <sys/stat.h>
6352 struct stat s; s.st_blocks;
6355 if { (eval echo configure:6356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6357 ac_cv_struct_st_blocks=yes
6359 echo "configure: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6362 ac_cv_struct_st_blocks=no
6367 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6368 if test $ac_cv_struct_st_blocks = yes; then
6369 cat >> confdefs.h <<\EOF
6370 #define HAVE_ST_BLOCKS 1
6374 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6377 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6378 echo "configure:6379: checking whether struct tm is in sys/time.h or time.h" >&5
6379 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6385 #include <sys/types.h>
6388 struct tm *tp; tp->tm_sec;
6391 if { (eval echo configure:6392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6393 ac_cv_struct_tm=time.h
6395 echo "configure: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 ac_cv_struct_tm=sys/time.h
6403 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6404 if test $ac_cv_struct_tm = sys/time.h; then
6405 cat >> confdefs.h <<\EOF
6406 #define TM_IN_SYS_TIME 1
6411 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
6412 echo "configure:6413: checking for tm_zone in struct tm" >&5
6413 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
6414 echo $ac_n "(cached) $ac_c" 1>&6
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 #include <sys/types.h>
6420 #include <$ac_cv_struct_tm>
6422 struct tm tm; tm.tm_zone;
6425 if { (eval echo configure:6426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6427 ac_cv_struct_tm_zone=yes
6429 echo "configure: failed program was:" >&5
6430 cat conftest.$ac_ext >&5
6432 ac_cv_struct_tm_zone=no
6437 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
6438 if test "$ac_cv_struct_tm_zone" = yes; then
6439 cat >> confdefs.h <<\EOF
6440 #define HAVE_TM_ZONE 1
6444 echo $ac_n "checking for tzname""... $ac_c" 1>&6
6445 echo "configure:6446: checking for tzname" >&5
6446 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6453 #ifndef tzname /* For SGI. */
6454 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 ac_cv_var_tzname=yes
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6472 echo "$ac_t""$ac_cv_var_tzname" 1>&6
6473 if test $ac_cv_var_tzname = yes; then
6474 cat >> confdefs.h <<\EOF
6475 #define HAVE_TZNAME 1
6482 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
6483 echo "configure:6484: checking for utime.h" >&5
6484 if eval "test \"`echo '$''{'ba_cv_header_utime_h'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6491 #include <sys/types.h>
6497 if { (eval echo configure:6498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6499 ba_cv_header_utime_h=yes
6501 echo "configure: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6504 ba_cv_header_utime_h=no
6509 echo "$ac_t""$ba_cv_header_utime_h" 1>&6
6510 test $ba_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
6511 #define HAVE_UTIME_H 1
6515 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6516 echo "configure:6517: checking for socklen_t" >&5
6517 if eval "test \"`echo '$''{'ba_cv_header_socklen_t'+set}'`\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6524 #include <sys/types.h>
6525 #include <sys/socket.h>
6530 if { (eval echo configure:6531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6532 ba_cv_header_socklen_t=yes
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 ba_cv_header_socklen_t=no
6542 echo "$ac_t""$ba_cv_header_socklen_t" 1>&6
6543 test $ba_cv_header_socklen_t = yes && cat >> confdefs.h <<\EOF
6544 #define HAVE_SOCKLEN_T 1
6548 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
6549 echo "configure:6550: checking for bigendian" >&5
6550 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 if test "$cross_compiling" = yes; then
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 main(){long a=1L; char *p=(char *)&a; exit(*p);}
6561 if { (eval echo configure:6562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6575 echo "$ac_t""$ba_cv_bigendian" 1>&6
6576 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
6577 #define HAVE_BIGENDIAN 1
6582 echo $ac_n "checking for working const""... $ac_c" 1>&6
6583 echo "configure:6584: checking for working const" >&5
6584 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6585 echo $ac_n "(cached) $ac_c" 1>&6
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6593 /* Ultrix mips cc rejects this. */
6594 typedef int charset[2]; const charset x;
6595 /* SunOS 4.1.1 cc rejects this. */
6596 char const *const *ccp;
6598 /* NEC SVR4.0.2 mips cc rejects this. */
6599 struct point {int x, y;};
6600 static struct point const zero = {0,0};
6601 /* AIX XL C 1.02.0.0 rejects this.
6602 It does not let you subtract one const X* pointer from another in an arm
6603 of an if-expression whose if-part is not a constant expression */
6604 const char *g = "string";
6605 ccp = &g + (g ? g-g : 0);
6606 /* HPUX 7.0 cc rejects these. */
6609 ccp = (char const *const *) p;
6610 { /* SCO 3.2v4 cc rejects this. */
6612 char const *s = 0 ? (char *) 0 : (char const *) 0;
6616 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6618 const int *foo = &x[0];
6621 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6622 typedef const int *iptr;
6626 { /* AIX XL C 1.02.0.0 rejects this saying
6627 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6628 struct s { int j; const int *ap[3]; };
6629 struct s *b; b->j = 5;
6631 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6637 if { (eval echo configure:6638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6641 echo "configure: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6649 echo "$ac_t""$ac_cv_c_const" 1>&6
6650 if test $ac_cv_c_const = no; then
6651 cat >> confdefs.h <<\EOF
6659 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6660 echo "configure:6661: checking how to get filesystem type" >&5
6662 # The order of these tests is important.
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 #include <sys/statvfs.h>
6667 #include <sys/fstyp.h>
6669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6670 { (eval echo configure:6671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6672 if test -z "$ac_err"; then
6674 cat >> confdefs.h <<\EOF
6675 #define FSTYPE_STATVFS 1
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6684 if test $fstype = no; then
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 #include <sys/statfs.h>
6689 #include <sys/fstyp.h>
6691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6692 { (eval echo configure:6693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6694 if test -z "$ac_err"; then
6696 cat >> confdefs.h <<\EOF
6697 #define FSTYPE_USG_STATFS 1
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6707 if test $fstype = no; then
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/statfs.h>
6712 #include <sys/vmount.h>
6714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6715 { (eval echo configure:6716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6717 if test -z "$ac_err"; then
6719 cat >> confdefs.h <<\EOF
6720 #define FSTYPE_AIX_STATFS 1
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6730 if test $fstype = no; then
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6737 { (eval echo configure:6738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6739 if test -z "$ac_err"; then
6741 cat >> confdefs.h <<\EOF
6742 #define FSTYPE_MNTENT 1
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6752 if test $fstype = no; then
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <sys/mount.h>
6758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6759 egrep "f_type;" >/dev/null 2>&1; then
6761 cat >> confdefs.h <<\EOF
6762 #define FSTYPE_STATFS 1
6769 if test $fstype = no; then
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 #include <sys/mount.h>
6774 #include <sys/fs_types.h>
6776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6777 { (eval echo configure:6778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6779 if test -z "$ac_err"; then
6781 cat >> confdefs.h <<\EOF
6782 #define FSTYPE_GETMNT 1
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6792 echo "$ac_t""$fstype" 1>&6
6794 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6795 echo "configure:6796: checking return type of signal handlers" >&5
6796 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 #include <sys/types.h>
6808 extern "C" void (*signal (int, void (*)(int)))(int);
6810 void (*signal ()) ();
6817 if { (eval echo configure:6818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6819 ac_cv_type_signal=void
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 ac_cv_type_signal=int
6829 echo "$ac_t""$ac_cv_type_signal" 1>&6
6830 cat >> confdefs.h <<EOF
6831 #define RETSIGTYPE $ac_cv_type_signal
6836 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6837 echo "configure:6838: checking for type of signal functions" >&5
6838 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6849 struct sigaction sa;
6850 sigemptyset(&ss); sigsuspend(&ss);
6851 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6852 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 bash_cv_signal_vintage=posix
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6870 int mask = sigmask(SIGINT);
6871 sigsetmask(mask); sigblock(mask); sigpause(mask);
6875 if { (eval echo configure:6876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 bash_cv_signal_vintage=4.2bsd
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6888 RETSIGTYPE foo() { }
6891 int mask = sigmask(SIGINT);
6892 sigset(SIGINT, foo); sigrelse(SIGINT);
6893 sighold(SIGINT); sigpause(SIGINT);
6897 if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6899 bash_cv_signal_vintage=svr3
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 bash_cv_signal_vintage=v7
6917 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6918 if test "$bash_cv_signal_vintage" = posix; then
6919 cat >> confdefs.h <<\EOF
6920 #define HAVE_POSIX_SIGNALS 1
6923 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6924 cat >> confdefs.h <<\EOF
6925 #define HAVE_BSD_SIGNALS 1
6928 elif test "$bash_cv_signal_vintage" = svr3; then
6929 cat >> confdefs.h <<\EOF
6930 #define HAVE_USG_SIGHOLD 1
6935 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6936 echo "configure:6937: checking for mode_t" >&5
6937 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 #include <sys/types.h>
6949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6952 ac_cv_type_mode_t=yes
6955 ac_cv_type_mode_t=no
6960 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6961 if test $ac_cv_type_mode_t = no; then
6962 cat >> confdefs.h <<\EOF
6968 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6969 echo "configure:6970: checking for uid_t in sys/types.h" >&5
6970 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 #include <sys/types.h>
6978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6979 egrep "uid_t" >/dev/null 2>&1; then
6981 ac_cv_type_uid_t=yes
6990 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6991 if test $ac_cv_type_uid_t = no; then
6992 cat >> confdefs.h <<\EOF
6996 cat >> confdefs.h <<\EOF
7002 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7003 echo "configure:7004: checking for size_t" >&5
7004 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 #include <sys/types.h>
7016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7019 ac_cv_type_size_t=yes
7022 ac_cv_type_size_t=no
7027 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7028 if test $ac_cv_type_size_t = no; then
7029 cat >> confdefs.h <<\EOF
7030 #define size_t unsigned
7035 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7036 echo "configure:7037: checking for pid_t" >&5
7037 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 #include <sys/types.h>
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7052 ac_cv_type_pid_t=yes
7060 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7061 if test $ac_cv_type_pid_t = no; then
7062 cat >> confdefs.h <<\EOF
7068 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7069 echo "configure:7070: checking for off_t" >&5
7070 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7076 #include <sys/types.h>
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7085 ac_cv_type_off_t=yes
7093 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7094 if test $ac_cv_type_off_t = no; then
7095 cat >> confdefs.h <<\EOF
7101 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
7102 echo "configure:7103: checking for ino_t" >&5
7103 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
7104 echo $ac_n "(cached) $ac_c" 1>&6
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7109 #include <sys/types.h>
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7118 ac_cv_type_ino_t=yes
7126 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
7127 if test $ac_cv_type_ino_t = no; then
7128 cat >> confdefs.h <<\EOF
7129 #define ino_t unsigned long
7134 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
7135 echo "configure:7136: checking for dev_t" >&5
7136 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7142 #include <sys/types.h>
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7151 ac_cv_type_dev_t=yes
7159 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
7160 if test $ac_cv_type_dev_t = no; then
7161 cat >> confdefs.h <<\EOF
7162 #define dev_t unsigned long
7167 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
7168 echo "configure:7169: checking for daddr_t" >&5
7169 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7172 cat > conftest.$ac_ext <<EOF
7173 #line 7174 "configure"
7174 #include "confdefs.h"
7175 #include <sys/types.h>
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7184 ac_cv_type_daddr_t=yes
7187 ac_cv_type_daddr_t=no
7192 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
7193 if test $ac_cv_type_daddr_t = no; then
7194 cat >> confdefs.h <<\EOF
7195 #define daddr_t long
7200 echo $ac_n "checking for major_t""... $ac_c" 1>&6
7201 echo "configure:7202: checking for major_t" >&5
7202 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7205 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 #include <sys/types.h>
7214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7215 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7217 ac_cv_type_major_t=yes
7220 ac_cv_type_major_t=no
7225 echo "$ac_t""$ac_cv_type_major_t" 1>&6
7226 if test $ac_cv_type_major_t = no; then
7227 cat >> confdefs.h <<\EOF
7233 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
7234 echo "configure:7235: checking for minor_t" >&5
7235 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
7236 echo $ac_n "(cached) $ac_c" 1>&6
7238 cat > conftest.$ac_ext <<EOF
7239 #line 7240 "configure"
7240 #include "confdefs.h"
7241 #include <sys/types.h>
7247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7248 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7250 ac_cv_type_minor_t=yes
7253 ac_cv_type_minor_t=no
7258 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
7259 if test $ac_cv_type_minor_t = no; then
7260 cat >> confdefs.h <<\EOF
7266 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
7267 echo "configure:7268: checking for ssize_t" >&5
7268 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7271 cat > conftest.$ac_ext <<EOF
7272 #line 7273 "configure"
7273 #include "confdefs.h"
7274 #include <sys/types.h>
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7283 ac_cv_type_ssize_t=yes
7286 ac_cv_type_ssize_t=no
7291 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7292 if test $ac_cv_type_ssize_t = no; then
7293 cat >> confdefs.h <<\EOF
7299 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
7300 echo "configure:7301: checking for st_blocks in struct stat" >&5
7301 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 #include <sys/types.h>
7308 #include <sys/stat.h>
7310 struct stat s; s.st_blocks;
7313 if { (eval echo configure:7314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7315 ac_cv_struct_st_blocks=yes
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7320 ac_cv_struct_st_blocks=no
7325 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
7326 if test $ac_cv_struct_st_blocks = yes; then
7327 cat >> confdefs.h <<\EOF
7328 #define HAVE_ST_BLOCKS 1
7332 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
7335 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
7336 echo "configure:7337: checking for st_rdev in struct stat" >&5
7337 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 #include <sys/types.h>
7344 #include <sys/stat.h>
7346 struct stat s; s.st_rdev;
7349 if { (eval echo configure:7350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7351 ac_cv_struct_st_rdev=yes
7353 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7356 ac_cv_struct_st_rdev=no
7361 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
7362 if test $ac_cv_struct_st_rdev = yes; then
7363 cat >> confdefs.h <<\EOF
7364 #define HAVE_ST_RDEV 1
7369 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7370 echo "configure:7371: checking whether struct tm is in sys/time.h or time.h" >&5
7371 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 #include <sys/types.h>
7380 struct tm *tp; tp->tm_sec;
7383 if { (eval echo configure:7384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7385 ac_cv_struct_tm=time.h
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 ac_cv_struct_tm=sys/time.h
7395 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7396 if test $ac_cv_struct_tm = sys/time.h; then
7397 cat >> confdefs.h <<\EOF
7398 #define TM_IN_SYS_TIME 1
7403 echo $ac_n "checking for working const""... $ac_c" 1>&6
7404 echo "configure:7405: checking for working const" >&5
7405 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7414 /* Ultrix mips cc rejects this. */
7415 typedef int charset[2]; const charset x;
7416 /* SunOS 4.1.1 cc rejects this. */
7417 char const *const *ccp;
7419 /* NEC SVR4.0.2 mips cc rejects this. */
7420 struct point {int x, y;};
7421 static struct point const zero = {0,0};
7422 /* AIX XL C 1.02.0.0 rejects this.
7423 It does not let you subtract one const X* pointer from another in an arm
7424 of an if-expression whose if-part is not a constant expression */
7425 const char *g = "string";
7426 ccp = &g + (g ? g-g : 0);
7427 /* HPUX 7.0 cc rejects these. */
7430 ccp = (char const *const *) p;
7431 { /* SCO 3.2v4 cc rejects this. */
7433 char const *s = 0 ? (char *) 0 : (char const *) 0;
7437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7439 const int *foo = &x[0];
7442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7443 typedef const int *iptr;
7447 { /* AIX XL C 1.02.0.0 rejects this saying
7448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7449 struct s { int j; const int *ap[3]; };
7450 struct s *b; b->j = 5;
7452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7458 if { (eval echo configure:7459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7470 echo "$ac_t""$ac_cv_c_const" 1>&6
7471 if test $ac_cv_c_const = no; then
7472 cat >> confdefs.h <<\EOF
7480 echo $ac_n "checking size of char""... $ac_c" 1>&6
7481 echo "configure:7482: checking size of char" >&5
7482 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7483 echo $ac_n "(cached) $ac_c" 1>&6
7485 if test "$cross_compiling" = yes; then
7488 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure"
7490 #include "confdefs.h"
7494 FILE *f=fopen("conftestval", "w");
7496 fprintf(f, "%d\n", sizeof(char));
7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7502 ac_cv_sizeof_char=`cat conftestval`
7504 echo "configure: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7513 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7514 cat >> confdefs.h <<EOF
7515 #define SIZEOF_CHAR $ac_cv_sizeof_char
7519 echo $ac_n "checking size of short int""... $ac_c" 1>&6
7520 echo "configure:7521: checking size of short int" >&5
7521 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7524 if test "$cross_compiling" = yes; then
7525 ac_cv_sizeof_short_int=2
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7533 FILE *f=fopen("conftestval", "w");
7535 fprintf(f, "%d\n", sizeof(short int));
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7541 ac_cv_sizeof_short_int=`cat conftestval`
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 ac_cv_sizeof_short_int=0
7552 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
7553 cat >> confdefs.h <<EOF
7554 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
7558 echo $ac_n "checking size of int""... $ac_c" 1>&6
7559 echo "configure:7560: checking size of int" >&5
7560 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7563 if test "$cross_compiling" = yes; then
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7572 FILE *f=fopen("conftestval", "w");
7574 fprintf(f, "%d\n", sizeof(int));
7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7580 ac_cv_sizeof_int=`cat conftestval`
7582 echo "configure: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7591 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7592 cat >> confdefs.h <<EOF
7593 #define SIZEOF_INT $ac_cv_sizeof_int
7597 echo $ac_n "checking size of long int""... $ac_c" 1>&6
7598 echo "configure:7599: checking size of long int" >&5
7599 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
7600 echo $ac_n "(cached) $ac_c" 1>&6
7602 if test "$cross_compiling" = yes; then
7603 ac_cv_sizeof_long_int=4
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7611 FILE *f=fopen("conftestval", "w");
7613 fprintf(f, "%d\n", sizeof(long int));
7617 if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7619 ac_cv_sizeof_long_int=`cat conftestval`
7621 echo "configure: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7624 ac_cv_sizeof_long_int=0
7630 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
7631 cat >> confdefs.h <<EOF
7632 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7636 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7637 echo "configure:7638: checking size of long long int" >&5
7638 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7641 if test "$cross_compiling" = yes; then
7642 ac_cv_sizeof_long_long_int=8
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7650 FILE *f=fopen("conftestval", "w");
7652 fprintf(f, "%d\n", sizeof(long long int));
7656 if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7658 ac_cv_sizeof_long_long_int=`cat conftestval`
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7663 ac_cv_sizeof_long_long_int=0
7669 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7670 cat >> confdefs.h <<EOF
7671 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7675 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7676 echo "configure:7677: checking size of int *" >&5
7677 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7680 if test "$cross_compiling" = yes; then
7681 ac_cv_sizeof_int_p=4
7683 cat > conftest.$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7689 FILE *f=fopen("conftestval", "w");
7691 fprintf(f, "%d\n", sizeof(int *));
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7697 ac_cv_sizeof_int_p=`cat conftestval`
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7702 ac_cv_sizeof_int_p=0
7708 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7709 cat >> confdefs.h <<EOF
7710 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7715 # Check for sys/types.h types
7716 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7717 echo "configure:7718: checking for u_int type" >&5
7718 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7722 cat > conftest.$ac_ext <<EOF
7723 #line 7724 "configure"
7724 #include "confdefs.h"
7725 #include <sys/types.h>
7730 if { (eval echo configure:7731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7732 ac_cv_have_u_int="yes"
7734 echo "configure: failed program was:" >&5
7735 cat conftest.$ac_ext >&5
7737 ac_cv_have_u_int="no"
7744 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7745 if test "x$ac_cv_have_u_int" = "xyes" ; then
7746 cat >> confdefs.h <<\EOF
7747 #define HAVE_U_INT 1
7753 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7754 echo "configure:7755: checking for intmax_t type" >&5
7755 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7759 cat > conftest.$ac_ext <<EOF
7760 #line 7761 "configure"
7761 #include "confdefs.h"
7762 #include <sys/types.h>
7767 if { (eval echo configure:7768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7769 ac_cv_have_intmax_t="yes"
7771 echo "configure: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7775 cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7783 if { (eval echo configure:7784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7785 ac_cv_have_intmax_t="yes"
7787 echo "configure: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7790 ac_cv_have_intmax_t="no"
7802 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7803 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7804 cat >> confdefs.h <<\EOF
7805 #define HAVE_INTMAX_T 1
7812 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7813 echo "configure:7814: checking for u_intmax_t type" >&5
7814 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 #include <sys/types.h>
7823 u_intmax_t a; a = 1;
7826 if { (eval echo configure:7827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7828 ac_cv_have_u_intmax_t="yes"
7830 echo "configure: failed program was:" >&5
7831 cat conftest.$ac_ext >&5
7834 cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7839 u_intmax_t a; a = 1;
7842 if { (eval echo configure:7843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7844 ac_cv_have_u_intmax_t="yes"
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7849 ac_cv_have_u_intmax_t="no"
7860 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7861 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7862 cat >> confdefs.h <<\EOF
7863 #define HAVE_U_INTMAX_T 1
7870 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7871 echo "configure:7872: checking for intXX_t types" >&5
7872 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <sys/types.h>
7881 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7884 if { (eval echo configure:7885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7886 ac_cv_have_intxx_t="yes"
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 ac_cv_have_intxx_t="no"
7898 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7899 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7900 cat >> confdefs.h <<\EOF
7901 #define HAVE_INTXX_T 1
7907 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7908 echo "configure:7909: checking for int64_t type" >&5
7909 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7910 echo $ac_n "(cached) $ac_c" 1>&6
7913 cat > conftest.$ac_ext <<EOF
7914 #line 7915 "configure"
7915 #include "confdefs.h"
7916 #include <sys/types.h>
7921 if { (eval echo configure:7922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7923 ac_cv_have_int64_t="yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 ac_cv_have_int64_t="no"
7935 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7936 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7937 cat >> confdefs.h <<\EOF
7938 #define HAVE_INT64_T 1
7944 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7945 echo "configure:7946: checking for u_intXX_t types" >&5
7946 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 #include <sys/types.h>
7955 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7958 if { (eval echo configure:7959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7960 ac_cv_have_u_intxx_t="yes"
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7965 ac_cv_have_u_intxx_t="no"
7972 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7973 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7974 cat >> confdefs.h <<\EOF
7975 #define HAVE_U_INTXX_T 1
7981 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7982 echo "configure:7983: checking for u_int64_t types" >&5
7983 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 #include <sys/types.h>
7995 if { (eval echo configure:7996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7997 ac_cv_have_u_int64_t="yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 ac_cv_have_u_int64_t="no"
8009 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
8010 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
8011 cat >> confdefs.h <<\EOF
8012 #define HAVE_U_INT64_T 1
8018 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
8019 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
8021 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
8022 echo "configure:8023: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 #include <sys/bitypes.h>
8028 int8_t a; int16_t b; int32_t c;
8029 u_int8_t e; u_int16_t f; u_int32_t g;
8030 a = b = c = e = f = g = 1;
8033 if { (eval echo configure:8034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8035 cat >> confdefs.h <<\EOF
8036 #define HAVE_U_INTXX_T 1
8039 cat >> confdefs.h <<\EOF
8040 #define HAVE_INTXX_T 1
8043 cat >> confdefs.h <<\EOF
8044 #define HAVE_SYS_BITYPES_H 1
8047 echo "$ac_t""yes" 1>&6
8049 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8052 echo "$ac_t""no" 1>&6
8058 if test -z "$have_u_intxx_t" ; then
8059 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
8060 echo "configure:8061: checking for uintXX_t types" >&5
8061 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 #include <sys/types.h>
8070 uint8_t a; uint16_t b;
8071 uint32_t c; a = b = c = 1;
8074 if { (eval echo configure:8075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8076 ac_cv_have_uintxx_t="yes"
8078 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8081 ac_cv_have_uintxx_t="no"
8088 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
8089 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
8090 cat >> confdefs.h <<\EOF
8091 #define HAVE_UINTXX_T 1
8097 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
8098 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
8100 echo $ac_n "checking for int64_t and u_int64_t types in sys/bitypes.h""... $ac_c" 1>&6
8101 echo "configure:8102: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 #include <sys/bitypes.h>
8107 int64_t a; u_int64_t b;
8111 if { (eval echo configure:8112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8113 cat >> confdefs.h <<\EOF
8114 #define HAVE_U_INT64_T 1
8117 cat >> confdefs.h <<\EOF
8118 #define HAVE_INT64_T 1
8121 echo "$ac_t""yes" 1>&6
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 echo "$ac_t""no" 1>&6
8132 if (test -z "$have_uintxx_t" && \
8133 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
8135 echo $ac_n "checking for uintXX_t types in sys/bitypes.h""... $ac_c" 1>&6
8136 echo "configure:8137: checking for uintXX_t types in sys/bitypes.h" >&5
8137 cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure"
8139 #include "confdefs.h"
8140 #include <sys/bitypes.h>
8142 uint8_t a; uint16_t b;
8143 uint32_t c; a = b = c = 1;
8146 if { (eval echo configure:8147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8148 cat >> confdefs.h <<\EOF
8149 #define HAVE_UINTXX_T 1
8152 echo "$ac_t""yes" 1>&6
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8157 echo "$ac_t""no" 1>&6
8183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8184 echo "configure:8185: checking for $ac_func" >&5
8185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8186 echo $ac_n "(cached) $ac_c" 1>&6
8188 cat > conftest.$ac_ext <<EOF
8189 #line 8190 "configure"
8190 #include "confdefs.h"
8191 /* System header to define __stub macros and hopefully few prototypes,
8192 which can conflict with char $ac_func(); below. */
8194 /* Override any gcc2 internal prototype to avoid an error. */
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8201 /* The GNU C library defines this for functions which it implements
8202 to always fail with ENOSYS. Some functions are actually named
8203 something starting with __ and the normal name is an alias. */
8204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8214 eval "ac_cv_func_$ac_func=yes"
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8219 eval "ac_cv_func_$ac_func=no"
8224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8225 echo "$ac_t""yes" 1>&6
8226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8227 cat >> confdefs.h <<EOF
8228 #define $ac_tr_func 1
8232 echo "$ac_t""no" 1>&6
8233 echo 'configure: cannot find needed function.'; exit 1
8239 for ac_func in fchdir
8241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8242 echo "configure:8243: checking for $ac_func" >&5
8243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8246 cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8249 /* System header to define __stub macros and hopefully few prototypes,
8250 which can conflict with char $ac_func(); below. */
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8259 /* The GNU C library defines this for functions which it implements
8260 to always fail with ENOSYS. Some functions are actually named
8261 something starting with __ and the normal name is an alias. */
8262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8272 eval "ac_cv_func_$ac_func=yes"
8274 echo "configure: failed program was:" >&5
8275 cat conftest.$ac_ext >&5
8277 eval "ac_cv_func_$ac_func=no"
8282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8285 cat >> confdefs.h <<EOF
8286 #define $ac_tr_func 1
8288 cat >> confdefs.h <<\EOF
8289 #define HAVE_FCHDIR 1
8293 echo "$ac_t""no" 1>&6
8297 for ac_func in strtoll
8299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8300 echo "configure:8301: checking for $ac_func" >&5
8301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8304 cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 /* System header to define __stub macros and hopefully few prototypes,
8308 which can conflict with char $ac_func(); below. */
8310 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8317 /* The GNU C library defines this for functions which it implements
8318 to always fail with ENOSYS. Some functions are actually named
8319 something starting with __ and the normal name is an alias. */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8330 eval "ac_cv_func_$ac_func=yes"
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 eval "ac_cv_func_$ac_func=no"
8340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8341 echo "$ac_t""yes" 1>&6
8342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8343 cat >> confdefs.h <<EOF
8344 #define $ac_tr_func 1
8346 cat >> confdefs.h <<\EOF
8347 #define HAVE_STRTOLL 1
8351 echo "$ac_t""no" 1>&6
8356 for ac_func in chflags
8358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8359 echo "configure:8360: checking for $ac_func" >&5
8360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 /* System header to define __stub macros and hopefully few prototypes,
8367 which can conflict with char $ac_func(); below. */
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8376 /* The GNU C library defines this for functions which it implements
8377 to always fail with ENOSYS. Some functions are actually named
8378 something starting with __ and the normal name is an alias. */
8379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8387 if { (eval echo configure:8388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8389 eval "ac_cv_func_$ac_func=yes"
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8394 eval "ac_cv_func_$ac_func=no"
8399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8400 echo "$ac_t""yes" 1>&6
8401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8402 cat >> confdefs.h <<EOF
8403 #define $ac_tr_func 1
8407 echo "$ac_t""no" 1>&6
8412 for ac_func in snprintf vsnprintf gethostid getdomainname
8414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8415 echo "configure:8416: checking for $ac_func" >&5
8416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8419 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure"
8421 #include "confdefs.h"
8422 /* System header to define __stub macros and hopefully few prototypes,
8423 which can conflict with char $ac_func(); below. */
8425 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8432 /* The GNU C library defines this for functions which it implements
8433 to always fail with ENOSYS. Some functions are actually named
8434 something starting with __ and the normal name is an alias. */
8435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8443 if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8445 eval "ac_cv_func_$ac_func=yes"
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8450 eval "ac_cv_func_$ac_func=no"
8455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8458 cat >> confdefs.h <<EOF
8459 #define $ac_tr_func 1
8463 echo "$ac_t""no" 1>&6
8468 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
8470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8471 echo "configure:8472: checking for $ac_func" >&5
8472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 cat > conftest.$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 /* System header to define __stub macros and hopefully few prototypes,
8479 which can conflict with char $ac_func(); below. */
8481 /* Override any gcc2 internal prototype to avoid an error. */
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8488 /* The GNU C library defines this for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8499 if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8501 eval "ac_cv_func_$ac_func=yes"
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8506 eval "ac_cv_func_$ac_func=no"
8511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8512 echo "$ac_t""yes" 1>&6
8513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8514 cat >> confdefs.h <<EOF
8515 #define $ac_tr_func 1
8519 echo "$ac_t""no" 1>&6
8524 # If resolver functions are not in libc check for -lnsl or -lresolv.
8525 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
8526 echo "configure:8527: checking for gethostbyname_r" >&5
8527 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char gethostbyname_r(); below. */
8536 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539 char gethostbyname_r();
8543 /* The GNU C library defines this for functions which it implements
8544 to always fail with ENOSYS. Some functions are actually named
8545 something starting with __ and the normal name is an alias. */
8546 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8556 eval "ac_cv_func_gethostbyname_r=yes"
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8561 eval "ac_cv_func_gethostbyname_r=no"
8566 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 echo "$ac_t""using libc's resolver" 1>&6
8570 echo "$ac_t""no" 1>&6
8571 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
8572 echo "configure:8573: checking for gethostbyname_r in -lnsl" >&5
8573 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
8577 ac_save_LIBS="$LIBS"
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char gethostbyname_r();
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8593 eval "ac_cv_lib_$ac_lib_var=yes"
8595 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8598 eval "ac_cv_lib_$ac_lib_var=no"
8601 LIBS="$ac_save_LIBS"
8604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8605 echo "$ac_t""yes" 1>&6
8606 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
8607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8608 cat >> confdefs.h <<EOF
8609 #define $ac_tr_lib 1
8615 echo "$ac_t""no" 1>&6
8618 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
8619 echo "configure:8620: checking for gethostbyname_r in -lresolv" >&5
8620 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
8621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 ac_save_LIBS="$LIBS"
8625 LIBS="-lresolv $LIBS"
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 /* Override any gcc2 internal prototype to avoid an error. */
8630 /* We use char because int might match the return type of a gcc2
8631 builtin and then its argument prototype would still apply. */
8632 char gethostbyname_r();
8638 if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640 eval "ac_cv_lib_$ac_lib_var=yes"
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8645 eval "ac_cv_lib_$ac_lib_var=no"
8648 LIBS="$ac_save_LIBS"
8651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8652 echo "$ac_t""yes" 1>&6
8653 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
8654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8655 cat >> confdefs.h <<EOF
8656 #define $ac_tr_lib 1
8659 LIBS="-lresolv $LIBS"
8662 echo "$ac_t""no" 1>&6
8669 # Find where sockets are (especially for Solaris)
8670 echo $ac_n "checking for socket""... $ac_c" 1>&6
8671 echo "configure:8672: checking for socket" >&5
8672 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8673 echo $ac_n "(cached) $ac_c" 1>&6
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char socket(); below. */
8681 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8688 /* The GNU C library defines this for functions which it implements
8689 to always fail with ENOSYS. Some functions are actually named
8690 something starting with __ and the normal name is an alias. */
8691 #if defined (__stub_socket) || defined (__stub___socket)
8699 if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8701 eval "ac_cv_func_socket=yes"
8703 echo "configure: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8706 eval "ac_cv_func_socket=no"
8711 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8712 echo "$ac_t""yes" 1>&6
8713 echo "$ac_t""using libc's socket" 1>&6
8715 echo "$ac_t""no" 1>&6
8716 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
8717 echo "configure:8718: checking for socket in -lxnet" >&5
8718 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
8719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8722 ac_save_LIBS="$LIBS"
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8736 if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8738 eval "ac_cv_lib_$ac_lib_var=yes"
8740 echo "configure: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8743 eval "ac_cv_lib_$ac_lib_var=no"
8746 LIBS="$ac_save_LIBS"
8749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8750 echo "$ac_t""yes" 1>&6
8751 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
8752 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8753 cat >> confdefs.h <<EOF
8754 #define $ac_tr_lib 1
8760 echo "$ac_t""no" 1>&6
8763 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8764 echo "configure:8765: checking for socket in -lsocket" >&5
8765 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
8766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8769 ac_save_LIBS="$LIBS"
8770 LIBS="-lsocket $LIBS"
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 /* Override any gcc2 internal prototype to avoid an error. */
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8783 if { (eval echo configure:8784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8785 eval "ac_cv_lib_$ac_lib_var=yes"
8787 echo "configure: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8790 eval "ac_cv_lib_$ac_lib_var=no"
8793 LIBS="$ac_save_LIBS"
8796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8797 echo "$ac_t""yes" 1>&6
8798 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
8799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8800 cat >> confdefs.h <<EOF
8801 #define $ac_tr_lib 1
8804 LIBS="-lsocket $LIBS"
8807 echo "$ac_t""no" 1>&6
8810 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8811 echo "configure:8812: checking for socket in -linet" >&5
8812 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
8813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
8816 ac_save_LIBS="$LIBS"
8818 cat > conftest.$ac_ext <<EOF
8819 #line 8820 "configure"
8820 #include "confdefs.h"
8821 /* Override any gcc2 internal prototype to avoid an error. */
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8830 if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8832 eval "ac_cv_lib_$ac_lib_var=yes"
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8837 eval "ac_cv_lib_$ac_lib_var=no"
8840 LIBS="$ac_save_LIBS"
8843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8844 echo "$ac_t""yes" 1>&6
8845 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8846 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8847 cat >> confdefs.h <<EOF
8848 #define $ac_tr_lib 1
8854 echo "$ac_t""no" 1>&6
8860 for ac_func in inet_pton
8862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8863 echo "configure:8864: checking for $ac_func" >&5
8864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8865 echo $ac_n "(cached) $ac_c" 1>&6
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 /* System header to define __stub macros and hopefully few prototypes,
8871 which can conflict with char $ac_func(); below. */
8873 /* Override any gcc2 internal prototype to avoid an error. */
8874 /* We use char because int might match the return type of a gcc2
8875 builtin and then its argument prototype would still apply. */
8880 /* The GNU C library defines this for functions which it implements
8881 to always fail with ENOSYS. Some functions are actually named
8882 something starting with __ and the normal name is an alias. */
8883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8893 eval "ac_cv_func_$ac_func=yes"
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 eval "ac_cv_func_$ac_func=no"
8903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8904 echo "$ac_t""yes" 1>&6
8905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8906 cat >> confdefs.h <<EOF
8907 #define $ac_tr_func 1
8909 cat >> confdefs.h <<\EOF
8910 #define HAVE_INET_PTON 1
8914 echo "$ac_t""no" 1>&6
8918 for ac_func in inet_ntop
8920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8921 echo "configure:8922: checking for $ac_func" >&5
8922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8923 echo $ac_n "(cached) $ac_c" 1>&6
8925 cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8928 /* System header to define __stub macros and hopefully few prototypes,
8929 which can conflict with char $ac_func(); below. */
8931 /* Override any gcc2 internal prototype to avoid an error. */
8932 /* We use char because int might match the return type of a gcc2
8933 builtin and then its argument prototype would still apply. */
8938 /* The GNU C library defines this for functions which it implements
8939 to always fail with ENOSYS. Some functions are actually named
8940 something starting with __ and the normal name is an alias. */
8941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8951 eval "ac_cv_func_$ac_func=yes"
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8956 eval "ac_cv_func_$ac_func=no"
8961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8962 echo "$ac_t""yes" 1>&6
8963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8964 cat >> confdefs.h <<EOF
8965 #define $ac_tr_func 1
8967 cat >> confdefs.h <<\EOF
8968 #define HAVE_INET_NTOP 1
8972 echo "$ac_t""no" 1>&6
8976 for ac_func in gethostbyname2
8978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8979 echo "configure:8980: checking for $ac_func" >&5
8980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 /* System header to define __stub macros and hopefully few prototypes,
8987 which can conflict with char $ac_func(); below. */
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 /* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */
8996 /* The GNU C library defines this for functions which it implements
8997 to always fail with ENOSYS. Some functions are actually named
8998 something starting with __ and the normal name is an alias. */
8999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9007 if { (eval echo configure:9008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9009 eval "ac_cv_func_$ac_func=yes"
9011 echo "configure: failed program was:" >&5
9012 cat conftest.$ac_ext >&5
9014 eval "ac_cv_func_$ac_func=no"
9019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9022 cat >> confdefs.h <<EOF
9023 #define $ac_tr_func 1
9025 cat >> confdefs.h <<\EOF
9026 #define HAVE_GETHOSTBYNAME2 1
9030 echo "$ac_t""no" 1>&6
9035 echo $ac_n "checking for struct sockaddr has a sa_len field""... $ac_c" 1>&6
9036 echo "configure:9037: checking for struct sockaddr has a sa_len field" >&5
9037 if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_sa_len'+set}'`\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 #include <sys/socket.h>
9045 struct sockaddr s; s.sa_len;
9048 if { (eval echo configure:9049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9050 ac_cv_struct_sockaddr_sa_len=yes
9052 echo "configure: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9055 ac_cv_struct_sockaddr_sa_len=no
9060 echo "$ac_t""$ac_cv_struct_sockaddr_sa_len" 1>&6
9062 if test $ac_cv_struct_sockaddr_sa_len = yes; then
9063 cat >> confdefs.h <<\EOF
9064 #define HAVE_SA_LEN 1
9070 echo $ac_n "checking for IPv6 support""... $ac_c" 1>&6
9071 echo "configure:9072: checking for IPv6 support" >&5
9072 if eval "test \"`echo '$''{'ac_cv_ipv6_support'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9075 cat > conftest.$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078 #include <sys/types.h>
9079 #include <sys/socket.h>
9080 #include <netinet/in.h>
9082 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
9086 if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9088 ac_cv_ipv6_support=yes
9090 echo "configure: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9093 ac_cv_ipv6_support=no
9098 echo "$ac_t""$ac_cv_ipv6_support" 1>&6
9100 if test "$ac_cv_ipv6_support" = yes; then
9101 cat >> confdefs.h <<\EOF
9109 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9110 echo "configure:9111: checking for strftime" >&5
9111 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9112 echo $ac_n "(cached) $ac_c" 1>&6
9114 cat > conftest.$ac_ext <<EOF
9115 #line 9116 "configure"
9116 #include "confdefs.h"
9117 /* System header to define __stub macros and hopefully few prototypes,
9118 which can conflict with char strftime(); below. */
9120 /* Override any gcc2 internal prototype to avoid an error. */
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9127 /* The GNU C library defines this for functions which it implements
9128 to always fail with ENOSYS. Some functions are actually named
9129 something starting with __ and the normal name is an alias. */
9130 #if defined (__stub_strftime) || defined (__stub___strftime)
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9140 eval "ac_cv_func_strftime=yes"
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9145 eval "ac_cv_func_strftime=no"
9150 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9151 echo "$ac_t""yes" 1>&6
9152 cat >> confdefs.h <<\EOF
9153 #define HAVE_STRFTIME 1
9157 echo "$ac_t""no" 1>&6
9158 # strftime is in -lintl on SCO UNIX.
9159 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9160 echo "configure:9161: checking for strftime in -lintl" >&5
9161 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9165 ac_save_LIBS="$LIBS"
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 /* Override any gcc2 internal prototype to avoid an error. */
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9181 eval "ac_cv_lib_$ac_lib_var=yes"
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9186 eval "ac_cv_lib_$ac_lib_var=no"
9189 LIBS="$ac_save_LIBS"
9192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9193 echo "$ac_t""yes" 1>&6
9194 cat >> confdefs.h <<\EOF
9195 #define HAVE_STRFTIME 1
9200 echo "$ac_t""no" 1>&6
9205 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9206 echo "configure:9207: checking for vprintf" >&5
9207 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure"
9212 #include "confdefs.h"
9213 /* System header to define __stub macros and hopefully few prototypes,
9214 which can conflict with char vprintf(); below. */
9216 /* Override any gcc2 internal prototype to avoid an error. */
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9223 /* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
9226 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9234 if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9236 eval "ac_cv_func_vprintf=yes"
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9241 eval "ac_cv_func_vprintf=no"
9246 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9248 cat >> confdefs.h <<\EOF
9249 #define HAVE_VPRINTF 1
9253 echo "$ac_t""no" 1>&6
9256 if test "$ac_cv_func_vprintf" != yes; then
9257 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9258 echo "configure:9259: checking for _doprnt" >&5
9259 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
9262 cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9265 /* System header to define __stub macros and hopefully few prototypes,
9266 which can conflict with char _doprnt(); below. */
9268 /* Override any gcc2 internal prototype to avoid an error. */
9269 /* We use char because int might match the return type of a gcc2
9270 builtin and then its argument prototype would still apply. */
9275 /* The GNU C library defines this for functions which it implements
9276 to always fail with ENOSYS. Some functions are actually named
9277 something starting with __ and the normal name is an alias. */
9278 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9286 if { (eval echo configure:9287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9288 eval "ac_cv_func__doprnt=yes"
9290 echo "configure: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9293 eval "ac_cv_func__doprnt=no"
9298 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 cat >> confdefs.h <<\EOF
9301 #define HAVE_DOPRNT 1
9305 echo "$ac_t""no" 1>&6
9310 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9311 # for constant arguments. Useless!
9312 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9313 echo "configure:9314: checking for working alloca.h" >&5
9314 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9322 char *p = alloca(2 * sizeof(int));
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9327 ac_cv_header_alloca_h=yes
9329 echo "configure: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9332 ac_cv_header_alloca_h=no
9337 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
9338 if test $ac_cv_header_alloca_h = yes; then
9339 cat >> confdefs.h <<\EOF
9340 #define HAVE_ALLOCA_H 1
9345 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9346 echo "configure:9347: checking for alloca" >&5
9347 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
9348 echo $ac_n "(cached) $ac_c" 1>&6
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9352 "configure"
9352 #include "confdefs.h"
9355 # define alloca __builtin_alloca
9358 # include <malloc.h>
9359 # define alloca _alloca
9362 # include <alloca.h>
9367 # ifndef alloca /* predefined by HP cc +Olibcalls */
9376 char *p = (char *) alloca(1);
9379 if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9381 ac_cv_func_alloca_works=yes
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9386 ac_cv_func_alloca_works=no
9391 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
9392 if test $ac_cv_func_alloca_works = yes; then
9393 cat >> confdefs.h <<\EOF
9394 #define HAVE_ALLOCA 1
9399 if test $ac_cv_func_alloca_works = no; then
9400 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9401 # that cause trouble. Some versions do not even contain alloca or
9402 # contain a buggy version. If you still want to use their alloca,
9403 # use ar to extract alloca.o from them instead of compiling alloca.c.
9404 ALLOCA=alloca.${ac_objext}
9405 cat >> confdefs.h <<\EOF
9410 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9411 echo "configure:9412: checking whether alloca needs Cray hooks" >&5
9412 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9415 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9418 #if defined(CRAY) && ! defined(CRAY2)
9425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9426 egrep "webecray" >/dev/null 2>&1; then
9437 echo "$ac_t""$ac_cv_os_cray" 1>&6
9438 if test $ac_cv_os_cray = yes; then
9439 for ac_func in _getb67 GETB67 getb67; do
9440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9441 echo "configure:9442: checking for $ac_func" >&5
9442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448 /* System header to define __stub macros and hopefully few prototypes,
9449 which can conflict with char $ac_func(); below. */
9451 /* Override any gcc2 internal prototype to avoid an error. */
9452 /* We use char because int might match the return type of a gcc2
9453 builtin and then its argument prototype would still apply. */
9458 /* The GNU C library defines this for functions which it implements
9459 to always fail with ENOSYS. Some functions are actually named
9460 something starting with __ and the normal name is an alias. */
9461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9471 eval "ac_cv_func_$ac_func=yes"
9473 echo "configure: failed program was:" >&5
9474 cat conftest.$ac_ext >&5
9476 eval "ac_cv_func_$ac_func=no"
9481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9482 echo "$ac_t""yes" 1>&6
9483 cat >> confdefs.h <<EOF
9484 #define CRAY_STACKSEG_END $ac_func
9489 echo "$ac_t""no" 1>&6
9495 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9496 echo "configure:9497: checking stack direction for C alloca" >&5
9497 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9500 if test "$cross_compiling" = yes; then
9501 ac_cv_c_stack_direction=0
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9506 find_stack_direction ()
9508 static char *addr = 0;
9513 return find_stack_direction ();
9516 return (&dummy > addr) ? 1 : -1;
9520 exit (find_stack_direction() < 0);
9523 if { (eval echo configure:9524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9525 ac_cv_c_stack_direction=1
9527 echo "configure: failed program was:" >&5
9528 cat conftest.$ac_ext >&5
9530 ac_cv_c_stack_direction=-1
9537 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
9538 cat >> confdefs.h <<EOF
9539 #define STACK_DIRECTION $ac_cv_c_stack_direction
9544 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9545 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
9546 echo "configure:9547: checking for getmntent in -lsun" >&5
9547 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
9548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9551 ac_save_LIBS="$LIBS"
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 /* Override any gcc2 internal prototype to avoid an error. */
9557 /* We use char because int might match the return type of a gcc2
9558 builtin and then its argument prototype would still apply. */
9565 if { (eval echo configure:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9567 eval "ac_cv_lib_$ac_lib_var=yes"
9569 echo "configure: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9572 eval "ac_cv_lib_$ac_lib_var=no"
9575 LIBS="$ac_save_LIBS"
9578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9579 echo "$ac_t""yes" 1>&6
9582 echo "$ac_t""no" 1>&6
9583 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
9584 echo "configure:9585: checking for getmntent in -lseq" >&5
9585 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
9586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9587 echo $ac_n "(cached) $ac_c" 1>&6
9589 ac_save_LIBS="$LIBS"
9591 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 /* Override any gcc2 internal prototype to avoid an error. */
9595 /* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */
9603 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9605 eval "ac_cv_lib_$ac_lib_var=yes"
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9610 eval "ac_cv_lib_$ac_lib_var=no"
9613 LIBS="$ac_save_LIBS"
9616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9617 echo "$ac_t""yes" 1>&6
9620 echo "$ac_t""no" 1>&6
9621 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
9622 echo "configure:9623: checking for getmntent in -lgen" >&5
9623 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
9624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9627 ac_save_LIBS="$LIBS"
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */
9641 if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9643 eval "ac_cv_lib_$ac_lib_var=yes"
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9648 eval "ac_cv_lib_$ac_lib_var=no"
9651 LIBS="$ac_save_LIBS"
9654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9655 echo "$ac_t""yes" 1>&6
9658 echo "$ac_t""no" 1>&6
9665 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
9666 echo "configure:9667: checking for getmntent" >&5
9667 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9670 cat > conftest.$ac_ext <<EOF
9671 #line 9672 "configure"
9672 #include "confdefs.h"
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char getmntent(); below. */
9676 /* Override any gcc2 internal prototype to avoid an error. */
9677 /* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */
9683 /* The GNU C library defines this for functions which it implements
9684 to always fail with ENOSYS. Some functions are actually named
9685 something starting with __ and the normal name is an alias. */
9686 #if defined (__stub_getmntent) || defined (__stub___getmntent)
9694 if { (eval echo configure:9695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9696 eval "ac_cv_func_getmntent=yes"
9698 echo "configure: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9701 eval "ac_cv_func_getmntent=no"
9706 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
9707 echo "$ac_t""yes" 1>&6
9708 cat >> confdefs.h <<\EOF
9709 #define HAVE_GETMNTENT 1
9713 echo "$ac_t""no" 1>&6
9716 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
9717 echo "configure:9718: checking whether closedir returns void" >&5
9718 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
9721 if test "$cross_compiling" = yes; then
9722 ac_cv_func_closedir_void=yes
9724 cat > conftest.$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9728 #include <$ac_header_dirent>
9729 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
9731 if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9733 ac_cv_func_closedir_void=no
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9738 ac_cv_func_closedir_void=yes
9745 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
9746 if test $ac_cv_func_closedir_void = yes; then
9747 cat >> confdefs.h <<\EOF
9748 #define CLOSEDIR_VOID 1
9753 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
9754 echo "configure:9755: checking whether setpgrp takes no argument" >&5
9755 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9758 if test "$cross_compiling" = yes; then
9759 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
9761 cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9765 #ifdef HAVE_UNISTD_H
9770 * If this system has a BSD-style setpgrp, which takes arguments, exit
9775 if (setpgrp(1,1) == -1)
9782 if { (eval echo configure:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9784 ac_cv_func_setpgrp_void=no
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9789 ac_cv_func_setpgrp_void=yes
9797 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
9798 if test $ac_cv_func_setpgrp_void = yes; then
9799 cat >> confdefs.h <<\EOF
9800 #define SETPGRP_VOID 1
9804 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9805 echo "configure:9806: checking for working fnmatch" >&5
9806 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9809 # Some versions of Solaris or SCO have a broken fnmatch function.
9810 # So we run a test program. If we are cross-compiling, take no chance.
9811 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9812 if test "$cross_compiling" = yes; then
9813 ac_cv_func_fnmatch_works=no
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
9820 if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9822 ac_cv_func_fnmatch_works=yes
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9827 ac_cv_func_fnmatch_works=no
9834 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
9835 if test $ac_cv_func_fnmatch_works = yes; then
9836 cat >> confdefs.h <<\EOF
9837 #define HAVE_FNMATCH 1
9844 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9845 echo "configure:9846: checking for setlocale in -lxpg4" >&5
9846 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9848 echo $ac_n "(cached) $ac_c" 1>&6
9850 ac_save_LIBS="$LIBS"
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 /* Override any gcc2 internal prototype to avoid an error. */
9856 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9866 eval "ac_cv_lib_$ac_lib_var=yes"
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9871 eval "ac_cv_lib_$ac_lib_var=no"
9874 LIBS="$ac_save_LIBS"
9877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9878 echo "$ac_t""yes" 1>&6
9881 echo "$ac_t""no" 1>&6
9886 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
9887 echo "configure:9888: checking for getpwnam in -lsun" >&5
9888 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
9889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9892 ac_save_LIBS="$LIBS"
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9897 /* Override any gcc2 internal prototype to avoid an error. */
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9906 if { (eval echo configure:9907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9908 eval "ac_cv_lib_$ac_lib_var=yes"
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9913 eval "ac_cv_lib_$ac_lib_var=no"
9916 LIBS="$ac_save_LIBS"
9919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9920 echo "$ac_t""yes" 1>&6
9921 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9922 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9923 cat >> confdefs.h <<EOF
9924 #define $ac_tr_lib 1
9930 echo "$ac_t""no" 1>&6
9934 for ac_hdr in zlib.h
9936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9938 echo "configure:9939: checking for $ac_hdr" >&5
9939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9948 { (eval echo configure:9949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9950 if test -z "$ac_err"; then
9952 eval "ac_cv_header_$ac_safe=yes"
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 eval "ac_cv_header_$ac_safe=no"
9962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9963 echo "$ac_t""yes" 1>&6
9964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9965 cat >> confdefs.h <<EOF
9966 #define $ac_tr_hdr 1
9970 echo "$ac_t""no" 1>&6
9974 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9975 echo "configure:9976: checking for deflate in -lz" >&5
9976 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9978 echo $ac_n "(cached) $ac_c" 1>&6
9980 ac_save_LIBS="$LIBS"
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985 /* Override any gcc2 internal prototype to avoid an error. */
9986 /* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9996 eval "ac_cv_lib_$ac_lib_var=yes"
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10001 eval "ac_cv_lib_$ac_lib_var=no"
10004 LIBS="$ac_save_LIBS"
10007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10008 echo "$ac_t""yes" 1>&6
10011 echo "$ac_t""no" 1>&6
10015 if test x$FDLIBS = x-lz; then
10016 cat >> confdefs.h <<\EOF
10017 #define HAVE_LIBZ 1
10023 ac_safe=`echo "sys/acl.h" | sed 'y%./+-%__p_%'`
10024 echo $ac_n "checking for sys/acl.h""... $ac_c" 1>&6
10025 echo "configure:10026: checking for sys/acl.h" >&5
10026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10027 echo $ac_n "(cached) $ac_c" 1>&6
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 #include <sys/acl.h>
10034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10035 { (eval echo configure:10036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10037 if test -z "$ac_err"; then
10039 eval "ac_cv_header_$ac_safe=yes"
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10045 eval "ac_cv_header_$ac_safe=no"
10049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10053 echo "$ac_t""no" 1>&6
10056 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
10057 echo "configure:10058: checking for acl_get_file in -lacl" >&5
10058 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
10059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10062 ac_save_LIBS="$LIBS"
10064 cat > conftest.$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10067 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char acl_get_file();
10076 if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10078 eval "ac_cv_lib_$ac_lib_var=yes"
10080 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10083 eval "ac_cv_lib_$ac_lib_var=no"
10086 LIBS="$ac_save_LIBS"
10089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10090 echo "$ac_t""yes" 1>&6
10091 FDLIBS="-lacl $FDLIBS"
10093 echo "$ac_t""no" 1>&6
10097 if test $ac_cv_lib_acl_acl_get_file = yes; then
10098 cat >> confdefs.h <<\EOF
10106 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10107 echo "configure:10108: checking for pthread_create in -lpthread" >&5
10108 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10112 ac_save_LIBS="$LIBS"
10113 LIBS="-lpthread $LIBS"
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 /* Override any gcc2 internal prototype to avoid an error. */
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120 char pthread_create();
10126 if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10128 eval "ac_cv_lib_$ac_lib_var=yes"
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10133 eval "ac_cv_lib_$ac_lib_var=no"
10136 LIBS="$ac_save_LIBS"
10139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6
10141 PTHREAD_LIB="-lpthread"
10143 echo "$ac_t""no" 1>&6
10144 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
10145 echo "configure:10146: checking for pthread_create in -lpthreads" >&5
10146 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
10147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10148 echo $ac_n "(cached) $ac_c" 1>&6
10150 ac_save_LIBS="$LIBS"
10151 LIBS="-lpthreads $LIBS"
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 /* Override any gcc2 internal prototype to avoid an error. */
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158 char pthread_create();
10164 if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10166 eval "ac_cv_lib_$ac_lib_var=yes"
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10171 eval "ac_cv_lib_$ac_lib_var=no"
10174 LIBS="$ac_save_LIBS"
10177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10178 echo "$ac_t""yes" 1>&6
10179 PTHREAD_LIB="-lpthreads"
10181 echo "$ac_t""no" 1>&6
10182 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10183 echo "configure:10184: checking for pthread_create in -lc_r" >&5
10184 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10186 echo $ac_n "(cached) $ac_c" 1>&6
10188 ac_save_LIBS="$LIBS"
10190 cat > conftest.$ac_ext <<EOF
10191 #line 10192 "configure"
10192 #include "confdefs.h"
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10196 char pthread_create();
10202 if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10204 eval "ac_cv_lib_$ac_lib_var=yes"
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10209 eval "ac_cv_lib_$ac_lib_var=no"
10212 LIBS="$ac_save_LIBS"
10215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 PTHREAD_LIB="-lc_r"
10219 echo "$ac_t""no" 1>&6
10220 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
10221 echo "configure:10222: checking for pthread_create" >&5
10222 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
10223 echo $ac_n "(cached) $ac_c" 1>&6
10225 cat > conftest.$ac_ext <<EOF
10226 #line 10227 "configure"
10227 #include "confdefs.h"
10228 /* System header to define __stub macros and hopefully few prototypes,
10229 which can conflict with char pthread_create(); below. */
10230 #include <assert.h>
10231 /* Override any gcc2 internal prototype to avoid an error. */
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10234 char pthread_create();
10238 /* The GNU C library defines this for functions which it implements
10239 to always fail with ENOSYS. Some functions are actually named
10240 something starting with __ and the normal name is an alias. */
10241 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
10249 if { (eval echo configure:10250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10251 eval "ac_cv_func_pthread_create=yes"
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10256 eval "ac_cv_func_pthread_create=no"
10261 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
10262 echo "$ac_t""yes" 1>&6
10265 echo "$ac_t""no" 1>&6
10279 cat >> confdefs.h <<\EOF
10285 CFLAGS=${CFLAGS--O}
10286 LDFLAGS=${LDFLAGS--O}
10287 DB_LIBS="${SQL_LFLAGS}"
10289 CPPFLAGS="$CPPFLAGS"
10314 # Finally we set appropriate distribution specific
10315 # variables and defaults
10317 # PFILES are platform specific files
10318 PFILES="platforms/Makefile"
10322 hostname=`uname -n | cut -d '.' -f 1`
10323 case "$DISTNAME" in
10326 PSCMD="ps -e -o pid,comm"
10327 PFILES="${PFILES} \
10328 platforms/aix/Makefile"
10329 TAPEDRIVE="/dev/rmt0.1"
10333 PTHREAD_LIB="-lpthread -lexc"
10334 if test "${CC}" = "gcc" ; then
10341 TAPEDRIVE="/dev/nrmt0"
10344 DISTVER=`uname -a |awk '{print $3}'`
10345 TAPEDRIVE="/dev/nrmt0"
10346 PTHREAD_LIB="-pthread"
10347 CFLAGS="${CFLAGS} -pthread"
10348 PSCMD="ps -x -o pid,command"
10351 PFILES="${PFILES} \
10352 platforms/bsdi/Makefile \
10353 platforms/bsdi/bacula-fd \
10354 platforms/bsdi/bacula-sd \
10355 platforms/bsdi/bacula-dir"
10356 largefile_support="yes"
10359 DISTVER=`uname -a |awk '{print $3}'`
10360 TAPEDRIVE="/dev/nrst0"
10362 WCFLAGS="-mwindows"
10363 WLDFLAGS="-mwindows"
10367 TAPEDRIVE="/dev/nst0"
10368 PSCMD="ps -e -o pid,command"
10370 PFILES="${PFILES} \
10371 platforms/darwin/Makefile"
10374 DISTVER=`cat /etc/debian_version`
10375 TAPEDRIVE="/dev/nrst0"
10376 PSCMD="ps -e -o pid,command"
10379 DISTVER=`uname -a |awk '{print $3}'`
10380 VER=`echo $DISTVER | cut -c 1`
10381 if test x$VER = x4 ; then
10382 PTHREAD_LIB="-pthread"
10383 CFLAGS="${CFLAGS} -pthread"
10387 TAPEDRIVE="/dev/nrsa0"
10388 PSCMD="ps -x -o pid,command"
10389 PFILES="${PFILES} \
10390 platforms/freebsd/Makefile \
10391 platforms/freebsd/bacula-fd \
10392 platforms/freebsd/bacula-sd \
10393 platforms/freebsd/bacula-dir"
10394 largefile_support="yes"
10397 PSCMD="UNIX95=1 ps -e -o pid,comm"
10398 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
10400 TAPEDRIVE="/dev/rmt/0hnb"
10404 TAPEDRIVE="/dev/rmt/0cbn"
10405 PSCMD="ps -e -o pid,comm"
10406 PFILES="${PFILES} \
10407 platforms/irix/Makefile \
10408 platforms/irix/bacula-fd \
10409 platforms/irix/bacula-sd \
10410 platforms/irix/bacula-dir"
10413 DISTVER=`uname -a |awk '{print $3}'`
10416 TAPEDRIVE="/dev/nrst0"
10417 PSCMD="ps -a -o pid,command"
10418 PTHREAD_LIB="-pthread"
10419 CFLAGS="${CFLAGS} -pthread"
10422 DISTVER=`uname -a |awk '{print $3}'`
10425 TAPEDRIVE="/dev/nrst0"
10426 PSCMD="ps -a -o pid,command"
10427 PTHREAD_LIB="-pthread"
10428 CFLAGS="${CFLAGS} -pthread"
10429 PFILES="${PFILES} \
10430 platforms/openbsd/Makefile \
10431 platforms/openbsd/bacula-fd \
10432 platforms/openbsd/bacula-sd \
10433 platforms/openbsd/bacula-dir"
10436 if test -f /etc/whitebox-release ; then
10437 f=/etc/whitebox-release
10439 f=/etc/redhat-release
10441 if test `cat $f | grep release |\
10442 cut -f 3 -d ' '`x = "Enterprise"x ; then
10443 DISTVER="Enterprise "`cat $f | grep release |\
10446 DISTVER=`cat /etc/redhat-release | grep release |\
10449 TAPEDRIVE="/dev/nst0"
10450 PSCMD="ps -e -o pid,command"
10451 PFILES="${PFILES} \
10452 platforms/redhat/Makefile \
10453 platforms/redhat/bacula-fd \
10454 platforms/redhat/bacula-sd \
10455 platforms/redhat/bacula-dir \
10456 platforms/redhat/bacula.spec \
10458 hostname=`hostname -s`
10461 DISTVER=`cat /etc/mandrake-release | grep release |\
10463 TAPEDRIVE="/dev/nst0"
10464 PSCMD="ps -e -o pid,command"
10465 PFILES="${PFILES} \
10466 platforms/mandrake/Makefile \
10467 platforms/mandrake/bacula-fd \
10468 platforms/mandrake/bacula-sd \
10469 platforms/mandrake/bacula-dir \
10470 platforms/mandrake/bacula.spec \
10474 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
10475 TAPEDRIVE="/dev/nst0"
10476 PSCMD="ps -e -o pid,command"
10477 PFILES="${PFILES} \
10478 platforms/gentoo/Makefile \
10479 platforms/gentoo/bacula-fd \
10480 platforms/gentoo/bacula-sd \
10481 platforms/gentoo/bacula-dir"
10484 DISTVER=`cat /etc/slackware-version`
10485 TAPEDRIVE="/dev/nst0"
10486 PSCMD="ps -e -o pid,command"
10487 PFILES="${PFILES} \
10488 platforms/slackware/Makefile \
10489 platforms/slackware/rc.bacula-fd \
10490 platforms/slackware/rc.bacula-sd \
10491 platforms/slackware/rc.bacula-dir\
10492 platforms/slackware/functions.bacula"
10496 TAPEDRIVE="/dev/rmt/0cbn"
10497 PSCMD="ps -e -o pid,comm"
10498 PFILES="${PFILES} \
10499 platforms/solaris/Makefile \
10500 platforms/solaris/bacula-fd \
10501 platforms/solaris/bacula-sd \
10502 platforms/solaris/bacula-dir"
10503 if test x$DISTVER = x5.6 ; then
10504 cat >> confdefs.h <<\EOF
10505 #define HAVE_OLD_SOCKOPT 1
10511 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
10513 TAPEDRIVE="/dev/nst0"
10514 PSCMD="ps -e -o pid,command"
10515 PFILES="${PFILES} \
10516 platforms/suse/Makefile \
10517 platforms/suse/bacula-fd \
10518 platforms/suse/bacula-sd \
10519 platforms/suse/bacula-dir \
10520 platforms/suse/bacula \
10521 platforms/suse/bacula.spec"
10526 TAPEDRIVE="/dev/nst0"
10527 PSCMD="ps -e -o pid,command"
10528 PFILES="${PFILES} \
10529 platforms/suse/Makefile \
10530 platforms/suse/bacula-fd \
10531 platforms/suse/bacula-sd \
10532 platforms/suse/bacula-dir"
10536 TAPEDRIVE="/dev/nst0"
10539 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
10545 LIBS="$PTHREAD_LIB $LIBS"
10547 cat >> confdefs.h <<EOF
10551 cat >> confdefs.h <<EOF
10562 MCOMMON=./autoconf/Make.common
10565 if test "x${subsysdir}" = "x${sbindir}" ; then
10568 echo "You have set both --sbindir and --with-subsys-dir"
10569 echo " equal to: ${subsysdir} "
10570 echo "This is not permitted. Please reconfigure."
10572 echo "Aborting configuration ..."
10579 cat > confcache <<\EOF
10580 # This file is a shell script that caches the results of configure
10581 # tests run on this system so they can be shared between configure
10582 # scripts and configure runs. It is not useful on other systems.
10583 # If it contains results you don't want to keep, you may remove or edit it.
10585 # By default, configure uses ./config.cache as the cache file,
10586 # creating it if it does not exist already. You can give configure
10587 # the --cache-file=FILE option to use a different cache file; that is
10588 # what configure does when it calls configure scripts in
10589 # subdirectories, so they share the cache.
10590 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10591 # config.status only pays attention to the cache file if you give it the
10592 # --recheck option to rerun configure.
10595 # The following way of writing the cache mishandles newlines in values,
10596 # but we know of no workaround that is simple, portable, and efficient.
10597 # So, don't put newlines in cache variables' values.
10598 # Ultrix sh set writes to stderr and can't be redirected directly,
10599 # and sets the high bit in the cache file unless we assign to the vars.
10601 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10603 # `set' does not quote correctly, so add quotes (double-quote substitution
10604 # turns \\\\ into \\, and sed turns \\ into \).
10606 -e "s/'/'\\\\''/g" \
10607 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10610 # `set' quotes correctly as required by POSIX, so do not add quotes.
10611 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10614 if cmp -s $cache_file confcache; then
10617 if test -w $cache_file; then
10618 echo "updating cache $cache_file"
10619 cat confcache > $cache_file
10621 echo "not updating unwritable cache $cache_file"
10626 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10629 # Let make expand exec_prefix.
10630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10632 # Any assignment to VPATH causes Sun make to only execute
10633 # the first set of double-colon rules, so remove it if not needed.
10634 # If there is a colon in the path, we need to keep it.
10635 if test "x$srcdir" = x.; then
10636 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10639 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10641 DEFS=-DHAVE_CONFIG_H
10643 # Without the "./", some shells look in PATH for config.status.
10644 : ${CONFIG_STATUS=./config.status}
10646 echo creating $CONFIG_STATUS
10647 rm -f $CONFIG_STATUS
10648 cat > $CONFIG_STATUS <<EOF
10650 # Generated automatically by configure.
10651 # Run this file to recreate the current configuration.
10652 # This directory was configured as follows,
10653 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10655 # $0 $ac_configure_args
10657 # Compiler output produced by configure, useful for debugging
10658 # configure, is in ./config.log if it exists.
10660 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10663 case "\$ac_option" in
10664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10665 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10666 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10667 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10668 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10670 -help | --help | --hel | --he | --h)
10671 echo "\$ac_cs_usage"; exit 0 ;;
10672 *) echo "\$ac_cs_usage"; exit 1 ;;
10676 ac_given_srcdir=$srcdir
10677 ac_given_INSTALL="$INSTALL"
10679 trap 'rm -fr `echo "autoconf/Make.common \
10682 rescue/linux/Makefile \
10683 rescue/freebsd/Makefile \
10684 rescue/solaris/Makefile \
10685 scripts/startmysql \
10686 scripts/stopmysql \
10687 scripts/btraceback \
10693 scripts/devel_bacula \
10695 scripts/logrotate \
10696 scripts/bacula.desktop.gnome1 \
10697 scripts/bacula.desktop.gnome2 \
10698 scripts/bacula.desktop.gnome1.consolehelper \
10699 scripts/bacula.desktop.gnome2.consolehelper \
10700 scripts/bacula.desktop.gnome1.xsu \
10701 scripts/bacula.desktop.gnome2.xsu \
10702 scripts/gnome-console.console_apps \
10703 scripts/mtx-changer \
10707 src/console/Makefile \
10708 src/console/bconsole.conf \
10709 src/gnome-console/Makefile \
10710 src/gnome-console/gnome-console.conf \
10711 src/gnome2-console/Makefile \
10712 src/gnome2-console/gnome-console.conf \
10713 src/wx-console/Makefile \
10714 src/wx-console/wx-console.conf \
10715 src/tray-monitor/Makefile \
10716 src/tray-monitor/tray-monitor.conf \
10717 src/dird/Makefile \
10718 src/dird/bacula-dir.conf \
10720 src/stored/Makefile \
10721 src/stored/bacula-sd.conf \
10722 src/filed/Makefile \
10723 src/filed/bacula-fd.conf \
10724 src/filed/win32/Makefile \
10725 src/cats/Makefile \
10726 src/cats/make_catalog_backup \
10727 src/cats/delete_catalog_backup \
10728 src/cats/create_postgresql_database \
10729 src/cats/update_postgresql_tables \
10730 src/cats/make_postgresql_tables \
10731 src/cats/grant_postgresql_privileges \
10732 src/cats/drop_postgresql_tables \
10733 src/cats/drop_postgresql_database \
10734 src/cats/create_mysql_database \
10735 src/cats/update_mysql_tables \
10736 src/cats/make_mysql_tables \
10737 src/cats/grant_mysql_privileges \
10738 src/cats/drop_mysql_tables \
10739 src/cats/drop_mysql_database \
10740 src/cats/create_sqlite_database \
10741 src/cats/update_sqlite_tables \
10742 src/cats/make_sqlite_tables \
10743 src/cats/grant_sqlite_privileges \
10744 src/cats/drop_sqlite_tables \
10745 src/cats/drop_sqlite_database \
10748 src/cats/create_bdb_database \
10749 src/cats/update_bdb_tables \
10750 src/cats/make_bdb_tables \
10751 src/cats/grant_bdb_privileges \
10752 src/cats/drop_bdb_tables \
10753 src/cats/drop_bdb_database \
10754 src/cats/create_bacula_database \
10755 src/cats/update_bacula_tables \
10756 src/cats/grant_bacula_privileges \
10757 src/cats/make_bacula_tables \
10758 src/cats/drop_bacula_tables \
10759 src/cats/drop_bacula_database \
10760 src/findlib/Makefile \
10761 src/tools/Makefile \
10762 src/win32/winbacula.nsi \
10763 src/win32/baculafd/bacula-fd.conf \
10764 src/win32/Makefile \
10765 src/win32/console/bconsole.conf \
10766 src/win32/wx-console/wx-console.conf \
10767 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10769 cat >> $CONFIG_STATUS <<EOF
10771 # Protect against being on the right side of a sed subst in config.status.
10772 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10773 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10777 s%@CFLAGS@%$CFLAGS%g
10778 s%@CPPFLAGS@%$CPPFLAGS%g
10779 s%@CXXFLAGS@%$CXXFLAGS%g
10780 s%@FFLAGS@%$FFLAGS%g
10782 s%@LDFLAGS@%$LDFLAGS%g
10784 s%@exec_prefix@%$exec_prefix%g
10785 s%@prefix@%$prefix%g
10786 s%@program_transform_name@%$program_transform_name%g
10787 s%@bindir@%$bindir%g
10788 s%@sbindir@%$sbindir%g
10789 s%@libexecdir@%$libexecdir%g
10790 s%@datadir@%$datadir%g
10791 s%@sysconfdir@%$sysconfdir%g
10792 s%@sharedstatedir@%$sharedstatedir%g
10793 s%@localstatedir@%$localstatedir%g
10794 s%@libdir@%$libdir%g
10795 s%@includedir@%$includedir%g
10796 s%@oldincludedir@%$oldincludedir%g
10797 s%@infodir@%$infodir%g
10798 s%@mandir@%$mandir%g
10799 s%@BUILD_DIR@%$BUILD_DIR%g
10800 s%@TRUEPRG@%$TRUEPRG%g
10801 s%@FALSEPRG@%$FALSEPRG%g
10802 s%@VERSION@%$VERSION%g
10804 s%@LSMDATE@%$LSMDATE%g
10808 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10809 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10810 s%@INSTALL_DATA@%$INSTALL_DATA%g
10811 s%@RANLIB@%$RANLIB%g
10821 s%@OPENSSL@%$OPENSSL%g
10823 s%@PKGCONFIG@%$PKGCONFIG%g
10824 s%@WXCONFIG@%$WXCONFIG%g
10825 s%@ARFLAGS@%$ARFLAGS%g
10826 s%@MAKE_SHELL@%$MAKE_SHELL%g
10827 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
10828 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
10829 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
10830 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
10831 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
10832 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
10833 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
10834 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
10835 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
10836 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
10837 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
10838 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
10839 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
10840 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
10841 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
10842 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
10843 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
10844 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
10845 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
10846 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
10847 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
10848 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
10849 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
10850 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
10851 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
10852 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
10853 s%@HAVE_DARWIN_OS_TRUE@%$HAVE_DARWIN_OS_TRUE%g
10854 s%@HAVE_DARWIN_OS_FALSE@%$HAVE_DARWIN_OS_FALSE%g
10855 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
10856 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
10857 s%@MSGFMT@%$MSGFMT%g
10858 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
10859 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
10860 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
10861 s%@GNOME_LIBS@%$GNOME_LIBS%g
10862 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
10863 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
10864 s%@ZVT_LIBS@%$ZVT_LIBS%g
10865 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
10866 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
10867 s%@ORBIT_IDL@%$ORBIT_IDL%g
10868 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
10869 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
10870 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
10871 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
10872 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
10873 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
10874 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
10875 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
10876 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
10877 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
10878 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
10879 s%@GNOME_DIR@%$GNOME_DIR%g
10880 s%@WXCONS_CPPFLAGS@%$WXCONS_CPPFLAGS%g
10881 s%@WXCONS_LDFLAGS@%$WXCONS_LDFLAGS%g
10882 s%@WX_DIR@%$WX_DIR%g
10883 s%@TRAY_MONITOR_CPPFLAGS@%$TRAY_MONITOR_CPPFLAGS%g
10884 s%@TRAY_MONITOR_LDFLAGS@%$TRAY_MONITOR_LDFLAGS%g
10885 s%@TRAY_MONITOR_DIR@%$TRAY_MONITOR_DIR%g
10886 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
10887 s%@STATIC_FD@%$STATIC_FD%g
10888 s%@STATIC_SD@%$STATIC_SD%g
10889 s%@STATIC_DIR@%$STATIC_DIR%g
10890 s%@STATIC_CONS@%$STATIC_CONS%g
10891 s%@STATIC_GNOME_CONS@%$STATIC_GNOME_CONS%g
10892 s%@STATIC_WX_CONS@%$STATIC_WX_CONS%g
10893 s%@ALL_DIRS@%$ALL_DIRS%g
10894 s%@CONS_INC@%$CONS_INC%g
10895 s%@CONS_OBJ@%$CONS_OBJ%g
10896 s%@CONS_SRC@%$CONS_SRC%g
10897 s%@CONS_LIBS@%$CONS_LIBS%g
10898 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
10899 s%@READLINE_SRC@%$READLINE_SRC%g
10900 s%@working_dir@%$working_dir%g
10901 s%@scriptdir@%$scriptdir%g
10902 s%@dump_email@%$dump_email%g
10903 s%@job_email@%$job_email%g
10904 s%@smtp_host@%$smtp_host%g
10905 s%@piddir@%$piddir%g
10906 s%@subsysdir@%$subsysdir%g
10907 s%@baseport@%$baseport%g
10908 s%@dir_port@%$dir_port%g
10909 s%@fd_port@%$fd_port%g
10910 s%@sd_port@%$sd_port%g
10911 s%@dir_password@%$dir_password%g
10912 s%@fd_password@%$fd_password%g
10913 s%@sd_password@%$sd_password%g
10914 s%@dir_user@%$dir_user%g
10915 s%@dir_group@%$dir_group%g
10916 s%@sd_user@%$sd_user%g
10917 s%@sd_group@%$sd_group%g
10918 s%@fd_user@%$fd_user%g
10919 s%@fd_group@%$fd_group%g
10920 s%@SBINPERM@%$SBINPERM%g
10921 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
10922 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
10923 s%@SQL_BINDIR@%$SQL_BINDIR%g
10925 s%@DB_NAME@%$DB_NAME%g
10926 s%@EXEEXT@%$EXEEXT%g
10928 s%@host_alias@%$host_alias%g
10929 s%@host_cpu@%$host_cpu%g
10930 s%@host_vendor@%$host_vendor%g
10931 s%@host_os@%$host_os%g
10933 s%@build_alias@%$build_alias%g
10934 s%@build_cpu@%$build_cpu%g
10935 s%@build_vendor@%$build_vendor%g
10936 s%@build_os@%$build_os%g
10937 s%@GETCONF@%$GETCONF%g
10938 s%@X_CFLAGS@%$X_CFLAGS%g
10939 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
10940 s%@X_LIBS@%$X_LIBS%g
10941 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10942 s%@LIBOBJS@%$LIBOBJS%g
10943 s%@ALLOCA@%$ALLOCA%g
10944 s%@FDLIBS@%$FDLIBS%g
10946 s%@DINCLUDE@%$DINCLUDE%g
10948 s%@DB_LIBS@%$DB_LIBS%g
10949 s%@WCFLAGS@%$WCFLAGS%g
10950 s%@WLDFLAGS@%$WLDFLAGS%g
10951 s%@OBJLIST@%$OBJLIST%g
10952 s%@hostname@%$hostname%g
10953 s%@TAPEDRIVE@%$TAPEDRIVE%g
10956 s%@MACOSX@%$MACOSX%g
10957 s%@DISTNAME@%$DISTNAME%g
10958 s%@DISTVER@%$DISTVER%g
10959 /@MCOMMON@/r $MCOMMON
10965 cat >> $CONFIG_STATUS <<\EOF
10967 # Split the substitutions into bite-sized pieces for seds with
10968 # small command number limits, like on Digital OSF/1 and HP-UX.
10969 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10970 ac_file=1 # Number of current file.
10971 ac_beg=1 # First line for current file.
10972 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10975 while $ac_more_lines; do
10976 if test $ac_beg -gt 1; then
10977 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10979 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10981 if test ! -s conftest.s$ac_file; then
10982 ac_more_lines=false
10983 rm -f conftest.s$ac_file
10985 if test -z "$ac_sed_cmds"; then
10986 ac_sed_cmds="sed -f conftest.s$ac_file"
10988 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10990 ac_file=`expr $ac_file + 1`
10992 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10995 if test -z "$ac_sed_cmds"; then
11000 cat >> $CONFIG_STATUS <<EOF
11002 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
11005 rescue/linux/Makefile \
11006 rescue/freebsd/Makefile \
11007 rescue/solaris/Makefile \
11008 scripts/startmysql \
11009 scripts/stopmysql \
11010 scripts/btraceback \
11016 scripts/devel_bacula \
11018 scripts/logrotate \
11019 scripts/bacula.desktop.gnome1 \
11020 scripts/bacula.desktop.gnome2 \
11021 scripts/bacula.desktop.gnome1.consolehelper \
11022 scripts/bacula.desktop.gnome2.consolehelper \
11023 scripts/bacula.desktop.gnome1.xsu \
11024 scripts/bacula.desktop.gnome2.xsu \
11025 scripts/gnome-console.console_apps \
11026 scripts/mtx-changer \
11030 src/console/Makefile \
11031 src/console/bconsole.conf \
11032 src/gnome-console/Makefile \
11033 src/gnome-console/gnome-console.conf \
11034 src/gnome2-console/Makefile \
11035 src/gnome2-console/gnome-console.conf \
11036 src/wx-console/Makefile \
11037 src/wx-console/wx-console.conf \
11038 src/tray-monitor/Makefile \
11039 src/tray-monitor/tray-monitor.conf \
11040 src/dird/Makefile \
11041 src/dird/bacula-dir.conf \
11043 src/stored/Makefile \
11044 src/stored/bacula-sd.conf \
11045 src/filed/Makefile \
11046 src/filed/bacula-fd.conf \
11047 src/filed/win32/Makefile \
11048 src/cats/Makefile \
11049 src/cats/make_catalog_backup \
11050 src/cats/delete_catalog_backup \
11051 src/cats/create_postgresql_database \
11052 src/cats/update_postgresql_tables \
11053 src/cats/make_postgresql_tables \
11054 src/cats/grant_postgresql_privileges \
11055 src/cats/drop_postgresql_tables \
11056 src/cats/drop_postgresql_database \
11057 src/cats/create_mysql_database \
11058 src/cats/update_mysql_tables \
11059 src/cats/make_mysql_tables \
11060 src/cats/grant_mysql_privileges \
11061 src/cats/drop_mysql_tables \
11062 src/cats/drop_mysql_database \
11063 src/cats/create_sqlite_database \
11064 src/cats/update_sqlite_tables \
11065 src/cats/make_sqlite_tables \
11066 src/cats/grant_sqlite_privileges \
11067 src/cats/drop_sqlite_tables \
11068 src/cats/drop_sqlite_database \
11071 src/cats/create_bdb_database \
11072 src/cats/update_bdb_tables \
11073 src/cats/make_bdb_tables \
11074 src/cats/grant_bdb_privileges \
11075 src/cats/drop_bdb_tables \
11076 src/cats/drop_bdb_database \
11077 src/cats/create_bacula_database \
11078 src/cats/update_bacula_tables \
11079 src/cats/grant_bacula_privileges \
11080 src/cats/make_bacula_tables \
11081 src/cats/drop_bacula_tables \
11082 src/cats/drop_bacula_database \
11083 src/findlib/Makefile \
11084 src/tools/Makefile \
11085 src/win32/winbacula.nsi \
11086 src/win32/baculafd/bacula-fd.conf \
11087 src/win32/Makefile \
11088 src/win32/console/bconsole.conf \
11089 src/win32/wx-console/wx-console.conf \
11092 cat >> $CONFIG_STATUS <<\EOF
11093 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11094 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11096 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11097 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11098 *) ac_file_in="${ac_file}.in" ;;
11101 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11103 # Remove last slash and all that follows it. Not all systems have dirname.
11104 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11105 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11106 # The file is in a subdirectory.
11107 test ! -d "$ac_dir" && mkdir "$ac_dir"
11108 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11109 # A "../" for each directory in $ac_dir_suffix.
11110 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11112 ac_dir_suffix= ac_dots=
11115 case "$ac_given_srcdir" in
11117 if test -z "$ac_dots"; then top_srcdir=.
11118 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11119 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11120 *) # Relative path.
11121 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11122 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11125 case "$ac_given_INSTALL" in
11126 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11127 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11130 echo creating "$ac_file"
11132 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11134 *Makefile*) ac_comsub="1i\\
11135 # $configure_input" ;;
11139 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11141 s%@configure_input@%$configure_input%g
11142 s%@srcdir@%$srcdir%g
11143 s%@top_srcdir@%$top_srcdir%g
11144 s%@INSTALL@%$INSTALL%g
11145 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11149 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11150 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11152 # ac_d sets the value in "#define NAME VALUE" lines.
11153 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11154 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11157 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11158 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11159 ac_uB='\([ ]\)%\1#\2define\3'
11162 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11163 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11164 ac_eB='$%\1#\2define\3'
11168 if test "${CONFIG_HEADERS+set}" != set; then
11170 cat >> $CONFIG_STATUS <<EOF
11171 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
11173 cat >> $CONFIG_STATUS <<\EOF
11175 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11178 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11179 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11180 *) ac_file_in="${ac_file}.in" ;;
11183 echo creating $ac_file
11185 rm -f conftest.frag conftest.in conftest.out
11186 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11187 cat $ac_file_inputs > conftest.in
11191 # Transform confdefs.h into a sed script conftest.vals that substitutes
11192 # the proper values into config.h.in to produce config.h. And first:
11193 # Protect against being on the right side of a sed subst in config.status.
11194 # Protect against being in an unquoted here document in config.status.
11195 rm -f conftest.vals
11196 cat > conftest.hdr <<\EOF
11199 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11203 sed -n -f conftest.hdr confdefs.h > conftest.vals
11206 # This sed command replaces #undef with comments. This is necessary, for
11207 # example, in the case of _POSIX_SOURCE, which is predefined and required
11208 # on some systems where configure will not decide to define it.
11209 cat >> conftest.vals <<\EOF
11210 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11213 # Break up conftest.vals because some shells have a limit on
11214 # the size of here documents, and old seds have small limits too.
11216 rm -f conftest.tail
11219 ac_lines=`grep -c . conftest.vals`
11220 # grep -c gives empty output for an empty file on some AIX systems.
11221 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11222 # Write a limited-size here document to conftest.frag.
11223 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11224 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11226 sed -f conftest.frag conftest.in > conftest.out
11228 mv conftest.out conftest.in
11229 ' >> $CONFIG_STATUS
11230 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11231 rm -f conftest.vals
11232 mv conftest.tail conftest.vals
11234 rm -f conftest.vals
11236 cat >> $CONFIG_STATUS <<\EOF
11237 rm -f conftest.frag conftest.h
11238 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11239 cat conftest.in >> conftest.h
11241 if cmp -s $ac_file conftest.h 2>/dev/null; then
11242 echo "$ac_file is unchanged"
11245 # Remove last slash and all that follows it. Not all systems have dirname.
11246 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11247 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11248 # The file is in a subdirectory.
11249 test ! -d "$ac_dir" && mkdir "$ac_dir"
11252 mv conftest.h $ac_file
11257 cat >> $CONFIG_STATUS <<EOF
11260 cat >> $CONFIG_STATUS <<\EOF
11261 (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
11265 chmod +x $CONFIG_STATUS
11266 rm -fr confdefs* $ac_clean_files
11267 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11271 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
11272 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
11277 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
11278 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
11280 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
11281 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
11283 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
11284 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
11286 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
11287 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
11289 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
11290 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
11292 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
11293 chmod 755 $c/sqlite
11296 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
11297 largefile_support="yes"
11301 # A whole lot of hand springs to get the compiler version.
11302 # This is because gcc changed the output in version 3.0
11304 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
11305 if test "x${CCVERSION}" = "x" ; then
11306 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
11308 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
11309 if test x"${CXXVERSION}" = x ; then
11310 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
11313 if test "x${subsysdir}" = "x${sbindir}" ; then
11316 echo "You have set --sbindir and --with-subsys-dir"
11317 echo " both equal to: ${subsysdir} "
11318 echo " This is not permitted. Please reconfigure."
11320 echo "Aborting configuration ..."
11326 if test "x${db_name}" = "xInternal" ; then
11329 echo "You have not specified either --enable-client-only or one of the"
11330 echo " supported databases: MySQL, PostgreSQL, or SQLite".
11331 echo " This is not permitted. Please reconfigure."
11333 echo "Aborting the configuration ..."
11340 Configuration on `date`:
11342 Host: $host -- ${DISTNAME} ${DISTVER}
11343 Bacula version: ${VERSION} (${DATE})
11344 Source code location: ${srcdir}
11345 Install binaries: ${sbindir}
11346 Install config files: ${sysconfdir}
11347 Scripts directory: ${scriptdir}
11348 Working directory: ${working_dir}
11349 PID directory: ${piddir}
11350 Subsys directory: ${subsysdir}
11351 C Compiler: ${CC} ${CCVERSION}
11352 C++ Compiler: ${CXX} ${CXXVERSION}
11353 Compiler flags: ${WCFLAGS} ${CFLAGS}
11354 Linker flags: ${WLDFLAGS} ${LDFLAGS}
11356 Statically Linked Tools: ${support_static_tools}
11357 Statically Linked FD: ${support_static_fd}
11358 Statically Linked SD: ${support_static_sd}
11359 Statically Linked DIR: ${support_static_dir}
11360 Statically Linked CONS: ${support_static_cons}
11361 Database type: ${db_name}
11362 Database lib: ${DB_LIBS}
11364 Job Output Email: ${job_email}
11365 Traceback Email: ${dump_email}
11366 SMTP Host Address: ${smtp_host}
11368 Director Port: ${dir_port}
11369 File daemon Port: ${fd_port}
11370 Storage daemon Port: ${sd_port}
11372 Director User: ${dir_user}
11373 Director Group: ${dir_group}
11374 Storage Daemon User: ${sd_user}
11375 Storage DaemonGroup: ${sd_group}
11376 File Daemon User: ${fd_user}
11377 File Daemon Group: ${fd_group}
11379 SQL binaries Directory ${SQL_BINDIR}
11381 Large file support: $largefile_support
11382 Bacula conio support: ${got_conio} ${CONS_LIBS}
11383 readline support: ${got_readline} ${PRTREADLINE_SRC}
11384 TCP Wrappers support: ${TCPW_MSG}
11385 ZLIB support: ${have_zlib}
11386 enable-smartalloc: ${support_smartalloc}
11387 enable-gnome: ${support_gnome} ${gnome_version}
11388 enable-wx-console: ${support_wx_console}
11389 enable-tray-monitor: ${support_tray_monitor}
11390 client-only: ${build_client_only}
11391 ACL support: ${have_acl}
11398 # cweb support: ${got_cweb} ${CWEB_SRC}
11399 # gmp support: ${got_gmp} ${GMP_SRC}