3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-gnome enable build of gnome-console GUI [disabled]"
17 --with-gnome-includes Specify location of GNOME headers"
19 --with-gnome-libs Specify location of GNOME libs"
21 --with-gnome Specify prefix for GNOME files"
23 --enable-smartalloc enable smartalloc debugging support [disabled]"
25 --enable-static-tools enable static tape tools [disabled]"
27 --enable-static-fd enable static File daemon [disabled]"
29 --enable-static-sd enable static Storage daemon [disabled]"
31 --enable-static-dir enable static Director [disabled]"
33 --enable-static-cons enable static Console [disabled]"
35 --enable-client-only build client (File daemon) only [disabled]"
37 --disable-readline disable readline support [enabled]
40 --with-readline=DIR specify readline library directory"
42 --with-tcp-wrappers=DIR enable tcpwrappers support"
44 --with-working-dir=PATH specify path of Bacula working directory"
46 --with-scriptdir=PATH specify path of Bacula scripts directory"
48 --with-dump-email=EMAIL dump email address"
50 --with-job-email=EMAIL job output email address"
52 --with-smtp-host=HOST SMTP mail host address"
54 --with-pid-dir=PATH specify location of Bacula pid files"
56 --with-subsys-dir=PATH specify location of Bacula subsys file"
58 --with-baseport=PORT specify base port address for daemons"
60 --with-dir-password=PASSWORD specify Director's password"
62 --with-fd-password=PASSWORD specify Client's password"
64 --with-sd-password=PASSWORD specify Storage daemon's password"
67 Which DBMS do you want to use (please select only one):
68 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
69 install directory, default is to search through
70 a number of common places for the MySQL files."
73 Which DBMS do you want to use (please select only one):
74 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
75 install directory, default is to search through
76 a number of common places for the MySQL files."
79 Which DBMS do you want to use (please select only one):
80 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
81 install directory, default is to search through
82 a number of common places for the SQLite files."
84 --disable-largefile omit support for large files"
86 --with-x use the X Window System"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=src/version.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
603 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628 # Extract the first word of "$ac_prog", so it can be a program name with args.
629 set dummy $ac_prog; ac_word=$2
630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" >&5
632 if eval "test \"`echo '$''{'ac_cv_path_TRUEPRG'+set}'`\" = set"; then
633 echo $ac_n "(cached) $ac_c" 1>&6
637 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
640 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a dos path.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
648 ac_cv_path_TRUEPRG="$ac_dir/$ac_word"
656 TRUEPRG="$ac_cv_path_TRUEPRG"
657 if test -n "$TRUEPRG"; then
658 echo "$ac_t""$TRUEPRG" 1>&6
660 echo "$ac_t""no" 1>&6
663 test -n "$TRUEPRG" && break
665 test -n "$TRUEPRG" || TRUEPRG=":"
669 # Extract the first word of "$ac_prog", so it can be a program name with args.
670 set dummy $ac_prog; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_path_FALSEPRG'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
678 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
681 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a dos path.
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_path_FALSEPRG="$ac_dir/$ac_word"
697 FALSEPRG="$ac_cv_path_FALSEPRG"
698 if test -n "$FALSEPRG"; then
699 echo "$ac_t""$FALSEPRG" 1>&6
701 echo "$ac_t""no" 1>&6
704 test -n "$FALSEPRG" && break
706 test -n "$FALSEPRG" || FALSEPRG=":"
710 # Make sure we can run config.sub.
711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
715 echo $ac_n "checking host system type""... $ac_c" 1>&6
716 echo "configure:717: checking host system type" >&5
719 case "$host_alias" in
723 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
724 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
726 *) host_alias=$nonopt ;;
730 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
731 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$host" 1>&6
737 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
738 DATE=`sed -n -e 's/^.* \t*DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
739 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
740 echo "configuring for bacula $VERSION ($DATE)"
744 # Extract the first word of "gcc", so it can be a program name with args.
745 set dummy gcc; ac_word=$2
746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
747 echo "configure:748: checking for $ac_word" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 if test -n "$CC"; then
752 ac_cv_prog_CC="$CC" # Let the user override the test.
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 for ac_dir in $ac_dummy; do
757 test -z "$ac_dir" && ac_dir=.
758 if test -f $ac_dir/$ac_word; then
767 if test -n "$CC"; then
768 echo "$ac_t""$CC" 1>&6
770 echo "$ac_t""no" 1>&6
773 if test -z "$CC"; then
774 # Extract the first word of "cc", so it can be a program name with args.
775 set dummy cc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
787 for ac_dir in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
799 if test $ac_prog_rejected = yes; then
800 # We found a bogon in the path, so make sure we never use it.
801 set dummy $ac_cv_prog_CC
803 if test $# -gt 0; then
804 # We chose a different compiler from the bogus one.
805 # However, it has the same basename, so the bogon will be chosen
806 # first if we set CC to just the basename; use the full file name.
808 set dummy "$ac_dir/$ac_word" "$@"
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
825 # Extract the first word of "cl", so it can be a program name with args.
826 set dummy cl; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
856 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
859 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
860 echo "configure:861: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CPP $CPPFLAGS'
865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cc_cross
869 cat > conftest.$ac_ext << EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 if { (eval echo configure:877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
877 ac_cv_prog_cc_works=yes
878 # If we can't run a trivial program, we are probably using a cross compiler.
879 if (./conftest; exit) 2>/dev/null; then
880 ac_cv_prog_cc_cross=no
882 ac_cv_prog_cc_cross=yes
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
887 ac_cv_prog_cc_works=no
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp='$CPP $CPPFLAGS'
893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling=$ac_cv_prog_cc_cross
897 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
898 if test $ac_cv_prog_cc_works = no; then
899 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
901 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
902 echo "configure:903: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
903 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
904 cross_compiling=$ac_cv_prog_cc_cross
906 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
907 echo "configure:908: checking whether we are using GNU C" >&5
908 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 cat > conftest.c <<EOF
916 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
923 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
925 if test $ac_cv_prog_gcc = yes; then
931 ac_test_CFLAGS="${CFLAGS+set}"
932 ac_save_CFLAGS="$CFLAGS"
934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
935 echo "configure:936: checking whether ${CC-cc} accepts -g" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 echo 'void f(){}' > conftest.c
940 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
949 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
950 if test "$ac_test_CFLAGS" = set; then
951 CFLAGS="$ac_save_CFLAGS"
952 elif test $ac_cv_prog_cc_g = yes; then
953 if test "$GCC" = yes; then
959 if test "$GCC" = yes; then
966 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
968 # Extract the first word of "$ac_prog", so it can be a program name with args.
969 set dummy $ac_prog; ac_word=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$CXX"; then
976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_CXX="$ac_prog"
990 CXX="$ac_cv_prog_CXX"
991 if test -n "$CXX"; then
992 echo "$ac_t""$CXX" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$CXX" && break
999 test -n "$CXX" || CXX="gcc"
1002 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1007 ac_cpp='$CXXCPP $CPPFLAGS'
1008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1010 cross_compiling=$ac_cv_prog_cxx_cross
1012 cat > conftest.$ac_ext << EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1017 int main(){return(0);}
1019 if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1020 ac_cv_prog_cxx_works=yes
1021 # If we can't run a trivial program, we are probably using a cross compiler.
1022 if (./conftest; exit) 2>/dev/null; then
1023 ac_cv_prog_cxx_cross=no
1025 ac_cv_prog_cxx_cross=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 ac_cv_prog_cxx_works=no
1034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1035 ac_cpp='$CPP $CPPFLAGS'
1036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1038 cross_compiling=$ac_cv_prog_cc_cross
1040 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1041 if test $ac_cv_prog_cxx_works = no; then
1042 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1044 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1045 echo "configure:1046: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1046 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1047 cross_compiling=$ac_cv_prog_cxx_cross
1049 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether we are using GNU C++" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.C <<EOF
1059 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1066 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1068 if test $ac_cv_prog_gxx = yes; then
1074 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1075 ac_save_CXXFLAGS="$CXXFLAGS"
1077 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether ${CXX-g++} accepts -g" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 echo 'void f(){}' > conftest.cc
1083 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1084 ac_cv_prog_cxx_g=yes
1092 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1093 if test "$ac_test_CXXFLAGS" = set; then
1094 CXXFLAGS="$ac_save_CXXFLAGS"
1095 elif test $ac_cv_prog_cxx_g = yes; then
1096 if test "$GXX" = yes; then
1102 if test "$GXX" = yes; then
1109 for ac_declaration in \
1111 '#include <stdlib.h>' \
1112 'extern "C" void std::exit (int) throw (); using std::exit;' \
1113 'extern "C" void std::exit (int); using std::exit;' \
1114 'extern "C" void exit (int) throw ();' \
1115 'extern "C" void exit (int);' \
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1127 if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1144 if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1153 if test -n "$ac_declaration"; then
1154 echo '#ifdef __cplusplus' >>confdefs.h
1155 echo $ac_declaration >>confdefs.h
1156 echo '#endif' >>confdefs.h
1160 if test "x$CC" != xcc; then
1161 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether $CC and cc understand -c and -o together" >&5
1164 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1165 echo "configure:1166: checking whether cc understands -c and -o together" >&5
1167 set dummy $CC; ac_cc="`echo $2 |
1168 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 echo 'foo(){}' > conftest.c
1173 # Make sure it works both with $CC and with simple cc.
1174 # We do the test twice because some compilers refuse to overwrite an
1175 # existing .o file with -o, though they will create one.
1176 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1177 if { (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1178 test -f conftest.o && { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1180 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1181 if test "x$CC" != xcc; then
1182 # Test first that cc exists at all.
1183 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1184 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1185 if { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1186 test -f conftest.o && { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1191 # cc exists but doesn't like -o.
1192 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1197 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1202 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1205 echo "$ac_t""no" 1>&6
1206 cat >> confdefs.h <<\EOF
1207 #define NO_MINUS_C_MINUS_O 1
1211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1212 echo "configure:1213: checking how to run the C preprocessor" >&5
1213 # On Suns, sometimes $CPP names a directory.
1214 if test -n "$CPP" && test -d "$CPP"; then
1217 if test -z "$CPP"; then
1218 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 # This must be in double quotes, not single quotes, because CPP may get
1222 # substituted into the Makefile and "${CC-cc}" will confuse make.
1224 # On the NeXT, cc -E runs the code through the compiler's parser,
1225 # not just through cpp.
1226 cat > conftest.$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1242 CPP="${CC-cc} -E -traditional-cpp"
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1259 CPP="${CC-cc} -nologo -E"
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1283 ac_cv_prog_CPP="$CPP"
1285 CPP="$ac_cv_prog_CPP"
1287 ac_cv_prog_CPP="$CPP"
1289 echo "$ac_t""$CPP" 1>&6
1291 if test $ac_cv_prog_gcc = yes; then
1292 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether ${CC-cc} needs -traditional" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_pattern="Autoconf.*'x'"
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1305 egrep "$ac_pattern" >/dev/null 2>&1; then
1307 ac_cv_prog_gcc_traditional=yes
1310 ac_cv_prog_gcc_traditional=no
1315 if test $ac_cv_prog_gcc_traditional = no; then
1316 cat > conftest.$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1323 egrep "$ac_pattern" >/dev/null 2>&1; then
1325 ac_cv_prog_gcc_traditional=yes
1332 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1333 if test $ac_cv_prog_gcc_traditional = yes; then
1334 CC="$CC -traditional"
1340 cat >> confdefs.h <<\EOF
1346 # Find a good install program. We prefer a C program (faster),
1347 # so one script is as good as another. But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1358 echo "configure:1359: checking for a BSD compatible install" >&5
1359 if test -z "$INSTALL"; then
1360 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1364 for ac_dir in $PATH; do
1365 # Account for people who put trailing slashes in PATH elements.
1367 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1369 # OSF1 and SCO ODT 3.0 have their own names for install.
1370 # Don't use installbsd from OSF since it installs stuff as root
1372 for ac_prog in ginstall scoinst install; do
1373 if test -f $ac_dir/$ac_prog; then
1374 if test $ac_prog = install &&
1375 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1376 # AIX install. It has an incompatible calling convention.
1379 ac_cv_path_install="$ac_dir/$ac_prog -c"
1390 if test "${ac_cv_path_install+set}" = set; then
1391 INSTALL="$ac_cv_path_install"
1393 # As a last resort, use the slow shell script. We don't cache a
1394 # path for INSTALL within a source directory, because that will
1395 # break other packages using the cache if that directory is
1396 # removed, or if the path is relative.
1397 INSTALL="$ac_install_sh"
1400 echo "$ac_t""$INSTALL" 1>&6
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1410 # Extract the first word of "ranlib", so it can be a program name with args.
1411 set dummy ranlib; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$RANLIB"; then
1418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_RANLIB="ranlib"
1430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1433 RANLIB="$ac_cv_prog_RANLIB"
1434 if test -n "$RANLIB"; then
1435 echo "$ac_t""$RANLIB" 1>&6
1437 echo "$ac_t""no" 1>&6
1440 # Extract the first word of "mv", so it can be a program name with args.
1441 set dummy mv; ac_word=$2
1442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1443 echo "configure:1444: checking for $ac_word" >&5
1444 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1449 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1452 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1457 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 if test -f $ac_dir/$ac_word; then
1460 ac_cv_path_MV="$ac_dir/$ac_word"
1465 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1470 if test -n "$MV"; then
1471 echo "$ac_t""$MV" 1>&6
1473 echo "$ac_t""no" 1>&6
1476 # Extract the first word of "rm", so it can be a program name with args.
1477 set dummy rm; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1485 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1488 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_path_RM="$ac_dir/$ac_word"
1501 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1506 if test -n "$RM"; then
1507 echo "$ac_t""$RM" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 # Extract the first word of "cp", so it can be a program name with args.
1513 set dummy cp; ac_word=$2
1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1515 echo "configure:1516: checking for $ac_word" >&5
1516 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1521 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1524 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_path_CP="$ac_dir/$ac_word"
1537 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1542 if test -n "$CP"; then
1543 echo "$ac_t""$CP" 1>&6
1545 echo "$ac_t""no" 1>&6
1548 # Extract the first word of "sed", so it can be a program name with args.
1549 set dummy sed; ac_word=$2
1550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_word" >&5
1552 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1560 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_path_SED="$ac_dir/$ac_word"
1573 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1577 SED="$ac_cv_path_SED"
1578 if test -n "$SED"; then
1579 echo "$ac_t""$SED" 1>&6
1581 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "awk", so it can be a program name with args.
1585 set dummy awk; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1596 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_path_AWK="$ac_dir/$ac_word"
1609 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1613 AWK="$ac_cv_path_AWK"
1614 if test -n "$AWK"; then
1615 echo "$ac_t""$AWK" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 # Extract the first word of "echo", so it can be a program name with args.
1621 set dummy echo; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1629 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
1632 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
1635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1637 for ac_dir in $ac_dummy; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f $ac_dir/$ac_word; then
1640 ac_cv_path_ECHO="$ac_dir/$ac_word"
1645 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
1649 ECHO="$ac_cv_path_ECHO"
1650 if test -n "$ECHO"; then
1651 echo "$ac_t""$ECHO" 1>&6
1653 echo "$ac_t""no" 1>&6
1656 # Extract the first word of "cmp", so it can be a program name with args.
1657 set dummy cmp; ac_word=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5
1660 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1668 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_path_CMP="$ac_dir/$ac_word"
1681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
1685 CMP="$ac_cv_path_CMP"
1686 if test -n "$CMP"; then
1687 echo "$ac_t""$CMP" 1>&6
1689 echo "$ac_t""no" 1>&6
1692 # Extract the first word of "tbl", so it can be a program name with args.
1693 set dummy tbl; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1701 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
1704 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1712 ac_cv_path_TBL="$ac_dir/$ac_word"
1717 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
1721 TBL="$ac_cv_path_TBL"
1722 if test -n "$TBL"; then
1723 echo "$ac_t""$TBL" 1>&6
1725 echo "$ac_t""no" 1>&6
1728 # Extract the first word of "ar", so it can be a program name with args.
1729 set dummy ar; ac_word=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1740 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_path_AR="$ac_dir/$ac_word"
1753 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
1758 if test -n "$AR"; then
1759 echo "$ac_t""$AR" 1>&6
1761 echo "$ac_t""no" 1>&6
1764 # Extract the first word of "ranlib", so it can be a program name with args.
1765 set dummy ranlib; ac_word=$2
1766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1767 echo "configure:1768: checking for $ac_word" >&5
1768 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1776 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_path_RANLIB="$ac_dir/$ac_word"
1789 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
1793 RANLIB="$ac_cv_path_RANLIB"
1794 if test -n "$RANLIB"; then
1795 echo "$ac_t""$RANLIB" 1>&6
1797 echo "$ac_t""no" 1>&6
1800 # Extract the first word of "openssl", so it can be a program name with args.
1801 set dummy openssl; ac_word=$2
1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_word" >&5
1804 if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1812 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a dos path.
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1817 for ac_dir in $ac_dummy; do
1818 test -z "$ac_dir" && ac_dir=.
1819 if test -f $ac_dir/$ac_word; then
1820 ac_cv_path_OPENSSL="$ac_dir/$ac_word"
1825 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
1829 OPENSSL="$ac_cv_path_OPENSSL"
1830 if test -n "$OPENSSL"; then
1831 echo "$ac_t""$OPENSSL" 1>&6
1833 echo "$ac_t""no" 1>&6
1837 test -n "$ARFLAG" || ARFLAGS="cr"
1850 echo $ac_n "checking for Operating System""... $ac_c" 1>&6
1851 echo "configure:1852: checking for Operating System" >&5
1852 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1853 echo "configure:1854: checking for Cygwin environment" >&5
1854 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1864 #define __CYGWIN__ __CYGWIN32__
1869 if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1882 echo "$ac_t""$ac_cv_cygwin" 1>&6
1884 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1885 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
1891 HAVE_SUN_OS_FALSE='#'
1893 HAVE_SUN_OS_TRUE='#'
1896 cat >> confdefs.h <<\EOF
1897 #define HAVE_SUN_OS 1
1905 HAVE_SUN_OS_FALSE='#'
1907 HAVE_SUN_OS_TRUE='#'
1912 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
1918 HAVE_OSF1_OS_FALSE='#'
1920 HAVE_OSF1_OS_TRUE='#'
1923 cat >> confdefs.h <<\EOF
1924 #define HAVE_OSF1_OS 1
1932 HAVE_OSF1_OS_FALSE='#'
1934 HAVE_OSF1_OS_TRUE='#'
1939 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
1945 HAVE_AIX_OS_FALSE='#'
1947 HAVE_AIX_OS_TRUE='#'
1950 cat >> confdefs.h <<\EOF
1951 #define HAVE_AIX_OS 1
1959 HAVE_AIX_OS_FALSE='#'
1961 HAVE_AIX_OS_TRUE='#'
1966 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
1972 HAVE_HPUX_OS_FALSE='#'
1974 HAVE_HPUX_OS_TRUE='#'
1977 cat >> confdefs.h <<\EOF
1978 #define HAVE_HPUX_OS 1
1986 HAVE_HPUX_OS_FALSE='#'
1988 HAVE_HPUX_OS_TRUE='#'
1993 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
1999 HAVE_LINUX_OS_FALSE='#'
2001 HAVE_LINUX_OS_TRUE='#'
2002 HAVE_LINUX_OS_FALSE=
2004 cat >> confdefs.h <<\EOF
2005 #define HAVE_LINUX_OS 1
2013 HAVE_LINUX_OS_FALSE='#'
2015 HAVE_LINUX_OS_TRUE='#'
2016 HAVE_LINUX_OS_FALSE=
2020 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2025 HAVE_FREEBSD_OS_TRUE=
2026 HAVE_FREEBSD_OS_FALSE='#'
2028 HAVE_FREEBSD_OS_TRUE='#'
2029 HAVE_FREEBSD_OS_FALSE=
2031 cat >> confdefs.h <<\EOF
2032 #define HAVE_FREEBSD_OS 1
2039 HAVE_FREEBSD_OS_TRUE=
2040 HAVE_FREEBSD_OS_FALSE='#'
2042 HAVE_FREEBSD_OS_TRUE='#'
2043 HAVE_FREEBSD_OS_FALSE=
2047 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2052 HAVE_NETBSD_OS_TRUE=
2053 HAVE_NETBSD_OS_FALSE='#'
2055 HAVE_NETBSD_OS_TRUE='#'
2056 HAVE_NETBSD_OS_FALSE=
2058 cat >> confdefs.h <<\EOF
2059 #define HAVE_NETBSD_OS 1
2066 HAVE_NETBSD_OS_TRUE=
2067 HAVE_NETBSD_OS_FALSE='#'
2069 HAVE_NETBSD_OS_TRUE='#'
2070 HAVE_NETBSD_OS_FALSE=
2074 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2079 HAVE_OPENBSD_OS_TRUE=
2080 HAVE_OPENBSD_OS_FALSE='#'
2082 HAVE_OPENBSD_OS_TRUE='#'
2083 HAVE_OPENBSD_OS_FALSE=
2085 cat >> confdefs.h <<\EOF
2086 #define HAVE_OPENBSD_OS 1
2093 HAVE_OPENBSD_OS_TRUE=
2094 HAVE_OPENBSD_OS_FALSE='#'
2096 HAVE_OPENBSD_OS_TRUE='#'
2097 HAVE_OPENBSD_OS_FALSE=
2101 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2107 HAVE_BSDI_OS_FALSE='#'
2109 HAVE_BSDI_OS_TRUE='#'
2112 cat >> confdefs.h <<\EOF
2113 #define HAVE_BSDI_OS 1
2121 HAVE_BSDI_OS_FALSE='#'
2123 HAVE_BSDI_OS_TRUE='#'
2128 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
2134 HAVE_SGI_OS_FALSE='#'
2136 HAVE_SGI_OS_TRUE='#'
2139 cat >> confdefs.h <<\EOF
2140 #define HAVE_SGI_OS 1
2148 HAVE_SGI_OS_FALSE='#'
2150 HAVE_SGI_OS_TRUE='#'
2155 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2161 HAVE_IRIX_OS_FALSE='#'
2163 HAVE_IRIX_OS_TRUE='#'
2166 cat >> confdefs.h <<\EOF
2167 #define HAVE_IRIX_OS 1
2175 HAVE_IRIX_OS_FALSE='#'
2177 HAVE_IRIX_OS_TRUE='#'
2182 echo "$ac_t""" "" 1>&6
2185 # -----------------------------------------------------------
2186 # ----------------------------------------------------------
2187 echo $ac_n "checking for Operating System Distribution""... $ac_c" 1>&6
2188 echo "configure:2189: checking for Operating System Distribution" >&5
2189 if test "x$DISTNAME" != "x"
2191 echo "distname set to $DISTNAME"
2192 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
2195 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
2198 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2201 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
2204 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
2207 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
2210 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
2213 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
2216 elif test -f /etc/SuSE-release
2219 elif test -d /etc/SuSEconfig
2222 elif test -d /usr/src/OpenLinux
2225 elif test -f /etc/redhat-release
2228 elif test -f /etc/gentoo-release
2231 elif test -f /etc/debian_version
2234 elif test -f /etc/slackware-version
2237 elif test "$ac_cv_cygwin" = yes
2240 cat >> confdefs.h <<\EOF
2241 #define HAVE_CYGWIN 1
2247 echo "$ac_t""" "" 1>&6
2250 # -----------------------------------------------------------
2251 # ----------------------------------------------------------
2256 INSIDE_GNOME_COMMON_TRUE=
2257 INSIDE_GNOME_COMMON_FALSE='#'
2259 INSIDE_GNOME_COMMON_TRUE='#'
2260 INSIDE_GNOME_COMMON_FALSE=
2263 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2265 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
2268 # ------------------------------------------------------------------
2269 # If the user has not set --prefix, we set our default to nothing.
2270 # In this case, if the user has not set --sysconfdir, we set it
2271 # to the package default of /etc/bacula. If either --prefix or
2272 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
2273 # ------------------------------------------------------------------
2274 if test x${prefix} = xNONE ; then
2275 if test `eval echo ${sysconfdir}` = NONE/etc ; then
2276 sysconfdir=/etc/bacula
2280 sysconfdir=`eval echo ${sysconfdir}`
2282 # -------------------------------------------------------------------------
2283 # If the user has not set --exec-prefix, we default to ${prefix}
2284 # -------------------------------------------------------------------------
2285 if test x${exec_prefix} = xNONE ; then
2286 exec_prefix=${prefix}
2289 # ------------------------------------------------------------------
2290 # If the user has not set --sbindir, we set our default as /sbin
2291 # ------------------------------------------------------------------
2292 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2293 sbindir=${exec_prefix}/sbin
2295 sbindir=`eval echo ${sbindir}`
2297 # ------------------------------------------------------------------
2298 # All list of languages for which a translation exist. Each
2299 # language is separated by a space.
2300 # ------------------------------------------------------------------
2303 for ac_prog in msgfmt
2305 # Extract the first word of "$ac_prog", so it can be a program name with args.
2306 set dummy $ac_prog; ac_word=$2
2307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2308 echo "configure:2309: checking for $ac_word" >&5
2309 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2314 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2317 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2322 for ac_dir in $ac_dummy; do
2323 test -z "$ac_dir" && ac_dir=.
2324 if test -f $ac_dir/$ac_word; then
2325 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2333 MSGFMT="$ac_cv_path_MSGFMT"
2334 if test -n "$MSGFMT"; then
2335 echo "$ac_t""$MSGFMT" 1>&6
2337 echo "$ac_t""no" 1>&6
2340 test -n "$MSGFMT" && break
2342 test -n "$MSGFMT" || MSGFMT="no"
2344 if test "$MSGFMT" = "no"
2346 echo 'msgfmt program not found, disabling NLS !'
2348 USE_INCLUDED_LIBINTL=no
2356 support_smartalloc=yes
2357 support_readline=yes
2359 support_static_tools=no
2360 support_static_fd=no
2361 support_static_sd=no
2362 support_static_dir=no
2363 support_static_cons=no
2364 build_client_only=no
2370 # -------------------------------------------
2371 # gnome (default off)
2372 # -------------------------------------------
2373 # Check whether --enable-gnome or --disable-gnome was given.
2374 if test "${enable_gnome+set}" = set; then
2375 enableval="$enable_gnome"
2376 if test x$enableval = xyes; then
2383 if test x$support_gnome = xyes; then
2394 # Check whether --with-gnome-includes or --without-gnome-includes was given.
2395 if test "${with_gnome_includes+set}" = set; then
2396 withval="$with_gnome_includes"
2398 CFLAGS="$CFLAGS -I$withval"
2403 # Check whether --with-gnome-libs or --without-gnome-libs was given.
2404 if test "${with_gnome_libs+set}" = set; then
2405 withval="$with_gnome_libs"
2407 LDFLAGS="$LDFLAGS -L$withval"
2408 gnome_prefix=$withval
2413 # Check whether --with-gnome or --without-gnome was given.
2414 if test "${with_gnome+set}" = set; then
2415 withval="$with_gnome"
2416 if test x$withval = xyes; then
2420 if test "x$withval" = xno; then
2424 LDFLAGS="$LDFLAGS -L$withval/lib"
2425 CFLAGS="$CFLAGS -I$withval/include"
2426 gnome_prefix=$withval/lib
2434 if test "x$want_gnome" = xyes; then
2436 # Extract the first word of "gnome-config", so it can be a program name with args.
2437 set dummy gnome-config; ac_word=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 case "$GNOME_CONFIG" in
2445 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
2448 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
2451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2453 for ac_dir in $ac_dummy; do
2454 test -z "$ac_dir" && ac_dir=.
2455 if test -f $ac_dir/$ac_word; then
2456 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
2461 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
2465 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
2466 if test -n "$GNOME_CONFIG"; then
2467 echo "$ac_t""$GNOME_CONFIG" 1>&6
2469 echo "$ac_t""no" 1>&6
2472 if test "$GNOME_CONFIG" = "no"; then
2473 no_gnome_config="yes"
2475 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
2476 echo "configure:2477: checking if $GNOME_CONFIG works" >&5
2477 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
2478 echo "$ac_t""yes" 1>&6
2481 # Extract the first word of "orbit-config", so it can be a program name with args.
2482 set dummy orbit-config; ac_word=$2
2483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2484 echo "configure:2485: checking for $ac_word" >&5
2485 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 case "$ORBIT_CONFIG" in
2490 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
2493 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
2496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2498 for ac_dir in $ac_dummy; do
2499 test -z "$ac_dir" && ac_dir=.
2500 if test -f $ac_dir/$ac_word; then
2501 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
2506 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
2510 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
2511 if test -n "$ORBIT_CONFIG"; then
2512 echo "$ac_t""$ORBIT_CONFIG" 1>&6
2514 echo "$ac_t""no" 1>&6
2517 # Extract the first word of "orbit-idl", so it can be a program name with args.
2518 set dummy orbit-idl; ac_word=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 case "$ORBIT_IDL" in
2526 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
2529 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
2532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2534 for ac_dir in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir=.
2536 if test -f $ac_dir/$ac_word; then
2537 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
2542 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
2546 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
2547 if test -n "$ORBIT_IDL"; then
2548 echo "$ac_t""$ORBIT_IDL" 1>&6
2550 echo "$ac_t""no" 1>&6
2553 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
2554 echo "configure:2555: checking for working ORBit environment" >&5
2555 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2559 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
2560 gnome_cv_orbit_found=no
2562 gnome_cv_orbit_found=yes
2567 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
2570 if test x$gnome_cv_orbit_found = xyes; then
2572 HAVE_ORBIT_FALSE='#'
2577 if test x$gnome_cv_orbit_found = xyes; then
2579 ORBIT_CFLAGS=`orbit-config --cflags client server`
2580 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
2584 if test xfail = xfailure; then
2585 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
2589 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
2590 echo "configure:2591: checking for gnorba libraries" >&5
2591 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2595 gnome_cv_gnorba_found=no
2596 if test x$gnome_cv_orbit_found = xyes; then
2597 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2598 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2599 if test -n "$GNORBA_LIBS"; then
2600 gnome_cv_gnorba_found=yes
2606 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
2609 if test x$gnome_cv_gnorba_found = xyes; then
2611 HAVE_GNORBA_FALSE='#'
2613 HAVE_GNORBA_TRUE='#'
2616 if test x$gnome_cv_orbit_found = xyes; then
2618 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
2619 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
2623 if test xfail = xfailure; then
2624 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
2628 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
2629 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
2630 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
2631 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
2632 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
2633 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
2634 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
2637 echo "$ac_t""no" 1>&6
2638 no_gnome_config="yes"
2642 if test x$exec_prefix = xNONE; then
2643 if test x$prefix = xNONE; then
2644 gnome_prefix=$ac_default_prefix/lib
2646 gnome_prefix=$prefix/lib
2649 gnome_prefix=`eval echo \`echo $libdir\``
2652 if test "$no_gnome_config" = "yes"; then
2653 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
2654 echo "configure:2655: checking for gnomeConf.sh file in $gnome_prefix" >&5
2655 if test -f $gnome_prefix/gnomeConf.sh; then
2656 echo "$ac_t""found" 1>&6
2657 echo "loading gnome configuration from" \
2658 "$gnome_prefix/gnomeConf.sh"
2659 . $gnome_prefix/gnomeConf.sh
2662 echo "$ac_t""not found" 1>&6
2663 if test xfail = xfail; then
2664 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
2673 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
2674 echo "configure:2675: checking extra library \"$i\"" >&5
2678 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
2679 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
2682 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
2683 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
2686 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
2687 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
2689 echo "$ac_t""unknown library" 1>&6
2691 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
2692 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
2697 GNOME_DIR=src/gnome-console
2702 # -------------------------------------------
2703 # smartalloc (default off)
2704 # -------------------------------------------
2705 # Check whether --enable-smartalloc or --disable-smartalloc was given.
2706 if test "${enable_smartalloc+set}" = set; then
2707 enableval="$enable_smartalloc"
2708 if test x$enableval = xno; then
2709 support_smartalloc=no
2714 if test x$support_smartalloc = xyes; then
2715 cat >> confdefs.h <<\EOF
2716 #define SMARTALLOC 1
2721 # -------------------------------------------
2722 # static-tools (default off)
2723 # -------------------------------------------
2724 # Check whether --enable-static-tools or --disable-static-tools was given.
2725 if test "${enable_static_tools+set}" = set; then
2726 enableval="$enable_static_tools"
2727 if test x$enableval = xyes; then
2728 support_static_tools=yes
2734 if test x$support_static_tools = xyes; then
2735 TTOOL_LDFLAGS="-static"
2739 # -------------------------------------------
2740 # static-fd (default off)
2741 # -------------------------------------------
2742 # Check whether --enable-static-fd or --disable-static-fd was given.
2743 if test "${enable_static_fd+set}" = set; then
2744 enableval="$enable_static_fd"
2745 if test x$enableval = xyes; then
2746 support_static_fd=yes
2752 if test x$support_static_fd = xyes; then
2753 STATIC_FD="static-bacula-fd"
2757 # -------------------------------------------
2758 # static-sd (default off)
2759 # -------------------------------------------
2760 # Check whether --enable-static-sd or --disable-static-sd was given.
2761 if test "${enable_static_sd+set}" = set; then
2762 enableval="$enable_static_sd"
2763 if test x$enableval = xyes; then
2764 support_static_sd=yes
2770 if test x$support_static_sd = xyes; then
2771 STATIC_SD="static-bacula-sd"
2775 # -------------------------------------------
2776 # static-dir (default off)
2777 # -------------------------------------------
2778 # Check whether --enable-static-dir or --disable-static-dir was given.
2779 if test "${enable_static_dir+set}" = set; then
2780 enableval="$enable_static_dir"
2781 if test x$enableval = xyes; then
2782 support_static_dir=yes
2788 if test x$support_static_dir = xyes; then
2789 STATIC_DIR="static-bacula-dir"
2793 # -------------------------------------------
2794 # static-cons (default off)
2795 # -------------------------------------------
2796 # Check whether --enable-static-cons or --disable-static-cons was given.
2797 if test "${enable_static_cons+set}" = set; then
2798 enableval="$enable_static_cons"
2799 if test x$enableval = xyes; then
2800 support_static_cons=yes
2806 if test x$support_static_cons = xyes; then
2807 STATIC_CONS="static-console"
2811 # -------------------------------------------
2812 # client_only (default off)
2813 # -------------------------------------------
2814 # Check whether --enable-client-only or --disable-client-only was given.
2815 if test "${enable_client_only+set}" = set; then
2816 enableval="$enable_client_only"
2817 if test x$enableval = xyes; then
2818 build_client_only=yes
2822 if test x$build_client_only = xno; then
2829 # ---------------------------------------------------
2830 # Check for readline support/directory (default on)
2831 # ---------------------------------------------------
2832 # this allows you to turn it completely off
2833 # Check whether --enable-readline or --disable-readline was given.
2834 if test "${enable_readline+set}" = set; then
2835 enableval="$enable_readline"
2836 if test x$enableval = xno; then
2844 if test x$support_readline = xyes; then
2845 # Check whether --with-readline or --without-readline was given.
2846 if test "${with_readline+set}" = set; then
2847 withval="$with_readline"
2849 case "$with_readline" in
2852 if test "$with_readline" != "yes"; then
2853 CONS_INC="-I$with_readline"
2854 CONS_LDFLAGS="-L$with_readline"
2856 with_readline="/usr/include/readline"
2858 ac_safe=`echo "$with_readline/readline.h" | sed 'y%./+-%__p_%'`
2859 echo $ac_n "checking for $with_readline/readline.h""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $with_readline/readline.h" >&5
2861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 #include <$with_readline/readline.h>
2869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2872 if test -z "$ac_err"; then
2874 eval "ac_cv_header_$ac_safe=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 eval "ac_cv_header_$ac_safe=no"
2884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 echo "$ac_t""yes" 1>&6
2887 cat >> confdefs.h <<\EOF
2888 #define HAVE_READLINE 1
2891 CONS_LIBS="-lreadline -ltermcap"
2895 echo "$ac_t""no" 1>&6
2896 { echo "configure: error: *** readline library missing" 1>&2; exit 1; }
2906 # check for standard readline library
2907 ac_safe=`echo "/usr/include/readline/readline.h" | sed 'y%./+-%__p_%'`
2908 echo $ac_n "checking for /usr/include/readline/readline.h""... $ac_c" 1>&6
2909 echo "configure:2910: checking for /usr/include/readline/readline.h" >&5
2910 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 #include </usr/include/readline/readline.h>
2918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2919 { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2921 if test -z "$ac_err"; then
2923 eval "ac_cv_header_$ac_safe=yes"
2926 echo "configure: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2929 eval "ac_cv_header_$ac_safe=no"
2933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2934 echo "$ac_t""yes" 1>&6
2935 echo "$ac_t""yes" 1>&6
2936 cat >> confdefs.h <<\EOF
2937 #define HAVE_READLINE 1
2941 CONS_INC="-I/usr/include/readline"
2942 CONS_LIBS="-lreadline -ltermcap"
2945 echo "$ac_t""no" 1>&6
2947 # Did not find starndard library, so user our own
2948 echo "$ac_t""yes" 1>&6
2949 cat >> confdefs.h <<\EOF
2950 #define HAVE_READLINE 1
2954 CONS_INC="-I${TOP_DIR}/depkgs"
2955 CONS_LIBS="-lreadline -lhistory -ltermcap"
2956 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
2957 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
2971 # Minimal stuff for readline Makefile configuration
2975 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2976 echo "configure:2977: checking whether stat file-mode macros are broken" >&5
2977 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 #include <sys/types.h>
2984 #include <sys/stat.h>
2986 #if defined(S_ISBLK) && defined(S_IFDIR)
2987 # if S_ISBLK (S_IFDIR)
2992 #if defined(S_ISBLK) && defined(S_IFCHR)
2993 # if S_ISBLK (S_IFCHR)
2998 #if defined(S_ISLNK) && defined(S_IFREG)
2999 # if S_ISLNK (S_IFREG)
3004 #if defined(S_ISSOCK) && defined(S_IFREG)
3005 # if S_ISSOCK (S_IFREG)
3011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3012 egrep "You lose" >/dev/null 2>&1; then
3014 ac_cv_header_stat_broken=yes
3017 ac_cv_header_stat_broken=no
3023 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3024 if test $ac_cv_header_stat_broken = yes; then
3025 cat >> confdefs.h <<\EOF
3026 #define STAT_MACROS_BROKEN 1
3032 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3035 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_hdr that defines DIR" >&5
3037 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <sys/types.h>
3049 if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3051 eval "ac_cv_header_dirent_$ac_safe=yes"
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3056 eval "ac_cv_header_dirent_$ac_safe=no"
3060 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3063 cat >> confdefs.h <<EOF
3064 #define $ac_tr_hdr 1
3066 ac_header_dirent=$ac_hdr; break
3068 echo "$ac_t""no" 1>&6
3071 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3072 if test $ac_header_dirent = dirent.h; then
3073 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3074 echo "configure:3075: checking for opendir in -ldir" >&5
3075 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 ac_save_LIBS="$LIBS"
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_lib_$ac_lib_var=no"
3103 LIBS="$ac_save_LIBS"
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3110 echo "$ac_t""no" 1>&6
3114 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3115 echo "configure:3116: checking for opendir in -lx" >&5
3116 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 ac_save_LIBS="$LIBS"
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 /* Override any gcc2 internal prototype to avoid an error. */
3126 /* We use char because int might match the return type of a gcc2
3127 builtin and then its argument prototype would still apply. */
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3136 eval "ac_cv_lib_$ac_lib_var=yes"
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 eval "ac_cv_lib_$ac_lib_var=no"
3144 LIBS="$ac_save_LIBS"
3147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3148 echo "$ac_t""yes" 1>&6
3151 echo "$ac_t""no" 1>&6
3157 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
3159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_func" >&5
3161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 /* System header to define __stub macros and hopefully few prototypes,
3168 which can conflict with char $ac_func(); below. */
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3177 /* The GNU C library defines this for functions which it implements
3178 to always fail with ENOSYS. Some functions are actually named
3179 something starting with __ and the normal name is an alias. */
3180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3190 eval "ac_cv_func_$ac_func=yes"
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3195 eval "ac_cv_func_$ac_func=no"
3200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3203 cat >> confdefs.h <<EOF
3204 #define $ac_tr_func 1
3208 echo "$ac_t""no" 1>&6
3213 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
3214 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
3215 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
3217 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3218 echo "configure:3219: checking for getopt_long" >&5
3219 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 /* System header to define __stub macros and hopefully few prototypes,
3226 which can conflict with char getopt_long(); below. */
3228 /* Override any gcc2 internal prototype to avoid an error. */
3229 /* We use char because int might match the return type of a gcc2
3230 builtin and then its argument prototype would still apply. */
3235 /* The GNU C library defines this for functions which it implements
3236 to always fail with ENOSYS. Some functions are actually named
3237 something starting with __ and the normal name is an alias. */
3238 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3246 if { (eval echo configure:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3248 eval "ac_cv_func_getopt_long=yes"
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3253 eval "ac_cv_func_getopt_long=no"
3258 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 cat >> confdefs.h <<\EOF
3261 #define HAVE_GETOPT_LONG 1
3265 echo "$ac_t""no" 1>&6
3270 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
3271 echo "configure:3272: checking for working strcoll" >&5
3272 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 if test "$cross_compiling" = yes; then
3276 ac_cv_func_strcoll_works=no
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3284 exit (strcoll ("abc", "def") >= 0 ||
3285 strcoll ("ABC", "DEF") >= 0 ||
3286 strcoll ("123", "456") >= 0);
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3291 ac_cv_func_strcoll_works=yes
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 ac_cv_func_strcoll_works=no
3303 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
3304 if test $ac_cv_func_strcoll_works = yes; then
3305 cat >> confdefs.h <<\EOF
3306 #define HAVE_STRCOLL 1
3312 for ac_hdr in varargs.h \
3313 sys/ptem.h sys/pte.h sys/stream.h
3315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3317 echo "configure:3318: checking for $ac_hdr" >&5
3318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3327 { (eval echo configure:3328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3329 if test -z "$ac_err"; then
3331 eval "ac_cv_header_$ac_safe=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 eval "ac_cv_header_$ac_safe=no"
3341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3344 cat >> confdefs.h <<EOF
3345 #define $ac_tr_hdr 1
3349 echo "$ac_t""no" 1>&6
3354 # End of readline stuff
3355 # -----------------------------------------------------------------------
3358 # ---------------------------------------------------
3359 # Check for GMP support/directory
3360 # ---------------------------------------------------
3364 # [ --with-gmp[=DIR] Specify gmp library directory],
3366 # case "$with_gmp" in
3369 # if test "$with_gmp" != "yes"; then
3370 # GMP_INC="-I$with_gmp"
3372 # GMP_LDFLAGS="-L$with_gmp"
3374 # with_gmp="/usr/include"
3376 # AC_CHECK_HEADER($with_gmp/gmp.h,
3377 # [ AC_MSG_RESULT(yes)
3378 # AC_DEFINE(HAVE_GMP)
3382 # [ AC_MSG_ERROR([*** gmp library missing])
3388 # # check for standard gmp library
3389 # AC_CHECK_HEADER(/usr/include/gmp.h,
3390 # [ AC_MSG_RESULT(yes)
3391 # AC_DEFINE(HAVE_GMP)
3396 # # Did not find standard library, so use our own
3397 # AC_MSG_RESULT(yes)
3398 # AC_DEFINE(HAVE_GMP)
3401 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
3403 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
3404 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
3410 #AC_SUBST(GMP_LDFLAGS)
3414 # -----------------------------------------------------------------------
3417 # ---------------------------------------------------
3418 # Check for CWEB support/directory
3419 # ---------------------------------------------------
3424 # [ --with-cweb[=DIR] Specify cweb library directory],
3426 # case "$with_cweb" in
3429 # if test "$with_cweb" != "yes"; then
3430 # CWEB_INC="-I$with_cweb"
3431 # CWEB_LIBS="-lcweb"
3432 # CWEB_LDFLAGS="-L$with_cweb"
3434 # with_cweb="/usr/include"
3436 # AC_CHECK_HEADER($with_cweb/cweb.h,
3437 # [ AC_MSG_RESULT(yes)
3438 # AC_DEFINE(HAVE_CWEB)
3439 # CWEB_LIBS="-lcweb"
3442 # [ AC_MSG_ERROR([*** cweb library missing])
3448 # # check for standard cweb library
3449 # AC_CHECK_HEADER(/usr/include/cweb.h,
3450 # [ AC_MSG_RESULT(yes)
3451 # AC_DEFINE(HAVE_CWEB)
3454 # CWEB_LIBS="-lcweb"
3456 # # Did not find starndard library, so use our own
3457 # AC_MSG_RESULT(yes)
3458 # AC_DEFINE(HAVE_CWEB)
3461 # CWEB=${TOP_DIR}/depkgs/cweb
3462 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
3463 # CWEB_LIBS="-lcweb"
3464 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
3465 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
3471 #AC_SUBST(CWEB_LIBS)
3472 #AC_SUBST(CWEB_LDFLAGS)
3476 # -----------------------------------------------------------------------
3480 # -----------------------------------------------------------
3481 # Check whether user wants TCP wrappers support (default off)
3482 # -----------------------------------------------------------
3484 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3485 if test "${with_tcp_wrappers+set}" = set; then
3486 withval="$with_tcp_wrappers"
3488 if test "x$withval" != "xno" ; then
3490 LIBS="$LIBS -lwrap -lnsl"
3491 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3492 echo "configure:3493: checking for libwrap" >&5
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3497 int deny_severity = 0;
3498 int allow_severity = 0;
3499 struct request_info *req;
3504 if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3507 echo "$ac_t""yes" 1>&6
3508 cat >> confdefs.h <<\EOF
3509 #define HAVE_LIBWRAP 1
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3528 # ------------------------------------------
3529 # Where to place working dir
3530 # ------------------------------------------
3531 working_dir=`eval echo ${sysconfdir}/working`
3532 # Check whether --with-working-dir or --without-working-dir was given.
3533 if test "${with_working_dir+set}" = set; then
3534 withval="$with_working_dir"
3536 if test "x$withval" != "xno" ; then
3537 working_dir=$withval
3547 # ------------------------------------------
3548 # Where to place scriptdir (script files)
3549 # ------------------------------------------
3550 scriptdir=`eval echo ${sysconfdir}`
3551 # Check whether --with-scriptdir or --without-scriptdir was given.
3552 if test "${with_scriptdir+set}" = set; then
3553 withval="$with_scriptdir"
3555 if test "x$withval" != "xno" ; then
3566 # ------------------------------------------
3567 # Where to send dump email
3568 # ------------------------------------------
3569 dump_email=root@localhost
3570 # Check whether --with-dump-email or --without-dump-email was given.
3571 if test "${with_dump_email+set}" = set; then
3572 withval="$with_dump_email"
3574 if test "x$withval" != "xno" ; then
3584 # ------------------------------------------
3585 # Where to send job email
3586 # ------------------------------------------
3587 job_email=root@localhost
3588 # Check whether --with-job-email or --without-job-email was given.
3589 if test "${with_job_email+set}" = set; then
3590 withval="$with_job_email"
3592 if test "x$withval" != "xno" ; then
3602 # ------------------------------------------
3603 # Where to find smtp host
3604 # ------------------------------------------
3606 # Check whether --with-smtp_host or --without-smtp_host was given.
3607 if test "${with_smtp_host+set}" = set; then
3608 withval="$with_smtp_host"
3610 if test "x$withval" != "xno" ; then
3621 # ------------------------------------
3622 # Where to place pid files
3623 # ------------------------------------
3625 # Check whether --with-pid-dir or --without-pid-dir was given.
3626 if test "${with_pid_dir+set}" = set; then
3627 withval="$with_pid_dir"
3629 if test "x$withval" != "xno" ; then
3637 # make sure the pid directory exists
3638 if test ! -d $piddir ; then
3639 piddir=`eval echo ${sysconfdir}`
3641 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
3645 cat >> confdefs.h <<EOF
3646 #define _PATH_BACULA_PIDDIR "$piddir"
3652 # ------------------------------------
3653 # Where to place subsys "lock file"
3654 # ------------------------------------
3655 subsysdir=/var/run/subsys
3656 # Check whether --with-subsys-dir or --without-subsys-dir was given.
3657 if test "${with_subsys_dir+set}" = set; then
3658 withval="$with_subsys_dir"
3660 if test "x$withval" != "xno" ; then
3668 # make sure the pid directory exists
3669 if test ! -d $subsysdir ; then
3670 subsysdir=`eval echo ${sysconfdir}`
3672 NONE/*) subsysdir=`echo $subsysdir | sed "s~NONE~$ac_default_prefix~"` ;;
3680 # ------------------------------------
3681 # Where to start assigning ports
3682 # ------------------------------------
3684 # Check whether --with-baseport or --without-baseport was given.
3685 if test "${with_baseport+set}" = set; then
3686 withval="$with_baseport"
3688 if test "x$withval" != "xno" ; then
3697 dir_port=`expr $baseport`
3698 fd_port=`expr $baseport + 1`
3699 sd_port=`expr $fd_port + 1`
3706 # ------------------------------------------
3707 # Generate passwords
3708 # ------------------------------------------
3710 # Check whether --with-dir-password or --without-dir-password was given.
3711 if test "${with_dir_password+set}" = set; then
3712 withval="$with_dir_password"
3714 if test "x$withval" != "xno" ; then
3715 dir_password=$withval
3722 if test "x$dir_password" = "x" ; then
3723 if test "x$OPENSSL" = "xnone" ; then
3724 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
3725 key=`autoconf/randpass 33`
3727 key=`openssl rand -base64 33`
3733 # Check whether --with-fd-password or --without-fd-password was given.
3734 if test "${with_fd_password+set}" = set; then
3735 withval="$with_fd_password"
3737 if test "x$withval" != "xno" ; then
3738 fd_password=$withval
3745 if test "x$fd_password" = "x" ; then
3746 if test "x$OPENSSL" = "xnone" ; then
3747 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
3748 key=`autoconf/randpass 37`
3750 key=`openssl rand -base64 33`
3756 # Check whether --with-sd-password or --without-sd-password was given.
3757 if test "${with_sd_password+set}" = set; then
3758 withval="$with_sd_password"
3760 if test "x$withval" != "xno" ; then
3761 sd_password=$withval
3768 if test "x$sd_password" = "x" ; then
3769 if test "x$OPENSSL" = "xnone" ; then
3770 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
3771 key=`autocnf/randpass 41`
3773 key=`openssl rand -base64 33`
3786 # ------------------------------------------------
3787 # Bacula check for various SQL database engines
3788 # ------------------------------------------------
3791 echo $ac_n "checking for MySQL support""... $ac_c" 1>&6
3792 echo "configure:3793: checking for MySQL support" >&5
3793 # Check whether --with-mysql or --without-mysql was given.
3794 if test "${with_mysql+set}" = set; then
3795 withval="$with_mysql"
3797 if test "$withval" != "no"; then
3798 if test "$withval" = "yes"; then
3799 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3800 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3801 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3802 MYSQL_BINDIR=/usr/local/mysql/bin
3803 elif test -f /usr/include/mysql/mysql.h; then
3804 MYSQL_INCDIR=/usr/include/mysql
3805 MYSQL_LIBDIR=/usr/lib/mysql
3806 MYSQL_BINDIR=/usr/bin
3807 elif test -f /usr/include/mysql.h; then
3808 MYSQL_INCDIR=/usr/include
3809 MYSQL_LIBDIR=/usr/lib
3810 MYSQL_BINDIR=/usr/bin
3811 elif test -f /usr/local/include/mysql/mysql.h; then
3812 MYSQL_INCDIR=/usr/local/include/mysql
3813 MYSQL_LIBDIR=/usr/local/lib/mysql
3814 MYSQL_BINDIR=/usr/local/bin
3815 elif test -f /usr/local/include/mysql.h; then
3816 MYSQL_INCDIR=/usr/local/include
3817 MYSQL_LIBDIR=/usr/local/lib
3818 MYSQL_BINDIR=/usr/local/bin
3820 echo "$ac_t""no" 1>&6
3821 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3824 if test -f $withval/include/mysql/mysql.h; then
3825 MYSQL_INCDIR=$withval/include/mysql
3826 MYSQL_LIBDIR=$withval/lib/mysql
3827 MYSQL_BINDIR=$withval/bin
3828 elif test -f $withval/include/mysql.h; then
3829 MYSQL_INCDIR=$withval/include
3830 MYSQL_LIBDIR=$withval/lib
3831 MYSQL_BINDIR=$withval/bin
3833 echo "$ac_t""no" 1>&6
3834 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3837 SQL_INCLUDE=-I$MYSQL_INCDIR
3838 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
3839 SQL_BINDIR=$MYSQL_BINDIR
3841 cat >> confdefs.h <<\EOF
3842 #define HAVE_MYSQL 1
3845 echo "$ac_t""yes" 1>&6
3852 echo "$ac_t""no" 1>&6
3857 echo "$ac_t""no" 1>&6
3862 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
3863 if test "${with_embedded_mysql+set}" = set; then
3864 withval="$with_embedded_mysql"
3866 if test "$withval" != "no"; then
3867 if test "$withval" = "yes"; then
3868 if test -f /usr/local/mysql/include/mysql/mysql.h; then
3869 MYSQL_INCDIR=/usr/local/mysql/include/mysql
3870 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
3871 MYSQL_BINDIR=/usr/local/mysql/bin
3872 elif test -f /usr/include/mysql/mysql.h; then
3873 MYSQL_INCDIR=/usr/include/mysql
3874 MYSQL_LIBDIR=/usr/lib/mysql
3875 MYSQL_BINDIR=/usr/bin
3876 elif test -f /usr/include/mysql.h; then
3877 MYSQL_INCDIR=/usr/include
3878 MYSQL_LIBDIR=/usr/lib
3879 MYSQL_BINDIR=/usr/bin
3880 elif test -f /usr/local/include/mysql/mysql.h; then
3881 MYSQL_INCDIR=/usr/local/include/mysql
3882 MYSQL_LIBDIR=/usr/local/lib/mysql
3883 MYSQL_BINDIR=/usr/local/bin
3884 elif test -f /usr/local/include/mysql.h; then
3885 MYSQL_INCDIR=/usr/local/include
3886 MYSQL_LIBDIR=/usr/local/lib
3887 MYSQL_BINDIR=/usr/local/bin
3889 echo "$ac_t""no" 1>&6
3890 { echo "configure: error: Unable to find mysql.h in standard locations" 1>&2; exit 1; }
3893 if test -f $withval/include/mysql/mysql.h; then
3894 MYSQL_INCDIR=$withval/include/mysql
3895 MYSQL_LIBDIR=$withval/lib/mysql
3896 MYSQL_BINDIR=$withval/bin
3897 elif test -f $withval/include/mysql.h; then
3898 MYSQL_INCDIR=$withval/include
3899 MYSQL_LIBDIR=$withval/lib
3900 MYSQL_BINDIR=$withval/bin
3902 echo "$ac_t""no" 1>&6
3903 { echo "configure: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" 1>&2; exit 1; }
3906 SQL_INCLUDE=-I$MYSQL_INCDIR
3907 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
3908 SQL_BINDIR=$MYSQL_BINDIR
3910 cat >> confdefs.h <<\EOF
3911 #define HAVE_MYSQL 1
3914 cat >> confdefs.h <<\EOF
3915 #define HAVE_EMBEDDED_MYSQL 1
3918 echo "$ac_t""yes" 1>&6
3925 echo "$ac_t""no" 1>&6
3930 echo "$ac_t""no" 1>&6
3943 # ------------------------------------------------
3944 # Bacula check for various SQL database engines
3945 # ------------------------------------------------
3948 echo $ac_n "checking for SQLite support""... $ac_c" 1>&6
3949 echo "configure:3950: checking for SQLite support" >&5
3950 # Check whether --with-sqlite or --without-sqlite was given.
3951 if test "${with_sqlite+set}" = set; then
3952 withval="$with_sqlite"
3954 if test "$withval" != "no"; then
3955 if test "$withval" = "yes"; then
3956 if test -f /usr/local/include/sqlite.h; then
3957 SQLITE_INCDIR=/usr/local/include
3958 SQLITE_LIBDIR=/usr/local/lib
3959 SQLITE_BINDIR=/usr/local/bin
3960 elif test -f /usr/include/sqlite.h; then
3961 SQLITE_INCDIR=/usr/include
3962 SQLITE_LIBDIR=/usr/lib
3963 SQLITE_BINDIR=/usr/bin
3965 echo "$ac_t""no" 1>&6
3966 { echo "configure: error: Unable to find sqlite.h in standard locations" 1>&2; exit 1; }
3969 if test -f $withval/sqlite.h; then
3970 SQLITE_INCDIR=$withval
3971 SQLITE_LIBDIR=$withval
3972 SQLITE_BINDIR=$withval
3974 echo "$ac_t""no" 1>&6
3975 { echo "configure: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" 1>&2; exit 1; }
3978 SQL_INCLUDE=-I$SQLITE_INCDIR
3979 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
3980 SQL_BINDIR=$SQLITE_BINDIR
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_SQLITE 1
3986 echo "$ac_t""yes" 1>&6
3993 echo "$ac_t""no" 1>&6
3998 echo "$ac_t""no" 1>&6
4011 cat >> confdefs.h <<\EOF
4012 #define PROTOTYPES 1
4016 if test -z "$CFLAGS"; then
4017 if test -z "$CCOPTS"; then
4024 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4025 echo "configure:4026: checking for mingw32 environment" >&5
4026 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4037 if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4050 echo "$ac_t""$ac_cv_mingw32" 1>&6
4052 test "$ac_cv_mingw32" = yes && MINGW32=yes
4055 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4056 echo "configure:4057: checking for executable suffix" >&5
4057 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4064 echo 'int main () { return 0; }' > conftest.$ac_ext
4066 if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4067 for file in conftest.*; do
4069 *.c | *.o | *.obj) ;;
4070 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4074 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4077 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4082 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4083 echo "$ac_t""${ac_cv_exeext}" 1>&6
4087 largefile_support="no"
4088 echo $ac_n "checking build system type""... $ac_c" 1>&6
4089 echo "configure:4090: checking build system type" >&5
4092 case "$build_alias" in
4095 NONE) build_alias=$host_alias ;;
4096 *) build_alias=$nonopt ;;
4100 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
4101 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4102 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4103 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4104 echo "$ac_t""$build" 1>&6
4106 if test $host != $build; then
4107 ac_tool_prefix=${host_alias}-
4113 # Check whether --enable-largefile or --disable-largefile was given.
4114 if test "${enable_largefile+set}" = set; then
4115 enableval="$enable_largefile"
4119 if test "$enable_largefile" != no; then
4120 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}getconf; ac_word=$2
4122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4123 echo "configure:4124: checking for $ac_word" >&5
4124 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 if test -n "$GETCONF"; then
4128 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
4130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4132 for ac_dir in $ac_dummy; do
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f $ac_dir/$ac_word; then
4135 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
4140 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
4143 GETCONF="$ac_cv_prog_GETCONF"
4144 if test -n "$GETCONF"; then
4145 echo "$ac_t""$GETCONF" 1>&6
4147 echo "$ac_t""no" 1>&6
4152 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
4153 echo "configure:4154: checking for CFLAGS value to request large file support" >&5
4154 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
4158 ac_cv_sys_largefile_CFLAGS=no
4160 # IRIX 6.2 and later require cc -n32.
4161 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
4162 if test "$GCC" != yes; then
4163 ac_cv_sys_largefile_CFLAGS=-n32
4166 CC="$CC $ac_cv_sys_largefile_CFLAGS"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 ac_cv_sys_largefile_CFLAGS=no
4189 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
4190 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
4191 echo "configure:4192: checking for LDFLAGS value to request large file support" >&5
4192 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
4196 ac_cv_sys_largefile_LDFLAGS=no
4201 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
4202 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
4203 echo "configure:4204: checking for LIBS value to request large file support" >&5
4204 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
4208 ac_cv_sys_largefile_LIBS=no
4213 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
4215 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4218 -D_FILE_OFFSET_BITS=*) ;;
4219 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
4220 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
4226 '') CPPFLAGS="$ac_flag" ;;
4227 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
4235 '') CFLAGS="$ac_flag" ;;
4236 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
4241 case "$ac_cv_sys_largefile_LDFLAGS" in
4245 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
4246 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
4249 case "$ac_cv_sys_largefile_LIBS" in
4253 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
4254 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
4257 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
4258 echo "configure:4259: checking for _FILE_OFFSET_BITS" >&5
4259 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 ac_cv_sys_file_offset_bits=no
4264 # HP-UX 10.20 and later
4265 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4266 ac_cv_sys_file_offset_bits=64 ;;
4268 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4270 -D_FILE_OFFSET_BITS)
4271 ac_cv_sys_file_offset_bits=1 ;;
4272 -D_FILE_OFFSET_BITS=*)
4273 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4279 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
4280 if test "$ac_cv_sys_file_offset_bits" != no; then
4281 cat >> confdefs.h <<EOF
4282 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4286 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
4287 echo "configure:4288: checking for _LARGEFILE_SOURCE" >&5
4288 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_cv_sys_largefile_source=no
4293 # HP-UX 10.20 and later
4294 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
4295 ac_cv_sys_largefile_source=1 ;;
4297 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4299 -D_LARGEFILE_SOURCE)
4300 ac_cv_sys_largefile_source=1 ;;
4301 -D_LARGEFILE_SOURCE=*)
4302 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4308 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
4309 if test "$ac_cv_sys_largefile_source" != no; then
4310 cat >> confdefs.h <<EOF
4311 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4315 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
4316 echo "configure:4317: checking for _LARGE_FILES" >&5
4317 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 ac_cv_sys_large_files=no
4323 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
4324 ac_cv_sys_large_files=1 ;;
4326 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
4329 ac_cv_sys_large_files=1 ;;
4331 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
4337 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
4338 if test "$ac_cv_sys_large_files" != no; then
4339 cat >> confdefs.h <<EOF
4340 #define _LARGE_FILES $ac_cv_sys_large_files
4348 # If we find X, set shell vars x_includes and x_libraries to the
4349 # paths, otherwise set no_x=yes.
4350 # Uses ac_ vars as temps to allow command line to override cache and checks.
4351 # --without-x overrides everything else, but does not touch the cache.
4352 echo $ac_n "checking for X""... $ac_c" 1>&6
4353 echo "configure:4354: checking for X" >&5
4355 # Check whether --with-x or --without-x was given.
4356 if test "${with_x+set}" = set; then
4361 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4362 if test "x$with_x" = xno; then
4363 # The user explicitly disabled X.
4366 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4367 # Both variables are already set.
4370 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 # One or both of the vars are not set, and there is no cached value.
4374 ac_x_includes=NO ac_x_libraries=NO
4376 if mkdir conftestdir; then
4378 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4379 cat > Imakefile <<'EOF'
4381 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4383 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4385 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4386 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4387 for ac_extension in a so sl; do
4388 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4389 test -f $ac_im_libdir/libX11.$ac_extension; then
4390 ac_im_usrlibdir=$ac_im_libdir; break
4393 # Screen out bogus values from the imake configuration. They are
4394 # bogus both because they are the default anyway, and because
4395 # using them would break gcc on systems where it needs fixed includes.
4396 case "$ac_im_incroot" in
4398 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4400 case "$ac_im_usrlibdir" in
4402 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4409 if test "$ac_x_includes" = NO; then
4410 # Guess where to find include files, by looking for this one X11 .h file.
4411 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4413 # First, try using that file with no special directory specified.
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 #include <$x_direct_test_include>
4419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4420 { (eval echo configure:4421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4422 if test -z "$ac_err"; then
4424 # We can compile using X headers with no special include directory.
4428 echo "configure: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4431 # Look for the header file in a standard set of common directories.
4432 # Check X11 before X11Rn because it is often a symlink to the current release.
4435 /usr/X11R6/include \
4436 /usr/X11R5/include \
4437 /usr/X11R4/include \
4440 /usr/include/X11R6 \
4441 /usr/include/X11R5 \
4442 /usr/include/X11R4 \
4444 /usr/local/X11/include \
4445 /usr/local/X11R6/include \
4446 /usr/local/X11R5/include \
4447 /usr/local/X11R4/include \
4449 /usr/local/include/X11 \
4450 /usr/local/include/X11R6 \
4451 /usr/local/include/X11R5 \
4452 /usr/local/include/X11R4 \
4456 /usr/XFree86/include/X11 \
4459 /usr/local/include \
4460 /usr/unsupported/include \
4461 /usr/athena/include \
4462 /usr/local/x11r5/include \
4463 /usr/lpp/Xamples/include \
4465 /usr/openwin/include \
4466 /usr/openwin/share/include \
4469 if test -r "$ac_dir/$x_direct_test_include"; then
4470 ac_x_includes=$ac_dir
4476 fi # $ac_x_includes = NO
4478 if test "$ac_x_libraries" = NO; then
4479 # Check for the libraries.
4481 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4482 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4484 # See if we find them without any special options.
4485 # Don't add to $LIBS permanently.
4486 ac_save_LIBS="$LIBS"
4487 LIBS="-l$x_direct_test_library $LIBS"
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 ${x_direct_test_function}()
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4498 LIBS="$ac_save_LIBS"
4499 # We can link X programs with no special library path.
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 LIBS="$ac_save_LIBS"
4506 # First see if replacing the include by lib works.
4507 # Check X11 before X11Rn because it is often a symlink to the current release.
4508 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4519 /usr/local/X11/lib \
4520 /usr/local/X11R6/lib \
4521 /usr/local/X11R5/lib \
4522 /usr/local/X11R4/lib \
4524 /usr/local/lib/X11 \
4525 /usr/local/lib/X11R6 \
4526 /usr/local/lib/X11R5 \
4527 /usr/local/lib/X11R4 \
4531 /usr/XFree86/lib/X11 \
4535 /usr/unsupported/lib \
4537 /usr/local/x11r5/lib \
4538 /usr/lpp/Xamples/lib \
4542 /usr/openwin/share/lib \
4545 for ac_extension in a so sl; do
4546 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4547 ac_x_libraries=$ac_dir
4554 fi # $ac_x_libraries = NO
4556 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4557 # Didn't find X anywhere. Cache the known absence of X.
4558 ac_cv_have_x="have_x=no"
4560 # Record where we found X for the cache.
4561 ac_cv_have_x="have_x=yes \
4562 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4566 eval "$ac_cv_have_x"
4569 if test "$have_x" != yes; then
4570 echo "$ac_t""$have_x" 1>&6
4573 # If each of the values was on the command line, it overrides each guess.
4574 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4575 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4576 # Update the cache value to reflect the command line values.
4577 ac_cv_have_x="have_x=yes \
4578 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4579 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4582 if test "$no_x" = yes; then
4583 # Not all programs may use this symbol, but it does not hurt to define it.
4584 cat >> confdefs.h <<\EOF
4585 #define X_DISPLAY_MISSING 1
4588 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4590 if test -n "$x_includes"; then
4591 X_CFLAGS="$X_CFLAGS -I$x_includes"
4594 # It would also be nice to do this for all -L options, not just this one.
4595 if test -n "$x_libraries"; then
4596 X_LIBS="$X_LIBS -L$x_libraries"
4597 # For Solaris; some versions of Sun CC require a space after -R and
4598 # others require no space. Words are not sufficient . . . .
4599 case "`(uname -sr) 2>/dev/null`" in
4601 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4602 echo "configure:4603: checking whether -R must be followed by a space" >&5
4603 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4612 if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4616 echo "configure: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4622 if test $ac_R_nospace = yes; then
4623 echo "$ac_t""no" 1>&6
4624 X_LIBS="$X_LIBS -R$x_libraries"
4626 LIBS="$ac_xsave_LIBS -R $x_libraries"
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4645 if test $ac_R_space = yes; then
4646 echo "$ac_t""yes" 1>&6
4647 X_LIBS="$X_LIBS -R $x_libraries"
4649 echo "$ac_t""neither works" 1>&6
4652 LIBS="$ac_xsave_LIBS"
4656 # Check for system-dependent libraries X programs must link with.
4657 # Do this before checking for the system-independent R6 libraries
4658 # (-lICE), since we may need -lsocket or whatever for X linking.
4660 if test "$ISC" = yes; then
4661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4663 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4664 # libraries were built with DECnet support. And karl@cs.umb.edu says
4665 # the Alpha needs dnet_stub (dnet does not exist).
4666 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4667 echo "configure:4668: checking for dnet_ntoa in -ldnet" >&5
4668 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 ac_save_LIBS="$LIBS"
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4686 if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4688 eval "ac_cv_lib_$ac_lib_var=yes"
4690 echo "configure: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4693 eval "ac_cv_lib_$ac_lib_var=no"
4696 LIBS="$ac_save_LIBS"
4699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4700 echo "$ac_t""yes" 1>&6
4701 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4703 echo "$ac_t""no" 1>&6
4706 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4707 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4708 echo "configure:4709: checking for dnet_ntoa in -ldnet_stub" >&5
4709 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 ac_save_LIBS="$LIBS"
4714 LIBS="-ldnet_stub $LIBS"
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 eval "ac_cv_lib_$ac_lib_var=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_lib_$ac_lib_var=no"
4737 LIBS="$ac_save_LIBS"
4740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4744 echo "$ac_t""no" 1>&6
4749 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4750 # to get the SysV transport functions.
4751 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4753 # The nsl library prevents programs from opening the X display
4754 # on Irix 5.2, according to dickey@clark.net.
4755 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4756 echo "configure:4757: checking for gethostbyname" >&5
4757 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4763 /* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char gethostbyname(); below. */
4766 /* Override any gcc2 internal prototype to avoid an error. */
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4769 char gethostbyname();
4773 /* The GNU C library defines this for functions which it implements
4774 to always fail with ENOSYS. Some functions are actually named
4775 something starting with __ and the normal name is an alias. */
4776 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 eval "ac_cv_func_gethostbyname=yes"
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4791 eval "ac_cv_func_gethostbyname=no"
4796 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4800 echo "$ac_t""no" 1>&6
4803 if test $ac_cv_func_gethostbyname = no; then
4804 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4805 echo "configure:4806: checking for gethostbyname in -lnsl" >&5
4806 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 ac_save_LIBS="$LIBS"
4812 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815 /* Override any gcc2 internal prototype to avoid an error. */
4816 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */
4818 char gethostbyname();
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4826 eval "ac_cv_lib_$ac_lib_var=yes"
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4831 eval "ac_cv_lib_$ac_lib_var=no"
4834 LIBS="$ac_save_LIBS"
4837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4841 echo "$ac_t""no" 1>&6
4846 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4847 # socket/setsockopt and other routines are undefined under SCO ODT
4848 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4849 # on later versions), says simon@lia.di.epfl.ch: it contains
4850 # gethostby* variants that don't use the nameserver (or something).
4851 # -lsocket must be given before -lnsl if both are needed.
4852 # We assume that if connect needs -lnsl, so does gethostbyname.
4853 echo $ac_n "checking for connect""... $ac_c" 1>&6
4854 echo "configure:4855: checking for connect" >&5
4855 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 /* System header to define __stub macros and hopefully few prototypes,
4862 which can conflict with char connect(); below. */
4864 /* Override any gcc2 internal prototype to avoid an error. */
4865 /* We use char because int might match the return type of a gcc2
4866 builtin and then its argument prototype would still apply. */
4871 /* The GNU C library defines this for functions which it implements
4872 to always fail with ENOSYS. Some functions are actually named
4873 something starting with __ and the normal name is an alias. */
4874 #if defined (__stub_connect) || defined (__stub___connect)
4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 eval "ac_cv_func_connect=yes"
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 eval "ac_cv_func_connect=no"
4894 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4898 echo "$ac_t""no" 1>&6
4901 if test $ac_cv_func_connect = no; then
4902 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4903 echo "configure:4904: checking for connect in -lsocket" >&5
4904 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 ac_save_LIBS="$LIBS"
4909 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 eval "ac_cv_lib_$ac_lib_var=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_lib_$ac_lib_var=no"
4932 LIBS="$ac_save_LIBS"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4939 echo "$ac_t""no" 1>&6
4944 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4945 echo $ac_n "checking for remove""... $ac_c" 1>&6
4946 echo "configure:4947: checking for remove" >&5
4947 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 /* System header to define __stub macros and hopefully few prototypes,
4954 which can conflict with char remove(); below. */
4956 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4963 /* The GNU C library defines this for functions which it implements
4964 to always fail with ENOSYS. Some functions are actually named
4965 something starting with __ and the normal name is an alias. */
4966 #if defined (__stub_remove) || defined (__stub___remove)
4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976 eval "ac_cv_func_remove=yes"
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4981 eval "ac_cv_func_remove=no"
4986 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4990 echo "$ac_t""no" 1>&6
4993 if test $ac_cv_func_remove = no; then
4994 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4995 echo "configure:4996: checking for remove in -lposix" >&5
4996 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 ac_save_LIBS="$LIBS"
5001 LIBS="-lposix $LIBS"
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 /* We use char because int might match the return type of a gcc2
5007 builtin and then its argument prototype would still apply. */
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5016 eval "ac_cv_lib_$ac_lib_var=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 eval "ac_cv_lib_$ac_lib_var=no"
5024 LIBS="$ac_save_LIBS"
5027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5028 echo "$ac_t""yes" 1>&6
5029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5031 echo "$ac_t""no" 1>&6
5036 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5037 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5038 echo "configure:5039: checking for shmat" >&5
5039 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* System header to define __stub macros and hopefully few prototypes,
5046 which can conflict with char shmat(); below. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5055 /* The GNU C library defines this for functions which it implements
5056 to always fail with ENOSYS. Some functions are actually named
5057 something starting with __ and the normal name is an alias. */
5058 #if defined (__stub_shmat) || defined (__stub___shmat)
5066 if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068 eval "ac_cv_func_shmat=yes"
5070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5073 eval "ac_cv_func_shmat=no"
5078 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5079 echo "$ac_t""yes" 1>&6
5082 echo "$ac_t""no" 1>&6
5085 if test $ac_cv_func_shmat = no; then
5086 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5087 echo "configure:5088: checking for shmat in -lipc" >&5
5088 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 ac_save_LIBS="$LIBS"
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_lib_$ac_lib_var=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_lib_$ac_lib_var=no"
5116 LIBS="$ac_save_LIBS"
5119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5121 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5123 echo "$ac_t""no" 1>&6
5129 # Check for libraries that X11R6 Xt/Xaw programs need.
5130 ac_save_LDFLAGS="$LDFLAGS"
5131 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5132 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5133 # check for ICE first), but we must link in the order -lSM -lICE or
5134 # we get undefined symbols. So assume we have SM if we have ICE.
5135 # These have to be linked with before -lX11, unlike the other
5136 # libraries we check for below, so use a different variable.
5137 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5138 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5139 echo "configure:5140: checking for IceConnectionNumber in -lICE" >&5
5140 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 ac_save_LIBS="$LIBS"
5145 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5152 char IceConnectionNumber();
5155 IceConnectionNumber()
5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5160 eval "ac_cv_lib_$ac_lib_var=yes"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5165 eval "ac_cv_lib_$ac_lib_var=no"
5168 LIBS="$ac_save_LIBS"
5171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5173 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5175 echo "$ac_t""no" 1>&6
5178 LDFLAGS="$ac_save_LDFLAGS"
5202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_hdr" >&5
5205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5214 { (eval echo configure:5215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5216 if test -z "$ac_err"; then
5218 eval "ac_cv_header_$ac_safe=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_header_$ac_safe=no"
5228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5231 cat >> confdefs.h <<EOF
5232 #define $ac_tr_hdr 1
5236 echo "$ac_t""no" 1>&6
5240 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5241 echo "configure:5242: checking for ANSI C header files" >&5
5242 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5254 { (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5256 if test -z "$ac_err"; then
5258 ac_cv_header_stdc=yes
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 ac_cv_header_stdc=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 egrep "memchr" >/dev/null 2>&1; then
5280 ac_cv_header_stdc=no
5286 if test $ac_cv_header_stdc = yes; then
5287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 egrep "free" >/dev/null 2>&1; then
5298 ac_cv_header_stdc=no
5304 if test $ac_cv_header_stdc = yes; then
5305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5306 if test "$cross_compiling" = yes; then
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5313 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5314 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 int main () { int i; for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 ac_cv_header_stdc=no
5336 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5337 if test $ac_cv_header_stdc = yes; then
5338 cat >> confdefs.h <<\EOF
5339 #define STDC_HEADERS 1
5344 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
5345 echo "configure:5346: checking whether sys/types.h defines makedev" >&5
5346 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 #include <sys/types.h>
5354 return makedev(0, 0);
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359 ac_cv_header_sys_types_h_makedev=yes
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 ac_cv_header_sys_types_h_makedev=no
5370 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
5372 if test $ac_cv_header_sys_types_h_makedev = no; then
5373 ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
5374 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
5375 echo "configure:5376: checking for sys/mkdev.h" >&5
5376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 #include <sys/mkdev.h>
5384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5385 { (eval echo configure:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5387 if test -z "$ac_err"; then
5389 eval "ac_cv_header_$ac_safe=yes"
5392 echo "configure: failed program was:" >&5
5393 cat conftest.$ac_ext >&5
5395 eval "ac_cv_header_$ac_safe=no"
5399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5400 echo "$ac_t""yes" 1>&6
5401 cat >> confdefs.h <<\EOF
5402 #define MAJOR_IN_MKDEV 1
5406 echo "$ac_t""no" 1>&6
5410 if test $ac_cv_header_sys_mkdev_h = no; then
5411 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
5412 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
5413 echo "configure:5414: checking for sys/sysmacros.h" >&5
5414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 #include <sys/sysmacros.h>
5422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5423 { (eval echo configure:5424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5425 if test -z "$ac_err"; then
5427 eval "ac_cv_header_$ac_safe=yes"
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5433 eval "ac_cv_header_$ac_safe=no"
5437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5438 echo "$ac_t""yes" 1>&6
5439 cat >> confdefs.h <<\EOF
5440 #define MAJOR_IN_SYSMACROS 1
5444 echo "$ac_t""no" 1>&6
5451 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5454 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5455 echo "configure:5456: checking for $ac_hdr that defines DIR" >&5
5456 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 #include <sys/types.h>
5468 if { (eval echo configure:5469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5470 eval "ac_cv_header_dirent_$ac_safe=yes"
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5475 eval "ac_cv_header_dirent_$ac_safe=no"
5479 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5480 echo "$ac_t""yes" 1>&6
5481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5482 cat >> confdefs.h <<EOF
5483 #define $ac_tr_hdr 1
5485 ac_header_dirent=$ac_hdr; break
5487 echo "$ac_t""no" 1>&6
5490 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5491 if test $ac_header_dirent = dirent.h; then
5492 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5493 echo "configure:5494: checking for opendir in -ldir" >&5
5494 ac_lib_var=`echo dir'_'opendir | 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"
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
5529 echo "$ac_t""no" 1>&6
5533 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5534 echo "configure:5535: checking for opendir in -lx" >&5
5535 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 ac_save_LIBS="$LIBS"
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* Override any gcc2 internal prototype to avoid an error. */
5545 /* We use char because int might match the return type of a gcc2
5546 builtin and then its argument prototype would still apply. */
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 eval "ac_cv_lib_$ac_lib_var=yes"
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 eval "ac_cv_lib_$ac_lib_var=no"
5563 LIBS="$ac_save_LIBS"
5566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5567 echo "$ac_t""yes" 1>&6
5570 echo "$ac_t""no" 1>&6
5575 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5576 echo "configure:5577: checking whether stat file-mode macros are broken" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 #include <sys/types.h>
5584 #include <sys/stat.h>
5586 #if defined(S_ISBLK) && defined(S_IFDIR)
5587 # if S_ISBLK (S_IFDIR)
5592 #if defined(S_ISBLK) && defined(S_IFCHR)
5593 # if S_ISBLK (S_IFCHR)
5598 #if defined(S_ISLNK) && defined(S_IFREG)
5599 # if S_ISLNK (S_IFREG)
5604 #if defined(S_ISSOCK) && defined(S_IFREG)
5605 # if S_ISSOCK (S_IFREG)
5611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5612 egrep "You lose" >/dev/null 2>&1; then
5614 ac_cv_header_stat_broken=yes
5617 ac_cv_header_stat_broken=no
5623 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5624 if test $ac_cv_header_stat_broken = yes; then
5625 cat >> confdefs.h <<\EOF
5626 #define STAT_MACROS_BROKEN 1
5631 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5632 echo "configure:5633: checking for sys/wait.h that is POSIX.1 compatible" >&5
5633 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 #include <sys/types.h>
5640 #include <sys/wait.h>
5642 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5645 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5650 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5653 if { (eval echo configure:5654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5655 ac_cv_header_sys_wait_h=yes
5657 echo "configure: failed program was:" >&5
5658 cat conftest.$ac_ext >&5
5660 ac_cv_header_sys_wait_h=no
5665 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5666 if test $ac_cv_header_sys_wait_h = yes; then
5667 cat >> confdefs.h <<\EOF
5668 #define HAVE_SYS_WAIT_H 1
5673 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5674 echo "configure:5675: checking whether time.h and sys/time.h may both be included" >&5
5675 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5678 cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5681 #include <sys/types.h>
5682 #include <sys/time.h>
5688 if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5690 ac_cv_header_time=yes
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5695 ac_cv_header_time=no
5700 echo "$ac_t""$ac_cv_header_time" 1>&6
5701 if test $ac_cv_header_time = yes; then
5702 cat >> confdefs.h <<\EOF
5703 #define TIME_WITH_SYS_TIME 1
5708 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5709 echo "configure:5710: checking for st_blksize in struct stat" >&5
5710 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716 #include <sys/types.h>
5717 #include <sys/stat.h>
5719 struct stat s; s.st_blksize;
5722 if { (eval echo configure:5723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5724 ac_cv_struct_st_blksize=yes
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5729 ac_cv_struct_st_blksize=no
5734 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5735 if test $ac_cv_struct_st_blksize = yes; then
5736 cat >> confdefs.h <<\EOF
5737 #define HAVE_ST_BLKSIZE 1
5742 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
5743 echo "configure:5744: checking for st_blocks in struct stat" >&5
5744 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 #include <sys/types.h>
5751 #include <sys/stat.h>
5753 struct stat s; s.st_blocks;
5756 if { (eval echo configure:5757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5758 ac_cv_struct_st_blocks=yes
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5763 ac_cv_struct_st_blocks=no
5768 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
5769 if test $ac_cv_struct_st_blocks = yes; then
5770 cat >> confdefs.h <<\EOF
5771 #define HAVE_ST_BLOCKS 1
5775 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
5778 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5779 echo "configure:5780: checking whether struct tm is in sys/time.h or time.h" >&5
5780 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 #include <sys/types.h>
5789 struct tm *tp; tp->tm_sec;
5792 if { (eval echo configure:5793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5794 ac_cv_struct_tm=time.h
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 ac_cv_struct_tm=sys/time.h
5804 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5805 if test $ac_cv_struct_tm = sys/time.h; then
5806 cat >> confdefs.h <<\EOF
5807 #define TM_IN_SYS_TIME 1
5812 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5813 echo "configure:5814: checking for tm_zone in struct tm" >&5
5814 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 #include <sys/types.h>
5821 #include <$ac_cv_struct_tm>
5823 struct tm tm; tm.tm_zone;
5826 if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5828 ac_cv_struct_tm_zone=yes
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5833 ac_cv_struct_tm_zone=no
5838 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5839 if test "$ac_cv_struct_tm_zone" = yes; then
5840 cat >> confdefs.h <<\EOF
5841 #define HAVE_TM_ZONE 1
5845 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5846 echo "configure:5847: checking for tzname" >&5
5847 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5850 cat > conftest.$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5854 #ifndef tzname /* For SGI. */
5855 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5863 ac_cv_var_tzname=yes
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5873 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5874 if test $ac_cv_var_tzname = yes; then
5875 cat >> confdefs.h <<\EOF
5876 #define HAVE_TZNAME 1
5883 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5884 echo "configure:5885: checking for utime.h" >&5
5885 if eval "test \"`echo '$''{'tar_cv_header_utime_h'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5892 #include <sys/types.h>
5898 if { (eval echo configure:5899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5900 tar_cv_header_utime_h=yes
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 tar_cv_header_utime_h=no
5910 echo "$ac_t""$tar_cv_header_utime_h" 1>&6
5911 test $tar_cv_header_utime_h = yes && cat >> confdefs.h <<\EOF
5912 #define HAVE_UTIME_H 1
5916 echo $ac_n "checking for bigendian""... $ac_c" 1>&6
5917 echo "configure:5918: checking for bigendian" >&5
5918 if eval "test \"`echo '$''{'ba_cv_bigendian'+set}'`\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5921 if test "$cross_compiling" = yes; then
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 main(){long a=1L; char *p=(char *)&a; exit(*p);}
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5943 echo "$ac_t""$ba_cv_bigendian" 1>&6
5944 test $ba_cv_bigendian = yes && cat >> confdefs.h <<\EOF
5945 #define HAVE_BIGENDIAN 1
5950 echo $ac_n "checking for working const""... $ac_c" 1>&6
5951 echo "configure:5952: checking for working const" >&5
5952 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5953 echo $ac_n "(cached) $ac_c" 1>&6
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure"
5957 #include "confdefs.h"
5961 /* Ultrix mips cc rejects this. */
5962 typedef int charset[2]; const charset x;
5963 /* SunOS 4.1.1 cc rejects this. */
5964 char const *const *ccp;
5966 /* NEC SVR4.0.2 mips cc rejects this. */
5967 struct point {int x, y;};
5968 static struct point const zero = {0,0};
5969 /* AIX XL C 1.02.0.0 rejects this.
5970 It does not let you subtract one const X* pointer from another in an arm
5971 of an if-expression whose if-part is not a constant expression */
5972 const char *g = "string";
5973 ccp = &g + (g ? g-g : 0);
5974 /* HPUX 7.0 cc rejects these. */
5977 ccp = (char const *const *) p;
5978 { /* SCO 3.2v4 cc rejects this. */
5980 char const *s = 0 ? (char *) 0 : (char const *) 0;
5984 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5986 const int *foo = &x[0];
5989 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5990 typedef const int *iptr;
5994 { /* AIX XL C 1.02.0.0 rejects this saying
5995 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5996 struct s { int j; const int *ap[3]; };
5997 struct s *b; b->j = 5;
5999 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6005 if { (eval echo configure:6006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6017 echo "$ac_t""$ac_cv_c_const" 1>&6
6018 if test $ac_cv_c_const = no; then
6019 cat >> confdefs.h <<\EOF
6027 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
6028 echo "configure:6029: checking how to get filesystem type" >&5
6030 # The order of these tests is important.
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6034 #include <sys/statvfs.h>
6035 #include <sys/fstyp.h>
6037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6038 { (eval echo configure:6039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6040 if test -z "$ac_err"; then
6042 cat >> confdefs.h <<\EOF
6043 #define FSTYPE_STATVFS 1
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6052 if test $fstype = no; then
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6056 #include <sys/statfs.h>
6057 #include <sys/fstyp.h>
6059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6060 { (eval echo configure:6061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6062 if test -z "$ac_err"; then
6064 cat >> confdefs.h <<\EOF
6065 #define FSTYPE_USG_STATFS 1
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6075 if test $fstype = no; then
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 #include <sys/statfs.h>
6080 #include <sys/vmount.h>
6082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6083 { (eval echo configure:6084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6085 if test -z "$ac_err"; then
6087 cat >> confdefs.h <<\EOF
6088 #define FSTYPE_AIX_STATFS 1
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6098 if test $fstype = no; then
6099 cat > conftest.$ac_ext <<EOF
6100 #line 6101 "configure"
6101 #include "confdefs.h"
6104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6105 { (eval echo configure:6106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6107 if test -z "$ac_err"; then
6109 cat >> confdefs.h <<\EOF
6110 #define FSTYPE_MNTENT 1
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6120 if test $fstype = no; then
6121 cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6124 #include <sys/mount.h>
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 egrep "f_type;" >/dev/null 2>&1; then
6129 cat >> confdefs.h <<\EOF
6130 #define FSTYPE_STATFS 1
6137 if test $fstype = no; then
6138 cat > conftest.$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 #include <sys/mount.h>
6142 #include <sys/fs_types.h>
6144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6145 { (eval echo configure:6146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6147 if test -z "$ac_err"; then
6149 cat >> confdefs.h <<\EOF
6150 #define FSTYPE_GETMNT 1
6155 echo "configure: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6160 echo "$ac_t""$fstype" 1>&6
6162 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6163 echo "configure:6164: checking return type of signal handlers" >&5
6164 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 cat > conftest.$ac_ext <<EOF
6168 #line 6169 "configure"
6169 #include "confdefs.h"
6170 #include <sys/types.h>
6176 extern "C" void (*signal (int, void (*)(int)))(int);
6178 void (*signal ()) ();
6185 if { (eval echo configure:6186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6187 ac_cv_type_signal=void
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 ac_cv_type_signal=int
6197 echo "$ac_t""$ac_cv_type_signal" 1>&6
6198 cat >> confdefs.h <<EOF
6199 #define RETSIGTYPE $ac_cv_type_signal
6204 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
6205 echo "configure:6206: checking for type of signal functions" >&5
6206 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6217 struct sigaction sa;
6218 sigemptyset(&ss); sigsuspend(&ss);
6219 sigaction(SIGINT, &sa, (struct sigaction *) 0);
6220 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 bash_cv_signal_vintage=posix
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6238 int mask = sigmask(SIGINT);
6239 sigsetmask(mask); sigblock(mask); sigpause(mask);
6243 if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 bash_cv_signal_vintage=4.2bsd
6247 echo "configure: failed program was:" >&5
6248 cat conftest.$ac_ext >&5
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6256 RETSIGTYPE foo() { }
6259 int mask = sigmask(SIGINT);
6260 sigset(SIGINT, foo); sigrelse(SIGINT);
6261 sighold(SIGINT); sigpause(SIGINT);
6265 if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6267 bash_cv_signal_vintage=svr3
6269 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6272 bash_cv_signal_vintage=v7
6285 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
6286 if test "$bash_cv_signal_vintage" = posix; then
6287 cat >> confdefs.h <<\EOF
6288 #define HAVE_POSIX_SIGNALS 1
6291 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
6292 cat >> confdefs.h <<\EOF
6293 #define HAVE_BSD_SIGNALS 1
6296 elif test "$bash_cv_signal_vintage" = svr3; then
6297 cat >> confdefs.h <<\EOF
6298 #define HAVE_USG_SIGHOLD 1
6303 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6304 echo "configure:6305: checking for mode_t" >&5
6305 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6306 echo $ac_n "(cached) $ac_c" 1>&6
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6311 #include <sys/types.h>
6317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6320 ac_cv_type_mode_t=yes
6323 ac_cv_type_mode_t=no
6328 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6329 if test $ac_cv_type_mode_t = no; then
6330 cat >> confdefs.h <<\EOF
6336 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6337 echo "configure:6338: checking for uid_t in sys/types.h" >&5
6338 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #include <sys/types.h>
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 egrep "uid_t" >/dev/null 2>&1; then
6349 ac_cv_type_uid_t=yes
6358 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6359 if test $ac_cv_type_uid_t = no; then
6360 cat >> confdefs.h <<\EOF
6364 cat >> confdefs.h <<\EOF
6370 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6371 echo "configure:6372: checking for size_t" >&5
6372 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 #include <sys/types.h>
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6387 ac_cv_type_size_t=yes
6390 ac_cv_type_size_t=no
6395 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6396 if test $ac_cv_type_size_t = no; then
6397 cat >> confdefs.h <<\EOF
6398 #define size_t unsigned
6403 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6404 echo "configure:6405: checking for pid_t" >&5
6405 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6411 #include <sys/types.h>
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6420 ac_cv_type_pid_t=yes
6428 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6429 if test $ac_cv_type_pid_t = no; then
6430 cat >> confdefs.h <<\EOF
6436 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6437 echo "configure:6438: checking for off_t" >&5
6438 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 #include <sys/types.h>
6450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6451 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6453 ac_cv_type_off_t=yes
6461 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6462 if test $ac_cv_type_off_t = no; then
6463 cat >> confdefs.h <<\EOF
6469 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
6470 echo "configure:6471: checking for ino_t" >&5
6471 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6474 cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 #include <sys/types.h>
6483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6486 ac_cv_type_ino_t=yes
6494 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
6495 if test $ac_cv_type_ino_t = no; then
6496 cat >> confdefs.h <<\EOF
6497 #define ino_t unsigned long
6502 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
6503 echo "configure:6504: checking for dev_t" >&5
6504 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 #include <sys/types.h>
6516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6517 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6519 ac_cv_type_dev_t=yes
6527 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
6528 if test $ac_cv_type_dev_t = no; then
6529 cat >> confdefs.h <<\EOF
6530 #define dev_t unsigned long
6535 echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
6536 echo "configure:6537: checking for daddr_t" >&5
6537 if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6
6540 cat > conftest.$ac_ext <<EOF
6541 #line 6542 "configure"
6542 #include "confdefs.h"
6543 #include <sys/types.h>
6549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6550 egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6552 ac_cv_type_daddr_t=yes
6555 ac_cv_type_daddr_t=no
6560 echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
6561 if test $ac_cv_type_daddr_t = no; then
6562 cat >> confdefs.h <<\EOF
6563 #define daddr_t long
6568 echo $ac_n "checking for major_t""... $ac_c" 1>&6
6569 echo "configure:6570: checking for major_t" >&5
6570 if eval "test \"`echo '$''{'ac_cv_type_major_t'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6576 #include <sys/types.h>
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 egrep "(^|[^a-zA-Z_0-9])major_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6585 ac_cv_type_major_t=yes
6588 ac_cv_type_major_t=no
6593 echo "$ac_t""$ac_cv_type_major_t" 1>&6
6594 if test $ac_cv_type_major_t = no; then
6595 cat >> confdefs.h <<\EOF
6601 echo $ac_n "checking for minor_t""... $ac_c" 1>&6
6602 echo "configure:6603: checking for minor_t" >&5
6603 if eval "test \"`echo '$''{'ac_cv_type_minor_t'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 #include <sys/types.h>
6615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 egrep "(^|[^a-zA-Z_0-9])minor_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6618 ac_cv_type_minor_t=yes
6621 ac_cv_type_minor_t=no
6626 echo "$ac_t""$ac_cv_type_minor_t" 1>&6
6627 if test $ac_cv_type_minor_t = no; then
6628 cat >> confdefs.h <<\EOF
6634 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6635 echo "configure:6636: checking for ssize_t" >&5
6636 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 #include <sys/types.h>
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6651 ac_cv_type_ssize_t=yes
6654 ac_cv_type_ssize_t=no
6659 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6660 if test $ac_cv_type_ssize_t = no; then
6661 cat >> confdefs.h <<\EOF
6667 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
6668 echo "configure:6669: checking for st_blocks in struct stat" >&5
6669 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 #include <sys/types.h>
6676 #include <sys/stat.h>
6678 struct stat s; s.st_blocks;
6681 if { (eval echo configure:6682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6683 ac_cv_struct_st_blocks=yes
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 ac_cv_struct_st_blocks=no
6693 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
6694 if test $ac_cv_struct_st_blocks = yes; then
6695 cat >> confdefs.h <<\EOF
6696 #define HAVE_ST_BLOCKS 1
6700 LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
6703 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
6704 echo "configure:6705: checking for st_rdev in struct stat" >&5
6705 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/types.h>
6712 #include <sys/stat.h>
6714 struct stat s; s.st_rdev;
6717 if { (eval echo configure:6718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6719 ac_cv_struct_st_rdev=yes
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 ac_cv_struct_st_rdev=no
6729 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
6730 if test $ac_cv_struct_st_rdev = yes; then
6731 cat >> confdefs.h <<\EOF
6732 #define HAVE_ST_RDEV 1
6737 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6738 echo "configure:6739: checking whether struct tm is in sys/time.h or time.h" >&5
6739 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6742 cat > conftest.$ac_ext <<EOF
6743 #line 6744 "configure"
6744 #include "confdefs.h"
6745 #include <sys/types.h>
6748 struct tm *tp; tp->tm_sec;
6751 if { (eval echo configure:6752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6753 ac_cv_struct_tm=time.h
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6758 ac_cv_struct_tm=sys/time.h
6763 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6764 if test $ac_cv_struct_tm = sys/time.h; then
6765 cat >> confdefs.h <<\EOF
6766 #define TM_IN_SYS_TIME 1
6771 echo $ac_n "checking for working const""... $ac_c" 1>&6
6772 echo "configure:6773: checking for working const" >&5
6773 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6776 cat > conftest.$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6782 /* Ultrix mips cc rejects this. */
6783 typedef int charset[2]; const charset x;
6784 /* SunOS 4.1.1 cc rejects this. */
6785 char const *const *ccp;
6787 /* NEC SVR4.0.2 mips cc rejects this. */
6788 struct point {int x, y;};
6789 static struct point const zero = {0,0};
6790 /* AIX XL C 1.02.0.0 rejects this.
6791 It does not let you subtract one const X* pointer from another in an arm
6792 of an if-expression whose if-part is not a constant expression */
6793 const char *g = "string";
6794 ccp = &g + (g ? g-g : 0);
6795 /* HPUX 7.0 cc rejects these. */
6798 ccp = (char const *const *) p;
6799 { /* SCO 3.2v4 cc rejects this. */
6801 char const *s = 0 ? (char *) 0 : (char const *) 0;
6805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6807 const int *foo = &x[0];
6810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6811 typedef const int *iptr;
6815 { /* AIX XL C 1.02.0.0 rejects this saying
6816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6817 struct s { int j; const int *ap[3]; };
6818 struct s *b; b->j = 5;
6820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6826 if { (eval echo configure:6827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6830 echo "configure: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6838 echo "$ac_t""$ac_cv_c_const" 1>&6
6839 if test $ac_cv_c_const = no; then
6840 cat >> confdefs.h <<\EOF
6848 echo $ac_n "checking size of char""... $ac_c" 1>&6
6849 echo "configure:6850: checking size of char" >&5
6850 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6853 if test "$cross_compiling" = yes; then
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6862 FILE *f=fopen("conftestval", "w");
6864 fprintf(f, "%d\n", sizeof(char));
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6870 ac_cv_sizeof_char=`cat conftestval`
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6881 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
6882 cat >> confdefs.h <<EOF
6883 #define SIZEOF_CHAR $ac_cv_sizeof_char
6887 echo $ac_n "checking size of short int""... $ac_c" 1>&6
6888 echo "configure:6889: checking size of short int" >&5
6889 if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 if test "$cross_compiling" = yes; then
6893 ac_cv_sizeof_short_int=2
6895 cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6901 FILE *f=fopen("conftestval", "w");
6903 fprintf(f, "%d\n", sizeof(short int));
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6909 ac_cv_sizeof_short_int=`cat conftestval`
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6914 ac_cv_sizeof_short_int=0
6920 echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
6921 cat >> confdefs.h <<EOF
6922 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
6926 echo $ac_n "checking size of int""... $ac_c" 1>&6
6927 echo "configure:6928: checking size of int" >&5
6928 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6931 if test "$cross_compiling" = yes; then
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6940 FILE *f=fopen("conftestval", "w");
6942 fprintf(f, "%d\n", sizeof(int));
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6948 ac_cv_sizeof_int=`cat conftestval`
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6959 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6960 cat >> confdefs.h <<EOF
6961 #define SIZEOF_INT $ac_cv_sizeof_int
6965 echo $ac_n "checking size of long int""... $ac_c" 1>&6
6966 echo "configure:6967: checking size of long int" >&5
6967 if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6970 if test "$cross_compiling" = yes; then
6971 ac_cv_sizeof_long_int=4
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6979 FILE *f=fopen("conftestval", "w");
6981 fprintf(f, "%d\n", sizeof(long int));
6985 if { (eval echo configure:6986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6987 ac_cv_sizeof_long_int=`cat conftestval`
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 ac_cv_sizeof_long_int=0
6998 echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
6999 cat >> confdefs.h <<EOF
7000 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
7004 echo $ac_n "checking size of long long int""... $ac_c" 1>&6
7005 echo "configure:7006: checking size of long long int" >&5
7006 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7009 if test "$cross_compiling" = yes; then
7010 ac_cv_sizeof_long_long_int=8
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7018 FILE *f=fopen("conftestval", "w");
7020 fprintf(f, "%d\n", sizeof(long long int));
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7026 ac_cv_sizeof_long_long_int=`cat conftestval`
7028 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7031 ac_cv_sizeof_long_long_int=0
7037 echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
7038 cat >> confdefs.h <<EOF
7039 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
7043 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7044 echo "configure:7045: checking size of int *" >&5
7045 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7048 if test "$cross_compiling" = yes; then
7049 ac_cv_sizeof_int_p=4
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7057 FILE *f=fopen("conftestval", "w");
7059 fprintf(f, "%d\n", sizeof(int *));
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7065 ac_cv_sizeof_int_p=`cat conftestval`
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7070 ac_cv_sizeof_int_p=0
7076 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7077 cat >> confdefs.h <<EOF
7078 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7083 # Check for sys/types.h types
7084 echo $ac_n "checking for u_int type""... $ac_c" 1>&6
7085 echo "configure:7086: checking for u_int type" >&5
7086 if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7093 #include <sys/types.h>
7098 if { (eval echo configure:7099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7100 ac_cv_have_u_int="yes"
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7105 ac_cv_have_u_int="no"
7112 echo "$ac_t""$ac_cv_have_u_int" 1>&6
7113 if test "x$ac_cv_have_u_int" = "xyes" ; then
7114 cat >> confdefs.h <<\EOF
7115 #define HAVE_U_INT 1
7121 echo $ac_n "checking for intmax_t type""... $ac_c" 1>&6
7122 echo "configure:7123: checking for intmax_t type" >&5
7123 if eval "test \"`echo '$''{'ac_cv_have_intmax_t'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 #include <sys/types.h>
7135 if { (eval echo configure:7136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7137 ac_cv_have_intmax_t="yes"
7139 echo "configure: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7151 if { (eval echo configure:7152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7153 ac_cv_have_intmax_t="yes"
7155 echo "configure: failed program was:" >&5
7156 cat conftest.$ac_ext >&5
7158 ac_cv_have_intmax_t="no"
7170 echo "$ac_t""$ac_cv_have_intmax_t" 1>&6
7171 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
7172 cat >> confdefs.h <<\EOF
7173 #define HAVE_INTMAX_T 1
7180 echo $ac_n "checking for u_intmax_t type""... $ac_c" 1>&6
7181 echo "configure:7182: checking for u_intmax_t type" >&5
7182 if eval "test \"`echo '$''{'ac_cv_have_u_intmax_t'+set}'`\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 #include <sys/types.h>
7191 u_intmax_t a; a = 1;
7194 if { (eval echo configure:7195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7196 ac_cv_have_u_intmax_t="yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7207 u_intmax_t a; a = 1;
7210 if { (eval echo configure:7211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7212 ac_cv_have_u_intmax_t="yes"
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7217 ac_cv_have_u_intmax_t="no"
7228 echo "$ac_t""$ac_cv_have_u_intmax_t" 1>&6
7229 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
7230 cat >> confdefs.h <<\EOF
7231 #define HAVE_U_INTMAX_T 1
7238 echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
7239 echo "configure:7240: checking for intXX_t types" >&5
7240 if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7244 cat > conftest.$ac_ext <<EOF
7245 #line 7246 "configure"
7246 #include "confdefs.h"
7247 #include <sys/types.h>
7249 int8_t a; int16_t b; int32_t c; a = b = c = 1;
7252 if { (eval echo configure:7253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7254 ac_cv_have_intxx_t="yes"
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7259 ac_cv_have_intxx_t="no"
7266 echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
7267 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
7268 cat >> confdefs.h <<\EOF
7269 #define HAVE_INTXX_T 1
7275 echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
7276 echo "configure:7277: checking for int64_t type" >&5
7277 if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
7278 echo $ac_n "(cached) $ac_c" 1>&6
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 #include <sys/types.h>
7289 if { (eval echo configure:7290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7291 ac_cv_have_int64_t="yes"
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7296 ac_cv_have_int64_t="no"
7303 echo "$ac_t""$ac_cv_have_int64_t" 1>&6
7304 if test "x$ac_cv_have_int64_t" = "xyes" ; then
7305 cat >> confdefs.h <<\EOF
7306 #define HAVE_INT64_T 1
7312 echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
7313 echo "configure:7314: checking for u_intXX_t types" >&5
7314 if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
7315 echo $ac_n "(cached) $ac_c" 1>&6
7318 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7321 #include <sys/types.h>
7323 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
7326 if { (eval echo configure:7327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7328 ac_cv_have_u_intxx_t="yes"
7330 echo "configure: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7333 ac_cv_have_u_intxx_t="no"
7340 echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
7341 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
7342 cat >> confdefs.h <<\EOF
7343 #define HAVE_U_INTXX_T 1
7349 echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
7350 echo "configure:7351: checking for u_int64_t types" >&5
7351 if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7358 #include <sys/types.h>
7363 if { (eval echo configure:7364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7365 ac_cv_have_u_int64_t="yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 ac_cv_have_u_int64_t="no"
7377 echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
7378 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
7379 cat >> confdefs.h <<\EOF
7380 #define HAVE_U_INT64_T 1
7386 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
7387 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
7389 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
7390 echo "configure:7391: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
7391 cat > conftest.$ac_ext <<EOF
7392 #line 7393 "configure"
7393 #include "confdefs.h"
7394 #include <sys/bitypes.h>
7396 int8_t a; int16_t b; int32_t c;
7397 u_int8_t e; u_int16_t f; u_int32_t g;
7398 a = b = c = e = f = g = 1;
7401 if { (eval echo configure:7402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7403 cat >> confdefs.h <<\EOF
7404 #define HAVE_U_INTXX_T 1
7407 cat >> confdefs.h <<\EOF
7408 #define HAVE_INTXX_T 1
7411 cat >> confdefs.h <<\EOF
7412 #define HAVE_SYS_BITYPES_H 1
7415 echo "$ac_t""yes" 1>&6
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7420 echo "$ac_t""no" 1>&6
7426 if test -z "$have_u_intxx_t" ; then
7427 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
7428 echo "configure:7429: checking for uintXX_t types" >&5
7429 if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 #include <sys/types.h>
7438 uint8_t a; uint16_t b;
7439 uint32_t c; a = b = c = 1;
7442 if { (eval echo configure:7443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7444 ac_cv_have_uintxx_t="yes"
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 ac_cv_have_uintxx_t="no"
7456 echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
7457 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
7458 cat >> confdefs.h <<\EOF
7459 #define HAVE_UINTXX_T 1
7482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7483 echo "configure:7484: checking for $ac_func" >&5
7484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 /* System header to define __stub macros and hopefully few prototypes,
7491 which can conflict with char $ac_func(); below. */
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7500 /* The GNU C library defines this for functions which it implements
7501 to always fail with ENOSYS. Some functions are actually named
7502 something starting with __ and the normal name is an alias. */
7503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7513 eval "ac_cv_func_$ac_func=yes"
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7518 eval "ac_cv_func_$ac_func=no"
7523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7524 echo "$ac_t""yes" 1>&6
7525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7526 cat >> confdefs.h <<EOF
7527 #define $ac_tr_func 1
7531 echo "$ac_t""no" 1>&6
7532 echo 'configure: cannot find needed function.'; exit 1
7538 for ac_func in fchdir
7540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_func" >&5
7542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 /* System header to define __stub macros and hopefully few prototypes,
7549 which can conflict with char $ac_func(); below. */
7551 /* Override any gcc2 internal prototype to avoid an error. */
7552 /* We use char because int might match the return type of a gcc2
7553 builtin and then its argument prototype would still apply. */
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7569 if { (eval echo configure:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7571 eval "ac_cv_func_$ac_func=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7576 eval "ac_cv_func_$ac_func=no"
7581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7582 echo "$ac_t""yes" 1>&6
7583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7584 cat >> confdefs.h <<EOF
7585 #define $ac_tr_func 1
7587 cat >> confdefs.h <<\EOF
7588 #define HAVE_FCHDIR 1
7592 echo "$ac_t""no" 1>&6
7597 for ac_func in snprintf vsnprintf gethostid getdomainname
7599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7600 echo "configure:7601: checking for $ac_func" >&5
7601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7607 /* System header to define __stub macros and hopefully few prototypes,
7608 which can conflict with char $ac_func(); below. */
7610 /* Override any gcc2 internal prototype to avoid an error. */
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7617 /* The GNU C library defines this for functions which it implements
7618 to always fail with ENOSYS. Some functions are actually named
7619 something starting with __ and the normal name is an alias. */
7620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7630 eval "ac_cv_func_$ac_func=yes"
7632 echo "configure: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7635 eval "ac_cv_func_$ac_func=no"
7640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7641 echo "$ac_t""yes" 1>&6
7642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7643 cat >> confdefs.h <<EOF
7644 #define $ac_tr_func 1
7648 echo "$ac_t""no" 1>&6
7653 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
7655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_func" >&5
7657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char $ac_func(); below. */
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7673 /* The GNU C library defines this for functions which it implements
7674 to always fail with ENOSYS. Some functions are actually named
7675 something starting with __ and the normal name is an alias. */
7676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7684 if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7686 eval "ac_cv_func_$ac_func=yes"
7688 echo "configure: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7691 eval "ac_cv_func_$ac_func=no"
7696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7697 echo "$ac_t""yes" 1>&6
7698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7699 cat >> confdefs.h <<EOF
7700 #define $ac_tr_func 1
7704 echo "$ac_t""no" 1>&6
7709 # If resolver functions are not in libc check for -lnsl or -lresolv.
7710 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
7711 echo "configure:7712: checking for gethostbyname_r" >&5
7712 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7715 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char gethostbyname_r(); below. */
7721 /* Override any gcc2 internal prototype to avoid an error. */
7722 /* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7724 char gethostbyname_r();
7728 /* The GNU C library defines this for functions which it implements
7729 to always fail with ENOSYS. Some functions are actually named
7730 something starting with __ and the normal name is an alias. */
7731 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7741 eval "ac_cv_func_gethostbyname_r=yes"
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 eval "ac_cv_func_gethostbyname_r=no"
7751 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
7752 echo "$ac_t""yes" 1>&6
7753 echo "$ac_t""using libc's resolver" 1>&6
7755 echo "$ac_t""no" 1>&6
7756 echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
7757 echo "configure:7758: checking for gethostbyname_r in -lnsl" >&5
7758 ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7762 ac_save_LIBS="$LIBS"
7764 cat > conftest.$ac_ext <<EOF
7765 #line 7766 "configure"
7766 #include "confdefs.h"
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7770 char gethostbyname_r();
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7778 eval "ac_cv_lib_$ac_lib_var=yes"
7780 echo "configure: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7783 eval "ac_cv_lib_$ac_lib_var=no"
7786 LIBS="$ac_save_LIBS"
7789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7790 echo "$ac_t""yes" 1>&6
7791 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
7792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7793 cat >> confdefs.h <<EOF
7794 #define $ac_tr_lib 1
7800 echo "$ac_t""no" 1>&6
7803 echo $ac_n "checking for gethostbyname_r in -lresolv""... $ac_c" 1>&6
7804 echo "configure:7805: checking for gethostbyname_r in -lresolv" >&5
7805 ac_lib_var=`echo resolv'_'gethostbyname_r | sed 'y%./+-%__p_%'`
7806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 ac_save_LIBS="$LIBS"
7810 LIBS="-lresolv $LIBS"
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7814 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char gethostbyname_r();
7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7825 eval "ac_cv_lib_$ac_lib_var=yes"
7827 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7830 eval "ac_cv_lib_$ac_lib_var=no"
7833 LIBS="$ac_save_LIBS"
7836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7837 echo "$ac_t""yes" 1>&6
7838 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
7839 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7840 cat >> confdefs.h <<EOF
7841 #define $ac_tr_lib 1
7844 LIBS="-lresolv $LIBS"
7847 echo "$ac_t""no" 1>&6
7854 # Find where sockets are (especially for Solaris)
7855 echo $ac_n "checking for socket""... $ac_c" 1>&6
7856 echo "configure:7857: checking for socket" >&5
7857 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 /* System header to define __stub macros and hopefully few prototypes,
7864 which can conflict with char socket(); below. */
7866 /* Override any gcc2 internal prototype to avoid an error. */
7867 /* We use char because int might match the return type of a gcc2
7868 builtin and then its argument prototype would still apply. */
7873 /* The GNU C library defines this for functions which it implements
7874 to always fail with ENOSYS. Some functions are actually named
7875 something starting with __ and the normal name is an alias. */
7876 #if defined (__stub_socket) || defined (__stub___socket)
7884 if { (eval echo configure:7885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7886 eval "ac_cv_func_socket=yes"
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 eval "ac_cv_func_socket=no"
7896 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7897 echo "$ac_t""yes" 1>&6
7898 echo "$ac_t""using libc's socket" 1>&6
7900 echo "$ac_t""no" 1>&6
7901 echo $ac_n "checking for socket in -lxnet""... $ac_c" 1>&6
7902 echo "configure:7903: checking for socket in -lxnet" >&5
7903 ac_lib_var=`echo xnet'_'socket | sed 'y%./+-%__p_%'`
7904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7905 echo $ac_n "(cached) $ac_c" 1>&6
7907 ac_save_LIBS="$LIBS"
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7923 eval "ac_cv_lib_$ac_lib_var=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 eval "ac_cv_lib_$ac_lib_var=no"
7931 LIBS="$ac_save_LIBS"
7934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7935 echo "$ac_t""yes" 1>&6
7936 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \
7937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7938 cat >> confdefs.h <<EOF
7939 #define $ac_tr_lib 1
7945 echo "$ac_t""no" 1>&6
7948 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7949 echo "configure:7950: checking for socket in -lsocket" >&5
7950 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7954 ac_save_LIBS="$LIBS"
7955 LIBS="-lsocket $LIBS"
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* Override any gcc2 internal prototype to avoid an error. */
7960 /* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7968 if { (eval echo configure:7969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7970 eval "ac_cv_lib_$ac_lib_var=yes"
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7975 eval "ac_cv_lib_$ac_lib_var=no"
7978 LIBS="$ac_save_LIBS"
7981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7982 echo "$ac_t""yes" 1>&6
7983 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
7984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7985 cat >> confdefs.h <<EOF
7986 #define $ac_tr_lib 1
7989 LIBS="-lsocket $LIBS"
7992 echo "$ac_t""no" 1>&6
7995 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
7996 echo "configure:7997: checking for socket in -linet" >&5
7997 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7999 echo $ac_n "(cached) $ac_c" 1>&6
8001 ac_save_LIBS="$LIBS"
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8006 /* Override any gcc2 internal prototype to avoid an error. */
8007 /* We use char because int might match the return type of a gcc2
8008 builtin and then its argument prototype would still apply. */
8015 if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017 eval "ac_cv_lib_$ac_lib_var=yes"
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8022 eval "ac_cv_lib_$ac_lib_var=no"
8025 LIBS="$ac_save_LIBS"
8028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8029 echo "$ac_t""yes" 1>&6
8030 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
8031 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8032 cat >> confdefs.h <<EOF
8033 #define $ac_tr_lib 1
8039 echo "$ac_t""no" 1>&6
8045 for ac_func in inet_pton
8047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8048 echo "configure:8049: checking for $ac_func" >&5
8049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055 /* System header to define __stub macros and hopefully few prototypes,
8056 which can conflict with char $ac_func(); below. */
8058 /* Override any gcc2 internal prototype to avoid an error. */
8059 /* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */
8065 /* The GNU C library defines this for functions which it implements
8066 to always fail with ENOSYS. Some functions are actually named
8067 something starting with __ and the normal name is an alias. */
8068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8078 eval "ac_cv_func_$ac_func=yes"
8080 echo "configure: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8083 eval "ac_cv_func_$ac_func=no"
8088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8089 echo "$ac_t""yes" 1>&6
8090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8091 cat >> confdefs.h <<EOF
8092 #define $ac_tr_func 1
8094 cat >> confdefs.h <<\EOF
8095 #define HAVE_INET_PTON 1
8099 echo "$ac_t""no" 1>&6
8104 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8105 echo "configure:8106: checking for strftime" >&5
8106 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 /* System header to define __stub macros and hopefully few prototypes,
8113 which can conflict with char strftime(); below. */
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8122 /* The GNU C library defines this for functions which it implements
8123 to always fail with ENOSYS. Some functions are actually named
8124 something starting with __ and the normal name is an alias. */
8125 #if defined (__stub_strftime) || defined (__stub___strftime)
8133 if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8135 eval "ac_cv_func_strftime=yes"
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8140 eval "ac_cv_func_strftime=no"
8145 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8146 echo "$ac_t""yes" 1>&6
8147 cat >> confdefs.h <<\EOF
8148 #define HAVE_STRFTIME 1
8152 echo "$ac_t""no" 1>&6
8153 # strftime is in -lintl on SCO UNIX.
8154 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8155 echo "configure:8156: checking for strftime in -lintl" >&5
8156 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8160 ac_save_LIBS="$LIBS"
8162 cat > conftest.$ac_ext <<EOF
8163 #line 8164 "configure"
8164 #include "confdefs.h"
8165 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8174 if { (eval echo configure:8175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8176 eval "ac_cv_lib_$ac_lib_var=yes"
8178 echo "configure: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8181 eval "ac_cv_lib_$ac_lib_var=no"
8184 LIBS="$ac_save_LIBS"
8187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8188 echo "$ac_t""yes" 1>&6
8189 cat >> confdefs.h <<\EOF
8190 #define HAVE_STRFTIME 1
8195 echo "$ac_t""no" 1>&6
8200 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8201 echo "configure:8202: checking for vprintf" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char vprintf(); below. */
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8218 /* The GNU C library defines this for functions which it implements
8219 to always fail with ENOSYS. Some functions are actually named
8220 something starting with __ and the normal name is an alias. */
8221 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8231 eval "ac_cv_func_vprintf=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 eval "ac_cv_func_vprintf=no"
8241 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 cat >> confdefs.h <<\EOF
8244 #define HAVE_VPRINTF 1
8248 echo "$ac_t""no" 1>&6
8251 if test "$ac_cv_func_vprintf" != yes; then
8252 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8253 echo "configure:8254: checking for _doprnt" >&5
8254 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8255 echo $ac_n "(cached) $ac_c" 1>&6
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260 /* System header to define __stub macros and hopefully few prototypes,
8261 which can conflict with char _doprnt(); below. */
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 /* We use char because int might match the return type of a gcc2
8265 builtin and then its argument prototype would still apply. */
8270 /* The GNU C library defines this for functions which it implements
8271 to always fail with ENOSYS. Some functions are actually named
8272 something starting with __ and the normal name is an alias. */
8273 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8283 eval "ac_cv_func__doprnt=yes"
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8288 eval "ac_cv_func__doprnt=no"
8293 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 cat >> confdefs.h <<\EOF
8296 #define HAVE_DOPRNT 1
8300 echo "$ac_t""no" 1>&6
8305 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8306 # for constant arguments. Useless!
8307 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8308 echo "configure:8309: checking for working alloca.h" >&5
8309 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8317 char *p = alloca(2 * sizeof(int));
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8322 ac_cv_header_alloca_h=yes
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 ac_cv_header_alloca_h=no
8332 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8333 if test $ac_cv_header_alloca_h = yes; then
8334 cat >> confdefs.h <<\EOF
8335 #define HAVE_ALLOCA_H 1
8340 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8341 echo "configure:8342: checking for alloca" >&5
8342 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8345 cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8350 # define alloca __builtin_alloca
8353 # include <malloc.h>
8354 # define alloca _alloca
8357 # include <alloca.h>
8362 # ifndef alloca /* predefined by HP cc +Olibcalls */
8371 char *p = (char *) alloca(1);
8374 if { (eval echo configure:8375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8376 ac_cv_func_alloca_works=yes
8378 echo "configure: failed program was:" >&5
8379 cat conftest.$ac_ext >&5
8381 ac_cv_func_alloca_works=no
8386 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8387 if test $ac_cv_func_alloca_works = yes; then
8388 cat >> confdefs.h <<\EOF
8389 #define HAVE_ALLOCA 1
8394 if test $ac_cv_func_alloca_works = no; then
8395 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8396 # that cause trouble. Some versions do not even contain alloca or
8397 # contain a buggy version. If you still want to use their alloca,
8398 # use ar to extract alloca.o from them instead of compiling alloca.c.
8399 ALLOCA=alloca.${ac_objext}
8400 cat >> confdefs.h <<\EOF
8405 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8406 echo "configure:8407: checking whether alloca needs Cray hooks" >&5
8407 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8413 #if defined(CRAY) && ! defined(CRAY2)
8420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8421 egrep "webecray" >/dev/null 2>&1; then
8432 echo "$ac_t""$ac_cv_os_cray" 1>&6
8433 if test $ac_cv_os_cray = yes; then
8434 for ac_func in _getb67 GETB67 getb67; do
8435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8436 echo "configure:8437: checking for $ac_func" >&5
8437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 /* System header to define __stub macros and hopefully few prototypes,
8444 which can conflict with char $ac_func(); below. */
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8453 /* The GNU C library defines this for functions which it implements
8454 to always fail with ENOSYS. Some functions are actually named
8455 something starting with __ and the normal name is an alias. */
8456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8466 eval "ac_cv_func_$ac_func=yes"
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8471 eval "ac_cv_func_$ac_func=no"
8476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8477 echo "$ac_t""yes" 1>&6
8478 cat >> confdefs.h <<EOF
8479 #define CRAY_STACKSEG_END $ac_func
8484 echo "$ac_t""no" 1>&6
8490 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8491 echo "configure:8492: checking stack direction for C alloca" >&5
8492 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 if test "$cross_compiling" = yes; then
8496 ac_cv_c_stack_direction=0
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 find_stack_direction ()
8503 static char *addr = 0;
8508 return find_stack_direction ();
8511 return (&dummy > addr) ? 1 : -1;
8515 exit (find_stack_direction() < 0);
8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8520 ac_cv_c_stack_direction=1
8522 echo "configure: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8525 ac_cv_c_stack_direction=-1
8532 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8533 cat >> confdefs.h <<EOF
8534 #define STACK_DIRECTION $ac_cv_c_stack_direction
8539 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
8540 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
8541 echo "configure:8542: checking for getmntent in -lsun" >&5
8542 ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
8543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8544 echo $ac_n "(cached) $ac_c" 1>&6
8546 ac_save_LIBS="$LIBS"
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 /* Override any gcc2 internal prototype to avoid an error. */
8552 /* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */
8560 if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8562 eval "ac_cv_lib_$ac_lib_var=yes"
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8567 eval "ac_cv_lib_$ac_lib_var=no"
8570 LIBS="$ac_save_LIBS"
8573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8574 echo "$ac_t""yes" 1>&6
8577 echo "$ac_t""no" 1>&6
8578 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
8579 echo "configure:8580: checking for getmntent in -lseq" >&5
8580 ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
8581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8584 ac_save_LIBS="$LIBS"
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 /* Override any gcc2 internal prototype to avoid an error. */
8590 /* We use char because int might match the return type of a gcc2
8591 builtin and then its argument prototype would still apply. */
8598 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8600 eval "ac_cv_lib_$ac_lib_var=yes"
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8605 eval "ac_cv_lib_$ac_lib_var=no"
8608 LIBS="$ac_save_LIBS"
8611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8612 echo "$ac_t""yes" 1>&6
8615 echo "$ac_t""no" 1>&6
8616 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
8617 echo "configure:8618: checking for getmntent in -lgen" >&5
8618 ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
8619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8622 ac_save_LIBS="$LIBS"
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 /* Override any gcc2 internal prototype to avoid an error. */
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8636 if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8638 eval "ac_cv_lib_$ac_lib_var=yes"
8640 echo "configure: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8643 eval "ac_cv_lib_$ac_lib_var=no"
8646 LIBS="$ac_save_LIBS"
8649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8653 echo "$ac_t""no" 1>&6
8660 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
8661 echo "configure:8662: checking for getmntent" >&5
8662 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 /* System header to define __stub macros and hopefully few prototypes,
8669 which can conflict with char getmntent(); below. */
8671 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8678 /* The GNU C library defines this for functions which it implements
8679 to always fail with ENOSYS. Some functions are actually named
8680 something starting with __ and the normal name is an alias. */
8681 #if defined (__stub_getmntent) || defined (__stub___getmntent)
8689 if { (eval echo configure:8690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8691 eval "ac_cv_func_getmntent=yes"
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8696 eval "ac_cv_func_getmntent=no"
8701 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
8702 echo "$ac_t""yes" 1>&6
8703 cat >> confdefs.h <<\EOF
8704 #define HAVE_GETMNTENT 1
8708 echo "$ac_t""no" 1>&6
8711 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
8712 echo "configure:8713: checking whether closedir returns void" >&5
8713 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
8714 echo $ac_n "(cached) $ac_c" 1>&6
8716 if test "$cross_compiling" = yes; then
8717 ac_cv_func_closedir_void=yes
8719 cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722 #include <sys/types.h>
8723 #include <$ac_header_dirent>
8724 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8728 ac_cv_func_closedir_void=no
8730 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8733 ac_cv_func_closedir_void=yes
8740 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
8741 if test $ac_cv_func_closedir_void = yes; then
8742 cat >> confdefs.h <<\EOF
8743 #define CLOSEDIR_VOID 1
8748 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
8749 echo "configure:8750: checking whether setpgrp takes no argument" >&5
8750 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
8751 echo $ac_n "(cached) $ac_c" 1>&6
8753 if test "$cross_compiling" = yes; then
8754 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
8756 cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8760 #ifdef HAVE_UNISTD_H
8765 * If this system has a BSD-style setpgrp, which takes arguments, exit
8770 if (setpgrp(1,1) == -1)
8777 if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8779 ac_cv_func_setpgrp_void=no
8781 echo "configure: failed program was:" >&5
8782 cat conftest.$ac_ext >&5
8784 ac_cv_func_setpgrp_void=yes
8792 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
8793 if test $ac_cv_func_setpgrp_void = yes; then
8794 cat >> confdefs.h <<\EOF
8795 #define SETPGRP_VOID 1
8799 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8800 echo "configure:8801: checking for working fnmatch" >&5
8801 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8804 # Some versions of Solaris or SCO have a broken fnmatch function.
8805 # So we run a test program. If we are cross-compiling, take no chance.
8806 # Thanks to John Oleynick and Franc,ois Pinard for this test.
8807 if test "$cross_compiling" = yes; then
8808 ac_cv_func_fnmatch_works=no
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
8815 if { (eval echo configure:8816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8817 ac_cv_func_fnmatch_works=yes
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8822 ac_cv_func_fnmatch_works=no
8829 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
8830 if test $ac_cv_func_fnmatch_works = yes; then
8831 cat >> confdefs.h <<\EOF
8832 #define HAVE_FNMATCH 1
8839 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
8840 echo "configure:8841: checking for setlocale in -lxpg4" >&5
8841 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
8842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8843 echo $ac_n "(cached) $ac_c" 1>&6
8845 ac_save_LIBS="$LIBS"
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8861 eval "ac_cv_lib_$ac_lib_var=yes"
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8866 eval "ac_cv_lib_$ac_lib_var=no"
8869 LIBS="$ac_save_LIBS"
8872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8873 echo "$ac_t""yes" 1>&6
8876 echo "$ac_t""no" 1>&6
8881 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
8882 echo "configure:8883: checking for getpwnam in -lsun" >&5
8883 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
8884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8887 ac_save_LIBS="$LIBS"
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8903 eval "ac_cv_lib_$ac_lib_var=yes"
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8908 eval "ac_cv_lib_$ac_lib_var=no"
8911 LIBS="$ac_save_LIBS"
8914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8915 echo "$ac_t""yes" 1>&6
8916 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8918 cat >> confdefs.h <<EOF
8919 #define $ac_tr_lib 1
8925 echo "$ac_t""no" 1>&6
8929 for ac_hdr in zlib.h
8931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8933 echo "configure:8934: checking for $ac_hdr" >&5
8934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8935 echo $ac_n "(cached) $ac_c" 1>&6
8937 cat > conftest.$ac_ext <<EOF
8938 #line 8939 "configure"
8939 #include "confdefs.h"
8942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8943 { (eval echo configure:8944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8945 if test -z "$ac_err"; then
8947 eval "ac_cv_header_$ac_safe=yes"
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 eval "ac_cv_header_$ac_safe=no"
8957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8958 echo "$ac_t""yes" 1>&6
8959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8960 cat >> confdefs.h <<EOF
8961 #define $ac_tr_hdr 1
8965 echo "$ac_t""no" 1>&6
8969 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8970 echo "configure:8971: checking for deflate in -lz" >&5
8971 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
8972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8975 ac_save_LIBS="$LIBS"
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980 /* Override any gcc2 internal prototype to avoid an error. */
8981 /* We use char because int might match the return type of a gcc2
8982 builtin and then its argument prototype would still apply. */
8989 if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991 eval "ac_cv_lib_$ac_lib_var=yes"
8993 echo "configure: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
8996 eval "ac_cv_lib_$ac_lib_var=no"
8999 LIBS="$ac_save_LIBS"
9002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9003 echo "$ac_t""yes" 1>&6
9006 echo "$ac_t""no" 1>&6
9010 if test x$FDLIBS = x-lz; then
9011 cat >> confdefs.h <<\EOF
9019 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
9020 echo "configure:9021: checking for pthread_create in -lpthread" >&5
9021 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9023 echo $ac_n "(cached) $ac_c" 1>&6
9025 ac_save_LIBS="$LIBS"
9026 LIBS="-lpthread $LIBS"
9027 cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure"
9029 #include "confdefs.h"
9030 /* Override any gcc2 internal prototype to avoid an error. */
9031 /* We use char because int might match the return type of a gcc2
9032 builtin and then its argument prototype would still apply. */
9033 char pthread_create();
9039 if { (eval echo configure:9040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9041 eval "ac_cv_lib_$ac_lib_var=yes"
9043 echo "configure: failed program was:" >&5
9044 cat conftest.$ac_ext >&5
9046 eval "ac_cv_lib_$ac_lib_var=no"
9049 LIBS="$ac_save_LIBS"
9052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9053 echo "$ac_t""yes" 1>&6
9054 PTHREAD_LIB="-lpthread"
9056 echo "$ac_t""no" 1>&6
9057 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
9058 echo "configure:9059: checking for pthread_create in -lpthreads" >&5
9059 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
9060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9061 echo $ac_n "(cached) $ac_c" 1>&6
9063 ac_save_LIBS="$LIBS"
9064 LIBS="-lpthreads $LIBS"
9065 cat > conftest.$ac_ext <<EOF
9066 #line 9067 "configure"
9067 #include "confdefs.h"
9068 /* Override any gcc2 internal prototype to avoid an error. */
9069 /* We use char because int might match the return type of a gcc2
9070 builtin and then its argument prototype would still apply. */
9071 char pthread_create();
9077 if { (eval echo configure:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9079 eval "ac_cv_lib_$ac_lib_var=yes"
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 eval "ac_cv_lib_$ac_lib_var=no"
9087 LIBS="$ac_save_LIBS"
9090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9091 echo "$ac_t""yes" 1>&6
9092 PTHREAD_LIB="-lpthreads"
9094 echo "$ac_t""no" 1>&6
9095 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9096 echo "configure:9097: checking for pthread_create in -lc_r" >&5
9097 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9101 ac_save_LIBS="$LIBS"
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9106 /* Override any gcc2 internal prototype to avoid an error. */
9107 /* We use char because int might match the return type of a gcc2
9108 builtin and then its argument prototype would still apply. */
9109 char pthread_create();
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9117 eval "ac_cv_lib_$ac_lib_var=yes"
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9122 eval "ac_cv_lib_$ac_lib_var=no"
9125 LIBS="$ac_save_LIBS"
9128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9132 echo "$ac_t""no" 1>&6
9133 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
9134 echo "configure:9135: checking for pthread_create" >&5
9135 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
9138 cat > conftest.$ac_ext <<EOF
9139 #line 9140 "configure"
9140 #include "confdefs.h"
9141 /* System header to define __stub macros and hopefully few prototypes,
9142 which can conflict with char pthread_create(); below. */
9144 /* Override any gcc2 internal prototype to avoid an error. */
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9147 char pthread_create();
9151 /* The GNU C library defines this for functions which it implements
9152 to always fail with ENOSYS. Some functions are actually named
9153 something starting with __ and the normal name is an alias. */
9154 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
9162 if { (eval echo configure:9163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9164 eval "ac_cv_func_pthread_create=yes"
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9169 eval "ac_cv_func_pthread_create=no"
9174 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
9175 echo "$ac_t""yes" 1>&6
9178 echo "$ac_t""no" 1>&6
9192 cat >> confdefs.h <<\EOF
9199 LDFLAGS=${LDFLAGS--O}
9200 DB_LIBS="${SQL_LFLAGS}"
9202 CPPFLAGS="$CPPFLAGS"
9222 # Finally we set appropriate distribution specific
9223 # variables and defaults
9225 # PFILES are platform specific files
9226 PFILES="platforms/Makefile"
9233 PTHREAD_LIB="-lpthread -lexc"
9234 if test "${CC}" = "gcc" ; then
9241 TAPEDRIVE="/dev/nrmt0"
9244 DISTVER=`uname -a |awk '{print $3}'`
9245 TAPEDRIVE="/dev/nrst0"
9248 DISTVER=`cat /etc/.issue | grep Version | cut -f 2 -d ' '`
9249 TAPEDRIVE="/dev/nrst0"
9250 PSCMD="ps -e -o pid,command"
9251 hostname=`hostname -s`
9254 DISTVER=`uname -a |awk '{print $3}'`
9255 TAPEDRIVE="/dev/nrst0"
9257 CFLAGS="${CFLAGS} -mwindows"
9258 LDFLAGS="${LDFLAGS} -mwindows"
9261 DISTVER=`cat /etc/debian_version`
9262 TAPEDRIVE="/dev/nrst0"
9263 PSCMD="ps -e -o pid,command"
9264 hostname=`hostname -s`
9267 DISTVER=`uname -a |awk '{print $3}'`
9268 PTHREAD_LIB="-pthread"
9269 CFLAGS="${CFLAGS} -pthread"
9272 TAPEDRIVE="/dev/nrst0"
9273 PSCMD="ps -x -o pid,command"
9275 platforms/freebsd/Makefile \
9276 platforms/freebsd/bacula-fd \
9277 platforms/freebsd/bacula-sd \
9278 platforms/freebsd/bacula-dir"
9279 hostname=`hostname -s`
9280 largefile_support="yes"
9284 TAPEDRIVE="/dev/rmt/0hnb"
9288 TAPEDRIVE="/dev/rmt/0cbn"
9289 PSCMD="ps -e -o pid,comm"
9290 hostname=`/usr/bsd/hostname -s`
9292 platforms/irix/Makefile \
9293 platforms/irix/bacula-fd \
9294 platforms/irix/bacula-sd \
9295 platforms/irix/bacula-dir"
9298 DISTVER=`uname -a |awk '{print $3}'`
9301 TAPEDRIVE="/dev/nrst0"
9302 PSCMD="ps -a -o pid,command"
9303 PTHREAD_LIB="-pthread"
9304 CFLAGS="${CFLAGS} -pthread"
9307 DISTVER=`uname -a |awk '{print $3}'`
9310 TAPEDRIVE="/dev/nrst0"
9311 PSCMD="ps -a -o pid,command"
9312 PTHREAD_LIB="-pthread"
9313 CFLAGS="${CFLAGS} -pthread"
9315 platforms/openbsd/Makefile \
9316 platforms/openbsd/bacula-fd \
9317 platforms/openbsd/bacula-sd \
9318 platforms/openbsd/bacula-dir"
9321 DISTVER=`cat /etc/redhat-release | grep release |\
9323 TAPEDRIVE="/dev/nst0"
9324 PSCMD="ps -e -o pid,command"
9326 platforms/redhat/Makefile \
9327 platforms/redhat/bacula-fd \
9328 platforms/redhat/bacula-sd \
9329 platforms/redhat/bacula-dir"
9330 hostname=`hostname -s`
9333 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
9334 TAPEDRIVE="/dev/nst0"
9335 PSCMD="ps -e -o pid,command"
9337 platforms/gentoo/Makefile \
9338 platforms/gentoo/bacula-fd \
9339 platforms/gentoo/bacula-sd \
9340 platforms/gentoo/bacula-dir"
9341 hostname=`hostname -s`
9345 DISTVER=`cat /etc/slackware-version`
9346 TAPEDRIVE="/dev/nst0"
9347 PSCMD="ps -e -o pid,command"
9348 hostname=`hostname -s`
9352 TAPEDRIVE="/dev/rmt/0cbn"
9353 PSCMD="ps -e -o pid,comm"
9355 platforms/solaris/Makefile \
9356 platforms/solaris/bacula-fd \
9357 platforms/solaris/bacula-sd \
9358 platforms/solaris/bacula-dir"
9361 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
9363 TAPEDRIVE="/dev/nst0"
9364 PSCMD="ps -e -o pid,command"
9365 hostname=`hostname -s`
9370 TAPEDRIVE="/dev/nst0"
9371 PSCMD="ps -e -o pid,command"
9372 hostname=`hostname -s`
9376 TAPEDRIVE="/dev/nst0"
9379 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
9386 LIBS="$PTHREAD_LIB $LIBS"
9388 cat >> confdefs.h <<EOF
9392 cat >> confdefs.h <<EOF
9403 MCOMMON=./autoconf/Make.common
9407 cat > confcache <<\EOF
9408 # This file is a shell script that caches the results of configure
9409 # tests run on this system so they can be shared between configure
9410 # scripts and configure runs. It is not useful on other systems.
9411 # If it contains results you don't want to keep, you may remove or edit it.
9413 # By default, configure uses ./config.cache as the cache file,
9414 # creating it if it does not exist already. You can give configure
9415 # the --cache-file=FILE option to use a different cache file; that is
9416 # what configure does when it calls configure scripts in
9417 # subdirectories, so they share the cache.
9418 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9419 # config.status only pays attention to the cache file if you give it the
9420 # --recheck option to rerun configure.
9423 # The following way of writing the cache mishandles newlines in values,
9424 # but we know of no workaround that is simple, portable, and efficient.
9425 # So, don't put newlines in cache variables' values.
9426 # Ultrix sh set writes to stderr and can't be redirected directly,
9427 # and sets the high bit in the cache file unless we assign to the vars.
9429 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9431 # `set' does not quote correctly, so add quotes (double-quote substitution
9432 # turns \\\\ into \\, and sed turns \\ into \).
9434 -e "s/'/'\\\\''/g" \
9435 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9438 # `set' quotes correctly as required by POSIX, so do not add quotes.
9439 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9442 if cmp -s $cache_file confcache; then
9445 if test -w $cache_file; then
9446 echo "updating cache $cache_file"
9447 cat confcache > $cache_file
9449 echo "not updating unwritable cache $cache_file"
9454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9457 # Let make expand exec_prefix.
9458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9460 # Any assignment to VPATH causes Sun make to only execute
9461 # the first set of double-colon rules, so remove it if not needed.
9462 # If there is a colon in the path, we need to keep it.
9463 if test "x$srcdir" = x.; then
9464 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9467 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9469 DEFS=-DHAVE_CONFIG_H
9471 # Without the "./", some shells look in PATH for config.status.
9472 : ${CONFIG_STATUS=./config.status}
9474 echo creating $CONFIG_STATUS
9475 rm -f $CONFIG_STATUS
9476 cat > $CONFIG_STATUS <<EOF
9478 # Generated automatically by configure.
9479 # Run this file to recreate the current configuration.
9480 # This directory was configured as follows,
9481 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9483 # $0 $ac_configure_args
9485 # Compiler output produced by configure, useful for debugging
9486 # configure, is in ./config.log if it exists.
9488 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9491 case "\$ac_option" in
9492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9493 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9494 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9495 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9496 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9498 -help | --help | --hel | --he | --h)
9499 echo "\$ac_cs_usage"; exit 0 ;;
9500 *) echo "\$ac_cs_usage"; exit 1 ;;
9504 ac_given_srcdir=$srcdir
9505 ac_given_INSTALL="$INSTALL"
9507 trap 'rm -fr `echo "autoconf/Make.common \
9510 rescue/linux/Makefile \
9511 rescue/freebsd/Makefile \
9512 rescue/solaris/Makefile \
9513 scripts/startmysql \
9515 scripts/btraceback \
9526 src/console/Makefile \
9527 src/console/console.conf \
9528 src/gnome-console/Makefile \
9529 src/gnome-console/gnome-console.conf \
9530 src/tconsole/Makefile \
9532 src/dird/bacula-dir.conf \
9534 src/stored/Makefile \
9535 src/stored/bacula-sd.conf \
9536 src/filed/Makefile \
9538 src/filed/bacula-fd.conf \
9539 src/filed/win32/Makefile \
9541 src/cats/make_catalog_backup \
9542 src/cats/delete_catalog_backup \
9543 src/cats/alter_mysql_tables \
9544 src/cats/make_mysql_tables \
9545 src/cats/drop_mysql_tables \
9546 src/cats/create_mysql_database \
9547 src/cats/grant_mysql_privileges \
9548 src/cats/alter_sqlite_tables \
9549 src/cats/make_sqlite_tables \
9550 src/cats/drop_sqlite_tables \
9551 src/cats/create_sqlite_database \
9554 src/cats/create_bdb_database \
9555 src/cats/make_bdb_tables \
9556 src/cats/drop_bdb_tables \
9557 src/cats/make_bacula_tables \
9558 src/cats/drop_bacula_tables \
9559 src/findlib/Makefile \
9560 src/tools/Makefile \
9561 $PFILES src/config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9563 cat >> $CONFIG_STATUS <<EOF
9565 # Protect against being on the right side of a sed subst in config.status.
9566 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9567 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9571 s%@CFLAGS@%$CFLAGS%g
9572 s%@CPPFLAGS@%$CPPFLAGS%g
9573 s%@CXXFLAGS@%$CXXFLAGS%g
9574 s%@FFLAGS@%$FFLAGS%g
9576 s%@LDFLAGS@%$LDFLAGS%g
9578 s%@exec_prefix@%$exec_prefix%g
9579 s%@prefix@%$prefix%g
9580 s%@program_transform_name@%$program_transform_name%g
9581 s%@bindir@%$bindir%g
9582 s%@sbindir@%$sbindir%g
9583 s%@libexecdir@%$libexecdir%g
9584 s%@datadir@%$datadir%g
9585 s%@sysconfdir@%$sysconfdir%g
9586 s%@sharedstatedir@%$sharedstatedir%g
9587 s%@localstatedir@%$localstatedir%g
9588 s%@libdir@%$libdir%g
9589 s%@includedir@%$includedir%g
9590 s%@oldincludedir@%$oldincludedir%g
9591 s%@infodir@%$infodir%g
9592 s%@mandir@%$mandir%g
9593 s%@BUILD_DIR@%$BUILD_DIR%g
9594 s%@TRUEPRG@%$TRUEPRG%g
9595 s%@FALSEPRG@%$FALSEPRG%g
9597 s%@host_alias@%$host_alias%g
9598 s%@host_cpu@%$host_cpu%g
9599 s%@host_vendor@%$host_vendor%g
9600 s%@host_os@%$host_os%g
9601 s%@VERSION@%$VERSION%g
9603 s%@LSMDATE@%$LSMDATE%g
9607 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9608 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9609 s%@INSTALL_DATA@%$INSTALL_DATA%g
9610 s%@RANLIB@%$RANLIB%g
9620 s%@OPENSSL@%$OPENSSL%g
9621 s%@ARFLAGS@%$ARFLAGS%g
9622 s%@MAKE_SHELL@%$MAKE_SHELL%g
9623 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
9624 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
9625 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
9626 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
9627 s%@HAVE_SUN_OS_TRUE@%$HAVE_SUN_OS_TRUE%g
9628 s%@HAVE_SUN_OS_FALSE@%$HAVE_SUN_OS_FALSE%g
9629 s%@HAVE_OSF1_OS_TRUE@%$HAVE_OSF1_OS_TRUE%g
9630 s%@HAVE_OSF1_OS_FALSE@%$HAVE_OSF1_OS_FALSE%g
9631 s%@HAVE_AIX_OS_TRUE@%$HAVE_AIX_OS_TRUE%g
9632 s%@HAVE_AIX_OS_FALSE@%$HAVE_AIX_OS_FALSE%g
9633 s%@HAVE_HPUX_OS_TRUE@%$HAVE_HPUX_OS_TRUE%g
9634 s%@HAVE_HPUX_OS_FALSE@%$HAVE_HPUX_OS_FALSE%g
9635 s%@HAVE_LINUX_OS_TRUE@%$HAVE_LINUX_OS_TRUE%g
9636 s%@HAVE_LINUX_OS_FALSE@%$HAVE_LINUX_OS_FALSE%g
9637 s%@HAVE_FREEBSD_OS_TRUE@%$HAVE_FREEBSD_OS_TRUE%g
9638 s%@HAVE_FREEBSD_OS_FALSE@%$HAVE_FREEBSD_OS_FALSE%g
9639 s%@HAVE_NETBSD_OS_TRUE@%$HAVE_NETBSD_OS_TRUE%g
9640 s%@HAVE_NETBSD_OS_FALSE@%$HAVE_NETBSD_OS_FALSE%g
9641 s%@HAVE_OPENBSD_OS_TRUE@%$HAVE_OPENBSD_OS_TRUE%g
9642 s%@HAVE_OPENBSD_OS_FALSE@%$HAVE_OPENBSD_OS_FALSE%g
9643 s%@HAVE_BSDI_OS_TRUE@%$HAVE_BSDI_OS_TRUE%g
9644 s%@HAVE_BSDI_OS_FALSE@%$HAVE_BSDI_OS_FALSE%g
9645 s%@HAVE_SGI_OS_TRUE@%$HAVE_SGI_OS_TRUE%g
9646 s%@HAVE_SGI_OS_FALSE@%$HAVE_SGI_OS_FALSE%g
9647 s%@HAVE_IRIX_OS_TRUE@%$HAVE_IRIX_OS_TRUE%g
9648 s%@HAVE_IRIX_OS_FALSE@%$HAVE_IRIX_OS_FALSE%g
9649 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
9650 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
9651 s%@MSGFMT@%$MSGFMT%g
9652 s%@GNOME_LIBS@%$GNOME_LIBS%g
9653 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
9654 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
9655 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
9656 s%@ZVT_LIBS@%$ZVT_LIBS%g
9657 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
9658 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
9659 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9660 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
9661 s%@ORBIT_IDL@%$ORBIT_IDL%g
9662 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
9663 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
9664 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
9665 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
9666 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
9667 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
9668 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
9669 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
9670 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
9671 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
9672 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
9673 s%@GNOME_DIR@%$GNOME_DIR%g
9674 s%@TTOOL_LDFLAGS@%$TTOOL_LDFLAGS%g
9675 s%@STATIC_FD@%$STATIC_FD%g
9676 s%@STATIC_SD@%$STATIC_SD%g
9677 s%@STATIC_DIR@%$STATIC_DIR%g
9678 s%@STATIC_CONS@%$STATIC_CONS%g
9679 s%@ALL_DIRS@%$ALL_DIRS%g
9680 s%@CONS_INC@%$CONS_INC%g
9681 s%@CONS_LIBS@%$CONS_LIBS%g
9682 s%@CONS_LDFLAGS@%$CONS_LDFLAGS%g
9683 s%@READLINE_SRC@%$READLINE_SRC%g
9684 s%@working_dir@%$working_dir%g
9685 s%@scriptdir@%$scriptdir%g
9686 s%@dump_email@%$dump_email%g
9687 s%@job_email@%$job_email%g
9688 s%@smtp_host@%$smtp_host%g
9689 s%@piddir@%$piddir%g
9690 s%@subsysdir@%$subsysdir%g
9691 s%@baseport@%$baseport%g
9692 s%@dir_port@%$dir_port%g
9693 s%@fd_port@%$fd_port%g
9694 s%@sd_port@%$sd_port%g
9695 s%@dir_password@%$dir_password%g
9696 s%@fd_password@%$fd_password%g
9697 s%@sd_password@%$sd_password%g
9698 s%@SQL_LFLAGS@%$SQL_LFLAGS%g
9699 s%@SQL_INCLUDE@%$SQL_INCLUDE%g
9700 s%@SQL_BINDIR@%$SQL_BINDIR%g
9702 s%@DB_NAME@%$DB_NAME%g
9703 s%@EXEEXT@%$EXEEXT%g
9705 s%@build_alias@%$build_alias%g
9706 s%@build_cpu@%$build_cpu%g
9707 s%@build_vendor@%$build_vendor%g
9708 s%@build_os@%$build_os%g
9709 s%@GETCONF@%$GETCONF%g
9710 s%@X_CFLAGS@%$X_CFLAGS%g
9711 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9712 s%@X_LIBS@%$X_LIBS%g
9713 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9714 s%@LIBOBJS@%$LIBOBJS%g
9715 s%@ALLOCA@%$ALLOCA%g
9716 s%@FDLIBS@%$FDLIBS%g
9718 s%@DINCLUDE@%$DINCLUDE%g
9720 s%@DB_LIBS@%$DB_LIBS%g
9721 s%@OBJLIST@%$OBJLIST%g
9722 s%@hostname@%$hostname%g
9723 s%@TAPEDRIVE@%$TAPEDRIVE%g
9726 s%@DISTNAME@%$DISTNAME%g
9727 s%@DISTVER@%$DISTVER%g
9728 /@MCOMMON@/r $MCOMMON
9734 cat >> $CONFIG_STATUS <<\EOF
9736 # Split the substitutions into bite-sized pieces for seds with
9737 # small command number limits, like on Digital OSF/1 and HP-UX.
9738 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9739 ac_file=1 # Number of current file.
9740 ac_beg=1 # First line for current file.
9741 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9744 while $ac_more_lines; do
9745 if test $ac_beg -gt 1; then
9746 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9748 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9750 if test ! -s conftest.s$ac_file; then
9752 rm -f conftest.s$ac_file
9754 if test -z "$ac_sed_cmds"; then
9755 ac_sed_cmds="sed -f conftest.s$ac_file"
9757 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9759 ac_file=`expr $ac_file + 1`
9761 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9764 if test -z "$ac_sed_cmds"; then
9769 cat >> $CONFIG_STATUS <<EOF
9771 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9774 rescue/linux/Makefile \
9775 rescue/freebsd/Makefile \
9776 rescue/solaris/Makefile \
9777 scripts/startmysql \
9779 scripts/btraceback \
9790 src/console/Makefile \
9791 src/console/console.conf \
9792 src/gnome-console/Makefile \
9793 src/gnome-console/gnome-console.conf \
9794 src/tconsole/Makefile \
9796 src/dird/bacula-dir.conf \
9798 src/stored/Makefile \
9799 src/stored/bacula-sd.conf \
9800 src/filed/Makefile \
9802 src/filed/bacula-fd.conf \
9803 src/filed/win32/Makefile \
9805 src/cats/make_catalog_backup \
9806 src/cats/delete_catalog_backup \
9807 src/cats/alter_mysql_tables \
9808 src/cats/make_mysql_tables \
9809 src/cats/drop_mysql_tables \
9810 src/cats/create_mysql_database \
9811 src/cats/grant_mysql_privileges \
9812 src/cats/alter_sqlite_tables \
9813 src/cats/make_sqlite_tables \
9814 src/cats/drop_sqlite_tables \
9815 src/cats/create_sqlite_database \
9818 src/cats/create_bdb_database \
9819 src/cats/make_bdb_tables \
9820 src/cats/drop_bdb_tables \
9821 src/cats/make_bacula_tables \
9822 src/cats/drop_bacula_tables \
9823 src/findlib/Makefile \
9824 src/tools/Makefile \
9827 cat >> $CONFIG_STATUS <<\EOF
9828 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9829 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9831 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9832 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9833 *) ac_file_in="${ac_file}.in" ;;
9836 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9838 # Remove last slash and all that follows it. Not all systems have dirname.
9839 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9841 # The file is in a subdirectory.
9842 test ! -d "$ac_dir" && mkdir "$ac_dir"
9843 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9844 # A "../" for each directory in $ac_dir_suffix.
9845 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9847 ac_dir_suffix= ac_dots=
9850 case "$ac_given_srcdir" in
9852 if test -z "$ac_dots"; then top_srcdir=.
9853 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9854 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9856 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9857 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9860 case "$ac_given_INSTALL" in
9861 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9862 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9865 echo creating "$ac_file"
9867 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9869 *Makefile*) ac_comsub="1i\\
9870 # $configure_input" ;;
9874 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9876 s%@configure_input@%$configure_input%g
9877 s%@srcdir@%$srcdir%g
9878 s%@top_srcdir@%$top_srcdir%g
9879 s%@INSTALL@%$INSTALL%g
9880 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9887 # ac_d sets the value in "#define NAME VALUE" lines.
9888 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9889 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9892 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9893 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9894 ac_uB='\([ ]\)%\1#\2define\3'
9897 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9898 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9899 ac_eB='$%\1#\2define\3'
9903 if test "${CONFIG_HEADERS+set}" != set; then
9905 cat >> $CONFIG_STATUS <<EOF
9906 CONFIG_HEADERS="src/config.h:autoconf/config.h.in"
9908 cat >> $CONFIG_STATUS <<\EOF
9910 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9913 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9914 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9915 *) ac_file_in="${ac_file}.in" ;;
9918 echo creating $ac_file
9920 rm -f conftest.frag conftest.in conftest.out
9921 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9922 cat $ac_file_inputs > conftest.in
9926 # Transform confdefs.h into a sed script conftest.vals that substitutes
9927 # the proper values into config.h.in to produce config.h. And first:
9928 # Protect against being on the right side of a sed subst in config.status.
9929 # Protect against being in an unquoted here document in config.status.
9931 cat > conftest.hdr <<\EOF
9934 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9938 sed -n -f conftest.hdr confdefs.h > conftest.vals
9941 # This sed command replaces #undef with comments. This is necessary, for
9942 # example, in the case of _POSIX_SOURCE, which is predefined and required
9943 # on some systems where configure will not decide to define it.
9944 cat >> conftest.vals <<\EOF
9945 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9948 # Break up conftest.vals because some shells have a limit on
9949 # the size of here documents, and old seds have small limits too.
9954 ac_lines=`grep -c . conftest.vals`
9955 # grep -c gives empty output for an empty file on some AIX systems.
9956 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9957 # Write a limited-size here document to conftest.frag.
9958 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9959 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9961 sed -f conftest.frag conftest.in > conftest.out
9963 mv conftest.out conftest.in
9965 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9967 mv conftest.tail conftest.vals
9971 cat >> $CONFIG_STATUS <<\EOF
9972 rm -f conftest.frag conftest.h
9973 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9974 cat conftest.in >> conftest.h
9976 if cmp -s $ac_file conftest.h 2>/dev/null; then
9977 echo "$ac_file is unchanged"
9980 # Remove last slash and all that follows it. Not all systems have dirname.
9981 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9982 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9983 # The file is in a subdirectory.
9984 test ! -d "$ac_dir" && mkdir "$ac_dir"
9987 mv conftest.h $ac_file
9992 cat >> $CONFIG_STATUS <<EOF
9995 cat >> $CONFIG_STATUS <<\EOF
9996 (echo "Doing make of dependencies"; make depend;)
10000 chmod +x $CONFIG_STATUS
10001 rm -fr confdefs* $ac_clean_files
10002 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10006 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
10007 chmod 755 console gconsole
10009 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
10010 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
10011 chmod 755 src/cats/create_mysql_database
10012 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
10013 chmod 755 src/cats/alter_mysql_tables
10014 chmod 755 src/cats/grant_mysql_privileges
10015 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
10016 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
10017 chmod 755 src/cats/create_sqlite_database
10018 chmod 755 src/cats/alter_sqlite_tables
10019 chmod 755 src/cats/sqlite
10020 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
10021 chmod 755 src/cats/create_bdb_database
10023 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
10024 largefile_support="yes"
10029 Configuration on `date`:
10031 Host: $host -- ${DISTNAME} ${DISTVER}
10032 Bacula version: ${VERSION} (${DATE})
10033 Source code location: ${srcdir}
10034 Install binaries: ${sbindir}
10035 Install config files: ${sysconfdir}
10036 Scripts directory ${scriptdir}
10037 Working directory ${working_dir}
10039 C++ Compiler: ${CXX}
10040 Compiler flags: ${CFLAGS}
10041 Linker flags: ${LDFLAGS}
10043 Statically Linked Tools: ${support_static_tools}
10044 Statically Linked FD: ${support_static_fd}
10045 Statically Linked SD: ${support_static_sd}
10046 Statically Linked DIR: ${support_static_dir}
10047 Statically Linked CONS: ${support_static_cons}
10048 Database type: ${db_name}
10049 Database lib: ${DB_LIBS}
10051 Job Output Email: ${job_email}
10052 Traceback Email: ${dump_email}
10053 SMTP Host Address: ${smtp_host}
10054 Director Port ${dir_port}
10055 File daemon Port ${fd_port}
10056 Storage daemon Port ${sd_port}
10057 SQL binaries Directory ${SQL_BINDIR}
10059 Large file support: $largefile_support
10060 readline support: ${got_readline} ${PRTREADLINE_SRC}
10061 TCP Wrappers support: ${TCPW_MSG}
10062 ZLIB support: ${have_zlib}
10063 enable-smartalloc: ${support_smartalloc}
10064 enable-gnome: ${support_gnome}
10065 client-only: ${build_client_only}
10072 # cweb support: ${got_cweb} ${CWEB_SRC}
10073 # gmp support: ${got_gmp} ${GMP_SRC}