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-com_err=PREFIX Specify location of com_err"
19 --with-krb4=PREFIX Specify location of krb4"
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-oracle=PREFIX Specify location of Oracle (for server)"
29 --with-afs=PREFIX Specify location of AFS libs (for server)"
31 --with-readline=PREFIX Specify location of GNU readline"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.12"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=patchlevel.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
548 # Extract the first word of "gcc", so it can be a program name with args.
549 set dummy gcc; ac_word=$2
550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
551 echo "configure:552: checking for $ac_word" >&5
552 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
553 echo $ac_n "(cached) $ac_c" 1>&6
555 if test -n "$CC"; then
556 ac_cv_prog_CC="$CC" # Let the user override the test.
558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
559 for ac_dir in $PATH; do
560 test -z "$ac_dir" && ac_dir=.
561 if test -f $ac_dir/$ac_word; then
570 if test -n "$CC"; then
571 echo "$ac_t""$CC" 1>&6
573 echo "$ac_t""no" 1>&6
576 if test -z "$CC"; then
577 # Extract the first word of "cc", so it can be a program name with args.
578 set dummy cc; ac_word=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 echo "configure:581: checking for $ac_word" >&5
581 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
582 echo $ac_n "(cached) $ac_c" 1>&6
584 if test -n "$CC"; then
585 ac_cv_prog_CC="$CC" # Let the user override the test.
587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
589 for ac_dir in $PATH; do
590 test -z "$ac_dir" && ac_dir=.
591 if test -f $ac_dir/$ac_word; then
592 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
601 if test $ac_prog_rejected = yes; then
602 # We found a bogon in the path, so make sure we never use it.
603 set dummy $ac_cv_prog_CC
605 if test $# -gt 0; then
606 # We chose a different compiler from the bogus one.
607 # However, it has the same basename, so the bogon will be chosen
608 # first if we set CC to just the basename; use the full file name.
610 set dummy "$ac_dir/$ac_word" "$@"
618 if test -n "$CC"; then
619 echo "$ac_t""$CC" 1>&6
621 echo "$ac_t""no" 1>&6
624 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
627 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
628 echo "configure:629: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
632 ac_cpp='$CPP $CPPFLAGS'
633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
634 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
635 cross_compiling=$ac_cv_prog_cc_cross
637 cat > conftest.$ac_ext <<EOF
638 #line 639 "configure"
639 #include "confdefs.h"
642 if { (eval echo configure:643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
643 ac_cv_prog_cc_works=yes
644 # If we can't run a trivial program, we are probably using a cross compiler.
645 if (./conftest; exit) 2>/dev/null; then
646 ac_cv_prog_cc_cross=no
648 ac_cv_prog_cc_cross=yes
651 echo "configure: failed program was:" >&5
652 cat conftest.$ac_ext >&5
653 ac_cv_prog_cc_works=no
657 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
658 if test $ac_cv_prog_cc_works = no; then
659 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
662 echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
663 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
664 cross_compiling=$ac_cv_prog_cc_cross
666 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
667 echo "configure:668: checking whether we are using GNU C" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
671 cat > conftest.c <<EOF
676 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
683 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
685 if test $ac_cv_prog_gcc = yes; then
687 ac_test_CFLAGS="${CFLAGS+set}"
688 ac_save_CFLAGS="$CFLAGS"
690 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${CC-cc} accepts -g" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 echo 'void f(){}' > conftest.c
696 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
705 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
706 if test "$ac_test_CFLAGS" = set; then
707 CFLAGS="$ac_save_CFLAGS"
708 elif test $ac_cv_prog_cc_g = yes; then
715 test "${CFLAGS+set}" = set || CFLAGS="-g"
719 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
720 if test -f $ac_dir/install-sh; then
722 ac_install_sh="$ac_aux_dir/install-sh -c"
724 elif test -f $ac_dir/install.sh; then
726 ac_install_sh="$ac_aux_dir/install.sh -c"
730 if test -z "$ac_aux_dir"; then
731 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
733 ac_config_guess=$ac_aux_dir/config.guess
734 ac_config_sub=$ac_aux_dir/config.sub
735 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
737 # Find a good install program. We prefer a C program (faster),
738 # so one script is as good as another. But avoid the broken or
739 # incompatible versions:
740 # SysV /etc/install, /usr/sbin/install
741 # SunOS /usr/etc/install
744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
746 # ./install, which can be erroneously created by make from ./install.sh.
747 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
748 echo "configure:749: checking for a BSD compatible install" >&5
749 if test -z "$INSTALL"; then
750 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
754 for ac_dir in $PATH; do
755 # Account for people who put trailing slashes in PATH elements.
757 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
759 # OSF1 and SCO ODT 3.0 have their own names for install.
760 for ac_prog in ginstall installbsd scoinst install; do
761 if test -f $ac_dir/$ac_prog; then
762 if test $ac_prog = install &&
763 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
764 # AIX install. It has an incompatible calling convention.
765 # OSF/1 installbsd also uses dspmsg, but is usable.
768 ac_cv_path_install="$ac_dir/$ac_prog -c"
779 if test "${ac_cv_path_install+set}" = set; then
780 INSTALL="$ac_cv_path_install"
782 # As a last resort, use the slow shell script. We don't cache a
783 # path for INSTALL within a source directory, because that will
784 # break other packages using the cache if that directory is
785 # removed, or if the path is relative.
786 INSTALL="$ac_install_sh"
789 echo "$ac_t""$INSTALL" 1>&6
791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
792 # It thinks the first close brace ends the variable substitution.
793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
797 # Extract the first word of "ranlib", so it can be a program name with args.
798 set dummy ranlib; ac_word=$2
799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
800 echo "configure:801: checking for $ac_word" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 if test -n "$RANLIB"; then
805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
808 for ac_dir in $PATH; do
809 test -z "$ac_dir" && ac_dir=.
810 if test -f $ac_dir/$ac_word; then
811 ac_cv_prog_RANLIB="ranlib"
816 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
819 RANLIB="$ac_cv_prog_RANLIB"
820 if test -n "$RANLIB"; then
821 echo "$ac_t""$RANLIB" 1>&6
823 echo "$ac_t""no" 1>&6
826 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
827 echo "configure:828: checking whether ${MAKE-make} sets \${MAKE}" >&5
828 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
829 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftestmake <<\EOF
834 @echo 'ac_maketemp="${MAKE}"'
836 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
837 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
838 if test -n "$ac_maketemp"; then
839 eval ac_cv_prog_make_${ac_make}_set=yes
841 eval ac_cv_prog_make_${ac_make}_set=no
845 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
846 echo "$ac_t""yes" 1>&6
849 echo "$ac_t""no" 1>&6
850 SET_MAKE="MAKE=${MAKE-make}"
854 if test "$athena" = true; then
856 with_readline=/mit/gnu
858 prefix=/afs/athena.mit.edu/system/moira
859 bindir=$prefix/arch/$ATHENA_SYS/bin
863 # We currently just don't support changing this
867 # Athena-local policy decisions
868 echo $ac_n "checking for Athena""... $ac_c" 1>&6
869 echo "configure:870: checking for Athena" >&5
870 # Check whether --enable-athena or --disable-athena was given.
871 if test "${enable_athena+set}" = set; then
872 enableval="$enable_athena"
875 if test "$athena" = true; then
882 echo "$ac_t""$enableval" 1>&6
883 if test "$enableval" = yes; then
885 cat >> confdefs.h <<\EOF
892 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
898 # Networking libraries
899 echo "checking network libraries..." 1>&6
900 echo "configure:901: checking network libraries..." >&5
901 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
902 echo "configure:903: checking for gethostbyname" >&5
903 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
909 /* System header to define __stub macros and hopefully few prototypes,
910 which can conflict with char gethostbyname(); below. */
912 /* Override any gcc2 internal prototype to avoid an error. */
913 /* We use char because int might match the return type of a gcc2
914 builtin and then its argument prototype would still apply. */
915 char gethostbyname();
919 /* The GNU C library defines this for functions which it implements
920 to always fail with ENOSYS. Some functions are actually named
921 something starting with __ and the normal name is an alias. */
922 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
930 if { (eval echo configure:931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
932 eval "ac_cv_func_gethostbyname=yes"
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
937 eval "ac_cv_func_gethostbyname=no"
942 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
943 echo "$ac_t""yes" 1>&6
946 echo "$ac_t""no" 1>&6
947 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
948 echo "configure:949: checking for gethostbyname in -lnsl" >&5
949 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
955 cat > conftest.$ac_ext <<EOF
956 #line 957 "configure"
957 #include "confdefs.h"
958 /* Override any gcc2 internal prototype to avoid an error. */
959 /* We use char because int might match the return type of a gcc2
960 builtin and then its argument prototype would still apply. */
961 char gethostbyname();
967 if { (eval echo configure:968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
969 eval "ac_cv_lib_$ac_lib_var=yes"
971 echo "configure: failed program was:" >&5
972 cat conftest.$ac_ext >&5
974 eval "ac_cv_lib_$ac_lib_var=no"
980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
981 echo "$ac_t""yes" 1>&6
982 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
983 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
984 cat >> confdefs.h <<EOF
991 echo "$ac_t""no" 1>&6
992 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
993 echo "configure:994: checking for gethostbyname in -lresolv" >&5
994 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
999 LIBS="-lresolv $LIBS"
1000 cat > conftest.$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1003 /* Override any gcc2 internal prototype to avoid an error. */
1004 /* We use char because int might match the return type of a gcc2
1005 builtin and then its argument prototype would still apply. */
1006 char gethostbyname();
1012 if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1014 eval "ac_cv_lib_$ac_lib_var=yes"
1016 echo "configure: failed program was:" >&5
1017 cat conftest.$ac_ext >&5
1019 eval "ac_cv_lib_$ac_lib_var=no"
1022 LIBS="$ac_save_LIBS"
1025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1026 echo "$ac_t""yes" 1>&6
1027 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1029 cat >> confdefs.h <<EOF
1030 #define $ac_tr_lib 1
1033 LIBS="-lresolv $LIBS"
1036 echo "$ac_t""no" 1>&6
1043 echo $ac_n "checking for socket""... $ac_c" 1>&6
1044 echo "configure:1045: checking for socket" >&5
1045 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 cat > conftest.$ac_ext <<EOF
1049 #line 1050 "configure"
1050 #include "confdefs.h"
1051 /* System header to define __stub macros and hopefully few prototypes,
1052 which can conflict with char socket(); below. */
1054 /* Override any gcc2 internal prototype to avoid an error. */
1055 /* We use char because int might match the return type of a gcc2
1056 builtin and then its argument prototype would still apply. */
1061 /* The GNU C library defines this for functions which it implements
1062 to always fail with ENOSYS. Some functions are actually named
1063 something starting with __ and the normal name is an alias. */
1064 #if defined (__stub_socket) || defined (__stub___socket)
1072 if { (eval echo configure:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1074 eval "ac_cv_func_socket=yes"
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1079 eval "ac_cv_func_socket=no"
1084 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1085 echo "$ac_t""yes" 1>&6
1088 echo "$ac_t""no" 1>&6
1089 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1090 echo "configure:1091: checking for socket in -lsocket" >&5
1091 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 ac_save_LIBS="$LIBS"
1096 LIBS="-lsocket $LIBS"
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 /* Override any gcc2 internal prototype to avoid an error. */
1101 /* We use char because int might match the return type of a gcc2
1102 builtin and then its argument prototype would still apply. */
1109 if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1111 eval "ac_cv_lib_$ac_lib_var=yes"
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1116 eval "ac_cv_lib_$ac_lib_var=no"
1119 LIBS="$ac_save_LIBS"
1122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1123 echo "$ac_t""yes" 1>&6
1124 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1126 cat >> confdefs.h <<EOF
1127 #define $ac_tr_lib 1
1130 LIBS="-lsocket $LIBS"
1133 echo "$ac_t""no" 1>&6
1134 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1135 echo "configure:1136: checking for socket in -lsocket" >&5
1136 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 ac_save_LIBS="$LIBS"
1141 LIBS="-lsocket -lnsl $LIBS"
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 /* Override any gcc2 internal prototype to avoid an error. */
1146 /* We use char because int might match the return type of a gcc2
1147 builtin and then its argument prototype would still apply. */
1154 if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1156 eval "ac_cv_lib_$ac_lib_var=yes"
1158 echo "configure: failed program was:" >&5
1159 cat conftest.$ac_ext >&5
1161 eval "ac_cv_lib_$ac_lib_var=no"
1164 LIBS="$ac_save_LIBS"
1167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1168 echo "$ac_t""yes" 1>&6
1169 LIBS="-lsocket -lnsl $LIBS"
1171 echo "$ac_t""no" 1>&6
1180 # com_err (required, but can be built)
1181 echo $ac_n "checking for com_err""... $ac_c" 1>&6
1182 echo "configure:1183: checking for com_err" >&5
1183 # Check whether --with-com_err or --without-com_err was given.
1184 if test "${with_com_err+set}" = set; then
1185 withval="$with_com_err"
1186 echo "$ac_t""$withval" 1>&6
1187 if test $withval = "no"; then
1188 { echo "configure: error: com_err is required for Moira" 1>&2; exit 1; }
1190 if test $withval != "yes"; then
1194 *-I$withval/include*) ;;
1195 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
1199 case $PRO_C_INCLUDES in
1200 *INCLUDE=$withval/include*) ;;
1201 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
1207 *-L$withval/lib*) ;;
1208 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
1212 COMPILE_ET=compile_et
1214 echo "$ac_t""util/et" 1>&6
1215 COM_ERR_SUBDIR=util/et;
1219 *-I`pwd`/util/et*) ;;
1220 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
1224 case $PRO_C_INCLUDES in
1225 *INCLUDE=`pwd`/util/et*) ;;
1226 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
1232 *-L`pwd`/util/et*) ;;
1233 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
1236 COMPILE_ET=`pwd`/util/et/compile_et
1237 subdirs="$COM_ERR_SUBDIR"
1244 # Kerberos (required)
1245 echo $ac_n "checking for Kerberos 4""... $ac_c" 1>&6
1246 echo "configure:1247: checking for Kerberos 4" >&5
1247 # Check whether --with-krb4 or --without-krb4 was given.
1248 if test "${with_krb4+set}" = set; then
1249 withval="$with_krb4"
1255 echo "$ac_t""$krb4" 1>&6
1256 if test $krb4 = "no"; then
1257 { echo "configure: error: Kerberos is required for Moira" 1>&2; exit 1; }
1259 if test "$krb4" != yes; then
1263 *-I$krb4/include*) ;;
1264 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
1268 case $PRO_C_INCLUDES in
1269 *INCLUDE=$krb4/include*) ;;
1270 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
1274 if test -d "$krb4/include/kerberosIV"; then
1278 *-I$krb4/include/kerberosIV*) ;;
1279 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
1283 case $PRO_C_INCLUDES in
1284 *INCLUDE=$krb4/include/kerberosIV*) ;;
1285 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
1293 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
1296 elif test -d /usr/include/kerberosIV; then
1300 *-I/usr/include/kerberosIV*) ;;
1301 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
1305 case $PRO_C_INCLUDES in
1306 *INCLUDE=/usr/include/kerberosIV*) ;;
1307 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
1312 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
1313 echo "configure:1314: checking for krb_rd_req in -lkrb4" >&5
1314 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
1315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 ac_save_LIBS="$LIBS"
1319 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -lcrypto $LIBS"
1320 cat > conftest.$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 /* Override any gcc2 internal prototype to avoid an error. */
1324 /* We use char because int might match the return type of a gcc2
1325 builtin and then its argument prototype would still apply. */
1332 if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1334 eval "ac_cv_lib_$ac_lib_var=yes"
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1339 eval "ac_cv_lib_$ac_lib_var=no"
1342 LIBS="$ac_save_LIBS"
1345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1346 echo "$ac_t""yes" 1>&6
1347 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto"
1349 echo "$ac_t""no" 1>&6
1350 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
1351 echo "configure:1352: checking for krb_rd_req in -lkrb" >&5
1352 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 ac_save_LIBS="$LIBS"
1357 LIBS="-lkrb $LIBPATH -ldes $LIBS"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1370 if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1377 eval "ac_cv_lib_$ac_lib_var=no"
1380 LIBS="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 KRB4_LIBS="-lkrb -ldes"
1387 echo "$ac_t""no" 1>&6
1388 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
1395 echo $ac_n "checking for Hesiod""... $ac_c" 1>&6
1396 echo "configure:1397: checking for Hesiod" >&5
1397 # Check whether --with-hesiod or --without-hesiod was given.
1398 if test "${with_hesiod+set}" = set; then
1399 withval="$with_hesiod"
1405 echo "$ac_t""$hesiod" 1>&6
1406 if test "$hesiod" != no; then
1407 if test "$hesiod" != yes; then
1411 *-I$hesiod/include*) ;;
1412 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
1416 case $PRO_C_INCLUDES in
1417 *INCLUDE=$hesiod/include*) ;;
1418 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
1425 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
1429 echo $ac_n "checking for res_send""... $ac_c" 1>&6
1430 echo "configure:1431: checking for res_send" >&5
1431 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1437 /* System header to define __stub macros and hopefully few prototypes,
1438 which can conflict with char res_send(); below. */
1440 /* Override any gcc2 internal prototype to avoid an error. */
1441 /* We use char because int might match the return type of a gcc2
1442 builtin and then its argument prototype would still apply. */
1447 /* The GNU C library defines this for functions which it implements
1448 to always fail with ENOSYS. Some functions are actually named
1449 something starting with __ and the normal name is an alias. */
1450 #if defined (__stub_res_send) || defined (__stub___res_send)
1458 if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1460 eval "ac_cv_func_res_send=yes"
1462 echo "configure: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1465 eval "ac_cv_func_res_send=no"
1470 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
1471 echo "$ac_t""yes" 1>&6
1474 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
1476 echo "configure:1477: checking for res_send in -lresolv" >&5
1477 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
1478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 ac_save_LIBS="$LIBS"
1482 LIBS="-lresolv $LIBS"
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1497 eval "ac_cv_lib_$ac_lib_var=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 eval "ac_cv_lib_$ac_lib_var=no"
1505 LIBS="$ac_save_LIBS"
1508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1510 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1512 cat >> confdefs.h <<EOF
1513 #define $ac_tr_lib 1
1516 LIBS="-lresolv $LIBS"
1519 echo "$ac_t""no" 1>&6
1524 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
1525 echo "configure:1526: checking for hes_resolve in -lhesiod" >&5
1526 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
1527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 ac_save_LIBS="$LIBS"
1531 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1535 /* Override any gcc2 internal prototype to avoid an error. */
1536 /* We use char because int might match the return type of a gcc2
1537 builtin and then its argument prototype would still apply. */
1544 if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1546 eval "ac_cv_lib_$ac_lib_var=yes"
1548 echo "configure: failed program was:" >&5
1549 cat conftest.$ac_ext >&5
1551 eval "ac_cv_lib_$ac_lib_var=no"
1554 LIBS="$ac_save_LIBS"
1557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1558 echo "$ac_t""yes" 1>&6
1561 echo "$ac_t""no" 1>&6
1562 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
1566 cat >> confdefs.h <<\EOF
1567 #define HAVE_HESIOD 1
1572 *DEFINE=HAVE_HESIOD*) ;;
1573 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
1580 echo $ac_n "checking for Zephyr""... $ac_c" 1>&6
1581 echo "configure:1582: checking for Zephyr" >&5
1582 # Check whether --with-zephyr or --without-zephyr was given.
1583 if test "${with_zephyr+set}" = set; then
1584 withval="$with_zephyr"
1590 echo "$ac_t""$zephyr" 1>&6
1591 if test "$zephyr" != no; then
1592 if test "$zephyr" != yes; then
1596 *-I$zephyr/include*) ;;
1597 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
1601 case $PRO_C_INCLUDES in
1602 *INCLUDE=$zephyr/include*) ;;
1603 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
1610 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
1614 echo $ac_n "checking for ZInitialize in -lzephyr""... $ac_c" 1>&6
1615 echo "configure:1616: checking for ZInitialize in -lzephyr" >&5
1616 ac_lib_var=`echo zephyr'_'ZInitialize | sed 'y%./+-%__p_%'`
1617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 ac_save_LIBS="$LIBS"
1621 LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1641 eval "ac_cv_lib_$ac_lib_var=no"
1644 LIBS="$ac_save_LIBS"
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1651 echo "$ac_t""no" 1>&6
1652 { echo "configure: error: Zephyr library not found" 1>&2; exit 1; }
1656 cat >> confdefs.h <<\EOF
1657 #define HAVE_ZEPHYR 1
1662 *DEFINE=HAVE_ZEPHYR*) ;;
1663 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
1669 # GDSS support (default: build util/gdss if present)
1670 echo $ac_n "checking for GDSS""... $ac_c" 1>&6
1671 echo "configure:1672: checking for GDSS" >&5
1672 # Check whether --with-gdss or --without-gdss was given.
1673 if test "${with_gdss+set}" = set; then
1674 withval="$with_gdss"
1676 GDSS_CPPFLAGS="-I$gdss/include"
1677 GDSS_LIBS="-L$gdss/lib -lgdss"
1679 if test -d $srcdir/util/gdss; then
1680 gdss=$srcdir/util/gdss
1681 GDSS_SUBDIR=util/gdss
1682 GDSS_OUTPUT_FILES="util/gdss/Makefile util/gdss/lib/Makefile \
1683 util/gdss/lib/crypto/Makefile util/gdss/lib/crypto/bignum/Makefile \
1684 util/gdss/lib/crypto/algorithm/Makefile"
1685 # autoconf can't deal with creating util/gdss if util doesn't exist
1686 if test ! -d util; then
1689 GDSS_CPPFLAGS="-I$gdss/include"
1690 GDSS_LIBS='-L$(BUILDTOP)/util/gdss/lib -lgdss'
1696 echo "$ac_t""$gdss" 1>&6
1697 if test "$gdss" != no; then
1698 GDSS_OBJS='$(GDSS_OBJS)'
1699 GDSS_CFILES='$(GDSS_CFILES)'
1700 GDSS_TARGET='$(GDSS_TARGET)'
1702 cat >> confdefs.h <<\EOF
1708 *DEFINE=HAVE_GDSS*) ;;
1709 *) PRO_C_DEFS=DEFINE=HAVE_GDSS\ $PRO_C_DEFS ;;
1721 # Oracle (default: yes, if $ORACLE_HOME is set)
1722 echo $ac_n "checking for Oracle""... $ac_c" 1>&6
1723 echo "configure:1724: checking for Oracle" >&5
1724 # Check whether --with-oracle or --without-oracle was given.
1725 if test "${with_oracle+set}" = set; then
1726 withval="$with_oracle"
1729 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
1736 echo "$ac_t""$oracle" 1>&6
1737 if test "$oracle" != no; then
1738 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
1739 SVRSUBDIRS='$(SVRDIRS)'
1740 SERVER_OUTPUT_FILES="db/Makefile server/Makefile afssync/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile reg_svr/Makefile regtape/Makefile"
1741 PRO_C=$oracle/bin/proc
1742 PRO_C_OPTS=CODE=ANSI_C
1752 echo $ac_n "checking for AFS""... $ac_c" 1>&6
1753 echo "configure:1754: checking for AFS" >&5
1754 # Check whether --with-afs or --without-afs was given.
1755 if test "${with_afs+set}" = set; then
1762 echo "$ac_t""$afs" 1>&6
1763 if test "$afs" != no -a "$oracle" != no; then
1764 if test "$afs" != yes; then
1765 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
1766 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
1767 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
1770 echo $ac_n "checking for insque""... $ac_c" 1>&6
1771 echo "configure:1772: checking for insque" >&5
1772 if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1778 /* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char insque(); below. */
1781 /* Override any gcc2 internal prototype to avoid an error. */
1782 /* We use char because int might match the return type of a gcc2
1783 builtin and then its argument prototype would still apply. */
1788 /* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791 #if defined (__stub_insque) || defined (__stub___insque)
1799 if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1801 eval "ac_cv_func_insque=yes"
1803 echo "configure: failed program was:" >&5
1804 cat conftest.$ac_ext >&5
1806 eval "ac_cv_func_insque=no"
1811 if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1815 echo "$ac_t""no" 1>&6
1816 echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
1817 echo "configure:1818: checking for insque in -lcompat" >&5
1818 ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
1819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 ac_save_LIBS="$LIBS"
1823 LIBS="-lcompat $LIBS"
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 /* Override any gcc2 internal prototype to avoid an error. */
1828 /* We use char because int might match the return type of a gcc2
1829 builtin and then its argument prototype would still apply. */
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1838 eval "ac_cv_lib_$ac_lib_var=yes"
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 eval "ac_cv_lib_$ac_lib_var=no"
1846 LIBS="$ac_save_LIBS"
1849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1850 echo "$ac_t""yes" 1>&6
1851 AFS_EXTRA_LIBS="-lcompat"
1853 echo "$ac_t""no" 1>&6
1854 { echo "configure: error: insque not found" 1>&2; exit 1; }
1859 echo $ac_n "checking for sigvec""... $ac_c" 1>&6
1860 echo "configure:1861: checking for sigvec" >&5
1861 if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 /* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char sigvec(); below. */
1870 /* Override any gcc2 internal prototype to avoid an error. */
1871 /* We use char because int might match the return type of a gcc2
1872 builtin and then its argument prototype would still apply. */
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined (__stub_sigvec) || defined (__stub___sigvec)
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1890 eval "ac_cv_func_sigvec=yes"
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1895 eval "ac_cv_func_sigvec=no"
1900 if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
1901 echo "$ac_t""yes" 1>&6
1904 echo "$ac_t""no" 1>&6
1905 echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
1906 echo "configure:1907: checking for sigvec in -lucb" >&5
1907 ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
1908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 ac_save_LIBS="$LIBS"
1912 LIBS="-lucb -L/usr/ucblib $LIBS"
1913 cat > conftest.$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 /* Override any gcc2 internal prototype to avoid an error. */
1917 /* We use char because int might match the return type of a gcc2
1918 builtin and then its argument prototype would still apply. */
1925 if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1927 eval "ac_cv_lib_$ac_lib_var=yes"
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1932 eval "ac_cv_lib_$ac_lib_var=no"
1935 LIBS="$ac_save_LIBS"
1938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1940 AFS_EXTRA_LIBS="$AFS_EXTRA_LIBS -L/usr/ucblib -lc -lucb"
1942 echo "$ac_t""no" 1>&6
1948 echo $ac_n "checking for pioctl in -lsys""... $ac_c" 1>&6
1949 echo "configure:1950: checking for pioctl in -lsys" >&5
1950 ac_lib_var=`echo sys'_'pioctl | sed 'y%./+-%__p_%'`
1951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 ac_save_LIBS="$LIBS"
1955 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys $AFS_EXTRA_LIBS $LIBS"
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 /* Override any gcc2 internal prototype to avoid an error. */
1960 /* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_lib_$ac_lib_var=no"
1978 LIBS="$ac_save_LIBS"
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1985 echo "$ac_t""no" 1>&6
1986 { echo "configure: error: AFS libraries not found" 1>&2; exit 1; }
1990 cat >> confdefs.h <<\EOF
1996 *DEFINE=HAVE_AFS*) ;;
1997 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
2009 echo "checking for GNU readline..." 1>&6
2010 echo "configure:2011: checking for GNU readline..." >&5
2011 # Check whether --with-readline or --without-readline was given.
2012 if test "${with_readline+set}" = set; then
2013 withval="$with_readline"
2016 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2017 echo "configure:2018: checking for readline in -lreadline" >&5
2018 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 ac_save_LIBS="$LIBS"
2023 LIBS="-lreadline -ltermcap $LIBS"
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2036 if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2038 eval "ac_cv_lib_$ac_lib_var=yes"
2040 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2043 eval "ac_cv_lib_$ac_lib_var=no"
2046 LIBS="$ac_save_LIBS"
2049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2053 echo "$ac_t""no" 1>&6
2059 if test "$readline" != no; then
2060 if test "$readline" != yes; then
2061 READLINE_CPPFLAGS="-I$readline/include/readline -DHAVE_READLINE"
2062 READLINE_LIBS="-L$readline/lib -lreadline -ltermcap"
2070 echo "checking for curses" 1>&6
2071 echo "configure:2072: checking for curses" >&5
2072 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2073 echo "configure:2074: checking for main in -lcurses" >&5
2074 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 ac_save_LIBS="$LIBS"
2079 LIBS="-lcurses $LIBS"
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2088 if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2090 eval "ac_cv_lib_$ac_lib_var=yes"
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 eval "ac_cv_lib_$ac_lib_var=no"
2098 LIBS="$ac_save_LIBS"
2101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2105 echo "$ac_t""no" 1>&6
2106 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2107 echo "configure:2108: checking for main in -lncurses" >&5
2108 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 ac_save_LIBS="$LIBS"
2113 LIBS="-lncurses $LIBS"
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2124 eval "ac_cv_lib_$ac_lib_var=yes"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2129 eval "ac_cv_lib_$ac_lib_var=no"
2132 LIBS="$ac_save_LIBS"
2135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2139 echo "$ac_t""no" 1>&6
2144 if test -n "$curses"; then
2147 echo "checking if curses needs termcap" 1>&6
2148 echo "configure:2149: checking if curses needs termcap" >&5
2149 if test "$cross_compiling" = yes; then
2152 cat > conftest.$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2156 main(int argc, char **argv)
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2165 CURSES_LIBS="-l$curses"
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 LIBS="-l$curses -ltermcap"
2171 if test "$cross_compiling" = yes; then
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2178 main(int argc, char **argv)
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2187 CURSES_LIBS="-l$curses -ltermcap"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2203 if test -n "$CURSES_LIBS"; then
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2211 WINDOW *w; getmaxx(w);
2214 if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2226 WINDOW *w; w->_maxx;
2229 if { (eval echo configure:2230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2231 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
2233 echo "configure: failed program was:" >&5
2234 cat conftest.$ac_ext >&5
2236 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
2242 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
2243 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
2245 echo "configure: warning: Couldn't find -lcurses" 1>&2
2252 for ac_func in getusershell
2254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_func" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 /* System header to define __stub macros and hopefully few prototypes,
2263 which can conflict with char $ac_func(); below. */
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2283 if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2285 eval "ac_cv_func_$ac_func=yes"
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2290 eval "ac_cv_func_$ac_func=no"
2295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2298 cat >> confdefs.h <<EOF
2299 #define $ac_tr_func 1
2303 echo "$ac_t""no" 1>&6
2308 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2309 echo "configure:2310: checking how to run the C preprocessor" >&5
2310 # On Suns, sometimes $CPP names a directory.
2311 if test -n "$CPP" && test -d "$CPP"; then
2314 if test -z "$CPP"; then
2315 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 # This must be in double quotes, not single quotes, because CPP may get
2319 # substituted into the Makefile and "${CC-cc}" will confuse make.
2321 # On the NeXT, cc -E runs the code through the compiler's parser,
2322 # not just through cpp.
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2330 { (eval echo configure:2331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2331 ac_err=`grep -v '^ *+' conftest.out`
2332 if test -z "$ac_err"; then
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2339 CPP="${CC-cc} -E -traditional-cpp"
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2347 { (eval echo configure:2348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2348 ac_err=`grep -v '^ *+' conftest.out`
2349 if test -z "$ac_err"; then
2353 echo "configure: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2361 ac_cv_prog_CPP="$CPP"
2363 CPP="$ac_cv_prog_CPP"
2365 ac_cv_prog_CPP="$CPP"
2367 echo "$ac_t""$CPP" 1>&6
2369 ac_safe=`echo "crypt.h" | sed 'y%./+-%__p_%'`
2370 echo $ac_n "checking for crypt.h""... $ac_c" 1>&6
2371 echo "configure:2372: checking for crypt.h" >&5
2372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2381 { (eval echo configure:2382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2382 ac_err=`grep -v '^ *+' conftest.out`
2383 if test -z "$ac_err"; then
2385 eval "ac_cv_header_$ac_safe=yes"
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2391 eval "ac_cv_header_$ac_safe=no"
2395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 CRYPT_CPPFLAGS=-DHAVE_CRYPT_H
2399 echo "$ac_t""no" 1>&6
2402 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2403 echo "configure:2404: checking for crypt" >&5
2404 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2410 /* System header to define __stub macros and hopefully few prototypes,
2411 which can conflict with char crypt(); below. */
2413 /* Override any gcc2 internal prototype to avoid an error. */
2414 /* We use char because int might match the return type of a gcc2
2415 builtin and then its argument prototype would still apply. */
2420 /* The GNU C library defines this for functions which it implements
2421 to always fail with ENOSYS. Some functions are actually named
2422 something starting with __ and the normal name is an alias. */
2423 #if defined (__stub_crypt) || defined (__stub___crypt)
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2433 eval "ac_cv_func_crypt=yes"
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 eval "ac_cv_func_crypt=no"
2443 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2447 echo "$ac_t""no" 1>&6
2448 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2449 echo "configure:2450: checking for crypt in -lcrypt" >&5
2450 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 ac_save_LIBS="$LIBS"
2455 LIBS="-lcrypt $LIBS"
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 /* Override any gcc2 internal prototype to avoid an error. */
2460 /* We use char because int might match the return type of a gcc2
2461 builtin and then its argument prototype would still apply. */
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2470 eval "ac_cv_lib_$ac_lib_var=yes"
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 eval "ac_cv_lib_$ac_lib_var=no"
2478 LIBS="$ac_save_LIBS"
2481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2482 echo "$ac_t""yes" 1>&6
2485 echo "$ac_t""no" 1>&6
2494 case $PRO_C_INCLUDES in
2495 *INCLUDE='$(srcdir)'*) ;;
2496 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
2502 *-I'$(SRCTOP)/include'*) ;;
2503 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
2507 case $PRO_C_INCLUDES in
2508 *INCLUDE='$(SRCTOP)/include'*) ;;
2509 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
2516 *-I'$(SRCTOP)/lib'*) ;;
2517 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
2521 case $PRO_C_INCLUDES in
2522 *INCLUDE='$(SRCTOP)/lib'*) ;;
2523 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
2530 *-I'$(BUILDTOP)/lib'*) ;;
2531 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
2535 case $PRO_C_INCLUDES in
2536 *INCLUDE='$(BUILDTOP)/lib'*) ;;
2537 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
2544 *-I'$(BUILDTOP)/db'*) ;;
2545 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
2549 case $PRO_C_INCLUDES in
2550 *INCLUDE='$(BUILDTOP)/db'*) ;;
2551 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
2555 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
2556 KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS"
2557 LIBS="-lmoira $KLIBS"
2561 cat > confcache <<\EOF
2562 # This file is a shell script that caches the results of configure
2563 # tests run on this system so they can be shared between configure
2564 # scripts and configure runs. It is not useful on other systems.
2565 # If it contains results you don't want to keep, you may remove or edit it.
2567 # By default, configure uses ./config.cache as the cache file,
2568 # creating it if it does not exist already. You can give configure
2569 # the --cache-file=FILE option to use a different cache file; that is
2570 # what configure does when it calls configure scripts in
2571 # subdirectories, so they share the cache.
2572 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2573 # config.status only pays attention to the cache file if you give it the
2574 # --recheck option to rerun configure.
2577 # The following way of writing the cache mishandles newlines in values,
2578 # but we know of no workaround that is simple, portable, and efficient.
2579 # So, don't put newlines in cache variables' values.
2580 # Ultrix sh set writes to stderr and can't be redirected directly,
2581 # and sets the high bit in the cache file unless we assign to the vars.
2583 case `(ac_space=' '; set) 2>&1` in
2585 # `set' does not quote correctly, so add quotes (double-quote substitution
2586 # turns \\\\ into \\, and sed turns \\ into \).
2588 -e "s/'/'\\\\''/g" \
2589 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2592 # `set' quotes correctly as required by POSIX, so do not add quotes.
2593 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2596 if cmp -s $cache_file confcache; then
2599 if test -w $cache_file; then
2600 echo "updating cache $cache_file"
2601 cat confcache > $cache_file
2603 echo "not updating unwritable cache $cache_file"
2608 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2611 # Let make expand exec_prefix.
2612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2614 # Any assignment to VPATH causes Sun make to only execute
2615 # the first set of double-colon rules, so remove it if not needed.
2616 # If there is a colon in the path, we need to keep it.
2617 if test "x$srcdir" = x.; then
2618 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2621 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2623 # Transform confdefs.h into DEFS.
2624 # Protect against shell expansion while executing Makefile rules.
2625 # Protect against Makefile macro expansion.
2626 cat > conftest.defs <<\EOF
2627 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2628 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2633 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2637 # Without the "./", some shells look in PATH for config.status.
2638 : ${CONFIG_STATUS=./config.status}
2640 echo creating $CONFIG_STATUS
2641 rm -f $CONFIG_STATUS
2642 cat > $CONFIG_STATUS <<EOF
2644 # Generated automatically by configure.
2645 # Run this file to recreate the current configuration.
2646 # This directory was configured as follows,
2647 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2649 # $0 $ac_configure_args
2651 # Compiler output produced by configure, useful for debugging
2652 # configure, is in ./config.log if it exists.
2654 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2657 case "\$ac_option" in
2658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2659 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2660 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2661 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2662 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2664 -help | --help | --hel | --he | --h)
2665 echo "\$ac_cs_usage"; exit 0 ;;
2666 *) echo "\$ac_cs_usage"; exit 1 ;;
2670 ac_given_srcdir=$srcdir
2671 ac_given_INSTALL="$INSTALL"
2673 trap 'rm -fr `echo "Makefile lib/Makefile include/Makefile clients/Makefile \
2674 clients/addusr/Makefile clients/blanche/Makefile \
2675 clients/mailmaint/Makefile clients/moira/Makefile \
2676 clients/mrcheck/Makefile clients/mrtest/Makefile \
2677 clients/passwd/Makefile clients/userreg/Makefile \
2678 update/Makefile man/Makefile \
2679 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2681 cat >> $CONFIG_STATUS <<EOF
2683 # Protect against being on the right side of a sed subst in config.status.
2684 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2685 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2688 s%@CFLAGS@%$CFLAGS%g
2689 s%@CPPFLAGS@%$CPPFLAGS%g
2690 s%@CXXFLAGS@%$CXXFLAGS%g
2692 s%@LDFLAGS@%$LDFLAGS%g
2694 s%@exec_prefix@%$exec_prefix%g
2695 s%@prefix@%$prefix%g
2696 s%@program_transform_name@%$program_transform_name%g
2697 s%@bindir@%$bindir%g
2698 s%@sbindir@%$sbindir%g
2699 s%@libexecdir@%$libexecdir%g
2700 s%@datadir@%$datadir%g
2701 s%@sysconfdir@%$sysconfdir%g
2702 s%@sharedstatedir@%$sharedstatedir%g
2703 s%@localstatedir@%$localstatedir%g
2704 s%@libdir@%$libdir%g
2705 s%@includedir@%$includedir%g
2706 s%@oldincludedir@%$oldincludedir%g
2707 s%@infodir@%$infodir%g
2708 s%@mandir@%$mandir%g
2710 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2711 s%@INSTALL_DATA@%$INSTALL_DATA%g
2712 s%@RANLIB@%$RANLIB%g
2713 s%@SET_MAKE@%$SET_MAKE%g
2714 s%@mrbindir@%$mrbindir%g
2715 s%@subdirs@%$subdirs%g
2716 s%@COM_ERR_SUBDIR@%$COM_ERR_SUBDIR%g
2717 s%@COMPILE_ET@%$COMPILE_ET%g
2718 s%@GDSS_CPPFLAGS@%$GDSS_CPPFLAGS%g
2719 s%@GDSS_LIBS@%$GDSS_LIBS%g
2720 s%@GDSS_SUBDIR@%$GDSS_SUBDIR%g
2721 s%@GDSS_OBJS@%$GDSS_OBJS%g
2722 s%@GDSS_CFILES@%$GDSS_CFILES%g
2723 s%@GDSS_TARGET@%$GDSS_TARGET%g
2725 s%@PRO_C_DEFS@%$PRO_C_DEFS%g
2726 s%@PRO_C_INCLUDES@%$PRO_C_INCLUDES%g
2727 s%@PRO_C_OPTS@%$PRO_C_OPTS%g
2728 s%@SQL_LIBS@%$SQL_LIBS%g
2729 s%@SVRSUBDIRS@%$SVRSUBDIRS%g
2730 s%@AFS_CPPFLAGS@%$AFS_CPPFLAGS%g
2731 s%@AFS_PRO_C_INCLUDES@%$AFS_PRO_C_INCLUDES%g
2732 s%@AFS_LIBS@%$AFS_LIBS%g
2733 s%@AFS_EXTRA_LIBS@%$AFS_EXTRA_LIBS%g
2734 s%@AFS_DIR@%$AFS_DIR%g
2735 s%@READLINE_CPPFLAGS@%$READLINE_CPPFLAGS%g
2736 s%@READLINE_LIBS@%$READLINE_LIBS%g
2737 s%@CURSES_CPPFLAGS@%$CURSES_CPPFLAGS%g
2738 s%@CURSES_LIBS@%$CURSES_LIBS%g
2739 s%@CURSES_SUBDIRS@%$CURSES_SUBDIRS%g
2741 s%@CRYPT_CPPFLAGS@%$CRYPT_CPPFLAGS%g
2742 s%@CRYPT_LIBS@%$CRYPT_LIBS%g
2748 cat >> $CONFIG_STATUS <<\EOF
2750 # Split the substitutions into bite-sized pieces for seds with
2751 # small command number limits, like on Digital OSF/1 and HP-UX.
2752 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2753 ac_file=1 # Number of current file.
2754 ac_beg=1 # First line for current file.
2755 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2758 while $ac_more_lines; do
2759 if test $ac_beg -gt 1; then
2760 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2762 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2764 if test ! -s conftest.s$ac_file; then
2766 rm -f conftest.s$ac_file
2768 if test -z "$ac_sed_cmds"; then
2769 ac_sed_cmds="sed -f conftest.s$ac_file"
2771 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2773 ac_file=`expr $ac_file + 1`
2775 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2778 if test -z "$ac_sed_cmds"; then
2783 cat >> $CONFIG_STATUS <<EOF
2785 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile include/Makefile clients/Makefile \
2786 clients/addusr/Makefile clients/blanche/Makefile \
2787 clients/mailmaint/Makefile clients/moira/Makefile \
2788 clients/mrcheck/Makefile clients/mrtest/Makefile \
2789 clients/passwd/Makefile clients/userreg/Makefile \
2790 update/Makefile man/Makefile \
2791 $SERVER_OUTPUT_FILES $GDSS_OUTPUT_FILES"}
2793 cat >> $CONFIG_STATUS <<\EOF
2794 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2795 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2797 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2798 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2799 *) ac_file_in="${ac_file}.in" ;;
2802 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2804 # Remove last slash and all that follows it. Not all systems have dirname.
2805 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2806 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2807 # The file is in a subdirectory.
2808 test ! -d "$ac_dir" && mkdir "$ac_dir"
2809 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2810 # A "../" for each directory in $ac_dir_suffix.
2811 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2813 ac_dir_suffix= ac_dots=
2816 case "$ac_given_srcdir" in
2818 if test -z "$ac_dots"; then top_srcdir=.
2819 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2820 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2822 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2823 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2826 case "$ac_given_INSTALL" in
2827 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2828 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2831 echo creating "$ac_file"
2833 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2835 *Makefile*) ac_comsub="1i\\
2836 # $configure_input" ;;
2840 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2842 s%@configure_input@%$configure_input%g
2843 s%@srcdir@%$srcdir%g
2844 s%@top_srcdir@%$top_srcdir%g
2845 s%@INSTALL@%$INSTALL%g
2846 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2851 cat >> $CONFIG_STATUS <<EOF
2854 cat >> $CONFIG_STATUS <<\EOF
2858 chmod +x $CONFIG_STATUS
2859 rm -fr confdefs* $ac_clean_files
2860 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2862 if test "$no_recursion" != yes; then
2864 # Remove --cache-file and --srcdir arguments so they do not pile up.
2865 ac_sub_configure_args=
2867 for ac_arg in $ac_configure_args; do
2868 if test -n "$ac_prev"; then
2873 -cache-file | --cache-file | --cache-fil | --cache-fi \
2874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2875 ac_prev=cache_file ;;
2876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2879 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2881 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2883 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2887 for ac_config_dir in $COM_ERR_SUBDIR; do
2889 # Do not complain, so a configure script can configure whichever
2890 # parts of a large source tree are present.
2891 if test ! -d $srcdir/$ac_config_dir; then
2895 echo configuring in $ac_config_dir
2900 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2902 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2910 # A "../" for each directory in /$ac_config_dir.
2911 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2914 .) # No --srcdir option. We are building in place.
2915 ac_sub_srcdir=$srcdir ;;
2916 /*) # Absolute path.
2917 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2919 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2922 # Check for guested configure; otherwise get Cygnus style configure.
2923 if test -f $ac_sub_srcdir/configure; then
2924 ac_sub_configure=$ac_sub_srcdir/configure
2925 elif test -f $ac_sub_srcdir/configure.in; then
2926 ac_sub_configure=$ac_configure
2928 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2932 # The recursion is here.
2933 if test -n "$ac_sub_configure"; then
2935 # Make the cache file name correct relative to the subdirectory.
2936 case "$cache_file" in
2937 /*) ac_sub_cache_file=$cache_file ;;
2939 ac_sub_cache_file="$ac_dots$cache_file" ;;
2941 case "$ac_given_INSTALL" in
2942 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2943 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2946 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2947 # The eval makes quoting arguments work.
2948 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2951 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }