Remove spaces after -D
[freeradius.git] / src / modules / rlm_krb5 / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19   emulate sh
20   NULLCMD=:
21   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in #(
27   *posix*) :
28     set -o posix ;; #(
29   *) :
30      ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46   as_echo='print -r --'
47   as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='printf %s\n'
50   as_echo_n='printf %s'
51 else
52   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54     as_echo_n='/usr/ucb/echo -n'
55   else
56     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57     as_echo_n_body='eval
58       arg=$1;
59       case $arg in #(
60       *"$as_nl"*)
61         expr "X$arg" : "X\\(.*\\)$as_nl";
62         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63       esac;
64       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65     '
66     export as_echo_n_body
67     as_echo_n='sh -c $as_echo_n_body as_echo'
68   fi
69   export as_echo_body
70   as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75   PATH_SEPARATOR=:
76   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78       PATH_SEPARATOR=';'
79   }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order.  Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" ""        $as_nl"
89
90 # Find who we are.  Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137   # into an infinite loop, continuously re-executing ourselves.
138   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139     _as_can_reexec=no; export _as_can_reexec;
140     # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148   *v*x* | *x*v* ) as_opts=-vx ;;
149   *v* ) as_opts=-v ;;
150   *x* ) as_opts=-x ;;
151   * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158   fi
159   # We don't want this to propagate to other subprocesses.
160           { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163   emulate sh
164   NULLCMD=:
165   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166   # is contrary to our usage.  Disable this feature.
167   alias -g '\${1+\"\$@\"}'='\"\$@\"'
168   setopt NO_GLOB_SUBST
169 else
170   case \`(set -o) 2>/dev/null\` in #(
171   *posix*) :
172     set -o posix ;; #(
173   *) :
174      ;;
175 esac
176 fi
177 "
178   as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192   exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="rlm_krb5.c"
586 ac_subst_vars='LTLIBOBJS
587 LIBOBJS
588 targetname
589 mod_cflags
590 mod_ldflags
591 krb5_config
592 CPP
593 OBJEXT
594 EXEEXT
595 ac_ct_CC
596 CPPFLAGS
597 LDFLAGS
598 CFLAGS
599 CC
600 target_alias
601 host_alias
602 build_alias
603 LIBS
604 ECHO_T
605 ECHO_N
606 ECHO_C
607 DEFS
608 mandir
609 localedir
610 libdir
611 psdir
612 pdfdir
613 dvidir
614 htmldir
615 infodir
616 docdir
617 oldincludedir
618 includedir
619 localstatedir
620 sharedstatedir
621 sysconfdir
622 datadir
623 datarootdir
624 libexecdir
625 sbindir
626 bindir
627 program_transform_name
628 prefix
629 exec_prefix
630 PACKAGE_URL
631 PACKAGE_BUGREPORT
632 PACKAGE_STRING
633 PACKAGE_VERSION
634 PACKAGE_TARNAME
635 PACKAGE_NAME
636 PATH_SEPARATOR
637 SHELL'
638 ac_subst_files=''
639 ac_user_opts='
640 enable_option_checking
641 with_rlm_krb5_dir
642 '
643       ac_precious_vars='build_alias
644 host_alias
645 target_alias
646 CC
647 CFLAGS
648 LDFLAGS
649 LIBS
650 CPPFLAGS
651 CPP'
652
653
654 # Initialize some variables set by options.
655 ac_init_help=
656 ac_init_version=false
657 ac_unrecognized_opts=
658 ac_unrecognized_sep=
659 # The variables have the same names as the options, with
660 # dashes changed to underlines.
661 cache_file=/dev/null
662 exec_prefix=NONE
663 no_create=
664 no_recursion=
665 prefix=NONE
666 program_prefix=NONE
667 program_suffix=NONE
668 program_transform_name=s,x,x,
669 silent=
670 site=
671 srcdir=
672 verbose=
673 x_includes=NONE
674 x_libraries=NONE
675
676 # Installation directory options.
677 # These are left unexpanded so users can "make install exec_prefix=/foo"
678 # and all the variables that are supposed to be based on exec_prefix
679 # by default will actually change.
680 # Use braces instead of parens because sh, perl, etc. also accept them.
681 # (The list follows the same order as the GNU Coding Standards.)
682 bindir='${exec_prefix}/bin'
683 sbindir='${exec_prefix}/sbin'
684 libexecdir='${exec_prefix}/libexec'
685 datarootdir='${prefix}/share'
686 datadir='${datarootdir}'
687 sysconfdir='${prefix}/etc'
688 sharedstatedir='${prefix}/com'
689 localstatedir='${prefix}/var'
690 includedir='${prefix}/include'
691 oldincludedir='/usr/include'
692 docdir='${datarootdir}/doc/${PACKAGE}'
693 infodir='${datarootdir}/info'
694 htmldir='${docdir}'
695 dvidir='${docdir}'
696 pdfdir='${docdir}'
697 psdir='${docdir}'
698 libdir='${exec_prefix}/lib'
699 localedir='${datarootdir}/locale'
700 mandir='${datarootdir}/man'
701
702 ac_prev=
703 ac_dashdash=
704 for ac_option
705 do
706   # If the previous option needs an argument, assign it.
707   if test -n "$ac_prev"; then
708     eval $ac_prev=\$ac_option
709     ac_prev=
710     continue
711   fi
712
713   case $ac_option in
714   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
715   *=)   ac_optarg= ;;
716   *)    ac_optarg=yes ;;
717   esac
718
719   # Accept the important Cygnus configure options, so we can diagnose typos.
720
721   case $ac_dashdash$ac_option in
722   --)
723     ac_dashdash=yes ;;
724
725   -bindir | --bindir | --bindi | --bind | --bin | --bi)
726     ac_prev=bindir ;;
727   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
728     bindir=$ac_optarg ;;
729
730   -build | --build | --buil | --bui | --bu)
731     ac_prev=build_alias ;;
732   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
733     build_alias=$ac_optarg ;;
734
735   -cache-file | --cache-file | --cache-fil | --cache-fi \
736   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
737     ac_prev=cache_file ;;
738   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
739   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
740     cache_file=$ac_optarg ;;
741
742   --config-cache | -C)
743     cache_file=config.cache ;;
744
745   -datadir | --datadir | --datadi | --datad)
746     ac_prev=datadir ;;
747   -datadir=* | --datadir=* | --datadi=* | --datad=*)
748     datadir=$ac_optarg ;;
749
750   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
751   | --dataroo | --dataro | --datar)
752     ac_prev=datarootdir ;;
753   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
754   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
755     datarootdir=$ac_optarg ;;
756
757   -disable-* | --disable-*)
758     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
761       as_fn_error $? "invalid feature name: $ac_useropt"
762     ac_useropt_orig=$ac_useropt
763     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
764     case $ac_user_opts in
765       *"
766 "enable_$ac_useropt"
767 "*) ;;
768       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
769          ac_unrecognized_sep=', ';;
770     esac
771     eval enable_$ac_useropt=no ;;
772
773   -docdir | --docdir | --docdi | --doc | --do)
774     ac_prev=docdir ;;
775   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
776     docdir=$ac_optarg ;;
777
778   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
779     ac_prev=dvidir ;;
780   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
781     dvidir=$ac_optarg ;;
782
783   -enable-* | --enable-*)
784     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
785     # Reject names that are not valid shell variable names.
786     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
787       as_fn_error $? "invalid feature name: $ac_useropt"
788     ac_useropt_orig=$ac_useropt
789     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
790     case $ac_user_opts in
791       *"
792 "enable_$ac_useropt"
793 "*) ;;
794       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
795          ac_unrecognized_sep=', ';;
796     esac
797     eval enable_$ac_useropt=\$ac_optarg ;;
798
799   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
800   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
801   | --exec | --exe | --ex)
802     ac_prev=exec_prefix ;;
803   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
804   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
805   | --exec=* | --exe=* | --ex=*)
806     exec_prefix=$ac_optarg ;;
807
808   -gas | --gas | --ga | --g)
809     # Obsolete; use --with-gas.
810     with_gas=yes ;;
811
812   -help | --help | --hel | --he | -h)
813     ac_init_help=long ;;
814   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
815     ac_init_help=recursive ;;
816   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
817     ac_init_help=short ;;
818
819   -host | --host | --hos | --ho)
820     ac_prev=host_alias ;;
821   -host=* | --host=* | --hos=* | --ho=*)
822     host_alias=$ac_optarg ;;
823
824   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
825     ac_prev=htmldir ;;
826   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
827   | --ht=*)
828     htmldir=$ac_optarg ;;
829
830   -includedir | --includedir | --includedi | --included | --include \
831   | --includ | --inclu | --incl | --inc)
832     ac_prev=includedir ;;
833   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
834   | --includ=* | --inclu=* | --incl=* | --inc=*)
835     includedir=$ac_optarg ;;
836
837   -infodir | --infodir | --infodi | --infod | --info | --inf)
838     ac_prev=infodir ;;
839   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
840     infodir=$ac_optarg ;;
841
842   -libdir | --libdir | --libdi | --libd)
843     ac_prev=libdir ;;
844   -libdir=* | --libdir=* | --libdi=* | --libd=*)
845     libdir=$ac_optarg ;;
846
847   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
848   | --libexe | --libex | --libe)
849     ac_prev=libexecdir ;;
850   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
851   | --libexe=* | --libex=* | --libe=*)
852     libexecdir=$ac_optarg ;;
853
854   -localedir | --localedir | --localedi | --localed | --locale)
855     ac_prev=localedir ;;
856   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
857     localedir=$ac_optarg ;;
858
859   -localstatedir | --localstatedir | --localstatedi | --localstated \
860   | --localstate | --localstat | --localsta | --localst | --locals)
861     ac_prev=localstatedir ;;
862   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
863   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
864     localstatedir=$ac_optarg ;;
865
866   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
867     ac_prev=mandir ;;
868   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
869     mandir=$ac_optarg ;;
870
871   -nfp | --nfp | --nf)
872     # Obsolete; use --without-fp.
873     with_fp=no ;;
874
875   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
876   | --no-cr | --no-c | -n)
877     no_create=yes ;;
878
879   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
881     no_recursion=yes ;;
882
883   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
884   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
885   | --oldin | --oldi | --old | --ol | --o)
886     ac_prev=oldincludedir ;;
887   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
888   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
889   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
890     oldincludedir=$ac_optarg ;;
891
892   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
893     ac_prev=prefix ;;
894   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
895     prefix=$ac_optarg ;;
896
897   -program-prefix | --program-prefix | --program-prefi | --program-pref \
898   | --program-pre | --program-pr | --program-p)
899     ac_prev=program_prefix ;;
900   -program-prefix=* | --program-prefix=* | --program-prefi=* \
901   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
902     program_prefix=$ac_optarg ;;
903
904   -program-suffix | --program-suffix | --program-suffi | --program-suff \
905   | --program-suf | --program-su | --program-s)
906     ac_prev=program_suffix ;;
907   -program-suffix=* | --program-suffix=* | --program-suffi=* \
908   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
909     program_suffix=$ac_optarg ;;
910
911   -program-transform-name | --program-transform-name \
912   | --program-transform-nam | --program-transform-na \
913   | --program-transform-n | --program-transform- \
914   | --program-transform | --program-transfor \
915   | --program-transfo | --program-transf \
916   | --program-trans | --program-tran \
917   | --progr-tra | --program-tr | --program-t)
918     ac_prev=program_transform_name ;;
919   -program-transform-name=* | --program-transform-name=* \
920   | --program-transform-nam=* | --program-transform-na=* \
921   | --program-transform-n=* | --program-transform-=* \
922   | --program-transform=* | --program-transfor=* \
923   | --program-transfo=* | --program-transf=* \
924   | --program-trans=* | --program-tran=* \
925   | --progr-tra=* | --program-tr=* | --program-t=*)
926     program_transform_name=$ac_optarg ;;
927
928   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
929     ac_prev=pdfdir ;;
930   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
931     pdfdir=$ac_optarg ;;
932
933   -psdir | --psdir | --psdi | --psd | --ps)
934     ac_prev=psdir ;;
935   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
936     psdir=$ac_optarg ;;
937
938   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
939   | -silent | --silent | --silen | --sile | --sil)
940     silent=yes ;;
941
942   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
943     ac_prev=sbindir ;;
944   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
945   | --sbi=* | --sb=*)
946     sbindir=$ac_optarg ;;
947
948   -sharedstatedir | --sharedstatedir | --sharedstatedi \
949   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
950   | --sharedst | --shareds | --shared | --share | --shar \
951   | --sha | --sh)
952     ac_prev=sharedstatedir ;;
953   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
954   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
955   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
956   | --sha=* | --sh=*)
957     sharedstatedir=$ac_optarg ;;
958
959   -site | --site | --sit)
960     ac_prev=site ;;
961   -site=* | --site=* | --sit=*)
962     site=$ac_optarg ;;
963
964   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
965     ac_prev=srcdir ;;
966   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
967     srcdir=$ac_optarg ;;
968
969   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
970   | --syscon | --sysco | --sysc | --sys | --sy)
971     ac_prev=sysconfdir ;;
972   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
973   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
974     sysconfdir=$ac_optarg ;;
975
976   -target | --target | --targe | --targ | --tar | --ta | --t)
977     ac_prev=target_alias ;;
978   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979     target_alias=$ac_optarg ;;
980
981   -v | -verbose | --verbose | --verbos | --verbo | --verb)
982     verbose=yes ;;
983
984   -version | --version | --versio | --versi | --vers | -V)
985     ac_init_version=: ;;
986
987   -with-* | --with-*)
988     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
989     # Reject names that are not valid shell variable names.
990     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991       as_fn_error $? "invalid package name: $ac_useropt"
992     ac_useropt_orig=$ac_useropt
993     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994     case $ac_user_opts in
995       *"
996 "with_$ac_useropt"
997 "*) ;;
998       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
999          ac_unrecognized_sep=', ';;
1000     esac
1001     eval with_$ac_useropt=\$ac_optarg ;;
1002
1003   -without-* | --without-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid package name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "with_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval with_$ac_useropt=no ;;
1018
1019   --x)
1020     # Obsolete; use --with-x.
1021     with_x=yes ;;
1022
1023   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1024   | --x-incl | --x-inc | --x-in | --x-i)
1025     ac_prev=x_includes ;;
1026   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1027   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1028     x_includes=$ac_optarg ;;
1029
1030   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1031   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1032     ac_prev=x_libraries ;;
1033   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1034   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1035     x_libraries=$ac_optarg ;;
1036
1037   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1038 Try \`$0 --help' for more information"
1039     ;;
1040
1041   *=*)
1042     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1043     # Reject names that are not valid shell variable names.
1044     case $ac_envvar in #(
1045       '' | [0-9]* | *[!_$as_cr_alnum]* )
1046       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1047     esac
1048     eval $ac_envvar=\$ac_optarg
1049     export $ac_envvar ;;
1050
1051   *)
1052     # FIXME: should be removed in autoconf 3.0.
1053     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1054     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1056     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1057     ;;
1058
1059   esac
1060 done
1061
1062 if test -n "$ac_prev"; then
1063   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1064   as_fn_error $? "missing argument to $ac_option"
1065 fi
1066
1067 if test -n "$ac_unrecognized_opts"; then
1068   case $enable_option_checking in
1069     no) ;;
1070     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1071     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1072   esac
1073 fi
1074
1075 # Check all directory arguments for consistency.
1076 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1077                 datadir sysconfdir sharedstatedir localstatedir includedir \
1078                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1079                 libdir localedir mandir
1080 do
1081   eval ac_val=\$$ac_var
1082   # Remove trailing slashes.
1083   case $ac_val in
1084     */ )
1085       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1086       eval $ac_var=\$ac_val;;
1087   esac
1088   # Be sure to have absolute directory names.
1089   case $ac_val in
1090     [\\/$]* | ?:[\\/]* )  continue;;
1091     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1092   esac
1093   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1094 done
1095
1096 # There might be people who depend on the old broken behavior: `$host'
1097 # used to hold the argument of --host etc.
1098 # FIXME: To remove some day.
1099 build=$build_alias
1100 host=$host_alias
1101 target=$target_alias
1102
1103 # FIXME: To remove some day.
1104 if test "x$host_alias" != x; then
1105   if test "x$build_alias" = x; then
1106     cross_compiling=maybe
1107   elif test "x$build_alias" != "x$host_alias"; then
1108     cross_compiling=yes
1109   fi
1110 fi
1111
1112 ac_tool_prefix=
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1114
1115 test "$silent" = yes && exec 6>/dev/null
1116
1117
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121   as_fn_error $? "working directory cannot be determined"
1122 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1123   as_fn_error $? "pwd does not report name of working directory"
1124
1125
1126 # Find the source files, if location was not specified.
1127 if test -z "$srcdir"; then
1128   ac_srcdir_defaulted=yes
1129   # Try the directory containing this script, then the parent directory.
1130   ac_confdir=`$as_dirname -- "$as_myself" ||
1131 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1132          X"$as_myself" : 'X\(//\)[^/]' \| \
1133          X"$as_myself" : 'X\(//\)$' \| \
1134          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1135 $as_echo X"$as_myself" |
1136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1137             s//\1/
1138             q
1139           }
1140           /^X\(\/\/\)[^/].*/{
1141             s//\1/
1142             q
1143           }
1144           /^X\(\/\/\)$/{
1145             s//\1/
1146             q
1147           }
1148           /^X\(\/\).*/{
1149             s//\1/
1150             q
1151           }
1152           s/.*/./; q'`
1153   srcdir=$ac_confdir
1154   if test ! -r "$srcdir/$ac_unique_file"; then
1155     srcdir=..
1156   fi
1157 else
1158   ac_srcdir_defaulted=no
1159 fi
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1161   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1162   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1163 fi
1164 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1165 ac_abs_confdir=`(
1166         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1167         pwd)`
1168 # When building in place, set srcdir=.
1169 if test "$ac_abs_confdir" = "$ac_pwd"; then
1170   srcdir=.
1171 fi
1172 # Remove unnecessary trailing slashes from srcdir.
1173 # Double slashes in file names in object file debugging info
1174 # mess up M-x gdb in Emacs.
1175 case $srcdir in
1176 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1177 esac
1178 for ac_var in $ac_precious_vars; do
1179   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1180   eval ac_env_${ac_var}_value=\$${ac_var}
1181   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1182   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1183 done
1184
1185 #
1186 # Report the --help message.
1187 #
1188 if test "$ac_init_help" = "long"; then
1189   # Omit some internal or obsolete options to make the list less imposing.
1190   # This message is too long to be a string in the A/UX 3.1 sh.
1191   cat <<_ACEOF
1192 \`configure' configures this package to adapt to many kinds of systems.
1193
1194 Usage: $0 [OPTION]... [VAR=VALUE]...
1195
1196 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1197 VAR=VALUE.  See below for descriptions of some of the useful variables.
1198
1199 Defaults for the options are specified in brackets.
1200
1201 Configuration:
1202   -h, --help              display this help and exit
1203       --help=short        display options specific to this package
1204       --help=recursive    display the short help of all the included packages
1205   -V, --version           display version information and exit
1206   -q, --quiet, --silent   do not print \`checking ...' messages
1207       --cache-file=FILE   cache test results in FILE [disabled]
1208   -C, --config-cache      alias for \`--cache-file=config.cache'
1209   -n, --no-create         do not create output files
1210       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1211
1212 Installation directories:
1213   --prefix=PREFIX         install architecture-independent files in PREFIX
1214                           [$ac_default_prefix]
1215   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1216                           [PREFIX]
1217
1218 By default, \`make install' will install all the files in
1219 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1220 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1221 for instance \`--prefix=\$HOME'.
1222
1223 For better control, use the options below.
1224
1225 Fine tuning of the installation directories:
1226   --bindir=DIR            user executables [EPREFIX/bin]
1227   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1228   --libexecdir=DIR        program executables [EPREFIX/libexec]
1229   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1230   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1231   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1232   --libdir=DIR            object code libraries [EPREFIX/lib]
1233   --includedir=DIR        C header files [PREFIX/include]
1234   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1235   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1236   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1237   --infodir=DIR           info documentation [DATAROOTDIR/info]
1238   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1239   --mandir=DIR            man documentation [DATAROOTDIR/man]
1240   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1241   --htmldir=DIR           html documentation [DOCDIR]
1242   --dvidir=DIR            dvi documentation [DOCDIR]
1243   --pdfdir=DIR            pdf documentation [DOCDIR]
1244   --psdir=DIR             ps documentation [DOCDIR]
1245 _ACEOF
1246
1247   cat <<\_ACEOF
1248 _ACEOF
1249 fi
1250
1251 if test -n "$ac_init_help"; then
1252
1253   cat <<\_ACEOF
1254
1255 Optional Packages:
1256   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1257   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1258   --with-rlm-krb5-dir=DIR       Directory for krb5 files
1259
1260 Some influential environment variables:
1261   CC          C compiler command
1262   CFLAGS      C compiler flags
1263   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1264               nonstandard directory <lib dir>
1265   LIBS        libraries to pass to the linker, e.g. -l<library>
1266   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1267               you have headers in a nonstandard directory <include dir>
1268   CPP         C preprocessor
1269
1270 Use these variables to override the choices made by `configure' or to help
1271 it to find libraries and programs with nonstandard names/locations.
1272
1273 Report bugs to the package provider.
1274 _ACEOF
1275 ac_status=$?
1276 fi
1277
1278 if test "$ac_init_help" = "recursive"; then
1279   # If there are subdirs, report their specific --help.
1280   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1281     test -d "$ac_dir" ||
1282       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1283       continue
1284     ac_builddir=.
1285
1286 case "$ac_dir" in
1287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1288 *)
1289   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1290   # A ".." for each directory in $ac_dir_suffix.
1291   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1292   case $ac_top_builddir_sub in
1293   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1294   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1295   esac ;;
1296 esac
1297 ac_abs_top_builddir=$ac_pwd
1298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1299 # for backward compatibility:
1300 ac_top_builddir=$ac_top_build_prefix
1301
1302 case $srcdir in
1303   .)  # We are building in place.
1304     ac_srcdir=.
1305     ac_top_srcdir=$ac_top_builddir_sub
1306     ac_abs_top_srcdir=$ac_pwd ;;
1307   [\\/]* | ?:[\\/]* )  # Absolute name.
1308     ac_srcdir=$srcdir$ac_dir_suffix;
1309     ac_top_srcdir=$srcdir
1310     ac_abs_top_srcdir=$srcdir ;;
1311   *) # Relative name.
1312     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1313     ac_top_srcdir=$ac_top_build_prefix$srcdir
1314     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1315 esac
1316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1317
1318     cd "$ac_dir" || { ac_status=$?; continue; }
1319     # Check for guested configure.
1320     if test -f "$ac_srcdir/configure.gnu"; then
1321       echo &&
1322       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1323     elif test -f "$ac_srcdir/configure"; then
1324       echo &&
1325       $SHELL "$ac_srcdir/configure" --help=recursive
1326     else
1327       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1328     fi || ac_status=$?
1329     cd "$ac_pwd" || { ac_status=$?; break; }
1330   done
1331 fi
1332
1333 test -n "$ac_init_help" && exit $ac_status
1334 if $ac_init_version; then
1335   cat <<\_ACEOF
1336 configure
1337 generated by GNU Autoconf 2.69
1338
1339 Copyright (C) 2012 Free Software Foundation, Inc.
1340 This configure script is free software; the Free Software Foundation
1341 gives unlimited permission to copy, distribute and modify it.
1342 _ACEOF
1343   exit
1344 fi
1345
1346 ## ------------------------ ##
1347 ## Autoconf initialization. ##
1348 ## ------------------------ ##
1349
1350 # ac_fn_c_try_compile LINENO
1351 # --------------------------
1352 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1353 ac_fn_c_try_compile ()
1354 {
1355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1356   rm -f conftest.$ac_objext
1357   if { { ac_try="$ac_compile"
1358 case "(($ac_try" in
1359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1360   *) ac_try_echo=$ac_try;;
1361 esac
1362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1363 $as_echo "$ac_try_echo"; } >&5
1364   (eval "$ac_compile") 2>conftest.err
1365   ac_status=$?
1366   if test -s conftest.err; then
1367     grep -v '^ *+' conftest.err >conftest.er1
1368     cat conftest.er1 >&5
1369     mv -f conftest.er1 conftest.err
1370   fi
1371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1372   test $ac_status = 0; } && {
1373          test -z "$ac_c_werror_flag" ||
1374          test ! -s conftest.err
1375        } && test -s conftest.$ac_objext; then :
1376   ac_retval=0
1377 else
1378   $as_echo "$as_me: failed program was:" >&5
1379 sed 's/^/| /' conftest.$ac_ext >&5
1380
1381         ac_retval=1
1382 fi
1383   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1384   as_fn_set_status $ac_retval
1385
1386 } # ac_fn_c_try_compile
1387
1388 # ac_fn_c_try_cpp LINENO
1389 # ----------------------
1390 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1391 ac_fn_c_try_cpp ()
1392 {
1393   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1394   if { { ac_try="$ac_cpp conftest.$ac_ext"
1395 case "(($ac_try" in
1396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1397   *) ac_try_echo=$ac_try;;
1398 esac
1399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1400 $as_echo "$ac_try_echo"; } >&5
1401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1402   ac_status=$?
1403   if test -s conftest.err; then
1404     grep -v '^ *+' conftest.err >conftest.er1
1405     cat conftest.er1 >&5
1406     mv -f conftest.er1 conftest.err
1407   fi
1408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1409   test $ac_status = 0; } > conftest.i && {
1410          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1411          test ! -s conftest.err
1412        }; then :
1413   ac_retval=0
1414 else
1415   $as_echo "$as_me: failed program was:" >&5
1416 sed 's/^/| /' conftest.$ac_ext >&5
1417
1418     ac_retval=1
1419 fi
1420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1421   as_fn_set_status $ac_retval
1422
1423 } # ac_fn_c_try_cpp
1424
1425 # ac_fn_c_try_link LINENO
1426 # -----------------------
1427 # Try to link conftest.$ac_ext, and return whether this succeeded.
1428 ac_fn_c_try_link ()
1429 {
1430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431   rm -f conftest.$ac_objext conftest$ac_exeext
1432   if { { ac_try="$ac_link"
1433 case "(($ac_try" in
1434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1435   *) ac_try_echo=$ac_try;;
1436 esac
1437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1438 $as_echo "$ac_try_echo"; } >&5
1439   (eval "$ac_link") 2>conftest.err
1440   ac_status=$?
1441   if test -s conftest.err; then
1442     grep -v '^ *+' conftest.err >conftest.er1
1443     cat conftest.er1 >&5
1444     mv -f conftest.er1 conftest.err
1445   fi
1446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1447   test $ac_status = 0; } && {
1448          test -z "$ac_c_werror_flag" ||
1449          test ! -s conftest.err
1450        } && test -s conftest$ac_exeext && {
1451          test "$cross_compiling" = yes ||
1452          test -x conftest$ac_exeext
1453        }; then :
1454   ac_retval=0
1455 else
1456   $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1458
1459         ac_retval=1
1460 fi
1461   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1462   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1463   # interfere with the next link command; also delete a directory that is
1464   # left behind by Apple's compiler.  We do this before executing the actions.
1465   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1466   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1467   as_fn_set_status $ac_retval
1468
1469 } # ac_fn_c_try_link
1470
1471 # ac_fn_c_check_func LINENO FUNC VAR
1472 # ----------------------------------
1473 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1474 ac_fn_c_check_func ()
1475 {
1476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1478 $as_echo_n "checking for $2... " >&6; }
1479 if eval \${$3+:} false; then :
1480   $as_echo_n "(cached) " >&6
1481 else
1482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1483 /* end confdefs.h.  */
1484 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1486 #define $2 innocuous_$2
1487
1488 /* System header to define __stub macros and hopefully few prototypes,
1489     which can conflict with char $2 (); below.
1490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1491     <limits.h> exists even on freestanding compilers.  */
1492
1493 #ifdef __STDC__
1494 # include <limits.h>
1495 #else
1496 # include <assert.h>
1497 #endif
1498
1499 #undef $2
1500
1501 /* Override any GCC internal prototype to avoid an error.
1502    Use char because int might match the return type of a GCC
1503    builtin and then its argument prototype would still apply.  */
1504 #ifdef __cplusplus
1505 extern "C"
1506 #endif
1507 char $2 ();
1508 /* The GNU C library defines this for functions which it implements
1509     to always fail with ENOSYS.  Some functions are actually named
1510     something starting with __ and the normal name is an alias.  */
1511 #if defined __stub_$2 || defined __stub___$2
1512 choke me
1513 #endif
1514
1515 int
1516 main ()
1517 {
1518 return $2 ();
1519   ;
1520   return 0;
1521 }
1522 _ACEOF
1523 if ac_fn_c_try_link "$LINENO"; then :
1524   eval "$3=yes"
1525 else
1526   eval "$3=no"
1527 fi
1528 rm -f core conftest.err conftest.$ac_objext \
1529     conftest$ac_exeext conftest.$ac_ext
1530 fi
1531 eval ac_res=\$$3
1532                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1533 $as_echo "$ac_res" >&6; }
1534   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535
1536 } # ac_fn_c_check_func
1537
1538 # ac_fn_c_try_run LINENO
1539 # ----------------------
1540 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1541 # that executables *can* be run.
1542 ac_fn_c_try_run ()
1543 {
1544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545   if { { ac_try="$ac_link"
1546 case "(($ac_try" in
1547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548   *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552   (eval "$ac_link") 2>&5
1553   ac_status=$?
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1556   { { case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_try") 2>&5
1563   ac_status=$?
1564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565   test $ac_status = 0; }; }; then :
1566   ac_retval=0
1567 else
1568   $as_echo "$as_me: program exited with status $ac_status" >&5
1569        $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572        ac_retval=$ac_status
1573 fi
1574   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576   as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_run
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1582
1583 It was created by $as_me, which was
1584 generated by GNU Autoconf 2.69.  Invocation command line was
1585
1586   $ $0 $@
1587
1588 _ACEOF
1589 exec 5>>config.log
1590 {
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1595
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1604
1605 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1606 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1609 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1610 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1611 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1612
1613 _ASUNAME
1614
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620     $as_echo "PATH: $as_dir"
1621   done
1622 IFS=$as_save_IFS
1623
1624 } >&5
1625
1626 cat >&5 <<_ACEOF
1627
1628
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1632
1633 _ACEOF
1634
1635
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1646 do
1647   for ac_arg
1648   do
1649     case $ac_arg in
1650     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652     | -silent | --silent | --silen | --sile | --sil)
1653       continue ;;
1654     *\'*)
1655       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656     esac
1657     case $ac_pass in
1658     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1659     2)
1660       as_fn_append ac_configure_args1 " '$ac_arg'"
1661       if test $ac_must_keep_next = true; then
1662         ac_must_keep_next=false # Got value, back to normal.
1663       else
1664         case $ac_arg in
1665           *=* | --config-cache | -C | -disable-* | --disable-* \
1666           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668           | -with-* | --with-* | -without-* | --without-* | --x)
1669             case "$ac_configure_args0 " in
1670               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671             esac
1672             ;;
1673           -* ) ac_must_keep_next=true ;;
1674         esac
1675       fi
1676       as_fn_append ac_configure_args " '$ac_arg'"
1677       ;;
1678     esac
1679   done
1680 done
1681 { ac_configure_args0=; unset ac_configure_args0;}
1682 { ac_configure_args1=; unset ac_configure_args1;}
1683
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log.  We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690   # Save into config.log some information that might help in debugging.
1691   {
1692     echo
1693
1694     $as_echo "## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##"
1697     echo
1698     # The following way of writing the cache mishandles newlines in values,
1699 (
1700   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701     eval ac_val=\$$ac_var
1702     case $ac_val in #(
1703     *${as_nl}*)
1704       case $ac_var in #(
1705       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1707       esac
1708       case $ac_var in #(
1709       _ | IFS | as_nl) ;; #(
1710       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1711       *) { eval $ac_var=; unset $ac_var;} ;;
1712       esac ;;
1713     esac
1714   done
1715   (set) 2>&1 |
1716     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717     *${as_nl}ac_space=\ *)
1718       sed -n \
1719         "s/'\''/'\''\\\\'\'''\''/g;
1720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721       ;; #(
1722     *)
1723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724       ;;
1725     esac |
1726     sort
1727 )
1728     echo
1729
1730     $as_echo "## ----------------- ##
1731 ## Output variables. ##
1732 ## ----------------- ##"
1733     echo
1734     for ac_var in $ac_subst_vars
1735     do
1736       eval ac_val=\$$ac_var
1737       case $ac_val in
1738       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739       esac
1740       $as_echo "$ac_var='\''$ac_val'\''"
1741     done | sort
1742     echo
1743
1744     if test -n "$ac_subst_files"; then
1745       $as_echo "## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##"
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         $as_echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       $as_echo "## ----------- ##
1762 ## confdefs.h. ##
1763 ## ----------- ##"
1764       echo
1765       cat confdefs.h
1766       echo
1767     fi
1768     test "$ac_signal" != 0 &&
1769       $as_echo "$as_me: caught signal $ac_signal"
1770     $as_echo "$as_me: exit $exit_status"
1771   } >&5
1772   rm -f core *.core core.conftest.* &&
1773     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774     exit $exit_status
1775 ' 0
1776 for ac_signal in 1 2 13 15; do
1777   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1778 done
1779 ac_signal=0
1780
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1783
1784 $as_echo "/* confdefs.h */" > confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 _ACEOF
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1798 _ACEOF
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 _ACEOF
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_URL "$PACKAGE_URL"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer an explicitly selected file to automatically selected ones.
1815 ac_site_file1=NONE
1816 ac_site_file2=NONE
1817 if test -n "$CONFIG_SITE"; then
1818   # We do not want a PATH search for config.site.
1819   case $CONFIG_SITE in #((
1820     -*)  ac_site_file1=./$CONFIG_SITE;;
1821     */*) ac_site_file1=$CONFIG_SITE;;
1822     *)   ac_site_file1=./$CONFIG_SITE;;
1823   esac
1824 elif test "x$prefix" != xNONE; then
1825   ac_site_file1=$prefix/share/config.site
1826   ac_site_file2=$prefix/etc/config.site
1827 else
1828   ac_site_file1=$ac_default_prefix/share/config.site
1829   ac_site_file2=$ac_default_prefix/etc/config.site
1830 fi
1831 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1832 do
1833   test "x$ac_site_file" = xNONE && continue
1834   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1836 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1837     sed 's/^/| /' "$ac_site_file" >&5
1838     . "$ac_site_file" \
1839       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1841 as_fn_error $? "failed to load site script $ac_site_file
1842 See \`config.log' for more details" "$LINENO" 5; }
1843   fi
1844 done
1845
1846 if test -r "$cache_file"; then
1847   # Some versions of bash will fail to source /dev/null (special files
1848   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1849   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1851 $as_echo "$as_me: loading cache $cache_file" >&6;}
1852     case $cache_file in
1853       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854       *)                      . "./$cache_file";;
1855     esac
1856   fi
1857 else
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1859 $as_echo "$as_me: creating cache $cache_file" >&6;}
1860   >$cache_file
1861 fi
1862
1863 # Check that the precious variables saved in the cache have kept the same
1864 # value.
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868   eval ac_new_set=\$ac_env_${ac_var}_set
1869   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870   eval ac_new_val=\$ac_env_${ac_var}_value
1871   case $ac_old_set,$ac_new_set in
1872     set,)
1873       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875       ac_cache_corrupted=: ;;
1876     ,set)
1877       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1878 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,);;
1881     *)
1882       if test "x$ac_old_val" != "x$ac_new_val"; then
1883         # differences in whitespace do not lead to failure.
1884         ac_old_val_w=`echo x $ac_old_val`
1885         ac_new_val_w=`echo x $ac_new_val`
1886         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1887           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1888 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889           ac_cache_corrupted=:
1890         else
1891           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1892 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1893           eval $ac_var=\$ac_old_val
1894         fi
1895         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1896 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1897         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1898 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1899       fi;;
1900   esac
1901   # Pass precious variables to config.status.
1902   if test "$ac_new_set" = set; then
1903     case $ac_new_val in
1904     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905     *) ac_arg=$ac_var=$ac_new_val ;;
1906     esac
1907     case " $ac_configure_args " in
1908       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1909       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1910     esac
1911   fi
1912 done
1913 if $ac_cache_corrupted; then
1914   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1917 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1918   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1919 fi
1920 ## -------------------- ##
1921 ## Main body of script. ##
1922 ## -------------------- ##
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932
1933
1934 if test x$with_rlm_krb5 != xno; then
1935
1936         ac_ext=c
1937 ac_cpp='$CPP $CPPFLAGS'
1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941 if test -n "$ac_tool_prefix"; then
1942   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1945 $as_echo_n "checking for $ac_word... " >&6; }
1946 if ${ac_cv_prog_CC+:} false; then :
1947   $as_echo_n "(cached) " >&6
1948 else
1949   if test -n "$CC"; then
1950   ac_cv_prog_CC="$CC" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957     for ac_exec_ext in '' $ac_executable_extensions; do
1958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964   done
1965 IFS=$as_save_IFS
1966
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1972 $as_echo "$CC" >&6; }
1973 else
1974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1975 $as_echo "no" >&6; }
1976 fi
1977
1978
1979 fi
1980 if test -z "$ac_cv_prog_CC"; then
1981   ac_ct_CC=$CC
1982   # Extract the first word of "gcc", so it can be a program name with args.
1983 set dummy gcc; ac_word=$2
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1985 $as_echo_n "checking for $ac_word... " >&6; }
1986 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1987   $as_echo_n "(cached) " >&6
1988 else
1989   if test -n "$ac_ct_CC"; then
1990   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997     for ac_exec_ext in '' $ac_executable_extensions; do
1998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999     ac_cv_prog_ac_ct_CC="gcc"
2000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004   done
2005 IFS=$as_save_IFS
2006
2007 fi
2008 fi
2009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2010 if test -n "$ac_ct_CC"; then
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2012 $as_echo "$ac_ct_CC" >&6; }
2013 else
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2015 $as_echo "no" >&6; }
2016 fi
2017
2018   if test "x$ac_ct_CC" = x; then
2019     CC=""
2020   else
2021     case $cross_compiling:$ac_tool_warned in
2022 yes:)
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2025 ac_tool_warned=yes ;;
2026 esac
2027     CC=$ac_ct_CC
2028   fi
2029 else
2030   CC="$ac_cv_prog_CC"
2031 fi
2032
2033 if test -z "$CC"; then
2034           if test -n "$ac_tool_prefix"; then
2035     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}cc; ac_word=$2
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2038 $as_echo_n "checking for $ac_word... " >&6; }
2039 if ${ac_cv_prog_CC+:} false; then :
2040   $as_echo_n "(cached) " >&6
2041 else
2042   if test -n "$CC"; then
2043   ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050     for ac_exec_ext in '' $ac_executable_extensions; do
2051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     ac_cv_prog_CC="${ac_tool_prefix}cc"
2053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057   done
2058 IFS=$as_save_IFS
2059
2060 fi
2061 fi
2062 CC=$ac_cv_prog_CC
2063 if test -n "$CC"; then
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2065 $as_echo "$CC" >&6; }
2066 else
2067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2068 $as_echo "no" >&6; }
2069 fi
2070
2071
2072   fi
2073 fi
2074 if test -z "$CC"; then
2075   # Extract the first word of "cc", so it can be a program name with args.
2076 set dummy cc; ac_word=$2
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2078 $as_echo_n "checking for $ac_word... " >&6; }
2079 if ${ac_cv_prog_CC+:} false; then :
2080   $as_echo_n "(cached) " >&6
2081 else
2082   if test -n "$CC"; then
2083   ac_cv_prog_CC="$CC" # Let the user override the test.
2084 else
2085   ac_prog_rejected=no
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091     for ac_exec_ext in '' $ac_executable_extensions; do
2092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2094        ac_prog_rejected=yes
2095        continue
2096      fi
2097     ac_cv_prog_CC="cc"
2098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2099     break 2
2100   fi
2101 done
2102   done
2103 IFS=$as_save_IFS
2104
2105 if test $ac_prog_rejected = yes; then
2106   # We found a bogon in the path, so make sure we never use it.
2107   set dummy $ac_cv_prog_CC
2108   shift
2109   if test $# != 0; then
2110     # We chose a different compiler from the bogus one.
2111     # However, it has the same basename, so the bogon will be chosen
2112     # first if we set CC to just the basename; use the full file name.
2113     shift
2114     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2115   fi
2116 fi
2117 fi
2118 fi
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2122 $as_echo "$CC" >&6; }
2123 else
2124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2125 $as_echo "no" >&6; }
2126 fi
2127
2128
2129 fi
2130 if test -z "$CC"; then
2131   if test -n "$ac_tool_prefix"; then
2132   for ac_prog in cl.exe
2133   do
2134     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2137 $as_echo_n "checking for $ac_word... " >&6; }
2138 if ${ac_cv_prog_CC+:} false; then :
2139   $as_echo_n "(cached) " >&6
2140 else
2141   if test -n "$CC"; then
2142   ac_cv_prog_CC="$CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149     for ac_exec_ext in '' $ac_executable_extensions; do
2150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2153     break 2
2154   fi
2155 done
2156   done
2157 IFS=$as_save_IFS
2158
2159 fi
2160 fi
2161 CC=$ac_cv_prog_CC
2162 if test -n "$CC"; then
2163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2164 $as_echo "$CC" >&6; }
2165 else
2166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2167 $as_echo "no" >&6; }
2168 fi
2169
2170
2171     test -n "$CC" && break
2172   done
2173 fi
2174 if test -z "$CC"; then
2175   ac_ct_CC=$CC
2176   for ac_prog in cl.exe
2177 do
2178   # Extract the first word of "$ac_prog", so it can be a program name with args.
2179 set dummy $ac_prog; ac_word=$2
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2181 $as_echo_n "checking for $ac_word... " >&6; }
2182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2183   $as_echo_n "(cached) " >&6
2184 else
2185   if test -n "$ac_ct_CC"; then
2186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191   IFS=$as_save_IFS
2192   test -z "$as_dir" && as_dir=.
2193     for ac_exec_ext in '' $ac_executable_extensions; do
2194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195     ac_cv_prog_ac_ct_CC="$ac_prog"
2196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2197     break 2
2198   fi
2199 done
2200   done
2201 IFS=$as_save_IFS
2202
2203 fi
2204 fi
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2208 $as_echo "$ac_ct_CC" >&6; }
2209 else
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2211 $as_echo "no" >&6; }
2212 fi
2213
2214
2215   test -n "$ac_ct_CC" && break
2216 done
2217
2218   if test "x$ac_ct_CC" = x; then
2219     CC=""
2220   else
2221     case $cross_compiling:$ac_tool_warned in
2222 yes:)
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2225 ac_tool_warned=yes ;;
2226 esac
2227     CC=$ac_ct_CC
2228   fi
2229 fi
2230
2231 fi
2232
2233
2234 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 as_fn_error $? "no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details" "$LINENO" 5; }
2238
2239 # Provide some information about the compiler.
2240 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2241 set X $ac_compile
2242 ac_compiler=$2
2243 for ac_option in --version -v -V -qversion; do
2244   { { ac_try="$ac_compiler $ac_option >&5"
2245 case "(($ac_try" in
2246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247   *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2252   ac_status=$?
2253   if test -s conftest.err; then
2254     sed '10a\
2255 ... rest of stderr output deleted ...
2256          10q' conftest.err >conftest.er1
2257     cat conftest.er1 >&5
2258   fi
2259   rm -f conftest.er1 conftest.err
2260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261   test $ac_status = 0; }
2262 done
2263
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266
2267 int
2268 main ()
2269 {
2270
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 ac_clean_files_save=$ac_clean_files
2276 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2277 # Try to create an executable without -o first, disregard a.out.
2278 # It will help us diagnose broken compilers, and finding out an intuition
2279 # of exeext.
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2281 $as_echo_n "checking whether the C compiler works... " >&6; }
2282 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2283
2284 # The possible output files:
2285 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2286
2287 ac_rmfiles=
2288 for ac_file in $ac_files
2289 do
2290   case $ac_file in
2291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2292     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2293   esac
2294 done
2295 rm -f $ac_rmfiles
2296
2297 if { { ac_try="$ac_link_default"
2298 case "(($ac_try" in
2299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300   *) ac_try_echo=$ac_try;;
2301 esac
2302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303 $as_echo "$ac_try_echo"; } >&5
2304   (eval "$ac_link_default") 2>&5
2305   ac_status=$?
2306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307   test $ac_status = 0; }; then :
2308   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2309 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2310 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2311 # so that the user can short-circuit this test for compilers unknown to
2312 # Autoconf.
2313 for ac_file in $ac_files ''
2314 do
2315   test -f "$ac_file" || continue
2316   case $ac_file in
2317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2318         ;;
2319     [ab].out )
2320         # We found the default executable, but exeext='' is most
2321         # certainly right.
2322         break;;
2323     *.* )
2324         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2325         then :; else
2326            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327         fi
2328         # We set ac_cv_exeext here because the later test for it is not
2329         # safe: cross compilers may not add the suffix if given an `-o'
2330         # argument, so we may need to know it at that point already.
2331         # Even if this section looks crufty: it has the advantage of
2332         # actually working.
2333         break;;
2334     * )
2335         break;;
2336   esac
2337 done
2338 test "$ac_cv_exeext" = no && ac_cv_exeext=
2339
2340 else
2341   ac_file=''
2342 fi
2343 if test -z "$ac_file"; then :
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2345 $as_echo "no" >&6; }
2346 $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 as_fn_error 77 "C compiler cannot create executables
2352 See \`config.log' for more details" "$LINENO" 5; }
2353 else
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2355 $as_echo "yes" >&6; }
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2358 $as_echo_n "checking for C compiler default output file name... " >&6; }
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2360 $as_echo "$ac_file" >&6; }
2361 ac_exeext=$ac_cv_exeext
2362
2363 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2364 ac_clean_files=$ac_clean_files_save
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2366 $as_echo_n "checking for suffix of executables... " >&6; }
2367 if { { ac_try="$ac_link"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373 $as_echo "$ac_try_echo"; } >&5
2374   (eval "$ac_link") 2>&5
2375   ac_status=$?
2376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377   test $ac_status = 0; }; then :
2378   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2379 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2380 # work properly (i.e., refer to `conftest.exe'), while it won't with
2381 # `rm'.
2382 for ac_file in conftest.exe conftest conftest.*; do
2383   test -f "$ac_file" || continue
2384   case $ac_file in
2385     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2386     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2387           break;;
2388     * ) break;;
2389   esac
2390 done
2391 else
2392   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2395 See \`config.log' for more details" "$LINENO" 5; }
2396 fi
2397 rm -f conftest conftest$ac_cv_exeext
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2399 $as_echo "$ac_cv_exeext" >&6; }
2400
2401 rm -f conftest.$ac_ext
2402 EXEEXT=$ac_cv_exeext
2403 ac_exeext=$EXEEXT
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h.  */
2406 #include <stdio.h>
2407 int
2408 main ()
2409 {
2410 FILE *f = fopen ("conftest.out", "w");
2411  return ferror (f) || fclose (f) != 0;
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 ac_clean_files="$ac_clean_files conftest.out"
2418 # Check that the compiler produces executables we can run.  If not, either
2419 # the compiler is broken, or we cross compile.
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2421 $as_echo_n "checking whether we are cross compiling... " >&6; }
2422 if test "$cross_compiling" != yes; then
2423   { { ac_try="$ac_link"
2424 case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2429 $as_echo "$ac_try_echo"; } >&5
2430   (eval "$ac_link") 2>&5
2431   ac_status=$?
2432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2433   test $ac_status = 0; }
2434   if { ac_try='./conftest$ac_cv_exeext'
2435   { { case "(($ac_try" in
2436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437   *) ac_try_echo=$ac_try;;
2438 esac
2439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2440 $as_echo "$ac_try_echo"; } >&5
2441   (eval "$ac_try") 2>&5
2442   ac_status=$?
2443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2444   test $ac_status = 0; }; }; then
2445     cross_compiling=no
2446   else
2447     if test "$cross_compiling" = maybe; then
2448         cross_compiling=yes
2449     else
2450         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 as_fn_error $? "cannot run C compiled programs.
2453 If you meant to cross compile, use \`--host'.
2454 See \`config.log' for more details" "$LINENO" 5; }
2455     fi
2456   fi
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2459 $as_echo "$cross_compiling" >&6; }
2460
2461 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2462 ac_clean_files=$ac_clean_files_save
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2464 $as_echo_n "checking for suffix of object files... " >&6; }
2465 if ${ac_cv_objext+:} false; then :
2466   $as_echo_n "(cached) " >&6
2467 else
2468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h.  */
2470
2471 int
2472 main ()
2473 {
2474
2475   ;
2476   return 0;
2477 }
2478 _ACEOF
2479 rm -f conftest.o conftest.obj
2480 if { { ac_try="$ac_compile"
2481 case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2486 $as_echo "$ac_try_echo"; } >&5
2487   (eval "$ac_compile") 2>&5
2488   ac_status=$?
2489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2490   test $ac_status = 0; }; then :
2491   for ac_file in conftest.o conftest.obj conftest.*; do
2492   test -f "$ac_file" || continue;
2493   case $ac_file in
2494     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2495     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2496        break;;
2497   esac
2498 done
2499 else
2500   $as_echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 as_fn_error $? "cannot compute suffix of object files: cannot compile
2506 See \`config.log' for more details" "$LINENO" 5; }
2507 fi
2508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2511 $as_echo "$ac_cv_objext" >&6; }
2512 OBJEXT=$ac_cv_objext
2513 ac_objext=$OBJEXT
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2516 if ${ac_cv_c_compiler_gnu+:} false; then :
2517   $as_echo_n "(cached) " >&6
2518 else
2519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h.  */
2521
2522 int
2523 main ()
2524 {
2525 #ifndef __GNUC__
2526        choke me
2527 #endif
2528
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 if ac_fn_c_try_compile "$LINENO"; then :
2534   ac_compiler_gnu=yes
2535 else
2536   ac_compiler_gnu=no
2537 fi
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2540
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2544 if test $ac_compiler_gnu = yes; then
2545   GCC=yes
2546 else
2547   GCC=
2548 fi
2549 ac_test_CFLAGS=${CFLAGS+set}
2550 ac_save_CFLAGS=$CFLAGS
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2553 if ${ac_cv_prog_cc_g+:} false; then :
2554   $as_echo_n "(cached) " >&6
2555 else
2556   ac_save_c_werror_flag=$ac_c_werror_flag
2557    ac_c_werror_flag=yes
2558    ac_cv_prog_cc_g=no
2559    CFLAGS="-g"
2560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 if ac_fn_c_try_compile "$LINENO"; then :
2572   ac_cv_prog_cc_g=yes
2573 else
2574   CFLAGS=""
2575       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587
2588 else
2589   ac_c_werror_flag=$ac_save_c_werror_flag
2590          CFLAGS="-g"
2591          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h.  */
2593
2594 int
2595 main ()
2596 {
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603   ac_cv_prog_cc_g=yes
2604 fi
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 fi
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610    ac_c_werror_flag=$ac_save_c_werror_flag
2611 fi
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2613 $as_echo "$ac_cv_prog_cc_g" >&6; }
2614 if test "$ac_test_CFLAGS" = set; then
2615   CFLAGS=$ac_save_CFLAGS
2616 elif test $ac_cv_prog_cc_g = yes; then
2617   if test "$GCC" = yes; then
2618     CFLAGS="-g -O2"
2619   else
2620     CFLAGS="-g"
2621   fi
2622 else
2623   if test "$GCC" = yes; then
2624     CFLAGS="-O2"
2625   else
2626     CFLAGS=
2627   fi
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2631 if ${ac_cv_prog_cc_c89+:} false; then :
2632   $as_echo_n "(cached) " >&6
2633 else
2634   ac_cv_prog_cc_c89=no
2635 ac_save_CC=$CC
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h.  */
2638 #include <stdarg.h>
2639 #include <stdio.h>
2640 struct stat;
2641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2642 struct buf { int x; };
2643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644 static char *e (p, i)
2645      char **p;
2646      int i;
2647 {
2648   return p[i];
2649 }
2650 static char *f (char * (*g) (char **, int), char **p, ...)
2651 {
2652   char *s;
2653   va_list v;
2654   va_start (v,p);
2655   s = g (p, va_arg (v,int));
2656   va_end (v);
2657   return s;
2658 }
2659
2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2661    function prototypes and stuff, but not '\xHH' hex character constants.
2662    These don't provoke an error unfortunately, instead are silently treated
2663    as 'x'.  The following induces an error, until -std is added to get
2664    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2665    array size at least.  It's necessary to write '\x00'==0 to get something
2666    that's true only with -std.  */
2667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2668
2669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2670    inside strings and character constants.  */
2671 #define FOO(x) 'x'
2672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2673
2674 int test (int i, double x);
2675 struct s1 {int (*f) (int a);};
2676 struct s2 {int (*f) (double a);};
2677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2678 int argc;
2679 char **argv;
2680 int
2681 main ()
2682 {
2683 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2689         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2690 do
2691   CC="$ac_save_CC $ac_arg"
2692   if ac_fn_c_try_compile "$LINENO"; then :
2693   ac_cv_prog_cc_c89=$ac_arg
2694 fi
2695 rm -f core conftest.err conftest.$ac_objext
2696   test "x$ac_cv_prog_cc_c89" != "xno" && break
2697 done
2698 rm -f conftest.$ac_ext
2699 CC=$ac_save_CC
2700
2701 fi
2702 # AC_CACHE_VAL
2703 case "x$ac_cv_prog_cc_c89" in
2704   x)
2705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2706 $as_echo "none needed" >&6; } ;;
2707   xno)
2708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2709 $as_echo "unsupported" >&6; } ;;
2710   *)
2711     CC="$CC $ac_cv_prog_cc_c89"
2712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2713 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2714 esac
2715 if test "x$ac_cv_prog_cc_c89" != xno; then :
2716
2717 fi
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725         ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2731 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2732 # On Suns, sometimes $CPP names a directory.
2733 if test -n "$CPP" && test -d "$CPP"; then
2734   CPP=
2735 fi
2736 if test -z "$CPP"; then
2737   if ${ac_cv_prog_CPP+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740       # Double quotes because CPP needs to be expanded
2741     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2742     do
2743       ac_preproc_ok=false
2744 for ac_c_preproc_warn_flag in '' yes
2745 do
2746   # Use a header file that comes with gcc, so configuring glibc
2747   # with a fresh cross-compiler works.
2748   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2749   # <limits.h> exists even on freestanding compilers.
2750   # On the NeXT, cc -E runs the code through the compiler's parser,
2751   # not just through cpp. "Syntax error" is here to catch this case.
2752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h.  */
2754 #ifdef __STDC__
2755 # include <limits.h>
2756 #else
2757 # include <assert.h>
2758 #endif
2759                      Syntax error
2760 _ACEOF
2761 if ac_fn_c_try_cpp "$LINENO"; then :
2762
2763 else
2764   # Broken: fails on valid input.
2765 continue
2766 fi
2767 rm -f conftest.err conftest.i conftest.$ac_ext
2768
2769   # OK, works on sane cases.  Now check whether nonexistent headers
2770   # can be detected and how.
2771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h.  */
2773 #include <ac_nonexistent.h>
2774 _ACEOF
2775 if ac_fn_c_try_cpp "$LINENO"; then :
2776   # Broken: success on invalid input.
2777 continue
2778 else
2779   # Passes both tests.
2780 ac_preproc_ok=:
2781 break
2782 fi
2783 rm -f conftest.err conftest.i conftest.$ac_ext
2784
2785 done
2786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2787 rm -f conftest.i conftest.err conftest.$ac_ext
2788 if $ac_preproc_ok; then :
2789   break
2790 fi
2791
2792     done
2793     ac_cv_prog_CPP=$CPP
2794
2795 fi
2796   CPP=$ac_cv_prog_CPP
2797 else
2798   ac_cv_prog_CPP=$CPP
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2801 $as_echo "$CPP" >&6; }
2802 ac_preproc_ok=false
2803 for ac_c_preproc_warn_flag in '' yes
2804 do
2805   # Use a header file that comes with gcc, so configuring glibc
2806   # with a fresh cross-compiler works.
2807   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2808   # <limits.h> exists even on freestanding compilers.
2809   # On the NeXT, cc -E runs the code through the compiler's parser,
2810   # not just through cpp. "Syntax error" is here to catch this case.
2811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h.  */
2813 #ifdef __STDC__
2814 # include <limits.h>
2815 #else
2816 # include <assert.h>
2817 #endif
2818                      Syntax error
2819 _ACEOF
2820 if ac_fn_c_try_cpp "$LINENO"; then :
2821
2822 else
2823   # Broken: fails on valid input.
2824 continue
2825 fi
2826 rm -f conftest.err conftest.i conftest.$ac_ext
2827
2828   # OK, works on sane cases.  Now check whether nonexistent headers
2829   # can be detected and how.
2830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h.  */
2832 #include <ac_nonexistent.h>
2833 _ACEOF
2834 if ac_fn_c_try_cpp "$LINENO"; then :
2835   # Broken: success on invalid input.
2836 continue
2837 else
2838   # Passes both tests.
2839 ac_preproc_ok=:
2840 break
2841 fi
2842 rm -f conftest.err conftest.i conftest.$ac_ext
2843
2844 done
2845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2846 rm -f conftest.i conftest.err conftest.$ac_ext
2847 if $ac_preproc_ok; then :
2848
2849 else
2850   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2853 See \`config.log' for more details" "$LINENO" 5; }
2854 fi
2855
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861
2862
2863                 rlm_krb5_dir=
2864
2865 # Check whether --with-rlm-krb5-dir was given.
2866 if test "${with_rlm_krb5_dir+set}" = set; then :
2867   withval=$with_rlm_krb5_dir;  case "$withval" in
2868             no)
2869                 as_fn_error $? "Need rlm-krb5-dir" "$LINENO" 5
2870                 ;;
2871             yes)
2872                 ;;
2873             *)
2874                 rlm_krb5_dir="$withval"
2875                 ;;
2876           esac
2877
2878 fi
2879
2880
2881         # Extract the first word of "krb5-config", so it can be a program name with args.
2882 set dummy krb5-config; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_path_krb5_config+:} false; then :
2886   $as_echo_n "(cached) " >&6
2887 else
2888   case $krb5_config in
2889   [\\/]* | ?:[\\/]*)
2890   ac_cv_path_krb5_config="$krb5_config" # Let the user override the test with a path.
2891   ;;
2892   *)
2893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 as_dummy="${rlm_krb5_dir}/bin:${PATH}:/usr/bin:/usr/local/bin"
2895 for as_dir in $as_dummy
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899     for ac_exec_ext in '' $ac_executable_extensions; do
2900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901     ac_cv_path_krb5_config="$as_dir/$ac_word$ac_exec_ext"
2902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906   done
2907 IFS=$as_save_IFS
2908
2909   test -z "$ac_cv_path_krb5_config" && ac_cv_path_krb5_config="not-found"
2910   ;;
2911 esac
2912 fi
2913 krb5_config=$ac_cv_path_krb5_config
2914 if test -n "$krb5_config"; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5
2916 $as_echo "$krb5_config" >&6; }
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923                                         if test "$krb5_config" != 'not-found'; then
2924                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config CFLAGS" >&5
2925 $as_echo_n "checking krb5-config CFLAGS... " >&6; }
2926                 SMART_CPPFLAGS=$($krb5_config --cflags)
2927                 SMART_CPPFLAGS=$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')
2928                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SMART_CPPFLAGS\"" >&5
2929 $as_echo "\"$SMART_CPPFLAGS\"" >&6; }
2930
2931                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config LDFLAGS" >&5
2932 $as_echo_n "checking krb5-config LDFLAGS... " >&6; }
2933                 SMART_LIBS=$($krb5_config --libs)
2934                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SMART_LIBS}" >&5
2935 $as_echo "${SMART_LIBS}" >&6; }
2936
2937                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config reported version" >&5
2938 $as_echo_n "checking krb5-config reported version... " >&6; }
2939                 krb5_version_raw=$($krb5_config --version)
2940
2941                                 krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
2942                         awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }')
2943                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb5_version_raw} ($krb5_version)" >&5
2944 $as_echo "${krb5_version_raw} ($krb5_version)" >&6; }
2945
2946                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config reported vendor" >&5
2947 $as_echo_n "checking krb5-config reported vendor... " >&6; }
2948                 krb5_vendor=$($krb5_config --vendor)
2949                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb5_vendor}" >&5
2950 $as_echo "${krb5_vendor}" >&6; }
2951
2952                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking canonical API type" >&5
2953 $as_echo_n "checking canonical API type... " >&6; }
2954                 if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
2955                         echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
2956                         echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
2957                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: MIT" >&5
2958 $as_echo "MIT" >&6; }
2959                         krb5_api_type='mit'
2960                 else
2961                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: HEIMDAL" >&5
2962 $as_echo "HEIMDAL" >&6; }
2963                         krb5_api_type='heimdal'
2964                 fi
2965         else
2966                 smart_try_dir="$rlm_krb5_dir/include"
2967
2968
2969
2970 ac_safe=`echo "krb5.h" | sed 'y%./+-%__pm%'`
2971 old_CPPFLAGS="$CPPFLAGS"
2972 smart_include=
2973 smart_include_dir="/usr/local/include /opt/include"
2974
2975 _smart_try_dir=
2976 _smart_include_dir=
2977
2978 for _prefix in $smart_prefix ""; do
2979   for _dir in $smart_try_dir; do
2980     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
2981   done
2982
2983   for _dir in $smart_include_dir; do
2984     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
2985   done
2986 done
2987
2988 if test "x$_smart_try_dir" != "x"; then
2989   for try in $_smart_try_dir; do
2990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
2991 $as_echo_n "checking for krb5.h in $try... " >&6; }
2992     CPPFLAGS="-isystem $try $old_CPPFLAGS"
2993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h.  */
2995
2996                     #include <krb5.h>
2997 int
2998 main ()
2999 {
3000 int a = 1;
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 if ac_fn_c_try_compile "$LINENO"; then :
3006
3007                      smart_include="-isystem $try"
3008                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3010                      break
3011
3012 else
3013
3014                      smart_include=
3015                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017
3018 fi
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020   done
3021   CPPFLAGS="$old_CPPFLAGS"
3022 fi
3023
3024 if test "x$smart_include" = "x"; then
3025   for _prefix in $smart_prefix; do
3026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/krb5.h" >&5
3027 $as_echo_n "checking for ${_prefix}/krb5.h... " >&6; }
3028
3029     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h.  */
3031
3032                     #include <krb5.h>
3033 int
3034 main ()
3035 {
3036 int a = 1;
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 if ac_fn_c_try_compile "$LINENO"; then :
3042
3043                      smart_include="-isystem ${_prefix}/"
3044                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3045 $as_echo "yes" >&6; }
3046                      break
3047
3048 else
3049
3050                      smart_include=
3051                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056   done
3057 fi
3058
3059 if test "x$smart_include" = "x"; then
3060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
3061 $as_echo_n "checking for krb5.h... " >&6; }
3062
3063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h.  */
3065
3066                     #include <krb5.h>
3067 int
3068 main ()
3069 {
3070 int a = 1;
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 if ac_fn_c_try_compile "$LINENO"; then :
3076
3077                      smart_include=" "
3078                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3079 $as_echo "yes" >&6; }
3080                      break
3081
3082 else
3083
3084                      smart_include=
3085                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087
3088 fi
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 fi
3091
3092 if test "x$smart_include" = "x"; then
3093
3094   for prefix in $smart_prefix; do
3095
3096
3097 if test "x$LOCATE" != "x"; then
3098         DIRS=
3099   file="${_prefix}/${1}"
3100
3101   for x in `${LOCATE} $file 2>/dev/null`; do
3102                                         base=`echo $x | sed "s%/${file}%%"`
3103     if test "x$x" = "x$base"; then
3104       continue;
3105     fi
3106
3107     dir=`${DIRNAME} $x 2>/dev/null`
3108                 exclude=`echo ${dir} | ${GREP} /home`
3109     if test "x$exclude" != "x"; then
3110       continue
3111     fi
3112
3113                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
3114     if test "x$already" = "x"; then
3115       DIRS="$DIRS $dir"
3116     fi
3117   done
3118 fi
3119
3120 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
3121
3122   done
3123
3124
3125 if test "x$LOCATE" != "x"; then
3126         DIRS=
3127   file=krb5.h
3128
3129   for x in `${LOCATE} $file 2>/dev/null`; do
3130                                         base=`echo $x | sed "s%/${file}%%"`
3131     if test "x$x" = "x$base"; then
3132       continue;
3133     fi
3134
3135     dir=`${DIRNAME} $x 2>/dev/null`
3136                 exclude=`echo ${dir} | ${GREP} /home`
3137     if test "x$exclude" != "x"; then
3138       continue
3139     fi
3140
3141                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
3142     if test "x$already" = "x"; then
3143       DIRS="$DIRS $dir"
3144     fi
3145   done
3146 fi
3147
3148 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
3149
3150
3151   for try in $_smart_include_dir; do
3152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3153 $as_echo_n "checking for krb5.h in $try... " >&6; }
3154     CPPFLAGS="-isystem $try $old_CPPFLAGS"
3155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h.  */
3157
3158                     #include <krb5.h>
3159 int
3160 main ()
3161 {
3162 int a = 1;
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 if ac_fn_c_try_compile "$LINENO"; then :
3168
3169                      smart_include="-isystem $try"
3170                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3172                      break
3173
3174 else
3175
3176                      smart_include=
3177                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179
3180 fi
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182   done
3183   CPPFLAGS="$old_CPPFLAGS"
3184 fi
3185
3186 if test "x$smart_include" != "x"; then
3187   eval "ac_cv_header_$ac_safe=yes"
3188   CPPFLAGS="$smart_include $old_CPPFLAGS"
3189   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3190 fi
3191
3192 smart_prefix=
3193
3194                 if test "$ac_cv_header_krb5_h" != "yes"; then
3195                         fail="$fail krb5.h"
3196                 fi
3197
3198                 krb5libcrypto=
3199                 smart_try_dir="$rlm_krb5_dir/lib"
3200
3201
3202 sm_lib_safe=`echo "k5crypto" | sed 'y%./+-%__p_%'`
3203 sm_func_safe=`echo "krb5_encrypt_data" | sed 'y%./+-%__p_%'`
3204
3205 old_LIBS="$LIBS"
3206 old_CPPFLAGS="$CPPFLAGS"
3207 smart_lib=
3208 smart_ldflags=
3209 smart_lib_dir=
3210
3211 if test "x$smart_try_dir" != "x"; then
3212   for try in $smart_try_dir; do
3213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3214 $as_echo_n "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3215     LIBS="-lk5crypto $old_LIBS"
3216     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h.  */
3219 extern char krb5_encrypt_data();
3220 int
3221 main ()
3222 {
3223 krb5_encrypt_data()
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 if ac_fn_c_try_link "$LINENO"; then :
3229
3230                  smart_lib="-lk5crypto"
3231                  smart_ldflags="-L$try -Wl,-rpath,$try"
3232                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3234                  break
3235
3236 else
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext \
3241     conftest$ac_exeext conftest.$ac_ext
3242   done
3243   LIBS="$old_LIBS"
3244   CPPFLAGS="$old_CPPFLAGS"
3245 fi
3246
3247 if test "x$smart_lib" = "x"; then
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto" >&5
3249 $as_echo_n "checking for krb5_encrypt_data in -lk5crypto... " >&6; }
3250   LIBS="-lk5crypto $old_LIBS"
3251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h.  */
3253 extern char krb5_encrypt_data();
3254 int
3255 main ()
3256 {
3257 krb5_encrypt_data()
3258   ;
3259   return 0;
3260 }
3261 _ACEOF
3262 if ac_fn_c_try_link "$LINENO"; then :
3263
3264                 smart_lib="-lk5crypto"
3265                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 $as_echo "yes" >&6; }
3267
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272 rm -f core conftest.err conftest.$ac_objext \
3273     conftest$ac_exeext conftest.$ac_ext
3274   LIBS="$old_LIBS"
3275 fi
3276
3277 if test "x$smart_lib" = "x"; then
3278
3279
3280 if test "x$LOCATE" != "x"; then
3281         DIRS=
3282   file=libk5crypto${libltdl_cv_shlibext}
3283
3284   for x in `${LOCATE} $file 2>/dev/null`; do
3285                                         base=`echo $x | sed "s%/${file}%%"`
3286     if test "x$x" = "x$base"; then
3287       continue;
3288     fi
3289
3290     dir=`${DIRNAME} $x 2>/dev/null`
3291                 exclude=`echo ${dir} | ${GREP} /home`
3292     if test "x$exclude" != "x"; then
3293       continue
3294     fi
3295
3296                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3297     if test "x$already" = "x"; then
3298       DIRS="$DIRS $dir"
3299     fi
3300   done
3301 fi
3302
3303 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3304
3305
3306
3307 if test "x$LOCATE" != "x"; then
3308         DIRS=
3309   file=libk5crypto.a
3310
3311   for x in `${LOCATE} $file 2>/dev/null`; do
3312                                         base=`echo $x | sed "s%/${file}%%"`
3313     if test "x$x" = "x$base"; then
3314       continue;
3315     fi
3316
3317     dir=`${DIRNAME} $x 2>/dev/null`
3318                 exclude=`echo ${dir} | ${GREP} /home`
3319     if test "x$exclude" != "x"; then
3320       continue
3321     fi
3322
3323                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3324     if test "x$already" = "x"; then
3325       DIRS="$DIRS $dir"
3326     fi
3327   done
3328 fi
3329
3330 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3331
3332
3333   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3335 $as_echo_n "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3336     LIBS="-lk5crypto $old_LIBS"
3337     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h.  */
3340 extern char krb5_encrypt_data();
3341 int
3342 main ()
3343 {
3344 krb5_encrypt_data()
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 if ac_fn_c_try_link "$LINENO"; then :
3350
3351                   smart_lib="-lk5crypto"
3352                   smart_ldflags="-L$try -Wl,-rpath,$try"
3353                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3355                   break
3356
3357 else
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361 rm -f core conftest.err conftest.$ac_objext \
3362     conftest$ac_exeext conftest.$ac_ext
3363   done
3364   LIBS="$old_LIBS"
3365   CPPFLAGS="$old_CPPFLAGS"
3366 fi
3367
3368 if test "x$smart_lib" != "x"; then
3369   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3370   LIBS="$smart_ldflags $smart_lib $old_LIBS"
3371   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3372 fi
3373
3374                 if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
3375                         krb5libcrypto="-lk5crypto"
3376                 fi
3377
3378                 if test "x$krb5libcrypto" = x; then
3379
3380
3381 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
3382 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
3383
3384 old_LIBS="$LIBS"
3385 old_CPPFLAGS="$CPPFLAGS"
3386 smart_lib=
3387 smart_ldflags=
3388 smart_lib_dir=
3389
3390 if test "x$smart_try_dir" != "x"; then
3391   for try in $smart_try_dir; do
3392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3393 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
3394     LIBS="-lcrypto $old_LIBS"
3395     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h.  */
3398 extern char DH_new();
3399 int
3400 main ()
3401 {
3402 DH_new()
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 if ac_fn_c_try_link "$LINENO"; then :
3408
3409                  smart_lib="-lcrypto"
3410                  smart_ldflags="-L$try -Wl,-rpath,$try"
3411                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3412 $as_echo "yes" >&6; }
3413                  break
3414
3415 else
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext \
3420     conftest$ac_exeext conftest.$ac_ext
3421   done
3422   LIBS="$old_LIBS"
3423   CPPFLAGS="$old_CPPFLAGS"
3424 fi
3425
3426 if test "x$smart_lib" = "x"; then
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
3428 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
3429   LIBS="-lcrypto $old_LIBS"
3430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h.  */
3432 extern char DH_new();
3433 int
3434 main ()
3435 {
3436 DH_new()
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_c_try_link "$LINENO"; then :
3442
3443                 smart_lib="-lcrypto"
3444                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3445 $as_echo "yes" >&6; }
3446
3447 else
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext \
3452     conftest$ac_exeext conftest.$ac_ext
3453   LIBS="$old_LIBS"
3454 fi
3455
3456 if test "x$smart_lib" = "x"; then
3457
3458
3459 if test "x$LOCATE" != "x"; then
3460         DIRS=
3461   file=libcrypto${libltdl_cv_shlibext}
3462
3463   for x in `${LOCATE} $file 2>/dev/null`; do
3464                                         base=`echo $x | sed "s%/${file}%%"`
3465     if test "x$x" = "x$base"; then
3466       continue;
3467     fi
3468
3469     dir=`${DIRNAME} $x 2>/dev/null`
3470                 exclude=`echo ${dir} | ${GREP} /home`
3471     if test "x$exclude" != "x"; then
3472       continue
3473     fi
3474
3475                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3476     if test "x$already" = "x"; then
3477       DIRS="$DIRS $dir"
3478     fi
3479   done
3480 fi
3481
3482 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3483
3484
3485
3486 if test "x$LOCATE" != "x"; then
3487         DIRS=
3488   file=libcrypto.a
3489
3490   for x in `${LOCATE} $file 2>/dev/null`; do
3491                                         base=`echo $x | sed "s%/${file}%%"`
3492     if test "x$x" = "x$base"; then
3493       continue;
3494     fi
3495
3496     dir=`${DIRNAME} $x 2>/dev/null`
3497                 exclude=`echo ${dir} | ${GREP} /home`
3498     if test "x$exclude" != "x"; then
3499       continue
3500     fi
3501
3502                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3503     if test "x$already" = "x"; then
3504       DIRS="$DIRS $dir"
3505     fi
3506   done
3507 fi
3508
3509 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3510
3511
3512   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3514 $as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
3515     LIBS="-lcrypto $old_LIBS"
3516     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519 extern char DH_new();
3520 int
3521 main ()
3522 {
3523 DH_new()
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_link "$LINENO"; then :
3529
3530                   smart_lib="-lcrypto"
3531                   smart_ldflags="-L$try -Wl,-rpath,$try"
3532                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534                   break
3535
3536 else
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext \
3541     conftest$ac_exeext conftest.$ac_ext
3542   done
3543   LIBS="$old_LIBS"
3544   CPPFLAGS="$old_CPPFLAGS"
3545 fi
3546
3547 if test "x$smart_lib" != "x"; then
3548   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3549   LIBS="$smart_ldflags $smart_lib $old_LIBS"
3550   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3551 fi
3552
3553                         if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
3554                                 krb5libcrypto="-lcrypto"
3555                         fi
3556                 fi
3557
3558                 if test "x$krb5libcrypto" = x; then
3559                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
3560 $as_echo "$as_me: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&2;}
3561                 fi
3562
3563
3564
3565 sm_lib_safe=`echo "com_err" | sed 'y%./+-%__p_%'`
3566 sm_func_safe=`echo "set_com_err_hook" | sed 'y%./+-%__p_%'`
3567
3568 old_LIBS="$LIBS"
3569 old_CPPFLAGS="$CPPFLAGS"
3570 smart_lib=
3571 smart_ldflags=
3572 smart_lib_dir=
3573
3574 if test "x$smart_try_dir" != "x"; then
3575   for try in $smart_try_dir; do
3576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
3577 $as_echo_n "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
3578     LIBS="-lcom_err $old_LIBS"
3579     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582 extern char set_com_err_hook();
3583 int
3584 main ()
3585 {
3586 set_com_err_hook()
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_link "$LINENO"; then :
3592
3593                  smart_lib="-lcom_err"
3594                  smart_ldflags="-L$try -Wl,-rpath,$try"
3595                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3597                  break
3598
3599 else
3600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext \
3604     conftest$ac_exeext conftest.$ac_ext
3605   done
3606   LIBS="$old_LIBS"
3607   CPPFLAGS="$old_CPPFLAGS"
3608 fi
3609
3610 if test "x$smart_lib" = "x"; then
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err" >&5
3612 $as_echo_n "checking for set_com_err_hook in -lcom_err... " >&6; }
3613   LIBS="-lcom_err $old_LIBS"
3614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616 extern char set_com_err_hook();
3617 int
3618 main ()
3619 {
3620 set_com_err_hook()
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 if ac_fn_c_try_link "$LINENO"; then :
3626
3627                 smart_lib="-lcom_err"
3628                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3630
3631 else
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext \
3636     conftest$ac_exeext conftest.$ac_ext
3637   LIBS="$old_LIBS"
3638 fi
3639
3640 if test "x$smart_lib" = "x"; then
3641
3642
3643 if test "x$LOCATE" != "x"; then
3644         DIRS=
3645   file=libcom_err${libltdl_cv_shlibext}
3646
3647   for x in `${LOCATE} $file 2>/dev/null`; do
3648                                         base=`echo $x | sed "s%/${file}%%"`
3649     if test "x$x" = "x$base"; then
3650       continue;
3651     fi
3652
3653     dir=`${DIRNAME} $x 2>/dev/null`
3654                 exclude=`echo ${dir} | ${GREP} /home`
3655     if test "x$exclude" != "x"; then
3656       continue
3657     fi
3658
3659                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3660     if test "x$already" = "x"; then
3661       DIRS="$DIRS $dir"
3662     fi
3663   done
3664 fi
3665
3666 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3667
3668
3669
3670 if test "x$LOCATE" != "x"; then
3671         DIRS=
3672   file=libcom_err.a
3673
3674   for x in `${LOCATE} $file 2>/dev/null`; do
3675                                         base=`echo $x | sed "s%/${file}%%"`
3676     if test "x$x" = "x$base"; then
3677       continue;
3678     fi
3679
3680     dir=`${DIRNAME} $x 2>/dev/null`
3681                 exclude=`echo ${dir} | ${GREP} /home`
3682     if test "x$exclude" != "x"; then
3683       continue
3684     fi
3685
3686                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3687     if test "x$already" = "x"; then
3688       DIRS="$DIRS $dir"
3689     fi
3690   done
3691 fi
3692
3693 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3694
3695
3696   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
3698 $as_echo_n "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
3699     LIBS="-lcom_err $old_LIBS"
3700     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3701     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h.  */
3703 extern char set_com_err_hook();
3704 int
3705 main ()
3706 {
3707 set_com_err_hook()
3708   ;
3709   return 0;
3710 }
3711 _ACEOF
3712 if ac_fn_c_try_link "$LINENO"; then :
3713
3714                   smart_lib="-lcom_err"
3715                   smart_ldflags="-L$try -Wl,-rpath,$try"
3716                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3717 $as_echo "yes" >&6; }
3718                   break
3719
3720 else
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext \
3725     conftest$ac_exeext conftest.$ac_ext
3726   done
3727   LIBS="$old_LIBS"
3728   CPPFLAGS="$old_CPPFLAGS"
3729 fi
3730
3731 if test "x$smart_lib" != "x"; then
3732   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3733   LIBS="$smart_ldflags $smart_lib $old_LIBS"
3734   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3735 fi
3736
3737                 if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
3738                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the comm_err library isn't found!" >&5
3739 $as_echo "$as_me: WARNING: the comm_err library isn't found!" >&2;}
3740                 fi
3741
3742
3743
3744 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
3745 sm_func_safe=`echo "krb5_verify_user_opt" | sed 'y%./+-%__p_%'`
3746
3747 old_LIBS="$LIBS"
3748 old_CPPFLAGS="$CPPFLAGS"
3749 smart_lib=
3750 smart_ldflags=
3751 smart_lib_dir=
3752
3753 if test "x$smart_try_dir" != "x"; then
3754   for try in $smart_try_dir; do
3755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
3756 $as_echo_n "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
3757     LIBS="-lkrb5 $old_LIBS"
3758     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761 extern char krb5_verify_user_opt();
3762 int
3763 main ()
3764 {
3765 krb5_verify_user_opt()
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_link "$LINENO"; then :
3771
3772                  smart_lib="-lkrb5"
3773                  smart_ldflags="-L$try -Wl,-rpath,$try"
3774                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3775 $as_echo "yes" >&6; }
3776                  break
3777
3778 else
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext \
3783     conftest$ac_exeext conftest.$ac_ext
3784   done
3785   LIBS="$old_LIBS"
3786   CPPFLAGS="$old_CPPFLAGS"
3787 fi
3788
3789 if test "x$smart_lib" = "x"; then
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5" >&5
3791 $as_echo_n "checking for krb5_verify_user_opt in -lkrb5... " >&6; }
3792   LIBS="-lkrb5 $old_LIBS"
3793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795 extern char krb5_verify_user_opt();
3796 int
3797 main ()
3798 {
3799 krb5_verify_user_opt()
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_link "$LINENO"; then :
3805
3806                 smart_lib="-lkrb5"
3807                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3809
3810 else
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext \
3815     conftest$ac_exeext conftest.$ac_ext
3816   LIBS="$old_LIBS"
3817 fi
3818
3819 if test "x$smart_lib" = "x"; then
3820
3821
3822 if test "x$LOCATE" != "x"; then
3823         DIRS=
3824   file=libkrb5${libltdl_cv_shlibext}
3825
3826   for x in `${LOCATE} $file 2>/dev/null`; do
3827                                         base=`echo $x | sed "s%/${file}%%"`
3828     if test "x$x" = "x$base"; then
3829       continue;
3830     fi
3831
3832     dir=`${DIRNAME} $x 2>/dev/null`
3833                 exclude=`echo ${dir} | ${GREP} /home`
3834     if test "x$exclude" != "x"; then
3835       continue
3836     fi
3837
3838                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3839     if test "x$already" = "x"; then
3840       DIRS="$DIRS $dir"
3841     fi
3842   done
3843 fi
3844
3845 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3846
3847
3848
3849 if test "x$LOCATE" != "x"; then
3850         DIRS=
3851   file=libkrb5.a
3852
3853   for x in `${LOCATE} $file 2>/dev/null`; do
3854                                         base=`echo $x | sed "s%/${file}%%"`
3855     if test "x$x" = "x$base"; then
3856       continue;
3857     fi
3858
3859     dir=`${DIRNAME} $x 2>/dev/null`
3860                 exclude=`echo ${dir} | ${GREP} /home`
3861     if test "x$exclude" != "x"; then
3862       continue
3863     fi
3864
3865                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3866     if test "x$already" = "x"; then
3867       DIRS="$DIRS $dir"
3868     fi
3869   done
3870 fi
3871
3872 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3873
3874
3875   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
3877 $as_echo_n "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
3878     LIBS="-lkrb5 $old_LIBS"
3879     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882 extern char krb5_verify_user_opt();
3883 int
3884 main ()
3885 {
3886 krb5_verify_user_opt()
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 if ac_fn_c_try_link "$LINENO"; then :
3892
3893                   smart_lib="-lkrb5"
3894                   smart_ldflags="-L$try -Wl,-rpath,$try"
3895                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3897                   break
3898
3899 else
3900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext \
3904     conftest$ac_exeext conftest.$ac_ext
3905   done
3906   LIBS="$old_LIBS"
3907   CPPFLAGS="$old_CPPFLAGS"
3908 fi
3909
3910 if test "x$smart_lib" != "x"; then
3911   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3912   LIBS="$smart_ldflags $smart_lib $old_LIBS"
3913   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3914 fi
3915
3916                 if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" == xyes; then
3917                         krb5_api_type='heimdal'
3918                 else
3919                         krb5_api_type='mit'
3920
3921
3922
3923 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
3924 sm_func_safe=`echo "krb5_get_init_creds_password" | sed 'y%./+-%__p_%'`
3925
3926 old_LIBS="$LIBS"
3927 old_CPPFLAGS="$CPPFLAGS"
3928 smart_lib=
3929 smart_ldflags=
3930 smart_lib_dir=
3931
3932 if test "x$smart_try_dir" != "x"; then
3933   for try in $smart_try_dir; do
3934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
3935 $as_echo_n "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
3936     LIBS="-lkrb5 $old_LIBS"
3937     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h.  */
3940 extern char krb5_get_init_creds_password();
3941 int
3942 main ()
3943 {
3944 krb5_get_init_creds_password()
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_link "$LINENO"; then :
3950
3951                  smart_lib="-lkrb5"
3952                  smart_ldflags="-L$try -Wl,-rpath,$try"
3953                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955                  break
3956
3957 else
3958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext \
3962     conftest$ac_exeext conftest.$ac_ext
3963   done
3964   LIBS="$old_LIBS"
3965   CPPFLAGS="$old_CPPFLAGS"
3966 fi
3967
3968 if test "x$smart_lib" = "x"; then
3969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5" >&5
3970 $as_echo_n "checking for krb5_get_init_creds_password in -lkrb5... " >&6; }
3971   LIBS="-lkrb5 $old_LIBS"
3972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974 extern char krb5_get_init_creds_password();
3975 int
3976 main ()
3977 {
3978 krb5_get_init_creds_password()
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 if ac_fn_c_try_link "$LINENO"; then :
3984
3985                 smart_lib="-lkrb5"
3986                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3988
3989 else
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext \
3994     conftest$ac_exeext conftest.$ac_ext
3995   LIBS="$old_LIBS"
3996 fi
3997
3998 if test "x$smart_lib" = "x"; then
3999
4000
4001 if test "x$LOCATE" != "x"; then
4002         DIRS=
4003   file=libkrb5${libltdl_cv_shlibext}
4004
4005   for x in `${LOCATE} $file 2>/dev/null`; do
4006                                         base=`echo $x | sed "s%/${file}%%"`
4007     if test "x$x" = "x$base"; then
4008       continue;
4009     fi
4010
4011     dir=`${DIRNAME} $x 2>/dev/null`
4012                 exclude=`echo ${dir} | ${GREP} /home`
4013     if test "x$exclude" != "x"; then
4014       continue
4015     fi
4016
4017                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4018     if test "x$already" = "x"; then
4019       DIRS="$DIRS $dir"
4020     fi
4021   done
4022 fi
4023
4024 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4025
4026
4027
4028 if test "x$LOCATE" != "x"; then
4029         DIRS=
4030   file=libkrb5.a
4031
4032   for x in `${LOCATE} $file 2>/dev/null`; do
4033                                         base=`echo $x | sed "s%/${file}%%"`
4034     if test "x$x" = "x$base"; then
4035       continue;
4036     fi
4037
4038     dir=`${DIRNAME} $x 2>/dev/null`
4039                 exclude=`echo ${dir} | ${GREP} /home`
4040     if test "x$exclude" != "x"; then
4041       continue
4042     fi
4043
4044                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4045     if test "x$already" = "x"; then
4046       DIRS="$DIRS $dir"
4047     fi
4048   done
4049 fi
4050
4051 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4052
4053
4054   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4056 $as_echo_n "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4057     LIBS="-lkrb5 $old_LIBS"
4058     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h.  */
4061 extern char krb5_get_init_creds_password();
4062 int
4063 main ()
4064 {
4065 krb5_get_init_creds_password()
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_link "$LINENO"; then :
4071
4072                   smart_lib="-lkrb5"
4073                   smart_ldflags="-L$try -Wl,-rpath,$try"
4074                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075 $as_echo "yes" >&6; }
4076                   break
4077
4078 else
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext \
4083     conftest$ac_exeext conftest.$ac_ext
4084   done
4085   LIBS="$old_LIBS"
4086   CPPFLAGS="$old_CPPFLAGS"
4087 fi
4088
4089 if test "x$smart_lib" != "x"; then
4090   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4091   LIBS="$smart_ldflags $smart_lib $old_LIBS"
4092   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4093 fi
4094
4095                         if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
4096                             fail="$fail krb5"
4097                         fi
4098                 fi
4099
4100         fi
4101
4102                                 LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
4103         CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
4104
4105                                 for ac_func in krb5_get_error_message krb5_free_error_string krb5_free_error_message
4106 do :
4107   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4109 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4110   cat >>confdefs.h <<_ACEOF
4111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4112 _ACEOF
4113
4114 fi
4115 done
4116
4117         if test "x$ac_cv_func_krb5_get_error_message" == xyes; then
4118                 krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
4119         fi
4120         if test "x$ac_cv_func_krb5_free_error_message" == xyes; then
4121                 krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
4122         fi
4123         if test "x$ac_cv_func_krb5_free_error_string" == xyes; then
4124                 krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
4125         fi
4126
4127                                 if test "$krb5threadsafe" != "no"; then
4128                 krb5threadsafe=
4129
4130
4131
4132 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
4133 sm_func_safe=`echo "krb5_is_thread_safe" | sed 'y%./+-%__p_%'`
4134
4135 old_LIBS="$LIBS"
4136 old_CPPFLAGS="$CPPFLAGS"
4137 smart_lib=
4138 smart_ldflags=
4139 smart_lib_dir=
4140
4141 if test "x$smart_try_dir" != "x"; then
4142   for try in $smart_try_dir; do
4143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4144 $as_echo_n "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4145     LIBS="-lkrb5 $old_LIBS"
4146     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h.  */
4149 extern char krb5_is_thread_safe();
4150 int
4151 main ()
4152 {
4153 krb5_is_thread_safe()
4154   ;
4155   return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_link "$LINENO"; then :
4159
4160                  smart_lib="-lkrb5"
4161                  smart_ldflags="-L$try -Wl,-rpath,$try"
4162                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4163 $as_echo "yes" >&6; }
4164                  break
4165
4166 else
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext \
4171     conftest$ac_exeext conftest.$ac_ext
4172   done
4173   LIBS="$old_LIBS"
4174   CPPFLAGS="$old_CPPFLAGS"
4175 fi
4176
4177 if test "x$smart_lib" = "x"; then
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5" >&5
4179 $as_echo_n "checking for krb5_is_thread_safe in -lkrb5... " >&6; }
4180   LIBS="-lkrb5 $old_LIBS"
4181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183 extern char krb5_is_thread_safe();
4184 int
4185 main ()
4186 {
4187 krb5_is_thread_safe()
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_link "$LINENO"; then :
4193
4194                 smart_lib="-lkrb5"
4195                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4196 $as_echo "yes" >&6; }
4197
4198 else
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 fi
4202 rm -f core conftest.err conftest.$ac_objext \
4203     conftest$ac_exeext conftest.$ac_ext
4204   LIBS="$old_LIBS"
4205 fi
4206
4207 if test "x$smart_lib" = "x"; then
4208
4209
4210 if test "x$LOCATE" != "x"; then
4211         DIRS=
4212   file=libkrb5${libltdl_cv_shlibext}
4213
4214   for x in `${LOCATE} $file 2>/dev/null`; do
4215                                         base=`echo $x | sed "s%/${file}%%"`
4216     if test "x$x" = "x$base"; then
4217       continue;
4218     fi
4219
4220     dir=`${DIRNAME} $x 2>/dev/null`
4221                 exclude=`echo ${dir} | ${GREP} /home`
4222     if test "x$exclude" != "x"; then
4223       continue
4224     fi
4225
4226                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4227     if test "x$already" = "x"; then
4228       DIRS="$DIRS $dir"
4229     fi
4230   done
4231 fi
4232
4233 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4234
4235
4236
4237 if test "x$LOCATE" != "x"; then
4238         DIRS=
4239   file=libkrb5.a
4240
4241   for x in `${LOCATE} $file 2>/dev/null`; do
4242                                         base=`echo $x | sed "s%/${file}%%"`
4243     if test "x$x" = "x$base"; then
4244       continue;
4245     fi
4246
4247     dir=`${DIRNAME} $x 2>/dev/null`
4248                 exclude=`echo ${dir} | ${GREP} /home`
4249     if test "x$exclude" != "x"; then
4250       continue
4251     fi
4252
4253                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4254     if test "x$already" = "x"; then
4255       DIRS="$DIRS $dir"
4256     fi
4257   done
4258 fi
4259
4260 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4261
4262
4263   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4265 $as_echo_n "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4266     LIBS="-lkrb5 $old_LIBS"
4267     CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h.  */
4270 extern char krb5_is_thread_safe();
4271 int
4272 main ()
4273 {
4274 krb5_is_thread_safe()
4275   ;
4276   return 0;
4277 }
4278 _ACEOF
4279 if ac_fn_c_try_link "$LINENO"; then :
4280
4281                   smart_lib="-lkrb5"
4282                   smart_ldflags="-L$try -Wl,-rpath,$try"
4283                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4284 $as_echo "yes" >&6; }
4285                   break
4286
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext \
4292     conftest$ac_exeext conftest.$ac_ext
4293   done
4294   LIBS="$old_LIBS"
4295   CPPFLAGS="$old_CPPFLAGS"
4296 fi
4297
4298 if test "x$smart_lib" != "x"; then
4299   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4300   LIBS="$smart_ldflags $smart_lib $old_LIBS"
4301   SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4302 fi
4303
4304                 if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" == xyes; then
4305                         if test "$cross_compiling" = yes; then :
4306   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $? "cannot run test program while cross compiling
4309 See \`config.log' for more details" "$LINENO" 5; }
4310 else
4311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h.  */
4313 #include <krb5.h>
4314 int
4315 main ()
4316 {
4317 return krb5_is_thread_safe() ? 0 : 1
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 if ac_fn_c_try_run "$LINENO"; then :
4323   krb5threadsafe="-DKRB5_IS_THREAD_SAFE"
4324 else
4325   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libkrb5 is not threadsafe" >&5
4326 $as_echo "$as_me: WARNING: libkrb5 is not threadsafe" >&2;}
4327 fi
4328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4329   conftest.$ac_objext conftest.beam conftest.$ac_ext
4330 fi
4331
4332                 fi
4333         else
4334                 krb5threadsafe=""
4335         fi
4336
4337         if test "$krb5_api_type" == "mit"; then
4338
4339
4340 ac_safe=`echo "com_err.h" | sed 'y%./+-%__pm%'`
4341 old_CPPFLAGS="$CPPFLAGS"
4342 smart_include=
4343 smart_include_dir="/usr/local/include /opt/include"
4344
4345 _smart_try_dir=
4346 _smart_include_dir=
4347
4348 for _prefix in $smart_prefix ""; do
4349   for _dir in $smart_try_dir; do
4350     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
4351   done
4352
4353   for _dir in $smart_include_dir; do
4354     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
4355   done
4356 done
4357
4358 if test "x$_smart_try_dir" != "x"; then
4359   for try in $_smart_try_dir; do
4360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
4361 $as_echo_n "checking for com_err.h in $try... " >&6; }
4362     CPPFLAGS="-isystem $try $old_CPPFLAGS"
4363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h.  */
4365
4366                     #include <com_err.h>
4367 int
4368 main ()
4369 {
4370 int a = 1;
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376
4377                      smart_include="-isystem $try"
4378                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4380                      break
4381
4382 else
4383
4384                      smart_include=
4385                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390   done
4391   CPPFLAGS="$old_CPPFLAGS"
4392 fi
4393
4394 if test "x$smart_include" = "x"; then
4395   for _prefix in $smart_prefix; do
4396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/com_err.h" >&5
4397 $as_echo_n "checking for ${_prefix}/com_err.h... " >&6; }
4398
4399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401
4402                     #include <com_err.h>
4403 int
4404 main ()
4405 {
4406 int a = 1;
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412
4413                      smart_include="-isystem ${_prefix}/"
4414                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4416                      break
4417
4418 else
4419
4420                      smart_include=
4421                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423
4424 fi
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426   done
4427 fi
4428
4429 if test "x$smart_include" = "x"; then
4430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h" >&5
4431 $as_echo_n "checking for com_err.h... " >&6; }
4432
4433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h.  */
4435
4436                     #include <com_err.h>
4437 int
4438 main ()
4439 {
4440 int a = 1;
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446
4447                      smart_include=" "
4448                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4449 $as_echo "yes" >&6; }
4450                      break
4451
4452 else
4453
4454                      smart_include=
4455                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 fi
4461
4462 if test "x$smart_include" = "x"; then
4463
4464   for prefix in $smart_prefix; do
4465
4466
4467 if test "x$LOCATE" != "x"; then
4468         DIRS=
4469   file="${_prefix}/${1}"
4470
4471   for x in `${LOCATE} $file 2>/dev/null`; do
4472                                         base=`echo $x | sed "s%/${file}%%"`
4473     if test "x$x" = "x$base"; then
4474       continue;
4475     fi
4476
4477     dir=`${DIRNAME} $x 2>/dev/null`
4478                 exclude=`echo ${dir} | ${GREP} /home`
4479     if test "x$exclude" != "x"; then
4480       continue
4481     fi
4482
4483                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
4484     if test "x$already" = "x"; then
4485       DIRS="$DIRS $dir"
4486     fi
4487   done
4488 fi
4489
4490 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
4491
4492   done
4493
4494
4495 if test "x$LOCATE" != "x"; then
4496         DIRS=
4497   file=com_err.h
4498
4499   for x in `${LOCATE} $file 2>/dev/null`; do
4500                                         base=`echo $x | sed "s%/${file}%%"`
4501     if test "x$x" = "x$base"; then
4502       continue;
4503     fi
4504
4505     dir=`${DIRNAME} $x 2>/dev/null`
4506                 exclude=`echo ${dir} | ${GREP} /home`
4507     if test "x$exclude" != "x"; then
4508       continue
4509     fi
4510
4511                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
4512     if test "x$already" = "x"; then
4513       DIRS="$DIRS $dir"
4514     fi
4515   done
4516 fi
4517
4518 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
4519
4520
4521   for try in $_smart_include_dir; do
4522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
4523 $as_echo_n "checking for com_err.h in $try... " >&6; }
4524     CPPFLAGS="-isystem $try $old_CPPFLAGS"
4525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527
4528                     #include <com_err.h>
4529 int
4530 main ()
4531 {
4532 int a = 1;
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538
4539                      smart_include="-isystem $try"
4540                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541 $as_echo "yes" >&6; }
4542                      break
4543
4544 else
4545
4546                      smart_include=
4547                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4549
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552   done
4553   CPPFLAGS="$old_CPPFLAGS"
4554 fi
4555
4556 if test "x$smart_include" != "x"; then
4557   eval "ac_cv_header_$ac_safe=yes"
4558   CPPFLAGS="$smart_include $old_CPPFLAGS"
4559   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
4560 fi
4561
4562 smart_prefix=
4563
4564                 if test "$ac_cv_header_com_err_h" != "yes"; then
4565
4566
4567 ac_safe=`echo "et/com_err.h" | sed 'y%./+-%__pm%'`
4568 old_CPPFLAGS="$CPPFLAGS"
4569 smart_include=
4570 smart_include_dir="/usr/local/include /opt/include"
4571
4572 _smart_try_dir=
4573 _smart_include_dir=
4574
4575 for _prefix in $smart_prefix ""; do
4576   for _dir in $smart_try_dir; do
4577     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
4578   done
4579
4580   for _dir in $smart_include_dir; do
4581     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
4582   done
4583 done
4584
4585 if test "x$_smart_try_dir" != "x"; then
4586   for try in $_smart_try_dir; do
4587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
4588 $as_echo_n "checking for et/com_err.h in $try... " >&6; }
4589     CPPFLAGS="-isystem $try $old_CPPFLAGS"
4590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592
4593                     #include <et/com_err.h>
4594 int
4595 main ()
4596 {
4597 int a = 1;
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603
4604                      smart_include="-isystem $try"
4605                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4606 $as_echo "yes" >&6; }
4607                      break
4608
4609 else
4610
4611                      smart_include=
4612                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617   done
4618   CPPFLAGS="$old_CPPFLAGS"
4619 fi
4620
4621 if test "x$smart_include" = "x"; then
4622   for _prefix in $smart_prefix; do
4623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/et/com_err.h" >&5
4624 $as_echo_n "checking for ${_prefix}/et/com_err.h... " >&6; }
4625
4626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h.  */
4628
4629                     #include <et/com_err.h>
4630 int
4631 main ()
4632 {
4633 int a = 1;
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639
4640                      smart_include="-isystem ${_prefix}/"
4641                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4642 $as_echo "yes" >&6; }
4643                      break
4644
4645 else
4646
4647                      smart_include=
4648                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653   done
4654 fi
4655
4656 if test "x$smart_include" = "x"; then
4657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
4658 $as_echo_n "checking for et/com_err.h... " >&6; }
4659
4660     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662
4663                     #include <et/com_err.h>
4664 int
4665 main ()
4666 {
4667 int a = 1;
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4673
4674                      smart_include=" "
4675                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4676 $as_echo "yes" >&6; }
4677                      break
4678
4679 else
4680
4681                      smart_include=
4682                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 fi
4688
4689 if test "x$smart_include" = "x"; then
4690
4691   for prefix in $smart_prefix; do
4692
4693
4694 if test "x$LOCATE" != "x"; then
4695         DIRS=
4696   file="${_prefix}/${1}"
4697
4698   for x in `${LOCATE} $file 2>/dev/null`; do
4699                                         base=`echo $x | sed "s%/${file}%%"`
4700     if test "x$x" = "x$base"; then
4701       continue;
4702     fi
4703
4704     dir=`${DIRNAME} $x 2>/dev/null`
4705                 exclude=`echo ${dir} | ${GREP} /home`
4706     if test "x$exclude" != "x"; then
4707       continue
4708     fi
4709
4710                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
4711     if test "x$already" = "x"; then
4712       DIRS="$DIRS $dir"
4713     fi
4714   done
4715 fi
4716
4717 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
4718
4719   done
4720
4721
4722 if test "x$LOCATE" != "x"; then
4723         DIRS=
4724   file=et/com_err.h
4725
4726   for x in `${LOCATE} $file 2>/dev/null`; do
4727                                         base=`echo $x | sed "s%/${file}%%"`
4728     if test "x$x" = "x$base"; then
4729       continue;
4730     fi
4731
4732     dir=`${DIRNAME} $x 2>/dev/null`
4733                 exclude=`echo ${dir} | ${GREP} /home`
4734     if test "x$exclude" != "x"; then
4735       continue
4736     fi
4737
4738                     already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
4739     if test "x$already" = "x"; then
4740       DIRS="$DIRS $dir"
4741     fi
4742   done
4743 fi
4744
4745 eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
4746
4747
4748   for try in $_smart_include_dir; do
4749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
4750 $as_echo_n "checking for et/com_err.h in $try... " >&6; }
4751     CPPFLAGS="-isystem $try $old_CPPFLAGS"
4752     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754
4755                     #include <et/com_err.h>
4756 int
4757 main ()
4758 {
4759 int a = 1;
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765
4766                      smart_include="-isystem $try"
4767                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4768 $as_echo "yes" >&6; }
4769                      break
4770
4771 else
4772
4773                      smart_include=
4774                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779   done
4780   CPPFLAGS="$old_CPPFLAGS"
4781 fi
4782
4783 if test "x$smart_include" != "x"; then
4784   eval "ac_cv_header_$ac_safe=yes"
4785   CPPFLAGS="$smart_include $old_CPPFLAGS"
4786   SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
4787 fi
4788
4789 smart_prefix=
4790
4791                         if test "$ac_cv_header_et_com_err_h" != "yes"; then
4792                                 fail="$fail com_err.h"
4793                         else
4794                                 krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
4795                         fi
4796                 fi
4797         else
4798                 krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
4799         fi
4800         targetname=rlm_krb5
4801 else
4802         targetname=
4803         echo \*\*\* module rlm_krb5 is disabled.
4804 fi
4805
4806 if test x"$fail" != x""; then
4807         if test x"${enable_strict_dependencies}" = x"yes"; then
4808                 as_fn_error $? "set --without-rlm_krb5 to disable it explicitly." "$LINENO" 5
4809         else
4810                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_krb5." >&5
4811 $as_echo "$as_me: WARNING: silently not building rlm_krb5." >&2;}
4812                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_krb5 requires: $fail." >&5
4813 $as_echo "$as_me: WARNING: FAILURE: rlm_krb5 requires: $fail." >&2;};
4814                 targetname=""
4815         fi
4816 fi
4817
4818 mod_ldflags="$krb5mod_ldflags $krb5libcrypto $SMART_LIBS"
4819 mod_cflags="$krb5mod_cflags $krb5threadsafe $SMART_CPPFLAGS"
4820
4821
4822
4823
4824
4825   unset ac_cv_env_LIBS_set
4826   unset ac_cv_env_LIBS_value
4827
4828   ac_config_files="$ac_config_files all.mk"
4829
4830 cat >confcache <<\_ACEOF
4831 # This file is a shell script that caches the results of configure
4832 # tests run on this system so they can be shared between configure
4833 # scripts and configure runs, see configure's option --config-cache.
4834 # It is not useful on other systems.  If it contains results you don't
4835 # want to keep, you may remove or edit it.
4836 #
4837 # config.status only pays attention to the cache file if you give it
4838 # the --recheck option to rerun configure.
4839 #
4840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4842 # following values.
4843
4844 _ACEOF
4845
4846 # The following way of writing the cache mishandles newlines in values,
4847 # but we know of no workaround that is simple, portable, and efficient.
4848 # So, we kill variables containing newlines.
4849 # Ultrix sh set writes to stderr and can't be redirected directly,
4850 # and sets the high bit in the cache file unless we assign to the vars.
4851 (
4852   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4853     eval ac_val=\$$ac_var
4854     case $ac_val in #(
4855     *${as_nl}*)
4856       case $ac_var in #(
4857       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4858 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4859       esac
4860       case $ac_var in #(
4861       _ | IFS | as_nl) ;; #(
4862       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4863       *) { eval $ac_var=; unset $ac_var;} ;;
4864       esac ;;
4865     esac
4866   done
4867
4868   (set) 2>&1 |
4869     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4870     *${as_nl}ac_space=\ *)
4871       # `set' does not quote correctly, so add quotes: double-quote
4872       # substitution turns \\\\ into \\, and sed turns \\ into \.
4873       sed -n \
4874         "s/'/'\\\\''/g;
4875           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4876       ;; #(
4877     *)
4878       # `set' quotes correctly as required by POSIX, so do not add quotes.
4879       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4880       ;;
4881     esac |
4882     sort
4883 ) |
4884   sed '
4885      /^ac_cv_env_/b end
4886      t clear
4887      :clear
4888      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4889      t end
4890      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4891      :end' >>confcache
4892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4893   if test -w "$cache_file"; then
4894     if test "x$cache_file" != "x/dev/null"; then
4895       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4896 $as_echo "$as_me: updating cache $cache_file" >&6;}
4897       if test ! -f "$cache_file" || test -h "$cache_file"; then
4898         cat confcache >"$cache_file"
4899       else
4900         case $cache_file in #(
4901         */* | ?:*)
4902           mv -f confcache "$cache_file"$$ &&
4903           mv -f "$cache_file"$$ "$cache_file" ;; #(
4904         *)
4905           mv -f confcache "$cache_file" ;;
4906         esac
4907       fi
4908     fi
4909   else
4910     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4912   fi
4913 fi
4914 rm -f confcache
4915
4916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4917 # Let make expand exec_prefix.
4918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4919
4920 # Transform confdefs.h into DEFS.
4921 # Protect against shell expansion while executing Makefile rules.
4922 # Protect against Makefile macro expansion.
4923 #
4924 # If the first sed substitution is executed (which looks for macros that
4925 # take arguments), then branch to the quote section.  Otherwise,
4926 # look for a macro that doesn't take arguments.
4927 ac_script='
4928 :mline
4929 /\\$/{
4930  N
4931  s,\\\n,,
4932  b mline
4933 }
4934 t clear
4935 :clear
4936 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4937 t quote
4938 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4939 t quote
4940 b any
4941 :quote
4942 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4943 s/\[/\\&/g
4944 s/\]/\\&/g
4945 s/\$/$$/g
4946 H
4947 :any
4948 ${
4949         g
4950         s/^\n//
4951         s/\n/ /g
4952         p
4953 }
4954 '
4955 DEFS=`sed -n "$ac_script" confdefs.h`
4956
4957
4958 ac_libobjs=
4959 ac_ltlibobjs=
4960 U=
4961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4962   # 1. Remove the extension, and $U if already installed.
4963   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4964   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4965   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4966   #    will be set to the directory where LIBOBJS objects are built.
4967   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4968   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4969 done
4970 LIBOBJS=$ac_libobjs
4971
4972 LTLIBOBJS=$ac_ltlibobjs
4973
4974
4975
4976 : "${CONFIG_STATUS=./config.status}"
4977 ac_write_fail=0
4978 ac_clean_files_save=$ac_clean_files
4979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4981 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4982 as_write_fail=0
4983 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4984 #! $SHELL
4985 # Generated by $as_me.
4986 # Run this file to recreate the current configuration.
4987 # Compiler output produced by configure, useful for debugging
4988 # configure, is in config.log if it exists.
4989
4990 debug=false
4991 ac_cs_recheck=false
4992 ac_cs_silent=false
4993
4994 SHELL=\${CONFIG_SHELL-$SHELL}
4995 export SHELL
4996 _ASEOF
4997 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4998 ## -------------------- ##
4999 ## M4sh Initialization. ##
5000 ## -------------------- ##
5001
5002 # Be more Bourne compatible
5003 DUALCASE=1; export DUALCASE # for MKS sh
5004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5005   emulate sh
5006   NULLCMD=:
5007   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5008   # is contrary to our usage.  Disable this feature.
5009   alias -g '${1+"$@"}'='"$@"'
5010   setopt NO_GLOB_SUBST
5011 else
5012   case `(set -o) 2>/dev/null` in #(
5013   *posix*) :
5014     set -o posix ;; #(
5015   *) :
5016      ;;
5017 esac
5018 fi
5019
5020
5021 as_nl='
5022 '
5023 export as_nl
5024 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5025 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5027 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5028 # Prefer a ksh shell builtin over an external printf program on Solaris,
5029 # but without wasting forks for bash or zsh.
5030 if test -z "$BASH_VERSION$ZSH_VERSION" \
5031     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5032   as_echo='print -r --'
5033   as_echo_n='print -rn --'
5034 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5035   as_echo='printf %s\n'
5036   as_echo_n='printf %s'
5037 else
5038   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5039     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5040     as_echo_n='/usr/ucb/echo -n'
5041   else
5042     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5043     as_echo_n_body='eval
5044       arg=$1;
5045       case $arg in #(
5046       *"$as_nl"*)
5047         expr "X$arg" : "X\\(.*\\)$as_nl";
5048         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5049       esac;
5050       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5051     '
5052     export as_echo_n_body
5053     as_echo_n='sh -c $as_echo_n_body as_echo'
5054   fi
5055   export as_echo_body
5056   as_echo='sh -c $as_echo_body as_echo'
5057 fi
5058
5059 # The user is always right.
5060 if test "${PATH_SEPARATOR+set}" != set; then
5061   PATH_SEPARATOR=:
5062   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5063     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5064       PATH_SEPARATOR=';'
5065   }
5066 fi
5067
5068
5069 # IFS
5070 # We need space, tab and new line, in precisely that order.  Quoting is
5071 # there to prevent editors from complaining about space-tab.
5072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5073 # splitting by setting IFS to empty value.)
5074 IFS=" ""        $as_nl"
5075
5076 # Find who we are.  Look in the path if we contain no directory separator.
5077 as_myself=
5078 case $0 in #((
5079   *[\\/]* ) as_myself=$0 ;;
5080   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5086   done
5087 IFS=$as_save_IFS
5088
5089      ;;
5090 esac
5091 # We did not find ourselves, most probably we were run as `sh COMMAND'
5092 # in which case we are not to be found in the path.
5093 if test "x$as_myself" = x; then
5094   as_myself=$0
5095 fi
5096 if test ! -f "$as_myself"; then
5097   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5098   exit 1
5099 fi
5100
5101 # Unset variables that we do not need and which cause bugs (e.g. in
5102 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5103 # suppresses any "Segmentation fault" message there.  '((' could
5104 # trigger a bug in pdksh 5.2.14.
5105 for as_var in BASH_ENV ENV MAIL MAILPATH
5106 do eval test x\${$as_var+set} = xset \
5107   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5108 done
5109 PS1='$ '
5110 PS2='> '
5111 PS4='+ '
5112
5113 # NLS nuisances.
5114 LC_ALL=C
5115 export LC_ALL
5116 LANGUAGE=C
5117 export LANGUAGE
5118
5119 # CDPATH.
5120 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5121
5122
5123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5124 # ----------------------------------------
5125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5127 # script with STATUS, using 1 if that was 0.
5128 as_fn_error ()
5129 {
5130   as_status=$1; test $as_status -eq 0 && as_status=1
5131   if test "$4"; then
5132     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5133     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5134   fi
5135   $as_echo "$as_me: error: $2" >&2
5136   as_fn_exit $as_status
5137 } # as_fn_error
5138
5139
5140 # as_fn_set_status STATUS
5141 # -----------------------
5142 # Set $? to STATUS, without forking.
5143 as_fn_set_status ()
5144 {
5145   return $1
5146 } # as_fn_set_status
5147
5148 # as_fn_exit STATUS
5149 # -----------------
5150 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5151 as_fn_exit ()
5152 {
5153   set +e
5154   as_fn_set_status $1
5155   exit $1
5156 } # as_fn_exit
5157
5158 # as_fn_unset VAR
5159 # ---------------
5160 # Portably unset VAR.
5161 as_fn_unset ()
5162 {
5163   { eval $1=; unset $1;}
5164 }
5165 as_unset=as_fn_unset
5166 # as_fn_append VAR VALUE
5167 # ----------------------
5168 # Append the text in VALUE to the end of the definition contained in VAR. Take
5169 # advantage of any shell optimizations that allow amortized linear growth over
5170 # repeated appends, instead of the typical quadratic growth present in naive
5171 # implementations.
5172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5173   eval 'as_fn_append ()
5174   {
5175     eval $1+=\$2
5176   }'
5177 else
5178   as_fn_append ()
5179   {
5180     eval $1=\$$1\$2
5181   }
5182 fi # as_fn_append
5183
5184 # as_fn_arith ARG...
5185 # ------------------
5186 # Perform arithmetic evaluation on the ARGs, and store the result in the
5187 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5188 # must be portable across $(()) and expr.
5189 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5190   eval 'as_fn_arith ()
5191   {
5192     as_val=$(( $* ))
5193   }'
5194 else
5195   as_fn_arith ()
5196   {
5197     as_val=`expr "$@" || test $? -eq 1`
5198   }
5199 fi # as_fn_arith
5200
5201
5202 if expr a : '\(a\)' >/dev/null 2>&1 &&
5203    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5204   as_expr=expr
5205 else
5206   as_expr=false
5207 fi
5208
5209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5210   as_basename=basename
5211 else
5212   as_basename=false
5213 fi
5214
5215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5216   as_dirname=dirname
5217 else
5218   as_dirname=false
5219 fi
5220
5221 as_me=`$as_basename -- "$0" ||
5222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5223          X"$0" : 'X\(//\)$' \| \
5224          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5225 $as_echo X/"$0" |
5226     sed '/^.*\/\([^/][^/]*\)\/*$/{
5227             s//\1/
5228             q
5229           }
5230           /^X\/\(\/\/\)$/{
5231             s//\1/
5232             q
5233           }
5234           /^X\/\(\/\).*/{
5235             s//\1/
5236             q
5237           }
5238           s/.*/./; q'`
5239
5240 # Avoid depending upon Character Ranges.
5241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5244 as_cr_digits='0123456789'
5245 as_cr_alnum=$as_cr_Letters$as_cr_digits
5246
5247 ECHO_C= ECHO_N= ECHO_T=
5248 case `echo -n x` in #(((((
5249 -n*)
5250   case `echo 'xy\c'` in
5251   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5252   xy)  ECHO_C='\c';;
5253   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5254        ECHO_T=' ';;
5255   esac;;
5256 *)
5257   ECHO_N='-n';;
5258 esac
5259
5260 rm -f conf$$ conf$$.exe conf$$.file
5261 if test -d conf$$.dir; then
5262   rm -f conf$$.dir/conf$$.file
5263 else
5264   rm -f conf$$.dir
5265   mkdir conf$$.dir 2>/dev/null
5266 fi
5267 if (echo >conf$$.file) 2>/dev/null; then
5268   if ln -s conf$$.file conf$$ 2>/dev/null; then
5269     as_ln_s='ln -s'
5270     # ... but there are two gotchas:
5271     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5272     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5273     # In both cases, we have to default to `cp -pR'.
5274     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5275       as_ln_s='cp -pR'
5276   elif ln conf$$.file conf$$ 2>/dev/null; then
5277     as_ln_s=ln
5278   else
5279     as_ln_s='cp -pR'
5280   fi
5281 else
5282   as_ln_s='cp -pR'
5283 fi
5284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5285 rmdir conf$$.dir 2>/dev/null
5286
5287
5288 # as_fn_mkdir_p
5289 # -------------
5290 # Create "$as_dir" as a directory, including parents if necessary.
5291 as_fn_mkdir_p ()
5292 {
5293
5294   case $as_dir in #(
5295   -*) as_dir=./$as_dir;;
5296   esac
5297   test -d "$as_dir" || eval $as_mkdir_p || {
5298     as_dirs=
5299     while :; do
5300       case $as_dir in #(
5301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5302       *) as_qdir=$as_dir;;
5303       esac
5304       as_dirs="'$as_qdir' $as_dirs"
5305       as_dir=`$as_dirname -- "$as_dir" ||
5306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5307          X"$as_dir" : 'X\(//\)[^/]' \| \
5308          X"$as_dir" : 'X\(//\)$' \| \
5309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5310 $as_echo X"$as_dir" |
5311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5312             s//\1/
5313             q
5314           }
5315           /^X\(\/\/\)[^/].*/{
5316             s//\1/
5317             q
5318           }
5319           /^X\(\/\/\)$/{
5320             s//\1/
5321             q
5322           }
5323           /^X\(\/\).*/{
5324             s//\1/
5325             q
5326           }
5327           s/.*/./; q'`
5328       test -d "$as_dir" && break
5329     done
5330     test -z "$as_dirs" || eval "mkdir $as_dirs"
5331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5332
5333
5334 } # as_fn_mkdir_p
5335 if mkdir -p . 2>/dev/null; then
5336   as_mkdir_p='mkdir -p "$as_dir"'
5337 else
5338   test -d ./-p && rmdir ./-p
5339   as_mkdir_p=false
5340 fi
5341
5342
5343 # as_fn_executable_p FILE
5344 # -----------------------
5345 # Test if FILE is an executable regular file.
5346 as_fn_executable_p ()
5347 {
5348   test -f "$1" && test -x "$1"
5349 } # as_fn_executable_p
5350 as_test_x='test -x'
5351 as_executable_p=as_fn_executable_p
5352
5353 # Sed expression to map a string onto a valid CPP name.
5354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5355
5356 # Sed expression to map a string onto a valid variable name.
5357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5358
5359
5360 exec 6>&1
5361 ## ----------------------------------- ##
5362 ## Main body of $CONFIG_STATUS script. ##
5363 ## ----------------------------------- ##
5364 _ASEOF
5365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5366
5367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5368 # Save the log message, to keep $0 and so on meaningful, and to
5369 # report actual input values of CONFIG_FILES etc. instead of their
5370 # values after options handling.
5371 ac_log="
5372 This file was extended by $as_me, which was
5373 generated by GNU Autoconf 2.69.  Invocation command line was
5374
5375   CONFIG_FILES    = $CONFIG_FILES
5376   CONFIG_HEADERS  = $CONFIG_HEADERS
5377   CONFIG_LINKS    = $CONFIG_LINKS
5378   CONFIG_COMMANDS = $CONFIG_COMMANDS
5379   $ $0 $@
5380
5381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5382 "
5383
5384 _ACEOF
5385
5386 case $ac_config_files in *"
5387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5388 esac
5389
5390
5391
5392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5393 # Files that config.status was made for.
5394 config_files="$ac_config_files"
5395
5396 _ACEOF
5397
5398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5399 ac_cs_usage="\
5400 \`$as_me' instantiates files and other configuration actions
5401 from templates according to the current configuration.  Unless the files
5402 and actions are specified as TAGs, all are instantiated by default.
5403
5404 Usage: $0 [OPTION]... [TAG]...
5405
5406   -h, --help       print this help, then exit
5407   -V, --version    print version number and configuration settings, then exit
5408       --config     print configuration, then exit
5409   -q, --quiet, --silent
5410                    do not print progress messages
5411   -d, --debug      don't remove temporary files
5412       --recheck    update $as_me by reconfiguring in the same conditions
5413       --file=FILE[:TEMPLATE]
5414                    instantiate the configuration file FILE
5415
5416 Configuration files:
5417 $config_files
5418
5419 Report bugs to the package provider."
5420
5421 _ACEOF
5422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5423 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5424 ac_cs_version="\\
5425 config.status
5426 configured by $0, generated by GNU Autoconf 2.69,
5427   with options \\"\$ac_cs_config\\"
5428
5429 Copyright (C) 2012 Free Software Foundation, Inc.
5430 This config.status script is free software; the Free Software Foundation
5431 gives unlimited permission to copy, distribute and modify it."
5432
5433 ac_pwd='$ac_pwd'
5434 srcdir='$srcdir'
5435 test -n "\$AWK" || AWK=awk
5436 _ACEOF
5437
5438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5439 # The default lists apply if the user does not specify any file.
5440 ac_need_defaults=:
5441 while test $# != 0
5442 do
5443   case $1 in
5444   --*=?*)
5445     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5446     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5447     ac_shift=:
5448     ;;
5449   --*=)
5450     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5451     ac_optarg=
5452     ac_shift=:
5453     ;;
5454   *)
5455     ac_option=$1
5456     ac_optarg=$2
5457     ac_shift=shift
5458     ;;
5459   esac
5460
5461   case $ac_option in
5462   # Handling of the options.
5463   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5464     ac_cs_recheck=: ;;
5465   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5466     $as_echo "$ac_cs_version"; exit ;;
5467   --config | --confi | --conf | --con | --co | --c )
5468     $as_echo "$ac_cs_config"; exit ;;
5469   --debug | --debu | --deb | --de | --d | -d )
5470     debug=: ;;
5471   --file | --fil | --fi | --f )
5472     $ac_shift
5473     case $ac_optarg in
5474     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5475     '') as_fn_error $? "missing file argument" ;;
5476     esac
5477     as_fn_append CONFIG_FILES " '$ac_optarg'"
5478     ac_need_defaults=false;;
5479   --he | --h |  --help | --hel | -h )
5480     $as_echo "$ac_cs_usage"; exit ;;
5481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5482   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5483     ac_cs_silent=: ;;
5484
5485   # This is an error.
5486   -*) as_fn_error $? "unrecognized option: \`$1'
5487 Try \`$0 --help' for more information." ;;
5488
5489   *) as_fn_append ac_config_targets " $1"
5490      ac_need_defaults=false ;;
5491
5492   esac
5493   shift
5494 done
5495
5496 ac_configure_extra_args=
5497
5498 if $ac_cs_silent; then
5499   exec 6>/dev/null
5500   ac_configure_extra_args="$ac_configure_extra_args --silent"
5501 fi
5502
5503 _ACEOF
5504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5505 if \$ac_cs_recheck; then
5506   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5507   shift
5508   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5509   CONFIG_SHELL='$SHELL'
5510   export CONFIG_SHELL
5511   exec "\$@"
5512 fi
5513
5514 _ACEOF
5515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5516 exec 5>>config.log
5517 {
5518   echo
5519   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5520 ## Running $as_me. ##
5521 _ASBOX
5522   $as_echo "$ac_log"
5523 } >&5
5524
5525 _ACEOF
5526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5527 _ACEOF
5528
5529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5530
5531 # Handling of arguments.
5532 for ac_config_target in $ac_config_targets
5533 do
5534   case $ac_config_target in
5535     "all.mk") CONFIG_FILES="$CONFIG_FILES all.mk" ;;
5536
5537   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5538   esac
5539 done
5540
5541
5542 # If the user did not use the arguments to specify the items to instantiate,
5543 # then the envvar interface is used.  Set only those that are not.
5544 # We use the long form for the default assignment because of an extremely
5545 # bizarre bug on SunOS 4.1.3.
5546 if $ac_need_defaults; then
5547   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5548 fi
5549
5550 # Have a temporary directory for convenience.  Make it in the build tree
5551 # simply because there is no reason against having it here, and in addition,
5552 # creating and moving files from /tmp can sometimes cause problems.
5553 # Hook for its removal unless debugging.
5554 # Note that there is a small window in which the directory will not be cleaned:
5555 # after its creation but before its name has been assigned to `$tmp'.
5556 $debug ||
5557 {
5558   tmp= ac_tmp=
5559   trap 'exit_status=$?
5560   : "${ac_tmp:=$tmp}"
5561   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5562 ' 0
5563   trap 'as_fn_exit 1' 1 2 13 15
5564 }
5565 # Create a (secure) tmp directory for tmp files.
5566
5567 {
5568   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5569   test -d "$tmp"
5570 }  ||
5571 {
5572   tmp=./conf$$-$RANDOM
5573   (umask 077 && mkdir "$tmp")
5574 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5575 ac_tmp=$tmp
5576
5577 # Set up the scripts for CONFIG_FILES section.
5578 # No need to generate them if there are no CONFIG_FILES.
5579 # This happens for instance with `./config.status config.h'.
5580 if test -n "$CONFIG_FILES"; then
5581
5582
5583 ac_cr=`echo X | tr X '\015'`
5584 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5585 # But we know of no other shell where ac_cr would be empty at this
5586 # point, so we can use a bashism as a fallback.
5587 if test "x$ac_cr" = x; then
5588   eval ac_cr=\$\'\\r\'
5589 fi
5590 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5591 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5592   ac_cs_awk_cr='\\r'
5593 else
5594   ac_cs_awk_cr=$ac_cr
5595 fi
5596
5597 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5598 _ACEOF
5599
5600
5601 {
5602   echo "cat >conf$$subs.awk <<_ACEOF" &&
5603   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5604   echo "_ACEOF"
5605 } >conf$$subs.sh ||
5606   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5607 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5608 ac_delim='%!_!# '
5609 for ac_last_try in false false false false false :; do
5610   . ./conf$$subs.sh ||
5611     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5612
5613   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5614   if test $ac_delim_n = $ac_delim_num; then
5615     break
5616   elif $ac_last_try; then
5617     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5618   else
5619     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5620   fi
5621 done
5622 rm -f conf$$subs.sh
5623
5624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5625 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5626 _ACEOF
5627 sed -n '
5628 h
5629 s/^/S["/; s/!.*/"]=/
5630 p
5631 g
5632 s/^[^!]*!//
5633 :repl
5634 t repl
5635 s/'"$ac_delim"'$//
5636 t delim
5637 :nl
5638 h
5639 s/\(.\{148\}\)..*/\1/
5640 t more1
5641 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5642 p
5643 n
5644 b repl
5645 :more1
5646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5647 p
5648 g
5649 s/.\{148\}//
5650 t nl
5651 :delim
5652 h
5653 s/\(.\{148\}\)..*/\1/
5654 t more2
5655 s/["\\]/\\&/g; s/^/"/; s/$/"/
5656 p
5657 b
5658 :more2
5659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5660 p
5661 g
5662 s/.\{148\}//
5663 t delim
5664 ' <conf$$subs.awk | sed '
5665 /^[^""]/{
5666   N
5667   s/\n//
5668 }
5669 ' >>$CONFIG_STATUS || ac_write_fail=1
5670 rm -f conf$$subs.awk
5671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5672 _ACAWK
5673 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5674   for (key in S) S_is_set[key] = 1
5675   FS = "\a"
5676
5677 }
5678 {
5679   line = $ 0
5680   nfields = split(line, field, "@")
5681   substed = 0
5682   len = length(field[1])
5683   for (i = 2; i < nfields; i++) {
5684     key = field[i]
5685     keylen = length(key)
5686     if (S_is_set[key]) {
5687       value = S[key]
5688       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5689       len += length(value) + length(field[++i])
5690       substed = 1
5691     } else
5692       len += 1 + keylen
5693   }
5694
5695   print line
5696 }
5697
5698 _ACAWK
5699 _ACEOF
5700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5701 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5702   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5703 else
5704   cat
5705 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5706   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5707 _ACEOF
5708
5709 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5710 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5711 # trailing colons and then remove the whole line if VPATH becomes empty
5712 # (actually we leave an empty line to preserve line numbers).
5713 if test "x$srcdir" = x.; then
5714   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5715 h
5716 s///
5717 s/^/:/
5718 s/[      ]*$/:/
5719 s/:\$(srcdir):/:/g
5720 s/:\${srcdir}:/:/g
5721 s/:@srcdir@:/:/g
5722 s/^:*//
5723 s/:*$//
5724 x
5725 s/\(=[   ]*\).*/\1/
5726 G
5727 s/\n//
5728 s/^[^=]*=[       ]*$//
5729 }'
5730 fi
5731
5732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5733 fi # test -n "$CONFIG_FILES"
5734
5735
5736 eval set X "  :F $CONFIG_FILES      "
5737 shift
5738 for ac_tag
5739 do
5740   case $ac_tag in
5741   :[FHLC]) ac_mode=$ac_tag; continue;;
5742   esac
5743   case $ac_mode$ac_tag in
5744   :[FHL]*:*);;
5745   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5746   :[FH]-) ac_tag=-:-;;
5747   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5748   esac
5749   ac_save_IFS=$IFS
5750   IFS=:
5751   set x $ac_tag
5752   IFS=$ac_save_IFS
5753   shift
5754   ac_file=$1
5755   shift
5756
5757   case $ac_mode in
5758   :L) ac_source=$1;;
5759   :[FH])
5760     ac_file_inputs=
5761     for ac_f
5762     do
5763       case $ac_f in
5764       -) ac_f="$ac_tmp/stdin";;
5765       *) # Look for the file first in the build tree, then in the source tree
5766          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5767          # because $ac_f cannot contain `:'.
5768          test -f "$ac_f" ||
5769            case $ac_f in
5770            [\\/$]*) false;;
5771            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5772            esac ||
5773            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5774       esac
5775       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5776       as_fn_append ac_file_inputs " '$ac_f'"
5777     done
5778
5779     # Let's still pretend it is `configure' which instantiates (i.e., don't
5780     # use $as_me), people would be surprised to read:
5781     #    /* config.h.  Generated by config.status.  */
5782     configure_input='Generated from '`
5783           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5784         `' by configure.'
5785     if test x"$ac_file" != x-; then
5786       configure_input="$ac_file.  $configure_input"
5787       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5788 $as_echo "$as_me: creating $ac_file" >&6;}
5789     fi
5790     # Neutralize special characters interpreted by sed in replacement strings.
5791     case $configure_input in #(
5792     *\&* | *\|* | *\\* )
5793        ac_sed_conf_input=`$as_echo "$configure_input" |
5794        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5795     *) ac_sed_conf_input=$configure_input;;
5796     esac
5797
5798     case $ac_tag in
5799     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5800       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5801     esac
5802     ;;
5803   esac
5804
5805   ac_dir=`$as_dirname -- "$ac_file" ||
5806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5807          X"$ac_file" : 'X\(//\)[^/]' \| \
5808          X"$ac_file" : 'X\(//\)$' \| \
5809          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5810 $as_echo X"$ac_file" |
5811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5812             s//\1/
5813             q
5814           }
5815           /^X\(\/\/\)[^/].*/{
5816             s//\1/
5817             q
5818           }
5819           /^X\(\/\/\)$/{
5820             s//\1/
5821             q
5822           }
5823           /^X\(\/\).*/{
5824             s//\1/
5825             q
5826           }
5827           s/.*/./; q'`
5828   as_dir="$ac_dir"; as_fn_mkdir_p
5829   ac_builddir=.
5830
5831 case "$ac_dir" in
5832 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5833 *)
5834   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5835   # A ".." for each directory in $ac_dir_suffix.
5836   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5837   case $ac_top_builddir_sub in
5838   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5839   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5840   esac ;;
5841 esac
5842 ac_abs_top_builddir=$ac_pwd
5843 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5844 # for backward compatibility:
5845 ac_top_builddir=$ac_top_build_prefix
5846
5847 case $srcdir in
5848   .)  # We are building in place.
5849     ac_srcdir=.
5850     ac_top_srcdir=$ac_top_builddir_sub
5851     ac_abs_top_srcdir=$ac_pwd ;;
5852   [\\/]* | ?:[\\/]* )  # Absolute name.
5853     ac_srcdir=$srcdir$ac_dir_suffix;
5854     ac_top_srcdir=$srcdir
5855     ac_abs_top_srcdir=$srcdir ;;
5856   *) # Relative name.
5857     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5858     ac_top_srcdir=$ac_top_build_prefix$srcdir
5859     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5860 esac
5861 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5862
5863
5864   case $ac_mode in
5865   :F)
5866   #
5867   # CONFIG_FILE
5868   #
5869
5870 _ACEOF
5871
5872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5873 # If the template does not know about datarootdir, expand it.
5874 # FIXME: This hack should be removed a few years after 2.60.
5875 ac_datarootdir_hack=; ac_datarootdir_seen=
5876 ac_sed_dataroot='
5877 /datarootdir/ {
5878   p
5879   q
5880 }
5881 /@datadir@/p
5882 /@docdir@/p
5883 /@infodir@/p
5884 /@localedir@/p
5885 /@mandir@/p'
5886 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5887 *datarootdir*) ac_datarootdir_seen=yes;;
5888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5890 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5891 _ACEOF
5892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5893   ac_datarootdir_hack='
5894   s&@datadir@&$datadir&g
5895   s&@docdir@&$docdir&g
5896   s&@infodir@&$infodir&g
5897   s&@localedir@&$localedir&g
5898   s&@mandir@&$mandir&g
5899   s&\\\${datarootdir}&$datarootdir&g' ;;
5900 esac
5901 _ACEOF
5902
5903 # Neutralize VPATH when `$srcdir' = `.'.
5904 # Shell code in configure.ac might set extrasub.
5905 # FIXME: do we really want to maintain this feature?
5906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5907 ac_sed_extra="$ac_vpsub
5908 $extrasub
5909 _ACEOF
5910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5911 :t
5912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5913 s|@configure_input@|$ac_sed_conf_input|;t t
5914 s&@top_builddir@&$ac_top_builddir_sub&;t t
5915 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5916 s&@srcdir@&$ac_srcdir&;t t
5917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5918 s&@top_srcdir@&$ac_top_srcdir&;t t
5919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5920 s&@builddir@&$ac_builddir&;t t
5921 s&@abs_builddir@&$ac_abs_builddir&;t t
5922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5923 $ac_datarootdir_hack
5924 "
5925 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5926   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5927
5928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5929   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5930   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
5931       "$ac_tmp/out"`; test -z "$ac_out"; } &&
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5933 which seems to be undefined.  Please make sure it is defined" >&5
5934 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5935 which seems to be undefined.  Please make sure it is defined" >&2;}
5936
5937   rm -f "$ac_tmp/stdin"
5938   case $ac_file in
5939   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5940   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5941   esac \
5942   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5943  ;;
5944
5945
5946
5947   esac
5948
5949 done # for ac_tag
5950
5951
5952 as_fn_exit 0
5953 _ACEOF
5954 ac_clean_files=$ac_clean_files_save
5955
5956 test $ac_write_fail = 0 ||
5957   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5958
5959
5960 # configure is writing to config.log, and then calls config.status.
5961 # config.status does its own redirection, appending to config.log.
5962 # Unfortunately, on DOS this fails, as config.log is still kept open
5963 # by configure, so config.status won't be able to write to it; its
5964 # output is simply discarded.  So we exec the FD to /dev/null,
5965 # effectively closing config.log, so it can be properly (re)opened and
5966 # appended to by config.status.  When coming back to configure, we
5967 # need to make the FD available again.
5968 if test "$no_create" != yes; then
5969   ac_cs_success=:
5970   ac_config_status_args=
5971   test "$silent" = yes &&
5972     ac_config_status_args="$ac_config_status_args --quiet"
5973   exec 5>/dev/null
5974   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5975   exec 5>>config.log
5976   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5977   # would make configure fail if this is the last instruction.
5978   $ac_cs_success || as_fn_exit 1
5979 fi
5980 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5982 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5983 fi
5984
5985