]> andersk Git - moira.git/blame_incremental - configure
Athena is a dirty word.
[moira.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
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
193
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#
254ac_default_prefix=/usr/local
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=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
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.
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
354ac_prev=
355for ac_option
356do
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
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
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=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
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" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
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"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
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 ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
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=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
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=*)
465 libexecdir=$ac_optarg ;;
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=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
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 \
486 | --no-cr | --no-c | -n)
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=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
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=*)
512 program_prefix=$ac_optarg ;;
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=*)
519 program_suffix=$ac_optarg ;;
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=*)
536 program_transform_name=$ac_optarg ;;
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=*)
546 sbindir=$ac_optarg ;;
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=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
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=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
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; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
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" ;;
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=*)
618 x_includes=$ac_optarg ;;
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=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
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
642 *)
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}
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
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; }; }
657fi
658
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
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673do
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; }; };;
679 esac
680done
681
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
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
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.
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'`
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
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737fi
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
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
1195
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.
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
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
1216 . "$ac_site_file"
1217 fi
1218done
1219
1220if test -r "$cache_file"; then
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
1231else
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; }; }
1286fi
1287
1288ac_ext=c
1289ac_cpp='$CPP $CPPFLAGS'
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
1310
1311
1312
1313
1314
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
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
1329 fi
1330done
1331if test -z "$ac_aux_dir"; then
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; }; }
1335fi
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.
1339
1340# Make sure we can run config.sub.
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; }; }
1384
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/'`
1392
1393
1394# SO_LDFLAGS setting below is a great big ick.
1395# But it beats sucking in libtool for one small part of the source tree.
1396case $host_os in
1397solaris*)
1398 short_os=solaris
1399 SO_LDFLAGS="-G"
1400 ;;
1401irix*)
1402 short_os=irix
1403 SO_LDFLAGS="-shared"
1404 ;;
1405linux*)
1406 short_os=linux
1407 SO_LDFLAGS="-shared"
1408 ;;
1409esac
1410
1411
1412
1413
1414
1415
1416
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
1430else
1431 if test -n "$CC"; then
1432 ac_cv_prog_CC="$CC" # Let the user override the test.
1433else
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
1528fi
1529fi
1530CC=$ac_cv_prog_CC
1531if test -n "$CC"; then
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
1578else
1579 CC="$ac_cv_prog_CC"
1580fi
1581
1582fi
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
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
1590else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593else
1594 ac_prog_rejected=no
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
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
1617 if test $# != 0; then
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
1622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1623 fi
1624fi
1625fi
1626fi
1627CC=$ac_cv_prog_CC
1628if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
1631else
1632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
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
1647else
1648 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test.
1650else
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
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
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
1703 fi
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
1716fi
1717
1718 test -n "$ac_ct_CC" && break
1719done
1720
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
1842 else
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
1854 fi
1855fi
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
1889else
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
1972
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
2000else
2001 echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004ac_compiler_gnu=no
2005fi
2006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
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
2020else
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
2058 ac_cv_prog_cc_g=yes
2059else
2060 echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063ac_cv_prog_cc_g=no
2064fi
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
2069if test "$ac_test_CFLAGS" = set; then
2070 CFLAGS=$ac_save_CFLAGS
2071elif test $ac_cv_prog_cc_g = yes; then
2072 if test "$GCC" = yes; then
2073 CFLAGS="-g -O2"
2074 else
2075 CFLAGS="-g"
2076 fi
2077else
2078 if test "$GCC" = yes; then
2079 CFLAGS="-O2"
2080 else
2081 CFLAGS=
2082 fi
2083fi
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
2347
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
2355# AmigaOS /C/install, which installs bootblocks on floppy discs
2356# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2357# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2359# OS/2's system install, which has a completely different semantic
2360# ./install, which can be erroneously created by make from ./install.sh.
2361echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2362echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2363if test -z "$INSTALL"; then
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
2385 if test $ac_prog = install &&
2386 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387 # AIX install. It has an incompatible calling convention.
2388 :
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 :
2393 else
2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2395 break 3
2396 fi
2397 fi
2398 done
2399 done
2400 ;;
2401esac
2402done
2403
2404
2405fi
2406 if test "${ac_cv_path_install+set}" = set; then
2407 INSTALL=$ac_cv_path_install
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.
2413 INSTALL=$ac_install_sh
2414 fi
2415fi
2416echo "$as_me:$LINENO: result: $INSTALL" >&5
2417echo "${ECHO_T}$INSTALL" >&6
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
2423test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2424
2425test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2426
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
2434else
2435 if test -n "$RANLIB"; then
2436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2437else
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
2452fi
2453fi
2454RANLIB=$ac_cv_prog_RANLIB
2455if test -n "$RANLIB"; then
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
2472else
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"
2505fi
2506
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
2512else
2513 cat >conftest.make <<\_ACEOF
2514all:
2515 @echo 'ac_maketemp="$(MAKE)"'
2516_ACEOF
2517# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2518eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
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
2524rm -f conftest.make
2525fi
2526if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2527 echo "$as_me:$LINENO: result: yes" >&5
2528echo "${ECHO_T}yes" >&6
2529 SET_MAKE=
2530else
2531 echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6
2533 SET_MAKE="MAKE=${MAKE-make}"
2534fi
2535
2536
2537if test "$athena" = true; then
2538 enable_athena=yes
2539 prefix=/afs/.athena.mit.edu/system/moira
2540 bindir=$prefix/arch/$ATHENA_SYS/bin
2541 sbindir=$bindir
2542
2543
2544 case $CPPFLAGS in
2545 *-I/usr/athena/include*) ;;
2546 *) CPPFLAGS=-I/usr/athena/include\ $CPPFLAGS ;;
2547 esac
2548
2549
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
2556
2557 case $LIBPATH in
2558 *-L/usr/athena/lib*) ;;
2559 *) LIBPATH=-L/usr/athena/lib\ $LIBPATH ;;
2560 esac
2561
2562fi
2563
2564# We currently just don't support changing this
2565mrbindir=/moira/bin
2566
2567
2568# Athena-local policy decisions
2569echo "$as_me:$LINENO: checking for Athena" >&5
2570echo $ECHO_N "checking for Athena... $ECHO_C" >&6
2571# Check whether --enable-athena or --disable-athena was given.
2572if test "${enable_athena+set}" = set; then
2573 enableval="$enable_athena"
2574
2575else
2576 if test "$athena" = true; then
2577 enableval=yes
2578 else
2579 enableval=no
2580 fi
2581fi;
2582echo "$as_me:$LINENO: result: $enableval" >&5
2583echo "${ECHO_T}$enableval" >&6
2584if test "$enableval" = yes; then
2585
2586 cat >>confdefs.h <<\_ACEOF
2587#define ATHENA 1
2588_ACEOF
2589
2590
2591 case $PRO_C_DEFS in
2592 *DEFINE=ATHENA*) ;;
2593 *) PRO_C_DEFS=DEFINE=ATHENA\ $PRO_C_DEFS ;;
2594 esac
2595
2596
2597fi
2598
2599# Networking libraries
2600{ echo "$as_me:$LINENO: checking network libraries......" >&5
2601echo "$as_me: checking network libraries......" >&6;}
2602echo "$as_me:$LINENO: checking for gethostbyname" >&5
2603echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2604if test "${ac_cv_func_gethostbyname+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607 cat >conftest.$ac_ext <<_ACEOF
2608/* confdefs.h. */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h. */
2613/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
2614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2615#define gethostbyname innocuous_gethostbyname
2616
2617/* System header to define __stub macros and hopefully few prototypes,
2618 which can conflict with char gethostbyname (); below.
2619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2620 <limits.h> exists even on freestanding compilers. */
2621
2622#ifdef __STDC__
2623# include <limits.h>
2624#else
2625# include <assert.h>
2626#endif
2627
2628#undef gethostbyname
2629
2630/* Override any gcc2 internal prototype to avoid an error. */
2631#ifdef __cplusplus
2632extern "C"
2633{
2634#endif
2635/* We use char because int might match the return type of a gcc2
2636 builtin and then its argument prototype would still apply. */
2637char gethostbyname ();
2638/* The GNU C library defines this for functions which it implements
2639 to always fail with ENOSYS. Some functions are actually named
2640 something starting with __ and the normal name is an alias. */
2641#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2642choke me
2643#else
2644char (*f) () = gethostbyname;
2645#endif
2646#ifdef __cplusplus
2647}
2648#endif
2649
2650int
2651main ()
2652{
2653return f != gethostbyname;
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658rm -f conftest.$ac_objext conftest$ac_exeext
2659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660 (eval $ac_link) 2>conftest.er1
2661 ac_status=$?
2662 grep -v '^ *+' conftest.er1 >conftest.err
2663 rm -f conftest.er1
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -z "$ac_c_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest$ac_exeext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2680 ac_cv_func_gethostbyname=yes
2681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685ac_cv_func_gethostbyname=no
2686fi
2687rm -f conftest.err conftest.$ac_objext \
2688 conftest$ac_exeext conftest.$ac_ext
2689fi
2690echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2691echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2692if test $ac_cv_func_gethostbyname = yes; then
2693 :
2694else
2695
2696echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2697echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2698if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700else
2701 ac_check_lib_save_LIBS=$LIBS
2702LIBS="-lnsl $LIBS"
2703cat >conftest.$ac_ext <<_ACEOF
2704/* confdefs.h. */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
2708/* end confdefs.h. */
2709
2710/* Override any gcc2 internal prototype to avoid an error. */
2711#ifdef __cplusplus
2712extern "C"
2713#endif
2714/* We use char because int might match the return type of a gcc2
2715 builtin and then its argument prototype would still apply. */
2716char gethostbyname ();
2717int
2718main ()
2719{
2720gethostbyname ();
2721 ;
2722 return 0;
2723}
2724_ACEOF
2725rm -f conftest.$ac_objext conftest$ac_exeext
2726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2727 (eval $ac_link) 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest$ac_exeext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_lib_nsl_gethostbyname=yes
2748else
2749 echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752ac_cv_lib_nsl_gethostbyname=no
2753fi
2754rm -f conftest.err conftest.$ac_objext \
2755 conftest$ac_exeext conftest.$ac_ext
2756LIBS=$ac_check_lib_save_LIBS
2757fi
2758echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2759echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2760if test $ac_cv_lib_nsl_gethostbyname = yes; then
2761 cat >>confdefs.h <<_ACEOF
2762#define HAVE_LIBNSL 1
2763_ACEOF
2764
2765 LIBS="-lnsl $LIBS"
2766
2767else
2768
2769echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2770echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2771if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774 ac_check_lib_save_LIBS=$LIBS
2775LIBS="-lresolv $LIBS"
2776
2777cat >conftest.$ac_ext <<_ACEOF
2778/* confdefs.h. */
2779_ACEOF
2780cat confdefs.h >>conftest.$ac_ext
2781cat >>conftest.$ac_ext <<_ACEOF
2782/* end confdefs.h. */
2783
2784/* Override any gcc2 internal prototype to avoid an error. */
2785#ifdef __cplusplus
2786extern "C"
2787#endif
2788/* We use char because int might match the return type of a gcc2
2789 builtin and then its argument prototype would still apply. */
2790char gethostbyname ();
2791int
2792main ()
2793{
2794gethostbyname ();
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext conftest$ac_exeext
2800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801 (eval $ac_link) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest$ac_exeext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 ac_cv_lib_resolv_gethostbyname=yes
2822else
2823 echo "$as_me: failed program was:" >&5
2824sed 's/^/| /' conftest.$ac_ext >&5
2825
2826ac_cv_lib_resolv_gethostbyname=no
2827fi
2828rm -f conftest.err conftest.$ac_objext \
2829 conftest$ac_exeext conftest.$ac_ext
2830LIBS=$ac_check_lib_save_LIBS
2831fi
2832echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
2833echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
2834if test $ac_cv_lib_resolv_gethostbyname = yes; then
2835 cat >>confdefs.h <<_ACEOF
2836#define HAVE_LIBRESOLV 1
2837_ACEOF
2838
2839 LIBS="-lresolv $LIBS"
2840
2841fi
2842
2843fi
2844
2845fi
2846
2847echo "$as_me:$LINENO: checking for socket" >&5
2848echo $ECHO_N "checking for socket... $ECHO_C" >&6
2849if test "${ac_cv_func_socket+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852 cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
2858/* Define socket to an innocuous variant, in case <limits.h> declares socket.
2859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2860#define socket innocuous_socket
2861
2862/* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char socket (); below.
2864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2865 <limits.h> exists even on freestanding compilers. */
2866
2867#ifdef __STDC__
2868# include <limits.h>
2869#else
2870# include <assert.h>
2871#endif
2872
2873#undef socket
2874
2875/* Override any gcc2 internal prototype to avoid an error. */
2876#ifdef __cplusplus
2877extern "C"
2878{
2879#endif
2880/* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2882char socket ();
2883/* The GNU C library defines this for functions which it implements
2884 to always fail with ENOSYS. Some functions are actually named
2885 something starting with __ and the normal name is an alias. */
2886#if defined (__stub_socket) || defined (__stub___socket)
2887choke me
2888#else
2889char (*f) () = socket;
2890#endif
2891#ifdef __cplusplus
2892}
2893#endif
2894
2895int
2896main ()
2897{
2898return f != socket;
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905 (eval $ac_link) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest$ac_exeext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 ac_cv_func_socket=yes
2926else
2927 echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930ac_cv_func_socket=no
2931fi
2932rm -f conftest.err conftest.$ac_objext \
2933 conftest$ac_exeext conftest.$ac_ext
2934fi
2935echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
2936echo "${ECHO_T}$ac_cv_func_socket" >&6
2937if test $ac_cv_func_socket = yes; then
2938 :
2939else
2940
2941echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2942echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2943if test "${ac_cv_lib_socket_socket+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946 ac_check_lib_save_LIBS=$LIBS
2947LIBS="-lsocket $LIBS"
2948cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h. */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h. */
2954
2955/* Override any gcc2 internal prototype to avoid an error. */
2956#ifdef __cplusplus
2957extern "C"
2958#endif
2959/* We use char because int might match the return type of a gcc2
2960 builtin and then its argument prototype would still apply. */
2961char socket ();
2962int
2963main ()
2964{
2965socket ();
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext conftest$ac_exeext
2971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972 (eval $ac_link) 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -z "$ac_c_werror_flag"
2980 || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 (eval $ac_try) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest$ac_exeext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 ac_cv_lib_socket_socket=yes
2993else
2994 echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997ac_cv_lib_socket_socket=no
2998fi
2999rm -f conftest.err conftest.$ac_objext \
3000 conftest$ac_exeext conftest.$ac_ext
3001LIBS=$ac_check_lib_save_LIBS
3002fi
3003echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3004echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3005if test $ac_cv_lib_socket_socket = yes; then
3006 cat >>confdefs.h <<_ACEOF
3007#define HAVE_LIBSOCKET 1
3008_ACEOF
3009
3010 LIBS="-lsocket $LIBS"
3011
3012else
3013 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3014echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3015if test "${ac_cv_lib_socket_socket+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 ac_check_lib_save_LIBS=$LIBS
3019LIBS="-lsocket -lnsl $LIBS"
3020cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
3026
3027/* Override any gcc2 internal prototype to avoid an error. */
3028#ifdef __cplusplus
3029extern "C"
3030#endif
3031/* We use char because int might match the return type of a gcc2
3032 builtin and then its argument prototype would still apply. */
3033char socket ();
3034int
3035main ()
3036{
3037socket ();
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext conftest$ac_exeext
3043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3044 (eval $ac_link) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest$ac_exeext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_lib_socket_socket=yes
3065else
3066 echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069ac_cv_lib_socket_socket=no
3070fi
3071rm -f conftest.err conftest.$ac_objext \
3072 conftest$ac_exeext conftest.$ac_ext
3073LIBS=$ac_check_lib_save_LIBS
3074fi
3075echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3076echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3077if test $ac_cv_lib_socket_socket = yes; then
3078 LIBS="-lsocket -lnsl $LIBS"
3079else
3080 :
3081fi
3082
3083fi
3084
3085fi
3086
3087
3088# com_err (required, but can be built)
3089echo "$as_me:$LINENO: checking for com_err" >&5
3090echo $ECHO_N "checking for com_err... $ECHO_C" >&6
3091
3092# Check whether --with-com_err or --without-com_err was given.
3093if test "${with_com_err+set}" = set; then
3094 withval="$with_com_err"
3095 echo "$as_me:$LINENO: result: $withval" >&5
3096echo "${ECHO_T}$withval" >&6
3097 if test $withval = "no"; then
3098 { { echo "$as_me:$LINENO: error: com_err is required for Moira" >&5
3099echo "$as_me: error: com_err is required for Moira" >&2;}
3100 { (exit 1); exit 1; }; }
3101 fi
3102 if test $withval != "yes"; then
3103
3104
3105 case $CPPFLAGS in
3106 *-I$withval/include*) ;;
3107 *) CPPFLAGS=-I$withval/include\ $CPPFLAGS ;;
3108 esac
3109
3110
3111 case $PRO_C_INCLUDES in
3112 *INCLUDE=$withval/include*) ;;
3113 *) PRO_C_INCLUDES=INCLUDE=$withval/include\ $PRO_C_INCLUDES ;;
3114 esac
3115
3116
3117
3118 case $LIBPATH in
3119 *-L$withval/lib*) ;;
3120 *) LIBPATH=-L$withval/lib\ $LIBPATH ;;
3121 esac
3122
3123 fi
3124 COMPILE_ET=compile_et
3125else
3126 echo "$as_me:$LINENO: result: util/et" >&5
3127echo "${ECHO_T}util/et" >&6
3128
3129
3130 case $CPPFLAGS in
3131 *-I`pwd`/util/et*) ;;
3132 *) CPPFLAGS=-I`pwd`/util/et\ $CPPFLAGS ;;
3133 esac
3134
3135
3136 case $PRO_C_INCLUDES in
3137 *INCLUDE=`pwd`/util/et*) ;;
3138 *) PRO_C_INCLUDES=INCLUDE=`pwd`/util/et\ $PRO_C_INCLUDES ;;
3139 esac
3140
3141
3142
3143 case $LIBPATH in
3144 *-L`pwd`/util/et*) ;;
3145 *) LIBPATH=-L`pwd`/util/et\ $LIBPATH ;;
3146 esac
3147
3148 COMPILE_ET=`pwd`/util/et/compile_et
3149
3150
3151subdirs="$subdirs util/et"
3152
3153fi;
3154
3155
3156
3157echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
3158echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
3159if test "${ac_cv_lib_k5crypto_main+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162 ac_check_lib_save_LIBS=$LIBS
3163LIBS="-lk5crypto $LIBS"
3164cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
3170
3171
3172int
3173main ()
3174{
3175main ();
3176 ;
3177 return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext conftest$ac_exeext
3181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182 (eval $ac_link) 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -z "$ac_c_werror_flag"
3190 || test ! -s conftest.err'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 (eval $ac_try) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest$ac_exeext'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 ac_cv_lib_k5crypto_main=yes
3203else
3204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207ac_cv_lib_k5crypto_main=no
3208fi
3209rm -f conftest.err conftest.$ac_objext \
3210 conftest$ac_exeext conftest.$ac_ext
3211LIBS=$ac_check_lib_save_LIBS
3212fi
3213echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
3214echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
3215if test $ac_cv_lib_k5crypto_main = yes; then
3216 crypto="k5crypto"
3217else
3218 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
3219echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
3220if test "${ac_cv_lib_crypto_main+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223 ac_check_lib_save_LIBS=$LIBS
3224LIBS="-lcrypto $LIBS"
3225cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h. */
3231
3232
3233int
3234main ()
3235{
3236main ();
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241rm -f conftest.$ac_objext conftest$ac_exeext
3242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3243 (eval $ac_link) 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest$ac_exeext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_lib_crypto_main=yes
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268ac_cv_lib_crypto_main=no
3269fi
3270rm -f conftest.err conftest.$ac_objext \
3271 conftest$ac_exeext conftest.$ac_ext
3272LIBS=$ac_check_lib_save_LIBS
3273fi
3274echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
3275echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
3276if test $ac_cv_lib_crypto_main = yes; then
3277 crypto="crypto"
3278fi
3279
3280fi
3281
3282
3283# Kerberos (Kerberos 4 optional, Kerberos 5 required)
3284echo "$as_me:$LINENO: checking for Kerberos 4" >&5
3285echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
3286
3287# Check whether --with-krb4 or --without-krb4 was given.
3288if test "${with_krb4+set}" = set; then
3289 withval="$with_krb4"
3290 krb4="$withval"
3291else
3292 krb4=no
3293fi;
3294echo "$as_me:$LINENO: result: $krb4" >&5
3295echo "${ECHO_T}$krb4" >&6
3296if test "$krb4" != no; then
3297 if test "$krb4" != yes; then
3298
3299
3300 case $CPPFLAGS in
3301 *-I$krb4/include*) ;;
3302 *) CPPFLAGS=-I$krb4/include\ $CPPFLAGS ;;
3303 esac
3304
3305
3306 case $PRO_C_INCLUDES in
3307 *INCLUDE=$krb4/include*) ;;
3308 *) PRO_C_INCLUDES=INCLUDE=$krb4/include\ $PRO_C_INCLUDES ;;
3309 esac
3310
3311
3312 if test -d "$krb4/include/kerberosIV"; then
3313
3314
3315 case $CPPFLAGS in
3316 *-I$krb4/include/kerberosIV*) ;;
3317 *) CPPFLAGS=-I$krb4/include/kerberosIV\ $CPPFLAGS ;;
3318 esac
3319
3320
3321 case $PRO_C_INCLUDES in
3322 *INCLUDE=$krb4/include/kerberosIV*) ;;
3323 *) PRO_C_INCLUDES=INCLUDE=$krb4/include/kerberosIV\ $PRO_C_INCLUDES ;;
3324 esac
3325
3326
3327 fi
3328
3329 case $LIBPATH in
3330 *-L$krb4/lib*) ;;
3331 *) LIBPATH=-L$krb4/lib\ $LIBPATH ;;
3332 esac
3333
3334 elif test -d /usr/include/kerberosIV; then
3335
3336
3337 case $CPPFLAGS in
3338 *-I/usr/include/kerberosIV*) ;;
3339 *) CPPFLAGS=-I/usr/include/kerberosIV\ $CPPFLAGS ;;
3340 esac
3341
3342
3343 case $PRO_C_INCLUDES in
3344 *INCLUDE=/usr/include/kerberosIV*) ;;
3345 *) PRO_C_INCLUDES=INCLUDE=/usr/include/kerberosIV\ $PRO_C_INCLUDES ;;
3346 esac
3347
3348
3349 fi
3350
3351 cat >>confdefs.h <<\_ACEOF
3352#define HAVE_KRB4 1
3353_ACEOF
3354
3355
3356 case $PRO_C_DEFS in
3357 *DEFINE=HAVE_KRB4*) ;;
3358 *) PRO_C_DEFS=DEFINE=HAVE_KRB4\ $PRO_C_DEFS ;;
3359 esac
3360
3361
3362 echo "$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
3366else
3367 ac_check_lib_save_LIBS=$LIBS
3368LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv $LIBS"
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
3376/* Override any gcc2 internal prototype to avoid an error. */
3377#ifdef __cplusplus
3378extern "C"
3379#endif
3380/* We use char because int might match the return type of a gcc2
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
3417
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
3423fi
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
3427 KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
3428else
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
3433else
3434 ac_check_lib_save_LIBS=$LIBS
3435LIBS="-lkrb $LIBPATH -ldes $LIBS"
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
3443/* Override any gcc2 internal prototype to avoid an error. */
3444#ifdef __cplusplus
3445extern "C"
3446#endif
3447/* We use char because int might match the return type of a gcc2
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
3484
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
3490fi
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
3494 KRB4_LIBS="-lkrb -ldes"
3495else
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; }; }
3499fi
3500
3501fi
3502
3503fi
3504
3505echo "$as_me:$LINENO: checking for Kerberos 5" >&5
3506echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
3507
3508# Check whether --with-krb5 or --without-krb5 was given.
3509if test "${with_krb5+set}" = set; then
3510 withval="$with_krb5"
3511 krb5="$withval"
3512else
3513 krb5=no
3514fi;
3515echo "$as_me:$LINENO: result: $krb5" >&5
3516echo "${ECHO_T}$krb5" >&6
3517if test "$krb5" != no; then
3518 REG_SVR_DEFS=-DKRB5
3519 if test "$krb5" != yes; then
3520 REG_SVR_INCLUDES=-I$krb5/include
3521 REG_SVR_LIBS=-L$krb5/lib
3522
3523
3524 case $CPPFLAGS in
3525 *-I$krb5/include*) ;;
3526 *) CPPFLAGS=-I$krb5/include\ $CPPFLAGS ;;
3527 esac
3528
3529
3530 case $PRO_C_INCLUDES in
3531 *INCLUDE=$krb5/include*) ;;
3532 *) PRO_C_INCLUDES=INCLUDE=$krb5/include\ $PRO_C_INCLUDES ;;
3533 esac
3534
3535
3536
3537 case $LIBPATH in
3538 *-L$krb5/lib*) ;;
3539 *) LIBPATH=-L$krb5/lib\ $LIBPATH ;;
3540 esac
3541
3542 fi
3543
3544 cat >>confdefs.h <<\_ACEOF
3545#define HAVE_KRB5 1
3546_ACEOF
3547
3548
3549 case $PRO_C_DEFS in
3550 *DEFINE=HAVE_KRB5*) ;;
3551 *) PRO_C_DEFS=DEFINE=HAVE_KRB5\ $PRO_C_DEFS ;;
3552 esac
3553
3554
3555 KRB5_LIBS="-lkrb5 -l${crypto} -lcom_err -lresolv"
3556 REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
3557else
3558 REG_SVR_DEFS=-DKRB4
3559 REG_SVR_LIBS=-lkadm
3560fi
3561
3562
3563
3564
3565# Hesiod support
3566echo "$as_me:$LINENO: checking for Hesiod" >&5
3567echo $ECHO_N "checking for Hesiod... $ECHO_C" >&6
3568
3569# Check whether --with-hesiod or --without-hesiod was given.
3570if test "${with_hesiod+set}" = set; then
3571 withval="$with_hesiod"
3572 hesiod="$withval"
3573else
3574 hesiod=no
3575fi;
3576echo "$as_me:$LINENO: result: $hesiod" >&5
3577echo "${ECHO_T}$hesiod" >&6
3578if test "$hesiod" != no; then
3579 if test "$hesiod" != yes; then
3580
3581
3582 case $CPPFLAGS in
3583 *-I$hesiod/include*) ;;
3584 *) CPPFLAGS=-I$hesiod/include\ $CPPFLAGS ;;
3585 esac
3586
3587
3588 case $PRO_C_INCLUDES in
3589 *INCLUDE=$hesiod/include*) ;;
3590 *) PRO_C_INCLUDES=INCLUDE=$hesiod/include\ $PRO_C_INCLUDES ;;
3591 esac
3592
3593
3594
3595 case $LIBPATH in
3596 *-L$hesiod/lib*) ;;
3597 *) LIBPATH=-L$hesiod/lib\ $LIBPATH ;;
3598 esac
3599
3600 fi
3601 echo "$as_me:$LINENO: checking for res_send" >&5
3602echo $ECHO_N "checking for res_send... $ECHO_C" >&6
3603if test "${ac_cv_func_res_send+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
3613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3614#define res_send innocuous_res_send
3615
3616/* System header to define __stub macros and hopefully few prototypes,
3617 which can conflict with char res_send (); below.
3618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 <limits.h> exists even on freestanding compilers. */
3620
3621#ifdef __STDC__
3622# include <limits.h>
3623#else
3624# include <assert.h>
3625#endif
3626
3627#undef res_send
3628
3629/* Override any gcc2 internal prototype to avoid an error. */
3630#ifdef __cplusplus
3631extern "C"
3632{
3633#endif
3634/* We use char because int might match the return type of a gcc2
3635 builtin and then its argument prototype would still apply. */
3636char res_send ();
3637/* The GNU C library defines this for functions which it implements
3638 to always fail with ENOSYS. Some functions are actually named
3639 something starting with __ and the normal name is an alias. */
3640#if defined (__stub_res_send) || defined (__stub___res_send)
3641choke me
3642#else
3643char (*f) () = res_send;
3644#endif
3645#ifdef __cplusplus
3646}
3647#endif
3648
3649int
3650main ()
3651{
3652return f != res_send;
3653 ;
3654 return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext conftest$ac_exeext
3658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 (eval $ac_link) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest$ac_exeext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_func_res_send=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684ac_cv_func_res_send=no
3685fi
3686rm -f conftest.err conftest.$ac_objext \
3687 conftest$ac_exeext conftest.$ac_ext
3688fi
3689echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
3690echo "${ECHO_T}$ac_cv_func_res_send" >&6
3691if test $ac_cv_func_res_send = yes; then
3692 :
3693else
3694
3695echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
3696echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
3697if test "${ac_cv_lib_resolv_res_send+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700 ac_check_lib_save_LIBS=$LIBS
3701LIBS="-lresolv $LIBS"
3702cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708
3709/* Override any gcc2 internal prototype to avoid an error. */
3710#ifdef __cplusplus
3711extern "C"
3712#endif
3713/* We use char because int might match the return type of a gcc2
3714 builtin and then its argument prototype would still apply. */
3715char res_send ();
3716int
3717main ()
3718{
3719res_send ();
3720 ;
3721 return 0;
3722}
3723_ACEOF
3724rm -f conftest.$ac_objext conftest$ac_exeext
3725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>conftest.er1
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -z "$ac_c_werror_flag"
3734 || test ! -s conftest.err'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; } &&
3740 { ac_try='test -s conftest$ac_exeext'
3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); }; }; then
3746 ac_cv_lib_resolv_res_send=yes
3747else
3748 echo "$as_me: failed program was:" >&5
3749sed 's/^/| /' conftest.$ac_ext >&5
3750
3751ac_cv_lib_resolv_res_send=no
3752fi
3753rm -f conftest.err conftest.$ac_objext \
3754 conftest$ac_exeext conftest.$ac_ext
3755LIBS=$ac_check_lib_save_LIBS
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
3758echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
3759if test $ac_cv_lib_resolv_res_send = yes; then
3760 cat >>confdefs.h <<_ACEOF
3761#define HAVE_LIBRESOLV 1
3762_ACEOF
3763
3764 LIBS="-lresolv $LIBS"
3765
3766fi
3767
3768fi
3769
3770 echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
3771echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6
3772if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 ac_check_lib_save_LIBS=$LIBS
3776LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
3777cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783
3784/* Override any gcc2 internal prototype to avoid an error. */
3785#ifdef __cplusplus
3786extern "C"
3787#endif
3788/* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3790char hes_resolve ();
3791int
3792main ()
3793{
3794hes_resolve ();
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 ac_cv_lib_hesiod_hes_resolve=yes
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826ac_cv_lib_hesiod_hes_resolve=no
3827fi
3828rm -f conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830LIBS=$ac_check_lib_save_LIBS
3831fi
3832echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
3833echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6
3834if test $ac_cv_lib_hesiod_hes_resolve = yes; then
3835 :
3836else
3837 { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
3838echo "$as_me: error: Hesiod library not found" >&2;}
3839 { (exit 1); exit 1; }; }
3840fi
3841
3842
3843 cat >>confdefs.h <<\_ACEOF
3844#define HAVE_HESIOD 1
3845_ACEOF
3846
3847
3848 case $PRO_C_DEFS in
3849 *DEFINE=HAVE_HESIOD*) ;;
3850 *) PRO_C_DEFS=DEFINE=HAVE_HESIOD\ $PRO_C_DEFS ;;
3851 esac
3852
3853
3854fi
3855
3856# Zephyr support
3857echo "$as_me:$LINENO: checking for Zephyr" >&5
3858echo $ECHO_N "checking for Zephyr... $ECHO_C" >&6
3859
3860# Check whether --with-zephyr or --without-zephyr was given.
3861if test "${with_zephyr+set}" = set; then
3862 withval="$with_zephyr"
3863 zephyr="$withval"
3864else
3865 zephyr=no
3866fi;
3867echo "$as_me:$LINENO: result: $zephyr" >&5
3868echo "${ECHO_T}$zephyr" >&6
3869if test "$zephyr" != no; then
3870 if test "$zephyr" != yes; then
3871
3872
3873 case $CPPFLAGS in
3874 *-I$zephyr/include*) ;;
3875 *) CPPFLAGS=-I$zephyr/include\ $CPPFLAGS ;;
3876 esac
3877
3878
3879 case $PRO_C_INCLUDES in
3880 *INCLUDE=$zephyr/include*) ;;
3881 *) PRO_C_INCLUDES=INCLUDE=$zephyr/include\ $PRO_C_INCLUDES ;;
3882 esac
3883
3884
3885
3886 case $LIBPATH in
3887 *-L$zephyr/lib*) ;;
3888 *) LIBPATH=-L$zephyr/lib\ $LIBPATH ;;
3889 esac
3890
3891 fi
3892 echo "$as_me:$LINENO: checking for ZInitialize in -lzephyr" >&5
3893echo $ECHO_N "checking for ZInitialize in -lzephyr... $ECHO_C" >&6
3894if test "${ac_cv_lib_zephyr_ZInitialize+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897 ac_check_lib_save_LIBS=$LIBS
3898LIBS="-lzephyr $LIBPATH $KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
3899cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h. */
3905
3906/* Override any gcc2 internal prototype to avoid an error. */
3907#ifdef __cplusplus
3908extern "C"
3909#endif
3910/* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3912char ZInitialize ();
3913int
3914main ()
3915{
3916ZInitialize ();
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921rm -f conftest.$ac_objext conftest$ac_exeext
3922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_c_werror_flag"
3931 || test ! -s conftest.err'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; } &&
3937 { ac_try='test -s conftest$ac_exeext'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3943 ac_cv_lib_zephyr_ZInitialize=yes
3944else
3945 echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948ac_cv_lib_zephyr_ZInitialize=no
3949fi
3950rm -f conftest.err conftest.$ac_objext \
3951 conftest$ac_exeext conftest.$ac_ext
3952LIBS=$ac_check_lib_save_LIBS
3953fi
3954echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitialize" >&5
3955echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitialize" >&6
3956if test $ac_cv_lib_zephyr_ZInitialize = yes; then
3957 :
3958else
3959 { { echo "$as_me:$LINENO: error: Zephyr library not found" >&5
3960echo "$as_me: error: Zephyr library not found" >&2;}
3961 { (exit 1); exit 1; }; }
3962fi
3963
3964
3965 cat >>confdefs.h <<\_ACEOF
3966#define HAVE_ZEPHYR 1
3967_ACEOF
3968
3969
3970 case $PRO_C_DEFS in
3971 *DEFINE=HAVE_ZEPHYR*) ;;
3972 *) PRO_C_DEFS=DEFINE=HAVE_ZEPHYR\ $PRO_C_DEFS ;;
3973 esac
3974
3975
3976fi
3977
3978# RSAREF support (default: build util/rsaref if present)
3979echo "$as_me:$LINENO: checking for RSAREF" >&5
3980echo $ECHO_N "checking for RSAREF... $ECHO_C" >&6
3981
3982# Check whether --with-rsaref or --without-rsaref was given.
3983if test "${with_rsaref+set}" = set; then
3984 withval="$with_rsaref"
3985 rsaref="$withval"
3986 RSAREF_CPPFLAGS="-I$rsaref/include"
3987 RSAREF_LIBS="$rsaref/lib/rsaref.a"
3988else
3989 RSAREF_SUBDIRS=reg_svr
3990 if test -d $srcdir/util/rsaref; then
3991 rsaref=$srcdir/util/rsaref
3992 RSAREF_SUBDIRS="util/rsaref reg_svr"
3993 RSAREF_OUTPUT_FILES="util/rsaref/Makefile"
3994 # autoconf can't deal with creating util/rsaref if util doesn't exist
3995 if test ! -d util; then
3996 mkdir util
3997 fi
3998 RSAREF_CPPFLAGS='-I$(SRCTOP)/util/rsaref'
3999 RSAREF_LIBS='$(BUILDTOP)/util/rsaref/rsaref.a'
4000 RSAREF_LIBDEP='$(BUILDTOP)/util/rsaref/rsaref.a'
4001 else
4002 rsaref=no
4003 fi
4004fi;
4005echo "$as_me:$LINENO: result: $rsaref" >&5
4006echo "${ECHO_T}$rsaref" >&6
4007if test "$rsaref" != no; then
4008
4009 cat >>confdefs.h <<\_ACEOF
4010#define HAVE_RSAREF 1
4011_ACEOF
4012
4013
4014 case $PRO_C_DEFS in
4015 *DEFINE=HAVE_RSAREF*) ;;
4016 *) PRO_C_DEFS=DEFINE=HAVE_RSAREF\ $PRO_C_DEFS ;;
4017 esac
4018
4019
4020fi
4021
4022
4023
4024
4025
4026# Oracle (default: yes, if $ORACLE_HOME is set)
4027echo "$as_me:$LINENO: checking for Oracle" >&5
4028echo $ECHO_N "checking for Oracle... $ECHO_C" >&6
4029
4030# Check whether --with-oracle or --without-oracle was given.
4031if test "${with_oracle+set}" = set; then
4032 withval="$with_oracle"
4033 oracle="$withval"
4034else
4035 if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
4036 oracle=$ORACLE_HOME
4037 else
4038 oracle=no
4039 fi
4040fi;
4041echo "$as_me:$LINENO: result: $oracle" >&5
4042echo "${ECHO_T}$oracle" >&6
4043if test "$oracle" != no; then
4044 echo "$as_me:$LINENO: checking Pro*C version" >&5
4045echo $ECHO_N "checking Pro*C version... $ECHO_C" >&6
4046 ORACLE_HOME=$oracle release=`$ORACLE_HOME/bin/proc | awk '/Release/ {print $3;}'`
4047 echo "$as_me:$LINENO: result: $release" >&5
4048echo "${ECHO_T}$release" >&6
4049 case $release in
4050 2.0.6.0.0)
4051 SQL_LIBS="-L$oracle/lib -lsql $oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lnlsrtl -lcv6 -lcore -lnlsrtl -lcore -lm"
4052 ;;
4053 2.2.4.0.0)
4054 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"
4055 ;;
4056 8.1.7.4.0)
4057 SQL_LIBS="-L$oracle/lib -lclntsh `cat $oracle/lib/sysliblist` -R$oracle/lib -laio -lm -lthread"
4058 ;;
4059 10.2.0.2.0)
4060 SQL_LIBS="-L$oracle/lib32 -lclntsh `cat $oracle/lib32/ldflags` `cat $oracle/lib32/sysliblist` -R$oracle/lib32 -laio -lposix4 -lm -lthread"
4061 ;;
4062 *)
4063 { { echo "$as_me:$LINENO: error: Unsupported Oracle release" >&5
4064echo "$as_me: error: Unsupported Oracle release" >&2;}
4065 { (exit 1); exit 1; }; }
4066 ;;
4067 esac
4068 SVRSUBDIRS='$(SVRDIRS)'
4069 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"
4070 PRO_C=$oracle/bin/proc
4071 PRO_C_OPTS=CODE=ANSI_C
4072 PRO_C_DEFS="DEFINE=_PROC_ DEFINE=__sparc $PRO_C_DEFS"
4073fi
4074
4075
4076
4077
4078
4079
4080
4081# Java support, for webmoira
4082echo "$as_me:$LINENO: checking for Java" >&5
4083echo $ECHO_N "checking for Java... $ECHO_C" >&6
4084
4085# Check whether --with-java or --without-java was given.
4086if test "${with_java+set}" = set; then
4087 withval="$with_java"
4088 java="$withval"
4089else
4090 if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
4091 java=$JAVA_HOME
4092 else
4093 java=no
4094 fi
4095fi;
4096echo "$as_me:$LINENO: result: $java" >&5
4097echo "${ECHO_T}$java" >&6
4098if test "$java" != no; then
4099 if test "$java" != yes; then
4100 JAVA_CPPFLAGS="-I$java/include -I$java/include/$short_os"
4101 fi
4102
4103 cat >>confdefs.h <<\_ACEOF
4104#define HAVE_JAVA 1
4105_ACEOF
4106
4107
4108 case $PRO_C_DEFS in
4109 *DEFINE=HAVE_JAVA*) ;;
4110 *) PRO_C_DEFS=DEFINE=HAVE_JAVA\ $PRO_C_DEFS ;;
4111 esac
4112
4113
4114
4115 WEBMOIRA_SUBDIRS="webmoira"
4116 WEBMOIRA_OUTPUT_FILES="webmoira/Makefile"
4117fi
4118
4119
4120
4121# LDAP support
4122echo "$as_me:$LINENO: checking for LDAP" >&5
4123echo $ECHO_N "checking for LDAP... $ECHO_C" >&6
4124
4125# Check whether --with-ldap or --without-ldap was given.
4126if test "${with_ldap+set}" = set; then
4127 withval="$with_ldap"
4128 ldap="$withval"
4129else
4130 if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
4131 ldap=$LDAP_HOME
4132 else
4133 ldap=no
4134 fi
4135fi;
4136echo "$as_me:$LINENO: result: $ldap" >&5
4137echo "${ECHO_T}$ldap" >&6
4138if test "$ldap" != no -a "$oracle" != no; then
4139 if test "$ldap" != yes; then
4140 LDAP_CPPFLAGS="-I$ldap/include"
4141 LDAP_LIBS="-L$ldap/lib"
4142 fi
4143
4144 cat >>confdefs.h <<\_ACEOF
4145#define HAVE_LDAP 1
4146_ACEOF
4147
4148
4149 case $PRO_C_DEFS in
4150 *DEFINE=HAVE_LDAP*) ;;
4151 *) PRO_C_DEFS=DEFINE=HAVE_LDAP\ $PRO_C_DEFS ;;
4152 esac
4153
4154
4155
4156 WINAD_SUBDIRS="winad ldap"
4157 WINAD_OUTPUT_FILES="incremental/winad/Makefile incremental/ldap/Makefile"
4158fi
4159
4160
4161
4162
4163# AFS support
4164echo "$as_me:$LINENO: checking for AFS" >&5
4165echo $ECHO_N "checking for AFS... $ECHO_C" >&6
4166
4167# Check whether --with-afs or --without-afs was given.
4168if test "${with_afs+set}" = set; then
4169 withval="$with_afs"
4170 afs="$withval"
4171else
4172 afs=no
4173fi;
4174echo "$as_me:$LINENO: result: $afs" >&5
4175echo "${ECHO_T}$afs" >&6
4176if test "$afs" != no -a "$oracle" != no; then
4177 if test "$afs" != yes; then
4178 AFS_CPPFLAGS="-I$afs/include -I$afs/include/afs -I$afs/include/rx"
4179 AFS_PRO_C_INCLUDES="INCLUDE=$afs/include INCLUDE=$afs/include/afs INCLUDE=$afs/include/rx"
4180 AFS_LIBS="-L$afs/lib -L$afs/lib/afs"
4181 AFS_DIR=$afs
4182 fi
4183 echo "$as_me:$LINENO: checking for pioctl in -lsys" >&5
4184echo $ECHO_N "checking for pioctl in -lsys... $ECHO_C" >&6
4185if test "${ac_cv_lib_sys_pioctl+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 ac_check_lib_save_LIBS=$LIBS
4189LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys -lafsutil $LIBS"
4190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
4196
4197/* Override any gcc2 internal prototype to avoid an error. */
4198#ifdef __cplusplus
4199extern "C"
4200#endif
4201/* We use char because int might match the return type of a gcc2
4202 builtin and then its argument prototype would still apply. */
4203char pioctl ();
4204int
4205main ()
4206{
4207pioctl ();
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext conftest$ac_exeext
4213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214 (eval $ac_link) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_lib_sys_pioctl=yes
4235else
4236 echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
4238
4239ac_cv_lib_sys_pioctl=no
4240fi
4241rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4243LIBS=$ac_check_lib_save_LIBS
4244fi
4245echo "$as_me:$LINENO: result: $ac_cv_lib_sys_pioctl" >&5
4246echo "${ECHO_T}$ac_cv_lib_sys_pioctl" >&6
4247if test $ac_cv_lib_sys_pioctl = yes; then
4248 :
4249else
4250 { { echo "$as_me:$LINENO: error: AFS libraries not found" >&5
4251echo "$as_me: error: AFS libraries not found" >&2;}
4252 { (exit 1); exit 1; }; }
4253fi
4254
4255
4256 cat >>confdefs.h <<\_ACEOF
4257#define HAVE_AFS 1
4258_ACEOF
4259
4260
4261 case $PRO_C_DEFS in
4262 *DEFINE=HAVE_AFS*) ;;
4263 *) PRO_C_DEFS=DEFINE=HAVE_AFS\ $PRO_C_DEFS ;;
4264 esac
4265
4266
4267
4268 AFS_SUBDIRS="afs"
4269 AFS_OUTPUT_FILES="incremental/afs/Makefile"
4270 if test -d $srcdir/afssync; then
4271 AFS_SYNCDIR="afssync"
4272 AFS_OUTPUT_FILES="$AFS_OUTPUT_FILES afssync/Makefile"
4273 fi
4274fi
4275
4276
4277
4278
4279
4280
4281
4282# GNU readline
4283{ echo "$as_me:$LINENO: checking for GNU readline......" >&5
4284echo "$as_me: checking for GNU readline......" >&6;}
4285
4286# Check whether --with-readline or --without-readline was given.
4287if test "${with_readline+set}" = set; then
4288 withval="$with_readline"
4289 readline="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
4290echo "${ECHO_T}$withval" >&6
4291else
4292 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4293echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4294if test "${ac_cv_lib_readline_readline+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297 ac_check_lib_save_LIBS=$LIBS
4298LIBS="-lreadline -ltermcap $LIBS"
4299cat >conftest.$ac_ext <<_ACEOF
4300/* confdefs.h. */
4301_ACEOF
4302cat confdefs.h >>conftest.$ac_ext
4303cat >>conftest.$ac_ext <<_ACEOF
4304/* end confdefs.h. */
4305
4306/* Override any gcc2 internal prototype to avoid an error. */
4307#ifdef __cplusplus
4308extern "C"
4309#endif
4310/* We use char because int might match the return type of a gcc2
4311 builtin and then its argument prototype would still apply. */
4312char readline ();
4313int
4314main ()
4315{
4316readline ();
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321rm -f conftest.$ac_objext conftest$ac_exeext
4322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323 (eval $ac_link) 2>conftest.er1
4324 ac_status=$?
4325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -z "$ac_c_werror_flag"
4331 || test ! -s conftest.err'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest$ac_exeext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_cv_lib_readline_readline=yes
4344else
4345 echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348ac_cv_lib_readline_readline=no
4349fi
4350rm -f conftest.err conftest.$ac_objext \
4351 conftest$ac_exeext conftest.$ac_ext
4352LIBS=$ac_check_lib_save_LIBS
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4355echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4356if test $ac_cv_lib_readline_readline = yes; then
4357 readline=yes
4358else
4359 if test "$athena" = true; then
4360 unset ac_cv_lib_readline_readline
4361 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4362echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4363if test "${ac_cv_lib_readline_readline+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 ac_check_lib_save_LIBS=$LIBS
4367LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
4368cat >conftest.$ac_ext <<_ACEOF
4369/* confdefs.h. */
4370_ACEOF
4371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
4373/* end confdefs.h. */
4374
4375/* Override any gcc2 internal prototype to avoid an error. */
4376#ifdef __cplusplus
4377extern "C"
4378#endif
4379/* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381char readline ();
4382int
4383main ()
4384{
4385readline ();
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext conftest$ac_exeext
4391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest$ac_exeext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 ac_cv_lib_readline_readline=yes
4413else
4414 echo "$as_me: failed program was:" >&5
4415sed 's/^/| /' conftest.$ac_ext >&5
4416
4417ac_cv_lib_readline_readline=no
4418fi
4419rm -f conftest.err conftest.$ac_objext \
4420 conftest$ac_exeext conftest.$ac_ext
4421LIBS=$ac_check_lib_save_LIBS
4422fi
4423echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4424echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4425if test $ac_cv_lib_readline_readline = yes; then
4426 readline=/mit/gnu
4427else
4428 :
4429fi
4430
4431 fi
4432fi
4433
4434fi;
4435if test "$readline" != no; then
4436 if test "$readline" != yes; then
4437 READLINE_CPPFLAGS="-I$readline/include"
4438 READLINE_LIBS="-L$readline/lib"
4439 fi
4440 READLINE_CPPFLAGS="$READLINE_CPPFLAGS -DHAVE_READLINE"
4441 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
4442fi
4443
4444
4445
4446# Curses
4447curses=curses
4448{ echo "$as_me:$LINENO: checking for curses..." >&5
4449echo "$as_me: checking for curses..." >&6;}
4450echo "$as_me:$LINENO: checking for main in -lcurses" >&5
4451echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
4452if test "${ac_cv_lib_curses_main+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455 ac_check_lib_save_LIBS=$LIBS
4456LIBS="-lcurses $LIBS"
4457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
4463
4464
4465int
4466main ()
4467{
4468main ();
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 ac_cv_lib_curses_main=yes
4496else
4497 echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500ac_cv_lib_curses_main=no
4501fi
4502rm -f conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4504LIBS=$ac_check_lib_save_LIBS
4505fi
4506echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
4507echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
4508if test $ac_cv_lib_curses_main = yes; then
4509 :
4510else
4511 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
4512echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
4513if test "${ac_cv_lib_ncurses_main+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 ac_check_lib_save_LIBS=$LIBS
4517LIBS="-lncurses $LIBS"
4518cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
4524
4525
4526int
4527main ()
4528{
4529main ();
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534rm -f conftest.$ac_objext conftest$ac_exeext
4535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4536 (eval $ac_link) 2>conftest.er1
4537 ac_status=$?
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -z "$ac_c_werror_flag"
4544 || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest$ac_exeext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_lib_ncurses_main=yes
4557else
4558 echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561ac_cv_lib_ncurses_main=no
4562fi
4563rm -f conftest.err conftest.$ac_objext \
4564 conftest$ac_exeext conftest.$ac_ext
4565LIBS=$ac_check_lib_save_LIBS
4566fi
4567echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
4568echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
4569if test $ac_cv_lib_ncurses_main = yes; then
4570 curses=ncurses
4571fi
4572
4573fi
4574
4575if test -n "$curses"; then
4576 OLDLIBS=$LIBS
4577 LIBS=-l$curses
4578 { echo "$as_me:$LINENO: checking if curses needs termcap..." >&5
4579echo "$as_me: checking if curses needs termcap..." >&6;}
4580 if test "$cross_compiling" = yes; then
4581 :
4582else
4583 cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
4589#include <curses.h>
4590 main(int argc, char **argv)
4591 {
4592 initscr();
4593 endwin();
4594 return 0;
4595 }
4596_ACEOF
4597rm -f conftest$ac_exeext
4598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599 (eval $ac_link) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 CURSES_LIBS="-l$curses"
4609else
4610 echo "$as_me: program exited with status $ac_status" >&5
4611echo "$as_me: failed program was:" >&5
4612sed 's/^/| /' conftest.$ac_ext >&5
4613
4614( exit $ac_status )
4615LIBS="-l$curses -ltermcap"
4616 if test "$cross_compiling" = yes; then
4617 :
4618else
4619 cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
4625#include <curses.h>
4626 main(int argc, char **argv)
4627 {
4628 initscr();
4629 endwin();
4630 return 0;
4631 }
4632_ACEOF
4633rm -f conftest$ac_exeext
4634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4635 (eval $ac_link) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 CURSES_LIBS="-l$curses -ltermcap"
4645else
4646 echo "$as_me: program exited with status $ac_status" >&5
4647echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650( exit $ac_status )
4651:
4652fi
4653rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4654fi
4655fi
4656rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4657fi
4658 LIBS=$OLDLIBS
4659fi
4660if test -n "$CURSES_LIBS"; then
4661 OLDLIBS=$LIBS
4662 LIBS=$CURSES_LIBS
4663 cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h. */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h. */
4669#include <curses.h>
4670int
4671main ()
4672{
4673WINDOW *w; getmaxx(w);
4674 ;
4675 return 0;
4676}
4677_ACEOF
4678rm -f conftest.$ac_objext conftest$ac_exeext
4679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try='test -z "$ac_c_werror_flag"
4688 || test ! -s conftest.err'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest$ac_exeext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 :
4701else
4702 echo "$as_me: failed program was:" >&5
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
4705cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h. */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h. */
4711#include <curses.h>
4712int
4713main ()
4714{
4715WINDOW *w; w->_maxx;
4716 ;
4717 return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext
4721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 CURSES_CPPFLAGS="-D'getmaxx(w)=w->_maxx'"
4743else
4744 echo "$as_me: failed program was:" >&5
4745sed 's/^/| /' conftest.$ac_ext >&5
4746
4747CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
4748fi
4749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750fi
4751rm -f conftest.err conftest.$ac_objext \
4752 conftest$ac_exeext conftest.$ac_ext
4753 cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759#include <curses.h>
4760int
4761main ()
4762{
4763newterm(NULL, NULL, NULL);
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext conftest$ac_exeext
4769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>conftest.er1
4771 ac_status=$?
4772 grep -v '^ *+' conftest.er1 >conftest.err
4773 rm -f conftest.er1
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 CURSES_CPPFLAGS="$CURSES_CPPFLAGS -DCURSES_HAS_NEWTERM"
4791else
4792 echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795fi
4796rm -f conftest.err conftest.$ac_objext \
4797 conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$OLDLIBS
4799 CURSES_CPPFLAGS="-DHAVE_CURSES $CURSES_CPPFLAGS"
4800 CURSES_SUBDIRS='$(CURSES_SUBDIRS)'
4801else
4802 { echo "$as_me:$LINENO: WARNING: Couldn't find -lcurses" >&5
4803echo "$as_me: WARNING: Couldn't find -lcurses" >&2;}
4804fi
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815for ac_func in getusershell strlcpy strlcat uname strvis
4816do
4817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4818echo "$as_me:$LINENO: checking for $ac_func" >&5
4819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4820if eval "test \"\${$as_ac_var+set}\" = set"; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823 cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h. */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h. */
4829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4831#define $ac_func innocuous_$ac_func
4832
4833/* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char $ac_func (); below.
4835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 <limits.h> exists even on freestanding compilers. */
4837
4838#ifdef __STDC__
4839# include <limits.h>
4840#else
4841# include <assert.h>
4842#endif
4843
4844#undef $ac_func
4845
4846/* Override any gcc2 internal prototype to avoid an error. */
4847#ifdef __cplusplus
4848extern "C"
4849{
4850#endif
4851/* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4853char $ac_func ();
4854/* The GNU C library defines this for functions which it implements
4855 to always fail with ENOSYS. Some functions are actually named
4856 something starting with __ and the normal name is an alias. */
4857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4858choke me
4859#else
4860char (*f) () = $ac_func;
4861#endif
4862#ifdef __cplusplus
4863}
4864#endif
4865
4866int
4867main ()
4868{
4869return f != $ac_func;
4870 ;
4871 return 0;
4872}
4873_ACEOF
4874rm -f conftest.$ac_objext conftest$ac_exeext
4875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4876 (eval $ac_link) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag"
4884 || test ! -s conftest.err'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; } &&
4890 { ac_try='test -s conftest$ac_exeext'
4891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 eval "$as_ac_var=yes"
4897else
4898 echo "$as_me: failed program was:" >&5
4899sed 's/^/| /' conftest.$ac_ext >&5
4900
4901eval "$as_ac_var=no"
4902fi
4903rm -f conftest.err conftest.$ac_objext \
4904 conftest$ac_exeext conftest.$ac_ext
4905fi
4906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4908if test `eval echo '${'$as_ac_var'}'` = yes; then
4909 cat >>confdefs.h <<_ACEOF
4910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4911_ACEOF
4912
4913fi
4914done
4915
4916
4917echo "$as_me:$LINENO: checking for sigaction" >&5
4918echo $ECHO_N "checking for sigaction... $ECHO_C" >&6
4919if test "${ac_cv_func_sigaction+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928/* Define sigaction to an innocuous variant, in case <limits.h> declares sigaction.
4929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4930#define sigaction innocuous_sigaction
4931
4932/* System header to define __stub macros and hopefully few prototypes,
4933 which can conflict with char sigaction (); below.
4934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4935 <limits.h> exists even on freestanding compilers. */
4936
4937#ifdef __STDC__
4938# include <limits.h>
4939#else
4940# include <assert.h>
4941#endif
4942
4943#undef sigaction
4944
4945/* Override any gcc2 internal prototype to avoid an error. */
4946#ifdef __cplusplus
4947extern "C"
4948{
4949#endif
4950/* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952char sigaction ();
4953/* The GNU C library defines this for functions which it implements
4954 to always fail with ENOSYS. Some functions are actually named
4955 something starting with __ and the normal name is an alias. */
4956#if defined (__stub_sigaction) || defined (__stub___sigaction)
4957choke me
4958#else
4959char (*f) () = sigaction;
4960#endif
4961#ifdef __cplusplus
4962}
4963#endif
4964
4965int
4966main ()
4967{
4968return f != sigaction;
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973rm -f conftest.$ac_objext conftest$ac_exeext
4974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest$ac_exeext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 ac_cv_func_sigaction=yes
4996else
4997 echo "$as_me: failed program was:" >&5
4998sed 's/^/| /' conftest.$ac_ext >&5
4999
5000ac_cv_func_sigaction=no
5001fi
5002rm -f conftest.err conftest.$ac_objext \
5003 conftest$ac_exeext conftest.$ac_ext
5004fi
5005echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5
5006echo "${ECHO_T}$ac_cv_func_sigaction" >&6
5007if test $ac_cv_func_sigaction = yes; then
5008 cat >>confdefs.h <<\_ACEOF
5009#define HAVE_POSIX_SIGNALS 1
5010_ACEOF
5011
5012fi
5013
5014
5015ac_ext=c
5016ac_cpp='$CPP $CPPFLAGS'
5017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5021echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5022# On Suns, sometimes $CPP names a directory.
5023if test -n "$CPP" && test -d "$CPP"; then
5024 CPP=
5025fi
5026if test -z "$CPP"; then
5027 if test "${ac_cv_prog_CPP+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 # Double quotes because CPP needs to be expanded
5031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5032 do
5033 ac_preproc_ok=false
5034for ac_c_preproc_warn_flag in '' yes
5035do
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h. */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h. */
5048#ifdef __STDC__
5049# include <limits.h>
5050#else
5051# include <assert.h>
5052#endif
5053 Syntax error
5054_ACEOF
5055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null; then
5063 if test -s conftest.err; then
5064 ac_cpp_err=$ac_c_preproc_warn_flag
5065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5066 else
5067 ac_cpp_err=
5068 fi
5069else
5070 ac_cpp_err=yes
5071fi
5072if test -z "$ac_cpp_err"; then
5073 :
5074else
5075 echo "$as_me: failed program was:" >&5
5076sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 # Broken: fails on valid input.
5079continue
5080fi
5081rm -f conftest.err conftest.$ac_ext
5082
5083 # OK, works on sane cases. Now check whether non-existent headers
5084 # can be detected and how.
5085 cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091#include <ac_nonexistent.h>
5092_ACEOF
5093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null; then
5101 if test -s conftest.err; then
5102 ac_cpp_err=$ac_c_preproc_warn_flag
5103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5104 else
5105 ac_cpp_err=
5106 fi
5107else
5108 ac_cpp_err=yes
5109fi
5110if test -z "$ac_cpp_err"; then
5111 # Broken: success on invalid input.
5112continue
5113else
5114 echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 # Passes both tests.
5118ac_preproc_ok=:
5119break
5120fi
5121rm -f conftest.err conftest.$ac_ext
5122
5123done
5124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125rm -f conftest.err conftest.$ac_ext
5126if $ac_preproc_ok; then
5127 break
5128fi
5129
5130 done
5131 ac_cv_prog_CPP=$CPP
5132
5133fi
5134 CPP=$ac_cv_prog_CPP
5135else
5136 ac_cv_prog_CPP=$CPP
5137fi
5138echo "$as_me:$LINENO: result: $CPP" >&5
5139echo "${ECHO_T}$CPP" >&6
5140ac_preproc_ok=false
5141for ac_c_preproc_warn_flag in '' yes
5142do
5143 # Use a header file that comes with gcc, so configuring glibc
5144 # with a fresh cross-compiler works.
5145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5146 # <limits.h> exists even on freestanding compilers.
5147 # On the NeXT, cc -E runs the code through the compiler's parser,
5148 # not just through cpp. "Syntax error" is here to catch this case.
5149 cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
5155#ifdef __STDC__
5156# include <limits.h>
5157#else
5158# include <assert.h>
5159#endif
5160 Syntax error
5161_ACEOF
5162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5164 ac_status=$?
5165 grep -v '^ *+' conftest.er1 >conftest.err
5166 rm -f conftest.er1
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } >/dev/null; then
5170 if test -s conftest.err; then
5171 ac_cpp_err=$ac_c_preproc_warn_flag
5172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5173 else
5174 ac_cpp_err=
5175 fi
5176else
5177 ac_cpp_err=yes
5178fi
5179if test -z "$ac_cpp_err"; then
5180 :
5181else
5182 echo "$as_me: failed program was:" >&5
5183sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 # Broken: fails on valid input.
5186continue
5187fi
5188rm -f conftest.err conftest.$ac_ext
5189
5190 # OK, works on sane cases. Now check whether non-existent headers
5191 # can be detected and how.
5192 cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h. */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h. */
5198#include <ac_nonexistent.h>
5199_ACEOF
5200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } >/dev/null; then
5208 if test -s conftest.err; then
5209 ac_cpp_err=$ac_c_preproc_warn_flag
5210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5211 else
5212 ac_cpp_err=
5213 fi
5214else
5215 ac_cpp_err=yes
5216fi
5217if test -z "$ac_cpp_err"; then
5218 # Broken: success on invalid input.
5219continue
5220else
5221 echo "$as_me: failed program was:" >&5
5222sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 # Passes both tests.
5225ac_preproc_ok=:
5226break
5227fi
5228rm -f conftest.err conftest.$ac_ext
5229
5230done
5231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232rm -f conftest.err conftest.$ac_ext
5233if $ac_preproc_ok; then
5234 :
5235else
5236 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5237See \`config.log' for more details." >&5
5238echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5239See \`config.log' for more details." >&2;}
5240 { (exit 1); exit 1; }; }
5241fi
5242
5243ac_ext=c
5244ac_cpp='$CPP $CPPFLAGS'
5245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
5249
5250echo "$as_me:$LINENO: checking for egrep" >&5
5251echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5252if test "${ac_cv_prog_egrep+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5256 then ac_cv_prog_egrep='grep -E'
5257 else ac_cv_prog_egrep='egrep'
5258 fi
5259fi
5260echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5261echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5262 EGREP=$ac_cv_prog_egrep
5263
5264
5265echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5266echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5267if test "${ac_cv_header_stdc+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h. */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h. */
5276#include <stdlib.h>
5277#include <stdarg.h>
5278#include <string.h>
5279#include <float.h>
5280
5281int
5282main ()
5283{
5284
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext
5290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_cv_header_stdc=yes
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316ac_cv_header_stdc=no
5317fi
5318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319
5320if test $ac_cv_header_stdc = yes; then
5321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5322 cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h. */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h. */
5328#include <string.h>
5329
5330_ACEOF
5331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "memchr" >/dev/null 2>&1; then
5333 :
5334else
5335 ac_cv_header_stdc=no
5336fi
5337rm -f conftest*
5338
5339fi
5340
5341if test $ac_cv_header_stdc = yes; then
5342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5343 cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h. */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h. */
5349#include <stdlib.h>
5350
5351_ACEOF
5352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5353 $EGREP "free" >/dev/null 2>&1; then
5354 :
5355else
5356 ac_cv_header_stdc=no
5357fi
5358rm -f conftest*
5359
5360fi
5361
5362if test $ac_cv_header_stdc = yes; then
5363 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5364 if test "$cross_compiling" = yes; then
5365 :
5366else
5367 cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373#include <ctype.h>
5374#if ((' ' & 0x0FF) == 0x020)
5375# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5376# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5377#else
5378# define ISLOWER(c) \
5379 (('a' <= (c) && (c) <= 'i') \
5380 || ('j' <= (c) && (c) <= 'r') \
5381 || ('s' <= (c) && (c) <= 'z'))
5382# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5383#endif
5384
5385#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5386int
5387main ()
5388{
5389 int i;
5390 for (i = 0; i < 256; i++)
5391 if (XOR (islower (i), ISLOWER (i))
5392 || toupper (i) != TOUPPER (i))
5393 exit(2);
5394 exit (0);
5395}
5396_ACEOF
5397rm -f conftest$ac_exeext
5398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 :
5409else
5410 echo "$as_me: program exited with status $ac_status" >&5
5411echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414( exit $ac_status )
5415ac_cv_header_stdc=no
5416fi
5417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5418fi
5419fi
5420fi
5421echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5422echo "${ECHO_T}$ac_cv_header_stdc" >&6
5423if test $ac_cv_header_stdc = yes; then
5424
5425cat >>confdefs.h <<\_ACEOF
5426#define STDC_HEADERS 1
5427_ACEOF
5428
5429fi
5430
5431# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5442 inttypes.h stdint.h unistd.h
5443do
5444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445echo "$as_me:$LINENO: checking for $ac_header" >&5
5446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5447if eval "test \"\${$as_ac_Header+set}\" = set"; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450 cat >conftest.$ac_ext <<_ACEOF
5451/* confdefs.h. */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
5455/* end confdefs.h. */
5456$ac_includes_default
5457
5458#include <$ac_header>
5459_ACEOF
5460rm -f conftest.$ac_objext
5461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -z "$ac_c_werror_flag"
5470 || test ! -s conftest.err'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 eval "$as_ac_Header=yes"
5483else
5484 echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487eval "$as_ac_Header=no"
5488fi
5489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490fi
5491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5493if test `eval echo '${'$as_ac_Header'}'` = yes; then
5494 cat >>confdefs.h <<_ACEOF
5495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5496_ACEOF
5497
5498fi
5499
5500done
5501
5502
5503
5504
5505for ac_header in unistd.h getopt.h
5506do
5507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5508if eval "test \"\${$as_ac_Header+set}\" = set"; then
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513fi
5514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5516else
5517 # Is the header compilable?
5518echo "$as_me:$LINENO: checking $ac_header usability" >&5
5519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5520cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h. */
5526$ac_includes_default
5527#include <$ac_header>
5528_ACEOF
5529rm -f conftest.$ac_objext
5530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_header_compiler=yes
5552else
5553 echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556ac_header_compiler=no
5557fi
5558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5560echo "${ECHO_T}$ac_header_compiler" >&6
5561
5562# Is the header present?
5563echo "$as_me:$LINENO: checking $ac_header presence" >&5
5564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5565cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h. */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h. */
5571#include <$ac_header>
5572_ACEOF
5573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } >/dev/null; then
5581 if test -s conftest.err; then
5582 ac_cpp_err=$ac_c_preproc_warn_flag
5583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5584 else
5585 ac_cpp_err=
5586 fi
5587else
5588 ac_cpp_err=yes
5589fi
5590if test -z "$ac_cpp_err"; then
5591 ac_header_preproc=yes
5592else
5593 echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596 ac_header_preproc=no
5597fi
5598rm -f conftest.err conftest.$ac_ext
5599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5600echo "${ECHO_T}$ac_header_preproc" >&6
5601
5602# So? What about this header?
5603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5604 yes:no: )
5605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5609 ac_header_preproc=yes
5610 ;;
5611 no:yes:* )
5612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5624 (
5625 cat <<\_ASBOX
5626## ------------------------------------------ ##
5627## Report this to the AC_PACKAGE_NAME lists. ##
5628## ------------------------------------------ ##
5629_ASBOX
5630 ) |
5631 sed "s/^/$as_me: WARNING: /" >&2
5632 ;;
5633esac
5634echo "$as_me:$LINENO: checking for $ac_header" >&5
5635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5636if eval "test \"\${$as_ac_Header+set}\" = set"; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638else
5639 eval "$as_ac_Header=\$ac_header_preproc"
5640fi
5641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5643
5644fi
5645if test `eval echo '${'$as_ac_Header'}'` = yes; then
5646 cat >>confdefs.h <<_ACEOF
5647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5648_ACEOF
5649
5650fi
5651
5652done
5653
5654
5655if test "${ac_cv_header_netinet_in_h+set}" = set; then
5656 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5657echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5658if test "${ac_cv_header_netinet_in_h+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5660fi
5661echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5662echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5663else
5664 # Is the header compilable?
5665echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5666echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5667cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h. */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h. */
5673$ac_includes_default
5674#include <netinet/in.h>
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_header_compiler=yes
5699else
5700 echo "$as_me: failed program was:" >&5
5701sed 's/^/| /' conftest.$ac_ext >&5
5702
5703ac_header_compiler=no
5704fi
5705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5707echo "${ECHO_T}$ac_header_compiler" >&6
5708
5709# Is the header present?
5710echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5711echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5712cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718#include <netinet/in.h>
5719_ACEOF
5720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } >/dev/null; then
5728 if test -s conftest.err; then
5729 ac_cpp_err=$ac_c_preproc_warn_flag
5730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5731 else
5732 ac_cpp_err=
5733 fi
5734else
5735 ac_cpp_err=yes
5736fi
5737if test -z "$ac_cpp_err"; then
5738 ac_header_preproc=yes
5739else
5740 echo "$as_me: failed program was:" >&5
5741sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 ac_header_preproc=no
5744fi
5745rm -f conftest.err conftest.$ac_ext
5746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5747echo "${ECHO_T}$ac_header_preproc" >&6
5748
5749# So? What about this header?
5750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5751 yes:no: )
5752 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
5753echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5754 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
5755echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
5756 ac_header_preproc=yes
5757 ;;
5758 no:yes:* )
5759 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
5760echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
5762echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
5764echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
5766echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
5768echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
5770echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
5771 (
5772 cat <<\_ASBOX
5773## ------------------------------------------ ##
5774## Report this to the AC_PACKAGE_NAME lists. ##
5775## ------------------------------------------ ##
5776_ASBOX
5777 ) |
5778 sed "s/^/$as_me: WARNING: /" >&2
5779 ;;
5780esac
5781echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5782echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5783if test "${ac_cv_header_netinet_in_h+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786 ac_cv_header_netinet_in_h=$ac_header_preproc
5787fi
5788echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5789echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5790
5791fi
5792if test $ac_cv_header_netinet_in_h = yes; then
5793 cat >>confdefs.h <<\_ACEOF
5794#define HAVE_NETINET_IN_H 1
5795_ACEOF
5796
5797else
5798 no_netinet_in=yes
5799fi
5800
5801
5802
5803if test "$no_netinet_in" != "yes"; then
5804 echo "$as_me:$LINENO: checking for in_addr_t defined in netinet/in.h" >&5
5805echo $ECHO_N "checking for in_addr_t defined in netinet/in.h... $ECHO_C" >&6
5806 cat >conftest.$ac_ext <<_ACEOF
5807/* confdefs.h. */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
5811/* end confdefs.h. */
5812#include <netinet/in.h>
5813
5814_ACEOF
5815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 $EGREP "in_addr_t" >/dev/null 2>&1; then
5817 ac_cv_type_in_addr_t=yes
5818else
5819 ac_cv_type_in_addr_t=no
5820fi
5821rm -f conftest*
5822
5823 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
5824echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
5825fi
5826
5827if test "$ac_cv_type_in_addr_t" != "yes"; then
5828 cat >>confdefs.h <<\_ACEOF
5829#define in_addr_t uint32_t
5830_ACEOF
5831
5832fi
5833
5834
5835 case $PRO_C_INCLUDES in
5836 *INCLUDE='$(srcdir)'*) ;;
5837 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
5838 esac
5839
5840
5841
5842 case $CPPFLAGS in
5843 *-I'$(SRCTOP)/include'*) ;;
5844 *) CPPFLAGS=-I'$(SRCTOP)/include'\ $CPPFLAGS ;;
5845 esac
5846
5847
5848 case $PRO_C_INCLUDES in
5849 *INCLUDE='$(SRCTOP)/include'*) ;;
5850 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/include'\ $PRO_C_INCLUDES ;;
5851 esac
5852
5853
5854
5855
5856 case $CPPFLAGS in
5857 *-I'$(SRCTOP)/lib'*) ;;
5858 *) CPPFLAGS=-I'$(SRCTOP)/lib'\ $CPPFLAGS ;;
5859 esac
5860
5861
5862 case $PRO_C_INCLUDES in
5863 *INCLUDE='$(SRCTOP)/lib'*) ;;
5864 *) PRO_C_INCLUDES=INCLUDE='$(SRCTOP)/lib'\ $PRO_C_INCLUDES ;;
5865 esac
5866
5867
5868
5869
5870 case $CPPFLAGS in
5871 *-I'$(BUILDTOP)/lib'*) ;;
5872 *) CPPFLAGS=-I'$(BUILDTOP)/lib'\ $CPPFLAGS ;;
5873 esac
5874
5875
5876 case $PRO_C_INCLUDES in
5877 *INCLUDE='$(BUILDTOP)/lib'*) ;;
5878 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/lib'\ $PRO_C_INCLUDES ;;
5879 esac
5880
5881
5882
5883
5884 case $CPPFLAGS in
5885 *-I'$(BUILDTOP)/db'*) ;;
5886 *) CPPFLAGS=-I'$(BUILDTOP)/db'\ $CPPFLAGS ;;
5887 esac
5888
5889
5890 case $PRO_C_INCLUDES in
5891 *INCLUDE='$(BUILDTOP)/db'*) ;;
5892 *) PRO_C_INCLUDES=INCLUDE='$(BUILDTOP)/db'\ $PRO_C_INCLUDES ;;
5893 esac
5894
5895
5896
5897
5898 case $CPPFLAGS in
5899 *-I'$(srcdir)'*) ;;
5900 *) CPPFLAGS=-I'$(srcdir)'\ $CPPFLAGS ;;
5901 esac
5902
5903
5904 case $PRO_C_INCLUDES in
5905 *INCLUDE='$(srcdir)'*) ;;
5906 *) PRO_C_INCLUDES=INCLUDE='$(srcdir)'\ $PRO_C_INCLUDES ;;
5907 esac
5908
5909
5910LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
5911KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
5912KLIBS="$LIBS"
5913if test "$hesiod" != no; then
5914 KLIBS="-lhesiod $KLIBS"
5915fi
5916KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $KLIBS"
5917if test "$zephyr" != no; then
5918 KLIBS="-lzephyr $KLIBS"
5919fi
5920LIBS="-lmoira $KLIBS"
5921
5922
5923MR_LIBDEP='$(BUILDTOP)/lib/libmoira.a'
5924
5925
5926 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"
5927cat >confcache <<\_ACEOF
5928# This file is a shell script that caches the results of configure
5929# tests run on this system so they can be shared between configure
5930# scripts and configure runs, see configure's option --config-cache.
5931# It is not useful on other systems. If it contains results you don't
5932# want to keep, you may remove or edit it.
5933#
5934# config.status only pays attention to the cache file if you give it
5935# the --recheck option to rerun configure.
5936#
5937# `ac_cv_env_foo' variables (set or unset) will be overridden when
5938# loading this file, other *unset* `ac_cv_foo' will be assigned the
5939# following values.
5940
5941_ACEOF
5942
5943# The following way of writing the cache mishandles newlines in values,
5944# but we know of no workaround that is simple, portable, and efficient.
5945# So, don't put newlines in cache variables' values.
5946# Ultrix sh set writes to stderr and can't be redirected directly,
5947# and sets the high bit in the cache file unless we assign to the vars.
5948{
5949 (set) 2>&1 |
5950 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5951 *ac_space=\ *)
5952 # `set' does not quote correctly, so add quotes (double-quote
5953 # substitution turns \\\\ into \\, and sed turns \\ into \).
5954 sed -n \
5955 "s/'/'\\\\''/g;
5956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5957 ;;
5958 *)
5959 # `set' quotes correctly as required by POSIX, so do not add quotes.
5960 sed -n \
5961 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5962 ;;
5963 esac;
5964} |
5965 sed '
5966 t clear
5967 : clear
5968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5969 t end
5970 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5971 : end' >>confcache
5972if diff $cache_file confcache >/dev/null 2>&1; then :; else
5973 if test -w $cache_file; then
5974 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5975 cat confcache >$cache_file
5976 else
5977 echo "not updating unwritable cache $cache_file"
5978 fi
5979fi
5980rm -f confcache
5981
5982test "x$prefix" = xNONE && prefix=$ac_default_prefix
5983# Let make expand exec_prefix.
5984test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5985
5986# VPATH may cause trouble with some makes, so we remove $(srcdir),
5987# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5988# trailing colons and then remove the whole line if VPATH becomes empty
5989# (actually we leave an empty line to preserve line numbers).
5990if test "x$srcdir" = x.; then
5991 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5992s/:*\$(srcdir):*/:/;
5993s/:*\${srcdir}:*/:/;
5994s/:*@srcdir@:*/:/;
5995s/^\([^=]*=[ ]*\):*/\1/;
5996s/:*$//;
5997s/^[^=]*=[ ]*$//;
5998}'
5999fi
6000
6001# Transform confdefs.h into DEFS.
6002# Protect against shell expansion while executing Makefile rules.
6003# Protect against Makefile macro expansion.
6004#
6005# If the first sed substitution is executed (which looks for macros that
6006# take arguments), then we branch to the quote section. Otherwise,
6007# look for a macro that doesn't take arguments.
6008cat >confdef2opt.sed <<\_ACEOF
6009t clear
6010: clear
6011s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6012t quote
6013s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6014t quote
6015d
6016: quote
6017s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6018s,\[,\\&,g
6019s,\],\\&,g
6020s,\$,$$,g
6021p
6022_ACEOF
6023# We use echo to avoid assuming a particular line-breaking character.
6024# The extra dot is to prevent the shell from consuming trailing
6025# line-breaks from the sub-command output. A line-break within
6026# single-quotes doesn't work because, if this script is created in a
6027# platform that uses two characters for line-breaks (e.g., DOS), tr
6028# would break.
6029ac_LF_and_DOT=`echo; echo .`
6030DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6031rm -f confdef2opt.sed
6032
6033
6034ac_libobjs=
6035ac_ltlibobjs=
6036for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6037 # 1. Remove the extension, and $U if already installed.
6038 ac_i=`echo "$ac_i" |
6039 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6040 # 2. Add them.
6041 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6042 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6043done
6044LIBOBJS=$ac_libobjs
6045
6046LTLIBOBJS=$ac_ltlibobjs
6047
6048
6049
6050: ${CONFIG_STATUS=./config.status}
6051ac_clean_files_save=$ac_clean_files
6052ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6053{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6054echo "$as_me: creating $CONFIG_STATUS" >&6;}
6055cat >$CONFIG_STATUS <<_ACEOF
6056#! $SHELL
6057# Generated by $as_me.
6058# Run this file to recreate the current configuration.
6059# Compiler output produced by configure, useful for debugging
6060# configure, is in config.log if it exists.
6061
6062debug=false
6063ac_cs_recheck=false
6064ac_cs_silent=false
6065SHELL=\${CONFIG_SHELL-$SHELL}
6066_ACEOF
6067
6068cat >>$CONFIG_STATUS <<\_ACEOF
6069## --------------------- ##
6070## M4sh Initialization. ##
6071## --------------------- ##
6072
6073# Be Bourne compatible
6074if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6075 emulate sh
6076 NULLCMD=:
6077 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6078 # is contrary to our usage. Disable this feature.
6079 alias -g '${1+"$@"}'='"$@"'
6080elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6081 set -o posix
6082fi
6083DUALCASE=1; export DUALCASE # for MKS sh
6084
6085# Support unset when possible.
6086if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6087 as_unset=unset
6088else
6089 as_unset=false
6090fi
6091
6092
6093# Work around bugs in pre-3.0 UWIN ksh.
6094$as_unset ENV MAIL MAILPATH
6095PS1='$ '
6096PS2='> '
6097PS4='+ '
6098
6099# NLS nuisances.
6100for as_var in \
6101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6103 LC_TELEPHONE LC_TIME
6104do
6105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6106 eval $as_var=C; export $as_var
6107 else
6108 $as_unset $as_var
6109 fi
6110done
6111
6112# Required to use basename.
6113if expr a : '\(a\)' >/dev/null 2>&1; then
6114 as_expr=expr
6115else
6116 as_expr=false
6117fi
6118
6119if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6120 as_basename=basename
6121else
6122 as_basename=false
6123fi
6124
6125
6126# Name of the executable.
6127as_me=`$as_basename "$0" ||
6128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6129 X"$0" : 'X\(//\)$' \| \
6130 X"$0" : 'X\(/\)$' \| \
6131 . : '\(.\)' 2>/dev/null ||
6132echo X/"$0" |
6133 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6134 /^X\/\(\/\/\)$/{ s//\1/; q; }
6135 /^X\/\(\/\).*/{ s//\1/; q; }
6136 s/.*/./; q'`
6137
6138
6139# PATH needs CR, and LINENO needs CR and PATH.
6140# Avoid depending upon Character Ranges.
6141as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6142as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6143as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6144as_cr_digits='0123456789'
6145as_cr_alnum=$as_cr_Letters$as_cr_digits
6146
6147# The user is always right.
6148if test "${PATH_SEPARATOR+set}" != set; then
6149 echo "#! /bin/sh" >conf$$.sh
6150 echo "exit 0" >>conf$$.sh
6151 chmod +x conf$$.sh
6152 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6153 PATH_SEPARATOR=';'
6154 else
6155 PATH_SEPARATOR=:
6156 fi
6157 rm -f conf$$.sh
6158fi
6159
6160
6161 as_lineno_1=$LINENO
6162 as_lineno_2=$LINENO
6163 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6164 test "x$as_lineno_1" != "x$as_lineno_2" &&
6165 test "x$as_lineno_3" = "x$as_lineno_2" || {
6166 # Find who we are. Look in the path if we contain no path at all
6167 # relative or not.
6168 case $0 in
6169 *[\\/]* ) as_myself=$0 ;;
6170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171for as_dir in $PATH
6172do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6176done
6177
6178 ;;
6179 esac
6180 # We did not find ourselves, most probably we were run as `sh COMMAND'
6181 # in which case we are not to be found in the path.
6182 if test "x$as_myself" = x; then
6183 as_myself=$0
6184 fi
6185 if test ! -f "$as_myself"; then
6186 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6187echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6188 { (exit 1); exit 1; }; }
6189 fi
6190 case $CONFIG_SHELL in
6191 '')
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for as_base in sh bash ksh sh5; do
6198 case $as_dir in
6199 /*)
6200 if ("$as_dir/$as_base" -c '
6201 as_lineno_1=$LINENO
6202 as_lineno_2=$LINENO
6203 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6204 test "x$as_lineno_1" != "x$as_lineno_2" &&
6205 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6206 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6207 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6208 CONFIG_SHELL=$as_dir/$as_base
6209 export CONFIG_SHELL
6210 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6211 fi;;
6212 esac
6213 done
6214done
6215;;
6216 esac
6217
6218 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6219 # uniformly replaced by the line number. The first 'sed' inserts a
6220 # line-number line before each line; the second 'sed' does the real
6221 # work. The second script uses 'N' to pair each line-number line
6222 # with the numbered line, and appends trailing '-' during
6223 # substitution so that $LINENO is not a special case at line end.
6224 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6225 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6226 sed '=' <$as_myself |
6227 sed '
6228 N
6229 s,$,-,
6230 : loop
6231 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6232 t loop
6233 s,-$,,
6234 s,^['$as_cr_digits']*\n,,
6235 ' >$as_me.lineno &&
6236 chmod +x $as_me.lineno ||
6237 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6238echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6239 { (exit 1); exit 1; }; }
6240
6241 # Don't try to exec as it changes $[0], causing all sort of problems
6242 # (the dirname of $[0] is not the place where we might find the
6243 # original and so on. Autoconf is especially sensible to this).
6244 . ./$as_me.lineno
6245 # Exit status is that of the last command.
6246 exit
6247}
6248
6249
6250case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6251 *c*,-n*) ECHO_N= ECHO_C='
6252' ECHO_T=' ' ;;
6253 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6254 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6255esac
6256
6257if expr a : '\(a\)' >/dev/null 2>&1; then
6258 as_expr=expr
6259else
6260 as_expr=false
6261fi
6262
6263rm -f conf$$ conf$$.exe conf$$.file
6264echo >conf$$.file
6265if ln -s conf$$.file conf$$ 2>/dev/null; then
6266 # We could just check for DJGPP; but this test a) works b) is more generic
6267 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6268 if test -f conf$$.exe; then
6269 # Don't use ln at all; we don't have any links
6270 as_ln_s='cp -p'
6271 else
6272 as_ln_s='ln -s'
6273 fi
6274elif ln conf$$.file conf$$ 2>/dev/null; then
6275 as_ln_s=ln
6276else
6277 as_ln_s='cp -p'
6278fi
6279rm -f conf$$ conf$$.exe conf$$.file
6280
6281if mkdir -p . 2>/dev/null; then
6282 as_mkdir_p=:
6283else
6284 test -d ./-p && rmdir ./-p
6285 as_mkdir_p=false
6286fi
6287
6288as_executable_p="test -f"
6289
6290# Sed expression to map a string onto a valid CPP name.
6291as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6292
6293# Sed expression to map a string onto a valid variable name.
6294as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6295
6296
6297# IFS
6298# We need space, tab and new line, in precisely that order.
6299as_nl='
6300'
6301IFS=" $as_nl"
6302
6303# CDPATH.
6304$as_unset CDPATH
6305
6306exec 6>&1
6307
6308# Open the log real soon, to keep \$[0] and so on meaningful, and to
6309# report actual input values of CONFIG_FILES etc. instead of their
6310# values after options handling. Logging --version etc. is OK.
6311exec 5>>config.log
6312{
6313 echo
6314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6315## Running $as_me. ##
6316_ASBOX
6317} >&5
6318cat >&5 <<_CSEOF
6319
6320This file was extended by $as_me, which was
6321generated by GNU Autoconf 2.59. Invocation command line was
6322
6323 CONFIG_FILES = $CONFIG_FILES
6324 CONFIG_HEADERS = $CONFIG_HEADERS
6325 CONFIG_LINKS = $CONFIG_LINKS
6326 CONFIG_COMMANDS = $CONFIG_COMMANDS
6327 $ $0 $@
6328
6329_CSEOF
6330echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6331echo >&5
6332_ACEOF
6333
6334# Files that config.status was made for.
6335if test -n "$ac_config_files"; then
6336 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6337fi
6338
6339if test -n "$ac_config_headers"; then
6340 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6341fi
6342
6343if test -n "$ac_config_links"; then
6344 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6345fi
6346
6347if test -n "$ac_config_commands"; then
6348 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6349fi
6350
6351cat >>$CONFIG_STATUS <<\_ACEOF
6352
6353ac_cs_usage="\
6354\`$as_me' instantiates files from templates according to the
6355current configuration.
6356
6357Usage: $0 [OPTIONS] [FILE]...
6358
6359 -h, --help print this help, then exit
6360 -V, --version print version number, then exit
6361 -q, --quiet do not print progress messages
6362 -d, --debug don't remove temporary files
6363 --recheck update $as_me by reconfiguring in the same conditions
6364 --file=FILE[:TEMPLATE]
6365 instantiate the configuration file FILE
6366
6367Configuration files:
6368$config_files
6369
6370Report bugs to <bug-autoconf@gnu.org>."
6371_ACEOF
6372
6373cat >>$CONFIG_STATUS <<_ACEOF
6374ac_cs_version="\\
6375config.status
6376configured by $0, generated by GNU Autoconf 2.59,
6377 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6378
6379Copyright (C) 2003 Free Software Foundation, Inc.
6380This config.status script is free software; the Free Software Foundation
6381gives unlimited permission to copy, distribute and modify it."
6382srcdir=$srcdir
6383INSTALL="$INSTALL"
6384_ACEOF
6385
6386cat >>$CONFIG_STATUS <<\_ACEOF
6387# If no file are specified by the user, then we need to provide default
6388# value. By we need to know if files were specified by the user.
6389ac_need_defaults=:
6390while test $# != 0
6391do
6392 case $1 in
6393 --*=*)
6394 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6395 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6396 ac_shift=:
6397 ;;
6398 -*)
6399 ac_option=$1
6400 ac_optarg=$2
6401 ac_shift=shift
6402 ;;
6403 *) # This is not an option, so the user has probably given explicit
6404 # arguments.
6405 ac_option=$1
6406 ac_need_defaults=false;;
6407 esac
6408
6409 case $ac_option in
6410 # Handling of the options.
6411_ACEOF
6412cat >>$CONFIG_STATUS <<\_ACEOF
6413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6414 ac_cs_recheck=: ;;
6415 --version | --vers* | -V )
6416 echo "$ac_cs_version"; exit 0 ;;
6417 --he | --h)
6418 # Conflict between --help and --header
6419 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6420Try \`$0 --help' for more information." >&5
6421echo "$as_me: error: ambiguous option: $1
6422Try \`$0 --help' for more information." >&2;}
6423 { (exit 1); exit 1; }; };;
6424 --help | --hel | -h )
6425 echo "$ac_cs_usage"; exit 0 ;;
6426 --debug | --d* | -d )
6427 debug=: ;;
6428 --file | --fil | --fi | --f )
6429 $ac_shift
6430 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6431 ac_need_defaults=false;;
6432 --header | --heade | --head | --hea )
6433 $ac_shift
6434 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6435 ac_need_defaults=false;;
6436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6438 ac_cs_silent=: ;;
6439
6440 # This is an error.
6441 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6442Try \`$0 --help' for more information." >&5
6443echo "$as_me: error: unrecognized option: $1
6444Try \`$0 --help' for more information." >&2;}
6445 { (exit 1); exit 1; }; } ;;
6446
6447 *) ac_config_targets="$ac_config_targets $1" ;;
6448
6449 esac
6450 shift
6451done
6452
6453ac_configure_extra_args=
6454
6455if $ac_cs_silent; then
6456 exec 6>/dev/null
6457 ac_configure_extra_args="$ac_configure_extra_args --silent"
6458fi
6459
6460_ACEOF
6461cat >>$CONFIG_STATUS <<_ACEOF
6462if \$ac_cs_recheck; then
6463 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6464 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6465fi
6466
6467_ACEOF
6468
6469
6470
6471
6472
6473cat >>$CONFIG_STATUS <<\_ACEOF
6474for ac_config_target in $ac_config_targets
6475do
6476 case "$ac_config_target" in
6477 # Handling of arguments.
6478 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6479 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6480 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6481 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
6482 "clients/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lib/Makefile" ;;
6483 "clients/addusr/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/addusr/Makefile" ;;
6484 "clients/blanche/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/blanche/Makefile" ;;
6485 "clients/chfn/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chfn/Makefile" ;;
6486 "clients/chpobox/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chpobox/Makefile" ;;
6487 "clients/chsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/chsh/Makefile" ;;
6488 "clients/mailmaint/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mailmaint/Makefile" ;;
6489 "clients/mitch/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mitch/Makefile" ;;
6490 "clients/moira/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/moira/Makefile" ;;
6491 "clients/mrcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrcheck/Makefile" ;;
6492 "clients/mrtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/mrtest/Makefile" ;;
6493 "clients/stanley/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stanley/Makefile" ;;
6494 "clients/stella/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/stella/Makefile" ;;
6495 "update/Makefile" ) CONFIG_FILES="$CONFIG_FILES update/Makefile" ;;
6496 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6497 "$WEBMOIRA_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WEBMOIRA_OUTPUT_FILES" ;;
6498 "$SERVER_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $SERVER_OUTPUT_FILES" ;;
6499 "$WINAD_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $WINAD_OUTPUT_FILES" ;;
6500 "$AFS_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $AFS_OUTPUT_FILES" ;;
6501 "$RSAREF_OUTPUT_FILES" ) CONFIG_FILES="$CONFIG_FILES $RSAREF_OUTPUT_FILES" ;;
6502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6503echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6504 { (exit 1); exit 1; }; };;
6505 esac
6506done
6507
6508# If the user did not use the arguments to specify the items to instantiate,
6509# then the envvar interface is used. Set only those that are not.
6510# We use the long form for the default assignment because of an extremely
6511# bizarre bug on SunOS 4.1.3.
6512if $ac_need_defaults; then
6513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6514fi
6515
6516# Have a temporary directory for convenience. Make it in the build tree
6517# simply because there is no reason to put it here, and in addition,
6518# creating and moving files from /tmp can sometimes cause problems.
6519# Create a temporary directory, and hook for its removal unless debugging.
6520$debug ||
6521{
6522 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6523 trap '{ (exit 1); exit 1; }' 1 2 13 15
6524}
6525
6526# Create a (secure) tmp directory for tmp files.
6527
6528{
6529 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6530 test -n "$tmp" && test -d "$tmp"
6531} ||
6532{
6533 tmp=./confstat$$-$RANDOM
6534 (umask 077 && mkdir $tmp)
6535} ||
6536{
6537 echo "$me: cannot create a temporary directory in ." >&2
6538 { (exit 1); exit 1; }
6539}
6540
6541_ACEOF
6542
6543cat >>$CONFIG_STATUS <<_ACEOF
6544
6545#
6546# CONFIG_FILES section.
6547#
6548
6549# No need to generate the scripts if there are no CONFIG_FILES.
6550# This happens for instance when ./config.status config.h
6551if test -n "\$CONFIG_FILES"; then
6552 # Protect against being on the right side of a sed subst in config.status.
6553 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6554 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6555s,@SHELL@,$SHELL,;t t
6556s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6557s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6558s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6559s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6560s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6561s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6562s,@exec_prefix@,$exec_prefix,;t t
6563s,@prefix@,$prefix,;t t
6564s,@program_transform_name@,$program_transform_name,;t t
6565s,@bindir@,$bindir,;t t
6566s,@sbindir@,$sbindir,;t t
6567s,@libexecdir@,$libexecdir,;t t
6568s,@datadir@,$datadir,;t t
6569s,@sysconfdir@,$sysconfdir,;t t
6570s,@sharedstatedir@,$sharedstatedir,;t t
6571s,@localstatedir@,$localstatedir,;t t
6572s,@libdir@,$libdir,;t t
6573s,@includedir@,$includedir,;t t
6574s,@oldincludedir@,$oldincludedir,;t t
6575s,@infodir@,$infodir,;t t
6576s,@mandir@,$mandir,;t t
6577s,@build_alias@,$build_alias,;t t
6578s,@host_alias@,$host_alias,;t t
6579s,@target_alias@,$target_alias,;t t
6580s,@DEFS@,$DEFS,;t t
6581s,@ECHO_C@,$ECHO_C,;t t
6582s,@ECHO_N@,$ECHO_N,;t t
6583s,@ECHO_T@,$ECHO_T,;t t
6584s,@LIBS@,$LIBS,;t t
6585s,@build@,$build,;t t
6586s,@build_cpu@,$build_cpu,;t t
6587s,@build_vendor@,$build_vendor,;t t
6588s,@build_os@,$build_os,;t t
6589s,@host@,$host,;t t
6590s,@host_cpu@,$host_cpu,;t t
6591s,@host_vendor@,$host_vendor,;t t
6592s,@host_os@,$host_os,;t t
6593s,@SO_LDFLAGS@,$SO_LDFLAGS,;t t
6594s,@CC@,$CC,;t t
6595s,@CFLAGS@,$CFLAGS,;t t
6596s,@LDFLAGS@,$LDFLAGS,;t t
6597s,@CPPFLAGS@,$CPPFLAGS,;t t
6598s,@ac_ct_CC@,$ac_ct_CC,;t t
6599s,@EXEEXT@,$EXEEXT,;t t
6600s,@OBJEXT@,$OBJEXT,;t t
6601s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6602s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6603s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6604s,@RANLIB@,$RANLIB,;t t
6605s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6606s,@SET_MAKE@,$SET_MAKE,;t t
6607s,@mrbindir@,$mrbindir,;t t
6608s,@subdirs@,$subdirs,;t t
6609s,@COM_ERR_SUBDIR@,$COM_ERR_SUBDIR,;t t
6610s,@COMPILE_ET@,$COMPILE_ET,;t t
6611s,@REG_SVR_DEFS@,$REG_SVR_DEFS,;t t
6612s,@REG_SVR_INCLUDES@,$REG_SVR_INCLUDES,;t t
6613s,@REG_SVR_LIBS@,$REG_SVR_LIBS,;t t
6614s,@RSAREF_CPPFLAGS@,$RSAREF_CPPFLAGS,;t t
6615s,@RSAREF_LIBS@,$RSAREF_LIBS,;t t
6616s,@RSAREF_SUBDIRS@,$RSAREF_SUBDIRS,;t t
6617s,@RSAREF_LIBDEP@,$RSAREF_LIBDEP,;t t
6618s,@PRO_C@,$PRO_C,;t t
6619s,@PRO_C_DEFS@,$PRO_C_DEFS,;t t
6620s,@PRO_C_INCLUDES@,$PRO_C_INCLUDES,;t t
6621s,@PRO_C_OPTS@,$PRO_C_OPTS,;t t
6622s,@SQL_LIBS@,$SQL_LIBS,;t t
6623s,@SVRSUBDIRS@,$SVRSUBDIRS,;t t
6624s,@JAVA_CPPFLAGS@,$JAVA_CPPFLAGS,;t t
6625s,@WEBMOIRA_SUBDIRS@,$WEBMOIRA_SUBDIRS,;t t
6626s,@LDAP_CPPFLAGS@,$LDAP_CPPFLAGS,;t t
6627s,@LDAP_LIBS@,$LDAP_LIBS,;t t
6628s,@WINAD_SUBDIRS@,$WINAD_SUBDIRS,;t t
6629s,@AFS_CPPFLAGS@,$AFS_CPPFLAGS,;t t
6630s,@AFS_PRO_C_INCLUDES@,$AFS_PRO_C_INCLUDES,;t t
6631s,@AFS_LIBS@,$AFS_LIBS,;t t
6632s,@AFS_DIR@,$AFS_DIR,;t t
6633s,@AFS_SUBDIRS@,$AFS_SUBDIRS,;t t
6634s,@AFS_SYNCDIR@,$AFS_SYNCDIR,;t t
6635s,@READLINE_CPPFLAGS@,$READLINE_CPPFLAGS,;t t
6636s,@READLINE_LIBS@,$READLINE_LIBS,;t t
6637s,@CURSES_CPPFLAGS@,$CURSES_CPPFLAGS,;t t
6638s,@CURSES_LIBS@,$CURSES_LIBS,;t t
6639s,@CURSES_SUBDIRS@,$CURSES_SUBDIRS,;t t
6640s,@CPP@,$CPP,;t t
6641s,@EGREP@,$EGREP,;t t
6642s,@KLIBS@,$KLIBS,;t t
6643s,@MR_LIBDEP@,$MR_LIBDEP,;t t
6644s,@LIBOBJS@,$LIBOBJS,;t t
6645s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6646CEOF
6647
6648_ACEOF
6649
6650 cat >>$CONFIG_STATUS <<\_ACEOF
6651 # Split the substitutions into bite-sized pieces for seds with
6652 # small command number limits, like on Digital OSF/1 and HP-UX.
6653 ac_max_sed_lines=48
6654 ac_sed_frag=1 # Number of current file.
6655 ac_beg=1 # First line for current file.
6656 ac_end=$ac_max_sed_lines # Line after last line for current file.
6657 ac_more_lines=:
6658 ac_sed_cmds=
6659 while $ac_more_lines; do
6660 if test $ac_beg -gt 1; then
6661 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6662 else
6663 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6664 fi
6665 if test ! -s $tmp/subs.frag; then
6666 ac_more_lines=false
6667 else
6668 # The purpose of the label and of the branching condition is to
6669 # speed up the sed processing (if there are no `@' at all, there
6670 # is no need to browse any of the substitutions).
6671 # These are the two extra sed commands mentioned above.
6672 (echo ':t
6673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6674 if test -z "$ac_sed_cmds"; then
6675 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6676 else
6677 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6678 fi
6679 ac_sed_frag=`expr $ac_sed_frag + 1`
6680 ac_beg=$ac_end
6681 ac_end=`expr $ac_end + $ac_max_sed_lines`
6682 fi
6683 done
6684 if test -z "$ac_sed_cmds"; then
6685 ac_sed_cmds=cat
6686 fi
6687fi # test -n "$CONFIG_FILES"
6688
6689_ACEOF
6690cat >>$CONFIG_STATUS <<\_ACEOF
6691for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6693 case $ac_file in
6694 - | *:- | *:-:* ) # input from stdin
6695 cat >$tmp/stdin
6696 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6698 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6700 * ) ac_file_in=$ac_file.in ;;
6701 esac
6702
6703 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6704 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6705$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6706 X"$ac_file" : 'X\(//\)[^/]' \| \
6707 X"$ac_file" : 'X\(//\)$' \| \
6708 X"$ac_file" : 'X\(/\)' \| \
6709 . : '\(.\)' 2>/dev/null ||
6710echo X"$ac_file" |
6711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6713 /^X\(\/\/\)$/{ s//\1/; q; }
6714 /^X\(\/\).*/{ s//\1/; q; }
6715 s/.*/./; q'`
6716 { if $as_mkdir_p; then
6717 mkdir -p "$ac_dir"
6718 else
6719 as_dir="$ac_dir"
6720 as_dirs=
6721 while test ! -d "$as_dir"; do
6722 as_dirs="$as_dir $as_dirs"
6723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6725 X"$as_dir" : 'X\(//\)[^/]' \| \
6726 X"$as_dir" : 'X\(//\)$' \| \
6727 X"$as_dir" : 'X\(/\)' \| \
6728 . : '\(.\)' 2>/dev/null ||
6729echo X"$as_dir" |
6730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6732 /^X\(\/\/\)$/{ s//\1/; q; }
6733 /^X\(\/\).*/{ s//\1/; q; }
6734 s/.*/./; q'`
6735 done
6736 test ! -n "$as_dirs" || mkdir $as_dirs
6737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6738echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6739 { (exit 1); exit 1; }; }; }
6740
6741 ac_builddir=.
6742
6743if test "$ac_dir" != .; then
6744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6745 # A "../" for each directory in $ac_dir_suffix.
6746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6747else
6748 ac_dir_suffix= ac_top_builddir=
6749fi
6750
6751case $srcdir in
6752 .) # No --srcdir option. We are building in place.
6753 ac_srcdir=.
6754 if test -z "$ac_top_builddir"; then
6755 ac_top_srcdir=.
6756 else
6757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6758 fi ;;
6759 [\\/]* | ?:[\\/]* ) # Absolute path.
6760 ac_srcdir=$srcdir$ac_dir_suffix;
6761 ac_top_srcdir=$srcdir ;;
6762 *) # Relative path.
6763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6765esac
6766
6767# Do not use `cd foo && pwd` to compute absolute paths, because
6768# the directories may not exist.
6769case `pwd` in
6770.) ac_abs_builddir="$ac_dir";;
6771*)
6772 case "$ac_dir" in
6773 .) ac_abs_builddir=`pwd`;;
6774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6776 esac;;
6777esac
6778case $ac_abs_builddir in
6779.) ac_abs_top_builddir=${ac_top_builddir}.;;
6780*)
6781 case ${ac_top_builddir}. in
6782 .) ac_abs_top_builddir=$ac_abs_builddir;;
6783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6785 esac;;
6786esac
6787case $ac_abs_builddir in
6788.) ac_abs_srcdir=$ac_srcdir;;
6789*)
6790 case $ac_srcdir in
6791 .) ac_abs_srcdir=$ac_abs_builddir;;
6792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6794 esac;;
6795esac
6796case $ac_abs_builddir in
6797.) ac_abs_top_srcdir=$ac_top_srcdir;;
6798*)
6799 case $ac_top_srcdir in
6800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6803 esac;;
6804esac
6805
6806
6807 case $INSTALL in
6808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6809 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6810 esac
6811
6812 if test x"$ac_file" != x-; then
6813 { echo "$as_me:$LINENO: creating $ac_file" >&5
6814echo "$as_me: creating $ac_file" >&6;}
6815 rm -f "$ac_file"
6816 fi
6817 # Let's still pretend it is `configure' which instantiates (i.e., don't
6818 # use $as_me), people would be surprised to read:
6819 # /* config.h. Generated by config.status. */
6820 if test x"$ac_file" = x-; then
6821 configure_input=
6822 else
6823 configure_input="$ac_file. "
6824 fi
6825 configure_input=$configure_input"Generated from `echo $ac_file_in |
6826 sed 's,.*/,,'` by configure."
6827
6828 # First look for the input files in the build tree, otherwise in the
6829 # src tree.
6830 ac_file_inputs=`IFS=:
6831 for f in $ac_file_in; do
6832 case $f in
6833 -) echo $tmp/stdin ;;
6834 [\\/$]*)
6835 # Absolute (can't be DOS-style, as IFS=:)
6836 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6837echo "$as_me: error: cannot find input file: $f" >&2;}
6838 { (exit 1); exit 1; }; }
6839 echo "$f";;
6840 *) # Relative
6841 if test -f "$f"; then
6842 # Build tree
6843 echo "$f"
6844 elif test -f "$srcdir/$f"; then
6845 # Source tree
6846 echo "$srcdir/$f"
6847 else
6848 # /dev/null tree
6849 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6850echo "$as_me: error: cannot find input file: $f" >&2;}
6851 { (exit 1); exit 1; }; }
6852 fi;;
6853 esac
6854 done` || { (exit 1); exit 1; }
6855_ACEOF
6856cat >>$CONFIG_STATUS <<_ACEOF
6857 sed "$ac_vpsub
6858$extrasub
6859_ACEOF
6860cat >>$CONFIG_STATUS <<\_ACEOF
6861:t
6862/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6863s,@configure_input@,$configure_input,;t t
6864s,@srcdir@,$ac_srcdir,;t t
6865s,@abs_srcdir@,$ac_abs_srcdir,;t t
6866s,@top_srcdir@,$ac_top_srcdir,;t t
6867s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6868s,@builddir@,$ac_builddir,;t t
6869s,@abs_builddir@,$ac_abs_builddir,;t t
6870s,@top_builddir@,$ac_top_builddir,;t t
6871s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6872s,@INSTALL@,$ac_INSTALL,;t t
6873" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6874 rm -f $tmp/stdin
6875 if test x"$ac_file" != x-; then
6876 mv $tmp/out $ac_file
6877 else
6878 cat $tmp/out
6879 rm -f $tmp/out
6880 fi
6881
6882done
6883_ACEOF
6884
6885cat >>$CONFIG_STATUS <<\_ACEOF
6886
6887{ (exit 0); exit 0; }
6888_ACEOF
6889chmod +x $CONFIG_STATUS
6890ac_clean_files=$ac_clean_files_save
6891
6892
6893# configure is writing to config.log, and then calls config.status.
6894# config.status does its own redirection, appending to config.log.
6895# Unfortunately, on DOS this fails, as config.log is still kept open
6896# by configure, so config.status won't be able to write to it; its
6897# output is simply discarded. So we exec the FD to /dev/null,
6898# effectively closing config.log, so it can be properly (re)opened and
6899# appended to by config.status. When coming back to configure, we
6900# need to make the FD available again.
6901if test "$no_create" != yes; then
6902 ac_cs_success=:
6903 ac_config_status_args=
6904 test "$silent" = yes &&
6905 ac_config_status_args="$ac_config_status_args --quiet"
6906 exec 5>/dev/null
6907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6908 exec 5>>config.log
6909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6910 # would make configure fail if this is the last instruction.
6911 $ac_cs_success || { (exit 1); exit 1; }
6912fi
6913
6914#
6915# CONFIG_SUBDIRS section.
6916#
6917if test "$no_recursion" != yes; then
6918
6919 # Remove --cache-file and --srcdir arguments so they do not pile up.
6920 ac_sub_configure_args=
6921 ac_prev=
6922 for ac_arg in $ac_configure_args; do
6923 if test -n "$ac_prev"; then
6924 ac_prev=
6925 continue
6926 fi
6927 case $ac_arg in
6928 -cache-file | --cache-file | --cache-fil | --cache-fi \
6929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6930 ac_prev=cache_file ;;
6931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6933 | --c=*)
6934 ;;
6935 --config-cache | -C)
6936 ;;
6937 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6938 ac_prev=srcdir ;;
6939 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6940 ;;
6941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6942 ac_prev=prefix ;;
6943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6944 ;;
6945 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6946 esac
6947 done
6948
6949 # Always prepend --prefix to ensure using the same prefix
6950 # in subdir configurations.
6951 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6952
6953 ac_popdir=`pwd`
6954 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6955
6956 # Do not complain, so a configure script can configure whichever
6957 # parts of a large source tree are present.
6958 test -d $srcdir/$ac_dir || continue
6959
6960 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6961echo "$as_me: configuring in $ac_dir" >&6;}
6962 { if $as_mkdir_p; then
6963 mkdir -p "$ac_dir"
6964 else
6965 as_dir="$ac_dir"
6966 as_dirs=
6967 while test ! -d "$as_dir"; do
6968 as_dirs="$as_dir $as_dirs"
6969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6971 X"$as_dir" : 'X\(//\)[^/]' \| \
6972 X"$as_dir" : 'X\(//\)$' \| \
6973 X"$as_dir" : 'X\(/\)' \| \
6974 . : '\(.\)' 2>/dev/null ||
6975echo X"$as_dir" |
6976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6978 /^X\(\/\/\)$/{ s//\1/; q; }
6979 /^X\(\/\).*/{ s//\1/; q; }
6980 s/.*/./; q'`
6981 done
6982 test ! -n "$as_dirs" || mkdir $as_dirs
6983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6984echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6985 { (exit 1); exit 1; }; }; }
6986
6987 ac_builddir=.
6988
6989if test "$ac_dir" != .; then
6990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6991 # A "../" for each directory in $ac_dir_suffix.
6992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6993else
6994 ac_dir_suffix= ac_top_builddir=
6995fi
6996
6997case $srcdir in
6998 .) # No --srcdir option. We are building in place.
6999 ac_srcdir=.
7000 if test -z "$ac_top_builddir"; then
7001 ac_top_srcdir=.
7002 else
7003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7004 fi ;;
7005 [\\/]* | ?:[\\/]* ) # Absolute path.
7006 ac_srcdir=$srcdir$ac_dir_suffix;
7007 ac_top_srcdir=$srcdir ;;
7008 *) # Relative path.
7009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7011esac
7012
7013# Do not use `cd foo && pwd` to compute absolute paths, because
7014# the directories may not exist.
7015case `pwd` in
7016.) ac_abs_builddir="$ac_dir";;
7017*)
7018 case "$ac_dir" in
7019 .) ac_abs_builddir=`pwd`;;
7020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7022 esac;;
7023esac
7024case $ac_abs_builddir in
7025.) ac_abs_top_builddir=${ac_top_builddir}.;;
7026*)
7027 case ${ac_top_builddir}. in
7028 .) ac_abs_top_builddir=$ac_abs_builddir;;
7029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7031 esac;;
7032esac
7033case $ac_abs_builddir in
7034.) ac_abs_srcdir=$ac_srcdir;;
7035*)
7036 case $ac_srcdir in
7037 .) ac_abs_srcdir=$ac_abs_builddir;;
7038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7040 esac;;
7041esac
7042case $ac_abs_builddir in
7043.) ac_abs_top_srcdir=$ac_top_srcdir;;
7044*)
7045 case $ac_top_srcdir in
7046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7049 esac;;
7050esac
7051
7052
7053 cd $ac_dir
7054
7055 # Check for guested configure; otherwise get Cygnus style configure.
7056 if test -f $ac_srcdir/configure.gnu; then
7057 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
7058 elif test -f $ac_srcdir/configure; then
7059 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
7060 elif test -f $ac_srcdir/configure.in; then
7061 ac_sub_configure=$ac_configure
7062 else
7063 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
7064echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7065 ac_sub_configure=
7066 fi
7067
7068 # The recursion is here.
7069 if test -n "$ac_sub_configure"; then
7070 # Make the cache file name correct relative to the subdirectory.
7071 case $cache_file in
7072 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
7073 *) # Relative path.
7074 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7075 esac
7076
7077 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
7078echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7079 # The eval makes quoting arguments work.
7080 eval $ac_sub_configure $ac_sub_configure_args \
7081 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
7082 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
7083echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
7084 { (exit 1); exit 1; }; }
7085 fi
7086
7087 cd $ac_popdir
7088 done
7089fi
7090
This page took 1.232604 seconds and 5 git commands to generate.