]> andersk Git - moira.git/blame - configure
Check ace_type, not just name.
[moira.git] / configure
CommitLineData
ea0caf4a 1#! /bin/sh
ea0caf4a 2# Guess values for system-dependent variables and create Makefiles.
00274452 3# Generated by GNU Autoconf 2.59.
ea0caf4a 4#
00274452 5# Copyright (C) 2003 Free Software Foundation, Inc.
ea0caf4a 6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
00274452 8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
ea0caf4a 193
00274452 194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
ea0caf4a 254ac_default_prefix=/usr/local
00274452 255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="patchlevel.h"
275ac_subdirs_all="$ac_subdirs_all util/et"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SO_LDFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB SET_MAKE mrbindir subdirs COM_ERR_SUBDIR COMPILE_ET REG_SVR_DEFS REG_SVR_INCLUDES REG_SVR_LIBS RSAREF_CPPFLAGS RSAREF_LIBS RSAREF_SUBDIRS RSAREF_LIBDEP PRO_C PRO_C_DEFS PRO_C_INCLUDES PRO_C_OPTS SQL_LIBS SVRSUBDIRS JAVA_CPPFLAGS WEBMOIRA_SUBDIRS LDAP_CPPFLAGS LDAP_LIBS WINAD_SUBDIRS AFS_CPPFLAGS AFS_PRO_C_INCLUDES AFS_LIBS AFS_DIR AFS_SUBDIRS AFS_SYNCDIR READLINE_CPPFLAGS READLINE_LIBS CURSES_CPPFLAGS CURSES_LIBS CURSES_SUBDIRS CPP EGREP KLIBS MR_LIBDEP LIBOBJS LTLIBOBJS'
314ac_subst_files=''
ea0caf4a 315
316# Initialize some variables set by options.
00274452 317ac_init_help=
318ac_init_version=false
ea0caf4a 319# The variables have the same names as the options, with
320# dashes changed to underlines.
00274452 321cache_file=/dev/null
ea0caf4a 322exec_prefix=NONE
ea0caf4a 323no_create=
ea0caf4a 324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
ea0caf4a 332verbose=
333x_includes=NONE
334x_libraries=NONE
00274452 335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
ea0caf4a 341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
ea0caf4a 354ac_prev=
355for ac_option
356do
ea0caf4a 357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
00274452 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ea0caf4a 365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
00274452 368 case $ac_option in
ea0caf4a 369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
00274452 373 bindir=$ac_optarg ;;
ea0caf4a 374
375 -build | --build | --buil | --bui | --bu)
00274452 376 ac_prev=build_alias ;;
ea0caf4a 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
00274452 378 build_alias=$ac_optarg ;;
ea0caf4a 379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
00274452 385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
ea0caf4a 389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
00274452 394 datadir=$ac_optarg ;;
ea0caf4a 395
396 -disable-* | --disable-*)
00274452 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ea0caf4a 398 # Reject names that are not valid shell variable names.
00274452 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
ea0caf4a 404
405 -enable-* | --enable-*)
00274452 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ea0caf4a 407 # Reject names that are not valid shell variable names.
00274452 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ea0caf4a 414 *) ac_optarg=yes ;;
415 esac
00274452 416 eval "enable_$ac_feature='$ac_optarg'" ;;
ea0caf4a 417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
00274452 425 exec_prefix=$ac_optarg ;;
ea0caf4a 426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
00274452 431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
ea0caf4a 437
438 -host | --host | --hos | --ho)
00274452 439 ac_prev=host_alias ;;
ea0caf4a 440 -host=* | --host=* | --hos=* | --ho=*)
00274452 441 host_alias=$ac_optarg ;;
ea0caf4a 442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
00274452 448 includedir=$ac_optarg ;;
ea0caf4a 449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
00274452 453 infodir=$ac_optarg ;;
ea0caf4a 454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
00274452 458 libdir=$ac_optarg ;;
ea0caf4a 459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
00274452 465 libexecdir=$ac_optarg ;;
ea0caf4a 466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
00274452 474 localstatedir=$ac_optarg ;;
ea0caf4a 475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
00274452 479 mandir=$ac_optarg ;;
ea0caf4a 480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
00274452 486 | --no-cr | --no-c | -n)
ea0caf4a 487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
00274452 500 oldincludedir=$ac_optarg ;;
ea0caf4a 501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
00274452 505 prefix=$ac_optarg ;;
ea0caf4a 506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
00274452 512 program_prefix=$ac_optarg ;;
ea0caf4a 513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
00274452 519 program_suffix=$ac_optarg ;;
ea0caf4a 520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
00274452 536 program_transform_name=$ac_optarg ;;
ea0caf4a 537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
00274452 546 sbindir=$ac_optarg ;;
ea0caf4a 547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
00274452 557 sharedstatedir=$ac_optarg ;;
ea0caf4a 558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
00274452 562 site=$ac_optarg ;;
ea0caf4a 563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
00274452 567 srcdir=$ac_optarg ;;
ea0caf4a 568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
00274452 574 sysconfdir=$ac_optarg ;;
ea0caf4a 575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
00274452 577 ac_prev=target_alias ;;
ea0caf4a 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
00274452 579 target_alias=$ac_optarg ;;
ea0caf4a 580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
00274452 584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
ea0caf4a 586
587 -with-* | --with-*)
00274452 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ea0caf4a 589 # Reject names that are not valid shell variable names.
00274452 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
ea0caf4a 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
00274452 594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ea0caf4a 596 *) ac_optarg=yes ;;
597 esac
00274452 598 eval "with_$ac_package='$ac_optarg'" ;;
ea0caf4a 599
600 -without-* | --without-*)
00274452 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ea0caf4a 602 # Reject names that are not valid shell variable names.
00274452 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
ea0caf4a 608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
00274452 618 x_includes=$ac_optarg ;;
ea0caf4a 619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
00274452 625 x_libraries=$ac_optarg ;;
ea0caf4a 626
00274452 627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
ea0caf4a 630 ;;
631
00274452 632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
ea0caf4a 642 *)
00274452 643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ea0caf4a 648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
00274452 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
ea0caf4a 657fi
ea0caf4a 658
00274452 659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
ea0caf4a 669
00274452 670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
ea0caf4a 673do
00274452 674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
ea0caf4a 679 esac
680done
681
00274452 682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
ea0caf4a 699
00274452 700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
ea0caf4a 704
ea0caf4a 705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
00274452 710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
ea0caf4a 722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
00274452 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
ea0caf4a 733 else
00274452 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
ea0caf4a 736 fi
737fi
00274452 738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834
835System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-athena Enable Athena-specific policy decisions
849
850Optional Packages:
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853 --with-com_err=PREFIX Specify location of com_err
854 --with-krb4=PREFIX Specify location of krb4
855 --with-krb5=PREFIX Specify location of krb5 (for reg_svr)
856 --with-hesiod=PREFIX Specify location of Hesiod
857 --with-zephyr=PREFIX Specify location of Zephyr
858 --with-rsaref=PREFIX Specify location of RSAREF
859 --with-oracle=PREFIX Specify location of Oracle (for server)
860 --with-java=PREFIX Specify location of Java libs and headers
861 --with-ldap=PREFIX Specify location of LDAP libs (for server)
862 --with-afs=PREFIX Specify location of AFS libs (for server)
863 --with-readline=PREFIX Specify location of GNU readline
864
865Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
873
874Use these variables to override the choices made by `configure' or to help
875it to find libraries and programs with nonstandard names/locations.
876
877_ACEOF
878fi
879
880if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
886
887if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891else
892 ac_dir_suffix= ac_top_builddir=
893fi
894
895case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909esac
910
911# Do not use `cd foo && pwd` to compute absolute paths, because
912# the directories may not exist.
913case `pwd` in
914.) ac_abs_builddir="$ac_dir";;
915*)
916 case "$ac_dir" in
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 esac;;
921esac
922case $ac_abs_builddir in
923.) ac_abs_top_builddir=${ac_top_builddir}.;;
924*)
925 case ${ac_top_builddir}. in
926 .) ac_abs_top_builddir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_srcdir=$ac_srcdir;;
933*)
934 case $ac_srcdir in
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_srcdir=$ac_top_srcdir;;
942*)
943 case $ac_top_srcdir in
944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 esac;;
948esac
949
950 cd $ac_dir
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
953 echo
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
956 echo
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
960 echo
961 $ac_configure --help
962 else
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 fi
965 cd $ac_popdir
966 done
967fi
968
969test -n "$ac_init_help" && exit 0
970if $ac_init_version; then
971 cat <<\_ACEOF
972
973Copyright (C) 2003 Free Software Foundation, Inc.
974This configure script is free software; the Free Software Foundation
975gives unlimited permission to copy, distribute and modify it.
976_ACEOF
977 exit 0
978fi
979exec 5>config.log
980cat >&5 <<_ACEOF
981This file contains any messages produced by compilers while
982running configure, to aid debugging if configure makes a mistake.
983
984It was created by $as_me, which was
985generated by GNU Autoconf 2.59. Invocation command line was
986
987 $ $0 $@
988
989_ACEOF
990{
991cat <<_ASUNAME
992## --------- ##
993## Platform. ##
994## --------- ##
995
996hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997uname -m = `(uname -m) 2>/dev/null || echo unknown`
998uname -r = `(uname -r) 2>/dev/null || echo unknown`
999uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004
1005/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012
1013_ASUNAME
1014
1015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016for as_dir in $PATH
1017do
1018 IFS=$as_save_IFS
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1021done
1022
1023} >&5
1024
1025cat >&5 <<_ACEOF
1026
1027
1028## ----------- ##
1029## Core tests. ##
1030## ----------- ##
1031
1032_ACEOF
1033
1034
1035# Keep a trace of the command line.
1036# Strip out --no-create and --no-recursion so they do not pile up.
1037# Strip out --silent because we don't want to record it for future runs.
1038# Also quote any args containing shell meta-characters.
1039# Make two passes to allow for proper duplicate-argument suppression.
1040ac_configure_args=
1041ac_configure_args0=
1042ac_configure_args1=
1043ac_sep=
1044ac_must_keep_next=false
1045for ac_pass in 1 2
1046do
1047 for ac_arg
1048 do
1049 case $ac_arg in
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 continue ;;
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 esac
1057 case $ac_pass in
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 2)
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1063 else
1064 case $ac_arg in
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 esac
1072 ;;
1073 -* ) ac_must_keep_next=true ;;
1074 esac
1075 fi
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1078 ac_sep=" "
1079 ;;
1080 esac
1081 done
1082done
1083$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
1086# When interrupted or exit'd, cleanup temporary files, and complete
1087# config.log. We remove comments because anyway the quotes in there
1088# would cause problems or look ugly.
1089# WARNING: Be sure not to use single quotes in there, as some shells,
1090# such as our DU 5.0 friend, will then `close' the trap.
1091trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1093 {
1094 echo
1095
1096 cat <<\_ASBOX
1097## ---------------- ##
1098## Cache variables. ##
1099## ---------------- ##
1100_ASBOX
1101 echo
1102 # The following way of writing the cache mishandles newlines in values,
1103{
1104 (set) 2>&1 |
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 *ac_space=\ *)
1107 sed -n \
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 ;;
1111 *)
1112 sed -n \
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 ;;
1115 esac;
1116}
1117 echo
1118
1119 cat <<\_ASBOX
1120## ----------------- ##
1121## Output variables. ##
1122## ----------------- ##
1123_ASBOX
1124 echo
1125 for ac_var in $ac_subst_vars
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131
1132 if test -n "$ac_subst_files"; then
1133 cat <<\_ASBOX
1134## ------------- ##
1135## Output files. ##
1136## ------------- ##
1137_ASBOX
1138 echo
1139 for ac_var in $ac_subst_files
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145 fi
1146
1147 if test -s confdefs.h; then
1148 cat <<\_ASBOX
1149## ----------- ##
1150## confdefs.h. ##
1151## ----------- ##
1152_ASBOX
1153 echo
1154 sed "/^$/d" confdefs.h | sort
1155 echo
1156 fi
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1160 } >&5
1161 rm -f core *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 exit $exit_status
1164 ' 0
1165for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167done
1168ac_signal=0
1169
1170# confdefs.h avoids OS command line length limits that DEFS can exceed.
1171rm -rf conftest* confdefs.h
1172# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173echo >confdefs.h
1174
1175# Predefined preprocessor variables.
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_NAME "$PACKAGE_NAME"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_VERSION "$PACKAGE_VERSION"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_STRING "$PACKAGE_STRING"
1194_ACEOF
ea0caf4a 1195
00274452 1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199_ACEOF
1200
1201
1202# Let the site file select an alternate cache file if it wants to.
ea0caf4a 1203# Prefer explicitly selected file to automatically selected ones.
1204if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 else
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 fi
1210fi
1211for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
00274452 1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
ea0caf4a 1216 . "$ac_site_file"
1217 fi
1218done
1219
1220if test -r "$cache_file"; then
00274452 1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225echo "$as_me: loading cache $cache_file" >&6;}
1226 case $cache_file in
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1229 esac
1230 fi
ea0caf4a 1231else
00274452 1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233echo "$as_me: creating cache $cache_file" >&6;}
1234 >$cache_file
1235fi
1236
1237# Check that the precious variables saved in the cache have kept the same
1238# value.
1239ac_cache_corrupted=false
1240for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1247 set,)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,set)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,);;
1256 *)
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1265 fi;;
1266 esac
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1269 case $ac_new_val in
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1273 esac
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 esac
1278 fi
1279done
1280if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
ea0caf4a 1286fi
1287
1288ac_ext=c
ea0caf4a 1289ac_cpp='$CPP $CPPFLAGS'
00274452 1290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
ea0caf4a 1310
1311
1312
1313
1314
3595c6c0 1315ac_aux_dir=
1316for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1317 if test -f $ac_dir/install-sh; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/install-sh -c"
1320 break
1321 elif test -f $ac_dir/install.sh; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/install.sh -c"
1324 break
00274452 1325 elif test -f $ac_dir/shtool; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/shtool install -c"
1328 break
3595c6c0 1329 fi
1330done
1331if test -z "$ac_aux_dir"; then
00274452 1332 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1333echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1334 { (exit 1); exit 1; }; }
3595c6c0 1335fi
00274452 1336ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3595c6c0 1339
1340# Make sure we can run config.sub.
00274452 1341$ac_config_sub sun4 >/dev/null 2>&1 ||
1342 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1343echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1344 { (exit 1); exit 1; }; }
1345
1346echo "$as_me:$LINENO: checking build system type" >&5
1347echo $ECHO_N "checking build system type... $ECHO_C" >&6
1348if test "${ac_cv_build+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1350else
1351 ac_cv_build_alias=$build_alias
1352test -z "$ac_cv_build_alias" &&
1353 ac_cv_build_alias=`$ac_config_guess`
1354test -z "$ac_cv_build_alias" &&
1355 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1356echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1357 { (exit 1); exit 1; }; }
1358ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1359 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1360echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1361 { (exit 1); exit 1; }; }
1362
1363fi
1364echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1365echo "${ECHO_T}$ac_cv_build" >&6
1366build=$ac_cv_build
1367build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1368build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1369build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370
1371
1372echo "$as_me:$LINENO: checking host system type" >&5
1373echo $ECHO_N "checking host system type... $ECHO_C" >&6
1374if test "${ac_cv_host+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1376else
1377 ac_cv_host_alias=$host_alias
1378test -z "$ac_cv_host_alias" &&
1379 ac_cv_host_alias=$ac_cv_build_alias
1380ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1382echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
3595c6c0 1384
00274452 1385fi
1386echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1387echo "${ECHO_T}$ac_cv_host" >&6
1388host=$ac_cv_host
1389host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3595c6c0 1392
3595c6c0 1393
0bec79fd 1394# SO_LDFLAGS setting below is a great big ick.
a5a4b554 1395# But it beats sucking in libtool for one small part of the source tree.
3595c6c0 1396case $host_os in
1397solaris*)
1398 short_os=solaris
0bec79fd 1399 SO_LDFLAGS="-G"
3595c6c0 1400 ;;
1401irix*)
1402 short_os=irix
0bec79fd 1403 SO_LDFLAGS="-shared"
3595c6c0 1404 ;;
1405linux*)
1406 short_os=linux
0bec79fd 1407 SO_LDFLAGS="-shared"
3595c6c0 1408 ;;
1409esac
1410
ea0caf4a 1411
1412
0bec79fd 1413
ea0caf4a 1414
1415
1416
00274452 1417
1418ac_ext=c
1419ac_cpp='$CPP $CPPFLAGS'
1420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422ac_compiler_gnu=$ac_cv_c_compiler_gnu
1423if test -n "$ac_tool_prefix"; then
1424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1425set dummy ${ac_tool_prefix}gcc; ac_word=$2
1426echo "$as_me:$LINENO: checking for $ac_word" >&5
1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428if test "${ac_cv_prog_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 1430else
1431 if test -n "$CC"; then
1432 ac_cv_prog_CC="$CC" # Let the user override the test.
1433else
00274452 1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 break 2
1444 fi
1445done
1446done
1447
1448fi
1449fi
1450CC=$ac_cv_prog_CC
1451if test -n "$CC"; then
1452 echo "$as_me:$LINENO: result: $CC" >&5
1453echo "${ECHO_T}$CC" >&6
1454else
1455 echo "$as_me:$LINENO: result: no" >&5
1456echo "${ECHO_T}no" >&6
1457fi
1458
1459fi
1460if test -z "$ac_cv_prog_CC"; then
1461 ac_ct_CC=$CC
1462 # Extract the first word of "gcc", so it can be a program name with args.
1463set dummy gcc; ac_word=$2
1464echo "$as_me:$LINENO: checking for $ac_word" >&5
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469 if test -n "$ac_ct_CC"; then
1470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1471else
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_ac_ct_CC="gcc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
1484done
1485
1486fi
1487fi
1488ac_ct_CC=$ac_cv_prog_ac_ct_CC
1489if test -n "$ac_ct_CC"; then
1490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1491echo "${ECHO_T}$ac_ct_CC" >&6
1492else
1493 echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497 CC=$ac_ct_CC
1498else
1499 CC="$ac_cv_prog_CC"
1500fi
1501
1502if test -z "$CC"; then
1503 if test -n "$ac_tool_prefix"; then
1504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1505set dummy ${ac_tool_prefix}cc; ac_word=$2
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508if test "${ac_cv_prog_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$CC"; then
1512 ac_cv_prog_CC="$CC" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_CC="${ac_tool_prefix}cc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525done
1526done
1527
ea0caf4a 1528fi
1529fi
00274452 1530CC=$ac_cv_prog_CC
ea0caf4a 1531if test -n "$CC"; then
00274452 1532 echo "$as_me:$LINENO: result: $CC" >&5
1533echo "${ECHO_T}$CC" >&6
1534else
1535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
1537fi
1538
1539fi
1540if test -z "$ac_cv_prog_CC"; then
1541 ac_ct_CC=$CC
1542 # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
1544echo "$as_me:$LINENO: checking for $ac_word" >&5
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551else
1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC="cc"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
1562 fi
1563done
1564done
1565
1566fi
1567fi
1568ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571echo "${ECHO_T}$ac_ct_CC" >&6
1572else
1573 echo "$as_me:$LINENO: result: no" >&5
1574echo "${ECHO_T}no" >&6
1575fi
1576
1577 CC=$ac_ct_CC
ea0caf4a 1578else
00274452 1579 CC="$ac_cv_prog_CC"
ea0caf4a 1580fi
1581
00274452 1582fi
ea0caf4a 1583if test -z "$CC"; then
1584 # Extract the first word of "cc", so it can be a program name with args.
1585set dummy cc; ac_word=$2
00274452 1586echo "$as_me:$LINENO: checking for $ac_word" >&5
1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588if test "${ac_cv_prog_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 1590else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593else
ea0caf4a 1594 ac_prog_rejected=no
00274452 1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1603 ac_prog_rejected=yes
1604 continue
1605 fi
1606 ac_cv_prog_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 break 2
1609 fi
1610done
1611done
1612
ea0caf4a 1613if test $ac_prog_rejected = yes; then
1614 # We found a bogon in the path, so make sure we never use it.
1615 set dummy $ac_cv_prog_CC
1616 shift
00274452 1617 if test $# != 0; then
ea0caf4a 1618 # We chose a different compiler from the bogus one.
1619 # However, it has the same basename, so the bogon will be chosen
1620 # first if we set CC to just the basename; use the full file name.
1621 shift
00274452 1622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ea0caf4a 1623 fi
1624fi
1625fi
1626fi
00274452 1627CC=$ac_cv_prog_CC
ea0caf4a 1628if test -n "$CC"; then
00274452 1629 echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
ea0caf4a 1631else
00274452 1632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
ea0caf4a 1634fi
1635
00274452 1636fi
1637if test -z "$CC"; then
1638 if test -n "$ac_tool_prefix"; then
1639 for ac_prog in cl
1640 do
1641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
ee85084d 1647else
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1650else
00274452 1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662done
1663done
1664
ee85084d 1665fi
1666fi
00274452 1667CC=$ac_cv_prog_CC
ee85084d 1668if test -n "$CC"; then
00274452 1669 echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
ee85084d 1671else
00274452 1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
ee85084d 1674fi
00274452 1675
1676 test -n "$CC" && break
1677 done
1678fi
1679if test -z "$CC"; then
1680 ac_ct_CC=$CC
1681 for ac_prog in cl
1682do
1683 # Extract the first word of "$ac_prog", so it can be a program name with args.
1684set dummy $ac_prog; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690 if test -n "$ac_ct_CC"; then
1691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_ac_ct_CC="$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
ee85084d 1703 fi
00274452 1704done
1705done
1706
1707fi
1708fi
1709ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710if test -n "$ac_ct_CC"; then
1711 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1712echo "${ECHO_T}$ac_ct_CC" >&6
1713else
1714 echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
ea0caf4a 1716fi
1717
00274452 1718 test -n "$ac_ct_CC" && break
1719done
ea0caf4a 1720
00274452 1721 CC=$ac_ct_CC
1722fi
1723
1724fi
1725
1726
1727test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1728See \`config.log' for more details." >&5
1729echo "$as_me: error: no acceptable C compiler found in \$PATH
1730See \`config.log' for more details." >&2;}
1731 { (exit 1); exit 1; }; }
1732
1733# Provide some information about the compiler.
1734echo "$as_me:$LINENO:" \
1735 "checking for C compiler version" >&5
1736ac_compiler=`set X $ac_compile; echo $2`
1737{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1738 (eval $ac_compiler --version </dev/null >&5) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }
1742{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1743 (eval $ac_compiler -v </dev/null >&5) 2>&5
1744 ac_status=$?
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1748 (eval $ac_compiler -V </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752
1753cat >conftest.$ac_ext <<_ACEOF
1754/* confdefs.h. */
1755_ACEOF
1756cat confdefs.h >>conftest.$ac_ext
1757cat >>conftest.$ac_ext <<_ACEOF
1758/* end confdefs.h. */
1759
1760int
1761main ()
1762{
1763
1764 ;
1765 return 0;
1766}
1767_ACEOF
1768ac_clean_files_save=$ac_clean_files
1769ac_clean_files="$ac_clean_files a.out a.exe b.out"
1770# Try to create an executable without -o first, disregard a.out.
1771# It will help us diagnose broken compilers, and finding out an intuition
1772# of exeext.
1773echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1774echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1775ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1776if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1777 (eval $ac_link_default) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }; then
1781 # Find the output, starting from the most likely. This scheme is
1782# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783# resort.
1784
1785# Be careful to initialize this variable, since it used to be cached.
1786# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1787ac_cv_exeext=
1788# b.out is created by i960 compilers.
1789for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1790do
1791 test -f "$ac_file" || continue
1792 case $ac_file in
1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794 ;;
1795 conftest.$ac_ext )
1796 # This is the source file.
1797 ;;
1798 [ab].out )
1799 # We found the default executable, but exeext='' is most
1800 # certainly right.
1801 break;;
1802 *.* )
1803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804 # FIXME: I believe we export ac_cv_exeext for Libtool,
1805 # but it would be cool to find out if it's true. Does anybody
1806 # maintain Libtool? --akim.
1807 export ac_cv_exeext
1808 break;;
1809 * )
1810 break;;
1811 esac
1812done
1813else
1814 echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818See \`config.log' for more details." >&5
1819echo "$as_me: error: C compiler cannot create executables
1820See \`config.log' for more details." >&2;}
1821 { (exit 77); exit 77; }; }
1822fi
1823
1824ac_exeext=$ac_cv_exeext
1825echo "$as_me:$LINENO: result: $ac_file" >&5
1826echo "${ECHO_T}$ac_file" >&6
1827
1828# Check the compiler produces executables we can run. If not, either
1829# the compiler is broken, or we cross compile.
1830echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833# If not cross compiling, check that we can run a simple program.
1834if test "$cross_compiling" != yes; then
1835 if { ac_try='./$ac_file'
1836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837 (eval $ac_try) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 cross_compiling=no
ea0caf4a 1842 else
00274452 1843 if test "$cross_compiling" = maybe; then
1844 cross_compiling=yes
1845 else
1846 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847If you meant to cross compile, use \`--host'.
1848See \`config.log' for more details." >&5
1849echo "$as_me: error: cannot run C compiled programs.
1850If you meant to cross compile, use \`--host'.
1851See \`config.log' for more details." >&2;}
1852 { (exit 1); exit 1; }; }
1853 fi
ea0caf4a 1854 fi
ea0caf4a 1855fi
00274452 1856echo "$as_me:$LINENO: result: yes" >&5
1857echo "${ECHO_T}yes" >&6
1858
1859rm -f a.out a.exe conftest$ac_cv_exeext b.out
1860ac_clean_files=$ac_clean_files_save
1861# Check the compiler produces executables we can run. If not, either
1862# the compiler is broken, or we cross compile.
1863echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866echo "${ECHO_T}$cross_compiling" >&6
1867
1868echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1871 (eval $ac_link) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1877# work properly (i.e., refer to `conftest.exe'), while it won't with
1878# `rm'.
1879for ac_file in conftest.exe conftest conftest.*; do
1880 test -f "$ac_file" || continue
1881 case $ac_file in
1882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1884 export ac_cv_exeext
1885 break;;
1886 * ) break;;
1887 esac
1888done
ea0caf4a 1889else
00274452 1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1891See \`config.log' for more details." >&5
1892echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1893See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1895fi
1896
1897rm -f conftest$ac_cv_exeext
1898echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1899echo "${ECHO_T}$ac_cv_exeext" >&6
1900
1901rm -f conftest.$ac_ext
1902EXEEXT=$ac_cv_exeext
1903ac_exeext=$EXEEXT
1904echo "$as_me:$LINENO: checking for suffix of object files" >&5
1905echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1906if test "${ac_cv_objext+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909 cat >conftest.$ac_ext <<_ACEOF
1910/* confdefs.h. */
1911_ACEOF
1912cat confdefs.h >>conftest.$ac_ext
1913cat >>conftest.$ac_ext <<_ACEOF
1914/* end confdefs.h. */
1915
1916int
1917main ()
1918{
1919
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924rm -f conftest.o conftest.obj
1925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>&5
1927 ac_status=$?
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1931 case $ac_file in
1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1934 break;;
1935 esac
1936done
1937else
1938 echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1942See \`config.log' for more details." >&5
1943echo "$as_me: error: cannot compute suffix of object files: cannot compile
1944See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1946fi
1947
1948rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949fi
1950echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1951echo "${ECHO_T}$ac_cv_objext" >&6
1952OBJEXT=$ac_cv_objext
1953ac_objext=$OBJEXT
1954echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1955echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1956if test "${ac_cv_c_compiler_gnu+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 cat >conftest.$ac_ext <<_ACEOF
1960/* confdefs.h. */
1961_ACEOF
1962cat confdefs.h >>conftest.$ac_ext
1963cat >>conftest.$ac_ext <<_ACEOF
1964/* end confdefs.h. */
1965
1966int
1967main ()
1968{
1969#ifndef __GNUC__
1970 choke me
1971#endif
ea0caf4a 1972
00274452 1973 ;
1974 return 0;
1975}
1976_ACEOF
1977rm -f conftest.$ac_objext
1978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979 (eval $ac_compile) 2>conftest.er1
1980 ac_status=$?
1981 grep -v '^ *+' conftest.er1 >conftest.err
1982 rm -f conftest.er1
1983 cat conftest.err >&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); } &&
1986 { ac_try='test -z "$ac_c_werror_flag"
1987 || test ! -s conftest.err'
1988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989 (eval $ac_try) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
ee85084d 2000else
00274452 2001 echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004ac_compiler_gnu=no
ee85084d 2005fi
00274452 2006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007ac_cv_c_compiler_gnu=$ac_compiler_gnu
ee85084d 2008
00274452 2009fi
2010echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012GCC=`test $ac_compiler_gnu = yes && echo yes`
2013ac_test_CFLAGS=${CFLAGS+set}
2014ac_save_CFLAGS=$CFLAGS
2015CFLAGS="-g"
2016echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2020else
00274452 2021 cat >conftest.$ac_ext <<_ACEOF
2022/* confdefs.h. */
2023_ACEOF
2024cat confdefs.h >>conftest.$ac_ext
2025cat >>conftest.$ac_ext <<_ACEOF
2026/* end confdefs.h. */
2027
2028int
2029main ()
2030{
2031
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036rm -f conftest.$ac_objext
2037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>conftest.er1
2039 ac_status=$?
2040 grep -v '^ *+' conftest.er1 >conftest.err
2041 rm -f conftest.er1
2042 cat conftest.err >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); } &&
2045 { ac_try='test -z "$ac_c_werror_flag"
2046 || test ! -s conftest.err'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 (eval $ac_try) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; } &&
2052 { ac_try='test -s conftest.$ac_objext'
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
ea0caf4a 2058 ac_cv_prog_cc_g=yes
2059else
00274452 2060 echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 2062
00274452 2063ac_cv_prog_cc_g=no
ea0caf4a 2064fi
00274452 2065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2066fi
2067echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2068echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
ee85084d 2069if test "$ac_test_CFLAGS" = set; then
00274452 2070 CFLAGS=$ac_save_CFLAGS
ee85084d 2071elif test $ac_cv_prog_cc_g = yes; then
2072 if test "$GCC" = yes; then
ea0caf4a 2073 CFLAGS="-g -O2"
2074 else
ee85084d 2075 CFLAGS="-g"
ea0caf4a 2076 fi
2077else
ee85084d 2078 if test "$GCC" = yes; then
2079 CFLAGS="-O2"
2080 else
2081 CFLAGS=
2082 fi
ea0caf4a 2083fi
00274452 2084echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2085echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2086if test "${ac_cv_prog_cc_stdc+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089 ac_cv_prog_cc_stdc=no
2090ac_save_CC=$CC
2091cat >conftest.$ac_ext <<_ACEOF
2092/* confdefs.h. */
2093_ACEOF
2094cat confdefs.h >>conftest.$ac_ext
2095cat >>conftest.$ac_ext <<_ACEOF
2096/* end confdefs.h. */
2097#include <stdarg.h>
2098#include <stdio.h>
2099#include <sys/types.h>
2100#include <sys/stat.h>
2101/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2102struct buf { int x; };
2103FILE * (*rcsopen) (struct buf *, struct stat *, int);
2104static char *e (p, i)
2105 char **p;
2106 int i;
2107{
2108 return p[i];
2109}
2110static char *f (char * (*g) (char **, int), char **p, ...)
2111{
2112 char *s;
2113 va_list v;
2114 va_start (v,p);
2115 s = g (p, va_arg (v,int));
2116 va_end (v);
2117 return s;
2118}
2119
2120/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2121 function prototypes and stuff, but not '\xHH' hex character constants.
2122 These don't provoke an error unfortunately, instead are silently treated
2123 as 'x'. The following induces an error, until -std1 is added to get
2124 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2125 array size at least. It's necessary to write '\x00'==0 to get something
2126 that's true only with -std1. */
2127int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2128
2129int test (int i, double x);
2130struct s1 {int (*f) (int a);};
2131struct s2 {int (*f) (double a);};
2132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2133int argc;
2134char **argv;
2135int
2136main ()
2137{
2138return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143# Don't try gcc -ansi; that turns off useful extensions and
2144# breaks some systems' header files.
2145# AIX -qlanglvl=ansi
2146# Ultrix and OSF/1 -std1
2147# HP-UX 10.20 and later -Ae
2148# HP-UX older versions -Aa -D_HPUX_SOURCE
2149# SVR4 -Xc -D__EXTENSIONS__
2150for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151do
2152 CC="$ac_save_CC $ac_arg"
2153 rm -f conftest.$ac_objext
2154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 ac_cv_prog_cc_stdc=$ac_arg
2176break
2177else
2178 echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181fi
2182rm -f conftest.err conftest.$ac_objext
2183done
2184rm -f conftest.$ac_ext conftest.$ac_objext
2185CC=$ac_save_CC
2186
2187fi
2188
2189case "x$ac_cv_prog_cc_stdc" in
2190 x|xno)
2191 echo "$as_me:$LINENO: result: none needed" >&5
2192echo "${ECHO_T}none needed" >&6 ;;
2193 *)
2194 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2195echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2196 CC="$CC $ac_cv_prog_cc_stdc" ;;
2197esac
2198
2199# Some people use a C++ compiler to compile C. Since we use `exit',
2200# in C++ we need to declare it. In case someone uses the same compiler
2201# for both compiling C and C++ we need to have the C++ compiler decide
2202# the declaration of exit, since it's the most demanding environment.
2203cat >conftest.$ac_ext <<_ACEOF
2204#ifndef __cplusplus
2205 choke me
2206#endif
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 for ac_declaration in \
2231 '' \
2232 'extern "C" void std::exit (int) throw (); using std::exit;' \
2233 'extern "C" void std::exit (int); using std::exit;' \
2234 'extern "C" void exit (int) throw ();' \
2235 'extern "C" void exit (int);' \
2236 'void exit (int);'
2237do
2238 cat >conftest.$ac_ext <<_ACEOF
2239/* confdefs.h. */
2240_ACEOF
2241cat confdefs.h >>conftest.$ac_ext
2242cat >>conftest.$ac_ext <<_ACEOF
2243/* end confdefs.h. */
2244$ac_declaration
2245#include <stdlib.h>
2246int
2247main ()
2248{
2249exit (42);
2250 ;
2251 return 0;
2252}
2253_ACEOF
2254rm -f conftest.$ac_objext
2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 :
2277else
2278 echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281continue
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284 cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h. */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h. */
2290$ac_declaration
2291int
2292main ()
2293{
2294exit (42);
2295 ;
2296 return 0;
2297}
2298_ACEOF
2299rm -f conftest.$ac_objext
2300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2302 ac_status=$?
2303 grep -v '^ *+' conftest.er1 >conftest.err
2304 rm -f conftest.er1
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag"
2309 || test ! -s conftest.err'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 (eval $ac_try) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2321 break
2322else
2323 echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328done
2329rm -f conftest*
2330if test -n "$ac_declaration"; then
2331 echo '#ifdef __cplusplus' >>confdefs.h
2332 echo $ac_declaration >>confdefs.h
2333 echo '#endif' >>confdefs.h
2334fi
2335
2336else
2337 echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342ac_ext=c
2343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea0caf4a 2347
ea0caf4a 2348# Find a good install program. We prefer a C program (faster),
2349# so one script is as good as another. But avoid the broken or
2350# incompatible versions:
2351# SysV /etc/install, /usr/sbin/install
2352# SunOS /usr/etc/install
2353# IRIX /sbin/install
2354# AIX /bin/install
00274452 2355# AmigaOS /C/install, which installs bootblocks on floppy discs
ee85084d 2356# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ea0caf4a 2357# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
00274452 2359# OS/2's system install, which has a completely different semantic
ea0caf4a 2360# ./install, which can be erroneously created by make from ./install.sh.
00274452 2361echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2362echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ea0caf4a 2363if test -z "$INSTALL"; then
00274452 2364if test "${ac_cv_path_install+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH
2369do
2370 IFS=$as_save_IFS
2371 test -z "$as_dir" && as_dir=.
2372 # Account for people who put trailing slashes in PATH elements.
2373case $as_dir/ in
2374 ./ | .// | /cC/* | \
2375 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2376 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2377 /usr/ucb/* ) ;;
2378 *)
2379 # OSF1 and SCO ODT 3.0 have their own names for install.
2380 # Don't use installbsd from OSF since it installs stuff as root
2381 # by default.
2382 for ac_prog in ginstall scoinst install; do
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ea0caf4a 2385 if test $ac_prog = install &&
00274452 2386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
ea0caf4a 2387 # AIX install. It has an incompatible calling convention.
ea0caf4a 2388 :
00274452 2389 elif test $ac_prog = install &&
2390 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391 # program-specific install script used by HP pwplus--don't use.
2392 :
ea0caf4a 2393 else
00274452 2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2395 break 3
ea0caf4a 2396 fi
2397 fi
2398 done
00274452 2399 done
2400 ;;
2401esac
2402done
2403
ea0caf4a 2404
2405fi
2406 if test "${ac_cv_path_install+set}" = set; then
00274452 2407 INSTALL=$ac_cv_path_install
ea0caf4a 2408 else
2409 # As a last resort, use the slow shell script. We don't cache a
2410 # path for INSTALL within a source directory, because that will
2411 # break other packages using the cache if that directory is
2412 # removed, or if the path is relative.
00274452 2413 INSTALL=$ac_install_sh
ea0caf4a 2414 fi
2415fi
00274452 2416echo "$as_me:$LINENO: result: $INSTALL" >&5
2417echo "${ECHO_T}$INSTALL" >&6
ea0caf4a 2418
2419# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2420# It thinks the first close brace ends the variable substitution.
2421test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2422
00274452 2423test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ee85084d 2424
ea0caf4a 2425test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2426
00274452 2427if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2429set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2430echo "$as_me:$LINENO: checking for $ac_word" >&5
2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432if test "${ac_cv_prog_RANLIB+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2434else
2435 if test -n "$RANLIB"; then
2436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2437else
00274452 2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2448 fi
2449done
2450done
2451
ea0caf4a 2452fi
2453fi
00274452 2454RANLIB=$ac_cv_prog_RANLIB
ea0caf4a 2455if test -n "$RANLIB"; then
00274452 2456 echo "$as_me:$LINENO: result: $RANLIB" >&5
2457echo "${ECHO_T}$RANLIB" >&6
2458else
2459 echo "$as_me:$LINENO: result: no" >&5
2460echo "${ECHO_T}no" >&6
2461fi
2462
2463fi
2464if test -z "$ac_cv_prog_RANLIB"; then
2465 ac_ct_RANLIB=$RANLIB
2466 # Extract the first word of "ranlib", so it can be a program name with args.
2467set dummy ranlib; ac_word=$2
2468echo "$as_me:$LINENO: checking for $ac_word" >&5
2469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2472else
00274452 2473 if test -n "$ac_ct_RANLIB"; then
2474 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483 ac_cv_prog_ac_ct_RANLIB="ranlib"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487done
2488done
2489
2490 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2491fi
2492fi
2493ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2494if test -n "$ac_ct_RANLIB"; then
2495 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2496echo "${ECHO_T}$ac_ct_RANLIB" >&6
2497else
2498 echo "$as_me:$LINENO: result: no" >&5
2499echo "${ECHO_T}no" >&6
2500fi
2501
2502 RANLIB=$ac_ct_RANLIB
2503else
2504 RANLIB="$ac_cv_prog_RANLIB"
ea0caf4a 2505fi
2506
00274452 2507echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2508echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2509set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2510if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2512else
00274452 2513 cat >conftest.make <<\_ACEOF
ea0caf4a 2514all:
00274452 2515 @echo 'ac_maketemp="$(MAKE)"'
2516_ACEOF
ea0caf4a 2517# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
00274452 2518eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
ea0caf4a 2519if test -n "$ac_maketemp"; then
2520 eval ac_cv_prog_make_${ac_make}_set=yes
2521else
2522 eval ac_cv_prog_make_${ac_make}_set=no
2523fi
00274452 2524rm -f conftest.make
ea0caf4a 2525fi
2526if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
00274452 2527 echo "$as_me:$LINENO: result: yes" >&5
2528echo "${ECHO_T}yes" >&6
ea0caf4a 2529 SET_MAKE=
2530else
00274452 2531 echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6
ea0caf4a 2533 SET_MAKE="MAKE=${MAKE-make}"
2534fi
2535
2536
2537if test "$athena" = true; then
2538 enable_athena=yes
65cda191 2539 prefix=/afs/.athena.mit.edu/system/moira
ea0caf4a 2540 bindir=$prefix/arch/$ATHENA_SYS/bin
2541 sbindir=$bindir
00274452 2542
2543
618b3834 2544 case $CPPFLAGS in
2545 *-I/usr/athena/include*) ;;
2546 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
2547 esac
2548
00274452 2549
618b3834 2550 case $PRO_C_INCLUDES in
2551 *INCLUDE=/usr/athena/include*) ;;
2552 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include\ $PRO_C_INCLUDES ;;
2553 esac
2554
2555
00274452 2556
2557
618b3834 2558 case $CPPFLAGS in
2559 *-I/usr/athena/include/kerberosIV*) ;;
2560 *) CPPFLAGS=-I/usr/athena/include/kerberosIV\ $CPPFLAGS ;;
2561 esac
2562
00274452 2563
618b3834 2564 case $PRO_C_INCLUDES in
2565 *INCLUDE=/usr/athena/include/kerberosIV*) ;;
2566 *) PRO_C_INCLUDES=INCLUDE=/usr/athena/include/kerberosIV\ $PRO_C_INCLUDES ;;
2567 esac
2568
2569
00274452 2570
618b3834 2571 case $LIBPATH in
2572 *-L/usr/athena/lib*) ;;
2573 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
2574 esac
2575
ea0caf4a 2576fi
2577
2578# We currently just don't support changing this
2579mrbindir=/moira/bin
2580
2581
2582# Athena-local policy decisions
00274452 2583echo "$as_me:$LINENO: checking for Athena" >&5
2584echo $ECHO_N "checking for Athena... $ECHO_C" >&6
ea0caf4a 2585# Check whether --enable-athena or --disable-athena was given.
2586if test "${enable_athena+set}" = set; then
2587 enableval="$enable_athena"
00274452 2588
ea0caf4a 2589else
2590 if test "$athena" = true; then
2591 enableval=yes
2592 else
2593 enableval=no
2594 fi
00274452 2595fi;
2596echo "$as_me:$LINENO: result: $enableval" >&5
2597echo "${ECHO_T}$enableval" >&6
ea0caf4a 2598if test "$enableval" = yes; then
00274452 2599
2600 cat >>confdefs.h <<\_ACEOF
ea0caf4a 2601#define ATHENA 1
00274452 2602_ACEOF
2603
ea0caf4a 2604
ea0caf4a 2605 case $PRO_C_DEFS in
2606 *DEFINE=ATHENA*) ;;
2607 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
2608 esac
2609
2610
2611fi
2612
2613# Networking libraries
00274452 2614{ echo "$as_me:$LINENO: checking network libraries......" >&5
2615echo "$as_me: checking network libraries......" >&6;}
2616echo "$as_me:$LINENO: checking for gethostbyname" >&5
2617echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2618if test "${ac_cv_func_gethostbyname+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h. */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
2627/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2629#define gethostbyname innocuous_gethostbyname
2630
ea0caf4a 2631/* System header to define __stub macros and hopefully few prototypes,
00274452 2632 which can conflict with char gethostbyname (); below.
2633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2634 <limits.h> exists even on freestanding compilers. */
2635
2636#ifdef __STDC__
2637# include <limits.h>
2638#else
2639# include <assert.h>
2640#endif
ea0caf4a 2641
00274452 2642#undef gethostbyname
ea0caf4a 2643
00274452 2644/* Override any gcc2 internal prototype to avoid an error. */
2645#ifdef __cplusplus
2646extern "C"
2647{
2648#endif
2649/* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2651char gethostbyname ();
ea0caf4a 2652/* The GNU C library defines this for functions which it implements
2653 to always fail with ENOSYS. Some functions are actually named
2654 something starting with __ and the normal name is an alias. */
2655#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2656choke me
2657#else
00274452 2658char (*f) () = gethostbyname;
2659#endif
2660#ifdef __cplusplus
2661}
ea0caf4a 2662#endif
2663
00274452 2664int
2665main ()
2666{
2667return f != gethostbyname;
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext conftest$ac_exeext
2673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674 (eval $ac_link) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_func_gethostbyname=yes
ea0caf4a 2695else
00274452 2696 echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699ac_cv_func_gethostbyname=no
ea0caf4a 2700fi
00274452 2701rm -f conftest.err conftest.$ac_objext \
2702 conftest$ac_exeext conftest.$ac_ext
ea0caf4a 2703fi
00274452 2704echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2705echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2706if test $ac_cv_func_gethostbyname = yes; then
ea0caf4a 2707 :
2708else
00274452 2709
2710echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2711echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2712if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2714else
00274452 2715 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 2716LIBS="-lnsl $LIBS"
00274452 2717cat >conftest.$ac_ext <<_ACEOF
2718/* confdefs.h. */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2722/* end confdefs.h. */
2723
ea0caf4a 2724/* Override any gcc2 internal prototype to avoid an error. */
00274452 2725#ifdef __cplusplus
2726extern "C"
2727#endif
ea0caf4a 2728/* We use char because int might match the return type of a gcc2
00274452 2729 builtin and then its argument prototype would still apply. */
2730char gethostbyname ();
2731int
2732main ()
2733{
2734gethostbyname ();
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext conftest$ac_exeext
2740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741 (eval $ac_link) 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest$ac_exeext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_lib_nsl_gethostbyname=yes
2762else
2763 echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 2765
00274452 2766ac_cv_lib_nsl_gethostbyname=no
2767fi
2768rm -f conftest.err conftest.$ac_objext \
2769 conftest$ac_exeext conftest.$ac_ext
2770LIBS=$ac_check_lib_save_LIBS
ea0caf4a 2771fi
00274452 2772echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2773echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2774if test $ac_cv_lib_nsl_gethostbyname = yes; then
2775 cat >>confdefs.h <<_ACEOF
2776#define HAVE_LIBNSL 1
2777_ACEOF
ea0caf4a 2778
2779 LIBS="-lnsl $LIBS"
2780
2781else
00274452 2782
2783echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2784echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2785if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2787else
00274452 2788 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 2789LIBS="-lresolv $LIBS"
00274452 2790
2791cat >conftest.$ac_ext <<_ACEOF
2792/* confdefs.h. */
2793_ACEOF
2794cat confdefs.h >>conftest.$ac_ext
2795cat >>conftest.$ac_ext <<_ACEOF
2796/* end confdefs.h. */
2797
ea0caf4a 2798/* Override any gcc2 internal prototype to avoid an error. */
00274452 2799#ifdef __cplusplus
2800extern "C"
2801#endif
ea0caf4a 2802/* We use char because int might match the return type of a gcc2
00274452 2803 builtin and then its argument prototype would still apply. */
2804char gethostbyname ();
2805int
2806main ()
2807{
2808gethostbyname ();
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813rm -f conftest.$ac_objext conftest$ac_exeext
2814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2815 (eval $ac_link) 2>conftest.er1
2816 ac_status=$?
2817 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 { ac_try='test -z "$ac_c_werror_flag"
2823 || test ! -s conftest.err'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; } &&
2829 { ac_try='test -s conftest$ac_exeext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 ac_cv_lib_resolv_gethostbyname=yes
2836else
2837 echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 2839
00274452 2840ac_cv_lib_resolv_gethostbyname=no
2841fi
2842rm -f conftest.err conftest.$ac_objext \
2843 conftest$ac_exeext conftest.$ac_ext
2844LIBS=$ac_check_lib_save_LIBS
ea0caf4a 2845fi
00274452 2846echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
2847echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
2848if test $ac_cv_lib_resolv_gethostbyname = yes; then
2849 cat >>confdefs.h <<_ACEOF
2850#define HAVE_LIBRESOLV 1
2851_ACEOF
ea0caf4a 2852
2853 LIBS="-lresolv $LIBS"
2854
ea0caf4a 2855fi
2856
2857fi
2858
2859fi
2860
00274452 2861echo "$as_me:$LINENO: checking for socket" >&5
2862echo $ECHO_N "checking for socket... $ECHO_C" >&6
2863if test "${ac_cv_func_socket+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2865else
00274452 2866 cat >conftest.$ac_ext <<_ACEOF
2867/* confdefs.h. */
2868_ACEOF
2869cat confdefs.h >>conftest.$ac_ext
2870cat >>conftest.$ac_ext <<_ACEOF
2871/* end confdefs.h. */
2872/* Define socket to an innocuous variant, in case <limits.h> declares socket.
2873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2874#define socket innocuous_socket
2875
ea0caf4a 2876/* System header to define __stub macros and hopefully few prototypes,
00274452 2877 which can conflict with char socket (); below.
2878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879 <limits.h> exists even on freestanding compilers. */
2880
2881#ifdef __STDC__
2882# include <limits.h>
2883#else
2884# include <assert.h>
2885#endif
ea0caf4a 2886
00274452 2887#undef socket
ea0caf4a 2888
00274452 2889/* Override any gcc2 internal prototype to avoid an error. */
2890#ifdef __cplusplus
2891extern "C"
2892{
2893#endif
2894/* We use char because int might match the return type of a gcc2
2895 builtin and then its argument prototype would still apply. */
2896char socket ();
ea0caf4a 2897/* The GNU C library defines this for functions which it implements
2898 to always fail with ENOSYS. Some functions are actually named
2899 something starting with __ and the normal name is an alias. */
2900#if defined (__stub_socket) || defined (__stub___socket)
2901choke me
2902#else
00274452 2903char (*f) () = socket;
2904#endif
2905#ifdef __cplusplus
2906}
ea0caf4a 2907#endif
2908
00274452 2909int
2910main ()
2911{
2912return f != socket;
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917rm -f conftest.$ac_objext conftest$ac_exeext
2918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>conftest.er1
2920 ac_status=$?
2921 grep -v '^ *+' conftest.er1 >conftest.err
2922 rm -f conftest.er1
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_func_socket=yes
ea0caf4a 2940else
00274452 2941 echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944ac_cv_func_socket=no
ea0caf4a 2945fi
00274452 2946rm -f conftest.err conftest.$ac_objext \
2947 conftest$ac_exeext conftest.$ac_ext
ea0caf4a 2948fi
00274452 2949echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
2950echo "${ECHO_T}$ac_cv_func_socket" >&6
2951if test $ac_cv_func_socket = yes; then
ea0caf4a 2952 :
2953else
00274452 2954
2955echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2956echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2957if test "${ac_cv_lib_socket_socket+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 2959else
00274452 2960 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 2961LIBS="-lsocket $LIBS"
00274452 2962cat >conftest.$ac_ext <<_ACEOF
2963/* confdefs.h. */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h. */
2968
ea0caf4a 2969/* Override any gcc2 internal prototype to avoid an error. */
00274452 2970#ifdef __cplusplus
2971extern "C"
2972#endif
ea0caf4a 2973/* We use char because int might match the return type of a gcc2
00274452 2974 builtin and then its argument prototype would still apply. */
2975char socket ();
2976int
2977main ()
2978{
2979socket ();
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext conftest$ac_exeext
2985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_c_werror_flag"
2994 || test ! -s conftest.err'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest$ac_exeext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 (eval $ac_try) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 ac_cv_lib_socket_socket=yes
3007else
3008 echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3010
00274452 3011ac_cv_lib_socket_socket=no
ea0caf4a 3012fi
00274452 3013rm -f conftest.err conftest.$ac_objext \
3014 conftest$ac_exeext conftest.$ac_ext
3015LIBS=$ac_check_lib_save_LIBS
3016fi
3017echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3018echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3019if test $ac_cv_lib_socket_socket = yes; then
3020 cat >>confdefs.h <<_ACEOF
3021#define HAVE_LIBSOCKET 1
3022_ACEOF
ea0caf4a 3023
3024 LIBS="-lsocket $LIBS"
3025
3026else
00274452 3027 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3028echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3029if test "${ac_cv_lib_socket_socket+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3031else
00274452 3032 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 3033LIBS="-lsocket -lnsl $LIBS"
00274452 3034cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040
ea0caf4a 3041/* Override any gcc2 internal prototype to avoid an error. */
00274452 3042#ifdef __cplusplus
3043extern "C"
3044#endif
ea0caf4a 3045/* We use char because int might match the return type of a gcc2
00274452 3046 builtin and then its argument prototype would still apply. */
3047char socket ();
3048int
3049main ()
3050{
3051socket ();
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext conftest$ac_exeext
3057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3058 (eval $ac_link) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag"
3066 || test ! -s conftest.err'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest$ac_exeext'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_lib_socket_socket=yes
3079else
3080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3082
00274452 3083ac_cv_lib_socket_socket=no
ea0caf4a 3084fi
00274452 3085rm -f conftest.err conftest.$ac_objext \
3086 conftest$ac_exeext conftest.$ac_ext
3087LIBS=$ac_check_lib_save_LIBS
3088fi
3089echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3090echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3091if test $ac_cv_lib_socket_socket = yes; then
ea0caf4a 3092 LIBS="-lsocket -lnsl $LIBS"
3093else
00274452 3094 :
ea0caf4a 3095fi
3096
3097fi
3098
3099fi
3100
3101
7f7f279f 3102# com_err (required, but can be built)
00274452 3103echo "$as_me:$LINENO: checking for com_err" >&5
3104echo $ECHO_N "checking for com_err... $ECHO_C" >&6
3105
7f7f279f 3106# Check whether --with-com_err or --without-com_err was given.
3107if test "${with_com_err+set}" = set; then
3108 withval="$with_com_err"
00274452 3109 echo "$as_me:$LINENO: result: $withval" >&5
3110echo "${ECHO_T}$withval" >&6
7f7f279f 3111 if test $withval = "no"; then
00274452 3112 { { echo "$as_me:$LINENO: error: com_err is required for Moira" >&5
3113echo "$as_me: error: com_err is required for Moira" >&2;}
3114 { (exit 1); exit 1; }; }
7f7f279f 3115 fi
3116 if test $withval != "yes"; then
00274452 3117
3118
7f7f279f 3119 case $CPPFLAGS in
3120 *-I$withval/include*) ;;
3121 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
3122 esac
3123
00274452 3124
7f7f279f 3125 case $PRO_C_INCLUDES in
3126 *INCLUDE=$withval/include*) ;;
3127 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
3128 esac
3129
3130
00274452 3131
7f7f279f 3132 case $LIBPATH in
3133 *-L$withval/lib*) ;;
3134 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
3135 esac
3136
3137 fi
3138 COMPILE_ET=compile_et
3139else
00274452 3140 echo "$as_me:$LINENO: result: util/et" >&5
3141echo "${ECHO_T}util/et" >&6
3142
3143
7f7f279f 3144 case $CPPFLAGS in
3145 *-I`pwd`/util/et*) ;;
3146 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
3147 esac
3148
00274452 3149
7f7f279f 3150 case $PRO_C_INCLUDES in
3151 *INCLUDE=`pwd`/util/et*) ;;
3152 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
3153 esac
3154
3155
00274452 3156
7f7f279f 3157 case $LIBPATH in
3158 *-L`pwd`/util/et*) ;;
3159 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
3160 esac
3161
3162 COMPILE_ET=`pwd`/util/et/compile_et
7f7f279f 3163
7f7f279f 3164
00274452 3165subdirs="$subdirs util/et"
3166
3167fi;
7f7f279f 3168
3169
3170
3171# Kerberos (Kerberos 4 required, Kerberos 5 optional for reg_svr)
00274452 3172echo "$as_me:$LINENO: checking for Kerberos 4" >&5
3173echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
3174
ea0caf4a 3175# Check whether --with-krb4 or --without-krb4 was given.
3176if test "${with_krb4+set}" = set; then
3177 withval="$with_krb4"
3178 krb4="$withval"
3179else
3180 krb4=no
00274452 3181fi;
3182echo "$as_me:$LINENO: result: $krb4" >&5
3183echo "${ECHO_T}$krb4" >&6
ea0caf4a 3184if test "$krb4" != yes; then
00274452 3185
3186
ea0caf4a 3187 case $CPPFLAGS in
3188 *-I$krb4/include*) ;;
3189 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
3190 esac
3191
00274452 3192
ea0caf4a 3193 case $PRO_C_INCLUDES in
3194 *INCLUDE=$krb4/include*) ;;
3195 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
3196 esac
3197
3198
3199 if test -d "$krb4/include/kerberosIV"; then
00274452 3200
3201
ea0caf4a 3202 case $CPPFLAGS in
3203 *-I$krb4/include/kerberosIV*) ;;
3204 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
3205 esac
3206
00274452 3207
ea0caf4a 3208 case $PRO_C_INCLUDES in
3209 *INCLUDE=$krb4/include/kerberosIV*) ;;
3210 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
3211 esac
3212
3213
3214 fi
00274452 3215
ea0caf4a 3216 case $LIBPATH in
3217 *-L$krb4/lib*) ;;
3218 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
3219 esac
3220
3221elif test -d /usr/include/kerberosIV; then
00274452 3222
3223
ea0caf4a 3224 case $CPPFLAGS in
3225 *-I/usr/include/kerberosIV*) ;;
3226 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
3227 esac
3228
00274452 3229
ea0caf4a 3230 case $PRO_C_INCLUDES in
3231 *INCLUDE=/usr/include/kerberosIV*) ;;
3232 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
3233 esac
3234
3235
3236fi
00274452 3237echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
3238echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
3239if test "${ac_cv_lib_k5crypto_main+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
a96aec98 3241else
00274452 3242 ac_check_lib_save_LIBS=$LIBS
88c52873 3243LIBS="-lk5crypto $LIBS"
00274452 3244cat >conftest.$ac_ext <<_ACEOF
3245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h. */
3250
3251
3252int
3253main ()
3254{
3255main ();
3256 ;
3257 return 0;
3258}
3259_ACEOF
3260rm -f conftest.$ac_objext conftest$ac_exeext
3261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3262 (eval $ac_link) 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -z "$ac_c_werror_flag"
3270 || test ! -s conftest.err'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest$ac_exeext'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; }; then
3282 ac_cv_lib_k5crypto_main=yes
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
a96aec98 3286
00274452 3287ac_cv_lib_k5crypto_main=no
a96aec98 3288fi
00274452 3289rm -f conftest.err conftest.$ac_objext \
3290 conftest$ac_exeext conftest.$ac_ext
3291LIBS=$ac_check_lib_save_LIBS
3292fi
3293echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
3294echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
3295if test $ac_cv_lib_k5crypto_main = yes; then
88c52873 3296 crypto="k5crypto"
a96aec98 3297else
00274452 3298 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
3299echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
3300if test "${ac_cv_lib_crypto_main+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
a96aec98 3302else
00274452 3303 ac_check_lib_save_LIBS=$LIBS
88c52873 3304LIBS="-lcrypto $LIBS"
00274452 3305cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312
3313int
3314main ()
3315{
3316main ();
3317 ;
3318 return 0;
3319}
3320_ACEOF
3321rm -f conftest.$ac_objext conftest$ac_exeext
3322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3323 (eval $ac_link) 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag"
3331 || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest$ac_exeext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 ac_cv_lib_crypto_main=yes
3344else
3345 echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
a96aec98 3347
00274452 3348ac_cv_lib_crypto_main=no
a96aec98 3349fi
00274452 3350rm -f conftest.err conftest.$ac_objext \
3351 conftest$ac_exeext conftest.$ac_ext
3352LIBS=$ac_check_lib_save_LIBS
3353fi
3354echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
3355echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
3356if test $ac_cv_lib_crypto_main = yes; then
88c52873 3357 crypto="crypto"
a96aec98 3358fi
3359
3360fi
3361
00274452 3362echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb4" >&5
3363echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6
3364if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3366else
00274452 3367 ac_check_lib_save_LIBS=$LIBS
2dd418e4 3368LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv $LIBS"
00274452 3369cat >conftest.$ac_ext <<_ACEOF
3370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
3374/* end confdefs.h. */
3375
ea0caf4a 3376/* Override any gcc2 internal prototype to avoid an error. */
00274452 3377#ifdef __cplusplus
3378extern "C"
3379#endif
ea0caf4a 3380/* We use char because int might match the return type of a gcc2
00274452 3381 builtin and then its argument prototype would still apply. */
3382char krb_rd_req ();
3383int
3384main ()
3385{
3386krb_rd_req ();
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext conftest$ac_exeext
3392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3393 (eval $ac_link) 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -z "$ac_c_werror_flag"
3401 || test ! -s conftest.err'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest$ac_exeext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 ac_cv_lib_krb4_krb_rd_req=yes
3414else
3415 echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3417
00274452 3418ac_cv_lib_krb4_krb_rd_req=no
3419fi
3420rm -f conftest.err conftest.$ac_objext \
3421 conftest$ac_exeext conftest.$ac_ext
3422LIBS=$ac_check_lib_save_LIBS
ea0caf4a 3423fi
00274452 3424echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
3425echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6
3426if test $ac_cv_lib_krb4_krb_rd_req = yes; then
2dd418e4 3427 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
ea0caf4a 3428else
00274452 3429 echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
3430echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6
3431if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3433else
00274452 3434 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 3435LIBS="-lkrb $LIBPATH -ldes $LIBS"
00274452 3436cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442
ea0caf4a 3443/* Override any gcc2 internal prototype to avoid an error. */
00274452 3444#ifdef __cplusplus
3445extern "C"
3446#endif
ea0caf4a 3447/* We use char because int might match the return type of a gcc2
00274452 3448 builtin and then its argument prototype would still apply. */
3449char krb_rd_req ();
3450int
3451main ()
3452{
3453krb_rd_req ();
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext conftest$ac_exeext
3459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>conftest.er1
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest$ac_exeext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; }; then
3480 ac_cv_lib_krb_krb_rd_req=yes
3481else
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3484
00274452 3485ac_cv_lib_krb_krb_rd_req=no
3486fi
3487rm -f conftest.err conftest.$ac_objext \
3488 conftest$ac_exeext conftest.$ac_ext
3489LIBS=$ac_check_lib_save_LIBS
ea0caf4a 3490fi
00274452 3491echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
3492echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6
3493if test $ac_cv_lib_krb_krb_rd_req = yes; then
ea0caf4a 3494 KRB4_LIBS="-lkrb -ldes"
3495else
00274452 3496 { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
3497echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
3498 { (exit 1); exit 1; }; }
ea0caf4a 3499fi
3500
3501fi
3502
3503
00274452 3504echo "$as_me:$LINENO: checking for Kerberos 5" >&5
3505echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
3506
7f7f279f 3507# Check whether --with-krb5 or --without-krb5 was given.
3508if test "${with_krb5+set}" = set; then
3509 withval="$with_krb5"
3510 krb5="$withval"
33567bea 3511else
7f7f279f 3512 krb5=no
00274452 3513fi;
3514echo "$as_me:$LINENO: result: $krb5" >&5
3515echo "${ECHO_T}$krb5" >&6
7f7f279f 3516if test "$krb5" != no; then
3517 REG_SVR_DEFS=-DKRB5
3518 if test "$krb5" != yes; then
3519 REG_SVR_INCLUDES=-I$krb5/include
3520 REG_SVR_LIBS=-L$krb5/lib
3521 fi
00274452 3522 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
7f7f279f 3523else
3524 REG_SVR_DEFS=-DKRB4
1c1c45eb 3525 REG_SVR_LIBS=-lkadm
33567bea 3526fi
3527
3528
3529
3530
ea0caf4a 3531# Hesiod support
00274452 3532echo "$as_me:$LINENO: checking for Hesiod" >&5
3533echo $ECHO_N "checking for Hesiod... $ECHO_C" >&6
3534
ea0caf4a 3535# Check whether --with-hesiod or --without-hesiod was given.
3536if test "${with_hesiod+set}" = set; then
3537 withval="$with_hesiod"
3538 hesiod="$withval"
3539else
3540 hesiod=no
00274452 3541fi;
3542echo "$as_me:$LINENO: result: $hesiod" >&5
3543echo "${ECHO_T}$hesiod" >&6
ea0caf4a 3544if test "$hesiod" != no; then
3545 if test "$hesiod" != yes; then
00274452 3546
3547
ea0caf4a 3548 case $CPPFLAGS in
3549 *-I$hesiod/include*) ;;
3550 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
3551 esac
3552
00274452 3553
ea0caf4a 3554 case $PRO_C_INCLUDES in
3555 *INCLUDE=$hesiod/include*) ;;
3556 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
3557 esac
3558
3559
00274452 3560
ea0caf4a 3561 case $LIBPATH in
3562 *-L$hesiod/lib*) ;;
3563 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
3564 esac
3565
3566 fi
00274452 3567 echo "$as_me:$LINENO: checking for res_send" >&5
3568echo $ECHO_N "checking for res_send... $ECHO_C" >&6
3569if test "${ac_cv_func_res_send+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572 cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h. */
3578/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
3579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3580#define res_send innocuous_res_send
3581
ea0caf4a 3582/* System header to define __stub macros and hopefully few prototypes,
00274452 3583 which can conflict with char res_send (); below.
3584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 <limits.h> exists even on freestanding compilers. */
3586
3587#ifdef __STDC__
3588# include <limits.h>
3589#else
3590# include <assert.h>
3591#endif
ea0caf4a 3592
00274452 3593#undef res_send
ea0caf4a 3594
00274452 3595/* Override any gcc2 internal prototype to avoid an error. */
3596#ifdef __cplusplus
3597extern "C"
3598{
3599#endif
3600/* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3602char res_send ();
ea0caf4a 3603/* The GNU C library defines this for functions which it implements
3604 to always fail with ENOSYS. Some functions are actually named
3605 something starting with __ and the normal name is an alias. */
3606#if defined (__stub_res_send) || defined (__stub___res_send)
3607choke me
3608#else
00274452 3609char (*f) () = res_send;
3610#endif
3611#ifdef __cplusplus
3612}
ea0caf4a 3613#endif
3614
00274452 3615int
3616main ()
3617{
3618return f != res_send;
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623rm -f conftest.$ac_objext conftest$ac_exeext
3624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625 (eval $ac_link) 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } &&
3632 { ac_try='test -z "$ac_c_werror_flag"
3633 || test ! -s conftest.err'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; } &&
3639 { ac_try='test -s conftest$ac_exeext'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 ac_cv_func_res_send=yes
ea0caf4a 3646else
00274452 3647 echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650ac_cv_func_res_send=no
ea0caf4a 3651fi
00274452 3652rm -f conftest.err conftest.$ac_objext \
3653 conftest$ac_exeext conftest.$ac_ext
ea0caf4a 3654fi
00274452 3655echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
3656echo "${ECHO_T}$ac_cv_func_res_send" >&6
3657if test $ac_cv_func_res_send = yes; then
ea0caf4a 3658 :
3659else
00274452 3660
3661echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
3662echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
3663if test "${ac_cv_lib_resolv_res_send+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3665else
00274452 3666 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 3667LIBS="-lresolv $LIBS"
00274452 3668cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h. */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h. */
3674
ea0caf4a 3675/* Override any gcc2 internal prototype to avoid an error. */
00274452 3676#ifdef __cplusplus
3677extern "C"
3678#endif
ea0caf4a 3679/* We use char because int might match the return type of a gcc2
00274452 3680 builtin and then its argument prototype would still apply. */
3681char res_send ();
3682int
3683main ()
3684{
3685res_send ();
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690rm -f conftest.$ac_objext conftest$ac_exeext
3691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3692 (eval $ac_link) 2>conftest.er1
3693 ac_status=$?
3694 grep -v '^ *+' conftest.er1 >conftest.err
3695 rm -f conftest.er1
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try='test -s conftest$ac_exeext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_lib_resolv_res_send=yes
3713else
3714 echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3716
00274452 3717ac_cv_lib_resolv_res_send=no
ea0caf4a 3718fi
00274452 3719rm -f conftest.err conftest.$ac_objext \
3720 conftest$ac_exeext conftest.$ac_ext
3721LIBS=$ac_check_lib_save_LIBS
3722fi
3723echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
3724echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
3725if test $ac_cv_lib_resolv_res_send = yes; then
3726 cat >>confdefs.h <<_ACEOF
3727#define HAVE_LIBRESOLV 1
3728_ACEOF
ea0caf4a 3729
3730 LIBS="-lresolv $LIBS"
3731
ea0caf4a 3732fi
3733
3734fi
3735
00274452 3736 echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
3737echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6
3738if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3740else
00274452 3741 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 3742LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
00274452 3743cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
3749
ea0caf4a 3750/* Override any gcc2 internal prototype to avoid an error. */
00274452 3751#ifdef __cplusplus
3752extern "C"
3753#endif
ea0caf4a 3754/* We use char because int might match the return type of a gcc2
00274452 3755 builtin and then its argument prototype would still apply. */
3756char hes_resolve ();
3757int
3758main ()
3759{
3760hes_resolve ();
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext conftest$ac_exeext
3766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767 (eval $ac_link) 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -z "$ac_c_werror_flag"
3775 || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest$ac_exeext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_lib_hesiod_hes_resolve=yes
3788else
3789 echo "$as_me: failed program was:" >&5
3790sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3791
00274452 3792ac_cv_lib_hesiod_hes_resolve=no
3793fi
3794rm -f conftest.err conftest.$ac_objext \
3795 conftest$ac_exeext conftest.$ac_ext
3796LIBS=$ac_check_lib_save_LIBS
ea0caf4a 3797fi
00274452 3798echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
3799echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6
3800if test $ac_cv_lib_hesiod_hes_resolve = yes; then
ea0caf4a 3801 :
3802else
00274452 3803 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
3804echo "$as_me: error: Hesiod library not found" >&2;}
3805 { (exit 1); exit 1; }; }
ea0caf4a 3806fi
3807
00274452 3808
3809 cat >>confdefs.h <<\_ACEOF
ea0caf4a 3810#define HAVE_HESIOD 1
00274452 3811_ACEOF
3812
ea0caf4a 3813
ea0caf4a 3814 case $PRO_C_DEFS in
3815 *DEFINE=HAVE_HESIOD*) ;;
3816 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
3817 esac
3818
3819
3820fi
3821
3822# Zephyr support
00274452 3823echo "$as_me:$LINENO: checking for Zephyr" >&5
3824echo $ECHO_N "checking for Zephyr... $ECHO_C" >&6
3825
ea0caf4a 3826# Check whether --with-zephyr or --without-zephyr was given.
3827if test "${with_zephyr+set}" = set; then
3828 withval="$with_zephyr"
3829 zephyr="$withval"
3830else
3831 zephyr=no
00274452 3832fi;
3833echo "$as_me:$LINENO: result: $zephyr" >&5
3834echo "${ECHO_T}$zephyr" >&6
ea0caf4a 3835if test "$zephyr" != no; then
3836 if test "$zephyr" != yes; then
00274452 3837
3838
ea0caf4a 3839 case $CPPFLAGS in
3840 *-I$zephyr/include*) ;;
3841 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
3842 esac
3843
00274452 3844
ea0caf4a 3845 case $PRO_C_INCLUDES in
3846 *INCLUDE=$zephyr/include*) ;;
3847 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
3848 esac
3849
3850
00274452 3851
ea0caf4a 3852 case $LIBPATH in
3853 *-L$zephyr/lib*) ;;
3854 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
3855 esac
3856
3857 fi
00274452 3858 echo "$as_me:$LINENO: checking for ZInitialize in -lzephyr" >&5
3859echo $ECHO_N "checking for ZInitialize in -lzephyr... $ECHO_C" >&6
3860if test "${ac_cv_lib_zephyr_ZInitialize+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 3862else
00274452 3863 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 3864LIBS="-lzephyr $LIBPATH $KRB4_LIBS -lcom_err $LIBS"
00274452 3865cat >conftest.$ac_ext <<_ACEOF
3866/* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h. */
3871
ea0caf4a 3872/* Override any gcc2 internal prototype to avoid an error. */
00274452 3873#ifdef __cplusplus
3874extern "C"
3875#endif
ea0caf4a 3876/* We use char because int might match the return type of a gcc2
00274452 3877 builtin and then its argument prototype would still apply. */
3878char ZInitialize ();
3879int
3880main ()
3881{
3882ZInitialize ();
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext conftest$ac_exeext
3888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889 (eval $ac_link) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest$ac_exeext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_lib_zephyr_ZInitialize=yes
3910else
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 3913
00274452 3914ac_cv_lib_zephyr_ZInitialize=no
ea0caf4a 3915fi
00274452 3916rm -f conftest.err conftest.$ac_objext \
3917 conftest$ac_exeext conftest.$ac_ext
3918LIBS=$ac_check_lib_save_LIBS
3919fi
3920echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitialize" >&5
3921echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitialize" >&6
3922if test $ac_cv_lib_zephyr_ZInitialize = yes; then
ea0caf4a 3923 :
3924else
00274452 3925 { { echo "$as_me:$LINENO: error: Zephyr library not found" >&5
3926echo "$as_me: error: Zephyr library not found" >&2;}
3927 { (exit 1); exit 1; }; }
ea0caf4a 3928fi
3929
00274452 3930
3931 cat >>confdefs.h <<\_ACEOF
ea0caf4a 3932#define HAVE_ZEPHYR 1
00274452 3933_ACEOF
3934
ea0caf4a 3935
ea0caf4a 3936 case $PRO_C_DEFS in
3937 *DEFINE=HAVE_ZEPHYR*) ;;
3938 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
3939 esac
3940
3941
3942fi
3943
33567bea 3944# RSAREF support (default: build util/rsaref if present)
00274452 3945echo "$as_me:$LINENO: checking for RSAREF" >&5
3946echo $ECHO_N "checking for RSAREF... $ECHO_C" >&6
3947
33567bea 3948# Check whether --with-rsaref or --without-rsaref was given.
3949if test "${with_rsaref+set}" = set; then
3950 withval="$with_rsaref"
3951 rsaref="$withval"
3952 RSAREF_CPPFLAGS="-I$rsaref/include"
3953 RSAREF_LIBS="$rsaref/lib/rsaref.a"
3954else
3955 RSAREF_SUBDIRS=reg_svr
3956 if test -d $srcdir/util/rsaref; then
3957 rsaref=$srcdir/util/rsaref
3958 RSAREF_SUBDIRS="util/rsaref reg_svr"
3959 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
3960 # autoconf can't deal with creating util/rsaref if util doesn't exist
3961 if test ! -d util; then
3962 mkdir util
3963 fi
3fb6166b 3964 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
33567bea 3965 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
3fb6166b 3966 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
33567bea 3967 else
3968 rsaref=no
3969 fi
00274452 3970fi;
3971echo "$as_me:$LINENO: result: $rsaref" >&5
3972echo "${ECHO_T}$rsaref" >&6
33567bea 3973if test "$rsaref" != no; then
00274452 3974
3975 cat >>confdefs.h <<\_ACEOF
33567bea 3976#define HAVE_RSAREF 1
00274452 3977_ACEOF
3978
33567bea 3979
33567bea 3980 case $PRO_C_DEFS in
3981 *DEFINE=HAVE_RSAREF*) ;;
3982 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
3983 esac
3984
3985
3986fi
3987
3988
3989
3990
3fb6166b 3991
bbdb0564 3992# Oracle (default: yes, if $ORACLE_HOME is set)
00274452 3993echo "$as_me:$LINENO: checking for Oracle" >&5
3994echo $ECHO_N "checking for Oracle... $ECHO_C" >&6
3995
ea0caf4a 3996# Check whether --with-oracle or --without-oracle was given.
3997if test "${with_oracle+set}" = set; then
3998 withval="$with_oracle"
3999 oracle="$withval"
4000else
bbdb0564 4001 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
4002 oracle=$ORACLE_HOME
ea0caf4a 4003 else
4004 oracle=no
4005 fi
00274452 4006fi;
4007echo "$as_me:$LINENO: result: $oracle" >&5
4008echo "${ECHO_T}$oracle" >&6
ea0caf4a 4009if test "$oracle" != no; then
00274452 4010 echo "$as_me:$LINENO: checking Pro*C version" >&5
4011echo $ECHO_N "checking Pro*C version... $ECHO_C" >&6
cd357ef5 4012 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
00274452 4013 echo "$as_me:$LINENO: result: $release" >&5
4014echo "${ECHO_T}$release" >&6
cd357ef5 4015 case $release in
4016 2.0.6.0.0)
4017 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
4018 ;;
7e38e77c 4019 2.2.4.0.0)
cd357ef5 4020 SQL_LIBS="-L$oracle/lib -lclntsh -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 -lcore3 -lnlsrtl3 `cat $oracle/rdbms/lib/sysliblist` -lm -lthread"
4021 ;;
00274452 4022 8.1.7.4.0)
dc02aea5 4023 SQL_LIBS="-L$oracle/lib -lclntsh `cat $oracle/lib/sysliblist` -R$oracle/lib -laio -lm -lthread"
7e38e77c 4024 ;;
00274452 4025 10.2.0.2.0)
4026 SQL_LIBS="-L$oracle/lib32 -lclntsh `cat $oracle/lib32/ldflags` `cat $oracle/lib32/sysliblist` -R$oracle/lib32 -laio -lposix4 -lm -lthread"
4027 ;;
4028 *)
4029 { { echo "$as_me:$LINENO: error: Unsupported Oracle release" >&5
4030echo "$as_me: error: Unsupported Oracle release" >&2;}
4031 { (exit 1); exit 1; }; }
4032 ;;
cd357ef5 4033 esac
ea0caf4a 4034 SVRSUBDIRS='$(SVRDIRS)'
ac1784ed 4035 SERVER_OUTPUT_FILES="db/Makefile server/Makefile backup/Makefile dbck/Makefile dcm/Makefile gen/Makefile incremental/Makefile incremental/mailman/Makefile reg_svr/Makefile regtape/Makefile"
ea0caf4a 4036 PRO_C=$oracle/bin/proc
4037 PRO_C_OPTS=CODE=ANSI_C
00274452 4038 PRO_C_DEFS="DEFINE=_PROC_ DEFINE=__sparc $PRO_C_DEFS"
ea0caf4a 4039fi
4040
4041
4042
4043
4044
4045
4046
3595c6c0 4047# Java support, for webmoira
00274452 4048echo "$as_me:$LINENO: checking for Java" >&5
4049echo $ECHO_N "checking for Java... $ECHO_C" >&6
4050
3595c6c0 4051# Check whether --with-java or --without-java was given.
4052if test "${with_java+set}" = set; then
4053 withval="$with_java"
4054 java="$withval"
4055else
4056 if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
4057 java=$JAVA_HOME
4058 else
4059 java=no
4060 fi
00274452 4061fi;
4062echo "$as_me:$LINENO: result: $java" >&5
4063echo "${ECHO_T}$java" >&6
3595c6c0 4064if test "$java" != no; then
4065 if test "$java" != yes; then
4066 JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
4067 fi
00274452 4068
4069 cat >>confdefs.h <<\_ACEOF
3595c6c0 4070#define HAVE_JAVA 1
00274452 4071_ACEOF
4072
3595c6c0 4073
3595c6c0 4074 case $PRO_C_DEFS in
4075 *DEFINE=HAVE_JAVA*) ;;
4076 *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
4077 esac
4078
4079
4080
4081 WEBMOIRA_SUBDIRS="webmoira"
4082 WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
4083fi
4084
4085
a5a4b554 4086
9b1f5e48 4087# LDAP support
00274452 4088echo "$as_me:$LINENO: checking for LDAP" >&5
4089echo $ECHO_N "checking for LDAP... $ECHO_C" >&6
4090
9b1f5e48 4091# Check whether --with-ldap or --without-ldap was given.
4092if test "${with_ldap+set}" = set; then
4093 withval="$with_ldap"
4094 ldap="$withval"
4095else
4096 if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
4097 ldap=$LDAP_HOME
4098 else
4099 ldap=no
4100 fi
00274452 4101fi;
4102echo "$as_me:$LINENO: result: $ldap" >&5
4103echo "${ECHO_T}$ldap" >&6
9b1f5e48 4104if test "$ldap" != no -a "$oracle" != no; then
4105 if test "$ldap" != yes; then
4106 LDAP_CPPFLAGS="-I$ldap/include"
4107 LDAP_LIBS="-L$ldap/lib"
4108 fi
00274452 4109
4110 cat >>confdefs.h <<\_ACEOF
9b1f5e48 4111#define HAVE_LDAP 1
00274452 4112_ACEOF
4113
9b1f5e48 4114
9b1f5e48 4115 case $PRO_C_DEFS in
4116 *DEFINE=HAVE_LDAP*) ;;
4117 *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
4118 esac
4119
4120
4121
87db79ab 4122 WINAD_SUBDIRS="winad ldap"
4123 WINAD_OUTPUT_FILES="incremental/winad/Makefile incremental/ldap/Makefile"
9b1f5e48 4124fi
4125
4126
4127
4128
ea0caf4a 4129# AFS support
00274452 4130echo "$as_me:$LINENO: checking for AFS" >&5
4131echo $ECHO_N "checking for AFS... $ECHO_C" >&6
4132
ea0caf4a 4133# Check whether --with-afs or --without-afs was given.
4134if test "${with_afs+set}" = set; then
4135 withval="$with_afs"
4136 afs="$withval"
4137else
4138 afs=no
00274452 4139fi;
4140echo "$as_me:$LINENO: result: $afs" >&5
4141echo "${ECHO_T}$afs" >&6
ea0caf4a 4142if test "$afs" != no -a "$oracle" != no; then
4143 if test "$afs" != yes; then
4144 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
4145 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
4146 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
4147 AFS_DIR=$afs
4148 fi
00274452 4149 echo "$as_me:$LINENO: checking for pioctl in -lsys" >&5
4150echo $ECHO_N "checking for pioctl in -lsys... $ECHO_C" >&6
4151if test "${ac_cv_lib_sys_pioctl+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154 ac_check_lib_save_LIBS=$LIBS
4155LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys -lafsutil $LIBS"
4156cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
4162
ea0caf4a 4163/* Override any gcc2 internal prototype to avoid an error. */
00274452 4164#ifdef __cplusplus
4165extern "C"
4166#endif
ea0caf4a 4167/* We use char because int might match the return type of a gcc2
00274452 4168 builtin and then its argument prototype would still apply. */
4169char pioctl ();
4170int
4171main ()
4172{
4173pioctl ();
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext conftest$ac_exeext
4179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -z "$ac_c_werror_flag"
4188 || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest$ac_exeext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_lib_sys_pioctl=yes
4201else
4202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 4204
00274452 4205ac_cv_lib_sys_pioctl=no
ea0caf4a 4206fi
00274452 4207rm -f conftest.err conftest.$ac_objext \
4208 conftest$ac_exeext conftest.$ac_ext
4209LIBS=$ac_check_lib_save_LIBS
4210fi
4211echo "$as_me:$LINENO: result: $ac_cv_lib_sys_pioctl" >&5
4212echo "${ECHO_T}$ac_cv_lib_sys_pioctl" >&6
4213if test $ac_cv_lib_sys_pioctl = yes; then
ea0caf4a 4214 :
4215else
00274452 4216 { { echo "$as_me:$LINENO: error: AFS libraries not found" >&5
4217echo "$as_me: error: AFS libraries not found" >&2;}
4218 { (exit 1); exit 1; }; }
ea0caf4a 4219fi
4220
00274452 4221
4222 cat >>confdefs.h <<\_ACEOF
ea0caf4a 4223#define HAVE_AFS 1
00274452 4224_ACEOF
4225
ea0caf4a 4226
ea0caf4a 4227 case $PRO_C_DEFS in
4228 *DEFINE=HAVE_AFS*) ;;
4229 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
4230 esac
4231
4232
9ed720ef 4233
9b1f5e48 4234 AFS_SUBDIRS="afs"
4235 AFS_OUTPUT_FILES="incremental/afs/Makefile"
9ed720ef 4236 if test -d $srcdir/afssync; then
9b1f5e48 4237 AFS_SYNCDIR="afssync"
9ed720ef 4238 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
4239 fi
ea0caf4a 4240fi
4241
4242
4243
4244
4245
4246
9ed720ef 4247
ea0caf4a 4248# GNU readline
00274452 4249{ echo "$as_me:$LINENO: checking for GNU readline......" >&5
4250echo "$as_me: checking for GNU readline......" >&6;}
4251
ea0caf4a 4252# Check whether --with-readline or --without-readline was given.
4253if test "${with_readline+set}" = set; then
4254 withval="$with_readline"
00274452 4255 readline="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
4256echo "${ECHO_T}$withval" >&6
ea0caf4a 4257else
00274452 4258 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4259echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4260if test "${ac_cv_lib_readline_readline+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 4262else
00274452 4263 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 4264LIBS="-lreadline -ltermcap $LIBS"
00274452 4265cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
4271
ea0caf4a 4272/* Override any gcc2 internal prototype to avoid an error. */
00274452 4273#ifdef __cplusplus
4274extern "C"
4275#endif
ea0caf4a 4276/* We use char because int might match the return type of a gcc2
00274452 4277 builtin and then its argument prototype would still apply. */
4278char readline ();
4279int
4280main ()
4281{
4282readline ();
4283 ;
4284 return 0;
4285}
4286_ACEOF
4287rm -f conftest.$ac_objext conftest$ac_exeext
4288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest$ac_exeext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 ac_cv_lib_readline_readline=yes
4310else
4311 echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 4313
00274452 4314ac_cv_lib_readline_readline=no
4315fi
4316rm -f conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4318LIBS=$ac_check_lib_save_LIBS
ea0caf4a 4319fi
00274452 4320echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4321echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4322if test $ac_cv_lib_readline_readline = yes; then
ea0caf4a 4323 readline=yes
4324else
00274452 4325 if test "$athena" = true; then
ee85084d 4326 unset ac_cv_lib_readline_readline
00274452 4327 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4328echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4329if test "${ac_cv_lib_readline_readline+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
ee85084d 4331else
00274452 4332 ac_check_lib_save_LIBS=$LIBS
ee85084d 4333LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
00274452 4334cat >conftest.$ac_ext <<_ACEOF
4335/* confdefs.h. */
4336_ACEOF
4337cat confdefs.h >>conftest.$ac_ext
4338cat >>conftest.$ac_ext <<_ACEOF
4339/* end confdefs.h. */
4340
ee85084d 4341/* Override any gcc2 internal prototype to avoid an error. */
00274452 4342#ifdef __cplusplus
4343extern "C"
4344#endif
ee85084d 4345/* We use char because int might match the return type of a gcc2
00274452 4346 builtin and then its argument prototype would still apply. */
4347char readline ();
4348int
4349main ()
4350{
4351readline ();
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356rm -f conftest.$ac_objext conftest$ac_exeext
4357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4358 (eval $ac_link) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag"
4366 || test ! -s conftest.err'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest$ac_exeext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_cv_lib_readline_readline=yes
4379else
4380 echo "$as_me: failed program was:" >&5
4381sed 's/^/| /' conftest.$ac_ext >&5
ee85084d 4382
00274452 4383ac_cv_lib_readline_readline=no
4384fi
4385rm -f conftest.err conftest.$ac_objext \
4386 conftest$ac_exeext conftest.$ac_ext
4387LIBS=$ac_check_lib_save_LIBS
ee85084d 4388fi
00274452 4389echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4390echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4391if test $ac_cv_lib_readline_readline = yes; then
ee85084d 4392 readline=/mit/gnu
4393else
00274452 4394 :
ea0caf4a 4395fi
4396
ee85084d 4397 fi
4398fi
4399
00274452 4400fi;
ea0caf4a 4401if test "$readline" != no; then
4402 if test "$readline" != yes; then
c5c5a18d 4403 READLINE_CPPFLAGS="-I$readline/include"
ee85084d 4404 READLINE_LIBS="-L$readline/lib"
ea0caf4a 4405 fi
ee85084d 4406 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
4407 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
ea0caf4a 4408fi
4409
4410
4411
4412# Curses
4413curses=curses
00274452 4414{ echo "$as_me:$LINENO: checking for curses..." >&5
4415echo "$as_me: checking for curses..." >&6;}
4416echo "$as_me:$LINENO: checking for main in -lcurses" >&5
4417echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
4418if test "${ac_cv_lib_curses_main+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 4422LIBS="-lcurses $LIBS"
00274452 4423cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
4429
4430
4431int
4432main ()
4433{
4434main ();
4435 ;
4436 return 0;
4437}
4438_ACEOF
4439rm -f conftest.$ac_objext conftest$ac_exeext
4440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>conftest.er1
4442 ac_status=$?
4443 grep -v '^ *+' conftest.er1 >conftest.err
4444 rm -f conftest.er1
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -z "$ac_c_werror_flag"
4449 || test ! -s conftest.err'
4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); }; } &&
4455 { ac_try='test -s conftest$ac_exeext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 ac_cv_lib_curses_main=yes
4462else
4463 echo "$as_me: failed program was:" >&5
4464sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 4465
00274452 4466ac_cv_lib_curses_main=no
ea0caf4a 4467fi
00274452 4468rm -f conftest.err conftest.$ac_objext \
4469 conftest$ac_exeext conftest.$ac_ext
4470LIBS=$ac_check_lib_save_LIBS
4471fi
4472echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
4473echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
4474if test $ac_cv_lib_curses_main = yes; then
ea0caf4a 4475 :
4476else
00274452 4477 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
4478echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
4479if test "${ac_cv_lib_ncurses_main+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
ea0caf4a 4481else
00274452 4482 ac_check_lib_save_LIBS=$LIBS
ea0caf4a 4483LIBS="-lncurses $LIBS"
00274452 4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4490
4491
4492int
4493main ()
4494{
4495main ();
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500rm -f conftest.$ac_objext conftest$ac_exeext
4501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4502 (eval $ac_link) 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try='test -z "$ac_c_werror_flag"
4510 || test ! -s conftest.err'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_cv_lib_ncurses_main=yes
4523else
4524 echo "$as_me: failed program was:" >&5
4525sed 's/^/| /' conftest.$ac_ext >&5
ea0caf4a 4526
00274452 4527ac_cv_lib_ncurses_main=no
ea0caf4a 4528fi
00274452 4529rm -f conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext conftest.$ac_ext
4531LIBS=$ac_check_lib_save_LIBS
4532fi
4533echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
4534echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
4535if test $ac_cv_lib_ncurses_main = yes; then
ea0caf4a 4536 curses=ncurses
ea0caf4a 4537fi
4538
4539fi
4540
4541if test -n "$curses"; then
4542 OLDLIBS=$LIBS
4543 LIBS=-l$curses
00274452 4544 { echo "$as_me:$LINENO: checking if curses needs termcap..." >&5
4545echo "$as_me: checking if curses needs termcap..." >&6;}
ea0caf4a 4546 if test "$cross_compiling" = yes; then
4547 :
4548else
00274452 4549 cat >conftest.$ac_ext <<_ACEOF
4550/* confdefs.h. */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h. */
ea0caf4a 4555#include <curses.h>
4556 main(int argc, char **argv)
4557 {
4558 initscr();
4559 endwin();
4560 return 0;
4561 }
00274452 4562_ACEOF
4563rm -f conftest$ac_exeext
4564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4565 (eval $ac_link) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
ea0caf4a 4574 CURSES_LIBS="-l$curses"
4575else
00274452 4576 echo "$as_me: program exited with status $ac_status" >&5
4577echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
4580( exit $ac_status )
4581LIBS="-l$curses -ltermcap"
ea0caf4a 4582 if test "$cross_compiling" = yes; then
4583 :
4584else
00274452 4585 cat >conftest.$ac_ext <<_ACEOF
4586/* confdefs.h. */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h. */
ea0caf4a 4591#include <curses.h>
4592 main(int argc, char **argv)
4593 {
4594 initscr();
4595 endwin();
4596 return 0;
4597 }
00274452 4598_ACEOF
4599rm -f conftest$ac_exeext
4600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601 (eval $ac_link) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
ea0caf4a 4610 CURSES_LIBS="-l$curses -ltermcap"
4611else
00274452 4612 echo "$as_me: program exited with status $ac_status" >&5
4613echo "$as_me: failed program was:" >&5
4614sed 's/^/| /' conftest.$ac_ext >&5
4615
4616( exit $ac_status )
4617:
ea0caf4a 4618fi
00274452 4619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ea0caf4a 4620fi
ea0caf4a 4621fi
00274452 4622rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ea0caf4a 4623fi
ea0caf4a 4624 LIBS=$OLDLIBS
4625fi
4626if test -n "$CURSES_LIBS"; then
4627 OLDLIBS=$LIBS
4628 LIBS=$CURSES_LIBS
00274452 4629 cat >conftest.$ac_ext <<_ACEOF
4630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
ea0caf4a 4635#include <curses.h>
00274452 4636int
4637main ()
4638{
ea0caf4a 4639WINDOW *w; getmaxx(w);
00274452 4640 ;
4641 return 0;
4642}
4643_ACEOF
4644rm -f conftest.$ac_objext conftest$ac_exeext
4645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest$ac_exeext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
ea0caf4a 4666 :
4667else
00274452 4668 echo "$as_me: failed program was:" >&5
4669sed 's/^/| /' conftest.$ac_ext >&5
4670
4671cat >conftest.$ac_ext <<_ACEOF
4672/* confdefs.h. */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h. */
ea0caf4a 4677#include <curses.h>
00274452 4678int
4679main ()
4680{
ea0caf4a 4681WINDOW *w; w->_maxx;
00274452 4682 ;
4683 return 0;
4684}
4685_ACEOF
4686rm -f conftest.$ac_objext
4687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -z "$ac_c_werror_flag"
4696 || test ! -s conftest.err'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
ea0caf4a 4708 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
4709else
00274452 4710 echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
ea0caf4a 4714fi
00274452 4715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ea0caf4a 4716fi
00274452 4717rm -f conftest.err conftest.$ac_objext \
4718 conftest$ac_exeext conftest.$ac_ext
4719 cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
4753fa79 4725#include <curses.h>
00274452 4726int
4727main ()
4728{
4753fa79 4729newterm(NULL, NULL, NULL);
00274452 4730 ;
4731 return 0;
4732}
4733_ACEOF
4734rm -f conftest.$ac_objext conftest$ac_exeext
4735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -z "$ac_c_werror_flag"
4744 || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest$ac_exeext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4753fa79 4756 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
4757else
00274452 4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4753fa79 4761fi
00274452 4762rm -f conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
ea0caf4a 4764 LIBS=$OLDLIBS
4765 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
4766 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
4767else
00274452 4768 { echo "$as_me:$LINENO: WARNING: Couldn't find -lcurses" >&5
4769echo "$as_me: WARNING: Couldn't find -lcurses" >&2;}
ea0caf4a 4770fi
4771
4772
4773
4774
4775
00274452 4776
4777
4778
4779
4780
83a0db38 4781for ac_func in getusershell strlcpy strlcat uname strvis
ea0caf4a 4782do
00274452 4783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4784echo "$as_me:$LINENO: checking for $ac_func" >&5
4785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4786if eval "test \"\${$as_ac_var+set}\" = set"; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789 cat >conftest.$ac_ext <<_ACEOF
4790/* confdefs.h. */
4791_ACEOF
4792cat confdefs.h >>conftest.$ac_ext
4793cat >>conftest.$ac_ext <<_ACEOF
4794/* end confdefs.h. */
4795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4797#define $ac_func innocuous_$ac_func
4798
ea0caf4a 4799/* System header to define __stub macros and hopefully few prototypes,
00274452 4800 which can conflict with char $ac_func (); below.
4801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4802 <limits.h> exists even on freestanding compilers. */
4803
4804#ifdef __STDC__
4805# include <limits.h>
4806#else
4807# include <assert.h>
4808#endif
ea0caf4a 4809
00274452 4810#undef $ac_func
ea0caf4a 4811
00274452 4812/* Override any gcc2 internal prototype to avoid an error. */
4813#ifdef __cplusplus
4814extern "C"
4815{
4816#endif
4817/* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4819char $ac_func ();
ea0caf4a 4820/* The GNU C library defines this for functions which it implements
4821 to always fail with ENOSYS. Some functions are actually named
4822 something starting with __ and the normal name is an alias. */
4823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4824choke me
4825#else
00274452 4826char (*f) () = $ac_func;
4827#endif
4828#ifdef __cplusplus
4829}
ea0caf4a 4830#endif
4831
00274452 4832int
4833main ()
4834{
4835return f != $ac_func;
4836 ;
4837 return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext conftest$ac_exeext
4841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4842 (eval $ac_link) 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag"
4850 || test ! -s conftest.err'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; } &&
4856 { ac_try='test -s conftest$ac_exeext'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 eval "$as_ac_var=yes"
ea0caf4a 4863else
00274452 4864 echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867eval "$as_ac_var=no"
ea0caf4a 4868fi
00274452 4869rm -f conftest.err conftest.$ac_objext \
4870 conftest$ac_exeext conftest.$ac_ext
ea0caf4a 4871fi
00274452 4872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4873echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4874if test `eval echo '${'$as_ac_var'}'` = yes; then
4875 cat >>confdefs.h <<_ACEOF
4876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4877_ACEOF
ea0caf4a 4878
ea0caf4a 4879fi
4880done
4881
4882
00274452 4883echo "$as_me:$LINENO: checking for sigaction" >&5
4884echo $ECHO_N "checking for sigaction... $ECHO_C" >&6
4885if test "${ac_cv_func_sigaction+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
533bacb3 4887else
00274452 4888 cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h. */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h. */
4894/* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction.
4895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4896#define sigaction innocuous_sigaction
4897
533bacb3 4898/* System header to define __stub macros and hopefully few prototypes,
00274452 4899 which can conflict with char sigaction (); below.
4900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 <limits.h> exists even on freestanding compilers. */
4902
4903#ifdef __STDC__
4904# include <limits.h>
4905#else
4906# include <assert.h>
4907#endif
533bacb3 4908
00274452 4909#undef sigaction
533bacb3 4910
00274452 4911/* Override any gcc2 internal prototype to avoid an error. */
4912#ifdef __cplusplus
4913extern "C"
4914{
4915#endif
4916/* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4918char sigaction ();
533bacb3 4919/* The GNU C library defines this for functions which it implements
4920 to always fail with ENOSYS. Some functions are actually named
4921 something starting with __ and the normal name is an alias. */
4922#if defined (__stub_sigaction) || defined (__stub___sigaction)
4923choke me
4924#else
00274452 4925char (*f) () = sigaction;
4926#endif
4927#ifdef __cplusplus
4928}
533bacb3 4929#endif
4930
00274452 4931int
4932main ()
4933{
4934return f != sigaction;
4935 ;
4936 return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext conftest$ac_exeext
4940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941 (eval $ac_link) 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest$ac_exeext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_func_sigaction=yes
533bacb3 4962else
00274452 4963 echo "$as_me: failed program was:" >&5
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966ac_cv_func_sigaction=no
533bacb3 4967fi
00274452 4968rm -f conftest.err conftest.$ac_objext \
4969 conftest$ac_exeext conftest.$ac_ext
533bacb3 4970fi
00274452 4971echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5
4972echo "${ECHO_T}$ac_cv_func_sigaction" >&6
4973if test $ac_cv_func_sigaction = yes; then
4974 cat >>confdefs.h <<\_ACEOF
533bacb3 4975#define HAVE_POSIX_SIGNALS 1
00274452 4976_ACEOF
533bacb3 4977
533bacb3 4978fi
4979
4980
00274452 4981ac_ext=c
4982ac_cpp='$CPP $CPPFLAGS'
4983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4987echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
533bacb3 4988# On Suns, sometimes $CPP names a directory.
4989if test -n "$CPP" && test -d "$CPP"; then
4990 CPP=
4991fi
4992if test -z "$CPP"; then
00274452 4993 if test "${ac_cv_prog_CPP+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
533bacb3 4995else
00274452 4996 # Double quotes because CPP needs to be expanded
4997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4998 do
4999 ac_preproc_ok=false
5000for ac_c_preproc_warn_flag in '' yes
5001do
5002 # Use a header file that comes with gcc, so configuring glibc
5003 # with a fresh cross-compiler works.
5004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5005 # <limits.h> exists even on freestanding compilers.
533bacb3 5006 # On the NeXT, cc -E runs the code through the compiler's parser,
00274452 5007 # not just through cpp. "Syntax error" is here to catch this case.
5008 cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
5014#ifdef __STDC__
5015# include <limits.h>
5016#else
5017# include <assert.h>
5018#endif
5019 Syntax error
5020_ACEOF
5021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } >/dev/null; then
5029 if test -s conftest.err; then
5030 ac_cpp_err=$ac_c_preproc_warn_flag
5031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5032 else
5033 ac_cpp_err=
5034 fi
533bacb3 5035else
00274452 5036 ac_cpp_err=yes
5037fi
5038if test -z "$ac_cpp_err"; then
533bacb3 5039 :
5040else
00274452 5041 echo "$as_me: failed program was:" >&5
5042sed 's/^/| /' conftest.$ac_ext >&5
5043
5044 # Broken: fails on valid input.
5045continue
5046fi
5047rm -f conftest.err conftest.$ac_ext
5048
5049 # OK, works on sane cases. Now check whether non-existent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } >/dev/null; then
5067 if test -s conftest.err; then
5068 ac_cpp_err=$ac_c_preproc_warn_flag
5069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5070 else
5071 ac_cpp_err=
5072 fi
533bacb3 5073else
00274452 5074 ac_cpp_err=yes
533bacb3 5075fi
00274452 5076if test -z "$ac_cpp_err"; then
5077 # Broken: success on invalid input.
5078continue
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083 # Passes both tests.
5084ac_preproc_ok=:
5085break
533bacb3 5086fi
00274452 5087rm -f conftest.err conftest.$ac_ext
5088
5089done
5090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091rm -f conftest.err conftest.$ac_ext
5092if $ac_preproc_ok; then
5093 break
533bacb3 5094fi
00274452 5095
5096 done
5097 ac_cv_prog_CPP=$CPP
5098
533bacb3 5099fi
00274452 5100 CPP=$ac_cv_prog_CPP
533bacb3 5101else
00274452 5102 ac_cv_prog_CPP=$CPP
533bacb3 5103fi
00274452 5104echo "$as_me:$LINENO: result: $CPP" >&5
5105echo "${ECHO_T}$CPP" >&6
5106ac_preproc_ok=false
5107for ac_c_preproc_warn_flag in '' yes
533bacb3 5108do
00274452 5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h. */
5121#ifdef __STDC__
5122# include <limits.h>
5123#else
5124# include <assert.h>
5125#endif
5126 Syntax error
5127_ACEOF
5128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139 else
5140 ac_cpp_err=
5141 fi
533bacb3 5142else
00274452 5143 ac_cpp_err=yes
533bacb3 5144fi
00274452 5145if test -z "$ac_cpp_err"; then
5146 :
7674bbe4 5147else
00274452 5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 # Broken: fails on valid input.
5152continue
5153fi
5154rm -f conftest.err conftest.$ac_ext
5155
5156 # OK, works on sane cases. Now check whether non-existent headers
5157 # can be detected and how.
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164#include <ac_nonexistent.h>
5165_ACEOF
5166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } >/dev/null; then
5174 if test -s conftest.err; then
5175 ac_cpp_err=$ac_c_preproc_warn_flag
5176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5177 else
5178 ac_cpp_err=
5179 fi
5180else
5181 ac_cpp_err=yes
7674bbe4 5182fi
00274452 5183if test -z "$ac_cpp_err"; then
5184 # Broken: success on invalid input.
5185continue
5186else
5187 echo "$as_me: failed program was:" >&5
5188sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 # Passes both tests.
5191ac_preproc_ok=:
5192break
7674bbe4 5193fi
00274452 5194rm -f conftest.err conftest.$ac_ext
7674bbe4 5195
00274452 5196done
5197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5198rm -f conftest.err conftest.$ac_ext
5199if $ac_preproc_ok; then
5200 :
7674bbe4 5201else
00274452 5202 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5203See \`config.log' for more details." >&5
5204echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5205See \`config.log' for more details." >&2;}
5206 { (exit 1); exit 1; }; }
7674bbe4 5207fi
5208
00274452 5209ac_ext=c
5210ac_cpp='$CPP $CPPFLAGS'
5211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214
5215
5216echo "$as_me:$LINENO: checking for egrep" >&5
5217echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5218if test "${ac_cv_prog_egrep+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220else
5221 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5222 then ac_cv_prog_egrep='grep -E'
5223 else ac_cv_prog_egrep='egrep'
5224 fi
5225fi
5226echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5227echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5228 EGREP=$ac_cv_prog_egrep
5229
5230
5231echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5233if test "${ac_cv_header_stdc+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235else
5236 cat >conftest.$ac_ext <<_ACEOF
5237/* confdefs.h. */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h. */
5242#include <stdlib.h>
5243#include <stdarg.h>
5244#include <string.h>
5245#include <float.h>
5246
5247int
5248main ()
5249{
5250
5251 ;
5252 return 0;
5253}
5254_ACEOF
5255rm -f conftest.$ac_objext
5256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257 (eval $ac_compile) 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } &&
5264 { ac_try='test -z "$ac_c_werror_flag"
5265 || test ! -s conftest.err'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; } &&
5271 { ac_try='test -s conftest.$ac_objext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_header_stdc=yes
5278else
5279 echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
5281
5282ac_cv_header_stdc=no
5283fi
5284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5285
5286if test $ac_cv_header_stdc = yes; then
5287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5288 cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
5294#include <string.h>
5295
5296_ACEOF
5297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "memchr" >/dev/null 2>&1; then
5299 :
5300else
5301 ac_cv_header_stdc=no
5302fi
5303rm -f conftest*
5304
5305fi
5306
5307if test $ac_cv_header_stdc = yes; then
5308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309 cat >conftest.$ac_ext <<_ACEOF
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315#include <stdlib.h>
5316
5317_ACEOF
5318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319 $EGREP "free" >/dev/null 2>&1; then
5320 :
5321else
5322 ac_cv_header_stdc=no
5323fi
5324rm -f conftest*
5325
5326fi
5327
5328if test $ac_cv_header_stdc = yes; then
5329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5330 if test "$cross_compiling" = yes; then
5331 :
5332else
5333 cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h. */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h. */
5339#include <ctype.h>
5340#if ((' ' & 0x0FF) == 0x020)
5341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5343#else
5344# define ISLOWER(c) \
5345 (('a' <= (c) && (c) <= 'i') \
5346 || ('j' <= (c) && (c) <= 'r') \
5347 || ('s' <= (c) && (c) <= 'z'))
5348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5349#endif
5350
5351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5352int
5353main ()
5354{
5355 int i;
5356 for (i = 0; i < 256; i++)
5357 if (XOR (islower (i), ISLOWER (i))
5358 || toupper (i) != TOUPPER (i))
5359 exit(2);
5360 exit (0);
5361}
5362_ACEOF
5363rm -f conftest$ac_exeext
5364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365 (eval $ac_link) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 :
5375else
5376 echo "$as_me: program exited with status $ac_status" >&5
5377echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380( exit $ac_status )
5381ac_cv_header_stdc=no
5382fi
5383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5384fi
5385fi
5386fi
5387echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5388echo "${ECHO_T}$ac_cv_header_stdc" >&6
5389if test $ac_cv_header_stdc = yes; then
5390
5391cat >>confdefs.h <<\_ACEOF
5392#define STDC_HEADERS 1
5393_ACEOF
5394
5395fi
5396
5397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5408 inttypes.h stdint.h unistd.h
5409do
5410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5411echo "$as_me:$LINENO: checking for $ac_header" >&5
5412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5413if eval "test \"\${$as_ac_Header+set}\" = set"; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416 cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h. */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h. */
5422$ac_includes_default
5423
5424#include <$ac_header>
5425_ACEOF
5426rm -f conftest.$ac_objext
5427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428 (eval $ac_compile) 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -z "$ac_c_werror_flag"
5436 || test ! -s conftest.err'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; } &&
5442 { ac_try='test -s conftest.$ac_objext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 eval "$as_ac_Header=yes"
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453eval "$as_ac_Header=no"
5454fi
5455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5456fi
5457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5459if test `eval echo '${'$as_ac_Header'}'` = yes; then
5460 cat >>confdefs.h <<_ACEOF
5461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5462_ACEOF
5463
5464fi
5465
5466done
5467
5468
5469
5470
5471for ac_header in unistd.h getopt.h
5472do
5473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474if eval "test \"\${$as_ac_Header+set}\" = set"; then
5475 echo "$as_me:$LINENO: checking for $ac_header" >&5
5476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5477if eval "test \"\${$as_ac_Header+set}\" = set"; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479fi
5480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5482else
5483 # Is the header compilable?
5484echo "$as_me:$LINENO: checking $ac_header usability" >&5
5485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5486cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492$ac_includes_default
5493#include <$ac_header>
5494_ACEOF
5495rm -f conftest.$ac_objext
5496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5497 (eval $ac_compile) 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag"
5505 || test ! -s conftest.err'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 ac_header_compiler=yes
5518else
5519 echo "$as_me: failed program was:" >&5
5520sed 's/^/| /' conftest.$ac_ext >&5
5521
5522ac_header_compiler=no
5523fi
5524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5526echo "${ECHO_T}$ac_header_compiler" >&6
5527
5528# Is the header present?
5529echo "$as_me:$LINENO: checking $ac_header presence" >&5
5530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5531cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
5537#include <$ac_header>
5538_ACEOF
5539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } >/dev/null; then
5547 if test -s conftest.err; then
5548 ac_cpp_err=$ac_c_preproc_warn_flag
5549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5550 else
5551 ac_cpp_err=
5552 fi
5553else
5554 ac_cpp_err=yes
5555fi
5556if test -z "$ac_cpp_err"; then
5557 ac_header_preproc=yes
5558else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 ac_header_preproc=no
5563fi
5564rm -f conftest.err conftest.$ac_ext
5565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5566echo "${ECHO_T}$ac_header_preproc" >&6
5567
5568# So? What about this header?
5569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5570 yes:no: )
5571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5575 ac_header_preproc=yes
5576 ;;
5577 no:yes:* )
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5590 (
5591 cat <<\_ASBOX
5592## ------------------------------------------ ##
5593## Report this to the AC_PACKAGE_NAME lists. ##
5594## ------------------------------------------ ##
5595_ASBOX
5596 ) |
5597 sed "s/^/$as_me: WARNING: /" >&2
5598 ;;
5599esac
5600echo "$as_me:$LINENO: checking for $ac_header" >&5
5601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5602if eval "test \"\${$as_ac_Header+set}\" = set"; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 eval "$as_ac_Header=\$ac_header_preproc"
5606fi
5607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5609
5610fi
5611if test `eval echo '${'$as_ac_Header'}'` = yes; then
5612 cat >>confdefs.h <<_ACEOF
5613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5614_ACEOF
5615
5616fi
5617
5618done
5619
5620
5621if test "${ac_cv_header_netinet_in_h+set}" = set; then
5622 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5623echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5624if test "${ac_cv_header_netinet_in_h+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626fi
5627echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5628echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5629else
5630 # Is the header compilable?
5631echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5632echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5633cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h. */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h. */
5639$ac_includes_default
5640#include <netinet/in.h>
5641_ACEOF
5642rm -f conftest.$ac_objext
5643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_header_compiler=yes
5665else
5666 echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669ac_header_compiler=no
5670fi
5671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5673echo "${ECHO_T}$ac_header_compiler" >&6
5674
5675# Is the header present?
5676echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5677echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5678cat >conftest.$ac_ext <<_ACEOF
5679/* confdefs.h. */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h. */
5684#include <netinet/in.h>
5685_ACEOF
5686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } >/dev/null; then
5694 if test -s conftest.err; then
5695 ac_cpp_err=$ac_c_preproc_warn_flag
5696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5697 else
5698 ac_cpp_err=
5699 fi
5700else
5701 ac_cpp_err=yes
5702fi
5703if test -z "$ac_cpp_err"; then
5704 ac_header_preproc=yes
5705else
5706 echo "$as_me: failed program was:" >&5
5707sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_header_preproc=no
5710fi
5711rm -f conftest.err conftest.$ac_ext
5712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5713echo "${ECHO_T}$ac_header_preproc" >&6
5714
5715# So? What about this header?
5716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5717 yes:no: )
5718 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5719echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5721echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5722 ac_header_preproc=yes
5723 ;;
5724 no:yes:* )
5725 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5726echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5727 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5728echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5729 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5730echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5732echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5734echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5736echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5737 (
5738 cat <<\_ASBOX
5739## ------------------------------------------ ##
5740## Report this to the AC_PACKAGE_NAME lists. ##
5741## ------------------------------------------ ##
5742_ASBOX
5743 ) |
5744 sed "s/^/$as_me: WARNING: /" >&2
5745 ;;
5746esac
5747echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5748echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5749if test "${ac_cv_header_netinet_in_h+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752 ac_cv_header_netinet_in_h=$ac_header_preproc
5753fi
5754echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5755echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5756
5757fi
5758if test $ac_cv_header_netinet_in_h = yes; then
5759 cat >>confdefs.h <<\_ACEOF
5760#define HAVE_NETINET_IN_H 1
5761_ACEOF
5762
5763else
5764 no_netinet_in=yes
5765fi
5766
5767
7674bbe4 5768
5769if test "$no_netinet_in" != "yes"; then
00274452 5770 echo "$as_me:$LINENO: checking for in_addr_t defined in netinet/in.h" >&5
5771echo $ECHO_N "checking for in_addr_t defined in netinet/in.h... $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
7674bbe4 5778#include <netinet/in.h>
00274452 5779
5780_ACEOF
7674bbe4 5781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
00274452 5782 $EGREP "in_addr_t" >/dev/null 2>&1; then
7674bbe4 5783 ac_cv_type_in_addr_t=yes
5784else
7674bbe4 5785 ac_cv_type_in_addr_t=no
5786fi
5787rm -f conftest*
5788
00274452 5789 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
5790echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
7674bbe4 5791fi
5792
5793if test "$ac_cv_type_in_addr_t" != "yes"; then
00274452 5794 cat >>confdefs.h <<\_ACEOF
7674bbe4 5795#define in_addr_t uint32_t
00274452 5796_ACEOF
7674bbe4 5797
5798fi
5799
ea0caf4a 5800
25f58600 5801 case $PRO_C_INCLUDES in
5802 *INCLUDE='$(srcdir)'*) ;;
5803 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
5804 esac
5805
5806
00274452 5807
ea0caf4a 5808 case $CPPFLAGS in
5809 *-I'$(SRCTOP)/include'*) ;;
5810 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
5811 esac
5812
00274452 5813
ea0caf4a 5814 case $PRO_C_INCLUDES in
5815 *INCLUDE='$(SRCTOP)/include'*) ;;
5816 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
5817 esac
5818
5819
5820
00274452 5821
25f58600 5822 case $CPPFLAGS in
5823 *-I'$(SRCTOP)/lib'*) ;;
5824 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
5825 esac
5826
00274452 5827
25f58600 5828 case $PRO_C_INCLUDES in
5829 *INCLUDE='$(SRCTOP)/lib'*) ;;
5830 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
5831 esac
5832
5833
5834
00274452 5835
ea0caf4a 5836 case $CPPFLAGS in
5837 *-I'$(BUILDTOP)/lib'*) ;;
5838 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
5839 esac
5840
00274452 5841
ea0caf4a 5842 case $PRO_C_INCLUDES in
5843 *INCLUDE='$(BUILDTOP)/lib'*) ;;
5844 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
5845 esac
5846
5847
5848
00274452 5849
ea0caf4a 5850 case $CPPFLAGS in
5851 *-I'$(BUILDTOP)/db'*) ;;
5852 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
5853 esac
5854
00274452 5855
ea0caf4a 5856 case $PRO_C_INCLUDES in
5857 *INCLUDE='$(BUILDTOP)/db'*) ;;
5858 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
5859 esac
5860
5861
9976f5e9 5862
00274452 5863
9976f5e9 5864 case $CPPFLAGS in
5865 *-I'$(srcdir)'*) ;;
5866 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
5867 esac
5868
00274452 5869
9976f5e9 5870 case $PRO_C_INCLUDES in
5871 *INCLUDE='$(srcdir)'*) ;;
5872 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
5873 esac
5874
5875
ea0caf4a 5876LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
7249c66a 5877KLIBS="$KRB4_LIBS -lcom_err $LIBS"
5878KLIBS="$LIBS"
5879if test "$hesiod" != no; then
5880 KLIBS="-lhesiod $KLIBS"
5881fi
5882KLIBS="$KRB4_LIBS -lcom_err $KLIBS"
5883if test "$zephyr" != no; then
5884 KLIBS="-lzephyr $KLIBS"
5885fi
ea0caf4a 5886LIBS="-lmoira $KLIBS"
5887
5888
3fb6166b 5889MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a'
5890
5891
00274452 5892 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile clients/Makefile clients/lib/Makefile clients/addusr/Makefile clients/blanche/Makefile clients/chfn/Makefile clients/chpobox/Makefile clients/chsh/Makefile clients/mailmaint/Makefile clients/mitch/Makefile clients/moira/Makefile clients/mrcheck/Makefile clients/mrtest/Makefile clients/stanley/Makefile clients/stella/Makefile update/Makefile man/Makefile $WEBMOIRA_OUTPUT_FILES $SERVER_OUTPUT_FILES $WINAD_OUTPUT_FILES $AFS_OUTPUT_FILES $RSAREF_OUTPUT_FILES"
5893cat >confcache <<\_ACEOF
ea0caf4a 5894# This file is a shell script that caches the results of configure
5895# tests run on this system so they can be shared between configure
00274452 5896# scripts and configure runs, see configure's option --config-cache.
5897# It is not useful on other systems. If it contains results you don't
5898# want to keep, you may remove or edit it.
ea0caf4a 5899#
00274452 5900# config.status only pays attention to the cache file if you give it
5901# the --recheck option to rerun configure.
ea0caf4a 5902#
00274452 5903# `ac_cv_env_foo' variables (set or unset) will be overridden when
5904# loading this file, other *unset* `ac_cv_foo' will be assigned the
5905# following values.
5906
5907_ACEOF
5908
ea0caf4a 5909# The following way of writing the cache mishandles newlines in values,
5910# but we know of no workaround that is simple, portable, and efficient.
5911# So, don't put newlines in cache variables' values.
5912# Ultrix sh set writes to stderr and can't be redirected directly,
5913# and sets the high bit in the cache file unless we assign to the vars.
00274452 5914{
5915 (set) 2>&1 |
5916 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5917 *ac_space=\ *)
5918 # `set' does not quote correctly, so add quotes (double-quote
5919 # substitution turns \\\\ into \\, and sed turns \\ into \).
5920 sed -n \
5921 "s/'/'\\\\''/g;
5922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5923 ;;
5924 *)
5925 # `set' quotes correctly as required by POSIX, so do not add quotes.
5926 sed -n \
5927 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5928 ;;
5929 esac;
5930} |
5931 sed '
5932 t clear
5933 : clear
5934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5935 t end
5936 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5937 : end' >>confcache
5938if diff $cache_file confcache >/dev/null 2>&1; then :; else
ea0caf4a 5939 if test -w $cache_file; then
00274452 5940 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5941 cat confcache >$cache_file
ea0caf4a 5942 else
5943 echo "not updating unwritable cache $cache_file"
5944 fi
5945fi
5946rm -f confcache
5947
ea0caf4a 5948test "x$prefix" = xNONE && prefix=$ac_default_prefix
5949# Let make expand exec_prefix.
5950test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5951
00274452 5952# VPATH may cause trouble with some makes, so we remove $(srcdir),
5953# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5954# trailing colons and then remove the whole line if VPATH becomes empty
5955# (actually we leave an empty line to preserve line numbers).
ea0caf4a 5956if test "x$srcdir" = x.; then
00274452 5957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5958s/:*\$(srcdir):*/:/;
5959s/:*\${srcdir}:*/:/;
5960s/:*@srcdir@:*/:/;
5961s/^\([^=]*=[ ]*\):*/\1/;
5962s/:*$//;
5963s/^[^=]*=[ ]*$//;
5964}'
ea0caf4a 5965fi
5966
ea0caf4a 5967# Transform confdefs.h into DEFS.
5968# Protect against shell expansion while executing Makefile rules.
5969# Protect against Makefile macro expansion.
00274452 5970#
5971# If the first sed substitution is executed (which looks for macros that
5972# take arguments), then we branch to the quote section. Otherwise,
5973# look for a macro that doesn't take arguments.
5974cat >confdef2opt.sed <<\_ACEOF
5975t clear
5976: clear
5977s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5978t quote
5979s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5980t quote
5981d
5982: quote
5983s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5984s,\[,\\&,g
5985s,\],\\&,g
5986s,\$,$$,g
5987p
5988_ACEOF
5989# We use echo to avoid assuming a particular line-breaking character.
5990# The extra dot is to prevent the shell from consuming trailing
5991# line-breaks from the sub-command output. A line-break within
5992# single-quotes doesn't work because, if this script is created in a
5993# platform that uses two characters for line-breaks (e.g., DOS), tr
5994# would break.
5995ac_LF_and_DOT=`echo; echo .`
5996DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5997rm -f confdef2opt.sed
5998
5999
6000ac_libobjs=
6001ac_ltlibobjs=
6002for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6003 # 1. Remove the extension, and $U if already installed.
6004 ac_i=`echo "$ac_i" |
6005 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6006 # 2. Add them.
6007 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6008 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6009done
6010LIBOBJS=$ac_libobjs
ea0caf4a 6011
00274452 6012LTLIBOBJS=$ac_ltlibobjs
6013
6014
6015
6016: ${CONFIG_STATUS=./config.status}
6017ac_clean_files_save=$ac_clean_files
6018ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6019{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6020echo "$as_me: creating $CONFIG_STATUS" >&6;}
6021cat >$CONFIG_STATUS <<_ACEOF
6022#! $SHELL
6023# Generated by $as_me.
ea0caf4a 6024# Run this file to recreate the current configuration.
ea0caf4a 6025# Compiler output produced by configure, useful for debugging
00274452 6026# configure, is in config.log if it exists.
6027
6028debug=false
6029ac_cs_recheck=false
6030ac_cs_silent=false
6031SHELL=\${CONFIG_SHELL-$SHELL}
6032_ACEOF
6033
6034cat >>$CONFIG_STATUS <<\_ACEOF
6035## --------------------- ##
6036## M4sh Initialization. ##
6037## --------------------- ##
6038
6039# Be Bourne compatible
6040if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6041 emulate sh
6042 NULLCMD=:
6043 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6044 # is contrary to our usage. Disable this feature.
6045 alias -g '${1+"$@"}'='"$@"'
6046elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6047 set -o posix
6048fi
6049DUALCASE=1; export DUALCASE # for MKS sh
6050
6051# Support unset when possible.
6052if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6053 as_unset=unset
6054else
6055 as_unset=false
6056fi
ea0caf4a 6057
00274452 6058
6059# Work around bugs in pre-3.0 UWIN ksh.
6060$as_unset ENV MAIL MAILPATH
6061PS1='$ '
6062PS2='> '
6063PS4='+ '
6064
6065# NLS nuisances.
6066for as_var in \
6067 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6068 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6069 LC_TELEPHONE LC_TIME
ea0caf4a 6070do
00274452 6071 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6072 eval $as_var=C; export $as_var
6073 else
6074 $as_unset $as_var
6075 fi
ea0caf4a 6076done
6077
00274452 6078# Required to use basename.
6079if expr a : '\(a\)' >/dev/null 2>&1; then
6080 as_expr=expr
6081else
6082 as_expr=false
6083fi
ea0caf4a 6084
00274452 6085if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6086 as_basename=basename
6087else
6088 as_basename=false
6089fi
6090
6091
6092# Name of the executable.
6093as_me=`$as_basename "$0" ||
6094$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6095 X"$0" : 'X\(//\)$' \| \
6096 X"$0" : 'X\(/\)$' \| \
6097 . : '\(.\)' 2>/dev/null ||
6098echo X/"$0" |
6099 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6100 /^X\/\(\/\/\)$/{ s//\1/; q; }
6101 /^X\/\(\/\).*/{ s//\1/; q; }
6102 s/.*/./; q'`
6103
6104
6105# PATH needs CR, and LINENO needs CR and PATH.
6106# Avoid depending upon Character Ranges.
6107as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6108as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6109as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6110as_cr_digits='0123456789'
6111as_cr_alnum=$as_cr_Letters$as_cr_digits
6112
6113# The user is always right.
6114if test "${PATH_SEPARATOR+set}" != set; then
6115 echo "#! /bin/sh" >conf$$.sh
6116 echo "exit 0" >>conf$$.sh
6117 chmod +x conf$$.sh
6118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6119 PATH_SEPARATOR=';'
ea0caf4a 6120 else
00274452 6121 PATH_SEPARATOR=:
ea0caf4a 6122 fi
00274452 6123 rm -f conf$$.sh
6124fi
6125
6126
6127 as_lineno_1=$LINENO
6128 as_lineno_2=$LINENO
6129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6130 test "x$as_lineno_1" != "x$as_lineno_2" &&
6131 test "x$as_lineno_3" = "x$as_lineno_2" || {
6132 # Find who we are. Look in the path if we contain no path at all
6133 # relative or not.
6134 case $0 in
6135 *[\\/]* ) as_myself=$0 ;;
6136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6142done
6143
6144 ;;
6145 esac
6146 # We did not find ourselves, most probably we were run as `sh COMMAND'
6147 # in which case we are not to be found in the path.
6148 if test "x$as_myself" = x; then
6149 as_myself=$0
6150 fi
6151 if test ! -f "$as_myself"; then
6152 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6153echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6154 { (exit 1); exit 1; }; }
ea0caf4a 6155 fi
00274452 6156 case $CONFIG_SHELL in
6157 '')
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for as_base in sh bash ksh sh5; do
6164 case $as_dir in
6165 /*)
6166 if ("$as_dir/$as_base" -c '
6167 as_lineno_1=$LINENO
6168 as_lineno_2=$LINENO
6169 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6170 test "x$as_lineno_1" != "x$as_lineno_2" &&
6171 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6172 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6173 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6174 CONFIG_SHELL=$as_dir/$as_base
6175 export CONFIG_SHELL
6176 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6177 fi;;
6178 esac
6179 done
ea0caf4a 6180done
00274452 6181;;
ea0caf4a 6182 esac
6183
00274452 6184 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6185 # uniformly replaced by the line number. The first 'sed' inserts a
6186 # line-number line before each line; the second 'sed' does the real
6187 # work. The second script uses 'N' to pair each line-number line
6188 # with the numbered line, and appends trailing '-' during
6189 # substitution so that $LINENO is not a special case at line end.
6190 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6191 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6192 sed '=' <$as_myself |
6193 sed '
6194 N
6195 s,$,-,
6196 : loop
6197 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6198 t loop
6199 s,-$,,
6200 s,^['$as_cr_digits']*\n,,
6201 ' >$as_me.lineno &&
6202 chmod +x $as_me.lineno ||
6203 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6204echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6205 { (exit 1); exit 1; }; }
6206
6207 # Don't try to exec as it changes $[0], causing all sort of problems
6208 # (the dirname of $[0] is not the place where we might find the
6209 # original and so on. Autoconf is especially sensible to this).
6210 . ./$as_me.lineno
6211 # Exit status is that of the last command.
6212 exit
6213}
6214
6215
6216case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6217 *c*,-n*) ECHO_N= ECHO_C='
6218' ECHO_T=' ' ;;
6219 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6220 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6221esac
6222
6223if expr a : '\(a\)' >/dev/null 2>&1; then
6224 as_expr=expr
6225else
6226 as_expr=false
6227fi
ea0caf4a 6228
00274452 6229rm -f conf$$ conf$$.exe conf$$.file
6230echo >conf$$.file
6231if ln -s conf$$.file conf$$ 2>/dev/null; then
6232 # We could just check for DJGPP; but this test a) works b) is more generic
6233 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6234 if test -f conf$$.exe; then
6235 # Don't use ln at all; we don't have any links
6236 as_ln_s='cp -p'
ea0caf4a 6237 else
00274452 6238 as_ln_s='ln -s'
ea0caf4a 6239 fi
00274452 6240elif ln conf$$.file conf$$ 2>/dev/null; then
6241 as_ln_s=ln
6242else
6243 as_ln_s='cp -p'
6244fi
6245rm -f conf$$ conf$$.exe conf$$.file
ea0caf4a 6246
00274452 6247if mkdir -p . 2>/dev/null; then
6248 as_mkdir_p=:
6249else
6250 test -d ./-p && rmdir ./-p
6251 as_mkdir_p=false
6252fi
6253
6254as_executable_p="test -f"
6255
6256# Sed expression to map a string onto a valid CPP name.
6257as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6258
6259# Sed expression to map a string onto a valid variable name.
6260as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6261
6262
6263# IFS
6264# We need space, tab and new line, in precisely that order.
6265as_nl='
6266'
6267IFS=" $as_nl"
6268
6269# CDPATH.
6270$as_unset CDPATH
6271
6272exec 6>&1
6273
6274# Open the log real soon, to keep \$[0] and so on meaningful, and to
6275# report actual input values of CONFIG_FILES etc. instead of their
6276# values after options handling. Logging --version etc. is OK.
6277exec 5>>config.log
6278{
6279 echo
6280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6281## Running $as_me. ##
6282_ASBOX
6283} >&5
6284cat >&5 <<_CSEOF
6285
6286This file was extended by $as_me, which was
6287generated by GNU Autoconf 2.59. Invocation command line was
6288
6289 CONFIG_FILES = $CONFIG_FILES
6290 CONFIG_HEADERS = $CONFIG_HEADERS
6291 CONFIG_LINKS = $CONFIG_LINKS
6292 CONFIG_COMMANDS = $CONFIG_COMMANDS
6293 $ $0 $@
6294
6295_CSEOF
6296echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6297echo >&5
6298_ACEOF
6299
6300# Files that config.status was made for.
6301if test -n "$ac_config_files"; then
6302 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6303fi
6304
6305if test -n "$ac_config_headers"; then
6306 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6307fi
6308
6309if test -n "$ac_config_links"; then
6310 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6311fi
6312
6313if test -n "$ac_config_commands"; then
6314 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6315fi
6316
6317cat >>$CONFIG_STATUS <<\_ACEOF
6318
6319ac_cs_usage="\
6320\`$as_me' instantiates files from templates according to the
6321current configuration.
6322
6323Usage: $0 [OPTIONS] [FILE]...
6324
6325 -h, --help print this help, then exit
6326 -V, --version print version number, then exit
6327 -q, --quiet do not print progress messages
6328 -d, --debug don't remove temporary files
6329 --recheck update $as_me by reconfiguring in the same conditions
6330 --file=FILE[:TEMPLATE]
6331 instantiate the configuration file FILE
6332
6333Configuration files:
6334$config_files
6335
6336Report bugs to <bug-autoconf@gnu.org>."
6337_ACEOF
6338
6339cat >>$CONFIG_STATUS <<_ACEOF
6340ac_cs_version="\\
6341config.status
6342configured by $0, generated by GNU Autoconf 2.59,
6343 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6344
6345Copyright (C) 2003 Free Software Foundation, Inc.
6346This config.status script is free software; the Free Software Foundation
6347gives unlimited permission to copy, distribute and modify it."
6348srcdir=$srcdir
6349INSTALL="$INSTALL"
6350_ACEOF
6351
6352cat >>$CONFIG_STATUS <<\_ACEOF
6353# If no file are specified by the user, then we need to provide default
6354# value. By we need to know if files were specified by the user.
6355ac_need_defaults=:
6356while test $# != 0
6357do
6358 case $1 in
6359 --*=*)
6360 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6361 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6362 ac_shift=:
6363 ;;
6364 -*)
6365 ac_option=$1
6366 ac_optarg=$2
6367 ac_shift=shift
6368 ;;
6369 *) # This is not an option, so the user has probably given explicit
6370 # arguments.
6371 ac_option=$1
6372 ac_need_defaults=false;;
6373 esac
6374
6375 case $ac_option in
6376 # Handling of the options.
6377_ACEOF
6378cat >>$CONFIG_STATUS <<\_ACEOF
6379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6380 ac_cs_recheck=: ;;
6381 --version | --vers* | -V )
6382 echo "$ac_cs_version"; exit 0 ;;
6383 --he | --h)
6384 # Conflict between --help and --header
6385 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6386Try \`$0 --help' for more information." >&5
6387echo "$as_me: error: ambiguous option: $1
6388Try \`$0 --help' for more information." >&2;}
6389 { (exit 1); exit 1; }; };;
6390 --help | --hel | -h )
6391 echo "$ac_cs_usage"; exit 0 ;;
6392 --debug | --d* | -d )
6393 debug=: ;;
6394 --file | --fil | --fi | --f )
6395 $ac_shift
6396 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6397 ac_need_defaults=false;;
6398 --header | --heade | --head | --hea )
6399 $ac_shift
6400 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6401 ac_need_defaults=false;;
6402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6404 ac_cs_silent=: ;;
6405
6406 # This is an error.
6407 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6408Try \`$0 --help' for more information." >&5
6409echo "$as_me: error: unrecognized option: $1
6410Try \`$0 --help' for more information." >&2;}
6411 { (exit 1); exit 1; }; } ;;
6412
6413 *) ac_config_targets="$ac_config_targets $1" ;;
6414
6415 esac
6416 shift
6417done
6418
6419ac_configure_extra_args=
6420
6421if $ac_cs_silent; then
6422 exec 6>/dev/null
6423 ac_configure_extra_args="$ac_configure_extra_args --silent"
6424fi
6425
6426_ACEOF
6427cat >>$CONFIG_STATUS <<_ACEOF
6428if \$ac_cs_recheck; then
6429 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6430 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6431fi
6432
6433_ACEOF
6434
6435
6436
6437
6438
6439cat >>$CONFIG_STATUS <<\_ACEOF
6440for ac_config_target in $ac_config_targets
6441do
6442 case "$ac_config_target" in
6443 # Handling of arguments.
6444 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6445 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6446 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6447 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
6448 "clients/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lib/Makefile" ;;
6449 "clients/addusr/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/addusr/Makefile" ;;
6450 "clients/blanche/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/blanche/Makefile" ;;
6451 "clients/chfn/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chfn/Makefile" ;;
6452 "clients/chpobox/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chpobox/Makefile" ;;
6453 "clients/chsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chsh/Makefile" ;;
6454 "clients/mailmaint/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mailmaint/Makefile" ;;
6455 "clients/mitch/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mitch/Makefile" ;;
6456 "clients/moira/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/moira/Makefile" ;;
6457 "clients/mrcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrcheck/Makefile" ;;
6458 "clients/mrtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrtest/Makefile" ;;
6459 "clients/stanley/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stanley/Makefile" ;;
6460 "clients/stella/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stella/Makefile" ;;
6461 "update/Makefile" ) CONFIG_FILES="$CONFIG_FILES update/Makefile" ;;
6462 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6463 "$WEBMOIRA_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WEBMOIRA_OUTPUT_FILES" ;;
6464 "$SERVER_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $SERVER_OUTPUT_FILES" ;;
6465 "$WINAD_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WINAD_OUTPUT_FILES" ;;
6466 "$AFS_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $AFS_OUTPUT_FILES" ;;
6467 "$RSAREF_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $RSAREF_OUTPUT_FILES" ;;
6468 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6469echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6470 { (exit 1); exit 1; }; };;
ea0caf4a 6471 esac
00274452 6472done
6473
6474# If the user did not use the arguments to specify the items to instantiate,
6475# then the envvar interface is used. Set only those that are not.
6476# We use the long form for the default assignment because of an extremely
6477# bizarre bug on SunOS 4.1.3.
6478if $ac_need_defaults; then
6479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6480fi
6481
6482# Have a temporary directory for convenience. Make it in the build tree
6483# simply because there is no reason to put it here, and in addition,
6484# creating and moving files from /tmp can sometimes cause problems.
6485# Create a temporary directory, and hook for its removal unless debugging.
6486$debug ||
6487{
6488 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6489 trap '{ (exit 1); exit 1; }' 1 2 13 15
6490}
6491
6492# Create a (secure) tmp directory for tmp files.
6493
6494{
6495 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6496 test -n "$tmp" && test -d "$tmp"
6497} ||
6498{
6499 tmp=./confstat$$-$RANDOM
6500 (umask 077 && mkdir $tmp)
6501} ||
6502{
6503 echo "$me: cannot create a temporary directory in ." >&2
6504 { (exit 1); exit 1; }
6505}
6506
6507_ACEOF
6508
6509cat >>$CONFIG_STATUS <<_ACEOF
6510
6511#
6512# CONFIG_FILES section.
6513#
6514
6515# No need to generate the scripts if there are no CONFIG_FILES.
6516# This happens for instance when ./config.status config.h
6517if test -n "\$CONFIG_FILES"; then
6518 # Protect against being on the right side of a sed subst in config.status.
6519 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6520 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6521s,@SHELL@,$SHELL,;t t
6522s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6523s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6524s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6525s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6526s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6527s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6528s,@exec_prefix@,$exec_prefix,;t t
6529s,@prefix@,$prefix,;t t
6530s,@program_transform_name@,$program_transform_name,;t t
6531s,@bindir@,$bindir,;t t
6532s,@sbindir@,$sbindir,;t t
6533s,@libexecdir@,$libexecdir,;t t
6534s,@datadir@,$datadir,;t t
6535s,@sysconfdir@,$sysconfdir,;t t
6536s,@sharedstatedir@,$sharedstatedir,;t t
6537s,@localstatedir@,$localstatedir,;t t
6538s,@libdir@,$libdir,;t t
6539s,@includedir@,$includedir,;t t
6540s,@oldincludedir@,$oldincludedir,;t t
6541s,@infodir@,$infodir,;t t
6542s,@mandir@,$mandir,;t t
6543s,@build_alias@,$build_alias,;t t
6544s,@host_alias@,$host_alias,;t t
6545s,@target_alias@,$target_alias,;t t
6546s,@DEFS@,$DEFS,;t t
6547s,@ECHO_C@,$ECHO_C,;t t
6548s,@ECHO_N@,$ECHO_N,;t t
6549s,@ECHO_T@,$ECHO_T,;t t
6550s,@LIBS@,$LIBS,;t t
6551s,@build@,$build,;t t
6552s,@build_cpu@,$build_cpu,;t t
6553s,@build_vendor@,$build_vendor,;t t
6554s,@build_os@,$build_os,;t t
6555s,@host@,$host,;t t
6556s,@host_cpu@,$host_cpu,;t t
6557s,@host_vendor@,$host_vendor,;t t
6558s,@host_os@,$host_os,;t t
6559s,@SO_LDFLAGS@,$SO_LDFLAGS,;t t
6560s,@CC@,$CC,;t t
6561s,@CFLAGS@,$CFLAGS,;t t
6562s,@LDFLAGS@,$LDFLAGS,;t t
6563s,@CPPFLAGS@,$CPPFLAGS,;t t
6564s,@ac_ct_CC@,$ac_ct_CC,;t t
6565s,@EXEEXT@,$EXEEXT,;t t
6566s,@OBJEXT@,$OBJEXT,;t t
6567s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6568s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6569s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6570s,@RANLIB@,$RANLIB,;t t
6571s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6572s,@SET_MAKE@,$SET_MAKE,;t t
6573s,@mrbindir@,$mrbindir,;t t
6574s,@subdirs@,$subdirs,;t t
6575s,@COM_ERR_SUBDIR@,$COM_ERR_SUBDIR,;t t
6576s,@COMPILE_ET@,$COMPILE_ET,;t t
6577s,@REG_SVR_DEFS@,$REG_SVR_DEFS,;t t
6578s,@REG_SVR_INCLUDES@,$REG_SVR_INCLUDES,;t t
6579s,@REG_SVR_LIBS@,$REG_SVR_LIBS,;t t
6580s,@RSAREF_CPPFLAGS@,$RSAREF_CPPFLAGS,;t t
6581s,@RSAREF_LIBS@,$RSAREF_LIBS,;t t
6582s,@RSAREF_SUBDIRS@,$RSAREF_SUBDIRS,;t t
6583s,@RSAREF_LIBDEP@,$RSAREF_LIBDEP,;t t
6584s,@PRO_C@,$PRO_C,;t t
6585s,@PRO_C_DEFS@,$PRO_C_DEFS,;t t
6586s,@PRO_C_INCLUDES@,$PRO_C_INCLUDES,;t t
6587s,@PRO_C_OPTS@,$PRO_C_OPTS,;t t
6588s,@SQL_LIBS@,$SQL_LIBS,;t t
6589s,@SVRSUBDIRS@,$SVRSUBDIRS,;t t
6590s,@JAVA_CPPFLAGS@,$JAVA_CPPFLAGS,;t t
6591s,@WEBMOIRA_SUBDIRS@,$WEBMOIRA_SUBDIRS,;t t
6592s,@LDAP_CPPFLAGS@,$LDAP_CPPFLAGS,;t t
6593s,@LDAP_LIBS@,$LDAP_LIBS,;t t
6594s,@WINAD_SUBDIRS@,$WINAD_SUBDIRS,;t t
6595s,@AFS_CPPFLAGS@,$AFS_CPPFLAGS,;t t
6596s,@AFS_PRO_C_INCLUDES@,$AFS_PRO_C_INCLUDES,;t t
6597s,@AFS_LIBS@,$AFS_LIBS,;t t
6598s,@AFS_DIR@,$AFS_DIR,;t t
6599s,@AFS_SUBDIRS@,$AFS_SUBDIRS,;t t
6600s,@AFS_SYNCDIR@,$AFS_SYNCDIR,;t t
6601s,@READLINE_CPPFLAGS@,$READLINE_CPPFLAGS,;t t
6602s,@READLINE_LIBS@,$READLINE_LIBS,;t t
6603s,@CURSES_CPPFLAGS@,$CURSES_CPPFLAGS,;t t
6604s,@CURSES_LIBS@,$CURSES_LIBS,;t t
6605s,@CURSES_SUBDIRS@,$CURSES_SUBDIRS,;t t
6606s,@CPP@,$CPP,;t t
6607s,@EGREP@,$EGREP,;t t
6608s,@KLIBS@,$KLIBS,;t t
6609s,@MR_LIBDEP@,$MR_LIBDEP,;t t
6610s,@LIBOBJS@,$LIBOBJS,;t t
6611s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6612CEOF
6613
6614_ACEOF
6615
6616 cat >>$CONFIG_STATUS <<\_ACEOF
6617 # Split the substitutions into bite-sized pieces for seds with
6618 # small command number limits, like on Digital OSF/1 and HP-UX.
6619 ac_max_sed_lines=48
6620 ac_sed_frag=1 # Number of current file.
6621 ac_beg=1 # First line for current file.
6622 ac_end=$ac_max_sed_lines # Line after last line for current file.
6623 ac_more_lines=:
6624 ac_sed_cmds=
6625 while $ac_more_lines; do
6626 if test $ac_beg -gt 1; then
6627 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6628 else
6629 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6630 fi
6631 if test ! -s $tmp/subs.frag; then
6632 ac_more_lines=false
6633 else
6634 # The purpose of the label and of the branching condition is to
6635 # speed up the sed processing (if there are no `@' at all, there
6636 # is no need to browse any of the substitutions).
6637 # These are the two extra sed commands mentioned above.
6638 (echo ':t
6639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6640 if test -z "$ac_sed_cmds"; then
6641 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6642 else
6643 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6644 fi
6645 ac_sed_frag=`expr $ac_sed_frag + 1`
6646 ac_beg=$ac_end
6647 ac_end=`expr $ac_end + $ac_max_sed_lines`
6648 fi
6649 done
6650 if test -z "$ac_sed_cmds"; then
6651 ac_sed_cmds=cat
6652 fi
6653fi # test -n "$CONFIG_FILES"
ea0caf4a 6654
00274452 6655_ACEOF
6656cat >>$CONFIG_STATUS <<\_ACEOF
6657for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6659 case $ac_file in
6660 - | *:- | *:-:* ) # input from stdin
6661 cat >$tmp/stdin
6662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6666 * ) ac_file_in=$ac_file.in ;;
ea0caf4a 6667 esac
6668
00274452 6669 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6670 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6671$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6672 X"$ac_file" : 'X\(//\)[^/]' \| \
6673 X"$ac_file" : 'X\(//\)$' \| \
6674 X"$ac_file" : 'X\(/\)' \| \
6675 . : '\(.\)' 2>/dev/null ||
6676echo X"$ac_file" |
6677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6679 /^X\(\/\/\)$/{ s//\1/; q; }
6680 /^X\(\/\).*/{ s//\1/; q; }
6681 s/.*/./; q'`
6682 { if $as_mkdir_p; then
6683 mkdir -p "$ac_dir"
6684 else
6685 as_dir="$ac_dir"
6686 as_dirs=
6687 while test ! -d "$as_dir"; do
6688 as_dirs="$as_dir $as_dirs"
6689 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6691 X"$as_dir" : 'X\(//\)[^/]' \| \
6692 X"$as_dir" : 'X\(//\)$' \| \
6693 X"$as_dir" : 'X\(/\)' \| \
6694 . : '\(.\)' 2>/dev/null ||
6695echo X"$as_dir" |
6696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6698 /^X\(\/\/\)$/{ s//\1/; q; }
6699 /^X\(\/\).*/{ s//\1/; q; }
6700 s/.*/./; q'`
6701 done
6702 test ! -n "$as_dirs" || mkdir $as_dirs
6703 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6704echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6705 { (exit 1); exit 1; }; }; }
6706
6707 ac_builddir=.
6708
6709if test "$ac_dir" != .; then
6710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6711 # A "../" for each directory in $ac_dir_suffix.
6712 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6713else
6714 ac_dir_suffix= ac_top_builddir=
6715fi
6716
6717case $srcdir in
6718 .) # No --srcdir option. We are building in place.
6719 ac_srcdir=.
6720 if test -z "$ac_top_builddir"; then
6721 ac_top_srcdir=.
6722 else
6723 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6724 fi ;;
6725 [\\/]* | ?:[\\/]* ) # Absolute path.
6726 ac_srcdir=$srcdir$ac_dir_suffix;
6727 ac_top_srcdir=$srcdir ;;
6728 *) # Relative path.
6729 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6730 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6731esac
6732
6733# Do not use `cd foo && pwd` to compute absolute paths, because
6734# the directories may not exist.
6735case `pwd` in
6736.) ac_abs_builddir="$ac_dir";;
6737*)
6738 case "$ac_dir" in
6739 .) ac_abs_builddir=`pwd`;;
6740 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6741 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6742 esac;;
6743esac
6744case $ac_abs_builddir in
6745.) ac_abs_top_builddir=${ac_top_builddir}.;;
6746*)
6747 case ${ac_top_builddir}. in
6748 .) ac_abs_top_builddir=$ac_abs_builddir;;
6749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6750 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6751 esac;;
6752esac
6753case $ac_abs_builddir in
6754.) ac_abs_srcdir=$ac_srcdir;;
6755*)
6756 case $ac_srcdir in
6757 .) ac_abs_srcdir=$ac_abs_builddir;;
6758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6759 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6760 esac;;
6761esac
6762case $ac_abs_builddir in
6763.) ac_abs_top_srcdir=$ac_top_srcdir;;
6764*)
6765 case $ac_top_srcdir in
6766 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6768 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6769 esac;;
6770esac
6771
6772
6773 case $INSTALL in
6774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6775 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ea0caf4a 6776 esac
6777
00274452 6778 if test x"$ac_file" != x-; then
6779 { echo "$as_me:$LINENO: creating $ac_file" >&5
6780echo "$as_me: creating $ac_file" >&6;}
6781 rm -f "$ac_file"
6782 fi
6783 # Let's still pretend it is `configure' which instantiates (i.e., don't
6784 # use $as_me), people would be surprised to read:
6785 # /* config.h. Generated by config.status. */
6786 if test x"$ac_file" = x-; then
6787 configure_input=
6788 else
6789 configure_input="$ac_file. "
6790 fi
6791 configure_input=$configure_input"Generated from `echo $ac_file_in |
6792 sed 's,.*/,,'` by configure."
6793
6794 # First look for the input files in the build tree, otherwise in the
6795 # src tree.
6796 ac_file_inputs=`IFS=:
6797 for f in $ac_file_in; do
6798 case $f in
6799 -) echo $tmp/stdin ;;
6800 [\\/$]*)
6801 # Absolute (can't be DOS-style, as IFS=:)
6802 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6803echo "$as_me: error: cannot find input file: $f" >&2;}
6804 { (exit 1); exit 1; }; }
6805 echo "$f";;
6806 *) # Relative
6807 if test -f "$f"; then
6808 # Build tree
6809 echo "$f"
6810 elif test -f "$srcdir/$f"; then
6811 # Source tree
6812 echo "$srcdir/$f"
6813 else
6814 # /dev/null tree
6815 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6816echo "$as_me: error: cannot find input file: $f" >&2;}
6817 { (exit 1); exit 1; }; }
6818 fi;;
6819 esac
6820 done` || { (exit 1); exit 1; }
6821_ACEOF
6822cat >>$CONFIG_STATUS <<_ACEOF
6823 sed "$ac_vpsub
6824$extrasub
6825_ACEOF
6826cat >>$CONFIG_STATUS <<\_ACEOF
6827:t
6828/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6829s,@configure_input@,$configure_input,;t t
6830s,@srcdir@,$ac_srcdir,;t t
6831s,@abs_srcdir@,$ac_abs_srcdir,;t t
6832s,@top_srcdir@,$ac_top_srcdir,;t t
6833s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6834s,@builddir@,$ac_builddir,;t t
6835s,@abs_builddir@,$ac_abs_builddir,;t t
6836s,@top_builddir@,$ac_top_builddir,;t t
6837s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6838s,@INSTALL@,$ac_INSTALL,;t t
6839" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6840 rm -f $tmp/stdin
6841 if test x"$ac_file" != x-; then
6842 mv $tmp/out $ac_file
6843 else
6844 cat $tmp/out
6845 rm -f $tmp/out
6846 fi
ea0caf4a 6847
00274452 6848done
6849_ACEOF
ea0caf4a 6850
00274452 6851cat >>$CONFIG_STATUS <<\_ACEOF
ea0caf4a 6852
00274452 6853{ (exit 0); exit 0; }
6854_ACEOF
ea0caf4a 6855chmod +x $CONFIG_STATUS
00274452 6856ac_clean_files=$ac_clean_files_save
6857
6858
6859# configure is writing to config.log, and then calls config.status.
6860# config.status does its own redirection, appending to config.log.
6861# Unfortunately, on DOS this fails, as config.log is still kept open
6862# by configure, so config.status won't be able to write to it; its
6863# output is simply discarded. So we exec the FD to /dev/null,
6864# effectively closing config.log, so it can be properly (re)opened and
6865# appended to by config.status. When coming back to configure, we
6866# need to make the FD available again.
6867if test "$no_create" != yes; then
6868 ac_cs_success=:
6869 ac_config_status_args=
6870 test "$silent" = yes &&
6871 ac_config_status_args="$ac_config_status_args --quiet"
6872 exec 5>/dev/null
6873 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6874 exec 5>>config.log
6875 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6876 # would make configure fail if this is the last instruction.
6877 $ac_cs_success || { (exit 1); exit 1; }
6878fi
ea0caf4a 6879
00274452 6880#
6881# CONFIG_SUBDIRS section.
6882#
ea0caf4a 6883if test "$no_recursion" != yes; then
6884
6885 # Remove --cache-file and --srcdir arguments so they do not pile up.
6886 ac_sub_configure_args=
6887 ac_prev=
6888 for ac_arg in $ac_configure_args; do
6889 if test -n "$ac_prev"; then
6890 ac_prev=
6891 continue
6892 fi
00274452 6893 case $ac_arg in
ea0caf4a 6894 -cache-file | --cache-file | --cache-fil | --cache-fi \
6895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6896 ac_prev=cache_file ;;
6897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
00274452 6898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6899 | --c=*)
6900 ;;
6901 --config-cache | -C)
ea0caf4a 6902 ;;
6903 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6904 ac_prev=srcdir ;;
6905 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6906 ;;
00274452 6907 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6908 ac_prev=prefix ;;
6909 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6910 ;;
ea0caf4a 6911 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6912 esac
6913 done
6914
00274452 6915 # Always prepend --prefix to ensure using the same prefix
6916 # in subdir configurations.
6917 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6918
6919 ac_popdir=`pwd`
6920 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
ea0caf4a 6921
6922 # Do not complain, so a configure script can configure whichever
6923 # parts of a large source tree are present.
00274452 6924 test -d $srcdir/$ac_dir || continue
ea0caf4a 6925
00274452 6926 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6927echo "$as_me: configuring in $ac_dir" >&6;}
6928 { if $as_mkdir_p; then
6929 mkdir -p "$ac_dir"
6930 else
6931 as_dir="$ac_dir"
6932 as_dirs=
6933 while test ! -d "$as_dir"; do
6934 as_dirs="$as_dir $as_dirs"
6935 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6937 X"$as_dir" : 'X\(//\)[^/]' \| \
6938 X"$as_dir" : 'X\(//\)$' \| \
6939 X"$as_dir" : 'X\(/\)' \| \
6940 . : '\(.\)' 2>/dev/null ||
6941echo X"$as_dir" |
6942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6944 /^X\(\/\/\)$/{ s//\1/; q; }
6945 /^X\(\/\).*/{ s//\1/; q; }
6946 s/.*/./; q'`
6947 done
6948 test ! -n "$as_dirs" || mkdir $as_dirs
6949 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6950echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6951 { (exit 1); exit 1; }; }; }
6952
6953 ac_builddir=.
6954
6955if test "$ac_dir" != .; then
6956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6957 # A "../" for each directory in $ac_dir_suffix.
6958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6959else
6960 ac_dir_suffix= ac_top_builddir=
6961fi
ea0caf4a 6962
00274452 6963case $srcdir in
6964 .) # No --srcdir option. We are building in place.
6965 ac_srcdir=.
6966 if test -z "$ac_top_builddir"; then
6967 ac_top_srcdir=.
6968 else
6969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6970 fi ;;
6971 [\\/]* | ?:[\\/]* ) # Absolute path.
6972 ac_srcdir=$srcdir$ac_dir_suffix;
6973 ac_top_srcdir=$srcdir ;;
6974 *) # Relative path.
6975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6977esac
ea0caf4a 6978
00274452 6979# Do not use `cd foo && pwd` to compute absolute paths, because
6980# the directories may not exist.
6981case `pwd` in
6982.) ac_abs_builddir="$ac_dir";;
6983*)
6984 case "$ac_dir" in
6985 .) ac_abs_builddir=`pwd`;;
6986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6988 esac;;
6989esac
6990case $ac_abs_builddir in
6991.) ac_abs_top_builddir=${ac_top_builddir}.;;
6992*)
6993 case ${ac_top_builddir}. in
6994 .) ac_abs_top_builddir=$ac_abs_builddir;;
6995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6997 esac;;
6998esac
6999case $ac_abs_builddir in
7000.) ac_abs_srcdir=$ac_srcdir;;
7001*)
7002 case $ac_srcdir in
7003 .) ac_abs_srcdir=$ac_abs_builddir;;
7004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7006 esac;;
7007esac
7008case $ac_abs_builddir in
7009.) ac_abs_top_srcdir=$ac_top_srcdir;;
7010*)
7011 case $ac_top_srcdir in
7012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7015 esac;;
7016esac
ea0caf4a 7017
ea0caf4a 7018
00274452 7019 cd $ac_dir
ea0caf4a 7020
7021 # Check for guested configure; otherwise get Cygnus style configure.
00274452 7022 if test -f $ac_srcdir/configure.gnu; then
7023 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7024 elif test -f $ac_srcdir/configure; then
7025 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7026 elif test -f $ac_srcdir/configure.in; then
ea0caf4a 7027 ac_sub_configure=$ac_configure
7028 else
00274452 7029 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7030echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
ea0caf4a 7031 ac_sub_configure=
7032 fi
7033
7034 # The recursion is here.
7035 if test -n "$ac_sub_configure"; then
ea0caf4a 7036 # Make the cache file name correct relative to the subdirectory.
00274452 7037 case $cache_file in
7038 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
ea0caf4a 7039 *) # Relative path.
00274452 7040 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
ea0caf4a 7041 esac
ea0caf4a 7042
00274452 7043 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7044echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
ea0caf4a 7045 # The eval makes quoting arguments work.
00274452 7046 eval $ac_sub_configure $ac_sub_configure_args \
7047 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7048 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7049echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7050 { (exit 1); exit 1; }; }
ea0caf4a 7051 fi
7052
7053 cd $ac_popdir
7054 done
7055fi
7056
This page took 1.10884 seconds and 5 git commands to generate.