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