3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-krb4=PREFIX Specify location of krb4"
19 --with-com_err=PREFIX Specify location of com_err"
21 --with-hesiod=PREFIX Specify location of Hesiod"
23 --with-zephyr=PREFIX Specify location of Zephyr"
25 --with-gdss=PREFIX Specify location of GDSS"
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 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
105 -cache-file | --cache-file | --cache-fil | --cache-fi \
106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107 ac_prev=cache_file ;;
108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110 cache_file="$ac_optarg" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
118 -disable-* | --disable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* | --enable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142 | --exec | --exe | --ex)
143 ac_prev=exec_prefix ;;
144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146 | --exec=* | --exe=* | --ex=*)
147 exec_prefix="$ac_optarg" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
153 -help | --help | --hel | --he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340 | --syscon | --sysco | --sysc | --sys | --sy)
341 ac_prev=sysconfdir ;;
342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344 sysconfdir="$ac_optarg" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.12"
359 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* | --without-*)
372 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385 | --x-incl | --x-inc | --x-in | --x-i)
386 ac_prev=x_includes ;;
387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389 x_includes="$ac_optarg" ;;
391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393 ac_prev=x_libraries ;;
394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396 x_libraries="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c) ;;
448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=patchlevel.h
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE; then
501 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
550 # Extract the first word of "gcc", so it can be a program name with args.
551 set dummy gcc; ac_word=$2
552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553 echo "configure:554: checking for $ac_word" >&5
554 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 if test -n "$CC"; then
558 ac_cv_prog_CC="$CC" # Let the user override the test.
560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
561 for ac_dir in $PATH; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
572 if test -n "$CC"; then
573 echo "$ac_t""$CC" 1>&6
575 echo "$ac_t""no" 1>&6
578 if test -z "$CC"; then
579 # Extract the first word of "cc", so it can be a program name with args.
580 set dummy cc; ac_word=$2
581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
582 echo "configure:583: checking for $ac_word" >&5
583 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 if test -n "$CC"; then
587 ac_cv_prog_CC="$CC" # Let the user override the test.
589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
591 for ac_dir in $PATH; do
592 test -z "$ac_dir" && ac_dir=.
593 if test -f $ac_dir/$ac_word; then
594 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
603 if test $ac_prog_rejected = yes; then
604 # We found a bogon in the path, so make sure we never use it.
605 set dummy $ac_cv_prog_CC
607 if test $# -gt 0; then
608 # We chose a different compiler from the bogus one.
609 # However, it has the same basename, so the bogon will be chosen
610 # first if we set CC to just the basename; use the full file name.
612 set dummy "$ac_dir/$ac_word" "$@"
620 if test -n "$CC"; then
621 echo "$ac_t""$CC" 1>&6
623 echo "$ac_t""no" 1>&6
626 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
629 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
630 echo "configure:631: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
634 ac_cpp='$CPP $CPPFLAGS'
635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
636 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
637 cross_compiling=$ac_cv_prog_cc_cross
639 cat > conftest.$ac_ext <<EOF
640 #line 641 "configure"
641 #include "confdefs.h"
644 if { (eval echo configure:645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
645 ac_cv_prog_cc_works=yes
646 # If we can't run a trivial program, we are probably using a cross compiler.
647 if (./conftest; exit) 2>/dev/null; then
648 ac_cv_prog_cc_cross=no
650 ac_cv_prog_cc_cross=yes
653 echo "configure: failed program was:" >&5
654 cat conftest.$ac_ext >&5
655 ac_cv_prog_cc_works=no
659 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
660 if test $ac_cv_prog_cc_works = no; then
661 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
663 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
664 echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
665 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
666 cross_compiling=$ac_cv_prog_cc_cross
668 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
669 echo "configure:670: checking whether we are using GNU C" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 cat > conftest.c <<EOF
678 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
685 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
687 if test $ac_cv_prog_gcc = yes; then
689 ac_test_CFLAGS="${CFLAGS+set}"
690 ac_save_CFLAGS="$CFLAGS"
692 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${CC-cc} accepts -g" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 echo 'void f(){}' > conftest.c
698 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
707 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
708 if test "$ac_test_CFLAGS" = set; then
709 CFLAGS="$ac_save_CFLAGS"
710 elif test $ac_cv_prog_cc_g = yes; then
717 test "${CFLAGS+set}" = set || CFLAGS="-g"
721 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
722 if test -f $ac_dir/install-sh; then
724 ac_install_sh="$ac_aux_dir/install-sh -c"
726 elif test -f $ac_dir/install.sh; then
728 ac_install_sh="$ac_aux_dir/install.sh -c"
732 if test -z "$ac_aux_dir"; then
733 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
735 ac_config_guess=$ac_aux_dir/config.guess
736 ac_config_sub=$ac_aux_dir/config.sub
737 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
739 # Find a good install program. We prefer a C program (faster),
740 # so one script is as good as another. But avoid the broken or
741 # incompatible versions:
742 # SysV /etc/install, /usr/sbin/install
743 # SunOS /usr/etc/install
746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
748 # ./install, which can be erroneously created by make from ./install.sh.
749 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
750 echo "configure:751: checking for a BSD compatible install" >&5
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
756 for ac_dir in $PATH; do
757 # Account for people who put trailing slashes in PATH elements.
759 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
761 # OSF1 and SCO ODT 3.0 have their own names for install.
762 for ac_prog in ginstall installbsd scoinst install; do
763 if test -f $ac_dir/$ac_prog; then
764 if test $ac_prog = install &&
765 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
766 # AIX install. It has an incompatible calling convention.
767 # OSF/1 installbsd also uses dspmsg, but is usable.
770 ac_cv_path_install="$ac_dir/$ac_prog -c"
781 if test "${ac_cv_path_install+set}" = set; then
782 INSTALL="$ac_cv_path_install"
784 # As a last resort, use the slow shell script. We don't cache a
785 # path for INSTALL within a source directory, because that will
786 # break other packages using the cache if that directory is
787 # removed, or if the path is relative.
788 INSTALL="$ac_install_sh"
791 echo "$ac_t""$INSTALL" 1>&6
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
799 # Extract the first word of "ranlib", so it can be a program name with args.
800 set dummy ranlib; ac_word=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 if test -n "$RANLIB"; then
807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
810 for ac_dir in $PATH; do
811 test -z "$ac_dir" && ac_dir=.
812 if test -f $ac_dir/$ac_word; then
813 ac_cv_prog_RANLIB="ranlib"
818 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
821 RANLIB="$ac_cv_prog_RANLIB"
822 if test -n "$RANLIB"; then
823 echo "$ac_t""$RANLIB" 1>&6
825 echo "$ac_t""no" 1>&6
828 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
829 echo "configure:830: checking whether ${MAKE-make} sets \${MAKE}" >&5
830 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
831 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 cat > conftestmake <<\EOF
836 @echo 'ac_maketemp="${MAKE}"'
838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
839 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
840 if test -n "$ac_maketemp"; then
841 eval ac_cv_prog_make_${ac_make}_set=yes
843 eval ac_cv_prog_make_${ac_make}_set=no
847 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
848 echo "$ac_t""yes" 1>&6
851 echo "$ac_t""no" 1>&6
852 SET_MAKE="MAKE=${MAKE-make}"
856 if test "$athena" = true; then
858 with_readline=/mit/gnu
860 prefix=/afs/athena.mit.edu/system/moira
861 bindir=$prefix/arch/$ATHENA_SYS/bin
865 # We currently just don't support changing this
869 # Athena-local policy decisions
870 echo $ac_n "checking for Athena""... $ac_c" 1>&6
871 echo "configure:872: checking for Athena" >&5
872 # Check whether --enable-athena or --disable-athena was given.
873 if test "${enable_athena+set}" = set; then
874 enableval="$enable_athena"
877 if test "$athena" = true; then
884 echo "$ac_t""$enableval" 1>&6
885 if test "$enableval" = yes; then
887 cat >> confdefs.h <<\EOF
894 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
900 # Networking libraries
901 echo "checking network libraries..." 1>&6
902 echo "configure:903: checking network libraries..." >&5
903 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
904 echo "configure:905: checking for gethostbyname" >&5
905 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 cat > conftest.$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
911 /* System header to define __stub macros and hopefully few prototypes,
912 which can conflict with char gethostbyname(); below. */
914 /* Override any gcc2 internal prototype to avoid an error. */
915 /* We use char because int might match the return type of a gcc2
916 builtin and then its argument prototype would still apply. */
917 char gethostbyname();
921 /* The GNU C library defines this for functions which it implements
922 to always fail with ENOSYS. Some functions are actually named
923 something starting with __ and the normal name is an alias. */
924 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
932 if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
934 eval "ac_cv_func_gethostbyname=yes"
936 echo "configure: failed program was:" >&5
937 cat conftest.$ac_ext >&5
939 eval "ac_cv_func_gethostbyname=no"
944 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
945 echo "$ac_t""yes" 1>&6
948 echo "$ac_t""no" 1>&6
949 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
950 echo "configure:951: checking for gethostbyname in -lnsl" >&5
951 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
957 cat > conftest.$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
960 /* Override any gcc2 internal prototype to avoid an error. */
961 /* We use char because int might match the return type of a gcc2
962 builtin and then its argument prototype would still apply. */
963 char gethostbyname();
969 if { (eval echo configure:970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
971 eval "ac_cv_lib_$ac_lib_var=yes"
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
976 eval "ac_cv_lib_$ac_lib_var=no"
982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
983 echo "$ac_t""yes" 1>&6
984 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
986 cat >> confdefs.h <<EOF
993 echo "$ac_t""no" 1>&6
994 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
995 echo "configure:996: checking for gethostbyname in -lresolv" >&5
996 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 ac_save_LIBS="$LIBS"
1001 LIBS="-lresolv $LIBS"
1002 cat > conftest.$ac_ext <<EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1005 /* Override any gcc2 internal prototype to avoid an error. */
1006 /* We use char because int might match the return type of a gcc2
1007 builtin and then its argument prototype would still apply. */
1008 char gethostbyname();
1014 if { (eval echo configure:1015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1016 eval "ac_cv_lib_$ac_lib_var=yes"
1018 echo "configure: failed program was:" >&5
1019 cat conftest.$ac_ext >&5
1021 eval "ac_cv_lib_$ac_lib_var=no"
1024 LIBS="$ac_save_LIBS"
1027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1028 echo "$ac_t""yes" 1>&6
1029 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1031 cat >> confdefs.h <<EOF
1032 #define $ac_tr_lib 1
1035 LIBS="-lresolv $LIBS"
1038 echo "$ac_t""no" 1>&6
1045 echo $ac_n "checking for socket""... $ac_c" 1>&6
1046 echo "configure:1047: checking for socket" >&5
1047 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 cat > conftest.$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1053 /* System header to define __stub macros and hopefully few prototypes,
1054 which can conflict with char socket(); below. */
1056 /* Override any gcc2 internal prototype to avoid an error. */
1057 /* We use char because int might match the return type of a gcc2
1058 builtin and then its argument prototype would still apply. */
1063 /* The GNU C library defines this for functions which it implements
1064 to always fail with ENOSYS. Some functions are actually named
1065 something starting with __ and the normal name is an alias. */
1066 #if defined (__stub_socket) || defined (__stub___socket)
1074 if { (eval echo configure:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1076 eval "ac_cv_func_socket=yes"
1078 echo "configure: failed program was:" >&5
1079 cat conftest.$ac_ext >&5
1081 eval "ac_cv_func_socket=no"
1086 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1087 echo "$ac_t""yes" 1>&6
1090 echo "$ac_t""no" 1>&6
1091 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1092 echo "configure:1093: checking for socket in -lsocket" >&5
1093 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 ac_save_LIBS="$LIBS"
1098 LIBS="-lsocket $LIBS"
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1102 /* Override any gcc2 internal prototype to avoid an error. */
1103 /* We use char because int might match the return type of a gcc2
1104 builtin and then its argument prototype would still apply. */
1111 if { (eval echo configure:1112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1113 eval "ac_cv_lib_$ac_lib_var=yes"
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1118 eval "ac_cv_lib_$ac_lib_var=no"
1121 LIBS="$ac_save_LIBS"
1124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1125 echo "$ac_t""yes" 1>&6
1126 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1128 cat >> confdefs.h <<EOF
1129 #define $ac_tr_lib 1
1132 LIBS="-lsocket $LIBS"
1135 echo "$ac_t""no" 1>&6
1136 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1137 echo "configure:1138: checking for socket in -lsocket" >&5
1138 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 ac_save_LIBS="$LIBS"
1143 LIBS="-lsocket -lnsl $LIBS"
1144 cat > conftest.$ac_ext <<EOF
1145 #line 1146 "configure"
1146 #include "confdefs.h"
1147 /* Override any gcc2 internal prototype to avoid an error. */
1148 /* We use char because int might match the return type of a gcc2
1149 builtin and then its argument prototype would still apply. */
1156 if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1158 eval "ac_cv_lib_$ac_lib_var=yes"
1160 echo "configure: failed program was:" >&5
1161 cat conftest.$ac_ext >&5
1163 eval "ac_cv_lib_$ac_lib_var=no"
1166 LIBS="$ac_save_LIBS"
1169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1170 echo "$ac_t""yes" 1>&6
1171 LIBS="-lsocket -lnsl $LIBS"
1173 echo "$ac_t""no" 1>&6
1182 # Kerberos (required)
1183 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1184 echo "configure:1185: checking for Kerberos 4" >&5
1185 # Check whether --with-krb4 or --without-krb4 was given.
1186 if test "${with_krb4+set}" = set; then
1187 withval="$with_krb4"
1193 echo "$ac_t""$krb4" 1>&6
1194 if test $krb4 = "no"; then
1195 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1197 if test "$krb4" != yes; then
1201 *-I$krb4/include*) ;;
1202 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1206 case $PRO_C_INCLUDES in
1207 *INCLUDE=$krb4/include*) ;;
1208 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1212 if test -d "$krb4/include/kerberosIV"; then
1216 *-I$krb4/include/kerberosIV*) ;;
1217 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1221 case $PRO_C_INCLUDES in
1222 *INCLUDE=$krb4/include/kerberosIV*) ;;
1223 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1231 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1234 elif test -d /usr/include/kerberosIV; then
1238 *-I/usr/include/kerberosIV*) ;;
1239 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1243 case $PRO_C_INCLUDES in
1244 *INCLUDE=/usr/include/kerberosIV*) ;;
1245 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1250 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1251 echo "configure:1252: checking for krb_rd_req in -lkrb4" >&5
1252 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 ac_save_LIBS="$LIBS"
1257 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto $LIBS"
1258 cat > conftest.$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1261 /* Override any gcc2 internal prototype to avoid an error. */
1262 /* We use char because int might match the return type of a gcc2
1263 builtin and then its argument prototype would still apply. */
1270 if { (eval echo configure:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1272 eval "ac_cv_lib_$ac_lib_var=yes"
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1277 eval "ac_cv_lib_$ac_lib_var=no"
1280 LIBS="$ac_save_LIBS"
1283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto"
1287 echo "$ac_t""no" 1>&6
1288 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1289 echo "configure:1290: checking for krb_rd_req in -lkrb" >&5
1290 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 ac_save_LIBS="$LIBS"
1295 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1299 /* Override any gcc2 internal prototype to avoid an error. */
1300 /* We use char because int might match the return type of a gcc2
1301 builtin and then its argument prototype would still apply. */
1308 if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1310 eval "ac_cv_lib_$ac_lib_var=yes"
1312 echo "configure: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1315 eval "ac_cv_lib_$ac_lib_var=no"
1318 LIBS="$ac_save_LIBS"
1321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1322 echo "$ac_t""yes" 1>&6
1323 KRB4_LIBS="-lkrb -ldes"
1325 echo "$ac_t""no" 1>&6
1326 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1332 # com_err (required, but can be built)
1333 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1334 echo "configure:1335: checking for com_err" >&5
1335 # Check whether --with-com_err or --without-com_err was given.
1336 if test "${with_com_err+set}" = set; then
1337 withval="$with_com_err"
1338 echo "$ac_t""$withval" 1>&6
1339 if test $withval = "no"; then
1340 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1342 if test $withval != "yes"; then
1346 *-I$withval/include*) ;;
1347 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1351 case $PRO_C_INCLUDES in
1352 *INCLUDE=$withval/include*) ;;
1353 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1359 *-L$withval/lib*) ;;
1360 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1364 COMPILE_ET=compile_et
1366 echo "$ac_t""util/et" 1>&6
1367 COM_ERR_SUBDIR=util/et;
1371 *-I`pwd`/util/et*) ;;
1372 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1376 case $PRO_C_INCLUDES in
1377 *INCLUDE=`pwd`/util/et*) ;;
1378 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1384 *-L`pwd`/util/et*) ;;
1385 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1388 COMPILE_ET=`pwd`/util/et/compile_et
1389 subdirs="$COM_ERR_SUBDIR"
1397 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1398 echo "configure:1399: checking for Hesiod" >&5
1399 # Check whether --with-hesiod or --without-hesiod was given.
1400 if test "${with_hesiod+set}" = set; then
1401 withval="$with_hesiod"
1407 echo "$ac_t""$hesiod" 1>&6
1408 if test "$hesiod" != no; then
1409 if test "$hesiod" != yes; then
1413 *-I$hesiod/include*) ;;
1414 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1418 case $PRO_C_INCLUDES in
1419 *INCLUDE=$hesiod/include*) ;;
1420 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1427 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1431 echo $ac_n "checking for res_send""... $ac_c" 1>&6
1432 echo "configure:1433: checking for res_send" >&5
1433 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1439 /* System header to define __stub macros and hopefully few prototypes,
1440 which can conflict with char res_send(); below. */
1442 /* Override any gcc2 internal prototype to avoid an error. */
1443 /* We use char because int might match the return type of a gcc2
1444 builtin and then its argument prototype would still apply. */
1449 /* The GNU C library defines this for functions which it implements
1450 to always fail with ENOSYS. Some functions are actually named
1451 something starting with __ and the normal name is an alias. */
1452 #if defined (__stub_res_send) || defined (__stub___res_send)
1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1462 eval "ac_cv_func_res_send=yes"
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 eval "ac_cv_func_res_send=no"
1472 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1473 echo "$ac_t""yes" 1>&6
1476 echo "$ac_t""no" 1>&6
1477 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1478 echo "configure:1479: checking for res_send in -lresolv" >&5
1479 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 ac_save_LIBS="$LIBS"
1484 LIBS="-lresolv $LIBS"
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 /* Override any gcc2 internal prototype to avoid an error. */
1489 /* We use char because int might match the return type of a gcc2
1490 builtin and then its argument prototype would still apply. */
1497 if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1499 eval "ac_cv_lib_$ac_lib_var=yes"
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1504 eval "ac_cv_lib_$ac_lib_var=no"
1507 LIBS="$ac_save_LIBS"
1510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1511 echo "$ac_t""yes" 1>&6
1512 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1514 cat >> confdefs.h <<EOF
1515 #define $ac_tr_lib 1
1518 LIBS="-lresolv $LIBS"
1521 echo "$ac_t""no" 1>&6
1526 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1527 echo "configure:1528: checking for hes_resolve in -lhesiod" >&5
1528 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 ac_save_LIBS="$LIBS"
1533 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 /* Override any gcc2 internal prototype to avoid an error. */
1538 /* We use char because int might match the return type of a gcc2
1539 builtin and then its argument prototype would still apply. */
1546 if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1548 eval "ac_cv_lib_$ac_lib_var=yes"
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1553 eval "ac_cv_lib_$ac_lib_var=no"
1556 LIBS="$ac_save_LIBS"
1559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1560 echo "$ac_t""yes" 1>&6
1563 echo "$ac_t""no" 1>&6
1564 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1568 cat >> confdefs.h <<\EOF
1569 #define HAVE_HESIOD 1
1574 *DEFINE=HAVE_HESIOD*) ;;
1575 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1582 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1583 echo "configure:1584: checking for Zephyr" >&5
1584 # Check whether --with-zephyr or --without-zephyr was given.
1585 if test "${with_zephyr+set}" = set; then
1586 withval="$with_zephyr"
1592 echo "$ac_t""$zephyr" 1>&6
1593 if test "$zephyr" != no; then
1594 if test "$zephyr" != yes; then
1598 *-I$zephyr/include*) ;;
1599 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1603 case $PRO_C_INCLUDES in
1604 *INCLUDE=$zephyr/include*) ;;
1605 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1612 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1616 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1617 echo "configure:1618: checking for ZInitialize in -lzephyr" >&5
1618 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 ac_save_LIBS="$LIBS"
1623 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* Override any gcc2 internal prototype to avoid an error. */
1628 /* We use char because int might match the return type of a gcc2
1629 builtin and then its argument prototype would still apply. */
1636 if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1638 eval "ac_cv_lib_$ac_lib_var=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.$ac_ext >&5
1643 eval "ac_cv_lib_$ac_lib_var=no"
1646 LIBS="$ac_save_LIBS"
1649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1653 echo "$ac_t""no" 1>&6
1654 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1658 cat >> confdefs.h <<\EOF
1659 #define HAVE_ZEPHYR 1
1664 *DEFINE=HAVE_ZEPHYR*) ;;
1665 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1671 # GDSS support (default: build util/gdss if present)
1672 echo $ac_n "checking for GDSS""... $ac_c" 1>&6
1673 echo "configure:1674: checking for GDSS" >&5
1674 # Check whether --with-gdss or --without-gdss was given.
1675 if test "${with_gdss+set}" = set; then
1676 withval="$with_gdss"
1678 GDSS_CPPFLAGS="-I$gdss/include"
1679 GDSS_LIBS="-L$gdss/lib -lgdss"
1681 if test -d $srcdir/util/gdss; then
1682 gdss=$srcdir/util/gdss
1683 GDSS_SUBDIR=util/gdss
1684 GDSS_OUTPUT_FILES="util/gdss/Makefile util/gdss/lib/Makefile \
1685 util/gdss/lib/crypto/Makefile util/gdss/lib/crypto/bignum/Makefile \
1686 util/gdss/lib/crypto/algorithm/Makefile"
1687 # autoconf can't deal with creating util/gdss if util doesn't exist
1688 if test ! -d util; then
1691 GDSS_CPPFLAGS='-I$(SRCTOP)/util/gdss/include'
1692 GDSS_LIBS='-L$(BUILDTOP)/util/gdss/lib -lgdss'
1698 echo "$ac_t""$gdss" 1>&6
1699 if test "$gdss" != no; then
1700 GDSS_OBJS='$(GDSS_OBJS)'
1701 GDSS_CFILES='$(GDSS_CFILES)'
1702 GDSS_TARGET='$(GDSS_TARGET)'
1704 cat >> confdefs.h <<\EOF
1710 *DEFINE=HAVE_GDSS*) ;;
1711 *) PRO_C_DEFS=DEFINE=HAVE_GDSS\ $PRO_C_DEFS ;;
1723 # RSAREF support (default: build util/rsaref if present)
1724 echo $ac_n "checking for RSAREF""... $ac_c" 1>&6
1725 echo "configure:1726: checking for RSAREF" >&5
1726 # Check whether --with-rsaref or --without-rsaref was given.
1727 if test "${with_rsaref+set}" = set; then
1728 withval="$with_rsaref"
1730 RSAREF_CPPFLAGS="-I$rsaref/include"
1731 RSAREF_LIBS="$rsaref/lib/rsaref.a"
1733 RSAREF_SUBDIRS=reg_svr
1734 if test -d $srcdir/util/rsaref; then
1735 rsaref=$srcdir/util/rsaref
1736 RSAREF_SUBDIRS="util/rsaref reg_svr"
1737 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
1738 # autoconf can't deal with creating util/rsaref if util doesn't exist
1739 if test ! -d util; then
1742 RSAREF_CPPFLAGS="-I$(SRCTOP)/util/rsaref"
1743 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
1749 echo "$ac_t""$rsaref" 1>&6
1750 if test "$rsaref" != no; then
1752 cat >> confdefs.h <<\EOF
1753 #define HAVE_RSAREF 1
1758 *DEFINE=HAVE_RSAREF*) ;;
1759 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
1768 # Oracle (default: yes, if $ORACLE_HOME is set)
1769 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1770 echo "configure:1771: checking for Oracle" >&5
1771 # Check whether --with-oracle or --without-oracle was given.
1772 if test "${with_oracle+set}" = set; then
1773 withval="$with_oracle"
1776 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1783 echo "$ac_t""$oracle" 1>&6
1784 if test "$oracle" != no; then
1785 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1786 SVRSUBDIRS='$(SVRDIRS)'
1787 SERVER_OUTPUT_FILES="db/Makefile server/Makefile afssync/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile reg_svr/Makefile regtape/Makefile"
1788 PRO_C=$oracle/bin/proc
1789 PRO_C_OPTS=CODE=ANSI_C
1799 echo $ac_n "checking for AFS""... $ac_c" 1>&6
1800 echo "configure:1801: checking for AFS" >&5
1801 # Check whether --with-afs or --without-afs was given.
1802 if test "${with_afs+set}" = set; then
1809 echo "$ac_t""$afs" 1>&6
1810 if test "$afs" != no -a "$oracle" != no; then
1811 if test "$afs" != yes; then
1812 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
1813 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
1814 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
1817 echo $ac_n "checking for insque""... $ac_c" 1>&6
1818 echo "configure:1819: checking for insque" >&5
1819 if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char insque(); below. */
1828 /* Override any gcc2 internal prototype to avoid an error. */
1829 /* We use char because int might match the return type of a gcc2
1830 builtin and then its argument prototype would still apply. */
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined (__stub_insque) || defined (__stub___insque)
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1848 eval "ac_cv_func_insque=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_func_insque=no"
1858 if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1862 echo "$ac_t""no" 1>&6
1863 echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
1864 echo "configure:1865: checking for insque in -lcompat" >&5
1865 ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
1866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 ac_save_LIBS="$LIBS"
1870 LIBS="-lcompat $LIBS"
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 /* Override any gcc2 internal prototype to avoid an error. */
1875 /* We use char because int might match the return type of a gcc2
1876 builtin and then its argument prototype would still apply. */
1883 if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1885 eval "ac_cv_lib_$ac_lib_var=yes"
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1890 eval "ac_cv_lib_$ac_lib_var=no"
1893 LIBS="$ac_save_LIBS"
1896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1897 echo "$ac_t""yes" 1>&6
1898 AFS_EXTRA_LIBS="-lcompat"
1900 echo "$ac_t""no" 1>&6
1901 { echo "configure: error: insque not found" 1>&2; exit 1; }
1906 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1907 echo "configure:1908: checking for sigvec" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1914 /* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char sigvec(); below. */
1917 /* Override any gcc2 internal prototype to avoid an error. */
1918 /* We use char because int might match the return type of a gcc2
1919 builtin and then its argument prototype would still apply. */
1924 /* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927 #if defined (__stub_sigvec) || defined (__stub___sigvec)
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1937 eval "ac_cv_func_sigvec=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_func_sigvec=no"
1947 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1951 echo "$ac_t""no" 1>&6
1952 echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
1953 echo "configure:1954: checking for sigvec in -lucb" >&5
1954 ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
1955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1958 ac_save_LIBS="$LIBS"
1959 LIBS="-lucb -L/usr/ucblib $LIBS"
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 /* Override any gcc2 internal prototype to avoid an error. */
1964 /* We use char because int might match the return type of a gcc2
1965 builtin and then its argument prototype would still apply. */
1972 if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1974 eval "ac_cv_lib_$ac_lib_var=yes"
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1979 eval "ac_cv_lib_$ac_lib_var=no"
1982 LIBS="$ac_save_LIBS"
1985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
1989 echo "$ac_t""no" 1>&6
1995 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
1996 echo "configure:1997: checking for pioctl in -lsys" >&5
1997 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
1998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 ac_save_LIBS="$LIBS"
2002 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* Override any gcc2 internal prototype to avoid an error. */
2007 /* We use char because int might match the return type of a gcc2
2008 builtin and then its argument prototype would still apply. */
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2017 eval "ac_cv_lib_$ac_lib_var=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2022 eval "ac_cv_lib_$ac_lib_var=no"
2025 LIBS="$ac_save_LIBS"
2028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029 echo "$ac_t""yes" 1>&6
2032 echo "$ac_t""no" 1>&6
2033 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
2037 cat >> confdefs.h <<\EOF
2043 *DEFINE=HAVE_AFS*) ;;
2044 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2056 echo "checking for GNU readline..." 1>&6
2057 echo "configure:2058: checking for GNU readline..." >&5
2058 # Check whether --with-readline or --without-readline was given.
2059 if test "${with_readline+set}" = set; then
2060 withval="$with_readline"
2063 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2064 echo "configure:2065: checking for readline in -lreadline" >&5
2065 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 ac_save_LIBS="$LIBS"
2070 LIBS="-lreadline -ltermcap $LIBS"
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 /* Override any gcc2 internal prototype to avoid an error. */
2075 /* We use char because int might match the return type of a gcc2
2076 builtin and then its argument prototype would still apply. */
2083 if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2085 eval "ac_cv_lib_$ac_lib_var=yes"
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2090 eval "ac_cv_lib_$ac_lib_var=no"
2093 LIBS="$ac_save_LIBS"
2096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2100 echo "$ac_t""no" 1>&6
2106 if test "$readline" != no; then
2107 if test "$readline" != yes; then
2108 READLINE_CPPFLAGS="-I$readline/include/readline -DHAVE_READLINE"
2109 READLINE_LIBS="-L$readline/lib -lreadline -ltermcap"
2117 echo "checking for curses" 1>&6
2118 echo "configure:2119: checking for curses" >&5
2119 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2120 echo "configure:2121: checking for main in -lcurses" >&5
2121 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 ac_save_LIBS="$LIBS"
2126 LIBS="-lcurses $LIBS"
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2135 if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2137 eval "ac_cv_lib_$ac_lib_var=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 eval "ac_cv_lib_$ac_lib_var=no"
2145 LIBS="$ac_save_LIBS"
2148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2152 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2154 echo "configure:2155: checking for main in -lncurses" >&5
2155 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 ac_save_LIBS="$LIBS"
2160 LIBS="-lncurses $LIBS"
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2169 if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2171 eval "ac_cv_lib_$ac_lib_var=yes"
2173 echo "configure: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2176 eval "ac_cv_lib_$ac_lib_var=no"
2179 LIBS="$ac_save_LIBS"
2182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2183 echo "$ac_t""yes" 1>&6
2186 echo "$ac_t""no" 1>&6
2191 if test -n "$curses"; then
2194 echo "checking if curses needs termcap" 1>&6
2195 echo "configure:2196: checking if curses needs termcap" >&5
2196 if test "$cross_compiling" = yes; then
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2203 main(int argc, char **argv)
2210 if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2212 CURSES_LIBS="-l$curses"
2214 echo "configure: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2217 LIBS="-l$curses -ltermcap"
2218 if test "$cross_compiling" = yes; then
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2225 main(int argc, char **argv)
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2234 CURSES_LIBS="-l$curses -ltermcap"
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2250 if test -n "$CURSES_LIBS"; then
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2258 WINDOW *w; getmaxx(w);
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2273 WINDOW *w; w->_maxx;
2276 if { (eval echo configure:2277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2278 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2283 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2289 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2290 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2292 echo "configure: warning: Couldn't find -lcurses" 1>&2
2299 for ac_func in getusershell
2301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_func" >&5
2303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 /* System header to define __stub macros and hopefully few prototypes,
2310 which can conflict with char $ac_func(); below. */
2312 /* Override any gcc2 internal prototype to avoid an error. */
2313 /* We use char because int might match the return type of a gcc2
2314 builtin and then its argument prototype would still apply. */
2319 /* The GNU C library defines this for functions which it implements
2320 to always fail with ENOSYS. Some functions are actually named
2321 something starting with __ and the normal name is an alias. */
2322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2332 eval "ac_cv_func_$ac_func=yes"
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 eval "ac_cv_func_$ac_func=no"
2342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2343 echo "$ac_t""yes" 1>&6
2344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2345 cat >> confdefs.h <<EOF
2346 #define $ac_tr_func 1
2350 echo "$ac_t""no" 1>&6
2355 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2356 echo "configure:2357: checking how to run the C preprocessor" >&5
2357 # On Suns, sometimes $CPP names a directory.
2358 if test -n "$CPP" && test -d "$CPP"; then
2361 if test -z "$CPP"; then
2362 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 # This must be in double quotes, not single quotes, because CPP may get
2366 # substituted into the Makefile and "${CC-cc}" will confuse make.
2368 # On the NeXT, cc -E runs the code through the compiler's parser,
2369 # not just through cpp.
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2377 { (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2378 ac_err=`grep -v '^ *+' conftest.out`
2379 if test -z "$ac_err"; then
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2386 CPP="${CC-cc} -E -traditional-cpp"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out`
2396 if test -z "$ac_err"; then
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2408 ac_cv_prog_CPP="$CPP"
2410 CPP="$ac_cv_prog_CPP"
2412 ac_cv_prog_CPP="$CPP"
2414 echo "$ac_t""$CPP" 1>&6
2416 ac_safe=`echo "crypt.h" | sed 'y%./+-%__p_%'`
2417 echo $ac_n "checking for crypt.h""... $ac_c" 1>&6
2418 echo "configure:2419: checking for crypt.h" >&5
2419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2428 { (eval echo configure:2429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2429 ac_err=`grep -v '^ *+' conftest.out`
2430 if test -z "$ac_err"; then
2432 eval "ac_cv_header_$ac_safe=yes"
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 eval "ac_cv_header_$ac_safe=no"
2442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2443 echo "$ac_t""yes" 1>&6
2444 CRYPT_CPPFLAGS=-DHAVE_CRYPT_H
2446 echo "$ac_t""no" 1>&6
2449 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2450 echo "configure:2451: checking for crypt" >&5
2451 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 /* System header to define __stub macros and hopefully few prototypes,
2458 which can conflict with char crypt(); below. */
2460 /* Override any gcc2 internal prototype to avoid an error. */
2461 /* We use char because int might match the return type of a gcc2
2462 builtin and then its argument prototype would still apply. */
2467 /* The GNU C library defines this for functions which it implements
2468 to always fail with ENOSYS. Some functions are actually named
2469 something starting with __ and the normal name is an alias. */
2470 #if defined (__stub_crypt) || defined (__stub___crypt)
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2480 eval "ac_cv_func_crypt=yes"
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 eval "ac_cv_func_crypt=no"
2490 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2494 echo "$ac_t""no" 1>&6
2495 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2496 echo "configure:2497: checking for crypt in -lcrypt" >&5
2497 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 ac_save_LIBS="$LIBS"
2502 LIBS="-lcrypt $LIBS"
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 /* Override any gcc2 internal prototype to avoid an error. */
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2517 eval "ac_cv_lib_$ac_lib_var=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 eval "ac_cv_lib_$ac_lib_var=no"
2525 LIBS="$ac_save_LIBS"
2528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2532 echo "$ac_t""no" 1>&6
2541 case $PRO_C_INCLUDES in
2542 *INCLUDE='$(srcdir)'*) ;;
2543 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2549 *-I'$(SRCTOP)/include'*) ;;
2550 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2554 case $PRO_C_INCLUDES in
2555 *INCLUDE='$(SRCTOP)/include'*) ;;
2556 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2563 *-I'$(SRCTOP)/lib'*) ;;
2564 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2568 case $PRO_C_INCLUDES in
2569 *INCLUDE='$(SRCTOP)/lib'*) ;;
2570 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2577 *-I'$(BUILDTOP)/lib'*) ;;
2578 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2582 case $PRO_C_INCLUDES in
2583 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2584 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2591 *-I'$(BUILDTOP)/db'*) ;;
2592 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2596 case $PRO_C_INCLUDES in
2597 *INCLUDE='$(BUILDTOP)/db'*) ;;
2598 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2606 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
2610 case $PRO_C_INCLUDES in
2611 *INCLUDE='$(srcdir)'*) ;;
2612 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2616 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
2617 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
2618 LIBS="-lmoira $KLIBS"
2622 cat > confcache <<\EOF
2623 # This file is a shell script that caches the results of configure
2624 # tests run on this system so they can be shared between configure
2625 # scripts and configure runs. It is not useful on other systems.
2626 # If it contains results you don't want to keep, you may remove or edit it.
2628 # By default, configure uses ./config.cache as the cache file,
2629 # creating it if it does not exist already. You can give configure
2630 # the --cache-file=FILE option to use a different cache file; that is
2631 # what configure does when it calls configure scripts in
2632 # subdirectories, so they share the cache.
2633 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2634 # config.status only pays attention to the cache file if you give it the
2635 # --recheck option to rerun configure.
2638 # The following way of writing the cache mishandles newlines in values,
2639 # but we know of no workaround that is simple, portable, and efficient.
2640 # So, don't put newlines in cache variables' values.
2641 # Ultrix sh set writes to stderr and can't be redirected directly,
2642 # and sets the high bit in the cache file unless we assign to the vars.
2644 case `(ac_space=' '; set) 2>&1` in
2646 # `set' does not quote correctly, so add quotes (double-quote substitution
2647 # turns \\\\ into \\, and sed turns \\ into \).
2649 -e "s/'/'\\\\''/g" \
2650 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2653 # `set' quotes correctly as required by POSIX, so do not add quotes.
2654 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2657 if cmp -s $cache_file confcache; then
2660 if test -w $cache_file; then
2661 echo "updating cache $cache_file"
2662 cat confcache > $cache_file
2664 echo "not updating unwritable cache $cache_file"
2669 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2672 # Let make expand exec_prefix.
2673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2675 # Any assignment to VPATH causes Sun make to only execute
2676 # the first set of double-colon rules, so remove it if not needed.
2677 # If there is a colon in the path, we need to keep it.
2678 if test "x$srcdir" = x.; then
2679 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2682 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2684 # Transform confdefs.h into DEFS.
2685 # Protect against shell expansion while executing Makefile rules.
2686 # Protect against Makefile macro expansion.
2687 cat > conftest.defs <<\EOF
2688 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2689 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2694 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2698 # Without the "./", some shells look in PATH for config.status.
2699 : ${CONFIG_STATUS=./config.status}
2701 echo creating $CONFIG_STATUS
2702 rm -f $CONFIG_STATUS
2703 cat > $CONFIG_STATUS <<EOF
2705 # Generated automatically by configure.
2706 # Run this file to recreate the current configuration.
2707 # This directory was configured as follows,
2708 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2710 # $0 $ac_configure_args
2712 # Compiler output produced by configure, useful for debugging
2713 # configure, is in ./config.log if it exists.
2715 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2718 case "\$ac_option" in
2719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2720 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2721 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2722 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2723 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2725 -help | --help | --hel | --he | --h)
2726 echo "\$ac_cs_usage"; exit 0 ;;
2727 *) echo "\$ac_cs_usage"; exit 1 ;;
2731 ac_given_srcdir=$srcdir
2732 ac_given_INSTALL="$INSTALL"
2734 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
2735 clients/addusr/Makefile clients/blanche/Makefile \
2736 clients/mailmaint/Makefile clients/moira/Makefile \
2737 clients/mrcheck/Makefile clients/mrtest/Makefile \
2738 clients/passwd/Makefile clients/userreg/Makefile \
2739 update/Makefile man/Makefile \
2740 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2742 cat >> $CONFIG_STATUS <<EOF
2744 # Protect against being on the right side of a sed subst in config.status.
2745 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2746 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2749 s%@CFLAGS@%$CFLAGS%g
2750 s%@CPPFLAGS@%$CPPFLAGS%g
2751 s%@CXXFLAGS@%$CXXFLAGS%g
2753 s%@LDFLAGS@%$LDFLAGS%g
2755 s%@exec_prefix@%$exec_prefix%g
2756 s%@prefix@%$prefix%g
2757 s%@program_transform_name@%$program_transform_name%g
2758 s%@bindir@%$bindir%g
2759 s%@sbindir@%$sbindir%g
2760 s%@libexecdir@%$libexecdir%g
2761 s%@datadir@%$datadir%g
2762 s%@sysconfdir@%$sysconfdir%g
2763 s%@sharedstatedir@%$sharedstatedir%g
2764 s%@localstatedir@%$localstatedir%g
2765 s%@libdir@%$libdir%g
2766 s%@includedir@%$includedir%g
2767 s%@oldincludedir@%$oldincludedir%g
2768 s%@infodir@%$infodir%g
2769 s%@mandir@%$mandir%g
2771 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2772 s%@INSTALL_DATA@%$INSTALL_DATA%g
2773 s%@RANLIB@%$RANLIB%g
2774 s%@SET_MAKE@%$SET_MAKE%g
2775 s%@mrbindir@%$mrbindir%g
2776 s%@subdirs@%$subdirs%g
2777 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
2778 s%@COMPILE_ET@%$COMPILE_ET%g
2779 s%@GDSS_CPPFLAGS@%$GDSS_CPPFLAGS%g
2780 s%@GDSS_LIBS@%$GDSS_LIBS%g
2781 s%@GDSS_SUBDIR@%$GDSS_SUBDIR%g
2782 s%@GDSS_OBJS@%$GDSS_OBJS%g
2783 s%@GDSS_CFILES@%$GDSS_CFILES%g
2784 s%@GDSS_TARGET@%$GDSS_TARGET%g
2785 s%@RSAREF_CPPFLAGS@%$RSAREF_CPPFLAGS%g
2786 s%@RSAREF_LIBS@%$RSAREF_LIBS%g
2787 s%@RSAREF_SUBDIRS@%$RSAREF_SUBDIRS%g
2789 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
2790 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
2791 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
2792 s%@SQL_LIBS@%$SQL_LIBS%g
2793 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
2794 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
2795 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
2796 s%@AFS_LIBS@%$AFS_LIBS%g
2797 s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
2798 s%@AFS_DIR@%$AFS_DIR%g
2799 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
2800 s%@READLINE_LIBS@%$READLINE_LIBS%g
2801 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
2802 s%@CURSES_LIBS@%$CURSES_LIBS%g
2803 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
2805 s%@CRYPT_CPPFLAGS@%$CRYPT_CPPFLAGS%g
2806 s%@CRYPT_LIBS@%$CRYPT_LIBS%g
2812 cat >> $CONFIG_STATUS <<\EOF
2814 # Split the substitutions into bite-sized pieces for seds with
2815 # small command number limits, like on Digital OSF/1 and HP-UX.
2816 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2817 ac_file=1 # Number of current file.
2818 ac_beg=1 # First line for current file.
2819 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2822 while $ac_more_lines; do
2823 if test $ac_beg -gt 1; then
2824 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2826 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2828 if test ! -s conftest.s$ac_file; then
2830 rm -f conftest.s$ac_file
2832 if test -z "$ac_sed_cmds"; then
2833 ac_sed_cmds="sed -f conftest.s$ac_file"
2835 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2837 ac_file=`expr $ac_file + 1`
2839 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2842 if test -z "$ac_sed_cmds"; then
2847 cat >> $CONFIG_STATUS <<EOF
2849 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
2850 clients/addusr/Makefile clients/blanche/Makefile \
2851 clients/mailmaint/Makefile clients/moira/Makefile \
2852 clients/mrcheck/Makefile clients/mrtest/Makefile \
2853 clients/passwd/Makefile clients/userreg/Makefile \
2854 update/Makefile man/Makefile \
2855 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"}
2857 cat >> $CONFIG_STATUS <<\EOF
2858 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2861 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2862 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2863 *) ac_file_in="${ac_file}.in" ;;
2866 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2868 # Remove last slash and all that follows it. Not all systems have dirname.
2869 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2870 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2871 # The file is in a subdirectory.
2872 test ! -d "$ac_dir" && mkdir "$ac_dir"
2873 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2874 # A "../" for each directory in $ac_dir_suffix.
2875 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2877 ac_dir_suffix= ac_dots=
2880 case "$ac_given_srcdir" in
2882 if test -z "$ac_dots"; then top_srcdir=.
2883 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2884 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2886 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2887 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2890 case "$ac_given_INSTALL" in
2891 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2892 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2895 echo creating "$ac_file"
2897 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2899 *Makefile*) ac_comsub="1i\\
2900 # $configure_input" ;;
2904 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2906 s%@configure_input@%$configure_input%g
2907 s%@srcdir@%$srcdir%g
2908 s%@top_srcdir@%$top_srcdir%g
2909 s%@INSTALL@%$INSTALL%g
2910 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2915 cat >> $CONFIG_STATUS <<EOF
2918 cat >> $CONFIG_STATUS <<\EOF
2922 chmod +x $CONFIG_STATUS
2923 rm -fr confdefs* $ac_clean_files
2924 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2926 if test "$no_recursion" != yes; then
2928 # Remove --cache-file and --srcdir arguments so they do not pile up.
2929 ac_sub_configure_args=
2931 for ac_arg in $ac_configure_args; do
2932 if test -n "$ac_prev"; then
2937 -cache-file | --cache-file | --cache-fil | --cache-fi \
2938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2939 ac_prev=cache_file ;;
2940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2943 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2945 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2947 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2951 for ac_config_dir in $COM_ERR_SUBDIR; do
2953 # Do not complain, so a configure script can configure whichever
2954 # parts of a large source tree are present.
2955 if test ! -d $srcdir/$ac_config_dir; then
2959 echo configuring in $ac_config_dir
2964 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2966 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2974 # A "../" for each directory in /$ac_config_dir.
2975 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2978 .) # No --srcdir option. We are building in place.
2979 ac_sub_srcdir=$srcdir ;;
2980 /*) # Absolute path.
2981 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2983 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2986 # Check for guested configure; otherwise get Cygnus style configure.
2987 if test -f $ac_sub_srcdir/configure; then
2988 ac_sub_configure=$ac_sub_srcdir/configure
2989 elif test -f $ac_sub_srcdir/configure.in; then
2990 ac_sub_configure=$ac_configure
2992 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2996 # The recursion is here.
2997 if test -n "$ac_sub_configure"; then
2999 # Make the cache file name correct relative to the subdirectory.
3000 case "$cache_file" in
3001 /*) ac_sub_cache_file=$cache_file ;;
3003 ac_sub_cache_file="$ac_dots$cache_file" ;;
3005 case "$ac_given_INSTALL" in
3006 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3007 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3010 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3011 # The eval makes quoting arguments work.
3012 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3015 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }