]> andersk Git - moira.git/blob - configure
Add to list of things we skip.
[moira.git] / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS="   $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="patchlevel.h"
275 ac_subdirs_all="$ac_subdirs_all util/et"
276 # Factoring default headers for most tests.
277 ac_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
313 ac_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'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_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.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
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
628 Try \`$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
651 done
652
653 if 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; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
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
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
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
680 done
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.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if 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
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if 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 ||
716 echo 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
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if 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
737 fi
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; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if 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
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
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
805 Installation 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
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine 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
835 System 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
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional 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
850 Optional 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
865 Some 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
874 Use these variables to override the choices made by `configure' or to help
875 it to find libraries and programs with nonstandard names/locations.
876
877 _ACEOF
878 fi
879
880 if 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
887 if 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'`
891 else
892   ac_dir_suffix= ac_top_builddir=
893 fi
894
895 case $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 ;;
909 esac
910
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
913 case `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;;
921 esac
922 case $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;;
930 esac
931 case $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;;
939 esac
940 case $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;;
948 esac
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
967 fi
968
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
971   cat <<\_ACEOF
972
973 Copyright (C) 2003 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
976 _ACEOF
977   exit 0
978 fi
979 exec 5>config.log
980 cat >&5 <<_ACEOF
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
983
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.59.  Invocation command line was
986
987   $ $0 $@
988
989 _ACEOF
990 {
991 cat <<_ASUNAME
992 ## --------- ##
993 ## Platform. ##
994 ## --------- ##
995
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -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`
1008 hostinfo               = `(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
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 for as_dir in $PATH
1017 do
1018   IFS=$as_save_IFS
1019   test -z "$as_dir" && as_dir=.
1020   echo "PATH: $as_dir"
1021 done
1022
1023 } >&5
1024
1025 cat >&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.
1040 ac_configure_args=
1041 ac_configure_args0=
1042 ac_configure_args1=
1043 ac_sep=
1044 ac_must_keep_next=false
1045 for ac_pass in 1 2
1046 do
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
1082 done
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.
1091 trap '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
1165 for ac_signal in 1 2 13 15; do
1166   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 done
1168 ac_signal=0
1169
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 echo >confdefs.h
1174
1175 # Predefined preprocessor variables.
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 _ACEOF
1195
1196
1197 cat >>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.
1204 if 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
1210 fi
1211 for 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
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215     sed 's/^/| /' "$ac_site_file" >&5
1216     . "$ac_site_file"
1217   fi
1218 done
1219
1220 if 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
1225 echo "$as_me: loading cache $cache_file" >&6;}
1226     case $cache_file in
1227       [\\/]* | ?:[\\/]* ) . $cache_file;;
1228       *)                      . ./$cache_file;;
1229     esac
1230   fi
1231 else
1232   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1234   >$cache_file
1235 fi
1236
1237 # Check that the precious variables saved in the cache have kept the same
1238 # value.
1239 ac_cache_corrupted=false
1240 for 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
1249 echo "$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
1253 echo "$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
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1261 echo "$as_me:   former value:  $ac_old_val" >&2;}
1262         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1263 echo "$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
1279 done
1280 if $ac_cache_corrupted; then
1281   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$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
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285    { (exit 1); exit 1; }; }
1286 fi
1287
1288 ac_ext=c
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_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
1315 ac_aux_dir=
1316 for 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
1330 done
1331 if test -z "$ac_aux_dir"; then
1332   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1333 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1334    { (exit 1); exit 1; }; }
1335 fi
1336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338 ac_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
1343 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1344    { (exit 1); exit 1; }; }
1345
1346 echo "$as_me:$LINENO: checking build system type" >&5
1347 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1348 if test "${ac_cv_build+set}" = set; then
1349   echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351   ac_cv_build_alias=$build_alias
1352 test -z "$ac_cv_build_alias" &&
1353   ac_cv_build_alias=`$ac_config_guess`
1354 test -z "$ac_cv_build_alias" &&
1355   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1356 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1357    { (exit 1); exit 1; }; }
1358 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1359   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1360 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1361    { (exit 1); exit 1; }; }
1362
1363 fi
1364 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1365 echo "${ECHO_T}$ac_cv_build" >&6
1366 build=$ac_cv_build
1367 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1368 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1369 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370
1371
1372 echo "$as_me:$LINENO: checking host system type" >&5
1373 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1374 if test "${ac_cv_host+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   ac_cv_host_alias=$host_alias
1378 test -z "$ac_cv_host_alias" &&
1379   ac_cv_host_alias=$ac_cv_build_alias
1380 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1381   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1383    { (exit 1); exit 1; }; }
1384
1385 fi
1386 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1387 echo "${ECHO_T}$ac_cv_host" >&6
1388 host=$ac_cv_host
1389 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 host_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.
1396 case $host_os in
1397 solaris*)
1398         short_os=solaris
1399         SO_LDFLAGS="-G"
1400         ;;
1401 irix*)
1402         short_os=irix
1403         SO_LDFLAGS="-shared"
1404         ;;
1405 linux*)
1406         short_os=linux
1407         SO_LDFLAGS="-shared"
1408         ;;
1409 esac
1410
1411
1412
1413
1414
1415
1416
1417
1418 ac_ext=c
1419 ac_cpp='$CPP $CPPFLAGS'
1420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1423 if 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.
1425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_CC+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   if test -n "$CC"; then
1432   ac_cv_prog_CC="$CC" # Let the user override the test.
1433 else
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1436 do
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
1445 done
1446 done
1447
1448 fi
1449 fi
1450 CC=$ac_cv_prog_CC
1451 if test -n "$CC"; then
1452   echo "$as_me:$LINENO: result: $CC" >&5
1453 echo "${ECHO_T}$CC" >&6
1454 else
1455   echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1457 fi
1458
1459 fi
1460 if 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.
1463 set dummy gcc; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   if test -n "$ac_ct_CC"; then
1470   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1471 else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 for as_dir in $PATH
1474 do
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
1483 done
1484 done
1485
1486 fi
1487 fi
1488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1489 if test -n "$ac_ct_CC"; then
1490   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1491 echo "${ECHO_T}$ac_ct_CC" >&6
1492 else
1493   echo "$as_me:$LINENO: result: no" >&5
1494 echo "${ECHO_T}no" >&6
1495 fi
1496
1497   CC=$ac_ct_CC
1498 else
1499   CC="$ac_cv_prog_CC"
1500 fi
1501
1502 if 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.
1505 set dummy ${ac_tool_prefix}cc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_CC+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   if test -n "$CC"; then
1512   ac_cv_prog_CC="$CC" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
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
1525 done
1526 done
1527
1528 fi
1529 fi
1530 CC=$ac_cv_prog_CC
1531 if test -n "$CC"; then
1532   echo "$as_me:$LINENO: result: $CC" >&5
1533 echo "${ECHO_T}$CC" >&6
1534 else
1535   echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539 fi
1540 if 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.
1543 set dummy cc; ac_word=$2
1544 echo "$as_me:$LINENO: checking for $ac_word" >&5
1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   if test -n "$ac_ct_CC"; then
1550   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551 else
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
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
1563 done
1564 done
1565
1566 fi
1567 fi
1568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569 if test -n "$ac_ct_CC"; then
1570   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571 echo "${ECHO_T}$ac_ct_CC" >&6
1572 else
1573   echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577   CC=$ac_ct_CC
1578 else
1579   CC="$ac_cv_prog_CC"
1580 fi
1581
1582 fi
1583 if test -z "$CC"; then
1584   # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_CC+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   if test -n "$CC"; then
1592   ac_cv_prog_CC="$CC" # Let the user override the test.
1593 else
1594   ac_prog_rejected=no
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
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
1610 done
1611 done
1612
1613 if 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
1624 fi
1625 fi
1626 fi
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629   echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632   echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636 fi
1637 if 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.
1642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1643 echo "$as_me:$LINENO: checking for $ac_word" >&5
1644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645 if test "${ac_cv_prog_CC+set}" = set; then
1646   echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648   if test -n "$CC"; then
1649   ac_cv_prog_CC="$CC" # Let the user override the test.
1650 else
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 for as_dir in $PATH
1653 do
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
1662 done
1663 done
1664
1665 fi
1666 fi
1667 CC=$ac_cv_prog_CC
1668 if test -n "$CC"; then
1669   echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1671 else
1672   echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676     test -n "$CC" && break
1677   done
1678 fi
1679 if test -z "$CC"; then
1680   ac_ct_CC=$CC
1681   for ac_prog in cl
1682 do
1683   # Extract the first word of "$ac_prog", so it can be a program name with args.
1684 set dummy $ac_prog; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688   echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690   if test -n "$ac_ct_CC"; then
1691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
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
1704 done
1705 done
1706
1707 fi
1708 fi
1709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710 if test -n "$ac_ct_CC"; then
1711   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1712 echo "${ECHO_T}$ac_ct_CC" >&6
1713 else
1714   echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718   test -n "$ac_ct_CC" && break
1719 done
1720
1721   CC=$ac_ct_CC
1722 fi
1723
1724 fi
1725
1726
1727 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1728 See \`config.log' for more details." >&5
1729 echo "$as_me: error: no acceptable C compiler found in \$PATH
1730 See \`config.log' for more details." >&2;}
1731    { (exit 1); exit 1; }; }
1732
1733 # Provide some information about the compiler.
1734 echo "$as_me:$LINENO:" \
1735      "checking for C compiler version" >&5
1736 ac_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
1753 cat >conftest.$ac_ext <<_ACEOF
1754 /* confdefs.h.  */
1755 _ACEOF
1756 cat confdefs.h >>conftest.$ac_ext
1757 cat >>conftest.$ac_ext <<_ACEOF
1758 /* end confdefs.h.  */
1759
1760 int
1761 main ()
1762 {
1763
1764   ;
1765   return 0;
1766 }
1767 _ACEOF
1768 ac_clean_files_save=$ac_clean_files
1769 ac_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.
1773 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1774 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1775 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1776 if { (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.
1787 ac_cv_exeext=
1788 # b.out is created by i960 compilers.
1789 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1790 do
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
1812 done
1813 else
1814   echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818 See \`config.log' for more details." >&5
1819 echo "$as_me: error: C compiler cannot create executables
1820 See \`config.log' for more details." >&2;}
1821    { (exit 77); exit 77; }; }
1822 fi
1823
1824 ac_exeext=$ac_cv_exeext
1825 echo "$as_me:$LINENO: result: $ac_file" >&5
1826 echo "${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.
1830 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831 echo $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.
1834 if 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.
1847 If you meant to cross compile, use \`--host'.
1848 See \`config.log' for more details." >&5
1849 echo "$as_me: error: cannot run C compiled programs.
1850 If you meant to cross compile, use \`--host'.
1851 See \`config.log' for more details." >&2;}
1852    { (exit 1); exit 1; }; }
1853     fi
1854   fi
1855 fi
1856 echo "$as_me:$LINENO: result: yes" >&5
1857 echo "${ECHO_T}yes" >&6
1858
1859 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1860 ac_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.
1863 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866 echo "${ECHO_T}$cross_compiling" >&6
1867
1868 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870 if { (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'.
1879 for 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
1888 done
1889 else
1890   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1891 See \`config.log' for more details." >&5
1892 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1893 See \`config.log' for more details." >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896
1897 rm -f conftest$ac_cv_exeext
1898 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1899 echo "${ECHO_T}$ac_cv_exeext" >&6
1900
1901 rm -f conftest.$ac_ext
1902 EXEEXT=$ac_cv_exeext
1903 ac_exeext=$EXEEXT
1904 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1905 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1906 if test "${ac_cv_objext+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   cat >conftest.$ac_ext <<_ACEOF
1910 /* confdefs.h.  */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h.  */
1915
1916 int
1917 main ()
1918 {
1919
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 rm -f conftest.o conftest.obj
1925 if { (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
1936 done
1937 else
1938   echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949 fi
1950 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1951 echo "${ECHO_T}$ac_cv_objext" >&6
1952 OBJEXT=$ac_cv_objext
1953 ac_objext=$OBJEXT
1954 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1955 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1956 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   cat >conftest.$ac_ext <<_ACEOF
1960 /* confdefs.h.  */
1961 _ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h.  */
1965
1966 int
1967 main ()
1968 {
1969 #ifndef __GNUC__
1970        choke me
1971 #endif
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 rm -f conftest.$ac_objext
1978 if { (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
2000 else
2001   echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_compiler_gnu=no
2005 fi
2006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 /* confdefs.h.  */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h.  */
2027
2028 int
2029 main ()
2030 {
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.$ac_objext
2037 if { (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
2059 else
2060   echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 ac_cv_prog_cc_g=no
2064 fi
2065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2068 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2069 if test "$ac_test_CFLAGS" = set; then
2070   CFLAGS=$ac_save_CFLAGS
2071 elif 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
2077 else
2078   if test "$GCC" = yes; then
2079     CFLAGS="-O2"
2080   else
2081     CFLAGS=
2082   fi
2083 fi
2084 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2085 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2086 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   ac_cv_prog_cc_stdc=no
2090 ac_save_CC=$CC
2091 cat >conftest.$ac_ext <<_ACEOF
2092 /* confdefs.h.  */
2093 _ACEOF
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>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.  */
2102 struct buf { int x; };
2103 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2104 static char *e (p, i)
2105      char **p;
2106      int i;
2107 {
2108   return p[i];
2109 }
2110 static 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.  */
2127 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2128
2129 int test (int i, double x);
2130 struct s1 {int (*f) (int a);};
2131 struct s2 {int (*f) (double a);};
2132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2133 int argc;
2134 char **argv;
2135 int
2136 main ()
2137 {
2138 return 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__
2150 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151 do
2152   CC="$ac_save_CC $ac_arg"
2153   rm -f conftest.$ac_objext
2154 if { (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
2176 break
2177 else
2178   echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 fi
2182 rm -f conftest.err conftest.$ac_objext
2183 done
2184 rm -f conftest.$ac_ext conftest.$ac_objext
2185 CC=$ac_save_CC
2186
2187 fi
2188
2189 case "x$ac_cv_prog_cc_stdc" in
2190   x|xno)
2191     echo "$as_me:$LINENO: result: none needed" >&5
2192 echo "${ECHO_T}none needed" >&6 ;;
2193   *)
2194     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2195 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2196     CC="$CC $ac_cv_prog_cc_stdc" ;;
2197 esac
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.
2203 cat >conftest.$ac_ext <<_ACEOF
2204 #ifndef __cplusplus
2205   choke me
2206 #endif
2207 _ACEOF
2208 rm -f conftest.$ac_objext
2209 if { (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);'
2237 do
2238   cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h.  */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h.  */
2244 $ac_declaration
2245 #include <stdlib.h>
2246 int
2247 main ()
2248 {
2249 exit (42);
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (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   :
2277 else
2278   echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 continue
2282 fi
2283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284   cat >conftest.$ac_ext <<_ACEOF
2285 /* confdefs.h.  */
2286 _ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h.  */
2290 $ac_declaration
2291 int
2292 main ()
2293 {
2294 exit (42);
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 rm -f conftest.$ac_objext
2300 if { (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
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 done
2329 rm -f conftest*
2330 if test -n "$ac_declaration"; then
2331   echo '#ifdef __cplusplus' >>confdefs.h
2332   echo $ac_declaration      >>confdefs.h
2333   echo '#endif'             >>confdefs.h
2334 fi
2335
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 fi
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_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.
2361 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2362 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2363 if test -z "$INSTALL"; then
2364 if test "${ac_cv_path_install+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   # Account for people who put trailing slashes in PATH elements.
2373 case $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     ;;
2401 esac
2402 done
2403
2404
2405 fi
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
2415 fi
2416 echo "$as_me:$LINENO: result: $INSTALL" >&5
2417 echo "${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.
2421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2422
2423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2424
2425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2426
2427 if 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.
2429 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2430 echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432 if test "${ac_cv_prog_RANLIB+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   if test -n "$RANLIB"; then
2436   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
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
2449 done
2450 done
2451
2452 fi
2453 fi
2454 RANLIB=$ac_cv_prog_RANLIB
2455 if test -n "$RANLIB"; then
2456   echo "$as_me:$LINENO: result: $RANLIB" >&5
2457 echo "${ECHO_T}$RANLIB" >&6
2458 else
2459   echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6
2461 fi
2462
2463 fi
2464 if 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.
2467 set dummy ranlib; ac_word=$2
2468 echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$ac_ct_RANLIB"; then
2474   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
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
2487 done
2488 done
2489
2490   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2491 fi
2492 fi
2493 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2494 if test -n "$ac_ct_RANLIB"; then
2495   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2496 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2497 else
2498   echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6
2500 fi
2501
2502   RANLIB=$ac_ct_RANLIB
2503 else
2504   RANLIB="$ac_cv_prog_RANLIB"
2505 fi
2506
2507 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2508 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2509 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2510 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   cat >conftest.make <<\_ACEOF
2514 all:
2515         @echo 'ac_maketemp="$(MAKE)"'
2516 _ACEOF
2517 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2518 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2519 if test -n "$ac_maketemp"; then
2520   eval ac_cv_prog_make_${ac_make}_set=yes
2521 else
2522   eval ac_cv_prog_make_${ac_make}_set=no
2523 fi
2524 rm -f conftest.make
2525 fi
2526 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2527   echo "$as_me:$LINENO: result: yes" >&5
2528 echo "${ECHO_T}yes" >&6
2529   SET_MAKE=
2530 else
2531   echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533   SET_MAKE="MAKE=${MAKE-make}"
2534 fi
2535
2536
2537 if 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
2562 fi
2563
2564 # We currently just don't support changing this
2565 mrbindir=/moira/bin
2566
2567
2568 # Athena-local policy decisions
2569 echo "$as_me:$LINENO: checking for Athena" >&5
2570 echo $ECHO_N "checking for Athena... $ECHO_C" >&6
2571 # Check whether --enable-athena or --disable-athena was given.
2572 if test "${enable_athena+set}" = set; then
2573   enableval="$enable_athena"
2574
2575 else
2576   if test "$athena" = true; then
2577            enableval=yes
2578        else
2579            enableval=no
2580        fi
2581 fi;
2582 echo "$as_me:$LINENO: result: $enableval" >&5
2583 echo "${ECHO_T}$enableval" >&6
2584 if 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
2597 fi
2598
2599 # Networking libraries
2600 { echo "$as_me:$LINENO: checking network libraries......" >&5
2601 echo "$as_me: checking network libraries......" >&6;}
2602 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2603 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2604 if test "${ac_cv_func_gethostbyname+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>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
2632 extern "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.  */
2637 char 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)
2642 choke me
2643 #else
2644 char (*f) () = gethostbyname;
2645 #endif
2646 #ifdef __cplusplus
2647 }
2648 #endif
2649
2650 int
2651 main ()
2652 {
2653 return f != gethostbyname;
2654   ;
2655   return 0;
2656 }
2657 _ACEOF
2658 rm -f conftest.$ac_objext conftest$ac_exeext
2659 if { (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
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 ac_cv_func_gethostbyname=no
2686 fi
2687 rm -f conftest.err conftest.$ac_objext \
2688       conftest$ac_exeext conftest.$ac_ext
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2691 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2692 if test $ac_cv_func_gethostbyname = yes; then
2693   :
2694 else
2695
2696 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2697 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2698 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   ac_check_lib_save_LIBS=$LIBS
2702 LIBS="-lnsl  $LIBS"
2703 cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h.  */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h.  */
2709
2710 /* Override any gcc2 internal prototype to avoid an error.  */
2711 #ifdef __cplusplus
2712 extern "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.  */
2716 char gethostbyname ();
2717 int
2718 main ()
2719 {
2720 gethostbyname ();
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext conftest$ac_exeext
2726 if { (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
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_cv_lib_nsl_gethostbyname=no
2753 fi
2754 rm -f conftest.err conftest.$ac_objext \
2755       conftest$ac_exeext conftest.$ac_ext
2756 LIBS=$ac_check_lib_save_LIBS
2757 fi
2758 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2759 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2760 if 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
2767 else
2768
2769 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
2770 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
2771 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   ac_check_lib_save_LIBS=$LIBS
2775 LIBS="-lresolv  $LIBS"
2776
2777 cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783
2784 /* Override any gcc2 internal prototype to avoid an error.  */
2785 #ifdef __cplusplus
2786 extern "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.  */
2790 char gethostbyname ();
2791 int
2792 main ()
2793 {
2794 gethostbyname ();
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext conftest$ac_exeext
2800 if { (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
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 ac_cv_lib_resolv_gethostbyname=no
2827 fi
2828 rm -f conftest.err conftest.$ac_objext \
2829       conftest$ac_exeext conftest.$ac_ext
2830 LIBS=$ac_check_lib_save_LIBS
2831 fi
2832 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
2833 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
2834 if 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
2841 fi
2842
2843 fi
2844
2845 fi
2846
2847 echo "$as_me:$LINENO: checking for socket" >&5
2848 echo $ECHO_N "checking for socket... $ECHO_C" >&6
2849 if test "${ac_cv_func_socket+set}" = set; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>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
2877 extern "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.  */
2882 char 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)
2887 choke me
2888 #else
2889 char (*f) () = socket;
2890 #endif
2891 #ifdef __cplusplus
2892 }
2893 #endif
2894
2895 int
2896 main ()
2897 {
2898 return f != socket;
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.$ac_objext conftest$ac_exeext
2904 if { (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
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930 ac_cv_func_socket=no
2931 fi
2932 rm -f conftest.err conftest.$ac_objext \
2933       conftest$ac_exeext conftest.$ac_ext
2934 fi
2935 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
2936 echo "${ECHO_T}$ac_cv_func_socket" >&6
2937 if test $ac_cv_func_socket = yes; then
2938   :
2939 else
2940
2941 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
2942 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2943 if test "${ac_cv_lib_socket_socket+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   ac_check_lib_save_LIBS=$LIBS
2947 LIBS="-lsocket  $LIBS"
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954
2955 /* Override any gcc2 internal prototype to avoid an error.  */
2956 #ifdef __cplusplus
2957 extern "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.  */
2961 char socket ();
2962 int
2963 main ()
2964 {
2965 socket ();
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext conftest$ac_exeext
2971 if { (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
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ac_cv_lib_socket_socket=no
2998 fi
2999 rm -f conftest.err conftest.$ac_objext \
3000       conftest$ac_exeext conftest.$ac_ext
3001 LIBS=$ac_check_lib_save_LIBS
3002 fi
3003 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3004 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3005 if 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
3012 else
3013   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3014 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3015 if test "${ac_cv_lib_socket_socket+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_check_lib_save_LIBS=$LIBS
3019 LIBS="-lsocket -lnsl $LIBS"
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 /* Override any gcc2 internal prototype to avoid an error.  */
3028 #ifdef __cplusplus
3029 extern "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.  */
3033 char socket ();
3034 int
3035 main ()
3036 {
3037 socket ();
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext conftest$ac_exeext
3043 if { (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
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 ac_cv_lib_socket_socket=no
3070 fi
3071 rm -f conftest.err conftest.$ac_objext \
3072       conftest$ac_exeext conftest.$ac_ext
3073 LIBS=$ac_check_lib_save_LIBS
3074 fi
3075 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3076 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3077 if test $ac_cv_lib_socket_socket = yes; then
3078   LIBS="-lsocket -lnsl $LIBS"
3079 else
3080   :
3081 fi
3082
3083 fi
3084
3085 fi
3086
3087
3088 # com_err (required, but can be built)
3089 echo "$as_me:$LINENO: checking for com_err" >&5
3090 echo $ECHO_N "checking for com_err... $ECHO_C" >&6
3091
3092 # Check whether --with-com_err or --without-com_err was given.
3093 if test "${with_com_err+set}" = set; then
3094   withval="$with_com_err"
3095   echo "$as_me:$LINENO: result: $withval" >&5
3096 echo "${ECHO_T}$withval" >&6
3097      if test $withval = "no"; then
3098          { { echo "$as_me:$LINENO: error: com_err is required for Moira" >&5
3099 echo "$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
3125 else
3126   echo "$as_me:$LINENO: result: util/et" >&5
3127 echo "${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
3151 subdirs="$subdirs util/et"
3152
3153 fi;
3154
3155
3156
3157 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
3158 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
3159 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   ac_check_lib_save_LIBS=$LIBS
3163 LIBS="-lk5crypto  $LIBS"
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170
3171
3172 int
3173 main ()
3174 {
3175 main ();
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext conftest$ac_exeext
3181 if { (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
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 ac_cv_lib_k5crypto_main=no
3208 fi
3209 rm -f conftest.err conftest.$ac_objext \
3210       conftest$ac_exeext conftest.$ac_ext
3211 LIBS=$ac_check_lib_save_LIBS
3212 fi
3213 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
3214 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
3215 if test $ac_cv_lib_k5crypto_main = yes; then
3216   crypto="k5crypto"
3217 else
3218   echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
3219 echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
3220 if test "${ac_cv_lib_crypto_main+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   ac_check_lib_save_LIBS=$LIBS
3224 LIBS="-lcrypto  $LIBS"
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231
3232
3233 int
3234 main ()
3235 {
3236 main ();
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext conftest$ac_exeext
3242 if { (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
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 ac_cv_lib_crypto_main=no
3269 fi
3270 rm -f conftest.err conftest.$ac_objext \
3271       conftest$ac_exeext conftest.$ac_ext
3272 LIBS=$ac_check_lib_save_LIBS
3273 fi
3274 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
3275 echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
3276 if test $ac_cv_lib_crypto_main = yes; then
3277   crypto="crypto"
3278 fi
3279
3280 fi
3281
3282
3283 # Kerberos (Kerberos 4 optional, Kerberos 5 required)
3284 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
3285 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
3286
3287 # Check whether --with-krb4 or --without-krb4 was given.
3288 if test "${with_krb4+set}" = set; then
3289   withval="$with_krb4"
3290   krb4="$withval"
3291 else
3292   krb4=no
3293 fi;
3294 echo "$as_me:$LINENO: result: $krb4" >&5
3295 echo "${ECHO_T}$krb4" >&6
3296 if 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
3363 echo $ECHO_N "checking for krb_rd_req in -lkrb4... $ECHO_C" >&6
3364 if test "${ac_cv_lib_krb4_krb_rd_req+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   ac_check_lib_save_LIBS=$LIBS
3368 LIBS="-lkrb4 $LIBPATH -ldes425 -lkrb5 -l${crypto} -lcom_err -lresolv $LIBS"
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375
3376 /* Override any gcc2 internal prototype to avoid an error.  */
3377 #ifdef __cplusplus
3378 extern "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.  */
3382 char krb_rd_req ();
3383 int
3384 main ()
3385 {
3386 krb_rd_req ();
3387   ;
3388   return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext conftest$ac_exeext
3392 if { (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
3414 else
3415   echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 ac_cv_lib_krb4_krb_rd_req=no
3419 fi
3420 rm -f conftest.err conftest.$ac_objext \
3421       conftest$ac_exeext conftest.$ac_ext
3422 LIBS=$ac_check_lib_save_LIBS
3423 fi
3424 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_rd_req" >&5
3425 echo "${ECHO_T}$ac_cv_lib_krb4_krb_rd_req" >&6
3426 if test $ac_cv_lib_krb4_krb_rd_req = yes; then
3427   KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv"
3428 else
3429   echo "$as_me:$LINENO: checking for krb_rd_req in -lkrb" >&5
3430 echo $ECHO_N "checking for krb_rd_req in -lkrb... $ECHO_C" >&6
3431 if test "${ac_cv_lib_krb_krb_rd_req+set}" = set; then
3432   echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434   ac_check_lib_save_LIBS=$LIBS
3435 LIBS="-lkrb $LIBPATH -ldes $LIBS"
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442
3443 /* Override any gcc2 internal prototype to avoid an error.  */
3444 #ifdef __cplusplus
3445 extern "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.  */
3449 char krb_rd_req ();
3450 int
3451 main ()
3452 {
3453 krb_rd_req ();
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext conftest$ac_exeext
3459 if { (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
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_cv_lib_krb_krb_rd_req=no
3486 fi
3487 rm -f conftest.err conftest.$ac_objext \
3488       conftest$ac_exeext conftest.$ac_ext
3489 LIBS=$ac_check_lib_save_LIBS
3490 fi
3491 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_rd_req" >&5
3492 echo "${ECHO_T}$ac_cv_lib_krb_krb_rd_req" >&6
3493 if test $ac_cv_lib_krb_krb_rd_req = yes; then
3494   KRB4_LIBS="-lkrb -ldes"
3495 else
3496   { { echo "$as_me:$LINENO: error: Kerberos 4 libraries not found" >&5
3497 echo "$as_me: error: Kerberos 4 libraries not found" >&2;}
3498    { (exit 1); exit 1; }; }
3499 fi
3500
3501 fi
3502
3503 fi
3504
3505 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
3506 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
3507
3508 # Check whether --with-krb5 or --without-krb5 was given.
3509 if test "${with_krb5+set}" = set; then
3510   withval="$with_krb5"
3511   krb5="$withval"
3512 else
3513   krb5=no
3514 fi;
3515 echo "$as_me:$LINENO: result: $krb5" >&5
3516 echo "${ECHO_T}$krb5" >&6
3517 if 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"
3557 else
3558     REG_SVR_DEFS=-DKRB4
3559     REG_SVR_LIBS=-lkadm
3560 fi
3561
3562
3563
3564
3565 # Hesiod support
3566 echo "$as_me:$LINENO: checking for Hesiod" >&5
3567 echo $ECHO_N "checking for Hesiod... $ECHO_C" >&6
3568
3569 # Check whether --with-hesiod or --without-hesiod was given.
3570 if test "${with_hesiod+set}" = set; then
3571   withval="$with_hesiod"
3572   hesiod="$withval"
3573 else
3574   hesiod=no
3575 fi;
3576 echo "$as_me:$LINENO: result: $hesiod" >&5
3577 echo "${ECHO_T}$hesiod" >&6
3578 if 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
3602 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
3603 if test "${ac_cv_func_res_send+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>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
3631 extern "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.  */
3636 char 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)
3641 choke me
3642 #else
3643 char (*f) () = res_send;
3644 #endif
3645 #ifdef __cplusplus
3646 }
3647 #endif
3648
3649 int
3650 main ()
3651 {
3652 return f != res_send;
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.$ac_objext conftest$ac_exeext
3658 if { (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
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_cv_func_res_send=no
3685 fi
3686 rm -f conftest.err conftest.$ac_objext \
3687       conftest$ac_exeext conftest.$ac_ext
3688 fi
3689 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
3690 echo "${ECHO_T}$ac_cv_func_res_send" >&6
3691 if test $ac_cv_func_res_send = yes; then
3692   :
3693 else
3694
3695 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
3696 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
3697 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   ac_check_lib_save_LIBS=$LIBS
3701 LIBS="-lresolv  $LIBS"
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h.  */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h.  */
3708
3709 /* Override any gcc2 internal prototype to avoid an error.  */
3710 #ifdef __cplusplus
3711 extern "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.  */
3715 char res_send ();
3716 int
3717 main ()
3718 {
3719 res_send ();
3720   ;
3721   return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest.$ac_objext conftest$ac_exeext
3725 if { (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
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751 ac_cv_lib_resolv_res_send=no
3752 fi
3753 rm -f conftest.err conftest.$ac_objext \
3754       conftest$ac_exeext conftest.$ac_ext
3755 LIBS=$ac_check_lib_save_LIBS
3756 fi
3757 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
3758 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
3759 if 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
3766 fi
3767
3768 fi
3769
3770     echo "$as_me:$LINENO: checking for hes_resolve in -lhesiod" >&5
3771 echo $ECHO_N "checking for hes_resolve in -lhesiod... $ECHO_C" >&6
3772 if test "${ac_cv_lib_hesiod_hes_resolve+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   ac_check_lib_save_LIBS=$LIBS
3776 LIBS="-lhesiod $LIBPATH $LIBS $LIBS"
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783
3784 /* Override any gcc2 internal prototype to avoid an error.  */
3785 #ifdef __cplusplus
3786 extern "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.  */
3790 char hes_resolve ();
3791 int
3792 main ()
3793 {
3794 hes_resolve ();
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.$ac_objext conftest$ac_exeext
3800 if { (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
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 ac_cv_lib_hesiod_hes_resolve=no
3827 fi
3828 rm -f conftest.err conftest.$ac_objext \
3829       conftest$ac_exeext conftest.$ac_ext
3830 LIBS=$ac_check_lib_save_LIBS
3831 fi
3832 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_resolve" >&5
3833 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_resolve" >&6
3834 if test $ac_cv_lib_hesiod_hes_resolve = yes; then
3835   :
3836 else
3837   { { echo "$as_me:$LINENO: error: Hesiod library not found" >&5
3838 echo "$as_me: error: Hesiod library not found" >&2;}
3839    { (exit 1); exit 1; }; }
3840 fi
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
3854 fi
3855
3856 # Zephyr support
3857 echo "$as_me:$LINENO: checking for Zephyr" >&5
3858 echo $ECHO_N "checking for Zephyr... $ECHO_C" >&6
3859
3860 # Check whether --with-zephyr or --without-zephyr was given.
3861 if test "${with_zephyr+set}" = set; then
3862   withval="$with_zephyr"
3863   zephyr="$withval"
3864 else
3865   zephyr=no
3866 fi;
3867 echo "$as_me:$LINENO: result: $zephyr" >&5
3868 echo "${ECHO_T}$zephyr" >&6
3869 if 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
3893 echo $ECHO_N "checking for ZInitialize in -lzephyr... $ECHO_C" >&6
3894 if test "${ac_cv_lib_zephyr_ZInitialize+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   ac_check_lib_save_LIBS=$LIBS
3898 LIBS="-lzephyr $LIBPATH $KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905
3906 /* Override any gcc2 internal prototype to avoid an error.  */
3907 #ifdef __cplusplus
3908 extern "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.  */
3912 char ZInitialize ();
3913 int
3914 main ()
3915 {
3916 ZInitialize ();
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext conftest$ac_exeext
3922 if { (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
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 ac_cv_lib_zephyr_ZInitialize=no
3949 fi
3950 rm -f conftest.err conftest.$ac_objext \
3951       conftest$ac_exeext conftest.$ac_ext
3952 LIBS=$ac_check_lib_save_LIBS
3953 fi
3954 echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitialize" >&5
3955 echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitialize" >&6
3956 if test $ac_cv_lib_zephyr_ZInitialize = yes; then
3957   :
3958 else
3959   { { echo "$as_me:$LINENO: error: Zephyr library not found" >&5
3960 echo "$as_me: error: Zephyr library not found" >&2;}
3961    { (exit 1); exit 1; }; }
3962 fi
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
3976 fi
3977
3978 # RSAREF support (default: build util/rsaref if present)
3979 echo "$as_me:$LINENO: checking for RSAREF" >&5
3980 echo $ECHO_N "checking for RSAREF... $ECHO_C" >&6
3981
3982 # Check whether --with-rsaref or --without-rsaref was given.
3983 if 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"
3988 else
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
4004 fi;
4005 echo "$as_me:$LINENO: result: $rsaref" >&5
4006 echo "${ECHO_T}$rsaref" >&6
4007 if 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
4020 fi
4021
4022
4023
4024
4025
4026 # Oracle (default: yes, if $ORACLE_HOME is set)
4027 echo "$as_me:$LINENO: checking for Oracle" >&5
4028 echo $ECHO_N "checking for Oracle... $ECHO_C" >&6
4029
4030 # Check whether --with-oracle or --without-oracle was given.
4031 if test "${with_oracle+set}" = set; then
4032   withval="$with_oracle"
4033   oracle="$withval"
4034 else
4035   if test -n "$ORACLE_HOME" -a -d "$ORACLE_HOME"; then
4036          oracle=$ORACLE_HOME
4037      else
4038          oracle=no
4039      fi
4040 fi;
4041 echo "$as_me:$LINENO: result: $oracle" >&5
4042 echo "${ECHO_T}$oracle" >&6
4043 if test "$oracle" != no; then
4044     echo "$as_me:$LINENO: checking Pro*C version" >&5
4045 echo $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
4048 echo "${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
4064 echo "$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"
4073 fi
4074
4075
4076
4077
4078
4079
4080
4081 # Java support, for webmoira
4082 echo "$as_me:$LINENO: checking for Java" >&5
4083 echo $ECHO_N "checking for Java... $ECHO_C" >&6
4084
4085 # Check whether --with-java or --without-java was given.
4086 if test "${with_java+set}" = set; then
4087   withval="$with_java"
4088    java="$withval"
4089 else
4090   if test -n "$JAVA_HOME" -a -d "$JAVA_HOME"; then
4091         java=$JAVA_HOME
4092      else
4093         java=no
4094      fi
4095 fi;
4096 echo "$as_me:$LINENO: result: $java" >&5
4097 echo "${ECHO_T}$java" >&6
4098 if 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"
4117 fi
4118
4119
4120
4121 # LDAP support
4122 echo "$as_me:$LINENO: checking for LDAP" >&5
4123 echo $ECHO_N "checking for LDAP... $ECHO_C" >&6
4124
4125 # Check whether --with-ldap or --without-ldap was given.
4126 if test "${with_ldap+set}" = set; then
4127   withval="$with_ldap"
4128    ldap="$withval"
4129 else
4130   if test -n "$LDAP_HOME" -a -d "$LDAP_HOME"; then
4131          ldap=$LDAP_HOME
4132      else
4133          ldap=no
4134      fi
4135 fi;
4136 echo "$as_me:$LINENO: result: $ldap" >&5
4137 echo "${ECHO_T}$ldap" >&6
4138 if 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"
4158 fi
4159
4160
4161
4162
4163 # AFS support
4164 echo "$as_me:$LINENO: checking for AFS" >&5
4165 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
4166
4167 # Check whether --with-afs or --without-afs was given.
4168 if test "${with_afs+set}" = set; then
4169   withval="$with_afs"
4170   afs="$withval"
4171 else
4172   afs=no
4173 fi;
4174 echo "$as_me:$LINENO: result: $afs" >&5
4175 echo "${ECHO_T}$afs" >&6
4176 if 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
4184 echo $ECHO_N "checking for pioctl in -lsys... $ECHO_C" >&6
4185 if test "${ac_cv_lib_sys_pioctl+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   ac_check_lib_save_LIBS=$LIBS
4189 LIBS="-lsys $AFS_LIBS -lrx -llwp -lsys -lafsutil $LIBS"
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196
4197 /* Override any gcc2 internal prototype to avoid an error.  */
4198 #ifdef __cplusplus
4199 extern "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.  */
4203 char pioctl ();
4204 int
4205 main ()
4206 {
4207 pioctl ();
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext conftest$ac_exeext
4213 if { (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
4235 else
4236   echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 ac_cv_lib_sys_pioctl=no
4240 fi
4241 rm -f conftest.err conftest.$ac_objext \
4242       conftest$ac_exeext conftest.$ac_ext
4243 LIBS=$ac_check_lib_save_LIBS
4244 fi
4245 echo "$as_me:$LINENO: result: $ac_cv_lib_sys_pioctl" >&5
4246 echo "${ECHO_T}$ac_cv_lib_sys_pioctl" >&6
4247 if test $ac_cv_lib_sys_pioctl = yes; then
4248   :
4249 else
4250   { { echo "$as_me:$LINENO: error: AFS libraries not found" >&5
4251 echo "$as_me: error: AFS libraries not found" >&2;}
4252    { (exit 1); exit 1; }; }
4253 fi
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
4274 fi
4275
4276
4277
4278
4279
4280
4281
4282 # GNU readline
4283 { echo "$as_me:$LINENO: checking for GNU readline......" >&5
4284 echo "$as_me: checking for GNU readline......" >&6;}
4285
4286 # Check whether --with-readline or --without-readline was given.
4287 if test "${with_readline+set}" = set; then
4288   withval="$with_readline"
4289   readline="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
4290 echo "${ECHO_T}$withval" >&6
4291 else
4292   echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4293 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4294 if test "${ac_cv_lib_readline_readline+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   ac_check_lib_save_LIBS=$LIBS
4298 LIBS="-lreadline -ltermcap $LIBS"
4299 cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305
4306 /* Override any gcc2 internal prototype to avoid an error.  */
4307 #ifdef __cplusplus
4308 extern "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.  */
4312 char readline ();
4313 int
4314 main ()
4315 {
4316 readline ();
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (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
4344 else
4345   echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 ac_cv_lib_readline_readline=no
4349 fi
4350 rm -f conftest.err conftest.$ac_objext \
4351       conftest$ac_exeext conftest.$ac_ext
4352 LIBS=$ac_check_lib_save_LIBS
4353 fi
4354 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4355 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4356 if test $ac_cv_lib_readline_readline = yes; then
4357   readline=yes
4358 else
4359   if test "$athena" = true; then
4360              unset ac_cv_lib_readline_readline
4361              echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4362 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4363 if test "${ac_cv_lib_readline_readline+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-lreadline -L/mit/gnu/lib -ltermcap $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 /* Override any gcc2 internal prototype to avoid an error.  */
4376 #ifdef __cplusplus
4377 extern "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.  */
4381 char readline ();
4382 int
4383 main ()
4384 {
4385 readline ();
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (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
4413 else
4414   echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417 ac_cv_lib_readline_readline=no
4418 fi
4419 rm -f conftest.err conftest.$ac_objext \
4420       conftest$ac_exeext conftest.$ac_ext
4421 LIBS=$ac_check_lib_save_LIBS
4422 fi
4423 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4424 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4425 if test $ac_cv_lib_readline_readline = yes; then
4426   readline=/mit/gnu
4427 else
4428   :
4429 fi
4430
4431          fi
4432 fi
4433
4434 fi;
4435 if 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"
4442 fi
4443
4444
4445
4446 # Curses
4447 curses=curses
4448 { echo "$as_me:$LINENO: checking for curses..." >&5
4449 echo "$as_me: checking for curses..." >&6;}
4450 echo "$as_me:$LINENO: checking for main in -lcurses" >&5
4451 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
4452 if test "${ac_cv_lib_curses_main+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   ac_check_lib_save_LIBS=$LIBS
4456 LIBS="-lcurses  $LIBS"
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463
4464
4465 int
4466 main ()
4467 {
4468 main ();
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.$ac_objext conftest$ac_exeext
4474 if { (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
4496 else
4497   echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 ac_cv_lib_curses_main=no
4501 fi
4502 rm -f conftest.err conftest.$ac_objext \
4503       conftest$ac_exeext conftest.$ac_ext
4504 LIBS=$ac_check_lib_save_LIBS
4505 fi
4506 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
4507 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
4508 if test $ac_cv_lib_curses_main = yes; then
4509   :
4510 else
4511   echo "$as_me:$LINENO: checking for main in -lncurses" >&5
4512 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
4513 if test "${ac_cv_lib_ncurses_main+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   ac_check_lib_save_LIBS=$LIBS
4517 LIBS="-lncurses  $LIBS"
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524
4525
4526 int
4527 main ()
4528 {
4529 main ();
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 rm -f conftest.$ac_objext conftest$ac_exeext
4535 if { (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
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 ac_cv_lib_ncurses_main=no
4562 fi
4563 rm -f conftest.err conftest.$ac_objext \
4564       conftest$ac_exeext conftest.$ac_ext
4565 LIBS=$ac_check_lib_save_LIBS
4566 fi
4567 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
4568 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
4569 if test $ac_cv_lib_ncurses_main = yes; then
4570   curses=ncurses
4571 fi
4572
4573 fi
4574
4575 if test -n "$curses"; then
4576     OLDLIBS=$LIBS
4577     LIBS=-l$curses
4578     { echo "$as_me:$LINENO: checking if curses needs termcap..." >&5
4579 echo "$as_me: checking if curses needs termcap..." >&6;}
4580                 if test "$cross_compiling" = yes; then
4581   :
4582 else
4583   cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>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
4597 rm -f conftest$ac_exeext
4598 if { (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"
4609 else
4610   echo "$as_me: program exited with status $ac_status" >&5
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 ( exit $ac_status )
4615 LIBS="-l$curses -ltermcap"
4616                 if test "$cross_compiling" = yes; then
4617   :
4618 else
4619   cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>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
4633 rm -f conftest$ac_exeext
4634 if { (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"
4645 else
4646   echo "$as_me: program exited with status $ac_status" >&5
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 ( exit $ac_status )
4651 :
4652 fi
4653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 fi
4656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4657 fi
4658     LIBS=$OLDLIBS
4659 fi
4660 if test -n "$CURSES_LIBS"; then
4661     OLDLIBS=$LIBS
4662     LIBS=$CURSES_LIBS
4663     cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h.  */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h.  */
4669 #include <curses.h>
4670 int
4671 main ()
4672 {
4673 WINDOW *w; getmaxx(w);
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext conftest$ac_exeext
4679 if { (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   :
4701 else
4702   echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h.  */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h.  */
4711 #include <curses.h>
4712 int
4713 main ()
4714 {
4715 WINDOW *w; w->_maxx;
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (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'"
4743 else
4744   echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 CURSES_CPPFLAGS="-D'getmaxx(w)=w->maxx'"
4748 fi
4749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750 fi
4751 rm -f conftest.err conftest.$ac_objext \
4752       conftest$ac_exeext conftest.$ac_ext
4753     cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 #include <curses.h>
4760 int
4761 main ()
4762 {
4763 newterm(NULL, NULL, NULL);
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (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"
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 fi
4796 rm -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)'
4801 else
4802     { echo "$as_me:$LINENO: WARNING: Couldn't find -lcurses" >&5
4803 echo "$as_me: WARNING: Couldn't find -lcurses" >&2;}
4804 fi
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815 for ac_func in getusershell strlcpy strlcat uname strvis
4816 do
4817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4818 echo "$as_me:$LINENO: checking for $ac_func" >&5
4819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4820 if eval "test \"\${$as_ac_var+set}\" = set"; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h.  */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>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
4848 extern "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.  */
4853 char $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)
4858 choke me
4859 #else
4860 char (*f) () = $ac_func;
4861 #endif
4862 #ifdef __cplusplus
4863 }
4864 #endif
4865
4866 int
4867 main ()
4868 {
4869 return f != $ac_func;
4870   ;
4871   return 0;
4872 }
4873 _ACEOF
4874 rm -f conftest.$ac_objext conftest$ac_exeext
4875 if { (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"
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 eval "$as_ac_var=no"
4902 fi
4903 rm -f conftest.err conftest.$ac_objext \
4904       conftest$ac_exeext conftest.$ac_ext
4905 fi
4906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4908 if 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
4913 fi
4914 done
4915
4916
4917 echo "$as_me:$LINENO: checking for sigaction" >&5
4918 echo $ECHO_N "checking for sigaction... $ECHO_C" >&6
4919 if test "${ac_cv_func_sigaction+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>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
4947 extern "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.  */
4952 char 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)
4957 choke me
4958 #else
4959 char (*f) () = sigaction;
4960 #endif
4961 #ifdef __cplusplus
4962 }
4963 #endif
4964
4965 int
4966 main ()
4967 {
4968 return f != sigaction;
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (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
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 ac_cv_func_sigaction=no
5001 fi
5002 rm -f conftest.err conftest.$ac_objext \
5003       conftest$ac_exeext conftest.$ac_ext
5004 fi
5005 echo "$as_me:$LINENO: result: $ac_cv_func_sigaction" >&5
5006 echo "${ECHO_T}$ac_cv_func_sigaction" >&6
5007 if test $ac_cv_func_sigaction = yes; then
5008   cat >>confdefs.h <<\_ACEOF
5009 #define HAVE_POSIX_SIGNALS 1
5010 _ACEOF
5011
5012 fi
5013
5014
5015 ac_ext=c
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5021 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5022 # On Suns, sometimes $CPP names a directory.
5023 if test -n "$CPP" && test -d "$CPP"; then
5024   CPP=
5025 fi
5026 if test -z "$CPP"; then
5027   if test "${ac_cv_prog_CPP+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
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
5034 for ac_c_preproc_warn_flag in '' yes
5035 do
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
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>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
5055 if { (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
5069 else
5070   ac_cpp_err=yes
5071 fi
5072 if test -z "$ac_cpp_err"; then
5073   :
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078   # Broken: fails on valid input.
5079 continue
5080 fi
5081 rm -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
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091 #include <ac_nonexistent.h>
5092 _ACEOF
5093 if { (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
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   # Broken: success on invalid input.
5112 continue
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117   # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5120 fi
5121 rm -f conftest.err conftest.$ac_ext
5122
5123 done
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125 rm -f conftest.err conftest.$ac_ext
5126 if $ac_preproc_ok; then
5127   break
5128 fi
5129
5130     done
5131     ac_cv_prog_CPP=$CPP
5132
5133 fi
5134   CPP=$ac_cv_prog_CPP
5135 else
5136   ac_cv_prog_CPP=$CPP
5137 fi
5138 echo "$as_me:$LINENO: result: $CPP" >&5
5139 echo "${ECHO_T}$CPP" >&6
5140 ac_preproc_ok=false
5141 for ac_c_preproc_warn_flag in '' yes
5142 do
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
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>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
5162 if { (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
5176 else
5177   ac_cpp_err=yes
5178 fi
5179 if test -z "$ac_cpp_err"; then
5180   :
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185   # Broken: fails on valid input.
5186 continue
5187 fi
5188 rm -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
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198 #include <ac_nonexistent.h>
5199 _ACEOF
5200 if { (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
5214 else
5215   ac_cpp_err=yes
5216 fi
5217 if test -z "$ac_cpp_err"; then
5218   # Broken: success on invalid input.
5219 continue
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224   # Passes both tests.
5225 ac_preproc_ok=:
5226 break
5227 fi
5228 rm -f conftest.err conftest.$ac_ext
5229
5230 done
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then
5234   :
5235 else
5236   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5237 See \`config.log' for more details." >&5
5238 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5239 See \`config.log' for more details." >&2;}
5240    { (exit 1); exit 1; }; }
5241 fi
5242
5243 ac_ext=c
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248
5249
5250 echo "$as_me:$LINENO: checking for egrep" >&5
5251 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5252 if test "${ac_cv_prog_egrep+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
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
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5261 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5262  EGREP=$ac_cv_prog_egrep
5263
5264
5265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5267 if test "${ac_cv_header_stdc+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>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
5281 int
5282 main ()
5283 {
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (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
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ac_cv_header_stdc=no
5317 fi
5318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5319
5320 if 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
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 #include <string.h>
5329
5330 _ACEOF
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332   $EGREP "memchr" >/dev/null 2>&1; then
5333   :
5334 else
5335   ac_cv_header_stdc=no
5336 fi
5337 rm -f conftest*
5338
5339 fi
5340
5341 if 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
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349 #include <stdlib.h>
5350
5351 _ACEOF
5352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5353   $EGREP "free" >/dev/null 2>&1; then
5354   :
5355 else
5356   ac_cv_header_stdc=no
5357 fi
5358 rm -f conftest*
5359
5360 fi
5361
5362 if 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   :
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>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)))
5386 int
5387 main ()
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
5397 rm -f conftest$ac_exeext
5398 if { (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   :
5409 else
5410   echo "$as_me: program exited with status $ac_status" >&5
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 ( exit $ac_status )
5415 ac_cv_header_stdc=no
5416 fi
5417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5418 fi
5419 fi
5420 fi
5421 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5422 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5423 if test $ac_cv_header_stdc = yes; then
5424
5425 cat >>confdefs.h <<\_ACEOF
5426 #define STDC_HEADERS 1
5427 _ACEOF
5428
5429 fi
5430
5431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5442                   inttypes.h stdint.h unistd.h
5443 do
5444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 echo "$as_me:$LINENO: checking for $ac_header" >&5
5446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456 $ac_includes_default
5457
5458 #include <$ac_header>
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (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"
5483 else
5484   echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 eval "$as_ac_Header=no"
5488 fi
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490 fi
5491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5493 if 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
5498 fi
5499
5500 done
5501
5502
5503
5504
5505 for ac_header in unistd.h getopt.h
5506 do
5507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5509   echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512   echo $ECHO_N "(cached) $ECHO_C" >&6
5513 fi
5514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5516 else
5517   # Is the header compilable?
5518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526 $ac_includes_default
5527 #include <$ac_header>
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (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
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_header_compiler=no
5557 fi
5558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5560 echo "${ECHO_T}$ac_header_compiler" >&6
5561
5562 # Is the header present?
5563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571 #include <$ac_header>
5572 _ACEOF
5573 if { (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
5587 else
5588   ac_cpp_err=yes
5589 fi
5590 if test -z "$ac_cpp_err"; then
5591   ac_header_preproc=yes
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596   ac_header_preproc=no
5597 fi
5598 rm -f conftest.err conftest.$ac_ext
5599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5600 echo "${ECHO_T}$ac_header_preproc" >&6
5601
5602 # So?  What about this header?
5603 case $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
5606 echo "$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
5608 echo "$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
5613 echo "$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
5615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5617 echo "$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
5619 echo "$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
5621 echo "$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
5623 echo "$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     ;;
5633 esac
5634 echo "$as_me:$LINENO: checking for $ac_header" >&5
5635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   eval "$as_ac_Header=\$ac_header_preproc"
5640 fi
5641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5643
5644 fi
5645 if 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
5650 fi
5651
5652 done
5653
5654
5655 if test "${ac_cv_header_netinet_in_h+set}" = set; then
5656   echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5657 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5658 if test "${ac_cv_header_netinet_in_h+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 fi
5661 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5662 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5663 else
5664   # Is the header compilable?
5665 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
5666 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5673 $ac_includes_default
5674 #include <netinet/in.h>
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (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
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 ac_header_compiler=no
5704 fi
5705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5707 echo "${ECHO_T}$ac_header_compiler" >&6
5708
5709 # Is the header present?
5710 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
5711 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
5712 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718 #include <netinet/in.h>
5719 _ACEOF
5720 if { (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
5734 else
5735   ac_cpp_err=yes
5736 fi
5737 if test -z "$ac_cpp_err"; then
5738   ac_header_preproc=yes
5739 else
5740   echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743   ac_header_preproc=no
5744 fi
5745 rm -f conftest.err conftest.$ac_ext
5746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5747 echo "${ECHO_T}$ac_header_preproc" >&6
5748
5749 # So?  What about this header?
5750 case $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
5753 echo "$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
5755 echo "$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
5760 echo "$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
5762 echo "$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
5764 echo "$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
5766 echo "$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
5768 echo "$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
5770 echo "$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     ;;
5780 esac
5781 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
5782 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
5783 if test "${ac_cv_header_netinet_in_h+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   ac_cv_header_netinet_in_h=$ac_header_preproc
5787 fi
5788 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
5789 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
5790
5791 fi
5792 if test $ac_cv_header_netinet_in_h = yes; then
5793   cat >>confdefs.h <<\_ACEOF
5794 #define HAVE_NETINET_IN_H 1
5795 _ACEOF
5796
5797 else
5798   no_netinet_in=yes
5799 fi
5800
5801
5802
5803 if test "$no_netinet_in" != "yes"; then
5804     echo "$as_me:$LINENO: checking for in_addr_t defined in netinet/in.h" >&5
5805 echo $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
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812 #include <netinet/in.h>
5813
5814 _ACEOF
5815 if (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
5818 else
5819   ac_cv_type_in_addr_t=no
5820 fi
5821 rm -f conftest*
5822
5823     echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
5824 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
5825 fi
5826
5827 if test "$ac_cv_type_in_addr_t" != "yes"; then
5828   cat >>confdefs.h <<\_ACEOF
5829 #define in_addr_t uint32_t
5830 _ACEOF
5831
5832 fi
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
5910 LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH"
5911 KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $LIBS"
5912 KLIBS="$LIBS"
5913 if test "$hesiod" != no; then
5914   KLIBS="-lhesiod $KLIBS"
5915 fi
5916 KLIBS="$KRB4_LIBS $KRB5_LIBS -lcom_err $KLIBS"
5917 if test "$zephyr" != no; then
5918   KLIBS="-lzephyr $KLIBS"
5919 fi
5920 LIBS="-lmoira $KLIBS"
5921
5922
5923 MR_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"
5927 cat >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
5972 if 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
5979 fi
5980 rm -f confcache
5981
5982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5983 # Let make expand exec_prefix.
5984 test "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).
5990 if test "x$srcdir" = x.; then
5991   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5992 s/:*\$(srcdir):*/:/;
5993 s/:*\${srcdir}:*/:/;
5994 s/:*@srcdir@:*/:/;
5995 s/^\([^=]*=[     ]*\):*/\1/;
5996 s/:*$//;
5997 s/^[^=]*=[       ]*$//;
5998 }'
5999 fi
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.
6008 cat >confdef2opt.sed <<\_ACEOF
6009 t clear
6010 : clear
6011 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6012 t quote
6013 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6014 t quote
6015 d
6016 : quote
6017 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
6018 s,\[,\\&,g
6019 s,\],\\&,g
6020 s,\$,$$,g
6021 p
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.
6029 ac_LF_and_DOT=`echo; echo .`
6030 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6031 rm -f confdef2opt.sed
6032
6033
6034 ac_libobjs=
6035 ac_ltlibobjs=
6036 for 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'
6043 done
6044 LIBOBJS=$ac_libobjs
6045
6046 LTLIBOBJS=$ac_ltlibobjs
6047
6048
6049
6050 : ${CONFIG_STATUS=./config.status}
6051 ac_clean_files_save=$ac_clean_files
6052 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6053 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6054 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6055 cat >$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
6062 debug=false
6063 ac_cs_recheck=false
6064 ac_cs_silent=false
6065 SHELL=\${CONFIG_SHELL-$SHELL}
6066 _ACEOF
6067
6068 cat >>$CONFIG_STATUS <<\_ACEOF
6069 ## --------------------- ##
6070 ## M4sh Initialization.  ##
6071 ## --------------------- ##
6072
6073 # Be Bourne compatible
6074 if 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+"$@"}'='"$@"'
6080 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6081   set -o posix
6082 fi
6083 DUALCASE=1; export DUALCASE # for MKS sh
6084
6085 # Support unset when possible.
6086 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6087   as_unset=unset
6088 else
6089   as_unset=false
6090 fi
6091
6092
6093 # Work around bugs in pre-3.0 UWIN ksh.
6094 $as_unset ENV MAIL MAILPATH
6095 PS1='$ '
6096 PS2='> '
6097 PS4='+ '
6098
6099 # NLS nuisances.
6100 for 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
6104 do
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
6110 done
6111
6112 # Required to use basename.
6113 if expr a : '\(a\)' >/dev/null 2>&1; then
6114   as_expr=expr
6115 else
6116   as_expr=false
6117 fi
6118
6119 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6120   as_basename=basename
6121 else
6122   as_basename=false
6123 fi
6124
6125
6126 # Name of the executable.
6127 as_me=`$as_basename "$0" ||
6128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6129          X"$0" : 'X\(//\)$' \| \
6130          X"$0" : 'X\(/\)$' \| \
6131          .     : '\(.\)' 2>/dev/null ||
6132 echo 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.
6141 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6142 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6143 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6144 as_cr_digits='0123456789'
6145 as_cr_alnum=$as_cr_Letters$as_cr_digits
6146
6147 # The user is always right.
6148 if 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
6158 fi
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
6171 for as_dir in $PATH
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6176 done
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
6187 echo "$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
6193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6194 do
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
6214 done
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
6238 echo "$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
6250 case `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= ;;
6255 esac
6256
6257 if expr a : '\(a\)' >/dev/null 2>&1; then
6258   as_expr=expr
6259 else
6260   as_expr=false
6261 fi
6262
6263 rm -f conf$$ conf$$.exe conf$$.file
6264 echo >conf$$.file
6265 if 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
6274 elif ln conf$$.file conf$$ 2>/dev/null; then
6275   as_ln_s=ln
6276 else
6277   as_ln_s='cp -p'
6278 fi
6279 rm -f conf$$ conf$$.exe conf$$.file
6280
6281 if mkdir -p . 2>/dev/null; then
6282   as_mkdir_p=:
6283 else
6284   test -d ./-p && rmdir ./-p
6285   as_mkdir_p=false
6286 fi
6287
6288 as_executable_p="test -f"
6289
6290 # Sed expression to map a string onto a valid CPP name.
6291 as_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.
6294 as_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.
6299 as_nl='
6300 '
6301 IFS="   $as_nl"
6302
6303 # CDPATH.
6304 $as_unset CDPATH
6305
6306 exec 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.
6311 exec 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
6318 cat >&5 <<_CSEOF
6319
6320 This file was extended by $as_me, which was
6321 generated 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
6330 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6331 echo >&5
6332 _ACEOF
6333
6334 # Files that config.status was made for.
6335 if test -n "$ac_config_files"; then
6336   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6337 fi
6338
6339 if test -n "$ac_config_headers"; then
6340   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6341 fi
6342
6343 if test -n "$ac_config_links"; then
6344   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6345 fi
6346
6347 if test -n "$ac_config_commands"; then
6348   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6349 fi
6350
6351 cat >>$CONFIG_STATUS <<\_ACEOF
6352
6353 ac_cs_usage="\
6354 \`$as_me' instantiates files from templates according to the
6355 current configuration.
6356
6357 Usage: $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
6367 Configuration files:
6368 $config_files
6369
6370 Report bugs to <bug-autoconf@gnu.org>."
6371 _ACEOF
6372
6373 cat >>$CONFIG_STATUS <<_ACEOF
6374 ac_cs_version="\\
6375 config.status
6376 configured by $0, generated by GNU Autoconf 2.59,
6377   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6378
6379 Copyright (C) 2003 Free Software Foundation, Inc.
6380 This config.status script is free software; the Free Software Foundation
6381 gives unlimited permission to copy, distribute and modify it."
6382 srcdir=$srcdir
6383 INSTALL="$INSTALL"
6384 _ACEOF
6385
6386 cat >>$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.
6389 ac_need_defaults=:
6390 while test $# != 0
6391 do
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
6412 cat >>$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
6420 Try \`$0 --help' for more information." >&5
6421 echo "$as_me: error: ambiguous option: $1
6422 Try \`$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
6442 Try \`$0 --help' for more information." >&5
6443 echo "$as_me: error: unrecognized option: $1
6444 Try \`$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
6451 done
6452
6453 ac_configure_extra_args=
6454
6455 if $ac_cs_silent; then
6456   exec 6>/dev/null
6457   ac_configure_extra_args="$ac_configure_extra_args --silent"
6458 fi
6459
6460 _ACEOF
6461 cat >>$CONFIG_STATUS <<_ACEOF
6462 if \$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
6465 fi
6466
6467 _ACEOF
6468
6469
6470
6471
6472
6473 cat >>$CONFIG_STATUS <<\_ACEOF
6474 for ac_config_target in $ac_config_targets
6475 do
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
6503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6504    { (exit 1); exit 1; }; };;
6505   esac
6506 done
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.
6512 if $ac_need_defaults; then
6513   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6514 fi
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
6543 cat >>$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
6551 if 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
6555 s,@SHELL@,$SHELL,;t t
6556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6557 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6558 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6559 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6560 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6561 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6562 s,@exec_prefix@,$exec_prefix,;t t
6563 s,@prefix@,$prefix,;t t
6564 s,@program_transform_name@,$program_transform_name,;t t
6565 s,@bindir@,$bindir,;t t
6566 s,@sbindir@,$sbindir,;t t
6567 s,@libexecdir@,$libexecdir,;t t
6568 s,@datadir@,$datadir,;t t
6569 s,@sysconfdir@,$sysconfdir,;t t
6570 s,@sharedstatedir@,$sharedstatedir,;t t
6571 s,@localstatedir@,$localstatedir,;t t
6572 s,@libdir@,$libdir,;t t
6573 s,@includedir@,$includedir,;t t
6574 s,@oldincludedir@,$oldincludedir,;t t
6575 s,@infodir@,$infodir,;t t
6576 s,@mandir@,$mandir,;t t
6577 s,@build_alias@,$build_alias,;t t
6578 s,@host_alias@,$host_alias,;t t
6579 s,@target_alias@,$target_alias,;t t
6580 s,@DEFS@,$DEFS,;t t
6581 s,@ECHO_C@,$ECHO_C,;t t
6582 s,@ECHO_N@,$ECHO_N,;t t
6583 s,@ECHO_T@,$ECHO_T,;t t
6584 s,@LIBS@,$LIBS,;t t
6585 s,@build@,$build,;t t
6586 s,@build_cpu@,$build_cpu,;t t
6587 s,@build_vendor@,$build_vendor,;t t
6588 s,@build_os@,$build_os,;t t
6589 s,@host@,$host,;t t
6590 s,@host_cpu@,$host_cpu,;t t
6591 s,@host_vendor@,$host_vendor,;t t
6592 s,@host_os@,$host_os,;t t
6593 s,@SO_LDFLAGS@,$SO_LDFLAGS,;t t
6594 s,@CC@,$CC,;t t
6595 s,@CFLAGS@,$CFLAGS,;t t
6596 s,@LDFLAGS@,$LDFLAGS,;t t
6597 s,@CPPFLAGS@,$CPPFLAGS,;t t
6598 s,@ac_ct_CC@,$ac_ct_CC,;t t
6599 s,@EXEEXT@,$EXEEXT,;t t
6600 s,@OBJEXT@,$OBJEXT,;t t
6601 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6602 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6603 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6604 s,@RANLIB@,$RANLIB,;t t
6605 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6606 s,@SET_MAKE@,$SET_MAKE,;t t
6607 s,@mrbindir@,$mrbindir,;t t
6608 s,@subdirs@,$subdirs,;t t
6609 s,@COM_ERR_SUBDIR@,$COM_ERR_SUBDIR,;t t
6610 s,@COMPILE_ET@,$COMPILE_ET,;t t
6611 s,@REG_SVR_DEFS@,$REG_SVR_DEFS,;t t
6612 s,@REG_SVR_INCLUDES@,$REG_SVR_INCLUDES,;t t
6613 s,@REG_SVR_LIBS@,$REG_SVR_LIBS,;t t
6614 s,@RSAREF_CPPFLAGS@,$RSAREF_CPPFLAGS,;t t
6615 s,@RSAREF_LIBS@,$RSAREF_LIBS,;t t
6616 s,@RSAREF_SUBDIRS@,$RSAREF_SUBDIRS,;t t
6617 s,@RSAREF_LIBDEP@,$RSAREF_LIBDEP,;t t
6618 s,@PRO_C@,$PRO_C,;t t
6619 s,@PRO_C_DEFS@,$PRO_C_DEFS,;t t
6620 s,@PRO_C_INCLUDES@,$PRO_C_INCLUDES,;t t
6621 s,@PRO_C_OPTS@,$PRO_C_OPTS,;t t
6622 s,@SQL_LIBS@,$SQL_LIBS,;t t
6623 s,@SVRSUBDIRS@,$SVRSUBDIRS,;t t
6624 s,@JAVA_CPPFLAGS@,$JAVA_CPPFLAGS,;t t
6625 s,@WEBMOIRA_SUBDIRS@,$WEBMOIRA_SUBDIRS,;t t
6626 s,@LDAP_CPPFLAGS@,$LDAP_CPPFLAGS,;t t
6627 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
6628 s,@WINAD_SUBDIRS@,$WINAD_SUBDIRS,;t t
6629 s,@AFS_CPPFLAGS@,$AFS_CPPFLAGS,;t t
6630 s,@AFS_PRO_C_INCLUDES@,$AFS_PRO_C_INCLUDES,;t t
6631 s,@AFS_LIBS@,$AFS_LIBS,;t t
6632 s,@AFS_DIR@,$AFS_DIR,;t t
6633 s,@AFS_SUBDIRS@,$AFS_SUBDIRS,;t t
6634 s,@AFS_SYNCDIR@,$AFS_SYNCDIR,;t t
6635 s,@READLINE_CPPFLAGS@,$READLINE_CPPFLAGS,;t t
6636 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
6637 s,@CURSES_CPPFLAGS@,$CURSES_CPPFLAGS,;t t
6638 s,@CURSES_LIBS@,$CURSES_LIBS,;t t
6639 s,@CURSES_SUBDIRS@,$CURSES_SUBDIRS,;t t
6640 s,@CPP@,$CPP,;t t
6641 s,@EGREP@,$EGREP,;t t
6642 s,@KLIBS@,$KLIBS,;t t
6643 s,@MR_LIBDEP@,$MR_LIBDEP,;t t
6644 s,@LIBOBJS@,$LIBOBJS,;t t
6645 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6646 CEOF
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
6687 fi # test -n "$CONFIG_FILES"
6688
6689 _ACEOF
6690 cat >>$CONFIG_STATUS <<\_ACEOF
6691 for 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 ||
6710 echo 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 ||
6729 echo 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
6738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6739    { (exit 1); exit 1; }; }; }
6740
6741   ac_builddir=.
6742
6743 if 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'`
6747 else
6748   ac_dir_suffix= ac_top_builddir=
6749 fi
6750
6751 case $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 ;;
6765 esac
6766
6767 # Do not use `cd foo && pwd` to compute absolute paths, because
6768 # the directories may not exist.
6769 case `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;;
6777 esac
6778 case $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;;
6786 esac
6787 case $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;;
6795 esac
6796 case $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;;
6804 esac
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
6814 echo "$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
6837 echo "$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
6850 echo "$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
6856 cat >>$CONFIG_STATUS <<_ACEOF
6857   sed "$ac_vpsub
6858 $extrasub
6859 _ACEOF
6860 cat >>$CONFIG_STATUS <<\_ACEOF
6861 :t
6862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6863 s,@configure_input@,$configure_input,;t t
6864 s,@srcdir@,$ac_srcdir,;t t
6865 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6866 s,@top_srcdir@,$ac_top_srcdir,;t t
6867 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6868 s,@builddir@,$ac_builddir,;t t
6869 s,@abs_builddir@,$ac_abs_builddir,;t t
6870 s,@top_builddir@,$ac_top_builddir,;t t
6871 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6872 s,@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
6882 done
6883 _ACEOF
6884
6885 cat >>$CONFIG_STATUS <<\_ACEOF
6886
6887 { (exit 0); exit 0; }
6888 _ACEOF
6889 chmod +x $CONFIG_STATUS
6890 ac_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.
6901 if 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; }
6912 fi
6913
6914 #
6915 # CONFIG_SUBDIRS section.
6916 #
6917 if 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
6961 echo "$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 ||
6975 echo 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
6984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6985    { (exit 1); exit 1; }; }; }
6986
6987     ac_builddir=.
6988
6989 if 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'`
6993 else
6994   ac_dir_suffix= ac_top_builddir=
6995 fi
6996
6997 case $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 ;;
7011 esac
7012
7013 # Do not use `cd foo && pwd` to compute absolute paths, because
7014 # the directories may not exist.
7015 case `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;;
7023 esac
7024 case $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;;
7032 esac
7033 case $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;;
7041 esac
7042 case $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;;
7050 esac
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
7064 echo "$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
7078 echo "$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
7083 echo "$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
7089 fi
7090
This page took 0.579237 seconds and 5 git commands to generate.