update otp_hotp() to support 6,7,8,9 digit otp's
[freeradius.git] / src / modules / rlm_krb5 / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.8 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="rlm_krb5.c"
276 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP krb5_cflags krb5_ldflags targetname LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320   # If the previous option needs an argument, assign it.
321   if test -n "$ac_prev"; then
322     eval "$ac_prev=\$ac_option"
323     ac_prev=
324     continue
325   fi
326
327   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329   # Accept the important Cygnus configure options, so we can diagnose typos.
330
331   case $ac_option in
332
333   -bindir | --bindir | --bindi | --bind | --bin | --bi)
334     ac_prev=bindir ;;
335   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336     bindir=$ac_optarg ;;
337
338   -build | --build | --buil | --bui | --bu)
339     ac_prev=build_alias ;;
340   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341     build_alias=$ac_optarg ;;
342
343   -cache-file | --cache-file | --cache-fil | --cache-fi \
344   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345     ac_prev=cache_file ;;
346   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348     cache_file=$ac_optarg ;;
349
350   --config-cache | -C)
351     cache_file=config.cache ;;
352
353   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354     ac_prev=datadir ;;
355   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356   | --da=*)
357     datadir=$ac_optarg ;;
358
359   -disable-* | --disable-*)
360     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361     # Reject names that are not valid shell variable names.
362     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364    { (exit 1); exit 1; }; }
365     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366     eval "enable_$ac_feature=no" ;;
367
368   -enable-* | --enable-*)
369     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370     # Reject names that are not valid shell variable names.
371     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373    { (exit 1); exit 1; }; }
374     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375     case $ac_option in
376       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "enable_$ac_feature='$ac_optarg'" ;;
380
381   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383   | --exec | --exe | --ex)
384     ac_prev=exec_prefix ;;
385   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387   | --exec=* | --exe=* | --ex=*)
388     exec_prefix=$ac_optarg ;;
389
390   -gas | --gas | --ga | --g)
391     # Obsolete; use --with-gas.
392     with_gas=yes ;;
393
394   -help | --help | --hel | --he | -h)
395     ac_init_help=long ;;
396   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397     ac_init_help=recursive ;;
398   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399     ac_init_help=short ;;
400
401   -host | --host | --hos | --ho)
402     ac_prev=host_alias ;;
403   -host=* | --host=* | --hos=* | --ho=*)
404     host_alias=$ac_optarg ;;
405
406   -includedir | --includedir | --includedi | --included | --include \
407   | --includ | --inclu | --incl | --inc)
408     ac_prev=includedir ;;
409   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410   | --includ=* | --inclu=* | --incl=* | --inc=*)
411     includedir=$ac_optarg ;;
412
413   -infodir | --infodir | --infodi | --infod | --info | --inf)
414     ac_prev=infodir ;;
415   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416     infodir=$ac_optarg ;;
417
418   -libdir | --libdir | --libdi | --libd)
419     ac_prev=libdir ;;
420   -libdir=* | --libdir=* | --libdi=* | --libd=*)
421     libdir=$ac_optarg ;;
422
423   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424   | --libexe | --libex | --libe)
425     ac_prev=libexecdir ;;
426   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427   | --libexe=* | --libex=* | --libe=*)
428     libexecdir=$ac_optarg ;;
429
430   -localstatedir | --localstatedir | --localstatedi | --localstated \
431   | --localstate | --localstat | --localsta | --localst \
432   | --locals | --local | --loca | --loc | --lo)
433     ac_prev=localstatedir ;;
434   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437     localstatedir=$ac_optarg ;;
438
439   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440     ac_prev=mandir ;;
441   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442     mandir=$ac_optarg ;;
443
444   -nfp | --nfp | --nf)
445     # Obsolete; use --without-fp.
446     with_fp=no ;;
447
448   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449   | --no-cr | --no-c | -n)
450     no_create=yes ;;
451
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454     no_recursion=yes ;;
455
456   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458   | --oldin | --oldi | --old | --ol | --o)
459     ac_prev=oldincludedir ;;
460   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463     oldincludedir=$ac_optarg ;;
464
465   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466     ac_prev=prefix ;;
467   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468     prefix=$ac_optarg ;;
469
470   -program-prefix | --program-prefix | --program-prefi | --program-pref \
471   | --program-pre | --program-pr | --program-p)
472     ac_prev=program_prefix ;;
473   -program-prefix=* | --program-prefix=* | --program-prefi=* \
474   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475     program_prefix=$ac_optarg ;;
476
477   -program-suffix | --program-suffix | --program-suffi | --program-suff \
478   | --program-suf | --program-su | --program-s)
479     ac_prev=program_suffix ;;
480   -program-suffix=* | --program-suffix=* | --program-suffi=* \
481   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482     program_suffix=$ac_optarg ;;
483
484   -program-transform-name | --program-transform-name \
485   | --program-transform-nam | --program-transform-na \
486   | --program-transform-n | --program-transform- \
487   | --program-transform | --program-transfor \
488   | --program-transfo | --program-transf \
489   | --program-trans | --program-tran \
490   | --progr-tra | --program-tr | --program-t)
491     ac_prev=program_transform_name ;;
492   -program-transform-name=* | --program-transform-name=* \
493   | --program-transform-nam=* | --program-transform-na=* \
494   | --program-transform-n=* | --program-transform-=* \
495   | --program-transform=* | --program-transfor=* \
496   | --program-transfo=* | --program-transf=* \
497   | --program-trans=* | --program-tran=* \
498   | --progr-tra=* | --program-tr=* | --program-t=*)
499     program_transform_name=$ac_optarg ;;
500
501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502   | -silent | --silent | --silen | --sile | --sil)
503     silent=yes ;;
504
505   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506     ac_prev=sbindir ;;
507   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508   | --sbi=* | --sb=*)
509     sbindir=$ac_optarg ;;
510
511   -sharedstatedir | --sharedstatedir | --sharedstatedi \
512   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513   | --sharedst | --shareds | --shared | --share | --shar \
514   | --sha | --sh)
515     ac_prev=sharedstatedir ;;
516   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519   | --sha=* | --sh=*)
520     sharedstatedir=$ac_optarg ;;
521
522   -site | --site | --sit)
523     ac_prev=site ;;
524   -site=* | --site=* | --sit=*)
525     site=$ac_optarg ;;
526
527   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528     ac_prev=srcdir ;;
529   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530     srcdir=$ac_optarg ;;
531
532   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533   | --syscon | --sysco | --sysc | --sys | --sy)
534     ac_prev=sysconfdir ;;
535   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537     sysconfdir=$ac_optarg ;;
538
539   -target | --target | --targe | --targ | --tar | --ta | --t)
540     ac_prev=target_alias ;;
541   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542     target_alias=$ac_optarg ;;
543
544   -v | -verbose | --verbose | --verbos | --verbo | --verb)
545     verbose=yes ;;
546
547   -version | --version | --versio | --versi | --vers | -V)
548     ac_init_version=: ;;
549
550   -with-* | --with-*)
551     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid package name: $ac_package" >&2
555    { (exit 1); exit 1; }; }
556     ac_package=`echo $ac_package| sed 's/-/_/g'`
557     case $ac_option in
558       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559       *) ac_optarg=yes ;;
560     esac
561     eval "with_$ac_package='$ac_optarg'" ;;
562
563   -without-* | --without-*)
564     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid package name: $ac_package" >&2
568    { (exit 1); exit 1; }; }
569     ac_package=`echo $ac_package | sed 's/-/_/g'`
570     eval "with_$ac_package=no" ;;
571
572   --x)
573     # Obsolete; use --with-x.
574     with_x=yes ;;
575
576   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577   | --x-incl | --x-inc | --x-in | --x-i)
578     ac_prev=x_includes ;;
579   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581     x_includes=$ac_optarg ;;
582
583   -x-libraries | --x-libraries | --x-librarie | --x-librari \
584   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585     ac_prev=x_libraries ;;
586   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588     x_libraries=$ac_optarg ;;
589
590   -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592    { (exit 1); exit 1; }; }
593     ;;
594
595   *=*)
596     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600    { (exit 1); exit 1; }; }
601     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602     eval "$ac_envvar='$ac_optarg'"
603     export $ac_envvar ;;
604
605   *)
606     # FIXME: should be removed in autoconf 3.0.
607     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611     ;;
612
613   esac
614 done
615
616 if test -n "$ac_prev"; then
617   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618   { echo "$as_me: error: missing argument to $ac_option" >&2
619    { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625   eval ac_val=$`echo $ac_var`
626   case $ac_val in
627     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629    { (exit 1); exit 1; }; };;
630   esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635               localstatedir libdir includedir oldincludedir infodir mandir
636 do
637   eval ac_val=$`echo $ac_var`
638   case $ac_val in
639     [\\/$]* | ?:[\\/]* ) ;;
640     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641    { (exit 1); exit 1; }; };;
642   esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654   if test "x$build_alias" = x; then
655     cross_compiling=maybe
656     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657     If a cross compiler is detected then cross compile mode will be used." >&2
658   elif test "x$build_alias" != "x$host_alias"; then
659     cross_compiling=yes
660   fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671   ac_srcdir_defaulted=yes
672   # Try the directory containing this script, then its parent.
673   ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675          X"$0" : 'X\(//\)[^/]' \| \
676          X"$0" : 'X\(//\)$' \| \
677          X"$0" : 'X\(/\)' \| \
678          .     : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682           /^X\(\/\/\)$/{ s//\1/; q; }
683           /^X\(\/\).*/{ s//\1/; q; }
684           s/.*/./; q'`
685   srcdir=$ac_confdir
686   if test ! -r $srcdir/$ac_unique_file; then
687     srcdir=..
688   fi
689 else
690   ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693   if test "$ac_srcdir_defaulted" = yes; then
694     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695    { (exit 1); exit 1; }; }
696   else
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698    { (exit 1); exit 1; }; }
699   fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703    { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733 ac_env_CPP_set=${CPP+set}
734 ac_env_CPP_value=$CPP
735 ac_cv_env_CPP_set=${CPP+set}
736 ac_cv_env_CPP_value=$CPP
737
738 #
739 # Report the --help message.
740 #
741 if test "$ac_init_help" = "long"; then
742   # Omit some internal or obsolete options to make the list less imposing.
743   # This message is too long to be a string in the A/UX 3.1 sh.
744   cat <<_ACEOF
745 \`configure' configures this package to adapt to many kinds of systems.
746
747 Usage: $0 [OPTION]... [VAR=VALUE]...
748
749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
750 VAR=VALUE.  See below for descriptions of some of the useful variables.
751
752 Defaults for the options are specified in brackets.
753
754 Configuration:
755   -h, --help              display this help and exit
756       --help=short        display options specific to this package
757       --help=recursive    display the short help of all the included packages
758   -V, --version           display version information and exit
759   -q, --quiet, --silent   do not print \`checking...' messages
760       --cache-file=FILE   cache test results in FILE [disabled]
761   -C, --config-cache      alias for \`--cache-file=config.cache'
762   -n, --no-create         do not create output files
763       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
764
765 _ACEOF
766
767   cat <<_ACEOF
768 Installation directories:
769   --prefix=PREFIX         install architecture-independent files in PREFIX
770                           [$ac_default_prefix]
771   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
772                           [PREFIX]
773
774 By default, \`make install' will install all the files in
775 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
776 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777 for instance \`--prefix=\$HOME'.
778
779 For better control, use the options below.
780
781 Fine tuning of the installation directories:
782   --bindir=DIR           user executables [EPREFIX/bin]
783   --sbindir=DIR          system admin executables [EPREFIX/sbin]
784   --libexecdir=DIR       program executables [EPREFIX/libexec]
785   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
786   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
787   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
788   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
789   --libdir=DIR           object code libraries [EPREFIX/lib]
790   --includedir=DIR       C header files [PREFIX/include]
791   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
792   --infodir=DIR          info documentation [PREFIX/info]
793   --mandir=DIR           man documentation [PREFIX/man]
794 _ACEOF
795
796   cat <<\_ACEOF
797 _ACEOF
798 fi
799
800 if test -n "$ac_init_help"; then
801
802   cat <<\_ACEOF
803
804 Optional Features:
805   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
806   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
807   --enable-heimdal-krb5             Enable if you have heimdal krb5
808
809 Optional Packages:
810   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
811   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
812   --with-rlm-krb5-lib-dir=DIR       Directory for krb5 library files
813   --with-rlm-krb5-include-dir=DIR   Directory for krb5 include files
814
815 Some influential environment variables:
816   CC          C compiler command
817   CFLAGS      C compiler flags
818   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
819               nonstandard directory <lib dir>
820   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
821               headers in a nonstandard directory <include dir>
822   CPP         C preprocessor
823
824 Use these variables to override the choices made by `configure' or to help
825 it to find libraries and programs with nonstandard names/locations.
826
827 _ACEOF
828 fi
829
830 if test "$ac_init_help" = "recursive"; then
831   # If there are subdirs, report their specific --help.
832   ac_popdir=`pwd`
833   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
834     test -d $ac_dir || continue
835     ac_builddir=.
836
837 if test "$ac_dir" != .; then
838   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
839   # A "../" for each directory in $ac_dir_suffix.
840   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
841 else
842   ac_dir_suffix= ac_top_builddir=
843 fi
844
845 case $srcdir in
846   .)  # No --srcdir option.  We are building in place.
847     ac_srcdir=.
848     if test -z "$ac_top_builddir"; then
849        ac_top_srcdir=.
850     else
851        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
852     fi ;;
853   [\\/]* | ?:[\\/]* )  # Absolute path.
854     ac_srcdir=$srcdir$ac_dir_suffix;
855     ac_top_srcdir=$srcdir ;;
856   *) # Relative path.
857     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
858     ac_top_srcdir=$ac_top_builddir$srcdir ;;
859 esac
860
861 # Do not use `cd foo && pwd` to compute absolute paths, because
862 # the directories may not exist.
863 case `pwd` in
864 .) ac_abs_builddir="$ac_dir";;
865 *)
866   case "$ac_dir" in
867   .) ac_abs_builddir=`pwd`;;
868   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
869   *) ac_abs_builddir=`pwd`/"$ac_dir";;
870   esac;;
871 esac
872 case $ac_abs_builddir in
873 .) ac_abs_top_builddir=${ac_top_builddir}.;;
874 *)
875   case ${ac_top_builddir}. in
876   .) ac_abs_top_builddir=$ac_abs_builddir;;
877   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
878   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
879   esac;;
880 esac
881 case $ac_abs_builddir in
882 .) ac_abs_srcdir=$ac_srcdir;;
883 *)
884   case $ac_srcdir in
885   .) ac_abs_srcdir=$ac_abs_builddir;;
886   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
887   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
888   esac;;
889 esac
890 case $ac_abs_builddir in
891 .) ac_abs_top_srcdir=$ac_top_srcdir;;
892 *)
893   case $ac_top_srcdir in
894   .) ac_abs_top_srcdir=$ac_abs_builddir;;
895   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
896   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
897   esac;;
898 esac
899
900     cd $ac_dir
901     # Check for guested configure; otherwise get Cygnus style configure.
902     if test -f $ac_srcdir/configure.gnu; then
903       echo
904       $SHELL $ac_srcdir/configure.gnu  --help=recursive
905     elif test -f $ac_srcdir/configure; then
906       echo
907       $SHELL $ac_srcdir/configure  --help=recursive
908     elif test -f $ac_srcdir/configure.ac ||
909            test -f $ac_srcdir/configure.in; then
910       echo
911       $ac_configure --help
912     else
913       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914     fi
915     cd "$ac_popdir"
916   done
917 fi
918
919 test -n "$ac_init_help" && exit 0
920 if $ac_init_version; then
921   cat <<\_ACEOF
922
923 Copyright (C) 2003 Free Software Foundation, Inc.
924 This configure script is free software; the Free Software Foundation
925 gives unlimited permission to copy, distribute and modify it.
926 _ACEOF
927   exit 0
928 fi
929 exec 5>config.log
930 cat >&5 <<_ACEOF
931 This file contains any messages produced by compilers while
932 running configure, to aid debugging if configure makes a mistake.
933
934 It was created by $as_me, which was
935 generated by GNU Autoconf 2.59.  Invocation command line was
936
937   $ $0 $@
938
939 _ACEOF
940 {
941 cat <<_ASUNAME
942 ## --------- ##
943 ## Platform. ##
944 ## --------- ##
945
946 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
947 uname -m = `(uname -m) 2>/dev/null || echo unknown`
948 uname -r = `(uname -r) 2>/dev/null || echo unknown`
949 uname -s = `(uname -s) 2>/dev/null || echo unknown`
950 uname -v = `(uname -v) 2>/dev/null || echo unknown`
951
952 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
953 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
954
955 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
956 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
957 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
958 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
959 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
960 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
961 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
962
963 _ASUNAME
964
965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
966 for as_dir in $PATH
967 do
968   IFS=$as_save_IFS
969   test -z "$as_dir" && as_dir=.
970   echo "PATH: $as_dir"
971 done
972
973 } >&5
974
975 cat >&5 <<_ACEOF
976
977
978 ## ----------- ##
979 ## Core tests. ##
980 ## ----------- ##
981
982 _ACEOF
983
984
985 # Keep a trace of the command line.
986 # Strip out --no-create and --no-recursion so they do not pile up.
987 # Strip out --silent because we don't want to record it for future runs.
988 # Also quote any args containing shell meta-characters.
989 # Make two passes to allow for proper duplicate-argument suppression.
990 ac_configure_args=
991 ac_configure_args0=
992 ac_configure_args1=
993 ac_sep=
994 ac_must_keep_next=false
995 for ac_pass in 1 2
996 do
997   for ac_arg
998   do
999     case $ac_arg in
1000     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1001     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002     | -silent | --silent | --silen | --sile | --sil)
1003       continue ;;
1004     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1005       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1006     esac
1007     case $ac_pass in
1008     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1009     2)
1010       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1011       if test $ac_must_keep_next = true; then
1012         ac_must_keep_next=false # Got value, back to normal.
1013       else
1014         case $ac_arg in
1015           *=* | --config-cache | -C | -disable-* | --disable-* \
1016           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1017           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1018           | -with-* | --with-* | -without-* | --without-* | --x)
1019             case "$ac_configure_args0 " in
1020               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1021             esac
1022             ;;
1023           -* ) ac_must_keep_next=true ;;
1024         esac
1025       fi
1026       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1027       # Get rid of the leading space.
1028       ac_sep=" "
1029       ;;
1030     esac
1031   done
1032 done
1033 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1034 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1035
1036 # When interrupted or exit'd, cleanup temporary files, and complete
1037 # config.log.  We remove comments because anyway the quotes in there
1038 # would cause problems or look ugly.
1039 # WARNING: Be sure not to use single quotes in there, as some shells,
1040 # such as our DU 5.0 friend, will then `close' the trap.
1041 trap 'exit_status=$?
1042   # Save into config.log some information that might help in debugging.
1043   {
1044     echo
1045
1046     cat <<\_ASBOX
1047 ## ---------------- ##
1048 ## Cache variables. ##
1049 ## ---------------- ##
1050 _ASBOX
1051     echo
1052     # The following way of writing the cache mishandles newlines in values,
1053 {
1054   (set) 2>&1 |
1055     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1056     *ac_space=\ *)
1057       sed -n \
1058         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1059           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1060       ;;
1061     *)
1062       sed -n \
1063         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1064       ;;
1065     esac;
1066 }
1067     echo
1068
1069     cat <<\_ASBOX
1070 ## ----------------- ##
1071 ## Output variables. ##
1072 ## ----------------- ##
1073 _ASBOX
1074     echo
1075     for ac_var in $ac_subst_vars
1076     do
1077       eval ac_val=$`echo $ac_var`
1078       echo "$ac_var='"'"'$ac_val'"'"'"
1079     done | sort
1080     echo
1081
1082     if test -n "$ac_subst_files"; then
1083       cat <<\_ASBOX
1084 ## ------------- ##
1085 ## Output files. ##
1086 ## ------------- ##
1087 _ASBOX
1088       echo
1089       for ac_var in $ac_subst_files
1090       do
1091         eval ac_val=$`echo $ac_var`
1092         echo "$ac_var='"'"'$ac_val'"'"'"
1093       done | sort
1094       echo
1095     fi
1096
1097     if test -s confdefs.h; then
1098       cat <<\_ASBOX
1099 ## ----------- ##
1100 ## confdefs.h. ##
1101 ## ----------- ##
1102 _ASBOX
1103       echo
1104       sed "/^$/d" confdefs.h | sort
1105       echo
1106     fi
1107     test "$ac_signal" != 0 &&
1108       echo "$as_me: caught signal $ac_signal"
1109     echo "$as_me: exit $exit_status"
1110   } >&5
1111   rm -f core *.core &&
1112   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1113     exit $exit_status
1114      ' 0
1115 for ac_signal in 1 2 13 15; do
1116   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1117 done
1118 ac_signal=0
1119
1120 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1121 rm -rf conftest* confdefs.h
1122 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1123 echo >confdefs.h
1124
1125 # Predefined preprocessor variables.
1126
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_NAME "$PACKAGE_NAME"
1129 _ACEOF
1130
1131
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1134 _ACEOF
1135
1136
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1139 _ACEOF
1140
1141
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_STRING "$PACKAGE_STRING"
1144 _ACEOF
1145
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1149 _ACEOF
1150
1151
1152 # Let the site file select an alternate cache file if it wants to.
1153 # Prefer explicitly selected file to automatically selected ones.
1154 if test -z "$CONFIG_SITE"; then
1155   if test "x$prefix" != xNONE; then
1156     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1157   else
1158     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1159   fi
1160 fi
1161 for ac_site_file in $CONFIG_SITE; do
1162   if test -r "$ac_site_file"; then
1163     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1164 echo "$as_me: loading site script $ac_site_file" >&6;}
1165     sed 's/^/| /' "$ac_site_file" >&5
1166     . "$ac_site_file"
1167   fi
1168 done
1169
1170 if test -r "$cache_file"; then
1171   # Some versions of bash will fail to source /dev/null (special
1172   # files actually), so we avoid doing that.
1173   if test -f "$cache_file"; then
1174     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1175 echo "$as_me: loading cache $cache_file" >&6;}
1176     case $cache_file in
1177       [\\/]* | ?:[\\/]* ) . $cache_file;;
1178       *)                      . ./$cache_file;;
1179     esac
1180   fi
1181 else
1182   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1183 echo "$as_me: creating cache $cache_file" >&6;}
1184   >$cache_file
1185 fi
1186
1187 # Check that the precious variables saved in the cache have kept the same
1188 # value.
1189 ac_cache_corrupted=false
1190 for ac_var in `(set) 2>&1 |
1191                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1192   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1193   eval ac_new_set=\$ac_env_${ac_var}_set
1194   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1195   eval ac_new_val="\$ac_env_${ac_var}_value"
1196   case $ac_old_set,$ac_new_set in
1197     set,)
1198       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1199 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1200       ac_cache_corrupted=: ;;
1201     ,set)
1202       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1203 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1204       ac_cache_corrupted=: ;;
1205     ,);;
1206     *)
1207       if test "x$ac_old_val" != "x$ac_new_val"; then
1208         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1209 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1210         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1211 echo "$as_me:   former value:  $ac_old_val" >&2;}
1212         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1213 echo "$as_me:   current value: $ac_new_val" >&2;}
1214         ac_cache_corrupted=:
1215       fi;;
1216   esac
1217   # Pass precious variables to config.status.
1218   if test "$ac_new_set" = set; then
1219     case $ac_new_val in
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     *) ac_arg=$ac_var=$ac_new_val ;;
1223     esac
1224     case " $ac_configure_args " in
1225       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1226       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1227     esac
1228   fi
1229 done
1230 if $ac_cache_corrupted; then
1231   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1232 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1233   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1234 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1235    { (exit 1); exit 1; }; }
1236 fi
1237
1238 ac_ext=c
1239 ac_cpp='$CPP $CPPFLAGS'
1240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265 if test x$with_rlm_krb5 != xno; then
1266
1267         ac_ext=c
1268 ac_cpp='$CPP $CPPFLAGS'
1269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272 if test -n "$ac_tool_prefix"; then
1273   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1275 echo "$as_me:$LINENO: checking for $ac_word" >&5
1276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1277 if test "${ac_cv_prog_CC+set}" = set; then
1278   echo $ECHO_N "(cached) $ECHO_C" >&6
1279 else
1280   if test -n "$CC"; then
1281   ac_cv_prog_CC="$CC" # Let the user override the test.
1282 else
1283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for as_dir in $PATH
1285 do
1286   IFS=$as_save_IFS
1287   test -z "$as_dir" && as_dir=.
1288   for ac_exec_ext in '' $ac_executable_extensions; do
1289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1290     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1292     break 2
1293   fi
1294 done
1295 done
1296
1297 fi
1298 fi
1299 CC=$ac_cv_prog_CC
1300 if test -n "$CC"; then
1301   echo "$as_me:$LINENO: result: $CC" >&5
1302 echo "${ECHO_T}$CC" >&6
1303 else
1304   echo "$as_me:$LINENO: result: no" >&5
1305 echo "${ECHO_T}no" >&6
1306 fi
1307
1308 fi
1309 if test -z "$ac_cv_prog_CC"; then
1310   ac_ct_CC=$CC
1311   # Extract the first word of "gcc", so it can be a program name with args.
1312 set dummy gcc; ac_word=$2
1313 echo "$as_me:$LINENO: checking for $ac_word" >&5
1314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1316   echo $ECHO_N "(cached) $ECHO_C" >&6
1317 else
1318   if test -n "$ac_ct_CC"; then
1319   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1320 else
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 for as_dir in $PATH
1323 do
1324   IFS=$as_save_IFS
1325   test -z "$as_dir" && as_dir=.
1326   for ac_exec_ext in '' $ac_executable_extensions; do
1327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328     ac_cv_prog_ac_ct_CC="gcc"
1329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330     break 2
1331   fi
1332 done
1333 done
1334
1335 fi
1336 fi
1337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1338 if test -n "$ac_ct_CC"; then
1339   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1340 echo "${ECHO_T}$ac_ct_CC" >&6
1341 else
1342   echo "$as_me:$LINENO: result: no" >&5
1343 echo "${ECHO_T}no" >&6
1344 fi
1345
1346   CC=$ac_ct_CC
1347 else
1348   CC="$ac_cv_prog_CC"
1349 fi
1350
1351 if test -z "$CC"; then
1352   if test -n "$ac_tool_prefix"; then
1353   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1354 set dummy ${ac_tool_prefix}cc; ac_word=$2
1355 echo "$as_me:$LINENO: checking for $ac_word" >&5
1356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1357 if test "${ac_cv_prog_CC+set}" = set; then
1358   echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360   if test -n "$CC"; then
1361   ac_cv_prog_CC="$CC" # Let the user override the test.
1362 else
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366   IFS=$as_save_IFS
1367   test -z "$as_dir" && as_dir=.
1368   for ac_exec_ext in '' $ac_executable_extensions; do
1369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1370     ac_cv_prog_CC="${ac_tool_prefix}cc"
1371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1372     break 2
1373   fi
1374 done
1375 done
1376
1377 fi
1378 fi
1379 CC=$ac_cv_prog_CC
1380 if test -n "$CC"; then
1381   echo "$as_me:$LINENO: result: $CC" >&5
1382 echo "${ECHO_T}$CC" >&6
1383 else
1384   echo "$as_me:$LINENO: result: no" >&5
1385 echo "${ECHO_T}no" >&6
1386 fi
1387
1388 fi
1389 if test -z "$ac_cv_prog_CC"; then
1390   ac_ct_CC=$CC
1391   # Extract the first word of "cc", so it can be a program name with args.
1392 set dummy cc; ac_word=$2
1393 echo "$as_me:$LINENO: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1396   echo $ECHO_N "(cached) $ECHO_C" >&6
1397 else
1398   if test -n "$ac_ct_CC"; then
1399   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1400 else
1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402 for as_dir in $PATH
1403 do
1404   IFS=$as_save_IFS
1405   test -z "$as_dir" && as_dir=.
1406   for ac_exec_ext in '' $ac_executable_extensions; do
1407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408     ac_cv_prog_ac_ct_CC="cc"
1409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410     break 2
1411   fi
1412 done
1413 done
1414
1415 fi
1416 fi
1417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1418 if test -n "$ac_ct_CC"; then
1419   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1420 echo "${ECHO_T}$ac_ct_CC" >&6
1421 else
1422   echo "$as_me:$LINENO: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1424 fi
1425
1426   CC=$ac_ct_CC
1427 else
1428   CC="$ac_cv_prog_CC"
1429 fi
1430
1431 fi
1432 if test -z "$CC"; then
1433   # Extract the first word of "cc", so it can be a program name with args.
1434 set dummy cc; ac_word=$2
1435 echo "$as_me:$LINENO: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_CC+set}" = set; then
1438   echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440   if test -n "$CC"; then
1441   ac_cv_prog_CC="$CC" # Let the user override the test.
1442 else
1443   ac_prog_rejected=no
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   for ac_exec_ext in '' $ac_executable_extensions; do
1450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1452        ac_prog_rejected=yes
1453        continue
1454      fi
1455     ac_cv_prog_CC="cc"
1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457     break 2
1458   fi
1459 done
1460 done
1461
1462 if test $ac_prog_rejected = yes; then
1463   # We found a bogon in the path, so make sure we never use it.
1464   set dummy $ac_cv_prog_CC
1465   shift
1466   if test $# != 0; then
1467     # We chose a different compiler from the bogus one.
1468     # However, it has the same basename, so the bogon will be chosen
1469     # first if we set CC to just the basename; use the full file name.
1470     shift
1471     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1472   fi
1473 fi
1474 fi
1475 fi
1476 CC=$ac_cv_prog_CC
1477 if test -n "$CC"; then
1478   echo "$as_me:$LINENO: result: $CC" >&5
1479 echo "${ECHO_T}$CC" >&6
1480 else
1481   echo "$as_me:$LINENO: result: no" >&5
1482 echo "${ECHO_T}no" >&6
1483 fi
1484
1485 fi
1486 if test -z "$CC"; then
1487   if test -n "$ac_tool_prefix"; then
1488   for ac_prog in cl
1489   do
1490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_CC+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   if test -n "$CC"; then
1498   ac_cv_prog_CC="$CC" # Let the user override the test.
1499 else
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514 fi
1515 fi
1516 CC=$ac_cv_prog_CC
1517 if test -n "$CC"; then
1518   echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1520 else
1521   echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1523 fi
1524
1525     test -n "$CC" && break
1526   done
1527 fi
1528 if test -z "$CC"; then
1529   ac_ct_CC=$CC
1530   for ac_prog in cl
1531 do
1532   # Extract the first word of "$ac_prog", so it can be a program name with args.
1533 set dummy $ac_prog; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1537   echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539   if test -n "$ac_ct_CC"; then
1540   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1541 else
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 for as_dir in $PATH
1544 do
1545   IFS=$as_save_IFS
1546   test -z "$as_dir" && as_dir=.
1547   for ac_exec_ext in '' $ac_executable_extensions; do
1548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549     ac_cv_prog_ac_ct_CC="$ac_prog"
1550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551     break 2
1552   fi
1553 done
1554 done
1555
1556 fi
1557 fi
1558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1559 if test -n "$ac_ct_CC"; then
1560   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1561 echo "${ECHO_T}$ac_ct_CC" >&6
1562 else
1563   echo "$as_me:$LINENO: result: no" >&5
1564 echo "${ECHO_T}no" >&6
1565 fi
1566
1567   test -n "$ac_ct_CC" && break
1568 done
1569
1570   CC=$ac_ct_CC
1571 fi
1572
1573 fi
1574
1575
1576 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1577 See \`config.log' for more details." >&5
1578 echo "$as_me: error: no acceptable C compiler found in \$PATH
1579 See \`config.log' for more details." >&2;}
1580    { (exit 1); exit 1; }; }
1581
1582 # Provide some information about the compiler.
1583 echo "$as_me:$LINENO:" \
1584      "checking for C compiler version" >&5
1585 ac_compiler=`set X $ac_compile; echo $2`
1586 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1587   (eval $ac_compiler --version </dev/null >&5) 2>&5
1588   ac_status=$?
1589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1590   (exit $ac_status); }
1591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1592   (eval $ac_compiler -v </dev/null >&5) 2>&5
1593   ac_status=$?
1594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595   (exit $ac_status); }
1596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1597   (eval $ac_compiler -V </dev/null >&5) 2>&5
1598   ac_status=$?
1599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1600   (exit $ac_status); }
1601
1602 cat >conftest.$ac_ext <<_ACEOF
1603 /* confdefs.h.  */
1604 _ACEOF
1605 cat confdefs.h >>conftest.$ac_ext
1606 cat >>conftest.$ac_ext <<_ACEOF
1607 /* end confdefs.h.  */
1608
1609 int
1610 main ()
1611 {
1612
1613   ;
1614   return 0;
1615 }
1616 _ACEOF
1617 ac_clean_files_save=$ac_clean_files
1618 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1619 # Try to create an executable without -o first, disregard a.out.
1620 # It will help us diagnose broken compilers, and finding out an intuition
1621 # of exeext.
1622 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1623 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1624 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1625 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1626   (eval $ac_link_default) 2>&5
1627   ac_status=$?
1628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1629   (exit $ac_status); }; then
1630   # Find the output, starting from the most likely.  This scheme is
1631 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1632 # resort.
1633
1634 # Be careful to initialize this variable, since it used to be cached.
1635 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1636 ac_cv_exeext=
1637 # b.out is created by i960 compilers.
1638 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1639 do
1640   test -f "$ac_file" || continue
1641   case $ac_file in
1642     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1643         ;;
1644     conftest.$ac_ext )
1645         # This is the source file.
1646         ;;
1647     [ab].out )
1648         # We found the default executable, but exeext='' is most
1649         # certainly right.
1650         break;;
1651     *.* )
1652         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1653         # FIXME: I believe we export ac_cv_exeext for Libtool,
1654         # but it would be cool to find out if it's true.  Does anybody
1655         # maintain Libtool? --akim.
1656         export ac_cv_exeext
1657         break;;
1658     * )
1659         break;;
1660   esac
1661 done
1662 else
1663   echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1667 See \`config.log' for more details." >&5
1668 echo "$as_me: error: C compiler cannot create executables
1669 See \`config.log' for more details." >&2;}
1670    { (exit 77); exit 77; }; }
1671 fi
1672
1673 ac_exeext=$ac_cv_exeext
1674 echo "$as_me:$LINENO: result: $ac_file" >&5
1675 echo "${ECHO_T}$ac_file" >&6
1676
1677 # Check the compiler produces executables we can run.  If not, either
1678 # the compiler is broken, or we cross compile.
1679 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1680 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1681 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1682 # If not cross compiling, check that we can run a simple program.
1683 if test "$cross_compiling" != yes; then
1684   if { ac_try='./$ac_file'
1685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1686   (eval $ac_try) 2>&5
1687   ac_status=$?
1688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689   (exit $ac_status); }; }; then
1690     cross_compiling=no
1691   else
1692     if test "$cross_compiling" = maybe; then
1693         cross_compiling=yes
1694     else
1695         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1696 If you meant to cross compile, use \`--host'.
1697 See \`config.log' for more details." >&5
1698 echo "$as_me: error: cannot run C compiled programs.
1699 If you meant to cross compile, use \`--host'.
1700 See \`config.log' for more details." >&2;}
1701    { (exit 1); exit 1; }; }
1702     fi
1703   fi
1704 fi
1705 echo "$as_me:$LINENO: result: yes" >&5
1706 echo "${ECHO_T}yes" >&6
1707
1708 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1709 ac_clean_files=$ac_clean_files_save
1710 # Check the compiler produces executables we can run.  If not, either
1711 # the compiler is broken, or we cross compile.
1712 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1713 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1714 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1715 echo "${ECHO_T}$cross_compiling" >&6
1716
1717 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1718 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1720   (eval $ac_link) 2>&5
1721   ac_status=$?
1722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723   (exit $ac_status); }; then
1724   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1725 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1726 # work properly (i.e., refer to `conftest.exe'), while it won't with
1727 # `rm'.
1728 for ac_file in conftest.exe conftest conftest.*; do
1729   test -f "$ac_file" || continue
1730   case $ac_file in
1731     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1732     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1733           export ac_cv_exeext
1734           break;;
1735     * ) break;;
1736   esac
1737 done
1738 else
1739   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1742 See \`config.log' for more details." >&2;}
1743    { (exit 1); exit 1; }; }
1744 fi
1745
1746 rm -f conftest$ac_cv_exeext
1747 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1748 echo "${ECHO_T}$ac_cv_exeext" >&6
1749
1750 rm -f conftest.$ac_ext
1751 EXEEXT=$ac_cv_exeext
1752 ac_exeext=$EXEEXT
1753 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1754 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1755 if test "${ac_cv_objext+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   cat >conftest.$ac_ext <<_ACEOF
1759 /* confdefs.h.  */
1760 _ACEOF
1761 cat confdefs.h >>conftest.$ac_ext
1762 cat >>conftest.$ac_ext <<_ACEOF
1763 /* end confdefs.h.  */
1764
1765 int
1766 main ()
1767 {
1768
1769   ;
1770   return 0;
1771 }
1772 _ACEOF
1773 rm -f conftest.o conftest.obj
1774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1775   (eval $ac_compile) 2>&5
1776   ac_status=$?
1777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778   (exit $ac_status); }; then
1779   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1780   case $ac_file in
1781     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1782     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1783        break;;
1784   esac
1785 done
1786 else
1787   echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1793 See \`config.log' for more details." >&2;}
1794    { (exit 1); exit 1; }; }
1795 fi
1796
1797 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1798 fi
1799 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1800 echo "${ECHO_T}$ac_cv_objext" >&6
1801 OBJEXT=$ac_cv_objext
1802 ac_objext=$OBJEXT
1803 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1804 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1805 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   cat >conftest.$ac_ext <<_ACEOF
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818 #ifndef __GNUC__
1819        choke me
1820 #endif
1821
1822   ;
1823   return 0;
1824 }
1825 _ACEOF
1826 rm -f conftest.$ac_objext
1827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1828   (eval $ac_compile) 2>conftest.er1
1829   ac_status=$?
1830   grep -v '^ *+' conftest.er1 >conftest.err
1831   rm -f conftest.er1
1832   cat conftest.err >&5
1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834   (exit $ac_status); } &&
1835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
1841          { ac_try='test -s conftest.$ac_objext'
1842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1843   (eval $ac_try) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }; }; then
1847   ac_compiler_gnu=yes
1848 else
1849   echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_compiler_gnu=no
1853 fi
1854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1855 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1856
1857 fi
1858 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1859 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1860 GCC=`test $ac_compiler_gnu = yes && echo yes`
1861 ac_test_CFLAGS=${CFLAGS+set}
1862 ac_save_CFLAGS=$CFLAGS
1863 CFLAGS="-g"
1864 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1865 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1866 if test "${ac_cv_prog_cc_g+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   cat >conftest.$ac_ext <<_ACEOF
1870 /* confdefs.h.  */
1871 _ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h.  */
1875
1876 int
1877 main ()
1878 {
1879
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886   (eval $ac_compile) 2>conftest.er1
1887   ac_status=$?
1888   grep -v '^ *+' conftest.er1 >conftest.err
1889   rm -f conftest.er1
1890   cat conftest.err >&5
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); } &&
1893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895   (eval $ac_try) 2>&5
1896   ac_status=$?
1897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898   (exit $ac_status); }; } &&
1899          { ac_try='test -s conftest.$ac_objext'
1900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901   (eval $ac_try) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }; }; then
1905   ac_cv_prog_cc_g=yes
1906 else
1907   echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_cv_prog_cc_g=no
1911 fi
1912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1915 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1916 if test "$ac_test_CFLAGS" = set; then
1917   CFLAGS=$ac_save_CFLAGS
1918 elif test $ac_cv_prog_cc_g = yes; then
1919   if test "$GCC" = yes; then
1920     CFLAGS="-g -O2"
1921   else
1922     CFLAGS="-g"
1923   fi
1924 else
1925   if test "$GCC" = yes; then
1926     CFLAGS="-O2"
1927   else
1928     CFLAGS=
1929   fi
1930 fi
1931 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1932 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1933 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   ac_cv_prog_cc_stdc=no
1937 ac_save_CC=$CC
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h.  */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h.  */
1944 #include <stdarg.h>
1945 #include <stdio.h>
1946 #include <sys/types.h>
1947 #include <sys/stat.h>
1948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1949 struct buf { int x; };
1950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1951 static char *e (p, i)
1952      char **p;
1953      int i;
1954 {
1955   return p[i];
1956 }
1957 static char *f (char * (*g) (char **, int), char **p, ...)
1958 {
1959   char *s;
1960   va_list v;
1961   va_start (v,p);
1962   s = g (p, va_arg (v,int));
1963   va_end (v);
1964   return s;
1965 }
1966
1967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1968    function prototypes and stuff, but not '\xHH' hex character constants.
1969    These don't provoke an error unfortunately, instead are silently treated
1970    as 'x'.  The following induces an error, until -std1 is added to get
1971    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1972    array size at least.  It's necessary to write '\x00'==0 to get something
1973    that's true only with -std1.  */
1974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1975
1976 int test (int i, double x);
1977 struct s1 {int (*f) (int a);};
1978 struct s2 {int (*f) (double a);};
1979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1980 int argc;
1981 char **argv;
1982 int
1983 main ()
1984 {
1985 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 # Don't try gcc -ansi; that turns off useful extensions and
1991 # breaks some systems' header files.
1992 # AIX                   -qlanglvl=ansi
1993 # Ultrix and OSF/1      -std1
1994 # HP-UX 10.20 and later -Ae
1995 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1996 # SVR4                  -Xc -D__EXTENSIONS__
1997 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1998 do
1999   CC="$ac_save_CC $ac_arg"
2000   rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002   (eval $ac_compile) 2>conftest.er1
2003   ac_status=$?
2004   grep -v '^ *+' conftest.er1 >conftest.err
2005   rm -f conftest.er1
2006   cat conftest.err >&5
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); } &&
2009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011   (eval $ac_try) 2>&5
2012   ac_status=$?
2013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014   (exit $ac_status); }; } &&
2015          { ac_try='test -s conftest.$ac_objext'
2016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017   (eval $ac_try) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }; }; then
2021   ac_cv_prog_cc_stdc=$ac_arg
2022 break
2023 else
2024   echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 fi
2028 rm -f conftest.err conftest.$ac_objext
2029 done
2030 rm -f conftest.$ac_ext conftest.$ac_objext
2031 CC=$ac_save_CC
2032
2033 fi
2034
2035 case "x$ac_cv_prog_cc_stdc" in
2036   x|xno)
2037     echo "$as_me:$LINENO: result: none needed" >&5
2038 echo "${ECHO_T}none needed" >&6 ;;
2039   *)
2040     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2041 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2042     CC="$CC $ac_cv_prog_cc_stdc" ;;
2043 esac
2044
2045 # Some people use a C++ compiler to compile C.  Since we use `exit',
2046 # in C++ we need to declare it.  In case someone uses the same compiler
2047 # for both compiling C and C++ we need to have the C++ compiler decide
2048 # the declaration of exit, since it's the most demanding environment.
2049 cat >conftest.$ac_ext <<_ACEOF
2050 #ifndef __cplusplus
2051   choke me
2052 #endif
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056   (eval $ac_compile) 2>conftest.er1
2057   ac_status=$?
2058   grep -v '^ *+' conftest.er1 >conftest.err
2059   rm -f conftest.er1
2060   cat conftest.err >&5
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); } &&
2063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065   (eval $ac_try) 2>&5
2066   ac_status=$?
2067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068   (exit $ac_status); }; } &&
2069          { ac_try='test -s conftest.$ac_objext'
2070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071   (eval $ac_try) 2>&5
2072   ac_status=$?
2073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074   (exit $ac_status); }; }; then
2075   for ac_declaration in \
2076    '' \
2077    'extern "C" void std::exit (int) throw (); using std::exit;' \
2078    'extern "C" void std::exit (int); using std::exit;' \
2079    'extern "C" void exit (int) throw ();' \
2080    'extern "C" void exit (int);' \
2081    'void exit (int);'
2082 do
2083   cat >conftest.$ac_ext <<_ACEOF
2084 /* confdefs.h.  */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h.  */
2089 $ac_declaration
2090 #include <stdlib.h>
2091 int
2092 main ()
2093 {
2094 exit (42);
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>conftest.er1
2102   ac_status=$?
2103   grep -v '^ *+' conftest.er1 >conftest.err
2104   rm -f conftest.er1
2105   cat conftest.err >&5
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); } &&
2108          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110   (eval $ac_try) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }; } &&
2114          { ac_try='test -s conftest.$ac_objext'
2115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116   (eval $ac_try) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; }; then
2120   :
2121 else
2122   echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 continue
2126 fi
2127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2128   cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h.  */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h.  */
2134 $ac_declaration
2135 int
2136 main ()
2137 {
2138 exit (42);
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145   (eval $ac_compile) 2>conftest.er1
2146   ac_status=$?
2147   grep -v '^ *+' conftest.er1 >conftest.err
2148   rm -f conftest.er1
2149   cat conftest.err >&5
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; } &&
2158          { ac_try='test -s conftest.$ac_objext'
2159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160   (eval $ac_try) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; }; then
2164   break
2165 else
2166   echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 fi
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171 done
2172 rm -f conftest*
2173 if test -n "$ac_declaration"; then
2174   echo '#ifdef __cplusplus' >>confdefs.h
2175   echo $ac_declaration      >>confdefs.h
2176   echo '#endif'             >>confdefs.h
2177 fi
2178
2179 else
2180   echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2182
2183 fi
2184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191         ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2197 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2198 # On Suns, sometimes $CPP names a directory.
2199 if test -n "$CPP" && test -d "$CPP"; then
2200   CPP=
2201 fi
2202 if test -z "$CPP"; then
2203   if test "${ac_cv_prog_CPP+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206       # Double quotes because CPP needs to be expanded
2207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2208     do
2209       ac_preproc_ok=false
2210 for ac_c_preproc_warn_flag in '' yes
2211 do
2212   # Use a header file that comes with gcc, so configuring glibc
2213   # with a fresh cross-compiler works.
2214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2215   # <limits.h> exists even on freestanding compilers.
2216   # On the NeXT, cc -E runs the code through the compiler's parser,
2217   # not just through cpp. "Syntax error" is here to catch this case.
2218   cat >conftest.$ac_ext <<_ACEOF
2219 /* confdefs.h.  */
2220 _ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h.  */
2224 #ifdef __STDC__
2225 # include <limits.h>
2226 #else
2227 # include <assert.h>
2228 #endif
2229                      Syntax error
2230 _ACEOF
2231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2233   ac_status=$?
2234   grep -v '^ *+' conftest.er1 >conftest.err
2235   rm -f conftest.er1
2236   cat conftest.err >&5
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } >/dev/null; then
2239   if test -s conftest.err; then
2240     ac_cpp_err=$ac_c_preproc_warn_flag
2241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2242   else
2243     ac_cpp_err=
2244   fi
2245 else
2246   ac_cpp_err=yes
2247 fi
2248 if test -z "$ac_cpp_err"; then
2249   :
2250 else
2251   echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254   # Broken: fails on valid input.
2255 continue
2256 fi
2257 rm -f conftest.err conftest.$ac_ext
2258
2259   # OK, works on sane cases.  Now check whether non-existent headers
2260   # can be detected and how.
2261   cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h.  */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h.  */
2267 #include <ac_nonexistent.h>
2268 _ACEOF
2269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2271   ac_status=$?
2272   grep -v '^ *+' conftest.er1 >conftest.err
2273   rm -f conftest.er1
2274   cat conftest.err >&5
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); } >/dev/null; then
2277   if test -s conftest.err; then
2278     ac_cpp_err=$ac_c_preproc_warn_flag
2279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2280   else
2281     ac_cpp_err=
2282   fi
2283 else
2284   ac_cpp_err=yes
2285 fi
2286 if test -z "$ac_cpp_err"; then
2287   # Broken: success on invalid input.
2288 continue
2289 else
2290   echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293   # Passes both tests.
2294 ac_preproc_ok=:
2295 break
2296 fi
2297 rm -f conftest.err conftest.$ac_ext
2298
2299 done
2300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2301 rm -f conftest.err conftest.$ac_ext
2302 if $ac_preproc_ok; then
2303   break
2304 fi
2305
2306     done
2307     ac_cv_prog_CPP=$CPP
2308
2309 fi
2310   CPP=$ac_cv_prog_CPP
2311 else
2312   ac_cv_prog_CPP=$CPP
2313 fi
2314 echo "$as_me:$LINENO: result: $CPP" >&5
2315 echo "${ECHO_T}$CPP" >&6
2316 ac_preproc_ok=false
2317 for ac_c_preproc_warn_flag in '' yes
2318 do
2319   # Use a header file that comes with gcc, so configuring glibc
2320   # with a fresh cross-compiler works.
2321   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2322   # <limits.h> exists even on freestanding compilers.
2323   # On the NeXT, cc -E runs the code through the compiler's parser,
2324   # not just through cpp. "Syntax error" is here to catch this case.
2325   cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h.  */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h.  */
2331 #ifdef __STDC__
2332 # include <limits.h>
2333 #else
2334 # include <assert.h>
2335 #endif
2336                      Syntax error
2337 _ACEOF
2338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2340   ac_status=$?
2341   grep -v '^ *+' conftest.er1 >conftest.err
2342   rm -f conftest.er1
2343   cat conftest.err >&5
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); } >/dev/null; then
2346   if test -s conftest.err; then
2347     ac_cpp_err=$ac_c_preproc_warn_flag
2348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2349   else
2350     ac_cpp_err=
2351   fi
2352 else
2353   ac_cpp_err=yes
2354 fi
2355 if test -z "$ac_cpp_err"; then
2356   :
2357 else
2358   echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361   # Broken: fails on valid input.
2362 continue
2363 fi
2364 rm -f conftest.err conftest.$ac_ext
2365
2366   # OK, works on sane cases.  Now check whether non-existent headers
2367   # can be detected and how.
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374 #include <ac_nonexistent.h>
2375 _ACEOF
2376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2378   ac_status=$?
2379   grep -v '^ *+' conftest.er1 >conftest.err
2380   rm -f conftest.er1
2381   cat conftest.err >&5
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } >/dev/null; then
2384   if test -s conftest.err; then
2385     ac_cpp_err=$ac_c_preproc_warn_flag
2386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2387   else
2388     ac_cpp_err=
2389   fi
2390 else
2391   ac_cpp_err=yes
2392 fi
2393 if test -z "$ac_cpp_err"; then
2394   # Broken: success on invalid input.
2395 continue
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400   # Passes both tests.
2401 ac_preproc_ok=:
2402 break
2403 fi
2404 rm -f conftest.err conftest.$ac_ext
2405
2406 done
2407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2408 rm -f conftest.err conftest.$ac_ext
2409 if $ac_preproc_ok; then
2410   :
2411 else
2412   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2415 See \`config.log' for more details." >&2;}
2416    { (exit 1); exit 1; }; }
2417 fi
2418
2419 ac_ext=c
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426                 rlm_krb5_lib_dir=
2427
2428 # Check whether --with-rlm-krb5-lib-dir or --without-rlm-krb5-lib-dir was given.
2429 if test "${with_rlm_krb5_lib_dir+set}" = set; then
2430   withval="$with_rlm_krb5_lib_dir"
2431    case "$withval" in
2432             no)
2433                 { { echo "$as_me:$LINENO: error: Need rlm-krb5-lib-dir" >&5
2434 echo "$as_me: error: Need rlm-krb5-lib-dir" >&2;}
2435    { (exit 1); exit 1; }; }
2436                 ;;
2437             yes)
2438                 ;;
2439             *)
2440                 rlm_krb5_lib_dir="$withval"
2441                 ;;
2442           esac
2443
2444 fi;
2445
2446                 rlm_krb5_inc_dir=
2447
2448 # Check whether --with-rlm-krb5-include-dir or --without-rlm-krb5-include-dir was given.
2449 if test "${with_rlm_krb5_include_dir+set}" = set; then
2450   withval="$with_rlm_krb5_include_dir"
2451    case "$withval" in
2452             no)
2453                 { { echo "$as_me:$LINENO: error: Need rlm-krb5-include-dir" >&5
2454 echo "$as_me: error: Need rlm-krb5-include-dir" >&2;}
2455    { (exit 1); exit 1; }; }
2456                 ;;
2457             yes)
2458                 ;;
2459             *)
2460                 rlm_krb5_include_dir="$withval"
2461                 ;;
2462           esac
2463
2464 fi;
2465
2466               # Check whether --enable-heimdal-krb5 or --disable-heimdal-krb5 was given.
2467 if test "${enable_heimdal_krb5+set}" = set; then
2468   enableval="$enable_heimdal_krb5"
2469    case "$enableval" in
2470                yes)
2471                        krb5_h_cflags="-DHEIMDAL_KRB5"
2472                        ;;
2473          esac
2474
2475 fi;
2476
2477         smart_try_dir=$rlm_krb5_include_dir
2478
2479
2480
2481 ac_safe=`echo "krb5.h" | sed 'y%./+-%__pm%'`
2482 echo "$as_me:$LINENO: checking for krb5.h" >&5
2483 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
2484
2485 old_CFLAGS="$CFLAGS"
2486 smart_include=
2487 smart_include_dir=
2488
2489 if test "x$smart_try_dir" != "x"; then
2490   for try in $smart_try_dir; do
2491     CFLAGS="$old_CFLAGS -I$try"
2492     cat >conftest.$ac_ext <<_ACEOF
2493 /* confdefs.h.  */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h.  */
2498
2499                     #include <krb5.h>
2500 int
2501 main ()
2502 {
2503  int a = 1;
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 rm -f conftest.$ac_objext
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510   (eval $ac_compile) 2>conftest.er1
2511   ac_status=$?
2512   grep -v '^ *+' conftest.er1 >conftest.err
2513   rm -f conftest.er1
2514   cat conftest.err >&5
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); } &&
2517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519   (eval $ac_try) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529   smart_include="-I$try"
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 smart_include=
2535 fi
2536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2537     if test "x$smart_include" != "x"; then
2538       break;
2539     fi
2540     CFLAGS="$old_CFLAGS"
2541   done
2542 fi
2543
2544 if test "x$smart_include" = "x"; then
2545   cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h.  */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h.  */
2551
2552                   #include <krb5.h>
2553 int
2554 main ()
2555 {
2556  int a = 1;
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563   (eval $ac_compile) 2>conftest.er1
2564   ac_status=$?
2565   grep -v '^ *+' conftest.er1 >conftest.err
2566   rm -f conftest.er1
2567   cat conftest.err >&5
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } &&
2570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   smart_include=" "
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 smart_include=
2588 fi
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 fi
2591
2592 if test "x$smart_include" = "x"; then
2593
2594
2595 if test "x$LOCATE" != "x"; then
2596         DIRS=
2597   file=krb5.h
2598
2599   for x in `${LOCATE} $file 2>/dev/null`; do
2600                                         base=`echo $x | sed "s%/${file}%%"`
2601     if test "x$x" = "x$base"; then
2602       continue;
2603     fi
2604
2605     dir=`${DIRNAME} $x 2>/dev/null`
2606                 exclude=`echo ${dir} | ${GREP} /home`
2607     if test "x$exclude" != "x"; then
2608       continue
2609     fi
2610
2611                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2612     if test "x$already" = "x"; then
2613       DIRS="$DIRS $dir"
2614     fi
2615   done
2616 fi
2617
2618 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2619
2620
2621   for try in $smart_include_dir /usr/local/include /opt/include; do
2622     CFLAGS="$old_CFLAGS -I$try"
2623     cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630                     #include <krb5.h>
2631 int
2632 main ()
2633 {
2634  int a = 1;
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } &&
2648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650   (eval $ac_try) 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; } &&
2654          { ac_try='test -s conftest.$ac_objext'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; }; then
2660   smart_include="-I$try"
2661 else
2662   echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 smart_include=
2666 fi
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668     if test "x$smart_include" != "x"; then
2669       break;
2670     fi
2671     CFLAGS="$old_CFLAGS"
2672   done
2673 fi
2674
2675 if test "x$smart_include" != "x"; then
2676   echo "$as_me:$LINENO: result: yes" >&5
2677 echo "${ECHO_T}yes" >&6
2678   eval "ac_cv_header_$ac_safe=yes"
2679   CFLAGS="$old_CFLAGS $smart_include"
2680   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2681 else
2682   echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2684 fi
2685
2686
2687         smart_try_dir=$rlm_krb5_lib_dir
2688
2689
2690
2691 sm_lib_safe=`echo "k5crypto" | sed 'y%./+-%__p_%'`
2692 sm_func_safe=`echo "krb5_encrypt_data" | sed 'y%./+-%__p_%'`
2693 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
2694 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
2695
2696 old_LIBS="$LIBS"
2697 smart_lib=
2698 smart_lib_dir=
2699
2700 if test "x$smart_try_dir" != "x"; then
2701   for try in $smart_try_dir; do
2702     LIBS="-L$try -lk5crypto $old_LIBS"
2703     cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h.  */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h.  */
2709 extern char krb5_encrypt_data();
2710 int
2711 main ()
2712 {
2713  krb5_encrypt_data()
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext conftest$ac_exeext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2720   (eval $ac_link) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; } &&
2733          { ac_try='test -s conftest$ac_exeext'
2734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; }; then
2739   smart_lib="-L$try -lk5crypto"
2740 else
2741   echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 fi
2745 rm -f conftest.err conftest.$ac_objext \
2746       conftest$ac_exeext conftest.$ac_ext
2747     if test "x$smart_lib" != "x"; then
2748       break;
2749     fi
2750     LIBS="$old_LIBS"
2751   done
2752 fi
2753
2754 if test "x$smart_lib" = "x"; then
2755   LIBS="-lk5crypto $old_LIBS"
2756   cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h.  */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h.  */
2762 extern char krb5_encrypt_data();
2763 int
2764 main ()
2765 {
2766  krb5_encrypt_data()
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 rm -f conftest.$ac_objext conftest$ac_exeext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2773   (eval $ac_link) 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; } &&
2786          { ac_try='test -s conftest$ac_exeext'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; }; then
2792   smart_lib="-lk5crypto"
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 fi
2798 rm -f conftest.err conftest.$ac_objext \
2799       conftest$ac_exeext conftest.$ac_ext
2800   LIBS="$old_LIBS"
2801 fi
2802
2803 if test "x$smart_lib" = "x"; then
2804
2805
2806 if test "x$LOCATE" != "x"; then
2807         DIRS=
2808   file=libk5crypto${libltdl_cv_shlibext}
2809
2810   for x in `${LOCATE} $file 2>/dev/null`; do
2811                                         base=`echo $x | sed "s%/${file}%%"`
2812     if test "x$x" = "x$base"; then
2813       continue;
2814     fi
2815
2816     dir=`${DIRNAME} $x 2>/dev/null`
2817                 exclude=`echo ${dir} | ${GREP} /home`
2818     if test "x$exclude" != "x"; then
2819       continue
2820     fi
2821
2822                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2823     if test "x$already" = "x"; then
2824       DIRS="$DIRS $dir"
2825     fi
2826   done
2827 fi
2828
2829 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2830
2831
2832
2833 if test "x$LOCATE" != "x"; then
2834         DIRS=
2835   file=libk5crypto.a
2836
2837   for x in `${LOCATE} $file 2>/dev/null`; do
2838                                         base=`echo $x | sed "s%/${file}%%"`
2839     if test "x$x" = "x$base"; then
2840       continue;
2841     fi
2842
2843     dir=`${DIRNAME} $x 2>/dev/null`
2844                 exclude=`echo ${dir} | ${GREP} /home`
2845     if test "x$exclude" != "x"; then
2846       continue
2847     fi
2848
2849                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2850     if test "x$already" = "x"; then
2851       DIRS="$DIRS $dir"
2852     fi
2853   done
2854 fi
2855
2856 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2857
2858
2859   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2860     LIBS="-L$try -lk5crypto $old_LIBS"
2861     cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 extern char krb5_encrypt_data();
2868 int
2869 main ()
2870 {
2871  krb5_encrypt_data()
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext conftest$ac_exeext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2878   (eval $ac_link) 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } &&
2885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; } &&
2891          { ac_try='test -s conftest$ac_exeext'
2892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; }; then
2897   smart_lib="-L$try -lk5crypto"
2898 else
2899   echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902 fi
2903 rm -f conftest.err conftest.$ac_objext \
2904       conftest$ac_exeext conftest.$ac_ext
2905     if test "x$smart_lib" != "x"; then
2906       break;
2907     fi
2908     LIBS="$old_LIBS"
2909   done
2910 fi
2911
2912 if test "x$smart_lib" != "x"; then
2913   echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6
2915   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2916   LIBS="$smart_lib $old_LIBS"
2917   SMART_LIBS="$smart_lib $SMART_LIBS"
2918 else
2919   echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2921 fi
2922
2923         if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = "xyes"; then
2924                 krb5libcrypto="-lk5crypto"
2925         fi
2926
2927
2928
2929 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
2930 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
2931 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
2932 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
2933
2934 old_LIBS="$LIBS"
2935 smart_lib=
2936 smart_lib_dir=
2937
2938 if test "x$smart_try_dir" != "x"; then
2939   for try in $smart_try_dir; do
2940     LIBS="-L$try -lcrypto $old_LIBS"
2941     cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947 extern char DH_new();
2948 int
2949 main ()
2950 {
2951  DH_new()
2952   ;
2953   return 0;
2954 }
2955 _ACEOF
2956 rm -f conftest.$ac_objext conftest$ac_exeext
2957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958   (eval $ac_link) 2>conftest.er1
2959   ac_status=$?
2960   grep -v '^ *+' conftest.er1 >conftest.err
2961   rm -f conftest.er1
2962   cat conftest.err >&5
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); } &&
2965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; } &&
2971          { ac_try='test -s conftest$ac_exeext'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; }; then
2977   smart_lib="-L$try -lcrypto"
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 fi
2983 rm -f conftest.err conftest.$ac_objext \
2984       conftest$ac_exeext conftest.$ac_ext
2985     if test "x$smart_lib" != "x"; then
2986       break;
2987     fi
2988     LIBS="$old_LIBS"
2989   done
2990 fi
2991
2992 if test "x$smart_lib" = "x"; then
2993   LIBS="-lcrypto $old_LIBS"
2994   cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000 extern char DH_new();
3001 int
3002 main ()
3003 {
3004  DH_new()
3005   ;
3006   return 0;
3007 }
3008 _ACEOF
3009 rm -f conftest.$ac_objext conftest$ac_exeext
3010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3011   (eval $ac_link) 2>conftest.er1
3012   ac_status=$?
3013   grep -v '^ *+' conftest.er1 >conftest.err
3014   rm -f conftest.er1
3015   cat conftest.err >&5
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); } &&
3018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020   (eval $ac_try) 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }; } &&
3024          { ac_try='test -s conftest$ac_exeext'
3025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030   smart_lib="-lcrypto"
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 fi
3036 rm -f conftest.err conftest.$ac_objext \
3037       conftest$ac_exeext conftest.$ac_ext
3038   LIBS="$old_LIBS"
3039 fi
3040
3041 if test "x$smart_lib" = "x"; then
3042
3043
3044 if test "x$LOCATE" != "x"; then
3045         DIRS=
3046   file=libcrypto${libltdl_cv_shlibext}
3047
3048   for x in `${LOCATE} $file 2>/dev/null`; do
3049                                         base=`echo $x | sed "s%/${file}%%"`
3050     if test "x$x" = "x$base"; then
3051       continue;
3052     fi
3053
3054     dir=`${DIRNAME} $x 2>/dev/null`
3055                 exclude=`echo ${dir} | ${GREP} /home`
3056     if test "x$exclude" != "x"; then
3057       continue
3058     fi
3059
3060                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3061     if test "x$already" = "x"; then
3062       DIRS="$DIRS $dir"
3063     fi
3064   done
3065 fi
3066
3067 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3068
3069
3070
3071 if test "x$LOCATE" != "x"; then
3072         DIRS=
3073   file=libcrypto.a
3074
3075   for x in `${LOCATE} $file 2>/dev/null`; do
3076                                         base=`echo $x | sed "s%/${file}%%"`
3077     if test "x$x" = "x$base"; then
3078       continue;
3079     fi
3080
3081     dir=`${DIRNAME} $x 2>/dev/null`
3082                 exclude=`echo ${dir} | ${GREP} /home`
3083     if test "x$exclude" != "x"; then
3084       continue
3085     fi
3086
3087                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3088     if test "x$already" = "x"; then
3089       DIRS="$DIRS $dir"
3090     fi
3091   done
3092 fi
3093
3094 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3095
3096
3097   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3098     LIBS="-L$try -lcrypto $old_LIBS"
3099     cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h.  */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h.  */
3105 extern char DH_new();
3106 int
3107 main ()
3108 {
3109  DH_new()
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext conftest$ac_exeext
3115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3116   (eval $ac_link) 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125   (eval $ac_try) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; } &&
3129          { ac_try='test -s conftest$ac_exeext'
3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131   (eval $ac_try) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; }; then
3135   smart_lib="-L$try -lcrypto"
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 fi
3141 rm -f conftest.err conftest.$ac_objext \
3142       conftest$ac_exeext conftest.$ac_ext
3143     if test "x$smart_lib" != "x"; then
3144       break;
3145     fi
3146     LIBS="$old_LIBS"
3147   done
3148 fi
3149
3150 if test "x$smart_lib" != "x"; then
3151   echo "$as_me:$LINENO: result: yes" >&5
3152 echo "${ECHO_T}yes" >&6
3153   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3154   LIBS="$smart_lib $old_LIBS"
3155   SMART_LIBS="$smart_lib $SMART_LIBS"
3156 else
3157   echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3159 fi
3160
3161         if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
3162                 krb5libcrypto="-lcrypto"
3163         fi
3164
3165         if test x$krb5libcrypto = x; then
3166                 { echo "$as_me:$LINENO: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
3167 echo "$as_me: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&2;}
3168         fi
3169
3170
3171
3172 sm_lib_safe=`echo "com_err" | sed 'y%./+-%__p_%'`
3173 sm_func_safe=`echo "set_com_err_hook" | sed 'y%./+-%__p_%'`
3174 echo "$as_me:$LINENO: checking for set_com_err_hook in -lcom_err" >&5
3175 echo $ECHO_N "checking for set_com_err_hook in -lcom_err... $ECHO_C" >&6
3176
3177 old_LIBS="$LIBS"
3178 smart_lib=
3179 smart_lib_dir=
3180
3181 if test "x$smart_try_dir" != "x"; then
3182   for try in $smart_try_dir; do
3183     LIBS="-L$try -lcom_err $old_LIBS"
3184     cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 extern char set_com_err_hook();
3191 int
3192 main ()
3193 {
3194  set_com_err_hook()
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext conftest$ac_exeext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3201   (eval $ac_link) 2>conftest.er1
3202   ac_status=$?
3203   grep -v '^ *+' conftest.er1 >conftest.err
3204   rm -f conftest.er1
3205   cat conftest.err >&5
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); } &&
3208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210   (eval $ac_try) 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; } &&
3214          { ac_try='test -s conftest$ac_exeext'
3215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; }; then
3220   smart_lib="-L$try -lcom_err"
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 fi
3226 rm -f conftest.err conftest.$ac_objext \
3227       conftest$ac_exeext conftest.$ac_ext
3228     if test "x$smart_lib" != "x"; then
3229       break;
3230     fi
3231     LIBS="$old_LIBS"
3232   done
3233 fi
3234
3235 if test "x$smart_lib" = "x"; then
3236   LIBS="-lcom_err $old_LIBS"
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 extern char set_com_err_hook();
3244 int
3245 main ()
3246 {
3247  set_com_err_hook()
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext conftest$ac_exeext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254   (eval $ac_link) 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } &&
3261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263   (eval $ac_try) 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }; } &&
3267          { ac_try='test -s conftest$ac_exeext'
3268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269   (eval $ac_try) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); }; }; then
3273   smart_lib="-lcom_err"
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 fi
3279 rm -f conftest.err conftest.$ac_objext \
3280       conftest$ac_exeext conftest.$ac_ext
3281   LIBS="$old_LIBS"
3282 fi
3283
3284 if test "x$smart_lib" = "x"; then
3285
3286
3287 if test "x$LOCATE" != "x"; then
3288         DIRS=
3289   file=libcom_err${libltdl_cv_shlibext}
3290
3291   for x in `${LOCATE} $file 2>/dev/null`; do
3292                                         base=`echo $x | sed "s%/${file}%%"`
3293     if test "x$x" = "x$base"; then
3294       continue;
3295     fi
3296
3297     dir=`${DIRNAME} $x 2>/dev/null`
3298                 exclude=`echo ${dir} | ${GREP} /home`
3299     if test "x$exclude" != "x"; then
3300       continue
3301     fi
3302
3303                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3304     if test "x$already" = "x"; then
3305       DIRS="$DIRS $dir"
3306     fi
3307   done
3308 fi
3309
3310 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3311
3312
3313
3314 if test "x$LOCATE" != "x"; then
3315         DIRS=
3316   file=libcom_err.a
3317
3318   for x in `${LOCATE} $file 2>/dev/null`; do
3319                                         base=`echo $x | sed "s%/${file}%%"`
3320     if test "x$x" = "x$base"; then
3321       continue;
3322     fi
3323
3324     dir=`${DIRNAME} $x 2>/dev/null`
3325                 exclude=`echo ${dir} | ${GREP} /home`
3326     if test "x$exclude" != "x"; then
3327       continue
3328     fi
3329
3330                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3331     if test "x$already" = "x"; then
3332       DIRS="$DIRS $dir"
3333     fi
3334   done
3335 fi
3336
3337 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3338
3339
3340   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3341     LIBS="-L$try -lcom_err $old_LIBS"
3342     cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h.  */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h.  */
3348 extern char set_com_err_hook();
3349 int
3350 main ()
3351 {
3352  set_com_err_hook()
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 rm -f conftest.$ac_objext conftest$ac_exeext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3359   (eval $ac_link) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } &&
3366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; } &&
3372          { ac_try='test -s conftest$ac_exeext'
3373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374   (eval $ac_try) 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }; }; then
3378   smart_lib="-L$try -lcom_err"
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 fi
3384 rm -f conftest.err conftest.$ac_objext \
3385       conftest$ac_exeext conftest.$ac_ext
3386     if test "x$smart_lib" != "x"; then
3387       break;
3388     fi
3389     LIBS="$old_LIBS"
3390   done
3391 fi
3392
3393 if test "x$smart_lib" != "x"; then
3394   echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6
3396   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3397   LIBS="$smart_lib $old_LIBS"
3398   SMART_LIBS="$smart_lib $SMART_LIBS"
3399 else
3400   echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404         if test "x$ac_cv_lib_com_err_set_com_err_hook" != "xyes"; then
3405                 { echo "$as_me:$LINENO: WARNING: the comm_err library isn't found!" >&5
3406 echo "$as_me: WARNING: the comm_err library isn't found!" >&2;}
3407         fi
3408
3409
3410
3411 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
3412 sm_func_safe=`echo "krb5_init_context" | sed 'y%./+-%__p_%'`
3413 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
3414 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
3415
3416 old_LIBS="$LIBS"
3417 smart_lib=
3418 smart_lib_dir=
3419
3420 if test "x$smart_try_dir" != "x"; then
3421   for try in $smart_try_dir; do
3422     LIBS="-L$try -lkrb5 $old_LIBS"
3423     cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 extern char krb5_init_context();
3430 int
3431 main ()
3432 {
3433  krb5_init_context()
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext conftest$ac_exeext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440   (eval $ac_link) 2>conftest.er1
3441   ac_status=$?
3442   grep -v '^ *+' conftest.er1 >conftest.err
3443   rm -f conftest.er1
3444   cat conftest.err >&5
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } &&
3447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449   (eval $ac_try) 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; } &&
3453          { ac_try='test -s conftest$ac_exeext'
3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455   (eval $ac_try) 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); }; }; then
3459   smart_lib="-L$try -lkrb5"
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 fi
3465 rm -f conftest.err conftest.$ac_objext \
3466       conftest$ac_exeext conftest.$ac_ext
3467     if test "x$smart_lib" != "x"; then
3468       break;
3469     fi
3470     LIBS="$old_LIBS"
3471   done
3472 fi
3473
3474 if test "x$smart_lib" = "x"; then
3475   LIBS="-lkrb5 $old_LIBS"
3476   cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 extern char krb5_init_context();
3483 int
3484 main ()
3485 {
3486  krb5_init_context()
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 rm -f conftest.$ac_objext conftest$ac_exeext
3492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3493   (eval $ac_link) 2>conftest.er1
3494   ac_status=$?
3495   grep -v '^ *+' conftest.er1 >conftest.err
3496   rm -f conftest.er1
3497   cat conftest.err >&5
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } &&
3500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502   (eval $ac_try) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }; } &&
3506          { ac_try='test -s conftest$ac_exeext'
3507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508   (eval $ac_try) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }; }; then
3512   smart_lib="-lkrb5"
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 fi
3518 rm -f conftest.err conftest.$ac_objext \
3519       conftest$ac_exeext conftest.$ac_ext
3520   LIBS="$old_LIBS"
3521 fi
3522
3523 if test "x$smart_lib" = "x"; then
3524
3525
3526 if test "x$LOCATE" != "x"; then
3527         DIRS=
3528   file=libkrb5${libltdl_cv_shlibext}
3529
3530   for x in `${LOCATE} $file 2>/dev/null`; do
3531                                         base=`echo $x | sed "s%/${file}%%"`
3532     if test "x$x" = "x$base"; then
3533       continue;
3534     fi
3535
3536     dir=`${DIRNAME} $x 2>/dev/null`
3537                 exclude=`echo ${dir} | ${GREP} /home`
3538     if test "x$exclude" != "x"; then
3539       continue
3540     fi
3541
3542                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3543     if test "x$already" = "x"; then
3544       DIRS="$DIRS $dir"
3545     fi
3546   done
3547 fi
3548
3549 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3550
3551
3552
3553 if test "x$LOCATE" != "x"; then
3554         DIRS=
3555   file=libkrb5.a
3556
3557   for x in `${LOCATE} $file 2>/dev/null`; do
3558                                         base=`echo $x | sed "s%/${file}%%"`
3559     if test "x$x" = "x$base"; then
3560       continue;
3561     fi
3562
3563     dir=`${DIRNAME} $x 2>/dev/null`
3564                 exclude=`echo ${dir} | ${GREP} /home`
3565     if test "x$exclude" != "x"; then
3566       continue
3567     fi
3568
3569                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3570     if test "x$already" = "x"; then
3571       DIRS="$DIRS $dir"
3572     fi
3573   done
3574 fi
3575
3576 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3577
3578
3579   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3580     LIBS="-L$try -lkrb5 $old_LIBS"
3581     cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 extern char krb5_init_context();
3588 int
3589 main ()
3590 {
3591  krb5_init_context()
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.$ac_objext conftest$ac_exeext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3598   (eval $ac_link) 2>conftest.er1
3599   ac_status=$?
3600   grep -v '^ *+' conftest.er1 >conftest.err
3601   rm -f conftest.er1
3602   cat conftest.err >&5
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } &&
3605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607   (eval $ac_try) 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; } &&
3611          { ac_try='test -s conftest$ac_exeext'
3612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613   (eval $ac_try) 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; }; then
3617   smart_lib="-L$try -lkrb5"
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 fi
3623 rm -f conftest.err conftest.$ac_objext \
3624       conftest$ac_exeext conftest.$ac_ext
3625     if test "x$smart_lib" != "x"; then
3626       break;
3627     fi
3628     LIBS="$old_LIBS"
3629   done
3630 fi
3631
3632 if test "x$smart_lib" != "x"; then
3633   echo "$as_me:$LINENO: result: yes" >&5
3634 echo "${ECHO_T}yes" >&6
3635   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3636   LIBS="$smart_lib $old_LIBS"
3637   SMART_LIBS="$smart_lib $SMART_LIBS"
3638 else
3639   echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6
3641 fi
3642
3643         if test "x$ac_cv_lib_krb5_krb5_init_context" != "xyes"; then
3644                 fail="$fail krb5"
3645         fi
3646
3647         targetname=rlm_krb5
3648 else
3649         targetname=
3650         echo \*\*\* module rlm_krb5 is disabled.
3651 fi
3652
3653 if test x"$fail" != x""; then
3654         if test x"${enable_strict_dependencies}" = x"yes"; then
3655                 { { echo "$as_me:$LINENO: error: set --without-rlm_krb5 to disable it explicitly." >&5
3656 echo "$as_me: error: set --without-rlm_krb5 to disable it explicitly." >&2;}
3657    { (exit 1); exit 1; }; }
3658         else
3659                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_krb5." >&5
3660 echo "$as_me: WARNING: silently not building rlm_krb5." >&2;}
3661                 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_krb5 requires: $fail." >&5
3662 echo "$as_me: WARNING: FAILURE: rlm_krb5 requires: $fail." >&2;};
3663                 targetname=""
3664         fi
3665 fi
3666
3667 krb5_ldflags=$SMART_LIBS
3668 krb5_cflags="${krb5_h_cflags} $SMART_CFLAGS"
3669
3670
3671
3672
3673           ac_config_files="$ac_config_files Makefile"
3674 cat >confcache <<\_ACEOF
3675 # This file is a shell script that caches the results of configure
3676 # tests run on this system so they can be shared between configure
3677 # scripts and configure runs, see configure's option --config-cache.
3678 # It is not useful on other systems.  If it contains results you don't
3679 # want to keep, you may remove or edit it.
3680 #
3681 # config.status only pays attention to the cache file if you give it
3682 # the --recheck option to rerun configure.
3683 #
3684 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3685 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3686 # following values.
3687
3688 _ACEOF
3689
3690 # The following way of writing the cache mishandles newlines in values,
3691 # but we know of no workaround that is simple, portable, and efficient.
3692 # So, don't put newlines in cache variables' values.
3693 # Ultrix sh set writes to stderr and can't be redirected directly,
3694 # and sets the high bit in the cache file unless we assign to the vars.
3695 {
3696   (set) 2>&1 |
3697     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3698     *ac_space=\ *)
3699       # `set' does not quote correctly, so add quotes (double-quote
3700       # substitution turns \\\\ into \\, and sed turns \\ into \).
3701       sed -n \
3702         "s/'/'\\\\''/g;
3703           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3704       ;;
3705     *)
3706       # `set' quotes correctly as required by POSIX, so do not add quotes.
3707       sed -n \
3708         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3709       ;;
3710     esac;
3711 } |
3712   sed '
3713      t clear
3714      : clear
3715      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3716      t end
3717      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3718      : end' >>confcache
3719 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3720   if test -w $cache_file; then
3721     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3722     cat confcache >$cache_file
3723   else
3724     echo "not updating unwritable cache $cache_file"
3725   fi
3726 fi
3727 rm -f confcache
3728
3729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3730 # Let make expand exec_prefix.
3731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3732
3733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3735 # trailing colons and then remove the whole line if VPATH becomes empty
3736 # (actually we leave an empty line to preserve line numbers).
3737 if test "x$srcdir" = x.; then
3738   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3739 s/:*\$(srcdir):*/:/;
3740 s/:*\${srcdir}:*/:/;
3741 s/:*@srcdir@:*/:/;
3742 s/^\([^=]*=[     ]*\):*/\1/;
3743 s/:*$//;
3744 s/^[^=]*=[       ]*$//;
3745 }'
3746 fi
3747
3748 # Transform confdefs.h into DEFS.
3749 # Protect against shell expansion while executing Makefile rules.
3750 # Protect against Makefile macro expansion.
3751 #
3752 # If the first sed substitution is executed (which looks for macros that
3753 # take arguments), then we branch to the quote section.  Otherwise,
3754 # look for a macro that doesn't take arguments.
3755 cat >confdef2opt.sed <<\_ACEOF
3756 t clear
3757 : clear
3758 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3759 t quote
3760 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3761 t quote
3762 d
3763 : quote
3764 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3765 s,\[,\\&,g
3766 s,\],\\&,g
3767 s,\$,$$,g
3768 p
3769 _ACEOF
3770 # We use echo to avoid assuming a particular line-breaking character.
3771 # The extra dot is to prevent the shell from consuming trailing
3772 # line-breaks from the sub-command output.  A line-break within
3773 # single-quotes doesn't work because, if this script is created in a
3774 # platform that uses two characters for line-breaks (e.g., DOS), tr
3775 # would break.
3776 ac_LF_and_DOT=`echo; echo .`
3777 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3778 rm -f confdef2opt.sed
3779
3780
3781 ac_libobjs=
3782 ac_ltlibobjs=
3783 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3784   # 1. Remove the extension, and $U if already installed.
3785   ac_i=`echo "$ac_i" |
3786          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3787   # 2. Add them.
3788   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3789   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3790 done
3791 LIBOBJS=$ac_libobjs
3792
3793 LTLIBOBJS=$ac_ltlibobjs
3794
3795
3796
3797 : ${CONFIG_STATUS=./config.status}
3798 ac_clean_files_save=$ac_clean_files
3799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3800 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3801 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3802 cat >$CONFIG_STATUS <<_ACEOF
3803 #! $SHELL
3804 # Generated by $as_me.
3805 # Run this file to recreate the current configuration.
3806 # Compiler output produced by configure, useful for debugging
3807 # configure, is in config.log if it exists.
3808
3809 debug=false
3810 ac_cs_recheck=false
3811 ac_cs_silent=false
3812 SHELL=\${CONFIG_SHELL-$SHELL}
3813 _ACEOF
3814
3815 cat >>$CONFIG_STATUS <<\_ACEOF
3816 ## --------------------- ##
3817 ## M4sh Initialization.  ##
3818 ## --------------------- ##
3819
3820 # Be Bourne compatible
3821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3822   emulate sh
3823   NULLCMD=:
3824   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3825   # is contrary to our usage.  Disable this feature.
3826   alias -g '${1+"$@"}'='"$@"'
3827 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3828   set -o posix
3829 fi
3830 DUALCASE=1; export DUALCASE # for MKS sh
3831
3832 # Support unset when possible.
3833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3834   as_unset=unset
3835 else
3836   as_unset=false
3837 fi
3838
3839
3840 # Work around bugs in pre-3.0 UWIN ksh.
3841 $as_unset ENV MAIL MAILPATH
3842 PS1='$ '
3843 PS2='> '
3844 PS4='+ '
3845
3846 # NLS nuisances.
3847 for as_var in \
3848   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3849   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3850   LC_TELEPHONE LC_TIME
3851 do
3852   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3853     eval $as_var=C; export $as_var
3854   else
3855     $as_unset $as_var
3856   fi
3857 done
3858
3859 # Required to use basename.
3860 if expr a : '\(a\)' >/dev/null 2>&1; then
3861   as_expr=expr
3862 else
3863   as_expr=false
3864 fi
3865
3866 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3867   as_basename=basename
3868 else
3869   as_basename=false
3870 fi
3871
3872
3873 # Name of the executable.
3874 as_me=`$as_basename "$0" ||
3875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3876          X"$0" : 'X\(//\)$' \| \
3877          X"$0" : 'X\(/\)$' \| \
3878          .     : '\(.\)' 2>/dev/null ||
3879 echo X/"$0" |
3880     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3881           /^X\/\(\/\/\)$/{ s//\1/; q; }
3882           /^X\/\(\/\).*/{ s//\1/; q; }
3883           s/.*/./; q'`
3884
3885
3886 # PATH needs CR, and LINENO needs CR and PATH.
3887 # Avoid depending upon Character Ranges.
3888 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3891 as_cr_digits='0123456789'
3892 as_cr_alnum=$as_cr_Letters$as_cr_digits
3893
3894 # The user is always right.
3895 if test "${PATH_SEPARATOR+set}" != set; then
3896   echo "#! /bin/sh" >conf$$.sh
3897   echo  "exit 0"   >>conf$$.sh
3898   chmod +x conf$$.sh
3899   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3900     PATH_SEPARATOR=';'
3901   else
3902     PATH_SEPARATOR=:
3903   fi
3904   rm -f conf$$.sh
3905 fi
3906
3907
3908   as_lineno_1=$LINENO
3909   as_lineno_2=$LINENO
3910   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3911   test "x$as_lineno_1" != "x$as_lineno_2" &&
3912   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3913   # Find who we are.  Look in the path if we contain no path at all
3914   # relative or not.
3915   case $0 in
3916     *[\\/]* ) as_myself=$0 ;;
3917     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3923 done
3924
3925        ;;
3926   esac
3927   # We did not find ourselves, most probably we were run as `sh COMMAND'
3928   # in which case we are not to be found in the path.
3929   if test "x$as_myself" = x; then
3930     as_myself=$0
3931   fi
3932   if test ! -f "$as_myself"; then
3933     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3934 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3935    { (exit 1); exit 1; }; }
3936   fi
3937   case $CONFIG_SHELL in
3938   '')
3939     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944   for as_base in sh bash ksh sh5; do
3945          case $as_dir in
3946          /*)
3947            if ("$as_dir/$as_base" -c '
3948   as_lineno_1=$LINENO
3949   as_lineno_2=$LINENO
3950   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3951   test "x$as_lineno_1" != "x$as_lineno_2" &&
3952   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3953              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3954              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3955              CONFIG_SHELL=$as_dir/$as_base
3956              export CONFIG_SHELL
3957              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3958            fi;;
3959          esac
3960        done
3961 done
3962 ;;
3963   esac
3964
3965   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3966   # uniformly replaced by the line number.  The first 'sed' inserts a
3967   # line-number line before each line; the second 'sed' does the real
3968   # work.  The second script uses 'N' to pair each line-number line
3969   # with the numbered line, and appends trailing '-' during
3970   # substitution so that $LINENO is not a special case at line end.
3971   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3972   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3973   sed '=' <$as_myself |
3974     sed '
3975       N
3976       s,$,-,
3977       : loop
3978       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3979       t loop
3980       s,-$,,
3981       s,^['$as_cr_digits']*\n,,
3982     ' >$as_me.lineno &&
3983   chmod +x $as_me.lineno ||
3984     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3985 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3986    { (exit 1); exit 1; }; }
3987
3988   # Don't try to exec as it changes $[0], causing all sort of problems
3989   # (the dirname of $[0] is not the place where we might find the
3990   # original and so on.  Autoconf is especially sensible to this).
3991   . ./$as_me.lineno
3992   # Exit status is that of the last command.
3993   exit
3994 }
3995
3996
3997 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3998   *c*,-n*) ECHO_N= ECHO_C='
3999 ' ECHO_T='      ' ;;
4000   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4001   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4002 esac
4003
4004 if expr a : '\(a\)' >/dev/null 2>&1; then
4005   as_expr=expr
4006 else
4007   as_expr=false
4008 fi
4009
4010 rm -f conf$$ conf$$.exe conf$$.file
4011 echo >conf$$.file
4012 if ln -s conf$$.file conf$$ 2>/dev/null; then
4013   # We could just check for DJGPP; but this test a) works b) is more generic
4014   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4015   if test -f conf$$.exe; then
4016     # Don't use ln at all; we don't have any links
4017     as_ln_s='cp -p'
4018   else
4019     as_ln_s='ln -s'
4020   fi
4021 elif ln conf$$.file conf$$ 2>/dev/null; then
4022   as_ln_s=ln
4023 else
4024   as_ln_s='cp -p'
4025 fi
4026 rm -f conf$$ conf$$.exe conf$$.file
4027
4028 if mkdir -p . 2>/dev/null; then
4029   as_mkdir_p=:
4030 else
4031   test -d ./-p && rmdir ./-p
4032   as_mkdir_p=false
4033 fi
4034
4035 as_executable_p="test -f"
4036
4037 # Sed expression to map a string onto a valid CPP name.
4038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4039
4040 # Sed expression to map a string onto a valid variable name.
4041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4042
4043
4044 # IFS
4045 # We need space, tab and new line, in precisely that order.
4046 as_nl='
4047 '
4048 IFS="   $as_nl"
4049
4050 # CDPATH.
4051 $as_unset CDPATH
4052
4053 exec 6>&1
4054
4055 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4056 # report actual input values of CONFIG_FILES etc. instead of their
4057 # values after options handling.  Logging --version etc. is OK.
4058 exec 5>>config.log
4059 {
4060   echo
4061   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4062 ## Running $as_me. ##
4063 _ASBOX
4064 } >&5
4065 cat >&5 <<_CSEOF
4066
4067 This file was extended by $as_me, which was
4068 generated by GNU Autoconf 2.59.  Invocation command line was
4069
4070   CONFIG_FILES    = $CONFIG_FILES
4071   CONFIG_HEADERS  = $CONFIG_HEADERS
4072   CONFIG_LINKS    = $CONFIG_LINKS
4073   CONFIG_COMMANDS = $CONFIG_COMMANDS
4074   $ $0 $@
4075
4076 _CSEOF
4077 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4078 echo >&5
4079 _ACEOF
4080
4081 # Files that config.status was made for.
4082 if test -n "$ac_config_files"; then
4083   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4084 fi
4085
4086 if test -n "$ac_config_headers"; then
4087   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4088 fi
4089
4090 if test -n "$ac_config_links"; then
4091   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4092 fi
4093
4094 if test -n "$ac_config_commands"; then
4095   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4096 fi
4097
4098 cat >>$CONFIG_STATUS <<\_ACEOF
4099
4100 ac_cs_usage="\
4101 \`$as_me' instantiates files from templates according to the
4102 current configuration.
4103
4104 Usage: $0 [OPTIONS] [FILE]...
4105
4106   -h, --help       print this help, then exit
4107   -V, --version    print version number, then exit
4108   -q, --quiet      do not print progress messages
4109   -d, --debug      don't remove temporary files
4110       --recheck    update $as_me by reconfiguring in the same conditions
4111   --file=FILE[:TEMPLATE]
4112                    instantiate the configuration file FILE
4113
4114 Configuration files:
4115 $config_files
4116
4117 Report bugs to <bug-autoconf@gnu.org>."
4118 _ACEOF
4119
4120 cat >>$CONFIG_STATUS <<_ACEOF
4121 ac_cs_version="\\
4122 config.status
4123 configured by $0, generated by GNU Autoconf 2.59,
4124   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4125
4126 Copyright (C) 2003 Free Software Foundation, Inc.
4127 This config.status script is free software; the Free Software Foundation
4128 gives unlimited permission to copy, distribute and modify it."
4129 srcdir=$srcdir
4130 _ACEOF
4131
4132 cat >>$CONFIG_STATUS <<\_ACEOF
4133 # If no file are specified by the user, then we need to provide default
4134 # value.  By we need to know if files were specified by the user.
4135 ac_need_defaults=:
4136 while test $# != 0
4137 do
4138   case $1 in
4139   --*=*)
4140     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4141     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4142     ac_shift=:
4143     ;;
4144   -*)
4145     ac_option=$1
4146     ac_optarg=$2
4147     ac_shift=shift
4148     ;;
4149   *) # This is not an option, so the user has probably given explicit
4150      # arguments.
4151      ac_option=$1
4152      ac_need_defaults=false;;
4153   esac
4154
4155   case $ac_option in
4156   # Handling of the options.
4157 _ACEOF
4158 cat >>$CONFIG_STATUS <<\_ACEOF
4159   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4160     ac_cs_recheck=: ;;
4161   --version | --vers* | -V )
4162     echo "$ac_cs_version"; exit 0 ;;
4163   --he | --h)
4164     # Conflict between --help and --header
4165     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4166 Try \`$0 --help' for more information." >&5
4167 echo "$as_me: error: ambiguous option: $1
4168 Try \`$0 --help' for more information." >&2;}
4169    { (exit 1); exit 1; }; };;
4170   --help | --hel | -h )
4171     echo "$ac_cs_usage"; exit 0 ;;
4172   --debug | --d* | -d )
4173     debug=: ;;
4174   --file | --fil | --fi | --f )
4175     $ac_shift
4176     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4177     ac_need_defaults=false;;
4178   --header | --heade | --head | --hea )
4179     $ac_shift
4180     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4181     ac_need_defaults=false;;
4182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4183   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4184     ac_cs_silent=: ;;
4185
4186   # This is an error.
4187   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4188 Try \`$0 --help' for more information." >&5
4189 echo "$as_me: error: unrecognized option: $1
4190 Try \`$0 --help' for more information." >&2;}
4191    { (exit 1); exit 1; }; } ;;
4192
4193   *) ac_config_targets="$ac_config_targets $1" ;;
4194
4195   esac
4196   shift
4197 done
4198
4199 ac_configure_extra_args=
4200
4201 if $ac_cs_silent; then
4202   exec 6>/dev/null
4203   ac_configure_extra_args="$ac_configure_extra_args --silent"
4204 fi
4205
4206 _ACEOF
4207 cat >>$CONFIG_STATUS <<_ACEOF
4208 if \$ac_cs_recheck; then
4209   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4210   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4211 fi
4212
4213 _ACEOF
4214
4215
4216
4217
4218
4219 cat >>$CONFIG_STATUS <<\_ACEOF
4220 for ac_config_target in $ac_config_targets
4221 do
4222   case "$ac_config_target" in
4223   # Handling of arguments.
4224   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4225   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4226 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4227    { (exit 1); exit 1; }; };;
4228   esac
4229 done
4230
4231 # If the user did not use the arguments to specify the items to instantiate,
4232 # then the envvar interface is used.  Set only those that are not.
4233 # We use the long form for the default assignment because of an extremely
4234 # bizarre bug on SunOS 4.1.3.
4235 if $ac_need_defaults; then
4236   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4237 fi
4238
4239 # Have a temporary directory for convenience.  Make it in the build tree
4240 # simply because there is no reason to put it here, and in addition,
4241 # creating and moving files from /tmp can sometimes cause problems.
4242 # Create a temporary directory, and hook for its removal unless debugging.
4243 $debug ||
4244 {
4245   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4246   trap '{ (exit 1); exit 1; }' 1 2 13 15
4247 }
4248
4249 # Create a (secure) tmp directory for tmp files.
4250
4251 {
4252   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4253   test -n "$tmp" && test -d "$tmp"
4254 }  ||
4255 {
4256   tmp=./confstat$$-$RANDOM
4257   (umask 077 && mkdir $tmp)
4258 } ||
4259 {
4260    echo "$me: cannot create a temporary directory in ." >&2
4261    { (exit 1); exit 1; }
4262 }
4263
4264 _ACEOF
4265
4266 cat >>$CONFIG_STATUS <<_ACEOF
4267
4268 #
4269 # CONFIG_FILES section.
4270 #
4271
4272 # No need to generate the scripts if there are no CONFIG_FILES.
4273 # This happens for instance when ./config.status config.h
4274 if test -n "\$CONFIG_FILES"; then
4275   # Protect against being on the right side of a sed subst in config.status.
4276   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4277    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4278 s,@SHELL@,$SHELL,;t t
4279 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4280 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4281 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4282 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4283 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4284 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4285 s,@exec_prefix@,$exec_prefix,;t t
4286 s,@prefix@,$prefix,;t t
4287 s,@program_transform_name@,$program_transform_name,;t t
4288 s,@bindir@,$bindir,;t t
4289 s,@sbindir@,$sbindir,;t t
4290 s,@libexecdir@,$libexecdir,;t t
4291 s,@datadir@,$datadir,;t t
4292 s,@sysconfdir@,$sysconfdir,;t t
4293 s,@sharedstatedir@,$sharedstatedir,;t t
4294 s,@localstatedir@,$localstatedir,;t t
4295 s,@libdir@,$libdir,;t t
4296 s,@includedir@,$includedir,;t t
4297 s,@oldincludedir@,$oldincludedir,;t t
4298 s,@infodir@,$infodir,;t t
4299 s,@mandir@,$mandir,;t t
4300 s,@build_alias@,$build_alias,;t t
4301 s,@host_alias@,$host_alias,;t t
4302 s,@target_alias@,$target_alias,;t t
4303 s,@DEFS@,$DEFS,;t t
4304 s,@ECHO_C@,$ECHO_C,;t t
4305 s,@ECHO_N@,$ECHO_N,;t t
4306 s,@ECHO_T@,$ECHO_T,;t t
4307 s,@LIBS@,$LIBS,;t t
4308 s,@CC@,$CC,;t t
4309 s,@CFLAGS@,$CFLAGS,;t t
4310 s,@LDFLAGS@,$LDFLAGS,;t t
4311 s,@CPPFLAGS@,$CPPFLAGS,;t t
4312 s,@ac_ct_CC@,$ac_ct_CC,;t t
4313 s,@EXEEXT@,$EXEEXT,;t t
4314 s,@OBJEXT@,$OBJEXT,;t t
4315 s,@CPP@,$CPP,;t t
4316 s,@krb5_cflags@,$krb5_cflags,;t t
4317 s,@krb5_ldflags@,$krb5_ldflags,;t t
4318 s,@targetname@,$targetname,;t t
4319 s,@LIBOBJS@,$LIBOBJS,;t t
4320 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4321 CEOF
4322
4323 _ACEOF
4324
4325   cat >>$CONFIG_STATUS <<\_ACEOF
4326   # Split the substitutions into bite-sized pieces for seds with
4327   # small command number limits, like on Digital OSF/1 and HP-UX.
4328   ac_max_sed_lines=48
4329   ac_sed_frag=1 # Number of current file.
4330   ac_beg=1 # First line for current file.
4331   ac_end=$ac_max_sed_lines # Line after last line for current file.
4332   ac_more_lines=:
4333   ac_sed_cmds=
4334   while $ac_more_lines; do
4335     if test $ac_beg -gt 1; then
4336       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4337     else
4338       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4339     fi
4340     if test ! -s $tmp/subs.frag; then
4341       ac_more_lines=false
4342     else
4343       # The purpose of the label and of the branching condition is to
4344       # speed up the sed processing (if there are no `@' at all, there
4345       # is no need to browse any of the substitutions).
4346       # These are the two extra sed commands mentioned above.
4347       (echo ':t
4348   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4349       if test -z "$ac_sed_cmds"; then
4350         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4351       else
4352         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4353       fi
4354       ac_sed_frag=`expr $ac_sed_frag + 1`
4355       ac_beg=$ac_end
4356       ac_end=`expr $ac_end + $ac_max_sed_lines`
4357     fi
4358   done
4359   if test -z "$ac_sed_cmds"; then
4360     ac_sed_cmds=cat
4361   fi
4362 fi # test -n "$CONFIG_FILES"
4363
4364 _ACEOF
4365 cat >>$CONFIG_STATUS <<\_ACEOF
4366 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4367   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4368   case $ac_file in
4369   - | *:- | *:-:* ) # input from stdin
4370         cat >$tmp/stdin
4371         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4372         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4373   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4374         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4375   * )   ac_file_in=$ac_file.in ;;
4376   esac
4377
4378   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4379   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4381          X"$ac_file" : 'X\(//\)[^/]' \| \
4382          X"$ac_file" : 'X\(//\)$' \| \
4383          X"$ac_file" : 'X\(/\)' \| \
4384          .     : '\(.\)' 2>/dev/null ||
4385 echo X"$ac_file" |
4386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4388           /^X\(\/\/\)$/{ s//\1/; q; }
4389           /^X\(\/\).*/{ s//\1/; q; }
4390           s/.*/./; q'`
4391   { if $as_mkdir_p; then
4392     mkdir -p "$ac_dir"
4393   else
4394     as_dir="$ac_dir"
4395     as_dirs=
4396     while test ! -d "$as_dir"; do
4397       as_dirs="$as_dir $as_dirs"
4398       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4400          X"$as_dir" : 'X\(//\)[^/]' \| \
4401          X"$as_dir" : 'X\(//\)$' \| \
4402          X"$as_dir" : 'X\(/\)' \| \
4403          .     : '\(.\)' 2>/dev/null ||
4404 echo X"$as_dir" |
4405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4406           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4407           /^X\(\/\/\)$/{ s//\1/; q; }
4408           /^X\(\/\).*/{ s//\1/; q; }
4409           s/.*/./; q'`
4410     done
4411     test ! -n "$as_dirs" || mkdir $as_dirs
4412   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4413 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4414    { (exit 1); exit 1; }; }; }
4415
4416   ac_builddir=.
4417
4418 if test "$ac_dir" != .; then
4419   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4420   # A "../" for each directory in $ac_dir_suffix.
4421   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4422 else
4423   ac_dir_suffix= ac_top_builddir=
4424 fi
4425
4426 case $srcdir in
4427   .)  # No --srcdir option.  We are building in place.
4428     ac_srcdir=.
4429     if test -z "$ac_top_builddir"; then
4430        ac_top_srcdir=.
4431     else
4432        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4433     fi ;;
4434   [\\/]* | ?:[\\/]* )  # Absolute path.
4435     ac_srcdir=$srcdir$ac_dir_suffix;
4436     ac_top_srcdir=$srcdir ;;
4437   *) # Relative path.
4438     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4439     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4440 esac
4441
4442 # Do not use `cd foo && pwd` to compute absolute paths, because
4443 # the directories may not exist.
4444 case `pwd` in
4445 .) ac_abs_builddir="$ac_dir";;
4446 *)
4447   case "$ac_dir" in
4448   .) ac_abs_builddir=`pwd`;;
4449   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4450   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4451   esac;;
4452 esac
4453 case $ac_abs_builddir in
4454 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4455 *)
4456   case ${ac_top_builddir}. in
4457   .) ac_abs_top_builddir=$ac_abs_builddir;;
4458   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4459   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4460   esac;;
4461 esac
4462 case $ac_abs_builddir in
4463 .) ac_abs_srcdir=$ac_srcdir;;
4464 *)
4465   case $ac_srcdir in
4466   .) ac_abs_srcdir=$ac_abs_builddir;;
4467   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4468   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4469   esac;;
4470 esac
4471 case $ac_abs_builddir in
4472 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4473 *)
4474   case $ac_top_srcdir in
4475   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4476   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4477   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4478   esac;;
4479 esac
4480
4481
4482
4483   # Let's still pretend it is `configure' which instantiates (i.e., don't
4484   # use $as_me), people would be surprised to read:
4485   #    /* config.h.  Generated by config.status.  */
4486   if test x"$ac_file" = x-; then
4487     configure_input=
4488   else
4489     configure_input="$ac_file.  "
4490   fi
4491   configure_input=$configure_input"Generated from `echo $ac_file_in |
4492                                      sed 's,.*/,,'` by configure."
4493
4494   # First look for the input files in the build tree, otherwise in the
4495   # src tree.
4496   ac_file_inputs=`IFS=:
4497     for f in $ac_file_in; do
4498       case $f in
4499       -) echo $tmp/stdin ;;
4500       [\\/$]*)
4501          # Absolute (can't be DOS-style, as IFS=:)
4502          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4503 echo "$as_me: error: cannot find input file: $f" >&2;}
4504    { (exit 1); exit 1; }; }
4505          echo "$f";;
4506       *) # Relative
4507          if test -f "$f"; then
4508            # Build tree
4509            echo "$f"
4510          elif test -f "$srcdir/$f"; then
4511            # Source tree
4512            echo "$srcdir/$f"
4513          else
4514            # /dev/null tree
4515            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4516 echo "$as_me: error: cannot find input file: $f" >&2;}
4517    { (exit 1); exit 1; }; }
4518          fi;;
4519       esac
4520     done` || { (exit 1); exit 1; }
4521
4522   if test x"$ac_file" != x-; then
4523     { echo "$as_me:$LINENO: creating $ac_file" >&5
4524 echo "$as_me: creating $ac_file" >&6;}
4525     rm -f "$ac_file"
4526   fi
4527 _ACEOF
4528 cat >>$CONFIG_STATUS <<_ACEOF
4529   sed "$ac_vpsub
4530 $extrasub
4531 _ACEOF
4532 cat >>$CONFIG_STATUS <<\_ACEOF
4533 :t
4534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4535 s,@configure_input@,$configure_input,;t t
4536 s,@srcdir@,$ac_srcdir,;t t
4537 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4538 s,@top_srcdir@,$ac_top_srcdir,;t t
4539 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4540 s,@builddir@,$ac_builddir,;t t
4541 s,@abs_builddir@,$ac_abs_builddir,;t t
4542 s,@top_builddir@,$ac_top_builddir,;t t
4543 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4544 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4545   rm -f $tmp/stdin
4546   if test x"$ac_file" != x-; then
4547     mv $tmp/out $ac_file
4548   else
4549     cat $tmp/out
4550     rm -f $tmp/out
4551   fi
4552
4553 done
4554 _ACEOF
4555
4556 cat >>$CONFIG_STATUS <<\_ACEOF
4557
4558 { (exit 0); exit 0; }
4559 _ACEOF
4560 chmod +x $CONFIG_STATUS
4561 ac_clean_files=$ac_clean_files_save
4562
4563
4564 # configure is writing to config.log, and then calls config.status.
4565 # config.status does its own redirection, appending to config.log.
4566 # Unfortunately, on DOS this fails, as config.log is still kept open
4567 # by configure, so config.status won't be able to write to it; its
4568 # output is simply discarded.  So we exec the FD to /dev/null,
4569 # effectively closing config.log, so it can be properly (re)opened and
4570 # appended to by config.status.  When coming back to configure, we
4571 # need to make the FD available again.
4572 if test "$no_create" != yes; then
4573   ac_cs_success=:
4574   ac_config_status_args=
4575   test "$silent" = yes &&
4576     ac_config_status_args="$ac_config_status_args --quiet"
4577   exec 5>/dev/null
4578   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4579   exec 5>>config.log
4580   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4581   # would make configure fail if this is the last instruction.
4582   $ac_cs_success || { (exit 1); exit 1; }
4583 fi
4584