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-afs=PREFIX Specify location of AFS libs (for server)"
33 --with-readline=PREFIX Specify location of GNU readline"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=patchlevel.h
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
553 # Extract the first word of "gcc", so it can be a program name with args.
554 set dummy gcc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 if test -n "$CC"; then
561 ac_cv_prog_CC="$CC" # Let the user override the test.
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
565 for ac_dir in $ac_dummy; do
566 test -z "$ac_dir" && ac_dir=.
567 if test -f $ac_dir/$ac_word; then
576 if test -n "$CC"; then
577 echo "$ac_t""$CC" 1>&6
579 echo "$ac_t""no" 1>&6
582 if test -z "$CC"; then
583 # Extract the first word of "cc", so it can be a program name with args.
584 set dummy cc; ac_word=$2
585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
586 echo "configure:587: checking for $ac_word" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
590 if test -n "$CC"; then
591 ac_cv_prog_CC="$CC" # Let the user override the test.
593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
596 for ac_dir in $ac_dummy; do
597 test -z "$ac_dir" && ac_dir=.
598 if test -f $ac_dir/$ac_word; then
599 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
608 if test $ac_prog_rejected = yes; then
609 # We found a bogon in the path, so make sure we never use it.
610 set dummy $ac_cv_prog_CC
612 if test $# -gt 0; then
613 # We chose a different compiler from the bogus one.
614 # However, it has the same basename, so the bogon will be chosen
615 # first if we set CC to just the basename; use the full file name.
617 set dummy "$ac_dir/$ac_word" "$@"
625 if test -n "$CC"; then
626 echo "$ac_t""$CC" 1>&6
628 echo "$ac_t""no" 1>&6
631 if test -z "$CC"; then
634 # Extract the first word of "cl", so it can be a program name with args.
635 set dummy cl; ac_word=$2
636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
637 echo "configure:638: checking for $ac_word" >&5
638 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
641 if test -n "$CC"; then
642 ac_cv_prog_CC="$CC" # Let the user override the test.
644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
646 for ac_dir in $ac_dummy; do
647 test -z "$ac_dir" && ac_dir=.
648 if test -f $ac_dir/$ac_word; then
657 if test -n "$CC"; then
658 echo "$ac_t""$CC" 1>&6
660 echo "$ac_t""no" 1>&6
665 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
668 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
669 echo "configure:670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
673 ac_cpp='$CPP $CPPFLAGS'
674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
676 cross_compiling=$ac_cv_prog_cc_cross
678 cat > conftest.$ac_ext << EOF
680 #line 681 "configure"
681 #include "confdefs.h"
685 if { (eval echo configure:686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
686 ac_cv_prog_cc_works=yes
687 # If we can't run a trivial program, we are probably using a cross compiler.
688 if (./conftest; exit) 2>/dev/null; then
689 ac_cv_prog_cc_cross=no
691 ac_cv_prog_cc_cross=yes
694 echo "configure: failed program was:" >&5
695 cat conftest.$ac_ext >&5
696 ac_cv_prog_cc_works=no
700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
701 ac_cpp='$CPP $CPPFLAGS'
702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
704 cross_compiling=$ac_cv_prog_cc_cross
706 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
707 if test $ac_cv_prog_cc_works = no; then
708 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
712 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
713 cross_compiling=$ac_cv_prog_cc_cross
715 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
716 echo "configure:717: checking whether we are using GNU C" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 cat > conftest.c <<EOF
725 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
732 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
734 if test $ac_cv_prog_gcc = yes; then
740 ac_test_CFLAGS="${CFLAGS+set}"
741 ac_save_CFLAGS="$CFLAGS"
743 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${CC-cc} accepts -g" >&5
745 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 echo 'void f(){}' > conftest.c
749 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
758 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
759 if test "$ac_test_CFLAGS" = set; then
760 CFLAGS="$ac_save_CFLAGS"
761 elif test $ac_cv_prog_cc_g = yes; then
762 if test "$GCC" = yes; then
768 if test "$GCC" = yes; then
776 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
777 if test -f $ac_dir/install-sh; then
779 ac_install_sh="$ac_aux_dir/install-sh -c"
781 elif test -f $ac_dir/install.sh; then
783 ac_install_sh="$ac_aux_dir/install.sh -c"
787 if test -z "$ac_aux_dir"; then
788 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
790 ac_config_guess=$ac_aux_dir/config.guess
791 ac_config_sub=$ac_aux_dir/config.sub
792 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
794 # Find a good install program. We prefer a C program (faster),
795 # so one script is as good as another. But avoid the broken or
796 # incompatible versions:
797 # SysV /etc/install, /usr/sbin/install
798 # SunOS /usr/etc/install
801 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
802 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
803 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
804 # ./install, which can be erroneously created by make from ./install.sh.
805 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
806 echo "configure:807: checking for a BSD compatible install" >&5
807 if test -z "$INSTALL"; then
808 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
812 for ac_dir in $PATH; do
813 # Account for people who put trailing slashes in PATH elements.
815 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
817 # OSF1 and SCO ODT 3.0 have their own names for install.
818 # Don't use installbsd from OSF since it installs stuff as root
820 for ac_prog in ginstall scoinst install; do
821 if test -f $ac_dir/$ac_prog; then
822 if test $ac_prog = install &&
823 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
824 # AIX install. It has an incompatible calling convention.
827 ac_cv_path_install="$ac_dir/$ac_prog -c"
838 if test "${ac_cv_path_install+set}" = set; then
839 INSTALL="$ac_cv_path_install"
841 # As a last resort, use the slow shell script. We don't cache a
842 # path for INSTALL within a source directory, because that will
843 # break other packages using the cache if that directory is
844 # removed, or if the path is relative.
845 INSTALL="$ac_install_sh"
848 echo "$ac_t""$INSTALL" 1>&6
850 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
851 # It thinks the first close brace ends the variable substitution.
852 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
854 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
856 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
858 # Extract the first word of "ranlib", so it can be a program name with args.
859 set dummy ranlib; ac_word=$2
860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861 echo "configure:862: checking for $ac_word" >&5
862 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 if test -n "$RANLIB"; then
866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
870 for ac_dir in $ac_dummy; do
871 test -z "$ac_dir" && ac_dir=.
872 if test -f $ac_dir/$ac_word; then
873 ac_cv_prog_RANLIB="ranlib"
878 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
881 RANLIB="$ac_cv_prog_RANLIB"
882 if test -n "$RANLIB"; then
883 echo "$ac_t""$RANLIB" 1>&6
885 echo "$ac_t""no" 1>&6
888 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
889 echo "configure:890: checking whether ${MAKE-make} sets \${MAKE}" >&5
890 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
891 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 cat > conftestmake <<\EOF
896 @echo 'ac_maketemp="${MAKE}"'
898 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
899 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
900 if test -n "$ac_maketemp"; then
901 eval ac_cv_prog_make_${ac_make}_set=yes
903 eval ac_cv_prog_make_${ac_make}_set=no
907 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
908 echo "$ac_t""yes" 1>&6
911 echo "$ac_t""no" 1>&6
912 SET_MAKE="MAKE=${MAKE-make}"
916 if test "$athena" = true; then
918 prefix=/afs/.athena.mit.edu/system/moira
919 bindir=$prefix/arch/$ATHENA_SYS/bin
924 *-I/usr/athena/include*) ;;
925 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
929 case $PRO_C_INCLUDES in
930 *INCLUDE=/usr/athena/include*) ;;
931 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
938 *-I/usr/athena/include/kerberosIV*) ;;
939 *) CPPFLAGS=-I/usr/athena/include/kerberosIV\ $CPPFLAGS ;;
943 case $PRO_C_INCLUDES in
944 *INCLUDE=/usr/athena/include/kerberosIV*) ;;
945 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include/kerberosIV\ $PRO_C_INCLUDES ;;
951 *-L/usr/athena/lib*) ;;
952 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
957 # We currently just don't support changing this
961 # Athena-local policy decisions
962 echo $ac_n "checking for Athena""... $ac_c" 1>&6
963 echo "configure:964: checking for Athena" >&5
964 # Check whether --enable-athena or --disable-athena was given.
965 if test "${enable_athena+set}" = set; then
966 enableval="$enable_athena"
969 if test "$athena" = true; then
976 echo "$ac_t""$enableval" 1>&6
977 if test "$enableval" = yes; then
979 cat >> confdefs.h <<\EOF
986 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
992 # Networking libraries
993 echo "checking network libraries..." 1>&6
994 echo "configure:995: checking network libraries..." >&5
995 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
996 echo "configure:997: checking for gethostbyname" >&5
997 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftest.$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1003 /* System header to define __stub macros and hopefully few prototypes,
1004 which can conflict with char gethostbyname(); below. */
1006 /* Override any gcc2 internal prototype to avoid an error. */
1007 /* We use char because int might match the return type of a gcc2
1008 builtin and then its argument prototype would still apply. */
1009 char gethostbyname();
1013 /* The GNU C library defines this for functions which it implements
1014 to always fail with ENOSYS. Some functions are actually named
1015 something starting with __ and the normal name is an alias. */
1016 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1024 if { (eval echo configure:1025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1026 eval "ac_cv_func_gethostbyname=yes"
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1031 eval "ac_cv_func_gethostbyname=no"
1036 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1037 echo "$ac_t""yes" 1>&6
1040 echo "$ac_t""no" 1>&6
1041 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1042 echo "configure:1043: checking for gethostbyname in -lnsl" >&5
1043 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 ac_save_LIBS="$LIBS"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 /* Override any gcc2 internal prototype to avoid an error. */
1053 /* We use char because int might match the return type of a gcc2
1054 builtin and then its argument prototype would still apply. */
1055 char gethostbyname();
1061 if { (eval echo configure:1062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1063 eval "ac_cv_lib_$ac_lib_var=yes"
1065 echo "configure: failed program was:" >&5
1066 cat conftest.$ac_ext >&5
1068 eval "ac_cv_lib_$ac_lib_var=no"
1071 LIBS="$ac_save_LIBS"
1074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1075 echo "$ac_t""yes" 1>&6
1076 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1078 cat >> confdefs.h <<EOF
1079 #define $ac_tr_lib 1
1085 echo "$ac_t""no" 1>&6
1086 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1087 echo "configure:1088: checking for gethostbyname in -lresolv" >&5
1088 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 ac_save_LIBS="$LIBS"
1093 LIBS="-lresolv $LIBS"
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1097 /* Override any gcc2 internal prototype to avoid an error. */
1098 /* We use char because int might match the return type of a gcc2
1099 builtin and then its argument prototype would still apply. */
1100 char gethostbyname();
1106 if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1108 eval "ac_cv_lib_$ac_lib_var=yes"
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1113 eval "ac_cv_lib_$ac_lib_var=no"
1116 LIBS="$ac_save_LIBS"
1119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1121 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1123 cat >> confdefs.h <<EOF
1124 #define $ac_tr_lib 1
1127 LIBS="-lresolv $LIBS"
1130 echo "$ac_t""no" 1>&6
1137 echo $ac_n "checking for socket""... $ac_c" 1>&6
1138 echo "configure:1139: checking for socket" >&5
1139 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 /* System header to define __stub macros and hopefully few prototypes,
1146 which can conflict with char socket(); below. */
1148 /* Override any gcc2 internal prototype to avoid an error. */
1149 /* We use char because int might match the return type of a gcc2
1150 builtin and then its argument prototype would still apply. */
1155 /* The GNU C library defines this for functions which it implements
1156 to always fail with ENOSYS. Some functions are actually named
1157 something starting with __ and the normal name is an alias. */
1158 #if defined (__stub_socket) || defined (__stub___socket)
1166 if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1168 eval "ac_cv_func_socket=yes"
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1173 eval "ac_cv_func_socket=no"
1178 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1179 echo "$ac_t""yes" 1>&6
1182 echo "$ac_t""no" 1>&6
1183 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1184 echo "configure:1185: checking for socket in -lsocket" >&5
1185 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 ac_save_LIBS="$LIBS"
1190 LIBS="-lsocket $LIBS"
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1194 /* Override any gcc2 internal prototype to avoid an error. */
1195 /* We use char because int might match the return type of a gcc2
1196 builtin and then its argument prototype would still apply. */
1203 if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1205 eval "ac_cv_lib_$ac_lib_var=yes"
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 eval "ac_cv_lib_$ac_lib_var=no"
1213 LIBS="$ac_save_LIBS"
1216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1217 echo "$ac_t""yes" 1>&6
1218 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1220 cat >> confdefs.h <<EOF
1221 #define $ac_tr_lib 1
1224 LIBS="-lsocket $LIBS"
1227 echo "$ac_t""no" 1>&6
1228 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1229 echo "configure:1230: checking for socket in -lsocket" >&5
1230 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 ac_save_LIBS="$LIBS"
1235 LIBS="-lsocket -lnsl $LIBS"
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1239 /* Override any gcc2 internal prototype to avoid an error. */
1240 /* We use char because int might match the return type of a gcc2
1241 builtin and then its argument prototype would still apply. */
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1250 eval "ac_cv_lib_$ac_lib_var=yes"
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1255 eval "ac_cv_lib_$ac_lib_var=no"
1258 LIBS="$ac_save_LIBS"
1261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1262 echo "$ac_t""yes" 1>&6
1263 LIBS="-lsocket -lnsl $LIBS"
1265 echo "$ac_t""no" 1>&6
1274 # com_err (required, but can be built)
1275 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1276 echo "configure:1277: checking for com_err" >&5
1277 # Check whether --with-com_err or --without-com_err was given.
1278 if test "${with_com_err+set}" = set; then
1279 withval="$with_com_err"
1280 echo "$ac_t""$withval" 1>&6
1281 if test $withval = "no"; then
1282 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1284 if test $withval != "yes"; then
1288 *-I$withval/include*) ;;
1289 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1293 case $PRO_C_INCLUDES in
1294 *INCLUDE=$withval/include*) ;;
1295 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1301 *-L$withval/lib*) ;;
1302 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1306 COMPILE_ET=compile_et
1308 echo "$ac_t""util/et" 1>&6
1309 COM_ERR_SUBDIR=util/et;
1313 *-I`pwd`/util/et*) ;;
1314 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1318 case $PRO_C_INCLUDES in
1319 *INCLUDE=`pwd`/util/et*) ;;
1320 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1326 *-L`pwd`/util/et*) ;;
1327 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1330 COMPILE_ET=`pwd`/util/et/compile_et
1331 subdirs="$COM_ERR_SUBDIR"
1338 # Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr)
1339 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1340 echo "configure:1341: checking for Kerberos 4" >&5
1341 # Check whether --with-krb4 or --without-krb4 was given.
1342 if test "${with_krb4+set}" = set; then
1343 withval="$with_krb4"
1349 echo "$ac_t""$krb4" 1>&6
1350 if test $krb4 = "no"; then
1351 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1353 if test "$krb4" != yes; then
1357 *-I$krb4/include*) ;;
1358 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1362 case $PRO_C_INCLUDES in
1363 *INCLUDE=$krb4/include*) ;;
1364 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1368 if test -d "$krb4/include/kerberosIV"; then
1372 *-I$krb4/include/kerberosIV*) ;;
1373 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1377 case $PRO_C_INCLUDES in
1378 *INCLUDE=$krb4/include/kerberosIV*) ;;
1379 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1387 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1390 elif test -d /usr/include/kerberosIV; then
1394 *-I/usr/include/kerberosIV*) ;;
1395 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1399 case $PRO_C_INCLUDES in
1400 *INCLUDE=/usr/include/kerberosIV*) ;;
1401 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1406 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1407 echo "configure:1408: checking for krb_rd_req in -lkrb4" >&5
1408 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 ac_save_LIBS="$LIBS"
1413 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 /* Override any gcc2 internal prototype to avoid an error. */
1418 /* We use char because int might match the return type of a gcc2
1419 builtin and then its argument prototype would still apply. */
1426 if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428 eval "ac_cv_lib_$ac_lib_var=yes"
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1433 eval "ac_cv_lib_$ac_lib_var=no"
1436 LIBS="$ac_save_LIBS"
1439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1440 echo "$ac_t""yes" 1>&6
1441 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto"
1443 echo "$ac_t""no" 1>&6
1444 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1445 echo "configure:1446: checking for krb_rd_req in -lkrb" >&5
1446 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 ac_save_LIBS="$LIBS"
1451 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* Override any gcc2 internal prototype to avoid an error. */
1456 /* We use char because int might match the return type of a gcc2
1457 builtin and then its argument prototype would still apply. */
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1466 eval "ac_cv_lib_$ac_lib_var=yes"
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1471 eval "ac_cv_lib_$ac_lib_var=no"
1474 LIBS="$ac_save_LIBS"
1477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1478 echo "$ac_t""yes" 1>&6
1479 KRB4_LIBS="-lkrb -ldes"
1481 echo "$ac_t""no" 1>&6
1482 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1488 echo $ac_n "checking for Kerberos 5""... $ac_c" 1>&6
1489 echo "configure:1490: checking for Kerberos 5" >&5
1490 # Check whether --with-krb5 or --without-krb5 was given.
1491 if test "${with_krb5+set}" = set; then
1492 withval="$with_krb5"
1498 echo "$ac_t""$krb5" 1>&6
1499 if test "$krb5" != no; then
1501 if test "$krb5" != yes; then
1502 REG_SVR_INCLUDES=-I$krb5/include
1503 REG_SVR_LIBS=-L$krb5/lib
1505 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -ldyn -lkrb4 -ldes425 -lkrb5 -lcrypto"
1515 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1516 echo "configure:1517: checking for Hesiod" >&5
1517 # Check whether --with-hesiod or --without-hesiod was given.
1518 if test "${with_hesiod+set}" = set; then
1519 withval="$with_hesiod"
1525 echo "$ac_t""$hesiod" 1>&6
1526 if test "$hesiod" != no; then
1527 if test "$hesiod" != yes; then
1531 *-I$hesiod/include*) ;;
1532 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1536 case $PRO_C_INCLUDES in
1537 *INCLUDE=$hesiod/include*) ;;
1538 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1545 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1549 echo $ac_n "checking for res_send""... $ac_c" 1>&6
1550 echo "configure:1551: checking for res_send" >&5
1551 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 /* System header to define __stub macros and hopefully few prototypes,
1558 which can conflict with char res_send(); below. */
1560 /* Override any gcc2 internal prototype to avoid an error. */
1561 /* We use char because int might match the return type of a gcc2
1562 builtin and then its argument prototype would still apply. */
1567 /* The GNU C library defines this for functions which it implements
1568 to always fail with ENOSYS. Some functions are actually named
1569 something starting with __ and the normal name is an alias. */
1570 #if defined (__stub_res_send) || defined (__stub___res_send)
1578 if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1580 eval "ac_cv_func_res_send=yes"
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1585 eval "ac_cv_func_res_send=no"
1590 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1594 echo "$ac_t""no" 1>&6
1595 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1596 echo "configure:1597: checking for res_send in -lresolv" >&5
1597 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1601 ac_save_LIBS="$LIBS"
1602 LIBS="-lresolv $LIBS"
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 /* Override any gcc2 internal prototype to avoid an error. */
1607 /* We use char because int might match the return type of a gcc2
1608 builtin and then its argument prototype would still apply. */
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1617 eval "ac_cv_lib_$ac_lib_var=yes"
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1622 eval "ac_cv_lib_$ac_lib_var=no"
1625 LIBS="$ac_save_LIBS"
1628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1629 echo "$ac_t""yes" 1>&6
1630 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1632 cat >> confdefs.h <<EOF
1633 #define $ac_tr_lib 1
1636 LIBS="-lresolv $LIBS"
1639 echo "$ac_t""no" 1>&6
1644 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1645 echo "configure:1646: checking for hes_resolve in -lhesiod" >&5
1646 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 ac_save_LIBS="$LIBS"
1651 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 /* Override any gcc2 internal prototype to avoid an error. */
1656 /* We use char because int might match the return type of a gcc2
1657 builtin and then its argument prototype would still apply. */
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1666 eval "ac_cv_lib_$ac_lib_var=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_lib_$ac_lib_var=no"
1674 LIBS="$ac_save_LIBS"
1677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1678 echo "$ac_t""yes" 1>&6
1681 echo "$ac_t""no" 1>&6
1682 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1686 cat >> confdefs.h <<\EOF
1687 #define HAVE_HESIOD 1
1692 *DEFINE=HAVE_HESIOD*) ;;
1693 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1700 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1701 echo "configure:1702: checking for Zephyr" >&5
1702 # Check whether --with-zephyr or --without-zephyr was given.
1703 if test "${with_zephyr+set}" = set; then
1704 withval="$with_zephyr"
1710 echo "$ac_t""$zephyr" 1>&6
1711 if test "$zephyr" != no; then
1712 if test "$zephyr" != yes; then
1716 *-I$zephyr/include*) ;;
1717 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1721 case $PRO_C_INCLUDES in
1722 *INCLUDE=$zephyr/include*) ;;
1723 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1730 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1734 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1735 echo "configure:1736: checking for ZInitialize in -lzephyr" >&5
1736 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 ac_save_LIBS="$LIBS"
1741 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 /* Override any gcc2 internal prototype to avoid an error. */
1746 /* We use char because int might match the return type of a gcc2
1747 builtin and then its argument prototype would still apply. */
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 eval "ac_cv_lib_$ac_lib_var=yes"
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 eval "ac_cv_lib_$ac_lib_var=no"
1764 LIBS="$ac_save_LIBS"
1767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1768 echo "$ac_t""yes" 1>&6
1771 echo "$ac_t""no" 1>&6
1772 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1776 cat >> confdefs.h <<\EOF
1777 #define HAVE_ZEPHYR 1
1782 *DEFINE=HAVE_ZEPHYR*) ;;
1783 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1789 # RSAREF support (default: build util/rsaref if present)
1790 echo $ac_n "checking for RSAREF""... $ac_c" 1>&6
1791 echo "configure:1792: checking for RSAREF" >&5
1792 # Check whether --with-rsaref or --without-rsaref was given.
1793 if test "${with_rsaref+set}" = set; then
1794 withval="$with_rsaref"
1796 RSAREF_CPPFLAGS="-I$rsaref/include"
1797 RSAREF_LIBS="$rsaref/lib/rsaref.a"
1799 RSAREF_SUBDIRS=reg_svr
1800 if test -d $srcdir/util/rsaref; then
1801 rsaref=$srcdir/util/rsaref
1802 RSAREF_SUBDIRS="util/rsaref reg_svr"
1803 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
1804 # autoconf can't deal with creating util/rsaref if util doesn't exist
1805 if test ! -d util; then
1808 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
1809 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
1810 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
1816 echo "$ac_t""$rsaref" 1>&6
1817 if test "$rsaref" != no; then
1819 cat >> confdefs.h <<\EOF
1820 #define HAVE_RSAREF 1
1825 *DEFINE=HAVE_RSAREF*) ;;
1826 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
1836 # Oracle (default: yes, if $ORACLE_HOME is set)
1837 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1838 echo "configure:1839: checking for Oracle" >&5
1839 # Check whether --with-oracle or --without-oracle was given.
1840 if test "${with_oracle+set}" = set; then
1841 withval="$with_oracle"
1844 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1851 echo "$ac_t""$oracle" 1>&6
1852 if test "$oracle" != no; then
1853 echo $ac_n "checking Pro*C version""... $ac_c" 1>&6
1854 echo "configure:1855: checking Pro*C version" >&5
1855 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
1856 echo "$ac_t""$release" 1>&6
1859 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1862 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"
1865 SVRSUBDIRS='$(SVRDIRS)'
1866 SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile reg_svr/Makefile regtape/Makefile"
1867 PRO_C=$oracle/bin/proc
1868 PRO_C_OPTS=CODE=ANSI_C
1869 PRO_C_DEFS="DEFINE=_PROC_ $PRO_C_DEFS"
1879 echo $ac_n "checking for AFS""... $ac_c" 1>&6
1880 echo "configure:1881: checking for AFS" >&5
1881 # Check whether --with-afs or --without-afs was given.
1882 if test "${with_afs+set}" = set; then
1889 echo "$ac_t""$afs" 1>&6
1890 if test "$afs" != no -a "$oracle" != no; then
1891 if test "$afs" != yes; then
1892 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
1893 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
1894 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
1897 echo $ac_n "checking for insque""... $ac_c" 1>&6
1898 echo "configure:1899: checking for insque" >&5
1899 if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char insque(); below. */
1908 /* Override any gcc2 internal prototype to avoid an error. */
1909 /* We use char because int might match the return type of a gcc2
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined (__stub_insque) || defined (__stub___insque)
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1928 eval "ac_cv_func_insque=yes"
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 eval "ac_cv_func_insque=no"
1938 if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1942 echo "$ac_t""no" 1>&6
1943 echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
1944 echo "configure:1945: checking for insque in -lcompat" >&5
1945 ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
1946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 ac_save_LIBS="$LIBS"
1950 LIBS="-lcompat $LIBS"
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 /* Override any gcc2 internal prototype to avoid an error. */
1955 /* We use char because int might match the return type of a gcc2
1956 builtin and then its argument prototype would still apply. */
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1965 eval "ac_cv_lib_$ac_lib_var=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1970 eval "ac_cv_lib_$ac_lib_var=no"
1973 LIBS="$ac_save_LIBS"
1976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1977 echo "$ac_t""yes" 1>&6
1978 AFS_EXTRA_LIBS="-lcompat"
1980 echo "$ac_t""no" 1>&6
1981 { echo "configure: error: insque not found" 1>&2; exit 1; }
1986 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1987 echo "configure:1988: checking for sigvec" >&5
1988 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 /* System header to define __stub macros and hopefully few prototypes,
1995 which can conflict with char sigvec(); below. */
1997 /* Override any gcc2 internal prototype to avoid an error. */
1998 /* We use char because int might match the return type of a gcc2
1999 builtin and then its argument prototype would still apply. */
2004 /* The GNU C library defines this for functions which it implements
2005 to always fail with ENOSYS. Some functions are actually named
2006 something starting with __ and the normal name is an alias. */
2007 #if defined (__stub_sigvec) || defined (__stub___sigvec)
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017 eval "ac_cv_func_sigvec=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2022 eval "ac_cv_func_sigvec=no"
2027 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
2028 echo "$ac_t""yes" 1>&6
2031 echo "$ac_t""no" 1>&6
2032 echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
2033 echo "configure:2034: checking for sigvec in -lucb" >&5
2034 ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
2035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 ac_save_LIBS="$LIBS"
2039 LIBS="-lucb -L/usr/ucblib $LIBS"
2040 cat > conftest.$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054 eval "ac_cv_lib_$ac_lib_var=yes"
2056 echo "configure: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2059 eval "ac_cv_lib_$ac_lib_var=no"
2062 LIBS="$ac_save_LIBS"
2065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
2069 echo "$ac_t""no" 1>&6
2075 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
2076 echo "configure:2077: checking for pioctl in -lsys" >&5
2077 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
2078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 ac_save_LIBS="$LIBS"
2082 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* Override any gcc2 internal prototype to avoid an error. */
2087 /* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2102 eval "ac_cv_lib_$ac_lib_var=no"
2105 LIBS="$ac_save_LIBS"
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2112 echo "$ac_t""no" 1>&6
2113 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
2117 cat >> confdefs.h <<\EOF
2123 *DEFINE=HAVE_AFS*) ;;
2124 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2129 AFS_SUBDIRS="incremental"
2130 AFS_OUTPUT_FILES="incremental/Makefile"
2131 if test -d $srcdir/afssync; then
2132 AFS_SUBDIRS="$AFS_SUBDIRS afssync"
2133 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
2144 echo "checking for GNU readline..." 1>&6
2145 echo "configure:2146: checking for GNU readline..." >&5
2146 # Check whether --with-readline or --without-readline was given.
2147 if test "${with_readline+set}" = set; then
2148 withval="$with_readline"
2149 readline="$withval"; echo "$ac_t""$withval" 1>&6
2151 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2152 echo "configure:2153: checking for readline in -lreadline" >&5
2153 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 ac_save_LIBS="$LIBS"
2158 LIBS="-lreadline -ltermcap $LIBS"
2159 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2162 /* Override any gcc2 internal prototype to avoid an error. */
2163 /* We use char because int might match the return type of a gcc2
2164 builtin and then its argument prototype would still apply. */
2171 if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2173 eval "ac_cv_lib_$ac_lib_var=yes"
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2178 eval "ac_cv_lib_$ac_lib_var=no"
2181 LIBS="$ac_save_LIBS"
2184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2188 echo "$ac_t""no" 1>&6
2189 if test "$athena" = true; then
2190 unset ac_cv_lib_readline_readline
2191 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2192 echo "configure:2193: checking for readline in -lreadline" >&5
2193 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 ac_save_LIBS="$LIBS"
2198 LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 /* Override any gcc2 internal prototype to avoid an error. */
2203 /* We use char because int might match the return type of a gcc2
2204 builtin and then its argument prototype would still apply. */
2211 if { (eval echo configure:2212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2213 eval "ac_cv_lib_$ac_lib_var=yes"
2215 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5
2218 eval "ac_cv_lib_$ac_lib_var=no"
2221 LIBS="$ac_save_LIBS"
2224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2228 echo "$ac_t""no" 1>&6
2237 if test "$readline" != no; then
2238 if test "$readline" != yes; then
2239 READLINE_CPPFLAGS="-I$readline/include"
2240 READLINE_LIBS="-L$readline/lib"
2242 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
2243 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
2250 echo "checking for curses" 1>&6
2251 echo "configure:2252: checking for curses" >&5
2252 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2253 echo "configure:2254: checking for main in -lcurses" >&5
2254 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 ac_save_LIBS="$LIBS"
2259 LIBS="-lcurses $LIBS"
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2268 if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2270 eval "ac_cv_lib_$ac_lib_var=yes"
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2275 eval "ac_cv_lib_$ac_lib_var=no"
2278 LIBS="$ac_save_LIBS"
2281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2285 echo "$ac_t""no" 1>&6
2286 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2287 echo "configure:2288: checking for main in -lncurses" >&5
2288 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 ac_save_LIBS="$LIBS"
2293 LIBS="-lncurses $LIBS"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2304 eval "ac_cv_lib_$ac_lib_var=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 eval "ac_cv_lib_$ac_lib_var=no"
2312 LIBS="$ac_save_LIBS"
2315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2319 echo "$ac_t""no" 1>&6
2324 if test -n "$curses"; then
2327 echo "checking if curses needs termcap" 1>&6
2328 echo "configure:2329: checking if curses needs termcap" >&5
2329 if test "$cross_compiling" = yes; then
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2336 main(int argc, char **argv)
2343 if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2345 CURSES_LIBS="-l$curses"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 LIBS="-l$curses -ltermcap"
2351 if test "$cross_compiling" = yes; then
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2358 main(int argc, char **argv)
2365 if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2367 CURSES_LIBS="-l$curses -ltermcap"
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2383 if test -n "$CURSES_LIBS"; then
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2391 WINDOW *w; getmaxx(w);
2394 if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2406 WINDOW *w; w->_maxx;
2409 if { (eval echo configure:2410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2411 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2421 cat > conftest.$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2426 newterm(NULL, NULL, NULL);
2429 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2438 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2439 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2441 echo "configure: warning: Couldn't find -lcurses" 1>&2
2448 for ac_func in getusershell strlcpy strlcat uname
2450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2451 echo "configure:2452: checking for $ac_func" >&5
2452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 /* System header to define __stub macros and hopefully few prototypes,
2459 which can conflict with char $ac_func(); below. */
2461 /* Override any gcc2 internal prototype to avoid an error. */
2462 /* We use char because int might match the return type of a gcc2
2463 builtin and then its argument prototype would still apply. */
2468 /* The GNU C library defines this for functions which it implements
2469 to always fail with ENOSYS. Some functions are actually named
2470 something starting with __ and the normal name is an alias. */
2471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479 if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2481 eval "ac_cv_func_$ac_func=yes"
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2486 eval "ac_cv_func_$ac_func=no"
2491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2492 echo "$ac_t""yes" 1>&6
2493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2494 cat >> confdefs.h <<EOF
2495 #define $ac_tr_func 1
2499 echo "$ac_t""no" 1>&6
2504 echo $ac_n "checking for sigaction""... $ac_c" 1>&6
2505 echo "configure:2506: checking for sigaction" >&5
2506 if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 /* System header to define __stub macros and hopefully few prototypes,
2513 which can conflict with char sigaction(); below. */
2515 /* Override any gcc2 internal prototype to avoid an error. */
2516 /* We use char because int might match the return type of a gcc2
2517 builtin and then its argument prototype would still apply. */
2522 /* The GNU C library defines this for functions which it implements
2523 to always fail with ENOSYS. Some functions are actually named
2524 something starting with __ and the normal name is an alias. */
2525 #if defined (__stub_sigaction) || defined (__stub___sigaction)
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2535 eval "ac_cv_func_sigaction=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 eval "ac_cv_func_sigaction=no"
2545 if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 cat >> confdefs.h <<\EOF
2548 #define HAVE_POSIX_SIGNALS 1
2552 echo "$ac_t""no" 1>&6
2556 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2557 echo "configure:2558: checking how to run the C preprocessor" >&5
2558 # On Suns, sometimes $CPP names a directory.
2559 if test -n "$CPP" && test -d "$CPP"; then
2562 if test -z "$CPP"; then
2563 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 # This must be in double quotes, not single quotes, because CPP may get
2567 # substituted into the Makefile and "${CC-cc}" will confuse make.
2569 # On the NeXT, cc -E runs the code through the compiler's parser,
2570 # not just through cpp.
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2578 { (eval echo configure:2579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2580 if test -z "$ac_err"; then
2584 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2587 CPP="${CC-cc} -E -traditional-cpp"
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597 if test -z "$ac_err"; then
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 CPP="${CC-cc} -nologo -E"
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612 { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2614 if test -z "$ac_err"; then
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2628 ac_cv_prog_CPP="$CPP"
2630 CPP="$ac_cv_prog_CPP"
2632 ac_cv_prog_CPP="$CPP"
2634 echo "$ac_t""$CPP" 1>&6
2636 for ac_hdr in unistd.h getopt.h
2638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $ac_hdr" >&5
2641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2650 { (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2652 if test -z "$ac_err"; then
2654 eval "ac_cv_header_$ac_safe=yes"
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2660 eval "ac_cv_header_$ac_safe=no"
2664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2665 echo "$ac_t""yes" 1>&6
2666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2667 cat >> confdefs.h <<EOF
2668 #define $ac_tr_hdr 1
2672 echo "$ac_t""no" 1>&6
2678 case $PRO_C_INCLUDES in
2679 *INCLUDE='$(srcdir)'*) ;;
2680 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2686 *-I'$(SRCTOP)/include'*) ;;
2687 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2691 case $PRO_C_INCLUDES in
2692 *INCLUDE='$(SRCTOP)/include'*) ;;
2693 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2700 *-I'$(SRCTOP)/lib'*) ;;
2701 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2705 case $PRO_C_INCLUDES in
2706 *INCLUDE='$(SRCTOP)/lib'*) ;;
2707 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2714 *-I'$(BUILDTOP)/lib'*) ;;
2715 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2719 case $PRO_C_INCLUDES in
2720 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2721 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2728 *-I'$(BUILDTOP)/db'*) ;;
2729 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2733 case $PRO_C_INCLUDES in
2734 *INCLUDE='$(BUILDTOP)/db'*) ;;
2735 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2743 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
2747 case $PRO_C_INCLUDES in
2748 *INCLUDE='$(srcdir)'*) ;;
2749 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2753 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
2754 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
2755 LIBS="-lmoira $KLIBS"
2758 MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a'
2762 cat > confcache <<\EOF
2763 # This file is a shell script that caches the results of configure
2764 # tests run on this system so they can be shared between configure
2765 # scripts and configure runs. It is not useful on other systems.
2766 # If it contains results you don't want to keep, you may remove or edit it.
2768 # By default, configure uses ./config.cache as the cache file,
2769 # creating it if it does not exist already. You can give configure
2770 # the --cache-file=FILE option to use a different cache file; that is
2771 # what configure does when it calls configure scripts in
2772 # subdirectories, so they share the cache.
2773 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2774 # config.status only pays attention to the cache file if you give it the
2775 # --recheck option to rerun configure.
2778 # The following way of writing the cache mishandles newlines in values,
2779 # but we know of no workaround that is simple, portable, and efficient.
2780 # So, don't put newlines in cache variables' values.
2781 # Ultrix sh set writes to stderr and can't be redirected directly,
2782 # and sets the high bit in the cache file unless we assign to the vars.
2784 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2786 # `set' does not quote correctly, so add quotes (double-quote substitution
2787 # turns \\\\ into \\, and sed turns \\ into \).
2789 -e "s/'/'\\\\''/g" \
2790 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2793 # `set' quotes correctly as required by POSIX, so do not add quotes.
2794 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2797 if cmp -s $cache_file confcache; then
2800 if test -w $cache_file; then
2801 echo "updating cache $cache_file"
2802 cat confcache > $cache_file
2804 echo "not updating unwritable cache $cache_file"
2809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2812 # Let make expand exec_prefix.
2813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2815 # Any assignment to VPATH causes Sun make to only execute
2816 # the first set of double-colon rules, so remove it if not needed.
2817 # If there is a colon in the path, we need to keep it.
2818 if test "x$srcdir" = x.; then
2819 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2824 # Transform confdefs.h into DEFS.
2825 # Protect against shell expansion while executing Makefile rules.
2826 # Protect against Makefile macro expansion.
2827 cat > conftest.defs <<\EOF
2828 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2829 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2834 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2838 # Without the "./", some shells look in PATH for config.status.
2839 : ${CONFIG_STATUS=./config.status}
2841 echo creating $CONFIG_STATUS
2842 rm -f $CONFIG_STATUS
2843 cat > $CONFIG_STATUS <<EOF
2845 # Generated automatically by configure.
2846 # Run this file to recreate the current configuration.
2847 # This directory was configured as follows,
2848 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2850 # $0 $ac_configure_args
2852 # Compiler output produced by configure, useful for debugging
2853 # configure, is in ./config.log if it exists.
2855 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2858 case "\$ac_option" in
2859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2860 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2861 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2862 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2863 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2865 -help | --help | --hel | --he | --h)
2866 echo "\$ac_cs_usage"; exit 0 ;;
2867 *) echo "\$ac_cs_usage"; exit 1 ;;
2871 ac_given_srcdir=$srcdir
2872 ac_given_INSTALL="$INSTALL"
2874 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
2875 clients/lib/Makefile clients/addusr/Makefile \
2876 clients/blanche/Makefile clients/mailmaint/Makefile
2877 clients/moira/Makefile clients/mrcheck/Makefile
2878 clients/mrtest/Makefile clients/stella/Makefile \
2879 clients/passwd/Makefile update/Makefile man/Makefile \
2880 $SERVER_OUTPUT_FILES $AFS_OUTPUT_FILES \
2881 $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2883 cat >> $CONFIG_STATUS <<EOF
2885 # Protect against being on the right side of a sed subst in config.status.
2886 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2887 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2891 s%@CFLAGS@%$CFLAGS%g
2892 s%@CPPFLAGS@%$CPPFLAGS%g
2893 s%@CXXFLAGS@%$CXXFLAGS%g
2894 s%@FFLAGS@%$FFLAGS%g
2896 s%@LDFLAGS@%$LDFLAGS%g
2898 s%@exec_prefix@%$exec_prefix%g
2899 s%@prefix@%$prefix%g
2900 s%@program_transform_name@%$program_transform_name%g
2901 s%@bindir@%$bindir%g
2902 s%@sbindir@%$sbindir%g
2903 s%@libexecdir@%$libexecdir%g
2904 s%@datadir@%$datadir%g
2905 s%@sysconfdir@%$sysconfdir%g
2906 s%@sharedstatedir@%$sharedstatedir%g
2907 s%@localstatedir@%$localstatedir%g
2908 s%@libdir@%$libdir%g
2909 s%@includedir@%$includedir%g
2910 s%@oldincludedir@%$oldincludedir%g
2911 s%@infodir@%$infodir%g
2912 s%@mandir@%$mandir%g
2914 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2915 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2916 s%@INSTALL_DATA@%$INSTALL_DATA%g
2917 s%@RANLIB@%$RANLIB%g
2918 s%@SET_MAKE@%$SET_MAKE%g
2919 s%@mrbindir@%$mrbindir%g
2920 s%@subdirs@%$subdirs%g
2921 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
2922 s%@COMPILE_ET@%$COMPILE_ET%g
2923 s%@REG_SVR_DEFS@%$REG_SVR_DEFS%g
2924 s%@REG_SVR_INCLUDES@%$REG_SVR_INCLUDES%g
2925 s%@REG_SVR_LIBS@%$REG_SVR_LIBS%g
2926 s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g
2927 s%@RSAREF_LIBS@%$RSAREF_LIBS%g
2928 s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g
2929 s%@RSAREF_LIBDEP@%$RSAREF_LIBDEP%g
2931 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
2932 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
2933 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
2934 s%@SQL_LIBS@%$SQL_LIBS%g
2935 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
2936 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
2937 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
2938 s%@AFS_LIBS@%$AFS_LIBS%g
2939 s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
2940 s%@AFS_DIR@%$AFS_DIR%g
2941 s%@AFS_SUBDIRS@%$AFS_SUBDIRS%g
2942 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
2943 s%@READLINE_LIBS@%$READLINE_LIBS%g
2944 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
2945 s%@CURSES_LIBS@%$CURSES_LIBS%g
2946 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
2949 s%@MR_LIBDEP@%$MR_LIBDEP%g
2954 cat >> $CONFIG_STATUS <<\EOF
2956 # Split the substitutions into bite-sized pieces for seds with
2957 # small command number limits, like on Digital OSF/1 and HP-UX.
2958 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2959 ac_file=1 # Number of current file.
2960 ac_beg=1 # First line for current file.
2961 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2964 while $ac_more_lines; do
2965 if test $ac_beg -gt 1; then
2966 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2968 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2970 if test ! -s conftest.s$ac_file; then
2972 rm -f conftest.s$ac_file
2974 if test -z "$ac_sed_cmds"; then
2975 ac_sed_cmds="sed -f conftest.s$ac_file"
2977 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2979 ac_file=`expr $ac_file + 1`
2981 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2984 if test -z "$ac_sed_cmds"; then
2989 cat >> $CONFIG_STATUS <<EOF
2991 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
2992 clients/lib/Makefile clients/addusr/Makefile \
2993 clients/blanche/Makefile clients/mailmaint/Makefile
2994 clients/moira/Makefile clients/mrcheck/Makefile
2995 clients/mrtest/Makefile clients/stella/Makefile \
2996 clients/passwd/Makefile update/Makefile man/Makefile \
2997 $SERVER_OUTPUT_FILES $AFS_OUTPUT_FILES \
2998 $RSAREF_OUTPUT_FILES"}
3000 cat >> $CONFIG_STATUS <<\EOF
3001 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3004 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3005 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3006 *) ac_file_in="${ac_file}.in" ;;
3009 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3011 # Remove last slash and all that follows it. Not all systems have dirname.
3012 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3014 # The file is in a subdirectory.
3015 test ! -d "$ac_dir" && mkdir "$ac_dir"
3016 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3017 # A "../" for each directory in $ac_dir_suffix.
3018 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3020 ac_dir_suffix= ac_dots=
3023 case "$ac_given_srcdir" in
3025 if test -z "$ac_dots"; then top_srcdir=.
3026 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3027 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3029 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3030 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3033 case "$ac_given_INSTALL" in
3034 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3035 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3038 echo creating "$ac_file"
3040 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3042 *Makefile*) ac_comsub="1i\\
3043 # $configure_input" ;;
3047 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3049 s%@configure_input@%$configure_input%g
3050 s%@srcdir@%$srcdir%g
3051 s%@top_srcdir@%$top_srcdir%g
3052 s%@INSTALL@%$INSTALL%g
3053 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3058 cat >> $CONFIG_STATUS <<EOF
3061 cat >> $CONFIG_STATUS <<\EOF
3065 chmod +x $CONFIG_STATUS
3066 rm -fr confdefs* $ac_clean_files
3067 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3069 if test "$no_recursion" != yes; then
3071 # Remove --cache-file and --srcdir arguments so they do not pile up.
3072 ac_sub_configure_args=
3074 for ac_arg in $ac_configure_args; do
3075 if test -n "$ac_prev"; then
3080 -cache-file | --cache-file | --cache-fil | --cache-fi \
3081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3082 ac_prev=cache_file ;;
3083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3090 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3094 for ac_config_dir in $COM_ERR_SUBDIR; do
3096 # Do not complain, so a configure script can configure whichever
3097 # parts of a large source tree are present.
3098 if test ! -d $srcdir/$ac_config_dir; then
3102 echo configuring in $ac_config_dir
3107 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3109 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3117 # A "../" for each directory in /$ac_config_dir.
3118 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3121 .) # No --srcdir option. We are building in place.
3122 ac_sub_srcdir=$srcdir ;;
3123 /*) # Absolute path.
3124 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3126 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3129 # Check for guested configure; otherwise get Cygnus style configure.
3130 if test -f $ac_sub_srcdir/configure; then
3131 ac_sub_configure=$ac_sub_srcdir/configure
3132 elif test -f $ac_sub_srcdir/configure.in; then
3133 ac_sub_configure=$ac_configure
3135 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3139 # The recursion is here.
3140 if test -n "$ac_sub_configure"; then
3142 # Make the cache file name correct relative to the subdirectory.
3143 case "$cache_file" in
3144 /*) ac_sub_cache_file=$cache_file ;;
3146 ac_sub_cache_file="$ac_dots$cache_file" ;;
3148 case "$ac_given_INSTALL" in
3149 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3150 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3153 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3154 # The eval makes quoting arguments work.
3155 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3158 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }