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-athena Enable Athena-specific policy decisions"
17 --with-com_err=PREFIX Specify location of com_err"
19 --with-krb4=PREFIX Specify location of krb4"
21 --with-krb5=PREFIX Specify location of krb5 (for reg_svr)"
23 --with-hesiod=PREFIX Specify location of Hesiod"
25 --with-zephyr=PREFIX Specify location of Zephyr"
27 --with-rsaref=PREFIX Specify location of RSAREF"
29 --with-oracle=PREFIX Specify location of Oracle (for server)"
31 --with-java=PREFIX Specify location of Java libs and headers"
33 --with-ldap=PREFIX Specify location of LDAP libs (for server)"
35 --with-afs=PREFIX Specify location of AFS libs (for server)"
37 --with-readline=PREFIX Specify location of GNU readline"
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file=./config.cache
52 program_transform_name=s,x,x,
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host | --host | --hos | --ho)
215 -host=* | --host=* | --hos=* | --ho=*)
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
336 -site=* | --site=* | --sit=*)
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=patchlevel.h
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
552 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
553 if test -f $ac_dir/install-sh; then
555 ac_install_sh="$ac_aux_dir/install-sh -c"
557 elif test -f $ac_dir/install.sh; then
559 ac_install_sh="$ac_aux_dir/install.sh -c"
563 if test -z "$ac_aux_dir"; then
564 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
566 ac_config_guess=$ac_aux_dir/config.guess
567 ac_config_sub=$ac_aux_dir/config.sub
568 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Make sure we can run config.sub.
572 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
573 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
576 echo $ac_n "checking host system type""... $ac_c" 1>&6
577 echo "configure:578: checking host system type" >&5
580 case "$host_alias" in
584 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
585 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
587 *) host_alias=$nonopt ;;
591 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
592 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
593 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
594 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
595 echo "$ac_t""$host" 1>&6
615 # Extract the first word of "gcc", so it can be a program name with args.
616 set dummy gcc; ac_word=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 if test -n "$CC"; then
623 ac_cv_prog_CC="$CC" # Let the user override the test.
625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
627 for ac_dir in $ac_dummy; do
628 test -z "$ac_dir" && ac_dir=.
629 if test -f $ac_dir/$ac_word; then
638 if test -n "$CC"; then
639 echo "$ac_t""$CC" 1>&6
641 echo "$ac_t""no" 1>&6
644 if test -z "$CC"; then
645 # Extract the first word of "cc", so it can be a program name with args.
646 set dummy cc; ac_word=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 if test -n "$CC"; then
653 ac_cv_prog_CC="$CC" # Let the user override the test.
655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
661 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
670 if test $ac_prog_rejected = yes; then
671 # We found a bogon in the path, so make sure we never use it.
672 set dummy $ac_cv_prog_CC
674 if test $# -gt 0; then
675 # We chose a different compiler from the bogus one.
676 # However, it has the same basename, so the bogon will be chosen
677 # first if we set CC to just the basename; use the full file name.
679 set dummy "$ac_dir/$ac_word" "$@"
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
690 echo "$ac_t""no" 1>&6
693 if test -z "$CC"; then
696 # Extract the first word of "cl", so it can be a program name with args.
697 set dummy cl; ac_word=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 if test -n "$CC"; then
704 ac_cv_prog_CC="$CC" # Let the user override the test.
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
708 for ac_dir in $ac_dummy; do
709 test -z "$ac_dir" && ac_dir=.
710 if test -f $ac_dir/$ac_word; then
719 if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
722 echo "$ac_t""no" 1>&6
727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
731 echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
740 cat > conftest.$ac_ext << EOF
742 #line 743 "configure"
743 #include "confdefs.h"
747 if { (eval echo configure:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
748 ac_cv_prog_cc_works=yes
749 # If we can't run a trivial program, we are probably using a cross compiler.
750 if (./conftest; exit) 2>/dev/null; then
751 ac_cv_prog_cc_cross=no
753 ac_cv_prog_cc_cross=yes
756 echo "configure: failed program was:" >&5
757 cat conftest.$ac_ext >&5
758 ac_cv_prog_cc_works=no
762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763 ac_cpp='$CPP $CPPFLAGS'
764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766 cross_compiling=$ac_cv_prog_cc_cross
768 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
769 if test $ac_cv_prog_cc_works = no; then
770 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
773 echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
774 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
775 cross_compiling=$ac_cv_prog_cc_cross
777 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
778 echo "configure:779: checking whether we are using GNU C" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftest.c <<EOF
787 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
796 if test $ac_cv_prog_gcc = yes; then
802 ac_test_CFLAGS="${CFLAGS+set}"
803 ac_save_CFLAGS="$CFLAGS"
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
824 if test "$GCC" = yes; then
830 if test "$GCC" = yes; then
837 # Find a good install program. We prefer a C program (faster),
838 # so one script is as good as another. But avoid the broken or
839 # incompatible versions:
840 # SysV /etc/install, /usr/sbin/install
841 # SunOS /usr/etc/install
844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
847 # ./install, which can be erroneously created by make from ./install.sh.
848 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
849 echo "configure:850: checking for a BSD compatible install" >&5
850 if test -z "$INSTALL"; then
851 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
855 for ac_dir in $PATH; do
856 # Account for people who put trailing slashes in PATH elements.
858 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
860 # OSF1 and SCO ODT 3.0 have their own names for install.
861 # Don't use installbsd from OSF since it installs stuff as root
863 for ac_prog in ginstall scoinst install; do
864 if test -f $ac_dir/$ac_prog; then
865 if test $ac_prog = install &&
866 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
867 # AIX install. It has an incompatible calling convention.
870 ac_cv_path_install="$ac_dir/$ac_prog -c"
881 if test "${ac_cv_path_install+set}" = set; then
882 INSTALL="$ac_cv_path_install"
884 # As a last resort, use the slow shell script. We don't cache a
885 # path for INSTALL within a source directory, because that will
886 # break other packages using the cache if that directory is
887 # removed, or if the path is relative.
888 INSTALL="$ac_install_sh"
891 echo "$ac_t""$INSTALL" 1>&6
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
901 # Extract the first word of "ranlib", so it can be a program name with args.
902 set dummy ranlib; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$RANLIB"; then
909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
913 for ac_dir in $ac_dummy; do
914 test -z "$ac_dir" && ac_dir=.
915 if test -f $ac_dir/$ac_word; then
916 ac_cv_prog_RANLIB="ranlib"
921 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
924 RANLIB="$ac_cv_prog_RANLIB"
925 if test -n "$RANLIB"; then
926 echo "$ac_t""$RANLIB" 1>&6
928 echo "$ac_t""no" 1>&6
931 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
932 echo "configure:933: checking whether ${MAKE-make} sets \${MAKE}" >&5
933 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
934 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 cat > conftestmake <<\EOF
939 @echo 'ac_maketemp="${MAKE}"'
941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
942 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
943 if test -n "$ac_maketemp"; then
944 eval ac_cv_prog_make_${ac_make}_set=yes
946 eval ac_cv_prog_make_${ac_make}_set=no
950 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
951 echo "$ac_t""yes" 1>&6
954 echo "$ac_t""no" 1>&6
955 SET_MAKE="MAKE=${MAKE-make}"
959 if test "$athena" = true; then
961 prefix=/afs/.athena.mit.edu/system/moira
962 bindir=$prefix/arch/$ATHENA_SYS/bin
967 *-I/usr/athena/include*) ;;
968 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
972 case $PRO_C_INCLUDES in
973 *INCLUDE=/usr/athena/include*) ;;
974 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
981 *-I/usr/athena/include/kerberosIV*) ;;
982 *) CPPFLAGS=-I/usr/athena/include/kerberosIV\ $CPPFLAGS ;;
986 case $PRO_C_INCLUDES in
987 *INCLUDE=/usr/athena/include/kerberosIV*) ;;
988 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include/kerberosIV\ $PRO_C_INCLUDES ;;
994 *-L/usr/athena/lib*) ;;
995 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
1000 # We currently just don't support changing this
1004 # Athena-local policy decisions
1005 echo $ac_n "checking for Athena""... $ac_c" 1>&6
1006 echo "configure:1007: checking for Athena" >&5
1007 # Check whether --enable-athena or --disable-athena was given.
1008 if test "${enable_athena+set}" = set; then
1009 enableval="$enable_athena"
1012 if test "$athena" = true; then
1019 echo "$ac_t""$enableval" 1>&6
1020 if test "$enableval" = yes; then
1022 cat >> confdefs.h <<\EOF
1029 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
1035 # Networking libraries
1036 echo "checking network libraries..." 1>&6
1037 echo "configure:1038: checking network libraries..." >&5
1038 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1039 echo "configure:1040: checking for gethostbyname" >&5
1040 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1046 /* System header to define __stub macros and hopefully few prototypes,
1047 which can conflict with char gethostbyname(); below. */
1049 /* Override any gcc2 internal prototype to avoid an error. */
1050 /* We use char because int might match the return type of a gcc2
1051 builtin and then its argument prototype would still apply. */
1052 char gethostbyname();
1056 /* The GNU C library defines this for functions which it implements
1057 to always fail with ENOSYS. Some functions are actually named
1058 something starting with __ and the normal name is an alias. */
1059 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1067 if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1069 eval "ac_cv_func_gethostbyname=yes"
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1074 eval "ac_cv_func_gethostbyname=no"
1079 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1080 echo "$ac_t""yes" 1>&6
1083 echo "$ac_t""no" 1>&6
1084 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1085 echo "configure:1086: checking for gethostbyname in -lnsl" >&5
1086 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 ac_save_LIBS="$LIBS"
1092 cat > conftest.$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1095 /* Override any gcc2 internal prototype to avoid an error. */
1096 /* We use char because int might match the return type of a gcc2
1097 builtin and then its argument prototype would still apply. */
1098 char gethostbyname();
1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1106 eval "ac_cv_lib_$ac_lib_var=yes"
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1111 eval "ac_cv_lib_$ac_lib_var=no"
1114 LIBS="$ac_save_LIBS"
1117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1118 echo "$ac_t""yes" 1>&6
1119 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1121 cat >> confdefs.h <<EOF
1122 #define $ac_tr_lib 1
1128 echo "$ac_t""no" 1>&6
1129 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1130 echo "configure:1131: checking for gethostbyname in -lresolv" >&5
1131 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 ac_save_LIBS="$LIBS"
1136 LIBS="-lresolv $LIBS"
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1140 /* Override any gcc2 internal prototype to avoid an error. */
1141 /* We use char because int might match the return type of a gcc2
1142 builtin and then its argument prototype would still apply. */
1143 char gethostbyname();
1149 if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1151 eval "ac_cv_lib_$ac_lib_var=yes"
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1156 eval "ac_cv_lib_$ac_lib_var=no"
1159 LIBS="$ac_save_LIBS"
1162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1163 echo "$ac_t""yes" 1>&6
1164 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1166 cat >> confdefs.h <<EOF
1167 #define $ac_tr_lib 1
1170 LIBS="-lresolv $LIBS"
1173 echo "$ac_t""no" 1>&6
1180 echo $ac_n "checking for socket""... $ac_c" 1>&6
1181 echo "configure:1182: checking for socket" >&5
1182 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* System header to define __stub macros and hopefully few prototypes,
1189 which can conflict with char socket(); below. */
1191 /* Override any gcc2 internal prototype to avoid an error. */
1192 /* We use char because int might match the return type of a gcc2
1193 builtin and then its argument prototype would still apply. */
1198 /* The GNU C library defines this for functions which it implements
1199 to always fail with ENOSYS. Some functions are actually named
1200 something starting with __ and the normal name is an alias. */
1201 #if defined (__stub_socket) || defined (__stub___socket)
1209 if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1211 eval "ac_cv_func_socket=yes"
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1216 eval "ac_cv_func_socket=no"
1221 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1225 echo "$ac_t""no" 1>&6
1226 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1227 echo "configure:1228: checking for socket in -lsocket" >&5
1228 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 ac_save_LIBS="$LIBS"
1233 LIBS="-lsocket $LIBS"
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1237 /* Override any gcc2 internal prototype to avoid an error. */
1238 /* We use char because int might match the return type of a gcc2
1239 builtin and then its argument prototype would still apply. */
1246 if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1248 eval "ac_cv_lib_$ac_lib_var=yes"
1250 echo "configure: failed program was:" >&5
1251 cat conftest.$ac_ext >&5
1253 eval "ac_cv_lib_$ac_lib_var=no"
1256 LIBS="$ac_save_LIBS"
1259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1260 echo "$ac_t""yes" 1>&6
1261 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1263 cat >> confdefs.h <<EOF
1264 #define $ac_tr_lib 1
1267 LIBS="-lsocket $LIBS"
1270 echo "$ac_t""no" 1>&6
1271 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1272 echo "configure:1273: checking for socket in -lsocket" >&5
1273 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 ac_save_LIBS="$LIBS"
1278 LIBS="-lsocket -lnsl $LIBS"
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 /* Override any gcc2 internal prototype to avoid an error. */
1283 /* We use char because int might match the return type of a gcc2
1284 builtin and then its argument prototype would still apply. */
1291 if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1293 eval "ac_cv_lib_$ac_lib_var=yes"
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1298 eval "ac_cv_lib_$ac_lib_var=no"
1301 LIBS="$ac_save_LIBS"
1304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1305 echo "$ac_t""yes" 1>&6
1306 LIBS="-lsocket -lnsl $LIBS"
1308 echo "$ac_t""no" 1>&6
1317 # com_err (required, but can be built)
1318 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1319 echo "configure:1320: checking for com_err" >&5
1320 # Check whether --with-com_err or --without-com_err was given.
1321 if test "${with_com_err+set}" = set; then
1322 withval="$with_com_err"
1323 echo "$ac_t""$withval" 1>&6
1324 if test $withval = "no"; then
1325 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1327 if test $withval != "yes"; then
1331 *-I$withval/include*) ;;
1332 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1336 case $PRO_C_INCLUDES in
1337 *INCLUDE=$withval/include*) ;;
1338 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1344 *-L$withval/lib*) ;;
1345 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1349 COMPILE_ET=compile_et
1351 echo "$ac_t""util/et" 1>&6
1352 COM_ERR_SUBDIR=util/et;
1356 *-I`pwd`/util/et*) ;;
1357 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1361 case $PRO_C_INCLUDES in
1362 *INCLUDE=`pwd`/util/et*) ;;
1363 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1369 *-L`pwd`/util/et*) ;;
1370 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1373 COMPILE_ET=`pwd`/util/et/compile_et
1374 subdirs="$COM_ERR_SUBDIR"
1381 # Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr)
1382 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1383 echo "configure:1384: checking for Kerberos 4" >&5
1384 # Check whether --with-krb4 or --without-krb4 was given.
1385 if test "${with_krb4+set}" = set; then
1386 withval="$with_krb4"
1392 echo "$ac_t""$krb4" 1>&6
1393 if test $krb4 = "no"; then
1394 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1396 if test "$krb4" != yes; then
1400 *-I$krb4/include*) ;;
1401 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1405 case $PRO_C_INCLUDES in
1406 *INCLUDE=$krb4/include*) ;;
1407 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1411 if test -d "$krb4/include/kerberosIV"; then
1415 *-I$krb4/include/kerberosIV*) ;;
1416 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1420 case $PRO_C_INCLUDES in
1421 *INCLUDE=$krb4/include/kerberosIV*) ;;
1422 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1430 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1433 elif test -d /usr/include/kerberosIV; then
1437 *-I/usr/include/kerberosIV*) ;;
1438 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1442 case $PRO_C_INCLUDES in
1443 *INCLUDE=/usr/include/kerberosIV*) ;;
1444 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1449 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
1450 echo "configure:1451: checking for main in -lcrypto" >&5
1451 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 ac_save_LIBS="$LIBS"
1456 LIBS="-lcrypto $LIBS"
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1465 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1467 eval "ac_cv_lib_$ac_lib_var=yes"
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1472 eval "ac_cv_lib_$ac_lib_var=no"
1475 LIBS="$ac_save_LIBS"
1478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1479 echo "$ac_t""yes" 1>&6
1482 echo "$ac_t""no" 1>&6
1483 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
1484 echo "configure:1485: checking for main in -lk5crypto" >&5
1485 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-%__p_%'`
1486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 ac_save_LIBS="$LIBS"
1490 LIBS="-lk5crypto $LIBS"
1491 cat > conftest.$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1499 if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1501 eval "ac_cv_lib_$ac_lib_var=yes"
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1506 eval "ac_cv_lib_$ac_lib_var=no"
1509 LIBS="$ac_save_LIBS"
1512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1516 echo "$ac_t""no" 1>&6
1521 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1522 echo "configure:1523: checking for krb_rd_req in -lkrb4" >&5
1523 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 ac_save_LIBS="$LIBS"
1528 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err $LIBS"
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 /* Override any gcc2 internal prototype to avoid an error. */
1533 /* We use char because int might match the return type of a gcc2
1534 builtin and then its argument prototype would still apply. */
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 eval "ac_cv_lib_$ac_lib_var=yes"
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 eval "ac_cv_lib_$ac_lib_var=no"
1551 LIBS="$ac_save_LIBS"
1554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1555 echo "$ac_t""yes" 1>&6
1556 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto}"
1558 echo "$ac_t""no" 1>&6
1559 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1560 echo "configure:1561: checking for krb_rd_req in -lkrb" >&5
1561 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 ac_save_LIBS="$LIBS"
1566 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* Override any gcc2 internal prototype to avoid an error. */
1571 /* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1579 if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 eval "ac_cv_lib_$ac_lib_var=yes"
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 eval "ac_cv_lib_$ac_lib_var=no"
1589 LIBS="$ac_save_LIBS"
1592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1594 KRB4_LIBS="-lkrb -ldes"
1596 echo "$ac_t""no" 1>&6
1597 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1603 echo $ac_n "checking for Kerberos 5""... $ac_c" 1>&6
1604 echo "configure:1605: checking for Kerberos 5" >&5
1605 # Check whether --with-krb5 or --without-krb5 was given.
1606 if test "${with_krb5+set}" = set; then
1607 withval="$with_krb5"
1613 echo "$ac_t""$krb5" 1>&6
1614 if test "$krb5" != no; then
1616 if test "$krb5" != yes; then
1617 REG_SVR_INCLUDES=-I$krb5/include
1618 REG_SVR_LIBS=-L$krb5/lib
1620 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -ldyn -lkrb4 -ldes425 -lkrb5 -l${crypto}"
1630 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1631 echo "configure:1632: checking for Hesiod" >&5
1632 # Check whether --with-hesiod or --without-hesiod was given.
1633 if test "${with_hesiod+set}" = set; then
1634 withval="$with_hesiod"
1640 echo "$ac_t""$hesiod" 1>&6
1641 if test "$hesiod" != no; then
1642 if test "$hesiod" != yes; then
1646 *-I$hesiod/include*) ;;
1647 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1651 case $PRO_C_INCLUDES in
1652 *INCLUDE=$hesiod/include*) ;;
1653 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1660 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1664 echo $ac_n "checking for res_send""... $ac_c" 1>&6
1665 echo "configure:1666: checking for res_send" >&5
1666 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 /* System header to define __stub macros and hopefully few prototypes,
1673 which can conflict with char res_send(); below. */
1675 /* Override any gcc2 internal prototype to avoid an error. */
1676 /* We use char because int might match the return type of a gcc2
1677 builtin and then its argument prototype would still apply. */
1682 /* The GNU C library defines this for functions which it implements
1683 to always fail with ENOSYS. Some functions are actually named
1684 something starting with __ and the normal name is an alias. */
1685 #if defined (__stub_res_send) || defined (__stub___res_send)
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 eval "ac_cv_func_res_send=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_func_res_send=no"
1705 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1709 echo "$ac_t""no" 1>&6
1710 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1711 echo "configure:1712: checking for res_send in -lresolv" >&5
1712 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1716 ac_save_LIBS="$LIBS"
1717 LIBS="-lresolv $LIBS"
1718 cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 /* Override any gcc2 internal prototype to avoid an error. */
1722 /* We use char because int might match the return type of a gcc2
1723 builtin and then its argument prototype would still apply. */
1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1732 eval "ac_cv_lib_$ac_lib_var=yes"
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 eval "ac_cv_lib_$ac_lib_var=no"
1740 LIBS="$ac_save_LIBS"
1743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1744 echo "$ac_t""yes" 1>&6
1745 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1747 cat >> confdefs.h <<EOF
1748 #define $ac_tr_lib 1
1751 LIBS="-lresolv $LIBS"
1754 echo "$ac_t""no" 1>&6
1759 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1760 echo "configure:1761: checking for hes_resolve in -lhesiod" >&5
1761 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 ac_save_LIBS="$LIBS"
1766 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1770 /* Override any gcc2 internal prototype to avoid an error. */
1771 /* We use char because int might match the return type of a gcc2
1772 builtin and then its argument prototype would still apply. */
1779 if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781 eval "ac_cv_lib_$ac_lib_var=yes"
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1786 eval "ac_cv_lib_$ac_lib_var=no"
1789 LIBS="$ac_save_LIBS"
1792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1796 echo "$ac_t""no" 1>&6
1797 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1801 cat >> confdefs.h <<\EOF
1802 #define HAVE_HESIOD 1
1807 *DEFINE=HAVE_HESIOD*) ;;
1808 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1815 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1816 echo "configure:1817: checking for Zephyr" >&5
1817 # Check whether --with-zephyr or --without-zephyr was given.
1818 if test "${with_zephyr+set}" = set; then
1819 withval="$with_zephyr"
1825 echo "$ac_t""$zephyr" 1>&6
1826 if test "$zephyr" != no; then
1827 if test "$zephyr" != yes; then
1831 *-I$zephyr/include*) ;;
1832 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1836 case $PRO_C_INCLUDES in
1837 *INCLUDE=$zephyr/include*) ;;
1838 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1845 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1849 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1850 echo "configure:1851: checking for ZInitialize in -lzephyr" >&5
1851 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 ac_save_LIBS="$LIBS"
1856 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 /* Override any gcc2 internal prototype to avoid an error. */
1861 /* We use char because int might match the return type of a gcc2
1862 builtin and then its argument prototype would still apply. */
1869 if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1871 eval "ac_cv_lib_$ac_lib_var=yes"
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1876 eval "ac_cv_lib_$ac_lib_var=no"
1879 LIBS="$ac_save_LIBS"
1882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1886 echo "$ac_t""no" 1>&6
1887 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1891 cat >> confdefs.h <<\EOF
1892 #define HAVE_ZEPHYR 1
1897 *DEFINE=HAVE_ZEPHYR*) ;;
1898 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1904 # RSAREF support (default: build util/rsaref if present)
1905 echo $ac_n "checking for RSAREF""... $ac_c" 1>&6
1906 echo "configure:1907: checking for RSAREF" >&5
1907 # Check whether --with-rsaref or --without-rsaref was given.
1908 if test "${with_rsaref+set}" = set; then
1909 withval="$with_rsaref"
1911 RSAREF_CPPFLAGS="-I$rsaref/include"
1912 RSAREF_LIBS="$rsaref/lib/rsaref.a"
1914 RSAREF_SUBDIRS=reg_svr
1915 if test -d $srcdir/util/rsaref; then
1916 rsaref=$srcdir/util/rsaref
1917 RSAREF_SUBDIRS="util/rsaref reg_svr"
1918 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
1919 # autoconf can't deal with creating util/rsaref if util doesn't exist
1920 if test ! -d util; then
1923 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
1924 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
1925 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
1931 echo "$ac_t""$rsaref" 1>&6
1932 if test "$rsaref" != no; then
1934 cat >> confdefs.h <<\EOF
1935 #define HAVE_RSAREF 1
1940 *DEFINE=HAVE_RSAREF*) ;;
1941 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
1951 # Oracle (default: yes, if $ORACLE_HOME is set)
1952 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1953 echo "configure:1954: checking for Oracle" >&5
1954 # Check whether --with-oracle or --without-oracle was given.
1955 if test "${with_oracle+set}" = set; then
1956 withval="$with_oracle"
1959 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1966 echo "$ac_t""$oracle" 1>&6
1967 if test "$oracle" != no; then
1968 echo $ac_n "checking Pro*C version""... $ac_c" 1>&6
1969 echo "configure:1970: checking Pro*C version" >&5
1970 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
1971 echo "$ac_t""$release" 1>&6
1974 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1977 SQL_LIBS="-L$oracle/lib -lclntsh -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $oracle/rdbms/lib/sysliblist` -lm -lthread"
1980 SVRSUBDIRS='$(SVRDIRS)'
1981 SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile reg_svr/Makefile regtape/Makefile"
1982 PRO_C=$oracle/bin/proc
1983 PRO_C_OPTS=CODE=ANSI_C
1984 PRO_C_DEFS="DEFINE=_PROC_ $PRO_C_DEFS"
1993 # Java support, for webmoira
1994 echo $ac_n "checking for Java""... $ac_c" 1>&6
1995 echo "configure:1996: checking for Java" >&5
1996 # Check whether --with-java or --without-java was given.
1997 if test "${with_java+set}" = set; then
1998 withval="$with_java"
2001 if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
2008 echo "$ac_t""$java" 1>&6
2009 if test "$java" != no; then
2010 if test "$java" != yes; then
2011 JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
2014 cat >> confdefs.h <<\EOF
2020 *DEFINE=HAVE_JAVA*) ;;
2021 *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
2026 WEBMOIRA_SUBDIRS="webmoira"
2027 WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
2032 echo $ac_n "checking for LDAP""... $ac_c" 1>&6
2033 echo "configure:2034: checking for LDAP" >&5
2034 # Check whether --with-ldap or --without-ldap was given.
2035 if test "${with_ldap+set}" = set; then
2036 withval="$with_ldap"
2039 if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
2046 echo "$ac_t""$ldap" 1>&6
2047 if test "$ldap" != no -a "$oracle" != no; then
2048 if test "$ldap" != yes; then
2049 LDAP_CPPFLAGS="-I$ldap/include"
2050 LDAP_LIBS="-L$ldap/lib"
2053 cat >> confdefs.h <<\EOF
2059 *DEFINE=HAVE_LDAP*) ;;
2060 *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
2065 WINAD_SUBDIRS="winad"
2066 WINAD_OUTPUT_FILES="incremental/winad/Makefile"
2073 echo $ac_n "checking for AFS""... $ac_c" 1>&6
2074 echo "configure:2075: checking for AFS" >&5
2075 # Check whether --with-afs or --without-afs was given.
2076 if test "${with_afs+set}" = set; then
2083 echo "$ac_t""$afs" 1>&6
2084 if test "$afs" != no -a "$oracle" != no; then
2085 if test "$afs" != yes; then
2086 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
2087 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
2088 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
2091 echo $ac_n "checking for insque""... $ac_c" 1>&6
2092 echo "configure:2093: checking for insque" >&5
2093 if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 /* System header to define __stub macros and hopefully few prototypes,
2100 which can conflict with char insque(); below. */
2102 /* Override any gcc2 internal prototype to avoid an error. */
2103 /* We use char because int might match the return type of a gcc2
2104 builtin and then its argument prototype would still apply. */
2109 /* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112 #if defined (__stub_insque) || defined (__stub___insque)
2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2122 eval "ac_cv_func_insque=yes"
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 eval "ac_cv_func_insque=no"
2132 if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
2133 echo "$ac_t""yes" 1>&6
2136 echo "$ac_t""no" 1>&6
2137 echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
2138 echo "configure:2139: checking for insque in -lcompat" >&5
2139 ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
2140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 ac_save_LIBS="$LIBS"
2144 LIBS="-lcompat $LIBS"
2145 cat > conftest.$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 /* Override any gcc2 internal prototype to avoid an error. */
2149 /* We use char because int might match the return type of a gcc2
2150 builtin and then its argument prototype would still apply. */
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 eval "ac_cv_lib_$ac_lib_var=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 eval "ac_cv_lib_$ac_lib_var=no"
2167 LIBS="$ac_save_LIBS"
2170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 AFS_EXTRA_LIBS="-lcompat"
2174 echo "$ac_t""no" 1>&6
2175 { echo "configure: error: insque not found" 1>&2; exit 1; }
2180 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
2181 echo "configure:2182: checking for sigvec" >&5
2182 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char sigvec(); below. */
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2198 /* The GNU C library defines this for functions which it implements
2199 to always fail with ENOSYS. Some functions are actually named
2200 something starting with __ and the normal name is an alias. */
2201 #if defined (__stub_sigvec) || defined (__stub___sigvec)
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2211 eval "ac_cv_func_sigvec=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 eval "ac_cv_func_sigvec=no"
2221 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2225 echo "$ac_t""no" 1>&6
2226 echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
2227 echo "configure:2228: checking for sigvec in -lucb" >&5
2228 ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
2229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 ac_save_LIBS="$LIBS"
2233 LIBS="-lucb -L/usr/ucblib $LIBS"
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2253 eval "ac_cv_lib_$ac_lib_var=no"
2256 LIBS="$ac_save_LIBS"
2259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
2263 echo "$ac_t""no" 1>&6
2269 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
2270 echo "configure:2271: checking for pioctl in -lsys" >&5
2271 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
2272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 ac_save_LIBS="$LIBS"
2276 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 /* Override any gcc2 internal prototype to avoid an error. */
2281 /* We use char because int might match the return type of a gcc2
2282 builtin and then its argument prototype would still apply. */
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2291 eval "ac_cv_lib_$ac_lib_var=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_lib_$ac_lib_var=no"
2299 LIBS="$ac_save_LIBS"
2302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2306 echo "$ac_t""no" 1>&6
2307 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
2311 cat >> confdefs.h <<\EOF
2317 *DEFINE=HAVE_AFS*) ;;
2318 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2324 AFS_OUTPUT_FILES="incremental/afs/Makefile"
2325 if test -d $srcdir/afssync; then
2326 AFS_SYNCDIR="afssync"
2327 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
2339 echo "checking for GNU readline..." 1>&6
2340 echo "configure:2341: checking for GNU readline..." >&5
2341 # Check whether --with-readline or --without-readline was given.
2342 if test "${with_readline+set}" = set; then
2343 withval="$with_readline"
2344 readline="$withval"; echo "$ac_t""$withval" 1>&6
2346 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2347 echo "configure:2348: checking for readline in -lreadline" >&5
2348 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_save_LIBS="$LIBS"
2353 LIBS="-lreadline -ltermcap $LIBS"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_lib_$ac_lib_var=no"
2376 LIBS="$ac_save_LIBS"
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2383 echo "$ac_t""no" 1>&6
2384 if test "$athena" = true; then
2385 unset ac_cv_lib_readline_readline
2386 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2387 echo "configure:2388: checking for readline in -lreadline" >&5
2388 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 ac_save_LIBS="$LIBS"
2393 LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 /* Override any gcc2 internal prototype to avoid an error. */
2398 /* We use char because int might match the return type of a gcc2
2399 builtin and then its argument prototype would still apply. */
2406 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 eval "ac_cv_lib_$ac_lib_var=yes"
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2413 eval "ac_cv_lib_$ac_lib_var=no"
2416 LIBS="$ac_save_LIBS"
2419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2423 echo "$ac_t""no" 1>&6
2432 if test "$readline" != no; then
2433 if test "$readline" != yes; then
2434 READLINE_CPPFLAGS="-I$readline/include"
2435 READLINE_LIBS="-L$readline/lib"
2437 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
2438 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
2445 echo "checking for curses" 1>&6
2446 echo "configure:2447: checking for curses" >&5
2447 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2448 echo "configure:2449: checking for main in -lcurses" >&5
2449 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 ac_save_LIBS="$LIBS"
2454 LIBS="-lcurses $LIBS"
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2465 eval "ac_cv_lib_$ac_lib_var=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 eval "ac_cv_lib_$ac_lib_var=no"
2473 LIBS="$ac_save_LIBS"
2476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2480 echo "$ac_t""no" 1>&6
2481 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2482 echo "configure:2483: checking for main in -lncurses" >&5
2483 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 ac_save_LIBS="$LIBS"
2488 LIBS="-lncurses $LIBS"
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2499 eval "ac_cv_lib_$ac_lib_var=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2504 eval "ac_cv_lib_$ac_lib_var=no"
2507 LIBS="$ac_save_LIBS"
2510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2514 echo "$ac_t""no" 1>&6
2519 if test -n "$curses"; then
2522 echo "checking if curses needs termcap" 1>&6
2523 echo "configure:2524: checking if curses needs termcap" >&5
2524 if test "$cross_compiling" = yes; then
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2531 main(int argc, char **argv)
2538 if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2540 CURSES_LIBS="-l$curses"
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2545 LIBS="-l$curses -ltermcap"
2546 if test "$cross_compiling" = yes; then
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2553 main(int argc, char **argv)
2560 if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2562 CURSES_LIBS="-l$curses -ltermcap"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2578 if test -n "$CURSES_LIBS"; then
2581 cat > conftest.$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2586 WINDOW *w; getmaxx(w);
2589 if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2601 WINDOW *w; w->_maxx;
2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2606 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2611 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2621 newterm(NULL, NULL, NULL);
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2626 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2633 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2634 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2636 echo "configure: warning: Couldn't find -lcurses" 1>&2
2643 for ac_func in getusershell strlcpy strlcat uname
2645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2646 echo "configure:2647: checking for $ac_func" >&5
2647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 /* System header to define __stub macros and hopefully few prototypes,
2654 which can conflict with char $ac_func(); below. */
2656 /* Override any gcc2 internal prototype to avoid an error. */
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2663 /* The GNU C library defines this for functions which it implements
2664 to always fail with ENOSYS. Some functions are actually named
2665 something starting with __ and the normal name is an alias. */
2666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2674 if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2676 eval "ac_cv_func_$ac_func=yes"
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2681 eval "ac_cv_func_$ac_func=no"
2686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2687 echo "$ac_t""yes" 1>&6
2688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2689 cat >> confdefs.h <<EOF
2690 #define $ac_tr_func 1
2694 echo "$ac_t""no" 1>&6
2699 echo $ac_n "checking for sigaction""... $ac_c" 1>&6
2700 echo "configure:2701: checking for sigaction" >&5
2701 if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 /* System header to define __stub macros and hopefully few prototypes,
2708 which can conflict with char sigaction(); below. */
2710 /* Override any gcc2 internal prototype to avoid an error. */
2711 /* We use char because int might match the return type of a gcc2
2712 builtin and then its argument prototype would still apply. */
2717 /* The GNU C library defines this for functions which it implements
2718 to always fail with ENOSYS. Some functions are actually named
2719 something starting with __ and the normal name is an alias. */
2720 #if defined (__stub_sigaction) || defined (__stub___sigaction)
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2730 eval "ac_cv_func_sigaction=yes"
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 eval "ac_cv_func_sigaction=no"
2740 if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 cat >> confdefs.h <<\EOF
2743 #define HAVE_POSIX_SIGNALS 1
2747 echo "$ac_t""no" 1>&6
2751 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2752 echo "configure:2753: checking how to run the C preprocessor" >&5
2753 # On Suns, sometimes $CPP names a directory.
2754 if test -n "$CPP" && test -d "$CPP"; then
2757 if test -z "$CPP"; then
2758 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 # This must be in double quotes, not single quotes, because CPP may get
2762 # substituted into the Makefile and "${CC-cc}" will confuse make.
2764 # On the NeXT, cc -E runs the code through the compiler's parser,
2765 # not just through cpp.
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2773 { (eval echo configure:2774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2775 if test -z "$ac_err"; then
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 CPP="${CC-cc} -E -traditional-cpp"
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2799 CPP="${CC-cc} -nologo -E"
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2823 ac_cv_prog_CPP="$CPP"
2825 CPP="$ac_cv_prog_CPP"
2827 ac_cv_prog_CPP="$CPP"
2829 echo "$ac_t""$CPP" 1>&6
2831 for ac_hdr in unistd.h getopt.h
2833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2835 echo "configure:2836: checking for $ac_hdr" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2845 { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2847 if test -z "$ac_err"; then
2849 eval "ac_cv_header_$ac_safe=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 eval "ac_cv_header_$ac_safe=no"
2859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2862 cat >> confdefs.h <<EOF
2863 #define $ac_tr_hdr 1
2867 echo "$ac_t""no" 1>&6
2872 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
2873 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
2874 echo "configure:2875: checking for netinet/in.h" >&5
2875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 #include <netinet/in.h>
2883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2884 { (eval echo configure:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2886 if test -z "$ac_err"; then
2888 eval "ac_cv_header_$ac_safe=yes"
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2894 eval "ac_cv_header_$ac_safe=no"
2898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 cat >> confdefs.h <<\EOF
2901 #define HAVE_NETINET_IN_H 1
2905 echo "$ac_t""no" 1>&6
2910 if test "$no_netinet_in" != "yes"; then
2911 echo $ac_n "checking for in_addr_t defined in netinet/in.h""... $ac_c" 1>&6
2912 echo "configure:2913: checking for in_addr_t defined in netinet/in.h" >&5
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 #include <netinet/in.h>
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 egrep "in_addr_t" >/dev/null 2>&1; then
2921 ac_cv_type_in_addr_t=yes
2924 ac_cv_type_in_addr_t=no
2928 echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6
2931 if test "$ac_cv_type_in_addr_t" != "yes"; then
2932 cat >> confdefs.h <<\EOF
2933 #define in_addr_t uint32_t
2939 case $PRO_C_INCLUDES in
2940 *INCLUDE='$(srcdir)'*) ;;
2941 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2947 *-I'$(SRCTOP)/include'*) ;;
2948 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2952 case $PRO_C_INCLUDES in
2953 *INCLUDE='$(SRCTOP)/include'*) ;;
2954 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2961 *-I'$(SRCTOP)/lib'*) ;;
2962 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2966 case $PRO_C_INCLUDES in
2967 *INCLUDE='$(SRCTOP)/lib'*) ;;
2968 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2975 *-I'$(BUILDTOP)/lib'*) ;;
2976 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2980 case $PRO_C_INCLUDES in
2981 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2982 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2989 *-I'$(BUILDTOP)/db'*) ;;
2990 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2994 case $PRO_C_INCLUDES in
2995 *INCLUDE='$(BUILDTOP)/db'*) ;;
2996 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
3004 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
3008 case $PRO_C_INCLUDES in
3009 *INCLUDE='$(srcdir)'*) ;;
3010 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
3014 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
3015 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
3016 LIBS="-lmoira $KLIBS"
3019 MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a'
3023 cat > confcache <<\EOF
3024 # This file is a shell script that caches the results of configure
3025 # tests run on this system so they can be shared between configure
3026 # scripts and configure runs. It is not useful on other systems.
3027 # If it contains results you don't want to keep, you may remove or edit it.
3029 # By default, configure uses ./config.cache as the cache file,
3030 # creating it if it does not exist already. You can give configure
3031 # the --cache-file=FILE option to use a different cache file; that is
3032 # what configure does when it calls configure scripts in
3033 # subdirectories, so they share the cache.
3034 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3035 # config.status only pays attention to the cache file if you give it the
3036 # --recheck option to rerun configure.
3039 # The following way of writing the cache mishandles newlines in values,
3040 # but we know of no workaround that is simple, portable, and efficient.
3041 # So, don't put newlines in cache variables' values.
3042 # Ultrix sh set writes to stderr and can't be redirected directly,
3043 # and sets the high bit in the cache file unless we assign to the vars.
3045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3047 # `set' does not quote correctly, so add quotes (double-quote substitution
3048 # turns \\\\ into \\, and sed turns \\ into \).
3050 -e "s/'/'\\\\''/g" \
3051 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3054 # `set' quotes correctly as required by POSIX, so do not add quotes.
3055 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3058 if cmp -s $cache_file confcache; then
3061 if test -w $cache_file; then
3062 echo "updating cache $cache_file"
3063 cat confcache > $cache_file
3065 echo "not updating unwritable cache $cache_file"
3070 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3072 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3073 # Let make expand exec_prefix.
3074 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3076 # Any assignment to VPATH causes Sun make to only execute
3077 # the first set of double-colon rules, so remove it if not needed.
3078 # If there is a colon in the path, we need to keep it.
3079 if test "x$srcdir" = x.; then
3080 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3083 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3085 # Transform confdefs.h into DEFS.
3086 # Protect against shell expansion while executing Makefile rules.
3087 # Protect against Makefile macro expansion.
3088 cat > conftest.defs <<\EOF
3089 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3090 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3095 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3099 # Without the "./", some shells look in PATH for config.status.
3100 : ${CONFIG_STATUS=./config.status}
3102 echo creating $CONFIG_STATUS
3103 rm -f $CONFIG_STATUS
3104 cat > $CONFIG_STATUS <<EOF
3106 # Generated automatically by configure.
3107 # Run this file to recreate the current configuration.
3108 # This directory was configured as follows,
3109 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3111 # $0 $ac_configure_args
3113 # Compiler output produced by configure, useful for debugging
3114 # configure, is in ./config.log if it exists.
3116 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3119 case "\$ac_option" in
3120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3121 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3122 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3123 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3124 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3126 -help | --help | --hel | --he | --h)
3127 echo "\$ac_cs_usage"; exit 0 ;;
3128 *) echo "\$ac_cs_usage"; exit 1 ;;
3132 ac_given_srcdir=$srcdir
3133 ac_given_INSTALL="$INSTALL"
3135 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
3136 clients/lib/Makefile clients/addusr/Makefile \
3137 clients/blanche/Makefile clients/chfn/Makefile \
3138 clients/chpobox/Makefile clients/chsh/Makefile \
3139 clients/mailmaint/Makefile clients/moira/Makefile \
3140 clients/mrcheck/Makefile clients/mrtest/Makefile \
3141 clients/stanley/Makefile clients/stella/Makefile \
3142 update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES \
3143 $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES \
3144 $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3146 cat >> $CONFIG_STATUS <<EOF
3148 # Protect against being on the right side of a sed subst in config.status.
3149 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3150 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3154 s%@CFLAGS@%$CFLAGS%g
3155 s%@CPPFLAGS@%$CPPFLAGS%g
3156 s%@CXXFLAGS@%$CXXFLAGS%g
3157 s%@FFLAGS@%$FFLAGS%g
3159 s%@LDFLAGS@%$LDFLAGS%g
3161 s%@exec_prefix@%$exec_prefix%g
3162 s%@prefix@%$prefix%g
3163 s%@program_transform_name@%$program_transform_name%g
3164 s%@bindir@%$bindir%g
3165 s%@sbindir@%$sbindir%g
3166 s%@libexecdir@%$libexecdir%g
3167 s%@datadir@%$datadir%g
3168 s%@sysconfdir@%$sysconfdir%g
3169 s%@sharedstatedir@%$sharedstatedir%g
3170 s%@localstatedir@%$localstatedir%g
3171 s%@libdir@%$libdir%g
3172 s%@includedir@%$includedir%g
3173 s%@oldincludedir@%$oldincludedir%g
3174 s%@infodir@%$infodir%g
3175 s%@mandir@%$mandir%g
3177 s%@host_alias@%$host_alias%g
3178 s%@host_cpu@%$host_cpu%g
3179 s%@host_vendor@%$host_vendor%g
3180 s%@host_os@%$host_os%g
3182 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3183 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3184 s%@INSTALL_DATA@%$INSTALL_DATA%g
3185 s%@RANLIB@%$RANLIB%g
3186 s%@SET_MAKE@%$SET_MAKE%g
3187 s%@mrbindir@%$mrbindir%g
3188 s%@subdirs@%$subdirs%g
3189 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
3190 s%@COMPILE_ET@%$COMPILE_ET%g
3191 s%@REG_SVR_DEFS@%$REG_SVR_DEFS%g
3192 s%@REG_SVR_INCLUDES@%$REG_SVR_INCLUDES%g
3193 s%@REG_SVR_LIBS@%$REG_SVR_LIBS%g
3194 s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g
3195 s%@RSAREF_LIBS@%$RSAREF_LIBS%g
3196 s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g
3197 s%@RSAREF_LIBDEP@%$RSAREF_LIBDEP%g
3199 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
3200 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
3201 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
3202 s%@SQL_LIBS@%$SQL_LIBS%g
3203 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
3204 s%@JAVA_CPPFLAGS@%$JAVA_CPPFLAGS%g
3205 s%@LDAP_CPPFLAGS@%$LDAP_CPPFLAGS%g
3206 s%@LDAP_LIBS@%$LDAP_LIBS%g
3207 s%@WINAD_SUBDIRS@%$WINAD_SUBDIRS%g
3208 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
3209 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
3210 s%@AFS_LIBS@%$AFS_LIBS%g
3211 s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
3212 s%@AFS_DIR@%$AFS_DIR%g
3213 s%@AFS_SUBDIRS@%$AFS_SUBDIRS%g
3214 s%@AFS_SYNCDIR@%$AFS_SYNCDIR%g
3215 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
3216 s%@READLINE_LIBS@%$READLINE_LIBS%g
3217 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
3218 s%@CURSES_LIBS@%$CURSES_LIBS%g
3219 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
3222 s%@MR_LIBDEP@%$MR_LIBDEP%g
3227 cat >> $CONFIG_STATUS <<\EOF
3229 # Split the substitutions into bite-sized pieces for seds with
3230 # small command number limits, like on Digital OSF/1 and HP-UX.
3231 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3232 ac_file=1 # Number of current file.
3233 ac_beg=1 # First line for current file.
3234 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3237 while $ac_more_lines; do
3238 if test $ac_beg -gt 1; then
3239 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3241 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3243 if test ! -s conftest.s$ac_file; then
3245 rm -f conftest.s$ac_file
3247 if test -z "$ac_sed_cmds"; then
3248 ac_sed_cmds="sed -f conftest.s$ac_file"
3250 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3252 ac_file=`expr $ac_file + 1`
3254 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3257 if test -z "$ac_sed_cmds"; then
3262 cat >> $CONFIG_STATUS <<EOF
3264 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
3265 clients/lib/Makefile clients/addusr/Makefile \
3266 clients/blanche/Makefile clients/chfn/Makefile \
3267 clients/chpobox/Makefile clients/chsh/Makefile \
3268 clients/mailmaint/Makefile clients/moira/Makefile \
3269 clients/mrcheck/Makefile clients/mrtest/Makefile \
3270 clients/stanley/Makefile clients/stella/Makefile \
3271 update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES \
3272 $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES \
3273 $RSAREF_OUTPUT_FILES"}
3275 cat >> $CONFIG_STATUS <<\EOF
3276 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3279 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3280 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3281 *) ac_file_in="${ac_file}.in" ;;
3284 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3286 # Remove last slash and all that follows it. Not all systems have dirname.
3287 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3288 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3289 # The file is in a subdirectory.
3290 test ! -d "$ac_dir" && mkdir "$ac_dir"
3291 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3292 # A "../" for each directory in $ac_dir_suffix.
3293 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3295 ac_dir_suffix= ac_dots=
3298 case "$ac_given_srcdir" in
3300 if test -z "$ac_dots"; then top_srcdir=.
3301 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3302 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3304 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3305 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3308 case "$ac_given_INSTALL" in
3309 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3310 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3313 echo creating "$ac_file"
3315 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3317 *Makefile*) ac_comsub="1i\\
3318 # $configure_input" ;;
3322 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3324 s%@configure_input@%$configure_input%g
3325 s%@srcdir@%$srcdir%g
3326 s%@top_srcdir@%$top_srcdir%g
3327 s%@INSTALL@%$INSTALL%g
3328 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3333 cat >> $CONFIG_STATUS <<EOF
3336 cat >> $CONFIG_STATUS <<\EOF
3340 chmod +x $CONFIG_STATUS
3341 rm -fr confdefs* $ac_clean_files
3342 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3344 if test "$no_recursion" != yes; then
3346 # Remove --cache-file and --srcdir arguments so they do not pile up.
3347 ac_sub_configure_args=
3349 for ac_arg in $ac_configure_args; do
3350 if test -n "$ac_prev"; then
3355 -cache-file | --cache-file | --cache-fil | --cache-fi \
3356 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3357 ac_prev=cache_file ;;
3358 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3359 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3365 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3369 for ac_config_dir in $COM_ERR_SUBDIR; do
3371 # Do not complain, so a configure script can configure whichever
3372 # parts of a large source tree are present.
3373 if test ! -d $srcdir/$ac_config_dir; then
3377 echo configuring in $ac_config_dir
3382 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3384 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3392 # A "../" for each directory in /$ac_config_dir.
3393 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3396 .) # No --srcdir option. We are building in place.
3397 ac_sub_srcdir=$srcdir ;;
3398 /*) # Absolute path.
3399 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3401 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3404 # Check for guested configure; otherwise get Cygnus style configure.
3405 if test -f $ac_sub_srcdir/configure; then
3406 ac_sub_configure=$ac_sub_srcdir/configure
3407 elif test -f $ac_sub_srcdir/configure.in; then
3408 ac_sub_configure=$ac_configure
3410 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3414 # The recursion is here.
3415 if test -n "$ac_sub_configure"; then
3417 # Make the cache file name correct relative to the subdirectory.
3418 case "$cache_file" in
3419 /*) ac_sub_cache_file=$cache_file ;;
3421 ac_sub_cache_file="$ac_dots$cache_file" ;;
3423 case "$ac_given_INSTALL" in
3424 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3425 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3428 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3429 # The eval makes quoting arguments work.
3430 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3433 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }