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