]> eyrie.org Git - kerberos/krb5-strength.git/blob - configure
Imported Upstream version 2.1
[kerberos/krb5-strength.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for krb5-strength 2.1.
4 #
5 # Report bugs to <rra@stanford.edu>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and rra@stanford.edu
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='krb5-strength'
592 PACKAGE_TARNAME='krb5-strength'
593 PACKAGE_VERSION='2.1'
594 PACKAGE_STRING='krb5-strength 2.1'
595 PACKAGE_BUGREPORT='rra@stanford.edu'
596 PACKAGE_URL=''
597
598 ac_config_libobj_dir=portable
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 DL_LIBS
639 LIBOBJS
640 KRB5_USES_COM_ERR_FALSE
641 KRB5_USES_COM_ERR_TRUE
642 PATH_KRB5_CONFIG
643 KRB5_LIBS
644 KRB5_LDFLAGS
645 KRB5_CPPFLAGS
646 EMBEDDED_CRACKLIB_FALSE
647 EMBEDDED_CRACKLIB_TRUE
648 CRACKLIB_LIBS
649 CRACKLIB_LDFLAGS
650 CRACKLIB_CPPFLAGS
651 CDB_LIBS
652 CDB_LDFLAGS
653 CDB_CPPFLAGS
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 LIBTOOL
679 ac_ct_AR
680 AR
681 EGREP
682 GREP
683 CPP
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 AM_DEFAULT_V
707 AM_V
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_silent_rules
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_largefile
776 enable_static
777 enable_shared
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 with_tinycdb
784 with_tinycdb_include
785 with_tinycdb_lib
786 with_cracklib
787 with_cracklib_include
788 with_cracklib_lib
789 with_krb5
790 with_krb5_include
791 with_krb5_lib
792 enable_reduced_depends
793 '
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CPP
803 PATH_KRB5_CONFIG'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858   # If the previous option needs an argument, assign it.
859   if test -n "$ac_prev"; then
860     eval $ac_prev=\$ac_option
861     ac_prev=
862     continue
863   fi
864
865   case $ac_option in
866   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867   *=)   ac_optarg= ;;
868   *)    ac_optarg=yes ;;
869   esac
870
871   # Accept the important Cygnus configure options, so we can diagnose typos.
872
873   case $ac_dashdash$ac_option in
874   --)
875     ac_dashdash=yes ;;
876
877   -bindir | --bindir | --bindi | --bind | --bin | --bi)
878     ac_prev=bindir ;;
879   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880     bindir=$ac_optarg ;;
881
882   -build | --build | --buil | --bui | --bu)
883     ac_prev=build_alias ;;
884   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885     build_alias=$ac_optarg ;;
886
887   -cache-file | --cache-file | --cache-fil | --cache-fi \
888   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889     ac_prev=cache_file ;;
890   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892     cache_file=$ac_optarg ;;
893
894   --config-cache | -C)
895     cache_file=config.cache ;;
896
897   -datadir | --datadir | --datadi | --datad)
898     ac_prev=datadir ;;
899   -datadir=* | --datadir=* | --datadi=* | --datad=*)
900     datadir=$ac_optarg ;;
901
902   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903   | --dataroo | --dataro | --datar)
904     ac_prev=datarootdir ;;
905   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907     datarootdir=$ac_optarg ;;
908
909   -disable-* | --disable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=no ;;
924
925   -docdir | --docdir | --docdi | --doc | --do)
926     ac_prev=docdir ;;
927   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928     docdir=$ac_optarg ;;
929
930   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931     ac_prev=dvidir ;;
932   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933     dvidir=$ac_optarg ;;
934
935   -enable-* | --enable-*)
936     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939       as_fn_error $? "invalid feature name: $ac_useropt"
940     ac_useropt_orig=$ac_useropt
941     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942     case $ac_user_opts in
943       *"
944 "enable_$ac_useropt"
945 "*) ;;
946       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947          ac_unrecognized_sep=', ';;
948     esac
949     eval enable_$ac_useropt=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=\$ac_optarg ;;
1154
1155   -without-* | --without-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid package name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval with_$ac_useropt=no ;;
1170
1171   --x)
1172     # Obsolete; use --with-x.
1173     with_x=yes ;;
1174
1175   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176   | --x-incl | --x-inc | --x-in | --x-i)
1177     ac_prev=x_includes ;;
1178   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180     x_includes=$ac_optarg ;;
1181
1182   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184     ac_prev=x_libraries ;;
1185   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187     x_libraries=$ac_optarg ;;
1188
1189   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     case $ac_envvar in #(
1197       '' | [0-9]* | *[!_$as_cr_alnum]* )
1198       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199     esac
1200     eval $ac_envvar=\$ac_optarg
1201     export $ac_envvar ;;
1202
1203   *)
1204     # FIXME: should be removed in autoconf 3.0.
1205     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209     ;;
1210
1211   esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216   as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220   case $enable_option_checking in
1221     no) ;;
1222     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224   esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229                 datadir sysconfdir sharedstatedir localstatedir includedir \
1230                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231                 libdir localedir mandir
1232 do
1233   eval ac_val=\$$ac_var
1234   # Remove trailing slashes.
1235   case $ac_val in
1236     */ )
1237       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238       eval $ac_var=\$ac_val;;
1239   esac
1240   # Be sure to have absolute directory names.
1241   case $ac_val in
1242     [\\/$]* | ?:[\\/]* )  continue;;
1243     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244   esac
1245   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257   if test "x$build_alias" = x; then
1258     cross_compiling=maybe
1259   elif test "x$build_alias" != "x$host_alias"; then
1260     cross_compiling=yes
1261   fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273   as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275   as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280   ac_srcdir_defaulted=yes
1281   # Try the directory containing this script, then the parent directory.
1282   ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284          X"$as_myself" : 'X\(//\)[^/]' \| \
1285          X"$as_myself" : 'X\(//\)$' \| \
1286          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\/\)[^/].*/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\).*/{
1301             s//\1/
1302             q
1303           }
1304           s/.*/./; q'`
1305   srcdir=$ac_confdir
1306   if test ! -r "$srcdir/$ac_unique_file"; then
1307     srcdir=..
1308   fi
1309 else
1310   ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319         pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322   srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332   eval ac_env_${ac_var}_value=\$${ac_var}
1333   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341   # Omit some internal or obsolete options to make the list less imposing.
1342   # This message is too long to be a string in the A/UX 3.1 sh.
1343   cat <<_ACEOF
1344 \`configure' configures krb5-strength 2.1 to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE.  See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354   -h, --help              display this help and exit
1355       --help=short        display options specific to this package
1356       --help=recursive    display the short help of all the included packages
1357   -V, --version           display version information and exit
1358   -q, --quiet, --silent   do not print \`checking ...' messages
1359       --cache-file=FILE   cache test results in FILE [disabled]
1360   -C, --config-cache      alias for \`--cache-file=config.cache'
1361   -n, --no-create         do not create output files
1362       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365   --prefix=PREFIX         install architecture-independent files in PREFIX
1366                           [$ac_default_prefix]
1367   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1368                           [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378   --bindir=DIR            user executables [EPREFIX/bin]
1379   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1380   --libexecdir=DIR        program executables [EPREFIX/libexec]
1381   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1382   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1383   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1384   --libdir=DIR            object code libraries [EPREFIX/lib]
1385   --includedir=DIR        C header files [PREFIX/include]
1386   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1387   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1388   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1389   --infodir=DIR           info documentation [DATAROOTDIR/info]
1390   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1391   --mandir=DIR            man documentation [DATAROOTDIR/man]
1392   --docdir=DIR            documentation root [DATAROOTDIR/doc/krb5-strength]
1393   --htmldir=DIR           html documentation [DOCDIR]
1394   --dvidir=DIR            dvi documentation [DOCDIR]
1395   --pdfdir=DIR            pdf documentation [DOCDIR]
1396   --psdir=DIR             ps documentation [DOCDIR]
1397 _ACEOF
1398
1399   cat <<\_ACEOF
1400
1401 Program names:
1402   --program-prefix=PREFIX            prepend PREFIX to installed program names
1403   --program-suffix=SUFFIX            append SUFFIX to installed program names
1404   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1405
1406 System types:
1407   --build=BUILD     configure for building on BUILD [guessed]
1408   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413   case $ac_init_help in
1414      short | recursive ) echo "Configuration of krb5-strength 2.1:";;
1415    esac
1416   cat <<\_ACEOF
1417
1418 Optional Features:
1419   --disable-option-checking  ignore unrecognized --enable/--with options
1420   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422   --enable-silent-rules   less verbose build output (undo: "make V=1")
1423   --disable-silent-rules  verbose build output (undo: "make V=0")
1424   --enable-maintainer-mode
1425                           enable make rules and dependencies not useful (and
1426                           sometimes confusing) to the casual installer
1427   --enable-dependency-tracking
1428                           do not reject slow dependency extractors
1429   --disable-dependency-tracking
1430                           speeds up one-time build
1431   --disable-largefile     omit support for large files
1432   --enable-static[=PKGS]  build static libraries [default=no]
1433   --enable-shared[=PKGS]  build shared libraries [default=yes]
1434   --enable-fast-install[=PKGS]
1435                           optimize for fast installation [default=yes]
1436   --disable-libtool-lock  avoid locking (might break parallel builds)
1437   --enable-reduced-depends
1438                           Try to minimize shared library dependencies
1439
1440 Optional Packages:
1441   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1442   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1443   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1444                           both]
1445   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1446   --with-sysroot=DIR Search for dependent libraries within DIR
1447                         (or the compiler's sysroot if not specified).
1448   --with-tinycdb[=DIR]    Location of TinyCDB headers and libraries
1449   --with-tinycdb-include=DIR
1450                           Location of TinyCDB headers
1451   --with-tinycdb-lib=DIR  Location of TinyCDB libraries
1452   --with-cracklib[=DIR]   Use system CrackLib instead of embedded copy
1453   --with-cracklib-include=DIR
1454                           Location of CrackLib headers
1455   --with-cracklib-lib=DIR Location of cracklib libraries
1456   --with-krb5=DIR         Location of Kerberos headers and libraries
1457   --with-krb5-include=DIR Location of Kerberos headers
1458   --with-krb5-lib=DIR     Location of Kerberos libraries
1459
1460 Some influential environment variables:
1461   CC          C compiler command
1462   CFLAGS      C compiler flags
1463   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464               nonstandard directory <lib dir>
1465   LIBS        libraries to pass to the linker, e.g. -l<library>
1466   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CPP         C preprocessor
1469   PATH_KRB5_CONFIG
1470               Path to krb5-config
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <rra@stanford.edu>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" ||
1484       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485       continue
1486     ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492   # A ".." for each directory in $ac_dir_suffix.
1493   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494   case $ac_top_builddir_sub in
1495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497   esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505   .)  # We are building in place.
1506     ac_srcdir=.
1507     ac_top_srcdir=$ac_top_builddir_sub
1508     ac_abs_top_srcdir=$ac_pwd ;;
1509   [\\/]* | ?:[\\/]* )  # Absolute name.
1510     ac_srcdir=$srcdir$ac_dir_suffix;
1511     ac_top_srcdir=$srcdir
1512     ac_abs_top_srcdir=$srcdir ;;
1513   *) # Relative name.
1514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515     ac_top_srcdir=$ac_top_build_prefix$srcdir
1516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520     cd "$ac_dir" || { ac_status=$?; continue; }
1521     # Check for guested configure.
1522     if test -f "$ac_srcdir/configure.gnu"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525     elif test -f "$ac_srcdir/configure"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure" --help=recursive
1528     else
1529       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530     fi || ac_status=$?
1531     cd "$ac_pwd" || { ac_status=$?; break; }
1532   done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537   cat <<\_ACEOF
1538 krb5-strength configure 2.1
1539 generated by GNU Autoconf 2.69
1540
1541 Copyright (C) 2012 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545   exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   rm -f conftest.$ac_objext
1559   if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562   *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566   (eval "$ac_compile") 2>conftest.err
1567   ac_status=$?
1568   if test -s conftest.err; then
1569     grep -v '^ *+' conftest.err >conftest.er1
1570     cat conftest.er1 >&5
1571     mv -f conftest.er1 conftest.err
1572   fi
1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574   test $ac_status = 0; } && {
1575          test -z "$ac_c_werror_flag" ||
1576          test ! -s conftest.err
1577        } && test -s conftest.$ac_objext; then :
1578   ac_retval=0
1579 else
1580   $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583         ac_retval=1
1584 fi
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_try_cpp LINENO
1591 # ----------------------
1592 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_cpp ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   if { { ac_try="$ac_cpp conftest.$ac_ext"
1597 case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604   ac_status=$?
1605   if test -s conftest.err; then
1606     grep -v '^ *+' conftest.err >conftest.er1
1607     cat conftest.er1 >&5
1608     mv -f conftest.er1 conftest.err
1609   fi
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; } > conftest.i && {
1612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613          test ! -s conftest.err
1614        }; then :
1615   ac_retval=0
1616 else
1617   $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620     ac_retval=1
1621 fi
1622   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623   as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_cpp
1626
1627 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1630 # the include files in INCLUDES and setting the cache variable VAR
1631 # accordingly.
1632 ac_fn_c_check_header_mongrel ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   if eval \${$3+:} false; then :
1636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if eval \${$3+:} false; then :
1639   $as_echo_n "(cached) " >&6
1640 fi
1641 eval ac_res=\$$3
1642                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 else
1645   # Is the header compilable?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1647 $as_echo_n "checking $2 usability... " >&6; }
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h.  */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654   ac_header_compiler=yes
1655 else
1656   ac_header_compiler=no
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1660 $as_echo "$ac_header_compiler" >&6; }
1661
1662 # Is the header present?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1664 $as_echo_n "checking $2 presence... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h.  */
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_cpp "$LINENO"; then :
1670   ac_header_preproc=yes
1671 else
1672   ac_header_preproc=no
1673 fi
1674 rm -f conftest.err conftest.i conftest.$ac_ext
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1676 $as_echo "$ac_header_preproc" >&6; }
1677
1678 # So?  What about this header?
1679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1680   yes:no: )
1681     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1682 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685     ;;
1686   no:yes:* )
1687     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1688 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1690 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1692 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1693     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1694 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1695     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 ( $as_echo "## ------------------------------- ##
1698 ## Report this to rra@stanford.edu ##
1699 ## ------------------------------- ##"
1700      ) | sed "s/^/$as_me: WARNING:     /" >&2
1701     ;;
1702 esac
1703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if eval \${$3+:} false; then :
1706   $as_echo_n "(cached) " >&6
1707 else
1708   eval "$3=\$ac_header_compiler"
1709 fi
1710 eval ac_res=\$$3
1711                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1713 fi
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_mongrel
1717
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_link") 2>&5
1733   ac_status=$?
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736   { { case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742   (eval "$ac_try") 2>&5
1743   ac_status=$?
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; }; }; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: program exited with status $ac_status" >&5
1749        $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752        ac_retval=$ac_status
1753 fi
1754   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756   as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_run
1759
1760 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists and can be compiled using the include files in
1763 # INCLUDES, setting the cache variable VAR accordingly.
1764 ac_fn_c_check_header_compile ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h.  */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778   eval "$3=yes"
1779 else
1780   eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_header_compile
1790
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_link ()
1795 {
1796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797   rm -f conftest.$ac_objext conftest$ac_exeext
1798   if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_link") 2>conftest.err
1806   ac_status=$?
1807   if test -s conftest.err; then
1808     grep -v '^ *+' conftest.err >conftest.er1
1809     cat conftest.er1 >&5
1810     mv -f conftest.er1 conftest.err
1811   fi
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } && {
1814          test -z "$ac_c_werror_flag" ||
1815          test ! -s conftest.err
1816        } && test -s conftest$ac_exeext && {
1817          test "$cross_compiling" = yes ||
1818          test -x conftest$ac_exeext
1819        }; then :
1820   ac_retval=0
1821 else
1822   $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825         ac_retval=1
1826 fi
1827   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829   # interfere with the next link command; also delete a directory that is
1830   # left behind by Apple's compiler.  We do this before executing the actions.
1831   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833   as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_link
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846   $as_echo_n "(cached) " >&6
1847 else
1848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h.  */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855     which can conflict with char $2 (); below.
1856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857     <limits.h> exists even on freestanding compilers.  */
1858
1859 #ifdef __STDC__
1860 # include <limits.h>
1861 #else
1862 # include <assert.h>
1863 #endif
1864
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868    Use char because int might match the return type of a GCC
1869    builtin and then its argument prototype would still apply.  */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875     to always fail with ENOSYS.  Some functions are actually named
1876     something starting with __ and the normal name is an alias.  */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main ()
1883 {
1884 return $2 ();
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"; then :
1890   eval "$3=yes"
1891 else
1892   eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext \
1895     conftest$ac_exeext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_func
1903
1904 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1905 # --------------------------------------------
1906 # Tries to find the compile-time value of EXPR in a program that includes
1907 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1908 # computed
1909 ac_fn_c_compute_int ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   if test "$cross_compiling" = yes; then
1913     # Depending upon the size, compute the lo and hi bounds.
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h.  */
1916 $4
1917 int
1918 main ()
1919 {
1920 static int test_array [1 - 2 * !(($2) >= 0)];
1921 test_array [0] = 0;
1922 return test_array [0];
1923
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929   ac_lo=0 ac_mid=0
1930   while :; do
1931     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 $4
1934 int
1935 main ()
1936 {
1937 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   ac_hi=$ac_mid; break
1947 else
1948   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1949                         if test $ac_lo -le $ac_mid; then
1950                           ac_lo= ac_hi=
1951                           break
1952                         fi
1953                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956   done
1957 else
1958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $4
1961 int
1962 main ()
1963 {
1964 static int test_array [1 - 2 * !(($2) < 0)];
1965 test_array [0] = 0;
1966 return test_array [0];
1967
1968   ;
1969   return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973   ac_hi=-1 ac_mid=-1
1974   while :; do
1975     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h.  */
1977 $4
1978 int
1979 main ()
1980 {
1981 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1982 test_array [0] = 0;
1983 return test_array [0];
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   ac_lo=$ac_mid; break
1991 else
1992   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1993                         if test $ac_mid -le $ac_hi; then
1994                           ac_lo= ac_hi=
1995                           break
1996                         fi
1997                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000   done
2001 else
2002   ac_lo= ac_hi=
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 # Binary search between lo and hi bounds.
2008 while test "x$ac_lo" != "x$ac_hi"; do
2009   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $4
2013 int
2014 main ()
2015 {
2016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017 test_array [0] = 0;
2018 return test_array [0];
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   ac_hi=$ac_mid
2026 else
2027   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 done
2031 case $ac_lo in #((
2032 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2033 '') ac_retval=1 ;;
2034 esac
2035   else
2036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 $4
2039 static long int longval () { return $2; }
2040 static unsigned long int ulongval () { return $2; }
2041 #include <stdio.h>
2042 #include <stdlib.h>
2043 int
2044 main ()
2045 {
2046
2047   FILE *f = fopen ("conftest.val", "w");
2048   if (! f)
2049     return 1;
2050   if (($2) < 0)
2051     {
2052       long int i = longval ();
2053       if (i != ($2))
2054         return 1;
2055       fprintf (f, "%ld", i);
2056     }
2057   else
2058     {
2059       unsigned long int i = ulongval ();
2060       if (i != ($2))
2061         return 1;
2062       fprintf (f, "%lu", i);
2063     }
2064   /* Do not output a trailing newline, as this causes \r\n confusion
2065      on some platforms.  */
2066   return ferror (f) || fclose (f) != 0;
2067
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_run "$LINENO"; then :
2073   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2074 else
2075   ac_retval=1
2076 fi
2077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2078   conftest.$ac_objext conftest.beam conftest.$ac_ext
2079 rm -f conftest.val
2080
2081   fi
2082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083   as_fn_set_status $ac_retval
2084
2085 } # ac_fn_c_compute_int
2086
2087 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2088 # -------------------------------------------
2089 # Tests whether TYPE exists after having included INCLUDES, setting cache
2090 # variable VAR accordingly.
2091 ac_fn_c_check_type ()
2092 {
2093   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if eval \${$3+:} false; then :
2097   $as_echo_n "(cached) " >&6
2098 else
2099   eval "$3=no"
2100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 int
2104 main ()
2105 {
2106 if (sizeof ($2))
2107          return 0;
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 int
2117 main ()
2118 {
2119 if (sizeof (($2)))
2120             return 0;
2121   ;
2122   return 0;
2123 }
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126
2127 else
2128   eval "$3=yes"
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 fi
2134 eval ac_res=\$$3
2135                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139 } # ac_fn_c_check_type
2140
2141 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2142 # ---------------------------------------------
2143 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2144 # accordingly.
2145 ac_fn_c_check_decl ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   as_decl_name=`echo $2|sed 's/ *(.*//'`
2149   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2151 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2152 if eval \${$3+:} false; then :
2153   $as_echo_n "(cached) " >&6
2154 else
2155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 int
2159 main ()
2160 {
2161 #ifndef $as_decl_name
2162 #ifdef __cplusplus
2163   (void) $as_decl_use;
2164 #else
2165   (void) $as_decl_name;
2166 #endif
2167 #endif
2168
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174   eval "$3=yes"
2175 else
2176   eval "$3=no"
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 fi
2180 eval ac_res=\$$3
2181                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184
2185 } # ac_fn_c_check_decl
2186
2187 # ac_fn_c_find_uintX_t LINENO BITS VAR
2188 # ------------------------------------
2189 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2190 # accordingly.
2191 ac_fn_c_find_uintX_t ()
2192 {
2193   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2195 $as_echo_n "checking for uint$2_t... " >&6; }
2196 if eval \${$3+:} false; then :
2197   $as_echo_n "(cached) " >&6
2198 else
2199   eval "$3=no"
2200      # Order is important - never check a type that is potentially smaller
2201      # than half of the expected target width.
2202      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2203          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2204        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 $ac_includes_default
2207 int
2208 main ()
2209 {
2210 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2211 test_array [0] = 0;
2212 return test_array [0];
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219   case $ac_type in #(
2220   uint$2_t) :
2221     eval "$3=yes" ;; #(
2222   *) :
2223     eval "$3=\$ac_type" ;;
2224 esac
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227        if eval test \"x\$"$3"\" = x"no"; then :
2228
2229 else
2230   break
2231 fi
2232      done
2233 fi
2234 eval ac_res=\$$3
2235                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238
2239 } # ac_fn_c_find_uintX_t
2240 cat >config.log <<_ACEOF
2241 This file contains any messages produced by compilers while
2242 running configure, to aid debugging if configure makes a mistake.
2243
2244 It was created by krb5-strength $as_me 2.1, which was
2245 generated by GNU Autoconf 2.69.  Invocation command line was
2246
2247   $ $0 $@
2248
2249 _ACEOF
2250 exec 5>>config.log
2251 {
2252 cat <<_ASUNAME
2253 ## --------- ##
2254 ## Platform. ##
2255 ## --------- ##
2256
2257 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2259 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2260 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2261 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2262
2263 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2265
2266 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2267 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2268 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2270 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2271 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2272 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2273
2274 _ASUNAME
2275
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281     $as_echo "PATH: $as_dir"
2282   done
2283 IFS=$as_save_IFS
2284
2285 } >&5
2286
2287 cat >&5 <<_ACEOF
2288
2289
2290 ## ----------- ##
2291 ## Core tests. ##
2292 ## ----------- ##
2293
2294 _ACEOF
2295
2296
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_configure_args=
2303 ac_configure_args0=
2304 ac_configure_args1=
2305 ac_must_keep_next=false
2306 for ac_pass in 1 2
2307 do
2308   for ac_arg
2309   do
2310     case $ac_arg in
2311     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313     | -silent | --silent | --silen | --sile | --sil)
2314       continue ;;
2315     *\'*)
2316       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317     esac
2318     case $ac_pass in
2319     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320     2)
2321       as_fn_append ac_configure_args1 " '$ac_arg'"
2322       if test $ac_must_keep_next = true; then
2323         ac_must_keep_next=false # Got value, back to normal.
2324       else
2325         case $ac_arg in
2326           *=* | --config-cache | -C | -disable-* | --disable-* \
2327           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329           | -with-* | --with-* | -without-* | --without-* | --x)
2330             case "$ac_configure_args0 " in
2331               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332             esac
2333             ;;
2334           -* ) ac_must_keep_next=true ;;
2335         esac
2336       fi
2337       as_fn_append ac_configure_args " '$ac_arg'"
2338       ;;
2339     esac
2340   done
2341 done
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2344
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log.  We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351   # Save into config.log some information that might help in debugging.
2352   {
2353     echo
2354
2355     $as_echo "## ---------------- ##
2356 ## Cache variables. ##
2357 ## ---------------- ##"
2358     echo
2359     # The following way of writing the cache mishandles newlines in values,
2360 (
2361   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2362     eval ac_val=\$$ac_var
2363     case $ac_val in #(
2364     *${as_nl}*)
2365       case $ac_var in #(
2366       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2368       esac
2369       case $ac_var in #(
2370       _ | IFS | as_nl) ;; #(
2371       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372       *) { eval $ac_var=; unset $ac_var;} ;;
2373       esac ;;
2374     esac
2375   done
2376   (set) 2>&1 |
2377     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2378     *${as_nl}ac_space=\ *)
2379       sed -n \
2380         "s/'\''/'\''\\\\'\'''\''/g;
2381           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2382       ;; #(
2383     *)
2384       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385       ;;
2386     esac |
2387     sort
2388 )
2389     echo
2390
2391     $as_echo "## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##"
2394     echo
2395     for ac_var in $ac_subst_vars
2396     do
2397       eval ac_val=\$$ac_var
2398       case $ac_val in
2399       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400       esac
2401       $as_echo "$ac_var='\''$ac_val'\''"
2402     done | sort
2403     echo
2404
2405     if test -n "$ac_subst_files"; then
2406       $as_echo "## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##"
2409       echo
2410       for ac_var in $ac_subst_files
2411       do
2412         eval ac_val=\$$ac_var
2413         case $ac_val in
2414         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415         esac
2416         $as_echo "$ac_var='\''$ac_val'\''"
2417       done | sort
2418       echo
2419     fi
2420
2421     if test -s confdefs.h; then
2422       $as_echo "## ----------- ##
2423 ## confdefs.h. ##
2424 ## ----------- ##"
2425       echo
2426       cat confdefs.h
2427       echo
2428     fi
2429     test "$ac_signal" != 0 &&
2430       $as_echo "$as_me: caught signal $ac_signal"
2431     $as_echo "$as_me: exit $exit_status"
2432   } >&5
2433   rm -f core *.core core.conftest.* &&
2434     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2435     exit $exit_status
2436 ' 0
2437 for ac_signal in 1 2 13 15; do
2438   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2439 done
2440 ac_signal=0
2441
2442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2443 rm -f -r conftest* confdefs.h
2444
2445 $as_echo "/* confdefs.h */" > confdefs.h
2446
2447 # Predefined preprocessor variables.
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_NAME "$PACKAGE_NAME"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2459 _ACEOF
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_STRING "$PACKAGE_STRING"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2467 _ACEOF
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_URL "$PACKAGE_URL"
2471 _ACEOF
2472
2473
2474 # Let the site file select an alternate cache file if it wants to.
2475 # Prefer an explicitly selected file to automatically selected ones.
2476 ac_site_file1=NONE
2477 ac_site_file2=NONE
2478 if test -n "$CONFIG_SITE"; then
2479   # We do not want a PATH search for config.site.
2480   case $CONFIG_SITE in #((
2481     -*)  ac_site_file1=./$CONFIG_SITE;;
2482     */*) ac_site_file1=$CONFIG_SITE;;
2483     *)   ac_site_file1=./$CONFIG_SITE;;
2484   esac
2485 elif test "x$prefix" != xNONE; then
2486   ac_site_file1=$prefix/share/config.site
2487   ac_site_file2=$prefix/etc/config.site
2488 else
2489   ac_site_file1=$ac_default_prefix/share/config.site
2490   ac_site_file2=$ac_default_prefix/etc/config.site
2491 fi
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2493 do
2494   test "x$ac_site_file" = xNONE && continue
2495   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2496     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498     sed 's/^/| /' "$ac_site_file" >&5
2499     . "$ac_site_file" \
2500       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site script $ac_site_file
2503 See \`config.log' for more details" "$LINENO" 5; }
2504   fi
2505 done
2506
2507 if test -r "$cache_file"; then
2508   # Some versions of bash will fail to source /dev/null (special files
2509   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2510   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 $as_echo "$as_me: loading cache $cache_file" >&6;}
2513     case $cache_file in
2514       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515       *)                      . "./$cache_file";;
2516     esac
2517   fi
2518 else
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 $as_echo "$as_me: creating cache $cache_file" >&6;}
2521   >$cache_file
2522 fi
2523
2524 # Check that the precious variables saved in the cache have kept the same
2525 # value.
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529   eval ac_new_set=\$ac_env_${ac_var}_set
2530   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531   eval ac_new_val=\$ac_env_${ac_var}_value
2532   case $ac_old_set,$ac_new_set in
2533     set,)
2534       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536       ac_cache_corrupted=: ;;
2537     ,set)
2538       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540       ac_cache_corrupted=: ;;
2541     ,);;
2542     *)
2543       if test "x$ac_old_val" != "x$ac_new_val"; then
2544         # differences in whitespace do not lead to failure.
2545         ac_old_val_w=`echo x $ac_old_val`
2546         ac_new_val_w=`echo x $ac_new_val`
2547         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550           ac_cache_corrupted=:
2551         else
2552           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554           eval $ac_var=\$ac_old_val
2555         fi
2556         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2557 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2558         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2560       fi;;
2561   esac
2562   # Pass precious variables to config.status.
2563   if test "$ac_new_set" = set; then
2564     case $ac_new_val in
2565     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566     *) ac_arg=$ac_var=$ac_new_val ;;
2567     esac
2568     case " $ac_configure_args " in
2569       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2570       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2571     esac
2572   fi
2573 done
2574 if $ac_cache_corrupted; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2580 fi
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2584
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590
2591
2592 ac_aux_dir=
2593 for ac_dir in build-aux "$srcdir"/build-aux; do
2594   if test -f "$ac_dir/install-sh"; then
2595     ac_aux_dir=$ac_dir
2596     ac_install_sh="$ac_aux_dir/install-sh -c"
2597     break
2598   elif test -f "$ac_dir/install.sh"; then
2599     ac_aux_dir=$ac_dir
2600     ac_install_sh="$ac_aux_dir/install.sh -c"
2601     break
2602   elif test -f "$ac_dir/shtool"; then
2603     ac_aux_dir=$ac_dir
2604     ac_install_sh="$ac_aux_dir/shtool install -c"
2605     break
2606   fi
2607 done
2608 if test -z "$ac_aux_dir"; then
2609   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2610 fi
2611
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2619
2620
2621
2622
2623 am__api_version='1.14'
2624
2625 # Find a good install program.  We prefer a C program (faster),
2626 # so one script is as good as another.  But avoid the broken or
2627 # incompatible versions:
2628 # SysV /etc/install, /usr/sbin/install
2629 # SunOS /usr/etc/install
2630 # IRIX /sbin/install
2631 # AIX /bin/install
2632 # AmigaOS /C/install, which installs bootblocks on floppy discs
2633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2636 # OS/2's system install, which has a completely different semantic
2637 # ./install, which can be erroneously created by make from ./install.sh.
2638 # Reject install programs that cannot install multiple files.
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2640 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2641 if test -z "$INSTALL"; then
2642 if ${ac_cv_path_install+:} false; then :
2643   $as_echo_n "(cached) " >&6
2644 else
2645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650     # Account for people who put trailing slashes in PATH elements.
2651 case $as_dir/ in #((
2652   ./ | .// | /[cC]/* | \
2653   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2654   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2655   /usr/ucb/* ) ;;
2656   *)
2657     # OSF1 and SCO ODT 3.0 have their own names for install.
2658     # Don't use installbsd from OSF since it installs stuff as root
2659     # by default.
2660     for ac_prog in ginstall scoinst install; do
2661       for ac_exec_ext in '' $ac_executable_extensions; do
2662         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2663           if test $ac_prog = install &&
2664             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2665             # AIX install.  It has an incompatible calling convention.
2666             :
2667           elif test $ac_prog = install &&
2668             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2669             # program-specific install script used by HP pwplus--don't use.
2670             :
2671           else
2672             rm -rf conftest.one conftest.two conftest.dir
2673             echo one > conftest.one
2674             echo two > conftest.two
2675             mkdir conftest.dir
2676             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2677               test -s conftest.one && test -s conftest.two &&
2678               test -s conftest.dir/conftest.one &&
2679               test -s conftest.dir/conftest.two
2680             then
2681               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2682               break 3
2683             fi
2684           fi
2685         fi
2686       done
2687     done
2688     ;;
2689 esac
2690
2691   done
2692 IFS=$as_save_IFS
2693
2694 rm -rf conftest.one conftest.two conftest.dir
2695
2696 fi
2697   if test "${ac_cv_path_install+set}" = set; then
2698     INSTALL=$ac_cv_path_install
2699   else
2700     # As a last resort, use the slow shell script.  Don't cache a
2701     # value for INSTALL within a source directory, because that will
2702     # break other packages using the cache if that directory is
2703     # removed, or if the value is a relative name.
2704     INSTALL=$ac_install_sh
2705   fi
2706 fi
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2708 $as_echo "$INSTALL" >&6; }
2709
2710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2711 # It thinks the first close brace ends the variable substitution.
2712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2713
2714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2715
2716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2719 $as_echo_n "checking whether build environment is sane... " >&6; }
2720 # Reject unsafe characters in $srcdir or the absolute working directory
2721 # name.  Accept space and tab only in the latter.
2722 am_lf='
2723 '
2724 case `pwd` in
2725   *[\\\"\#\$\&\'\`$am_lf]*)
2726     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2727 esac
2728 case $srcdir in
2729   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2730     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2731 esac
2732
2733 # Do 'set' in a subshell so we don't clobber the current shell's
2734 # arguments.  Must try -L first in case configure is actually a
2735 # symlink; some systems play weird games with the mod time of symlinks
2736 # (eg FreeBSD returns the mod time of the symlink's containing
2737 # directory).
2738 if (
2739    am_has_slept=no
2740    for am_try in 1 2; do
2741      echo "timestamp, slept: $am_has_slept" > conftest.file
2742      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2743      if test "$*" = "X"; then
2744         # -L didn't work.
2745         set X `ls -t "$srcdir/configure" conftest.file`
2746      fi
2747      if test "$*" != "X $srcdir/configure conftest.file" \
2748         && test "$*" != "X conftest.file $srcdir/configure"; then
2749
2750         # If neither matched, then we have a broken ls.  This can happen
2751         # if, for instance, CONFIG_SHELL is bash and it inherits a
2752         # broken ls alias from the environment.  This has actually
2753         # happened.  Such a system could not be considered "sane".
2754         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2755   alias in your environment" "$LINENO" 5
2756      fi
2757      if test "$2" = conftest.file || test $am_try -eq 2; then
2758        break
2759      fi
2760      # Just in case.
2761      sleep 1
2762      am_has_slept=yes
2763    done
2764    test "$2" = conftest.file
2765    )
2766 then
2767    # Ok.
2768    :
2769 else
2770    as_fn_error $? "newly created file is older than distributed files!
2771 Check your system clock" "$LINENO" 5
2772 fi
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2774 $as_echo "yes" >&6; }
2775 # If we didn't sleep, we still need to ensure time stamps of config.status and
2776 # generated files are strictly newer.
2777 am_sleep_pid=
2778 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2779   ( sleep 1 ) &
2780   am_sleep_pid=$!
2781 fi
2782
2783 rm -f conftest.file
2784
2785 test "$program_prefix" != NONE &&
2786   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2787 # Use a double $ so make ignores it.
2788 test "$program_suffix" != NONE &&
2789   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2790 # Double any \ or $.
2791 # By default was `s,x,x', remove it if useless.
2792 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2793 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2794
2795 # expand $ac_aux_dir to an absolute path
2796 am_aux_dir=`cd $ac_aux_dir && pwd`
2797
2798 if test x"${MISSING+set}" != xset; then
2799   case $am_aux_dir in
2800   *\ * | *\     *)
2801     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2802   *)
2803     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2804   esac
2805 fi
2806 # Use eval to expand $SHELL
2807 if eval "$MISSING --is-lightweight"; then
2808   am_missing_run="$MISSING "
2809 else
2810   am_missing_run=
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2812 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2813 fi
2814
2815 if test x"${install_sh}" != xset; then
2816   case $am_aux_dir in
2817   *\ * | *\     *)
2818     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2819   *)
2820     install_sh="\${SHELL} $am_aux_dir/install-sh"
2821   esac
2822 fi
2823
2824 # Installed binaries are usually stripped using 'strip' when the user
2825 # run "make install-strip".  However 'strip' might not be the right
2826 # tool to use in cross-compilation environments, therefore Automake
2827 # will honor the 'STRIP' environment variable to overrule this program.
2828 if test "$cross_compiling" != no; then
2829   if test -n "$ac_tool_prefix"; then
2830   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}strip; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_STRIP+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test -n "$STRIP"; then
2838   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845     for ac_exec_ext in '' $ac_executable_extensions; do
2846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852   done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 STRIP=$ac_cv_prog_STRIP
2858 if test -n "$STRIP"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2860 $as_echo "$STRIP" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867 fi
2868 if test -z "$ac_cv_prog_STRIP"; then
2869   ac_ct_STRIP=$STRIP
2870   # Extract the first word of "strip", so it can be a program name with args.
2871 set dummy strip; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   if test -n "$ac_ct_STRIP"; then
2878   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883   IFS=$as_save_IFS
2884   test -z "$as_dir" && as_dir=.
2885     for ac_exec_ext in '' $ac_executable_extensions; do
2886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887     ac_cv_prog_ac_ct_STRIP="strip"
2888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889     break 2
2890   fi
2891 done
2892   done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2898 if test -n "$ac_ct_STRIP"; then
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2900 $as_echo "$ac_ct_STRIP" >&6; }
2901 else
2902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906   if test "x$ac_ct_STRIP" = x; then
2907     STRIP=":"
2908   else
2909     case $cross_compiling:$ac_tool_warned in
2910 yes:)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915     STRIP=$ac_ct_STRIP
2916   fi
2917 else
2918   STRIP="$ac_cv_prog_STRIP"
2919 fi
2920
2921 fi
2922 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2923
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2925 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2926 if test -z "$MKDIR_P"; then
2927   if ${ac_cv_path_mkdir+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_prog in mkdir gmkdir; do
2936          for ac_exec_ext in '' $ac_executable_extensions; do
2937            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2938            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2939              'mkdir (GNU coreutils) '* | \
2940              'mkdir (coreutils) '* | \
2941              'mkdir (fileutils) '4.1*)
2942                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2943                break 3;;
2944            esac
2945          done
2946        done
2947   done
2948 IFS=$as_save_IFS
2949
2950 fi
2951
2952   test -d ./--version && rmdir ./--version
2953   if test "${ac_cv_path_mkdir+set}" = set; then
2954     MKDIR_P="$ac_cv_path_mkdir -p"
2955   else
2956     # As a last resort, use the slow shell script.  Don't cache a
2957     # value for MKDIR_P within a source directory, because that will
2958     # break other packages using the cache if that directory is
2959     # removed, or if the value is a relative name.
2960     MKDIR_P="$ac_install_sh -d"
2961   fi
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2964 $as_echo "$MKDIR_P" >&6; }
2965
2966 for ac_prog in gawk mawk nawk awk
2967 do
2968   # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_AWK+:} false; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   if test -n "$AWK"; then
2976   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985     ac_cv_prog_AWK="$ac_prog"
2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990   done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 AWK=$ac_cv_prog_AWK
2996 if test -n "$AWK"; then
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2998 $as_echo "$AWK" >&6; }
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005   test -n "$AWK" && break
3006 done
3007
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3009 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3010 set x ${MAKE-make}
3011 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3012 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   cat >conftest.make <<\_ACEOF
3016 SHELL = /bin/sh
3017 all:
3018         @echo '@@@%%%=$(MAKE)=@@@%%%'
3019 _ACEOF
3020 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3021 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3022   *@@@%%%=?*=@@@%%%*)
3023     eval ac_cv_prog_make_${ac_make}_set=yes;;
3024   *)
3025     eval ac_cv_prog_make_${ac_make}_set=no;;
3026 esac
3027 rm -f conftest.make
3028 fi
3029 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3031 $as_echo "yes" >&6; }
3032   SET_MAKE=
3033 else
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036   SET_MAKE="MAKE=${MAKE-make}"
3037 fi
3038
3039 rm -rf .tst 2>/dev/null
3040 mkdir .tst 2>/dev/null
3041 if test -d .tst; then
3042   am__leading_dot=.
3043 else
3044   am__leading_dot=_
3045 fi
3046 rmdir .tst 2>/dev/null
3047
3048 # Check whether --enable-silent-rules was given.
3049 if test "${enable_silent_rules+set}" = set; then :
3050   enableval=$enable_silent_rules;
3051 fi
3052
3053 case $enable_silent_rules in # (((
3054   yes) AM_DEFAULT_VERBOSITY=0;;
3055    no) AM_DEFAULT_VERBOSITY=1;;
3056     *) AM_DEFAULT_VERBOSITY=1;;
3057 esac
3058 am_make=${MAKE-make}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3060 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3061 if ${am_cv_make_support_nested_variables+:} false; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   if $as_echo 'TRUE=$(BAR$(V))
3065 BAR0=false
3066 BAR1=true
3067 V=1
3068 am__doit:
3069         @$(TRUE)
3070 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3071   am_cv_make_support_nested_variables=yes
3072 else
3073   am_cv_make_support_nested_variables=no
3074 fi
3075 fi
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3077 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3078 if test $am_cv_make_support_nested_variables = yes; then
3079     AM_V='$(V)'
3080   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3081 else
3082   AM_V=$AM_DEFAULT_VERBOSITY
3083   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3084 fi
3085 AM_BACKSLASH='\'
3086
3087 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3088   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3089   # is not polluted with repeated "-I."
3090   am__isrc=' -I$(srcdir)'
3091   # test to see if srcdir already configured
3092   if test -f $srcdir/config.status; then
3093     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3094   fi
3095 fi
3096
3097 # test whether we have cygpath
3098 if test -z "$CYGPATH_W"; then
3099   if (cygpath --version) >/dev/null 2>/dev/null; then
3100     CYGPATH_W='cygpath -w'
3101   else
3102     CYGPATH_W=echo
3103   fi
3104 fi
3105
3106
3107 # Define the identity of the package.
3108  PACKAGE='krb5-strength'
3109  VERSION='2.1'
3110
3111
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE "$PACKAGE"
3114 _ACEOF
3115
3116
3117 cat >>confdefs.h <<_ACEOF
3118 #define VERSION "$VERSION"
3119 _ACEOF
3120
3121 # Some tools Automake needs.
3122
3123 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3124
3125
3126 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3127
3128
3129 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3130
3131
3132 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3133
3134
3135 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3136
3137 # For better backward compatibility.  To be removed once Automake 1.9.x
3138 # dies out for good.  For more background, see:
3139 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3140 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3141 mkdir_p='$(MKDIR_P)'
3142
3143 # We need awk for the "check" target.  The system "awk" is bad on
3144 # some platforms.
3145 # Always define AMTAR for backward compatibility.  Yes, it's still used
3146 # in the wild :-(  We should find a proper way to deprecate it ...
3147 AMTAR='$${TAR-tar}'
3148
3149
3150 # We'll loop over all known methods to create a tar archive until one works.
3151 _am_tools='gnutar  pax cpio none'
3152
3153 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3154
3155
3156
3157
3158
3159
3160 # POSIX will say in a future version that running "rm -f" with no argument
3161 # is OK; and we want to be able to make that assumption in our Makefile
3162 # recipes.  So use an aggressive probe to check that the usage we want is
3163 # actually supported "in the wild" to an acceptable degree.
3164 # See automake bug#10828.
3165 # To make any issue more visible, cause the running configure to be aborted
3166 # by default if the 'rm' program in use doesn't match our expectations; the
3167 # user can still override this though.
3168 if rm -f && rm -fr && rm -rf; then : OK; else
3169   cat >&2 <<'END'
3170 Oops!
3171
3172 Your 'rm' program seems unable to run without file operands specified
3173 on the command line, even when the '-f' option is present.  This is contrary
3174 to the behaviour of most rm programs out there, and not conforming with
3175 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3176
3177 Please tell bug-automake@gnu.org about your system, including the value
3178 of your $PATH and any error possibly output before this message.  This
3179 can help us improve future automake versions.
3180
3181 END
3182   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3183     echo 'Configuration will proceed anyway, since you have set the' >&2
3184     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3185     echo >&2
3186   else
3187     cat >&2 <<'END'
3188 Aborting the configuration process, to ensure you take notice of the issue.
3189
3190 You can download and install GNU coreutils to get an 'rm' implementation
3191 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3192
3193 If you want to complete the configuration process using your problematic
3194 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3195 to "yes", and re-run configure.
3196
3197 END
3198     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3199   fi
3200 fi
3201
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3203 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3204     # Check whether --enable-maintainer-mode was given.
3205 if test "${enable_maintainer_mode+set}" = set; then :
3206   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3207 else
3208   USE_MAINTAINER_MODE=no
3209 fi
3210
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3212 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3213    if test $USE_MAINTAINER_MODE = yes; then
3214   MAINTAINER_MODE_TRUE=
3215   MAINTAINER_MODE_FALSE='#'
3216 else
3217   MAINTAINER_MODE_TRUE='#'
3218   MAINTAINER_MODE_FALSE=
3219 fi
3220
3221   MAINT=$MAINTAINER_MODE_TRUE
3222
3223
3224
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 if test -n "$ac_tool_prefix"; then
3231   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_CC+:} false; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   if test -n "$CC"; then
3239   ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$ac_cv_prog_CC"; then
3270   ac_ct_CC=$CC
3271   # Extract the first word of "gcc", so it can be a program name with args.
3272 set dummy gcc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$ac_ct_CC"; then
3279   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288     ac_cv_prog_ac_ct_CC="gcc"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299 if test -n "$ac_ct_CC"; then
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3301 $as_echo "$ac_ct_CC" >&6; }
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307   if test "x$ac_ct_CC" = x; then
3308     CC=""
3309   else
3310     case $cross_compiling:$ac_tool_warned in
3311 yes:)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314 ac_tool_warned=yes ;;
3315 esac
3316     CC=$ac_ct_CC
3317   fi
3318 else
3319   CC="$ac_cv_prog_CC"
3320 fi
3321
3322 if test -z "$CC"; then
3323           if test -n "$ac_tool_prefix"; then
3324     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3325 set dummy ${ac_tool_prefix}cc; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_CC+:} false; then :
3329   $as_echo_n "(cached) " >&6
3330 else
3331   if test -n "$CC"; then
3332   ac_cv_prog_CC="$CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   test -z "$as_dir" && as_dir=.
3339     for ac_exec_ext in '' $ac_executable_extensions; do
3340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341     ac_cv_prog_CC="${ac_tool_prefix}cc"
3342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343     break 2
3344   fi
3345 done
3346   done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 CC=$ac_cv_prog_CC
3352 if test -n "$CC"; then
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354 $as_echo "$CC" >&6; }
3355 else
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360
3361   fi
3362 fi
3363 if test -z "$CC"; then
3364   # Extract the first word of "cc", so it can be a program name with args.
3365 set dummy cc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_CC+:} false; then :
3369   $as_echo_n "(cached) " >&6
3370 else
3371   if test -n "$CC"; then
3372   ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374   ac_prog_rejected=no
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380     for ac_exec_ext in '' $ac_executable_extensions; do
3381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3383        ac_prog_rejected=yes
3384        continue
3385      fi
3386     ac_cv_prog_CC="cc"
3387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391   done
3392 IFS=$as_save_IFS
3393
3394 if test $ac_prog_rejected = yes; then
3395   # We found a bogon in the path, so make sure we never use it.
3396   set dummy $ac_cv_prog_CC
3397   shift
3398   if test $# != 0; then
3399     # We chose a different compiler from the bogus one.
3400     # However, it has the same basename, so the bogon will be chosen
3401     # first if we set CC to just the basename; use the full file name.
3402     shift
3403     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3404   fi
3405 fi
3406 fi
3407 fi
3408 CC=$ac_cv_prog_CC
3409 if test -n "$CC"; then
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411 $as_echo "$CC" >&6; }
3412 else
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 fi
3416
3417
3418 fi
3419 if test -z "$CC"; then
3420   if test -n "$ac_tool_prefix"; then
3421   for ac_prog in cl.exe
3422   do
3423     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_CC+:} false; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   if test -n "$CC"; then
3431   ac_cv_prog_CC="$CC" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436   IFS=$as_save_IFS
3437   test -z "$as_dir" && as_dir=.
3438     for ac_exec_ext in '' $ac_executable_extensions; do
3439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442     break 2
3443   fi
3444 done
3445   done
3446 IFS=$as_save_IFS
3447
3448 fi
3449 fi
3450 CC=$ac_cv_prog_CC
3451 if test -n "$CC"; then
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453 $as_echo "$CC" >&6; }
3454 else
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3457 fi
3458
3459
3460     test -n "$CC" && break
3461   done
3462 fi
3463 if test -z "$CC"; then
3464   ac_ct_CC=$CC
3465   for ac_prog in cl.exe
3466 do
3467   # Extract the first word of "$ac_prog", so it can be a program name with args.
3468 set dummy $ac_prog; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   if test -n "$ac_ct_CC"; then
3475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482     for ac_exec_ext in '' $ac_executable_extensions; do
3483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484     ac_cv_prog_ac_ct_CC="$ac_prog"
3485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489   done
3490 IFS=$as_save_IFS
3491
3492 fi
3493 fi
3494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3495 if test -n "$ac_ct_CC"; then
3496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3497 $as_echo "$ac_ct_CC" >&6; }
3498 else
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 fi
3502
3503
3504   test -n "$ac_ct_CC" && break
3505 done
3506
3507   if test "x$ac_ct_CC" = x; then
3508     CC=""
3509   else
3510     case $cross_compiling:$ac_tool_warned in
3511 yes:)
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned=yes ;;
3515 esac
3516     CC=$ac_ct_CC
3517   fi
3518 fi
3519
3520 fi
3521
3522
3523 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error $? "no acceptable C compiler found in \$PATH
3526 See \`config.log' for more details" "$LINENO" 5; }
3527
3528 # Provide some information about the compiler.
3529 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3530 set X $ac_compile
3531 ac_compiler=$2
3532 for ac_option in --version -v -V -qversion; do
3533   { { ac_try="$ac_compiler $ac_option >&5"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3541   ac_status=$?
3542   if test -s conftest.err; then
3543     sed '10a\
3544 ... rest of stderr output deleted ...
3545          10q' conftest.err >conftest.er1
3546     cat conftest.er1 >&5
3547   fi
3548   rm -f conftest.er1 conftest.err
3549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550   test $ac_status = 0; }
3551 done
3552
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555
3556 int
3557 main ()
3558 {
3559
3560   ;
3561   return 0;
3562 }
3563 _ACEOF
3564 ac_clean_files_save=$ac_clean_files
3565 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3566 # Try to create an executable without -o first, disregard a.out.
3567 # It will help us diagnose broken compilers, and finding out an intuition
3568 # of exeext.
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3570 $as_echo_n "checking whether the C compiler works... " >&6; }
3571 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3572
3573 # The possible output files:
3574 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3575
3576 ac_rmfiles=
3577 for ac_file in $ac_files
3578 do
3579   case $ac_file in
3580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3581     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3582   esac
3583 done
3584 rm -f $ac_rmfiles
3585
3586 if { { ac_try="$ac_link_default"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593   (eval "$ac_link_default") 2>&5
3594   ac_status=$?
3595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596   test $ac_status = 0; }; then :
3597   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3598 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3599 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3600 # so that the user can short-circuit this test for compilers unknown to
3601 # Autoconf.
3602 for ac_file in $ac_files ''
3603 do
3604   test -f "$ac_file" || continue
3605   case $ac_file in
3606     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3607         ;;
3608     [ab].out )
3609         # We found the default executable, but exeext='' is most
3610         # certainly right.
3611         break;;
3612     *.* )
3613         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3614         then :; else
3615            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616         fi
3617         # We set ac_cv_exeext here because the later test for it is not
3618         # safe: cross compilers may not add the suffix if given an `-o'
3619         # argument, so we may need to know it at that point already.
3620         # Even if this section looks crufty: it has the advantage of
3621         # actually working.
3622         break;;
3623     * )
3624         break;;
3625   esac
3626 done
3627 test "$ac_cv_exeext" = no && ac_cv_exeext=
3628
3629 else
3630   ac_file=''
3631 fi
3632 if test -z "$ac_file"; then :
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 $as_echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error 77 "C compiler cannot create executables
3641 See \`config.log' for more details" "$LINENO" 5; }
3642 else
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3644 $as_echo "yes" >&6; }
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3647 $as_echo_n "checking for C compiler default output file name... " >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3649 $as_echo "$ac_file" >&6; }
3650 ac_exeext=$ac_cv_exeext
3651
3652 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3653 ac_clean_files=$ac_clean_files_save
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3655 $as_echo_n "checking for suffix of executables... " >&6; }
3656 if { { ac_try="$ac_link"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663   (eval "$ac_link") 2>&5
3664   ac_status=$?
3665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666   test $ac_status = 0; }; then :
3667   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3668 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3669 # work properly (i.e., refer to `conftest.exe'), while it won't with
3670 # `rm'.
3671 for ac_file in conftest.exe conftest conftest.*; do
3672   test -f "$ac_file" || continue
3673   case $ac_file in
3674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3675     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676           break;;
3677     * ) break;;
3678   esac
3679 done
3680 else
3681   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3684 See \`config.log' for more details" "$LINENO" 5; }
3685 fi
3686 rm -f conftest conftest$ac_cv_exeext
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3688 $as_echo "$ac_cv_exeext" >&6; }
3689
3690 rm -f conftest.$ac_ext
3691 EXEEXT=$ac_cv_exeext
3692 ac_exeext=$EXEEXT
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h.  */
3695 #include <stdio.h>
3696 int
3697 main ()
3698 {
3699 FILE *f = fopen ("conftest.out", "w");
3700  return ferror (f) || fclose (f) != 0;
3701
3702   ;
3703   return 0;
3704 }
3705 _ACEOF
3706 ac_clean_files="$ac_clean_files conftest.out"
3707 # Check that the compiler produces executables we can run.  If not, either
3708 # the compiler is broken, or we cross compile.
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3710 $as_echo_n "checking whether we are cross compiling... " >&6; }
3711 if test "$cross_compiling" != yes; then
3712   { { ac_try="$ac_link"
3713 case "(($ac_try" in
3714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715   *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719   (eval "$ac_link") 2>&5
3720   ac_status=$?
3721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3722   test $ac_status = 0; }
3723   if { ac_try='./conftest$ac_cv_exeext'
3724   { { case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730   (eval "$ac_try") 2>&5
3731   ac_status=$?
3732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733   test $ac_status = 0; }; }; then
3734     cross_compiling=no
3735   else
3736     if test "$cross_compiling" = maybe; then
3737         cross_compiling=yes
3738     else
3739         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error $? "cannot run C compiled programs.
3742 If you meant to cross compile, use \`--host'.
3743 See \`config.log' for more details" "$LINENO" 5; }
3744     fi
3745   fi
3746 fi
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3748 $as_echo "$cross_compiling" >&6; }
3749
3750 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3751 ac_clean_files=$ac_clean_files_save
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3753 $as_echo_n "checking for suffix of object files... " >&6; }
3754 if ${ac_cv_objext+:} false; then :
3755   $as_echo_n "(cached) " >&6
3756 else
3757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h.  */
3759
3760 int
3761 main ()
3762 {
3763
3764   ;
3765   return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.o conftest.obj
3769 if { { ac_try="$ac_compile"
3770 case "(($ac_try" in
3771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772   *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776   (eval "$ac_compile") 2>&5
3777   ac_status=$?
3778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779   test $ac_status = 0; }; then :
3780   for ac_file in conftest.o conftest.obj conftest.*; do
3781   test -f "$ac_file" || continue;
3782   case $ac_file in
3783     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3784     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3785        break;;
3786   esac
3787 done
3788 else
3789   $as_echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3794 as_fn_error $? "cannot compute suffix of object files: cannot compile
3795 See \`config.log' for more details" "$LINENO" 5; }
3796 fi
3797 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3800 $as_echo "$ac_cv_objext" >&6; }
3801 OBJEXT=$ac_cv_objext
3802 ac_objext=$OBJEXT
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3804 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3805 if ${ac_cv_c_compiler_gnu+:} false; then :
3806   $as_echo_n "(cached) " >&6
3807 else
3808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h.  */
3810
3811 int
3812 main ()
3813 {
3814 #ifndef __GNUC__
3815        choke me
3816 #endif
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823   ac_compiler_gnu=yes
3824 else
3825   ac_compiler_gnu=no
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3829
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3833 if test $ac_compiler_gnu = yes; then
3834   GCC=yes
3835 else
3836   GCC=
3837 fi
3838 ac_test_CFLAGS=${CFLAGS+set}
3839 ac_save_CFLAGS=$CFLAGS
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3842 if ${ac_cv_prog_cc_g+:} false; then :
3843   $as_echo_n "(cached) " >&6
3844 else
3845   ac_save_c_werror_flag=$ac_c_werror_flag
3846    ac_c_werror_flag=yes
3847    ac_cv_prog_cc_g=no
3848    CFLAGS="-g"
3849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h.  */
3851
3852 int
3853 main ()
3854 {
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861   ac_cv_prog_cc_g=yes
3862 else
3863   CFLAGS=""
3864       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866
3867 int
3868 main ()
3869 {
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876
3877 else
3878   ac_c_werror_flag=$ac_save_c_werror_flag
3879          CFLAGS="-g"
3880          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882
3883 int
3884 main ()
3885 {
3886
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892   ac_cv_prog_cc_g=yes
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899    ac_c_werror_flag=$ac_save_c_werror_flag
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3902 $as_echo "$ac_cv_prog_cc_g" >&6; }
3903 if test "$ac_test_CFLAGS" = set; then
3904   CFLAGS=$ac_save_CFLAGS
3905 elif test $ac_cv_prog_cc_g = yes; then
3906   if test "$GCC" = yes; then
3907     CFLAGS="-g -O2"
3908   else
3909     CFLAGS="-g"
3910   fi
3911 else
3912   if test "$GCC" = yes; then
3913     CFLAGS="-O2"
3914   else
3915     CFLAGS=
3916   fi
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3919 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3920 if ${ac_cv_prog_cc_c89+:} false; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   ac_cv_prog_cc_c89=no
3924 ac_save_CC=$CC
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927 #include <stdarg.h>
3928 #include <stdio.h>
3929 struct stat;
3930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3931 struct buf { int x; };
3932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3933 static char *e (p, i)
3934      char **p;
3935      int i;
3936 {
3937   return p[i];
3938 }
3939 static char *f (char * (*g) (char **, int), char **p, ...)
3940 {
3941   char *s;
3942   va_list v;
3943   va_start (v,p);
3944   s = g (p, va_arg (v,int));
3945   va_end (v);
3946   return s;
3947 }
3948
3949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3950    function prototypes and stuff, but not '\xHH' hex character constants.
3951    These don't provoke an error unfortunately, instead are silently treated
3952    as 'x'.  The following induces an error, until -std is added to get
3953    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3954    array size at least.  It's necessary to write '\x00'==0 to get something
3955    that's true only with -std.  */
3956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3957
3958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3959    inside strings and character constants.  */
3960 #define FOO(x) 'x'
3961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3962
3963 int test (int i, double x);
3964 struct s1 {int (*f) (int a);};
3965 struct s2 {int (*f) (double a);};
3966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3967 int argc;
3968 char **argv;
3969 int
3970 main ()
3971 {
3972 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3978         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3979 do
3980   CC="$ac_save_CC $ac_arg"
3981   if ac_fn_c_try_compile "$LINENO"; then :
3982   ac_cv_prog_cc_c89=$ac_arg
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext
3985   test "x$ac_cv_prog_cc_c89" != "xno" && break
3986 done
3987 rm -f conftest.$ac_ext
3988 CC=$ac_save_CC
3989
3990 fi
3991 # AC_CACHE_VAL
3992 case "x$ac_cv_prog_cc_c89" in
3993   x)
3994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3995 $as_echo "none needed" >&6; } ;;
3996   xno)
3997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3998 $as_echo "unsupported" >&6; } ;;
3999   *)
4000     CC="$CC $ac_cv_prog_cc_c89"
4001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4003 esac
4004 if test "x$ac_cv_prog_cc_c89" != xno; then :
4005
4006 fi
4007
4008 ac_ext=c
4009 ac_cpp='$CPP $CPPFLAGS'
4010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4020 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4021 if ${am_cv_prog_cc_c_o+:} false; then :
4022   $as_echo_n "(cached) " >&6
4023 else
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026
4027 int
4028 main ()
4029 {
4030
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035   # Make sure it works both with $CC and with simple cc.
4036   # Following AC_PROG_CC_C_O, we do the test twice because some
4037   # compilers refuse to overwrite an existing .o file with -o,
4038   # though they will create one.
4039   am_cv_prog_cc_c_o=yes
4040   for am_i in 1 2; do
4041     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4042    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4043    ac_status=$?
4044    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045    (exit $ac_status); } \
4046          && test -f conftest2.$ac_objext; then
4047       : OK
4048     else
4049       am_cv_prog_cc_c_o=no
4050       break
4051     fi
4052   done
4053   rm -f core conftest*
4054   unset am_i
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4057 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4058 if test "$am_cv_prog_cc_c_o" != yes; then
4059    # Losing compiler, so override with the script.
4060    # FIXME: It is wrong to rewrite CC.
4061    # But if we don't then we get into trouble of one sort or another.
4062    # A longer-term fix would be to have automake use am__CC in this case,
4063    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4064    CC="$am_aux_dir/compile $CC"
4065 fi
4066 ac_ext=c
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072 DEPDIR="${am__leading_dot}deps"
4073
4074 ac_config_commands="$ac_config_commands depfiles"
4075
4076
4077 am_make=${MAKE-make}
4078 cat > confinc << 'END'
4079 am__doit:
4080         @echo this is the am__doit target
4081 .PHONY: am__doit
4082 END
4083 # If we don't find an include directive, just comment out the code.
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4085 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4086 am__include="#"
4087 am__quote=
4088 _am_result=none
4089 # First try GNU make style include.
4090 echo "include confinc" > confmf
4091 # Ignore all kinds of additional output from 'make'.
4092 case `$am_make -s -f confmf 2> /dev/null` in #(
4093 *the\ am__doit\ target*)
4094   am__include=include
4095   am__quote=
4096   _am_result=GNU
4097   ;;
4098 esac
4099 # Now try BSD make style include.
4100 if test "$am__include" = "#"; then
4101    echo '.include "confinc"' > confmf
4102    case `$am_make -s -f confmf 2> /dev/null` in #(
4103    *the\ am__doit\ target*)
4104      am__include=.include
4105      am__quote="\""
4106      _am_result=BSD
4107      ;;
4108    esac
4109 fi
4110
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4113 $as_echo "$_am_result" >&6; }
4114 rm -f confinc confmf
4115
4116 # Check whether --enable-dependency-tracking was given.
4117 if test "${enable_dependency_tracking+set}" = set; then :
4118   enableval=$enable_dependency_tracking;
4119 fi
4120
4121 if test "x$enable_dependency_tracking" != xno; then
4122   am_depcomp="$ac_aux_dir/depcomp"
4123   AMDEPBACKSLASH='\'
4124   am__nodep='_no'
4125 fi
4126  if test "x$enable_dependency_tracking" != xno; then
4127   AMDEP_TRUE=
4128   AMDEP_FALSE='#'
4129 else
4130   AMDEP_TRUE='#'
4131   AMDEP_FALSE=
4132 fi
4133
4134
4135
4136 depcc="$CC"   am_compiler_list=
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4139 $as_echo_n "checking dependency style of $depcc... " >&6; }
4140 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4144   # We make a subdir and do the tests there.  Otherwise we can end up
4145   # making bogus files that we don't know about and never remove.  For
4146   # instance it was reported that on HP-UX the gcc test will end up
4147   # making a dummy file named 'D' -- because '-MD' means "put the output
4148   # in D".
4149   rm -rf conftest.dir
4150   mkdir conftest.dir
4151   # Copy depcomp to subdir because otherwise we won't find it if we're
4152   # using a relative directory.
4153   cp "$am_depcomp" conftest.dir
4154   cd conftest.dir
4155   # We will build objects and dependencies in a subdirectory because
4156   # it helps to detect inapplicable dependency modes.  For instance
4157   # both Tru64's cc and ICC support -MD to output dependencies as a
4158   # side effect of compilation, but ICC will put the dependencies in
4159   # the current directory while Tru64 will put them in the object
4160   # directory.
4161   mkdir sub
4162
4163   am_cv_CC_dependencies_compiler_type=none
4164   if test "$am_compiler_list" = ""; then
4165      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4166   fi
4167   am__universal=false
4168   case " $depcc " in #(
4169      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4170      esac
4171
4172   for depmode in $am_compiler_list; do
4173     # Setup a source with many dependencies, because some compilers
4174     # like to wrap large dependency lists on column 80 (with \), and
4175     # we should not choose a depcomp mode which is confused by this.
4176     #
4177     # We need to recreate these files for each test, as the compiler may
4178     # overwrite some of them when testing with obscure command lines.
4179     # This happens at least with the AIX C compiler.
4180     : > sub/conftest.c
4181     for i in 1 2 3 4 5 6; do
4182       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4183       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4184       # Solaris 10 /bin/sh.
4185       echo '/* dummy */' > sub/conftst$i.h
4186     done
4187     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4188
4189     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4190     # mode.  It turns out that the SunPro C++ compiler does not properly
4191     # handle '-M -o', and we need to detect this.  Also, some Intel
4192     # versions had trouble with output in subdirs.
4193     am__obj=sub/conftest.${OBJEXT-o}
4194     am__minus_obj="-o $am__obj"
4195     case $depmode in
4196     gcc)
4197       # This depmode causes a compiler race in universal mode.
4198       test "$am__universal" = false || continue
4199       ;;
4200     nosideeffect)
4201       # After this tag, mechanisms are not by side-effect, so they'll
4202       # only be used when explicitly requested.
4203       if test "x$enable_dependency_tracking" = xyes; then
4204         continue
4205       else
4206         break
4207       fi
4208       ;;
4209     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4210       # This compiler won't grok '-c -o', but also, the minuso test has
4211       # not run yet.  These depmodes are late enough in the game, and
4212       # so weak that their functioning should not be impacted.
4213       am__obj=conftest.${OBJEXT-o}
4214       am__minus_obj=
4215       ;;
4216     none) break ;;
4217     esac
4218     if depmode=$depmode \
4219        source=sub/conftest.c object=$am__obj \
4220        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4221        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4222          >/dev/null 2>conftest.err &&
4223        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4224        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4225        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4226        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4227       # icc doesn't choke on unknown options, it will just issue warnings
4228       # or remarks (even with -Werror).  So we grep stderr for any message
4229       # that says an option was ignored or not supported.
4230       # When given -MP, icc 7.0 and 7.1 complain thusly:
4231       #   icc: Command line warning: ignoring option '-M'; no argument required
4232       # The diagnosis changed in icc 8.0:
4233       #   icc: Command line remark: option '-MP' not supported
4234       if (grep 'ignoring option' conftest.err ||
4235           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4236         am_cv_CC_dependencies_compiler_type=$depmode
4237         break
4238       fi
4239     fi
4240   done
4241
4242   cd ..
4243   rm -rf conftest.dir
4244 else
4245   am_cv_CC_dependencies_compiler_type=none
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4250 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4252
4253  if
4254   test "x$enable_dependency_tracking" != xno \
4255   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4256   am__fastdepCC_TRUE=
4257   am__fastdepCC_FALSE='#'
4258 else
4259   am__fastdepCC_TRUE='#'
4260   am__fastdepCC_FALSE=
4261 fi
4262
4263
4264
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4271 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4272 # On Suns, sometimes $CPP names a directory.
4273 if test -n "$CPP" && test -d "$CPP"; then
4274   CPP=
4275 fi
4276 if test -z "$CPP"; then
4277   if ${ac_cv_prog_CPP+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280       # Double quotes because CPP needs to be expanded
4281     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4282     do
4283       ac_preproc_ok=false
4284 for ac_c_preproc_warn_flag in '' yes
4285 do
4286   # Use a header file that comes with gcc, so configuring glibc
4287   # with a fresh cross-compiler works.
4288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289   # <limits.h> exists even on freestanding compilers.
4290   # On the NeXT, cc -E runs the code through the compiler's parser,
4291   # not just through cpp. "Syntax error" is here to catch this case.
4292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h.  */
4294 #ifdef __STDC__
4295 # include <limits.h>
4296 #else
4297 # include <assert.h>
4298 #endif
4299                      Syntax error
4300 _ACEOF
4301 if ac_fn_c_try_cpp "$LINENO"; then :
4302
4303 else
4304   # Broken: fails on valid input.
4305 continue
4306 fi
4307 rm -f conftest.err conftest.i conftest.$ac_ext
4308
4309   # OK, works on sane cases.  Now check whether nonexistent headers
4310   # can be detected and how.
4311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h.  */
4313 #include <ac_nonexistent.h>
4314 _ACEOF
4315 if ac_fn_c_try_cpp "$LINENO"; then :
4316   # Broken: success on invalid input.
4317 continue
4318 else
4319   # Passes both tests.
4320 ac_preproc_ok=:
4321 break
4322 fi
4323 rm -f conftest.err conftest.i conftest.$ac_ext
4324
4325 done
4326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327 rm -f conftest.i conftest.err conftest.$ac_ext
4328 if $ac_preproc_ok; then :
4329   break
4330 fi
4331
4332     done
4333     ac_cv_prog_CPP=$CPP
4334
4335 fi
4336   CPP=$ac_cv_prog_CPP
4337 else
4338   ac_cv_prog_CPP=$CPP
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4341 $as_echo "$CPP" >&6; }
4342 ac_preproc_ok=false
4343 for ac_c_preproc_warn_flag in '' yes
4344 do
4345   # Use a header file that comes with gcc, so configuring glibc
4346   # with a fresh cross-compiler works.
4347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4348   # <limits.h> exists even on freestanding compilers.
4349   # On the NeXT, cc -E runs the code through the compiler's parser,
4350   # not just through cpp. "Syntax error" is here to catch this case.
4351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353 #ifdef __STDC__
4354 # include <limits.h>
4355 #else
4356 # include <assert.h>
4357 #endif
4358                      Syntax error
4359 _ACEOF
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4361
4362 else
4363   # Broken: fails on valid input.
4364 continue
4365 fi
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4367
4368   # OK, works on sane cases.  Now check whether nonexistent headers
4369   # can be detected and how.
4370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h.  */
4372 #include <ac_nonexistent.h>
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375   # Broken: success on invalid input.
4376 continue
4377 else
4378   # Passes both tests.
4379 ac_preproc_ok=:
4380 break
4381 fi
4382 rm -f conftest.err conftest.i conftest.$ac_ext
4383
4384 done
4385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386 rm -f conftest.i conftest.err conftest.$ac_ext
4387 if $ac_preproc_ok; then :
4388
4389 else
4390   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4393 See \`config.log' for more details" "$LINENO" 5; }
4394 fi
4395
4396 ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4404 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4405 if ${ac_cv_path_GREP+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -z "$GREP"; then
4409   ac_path_GREP_found=false
4410   # Loop through the user's path and test for each of PROGNAME-LIST
4411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416     for ac_prog in grep ggrep; do
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4419       as_fn_executable_p "$ac_path_GREP" || continue
4420 # Check for GNU ac_path_GREP and select it if it is found.
4421   # Check for GNU $ac_path_GREP
4422 case `"$ac_path_GREP" --version 2>&1` in
4423 *GNU*)
4424   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4425 *)
4426   ac_count=0
4427   $as_echo_n 0123456789 >"conftest.in"
4428   while :
4429   do
4430     cat "conftest.in" "conftest.in" >"conftest.tmp"
4431     mv "conftest.tmp" "conftest.in"
4432     cp "conftest.in" "conftest.nl"
4433     $as_echo 'GREP' >> "conftest.nl"
4434     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436     as_fn_arith $ac_count + 1 && ac_count=$as_val
4437     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4438       # Best one so far, save it but keep looking for a better one
4439       ac_cv_path_GREP="$ac_path_GREP"
4440       ac_path_GREP_max=$ac_count
4441     fi
4442     # 10*(2^10) chars as input seems more than enough
4443     test $ac_count -gt 10 && break
4444   done
4445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446 esac
4447
4448       $ac_path_GREP_found && break 3
4449     done
4450   done
4451   done
4452 IFS=$as_save_IFS
4453   if test -z "$ac_cv_path_GREP"; then
4454     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4455   fi
4456 else
4457   ac_cv_path_GREP=$GREP
4458 fi
4459
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4462 $as_echo "$ac_cv_path_GREP" >&6; }
4463  GREP="$ac_cv_path_GREP"
4464
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4467 $as_echo_n "checking for egrep... " >&6; }
4468 if ${ac_cv_path_EGREP+:} false; then :
4469   $as_echo_n "(cached) " >&6
4470 else
4471   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4472    then ac_cv_path_EGREP="$GREP -E"
4473    else
4474      if test -z "$EGREP"; then
4475   ac_path_EGREP_found=false
4476   # Loop through the user's path and test for each of PROGNAME-LIST
4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482     for ac_prog in egrep; do
4483     for ac_exec_ext in '' $ac_executable_extensions; do
4484       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4485       as_fn_executable_p "$ac_path_EGREP" || continue
4486 # Check for GNU ac_path_EGREP and select it if it is found.
4487   # Check for GNU $ac_path_EGREP
4488 case `"$ac_path_EGREP" --version 2>&1` in
4489 *GNU*)
4490   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4491 *)
4492   ac_count=0
4493   $as_echo_n 0123456789 >"conftest.in"
4494   while :
4495   do
4496     cat "conftest.in" "conftest.in" >"conftest.tmp"
4497     mv "conftest.tmp" "conftest.in"
4498     cp "conftest.in" "conftest.nl"
4499     $as_echo 'EGREP' >> "conftest.nl"
4500     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502     as_fn_arith $ac_count + 1 && ac_count=$as_val
4503     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4504       # Best one so far, save it but keep looking for a better one
4505       ac_cv_path_EGREP="$ac_path_EGREP"
4506       ac_path_EGREP_max=$ac_count
4507     fi
4508     # 10*(2^10) chars as input seems more than enough
4509     test $ac_count -gt 10 && break
4510   done
4511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512 esac
4513
4514       $ac_path_EGREP_found && break 3
4515     done
4516   done
4517   done
4518 IFS=$as_save_IFS
4519   if test -z "$ac_cv_path_EGREP"; then
4520     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4521   fi
4522 else
4523   ac_cv_path_EGREP=$EGREP
4524 fi
4525
4526    fi
4527 fi
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4529 $as_echo "$ac_cv_path_EGREP" >&6; }
4530  EGREP="$ac_cv_path_EGREP"
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4534 $as_echo_n "checking for ANSI C header files... " >&6; }
4535 if ${ac_cv_header_stdc+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540 #include <stdlib.h>
4541 #include <stdarg.h>
4542 #include <string.h>
4543 #include <float.h>
4544
4545 int
4546 main ()
4547 {
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554   ac_cv_header_stdc=yes
4555 else
4556   ac_cv_header_stdc=no
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559
4560 if test $ac_cv_header_stdc = yes; then
4561   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h.  */
4564 #include <string.h>
4565
4566 _ACEOF
4567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4568   $EGREP "memchr" >/dev/null 2>&1; then :
4569
4570 else
4571   ac_cv_header_stdc=no
4572 fi
4573 rm -f conftest*
4574
4575 fi
4576
4577 if test $ac_cv_header_stdc = yes; then
4578   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581 #include <stdlib.h>
4582
4583 _ACEOF
4584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585   $EGREP "free" >/dev/null 2>&1; then :
4586
4587 else
4588   ac_cv_header_stdc=no
4589 fi
4590 rm -f conftest*
4591
4592 fi
4593
4594 if test $ac_cv_header_stdc = yes; then
4595   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4596   if test "$cross_compiling" = yes; then :
4597   :
4598 else
4599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h.  */
4601 #include <ctype.h>
4602 #include <stdlib.h>
4603 #if ((' ' & 0x0FF) == 0x020)
4604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4606 #else
4607 # define ISLOWER(c) \
4608                    (('a' <= (c) && (c) <= 'i') \
4609                      || ('j' <= (c) && (c) <= 'r') \
4610                      || ('s' <= (c) && (c) <= 'z'))
4611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4612 #endif
4613
4614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4615 int
4616 main ()
4617 {
4618   int i;
4619   for (i = 0; i < 256; i++)
4620     if (XOR (islower (i), ISLOWER (i))
4621         || toupper (i) != TOUPPER (i))
4622       return 2;
4623   return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_run "$LINENO"; then :
4627
4628 else
4629   ac_cv_header_stdc=no
4630 fi
4631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4632   conftest.$ac_objext conftest.beam conftest.$ac_ext
4633 fi
4634
4635 fi
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4638 $as_echo "$ac_cv_header_stdc" >&6; }
4639 if test $ac_cv_header_stdc = yes; then
4640
4641 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4642
4643 fi
4644
4645 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4647                   inttypes.h stdint.h unistd.h
4648 do :
4649   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4650 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4651 "
4652 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4653   cat >>confdefs.h <<_ACEOF
4654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4655 _ACEOF
4656
4657 fi
4658
4659 done
4660
4661
4662
4663   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4664 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4665   MINIX=yes
4666 else
4667   MINIX=
4668 fi
4669
4670
4671   if test "$MINIX" = yes; then
4672
4673 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4674
4675
4676 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4677
4678
4679 $as_echo "#define _MINIX 1" >>confdefs.h
4680
4681   fi
4682
4683
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4685 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4686 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691
4692 #         define __EXTENSIONS__ 1
4693           $ac_includes_default
4694 int
4695 main ()
4696 {
4697
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703   ac_cv_safe_to_define___extensions__=yes
4704 else
4705   ac_cv_safe_to_define___extensions__=no
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4710 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4711   test $ac_cv_safe_to_define___extensions__ = yes &&
4712     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4713
4714   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4715
4716   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4717
4718   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4719
4720   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4721
4722
4723 # Check whether --enable-largefile was given.
4724 if test "${enable_largefile+set}" = set; then :
4725   enableval=$enable_largefile;
4726 fi
4727
4728 if test "$enable_largefile" != no; then
4729
4730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4731 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4732 if ${ac_cv_sys_largefile_CC+:} false; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   ac_cv_sys_largefile_CC=no
4736      if test "$GCC" != yes; then
4737        ac_save_CC=$CC
4738        while :; do
4739          # IRIX 6.2 and later do not support large files by default,
4740          # so use the C compiler's -n32 option if that helps.
4741          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #include <sys/types.h>
4744  /* Check that off_t can represent 2**63 - 1 correctly.
4745     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4746     since some C++ compilers masquerading as C compilers
4747     incorrectly reject 9223372036854775807.  */
4748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4749   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4750                        && LARGE_OFF_T % 2147483647 == 1)
4751                       ? 1 : -1];
4752 int
4753 main ()
4754 {
4755
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760          if ac_fn_c_try_compile "$LINENO"; then :
4761   break
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext
4764          CC="$CC -n32"
4765          if ac_fn_c_try_compile "$LINENO"; then :
4766   ac_cv_sys_largefile_CC=' -n32'; break
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext
4769          break
4770        done
4771        CC=$ac_save_CC
4772        rm -f conftest.$ac_ext
4773     fi
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4776 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4777   if test "$ac_cv_sys_largefile_CC" != no; then
4778     CC=$CC$ac_cv_sys_largefile_CC
4779   fi
4780
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4782 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4783 if ${ac_cv_sys_file_offset_bits+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   while :; do
4787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h.  */
4789 #include <sys/types.h>
4790  /* Check that off_t can represent 2**63 - 1 correctly.
4791     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4792     since some C++ compilers masquerading as C compilers
4793     incorrectly reject 9223372036854775807.  */
4794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4795   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4796                        && LARGE_OFF_T % 2147483647 == 1)
4797                       ? 1 : -1];
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807   ac_cv_sys_file_offset_bits=no; break
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h.  */
4812 #define _FILE_OFFSET_BITS 64
4813 #include <sys/types.h>
4814  /* Check that off_t can represent 2**63 - 1 correctly.
4815     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4816     since some C++ compilers masquerading as C compilers
4817     incorrectly reject 9223372036854775807.  */
4818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4819   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4820                        && LARGE_OFF_T % 2147483647 == 1)
4821                       ? 1 : -1];
4822 int
4823 main ()
4824 {
4825
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831   ac_cv_sys_file_offset_bits=64; break
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834   ac_cv_sys_file_offset_bits=unknown
4835   break
4836 done
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4839 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4840 case $ac_cv_sys_file_offset_bits in #(
4841   no | unknown) ;;
4842   *)
4843 cat >>confdefs.h <<_ACEOF
4844 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4845 _ACEOF
4846 ;;
4847 esac
4848 rm -rf conftest*
4849   if test $ac_cv_sys_file_offset_bits = unknown; then
4850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4851 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4852 if ${ac_cv_sys_large_files+:} false; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   while :; do
4856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h.  */
4858 #include <sys/types.h>
4859  /* Check that off_t can represent 2**63 - 1 correctly.
4860     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861     since some C++ compilers masquerading as C compilers
4862     incorrectly reject 9223372036854775807.  */
4863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4864   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865                        && LARGE_OFF_T % 2147483647 == 1)
4866                       ? 1 : -1];
4867 int
4868 main ()
4869 {
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876   ac_cv_sys_large_files=no; break
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 #define _LARGE_FILES 1
4882 #include <sys/types.h>
4883  /* Check that off_t can represent 2**63 - 1 correctly.
4884     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4885     since some C++ compilers masquerading as C compilers
4886     incorrectly reject 9223372036854775807.  */
4887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4888   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4889                        && LARGE_OFF_T % 2147483647 == 1)
4890                       ? 1 : -1];
4891 int
4892 main ()
4893 {
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900   ac_cv_sys_large_files=1; break
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903   ac_cv_sys_large_files=unknown
4904   break
4905 done
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4908 $as_echo "$ac_cv_sys_large_files" >&6; }
4909 case $ac_cv_sys_large_files in #(
4910   no | unknown) ;;
4911   *)
4912 cat >>confdefs.h <<_ACEOF
4913 #define _LARGE_FILES $ac_cv_sys_large_files
4914 _ACEOF
4915 ;;
4916 esac
4917 rm -rf conftest*
4918   fi
4919
4920
4921 fi
4922
4923
4924
4925 if test -n "$ac_tool_prefix"; then
4926   for ac_prog in ar lib "link -lib"
4927   do
4928     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_AR+:} false; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   if test -n "$AR"; then
4936   ac_cv_prog_AR="$AR" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943     for ac_exec_ext in '' $ac_executable_extensions; do
4944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950   done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 AR=$ac_cv_prog_AR
4956 if test -n "$AR"; then
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4958 $as_echo "$AR" >&6; }
4959 else
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964
4965     test -n "$AR" && break
4966   done
4967 fi
4968 if test -z "$AR"; then
4969   ac_ct_AR=$AR
4970   for ac_prog in ar lib "link -lib"
4971 do
4972   # Extract the first word of "$ac_prog", so it can be a program name with args.
4973 set dummy $ac_prog; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   if test -n "$ac_ct_AR"; then
4980   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987     for ac_exec_ext in '' $ac_executable_extensions; do
4988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989     ac_cv_prog_ac_ct_AR="$ac_prog"
4990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994   done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5000 if test -n "$ac_ct_AR"; then
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5002 $as_echo "$ac_ct_AR" >&6; }
5003 else
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009   test -n "$ac_ct_AR" && break
5010 done
5011
5012   if test "x$ac_ct_AR" = x; then
5013     AR="false"
5014   else
5015     case $cross_compiling:$ac_tool_warned in
5016 yes:)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019 ac_tool_warned=yes ;;
5020 esac
5021     AR=$ac_ct_AR
5022   fi
5023 fi
5024
5025 : ${AR=ar}
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5028 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5029 if ${am_cv_ar_interface+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038    am_cv_ar_interface=ar
5039    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h.  */
5041 int some_variable = 0;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5045       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5046   (eval $am_ar_try) 2>&5
5047   ac_status=$?
5048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049   test $ac_status = 0; }
5050       if test "$ac_status" -eq 0; then
5051         am_cv_ar_interface=ar
5052       else
5053         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5054         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5055   (eval $am_ar_try) 2>&5
5056   ac_status=$?
5057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058   test $ac_status = 0; }
5059         if test "$ac_status" -eq 0; then
5060           am_cv_ar_interface=lib
5061         else
5062           am_cv_ar_interface=unknown
5063         fi
5064       fi
5065       rm -f conftest.lib libconftest.a
5066
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069    ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5077 $as_echo "$am_cv_ar_interface" >&6; }
5078
5079 case $am_cv_ar_interface in
5080 ar)
5081   ;;
5082 lib)
5083   # Microsoft lib, so override with the ar-lib wrapper script.
5084   # FIXME: It is wrong to rewrite AR.
5085   # But if we don't then we get into trouble of one sort or another.
5086   # A longer-term fix would be to have automake use am__AR in this case,
5087   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5088   # similar.
5089   AR="$am_aux_dir/ar-lib $AR"
5090   ;;
5091 unknown)
5092   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5093   ;;
5094 esac
5095
5096 # Check whether --enable-static was given.
5097 if test "${enable_static+set}" = set; then :
5098   enableval=$enable_static; p=${PACKAGE-default}
5099     case $enableval in
5100     yes) enable_static=yes ;;
5101     no) enable_static=no ;;
5102     *)
5103      enable_static=no
5104       # Look at the argument we got.  We use all the common list separators.
5105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5106       for pkg in $enableval; do
5107         IFS="$lt_save_ifs"
5108         if test "X$pkg" = "X$p"; then
5109           enable_static=yes
5110         fi
5111       done
5112       IFS="$lt_save_ifs"
5113       ;;
5114     esac
5115 else
5116   enable_static=no
5117 fi
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127 case `pwd` in
5128   *\ * | *\     *)
5129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5130 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5131 esac
5132
5133
5134
5135 macro_version='2.4.2'
5136 macro_revision='1.3337'
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150 ltmain="$ac_aux_dir/ltmain.sh"
5151
5152 # Make sure we can run config.sub.
5153 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5154   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5157 $as_echo_n "checking build system type... " >&6; }
5158 if ${ac_cv_build+:} false; then :
5159   $as_echo_n "(cached) " >&6
5160 else
5161   ac_build_alias=$build_alias
5162 test "x$ac_build_alias" = x &&
5163   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5164 test "x$ac_build_alias" = x &&
5165   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5166 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5167   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5168
5169 fi
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5171 $as_echo "$ac_cv_build" >&6; }
5172 case $ac_cv_build in
5173 *-*-*) ;;
5174 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5175 esac
5176 build=$ac_cv_build
5177 ac_save_IFS=$IFS; IFS='-'
5178 set x $ac_cv_build
5179 shift
5180 build_cpu=$1
5181 build_vendor=$2
5182 shift; shift
5183 # Remember, the first character of IFS is used to create $*,
5184 # except with old shells:
5185 build_os=$*
5186 IFS=$ac_save_IFS
5187 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5188
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5191 $as_echo_n "checking host system type... " >&6; }
5192 if ${ac_cv_host+:} false; then :
5193   $as_echo_n "(cached) " >&6
5194 else
5195   if test "x$host_alias" = x; then
5196   ac_cv_host=$ac_cv_build
5197 else
5198   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5199     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5200 fi
5201
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5204 $as_echo "$ac_cv_host" >&6; }
5205 case $ac_cv_host in
5206 *-*-*) ;;
5207 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5208 esac
5209 host=$ac_cv_host
5210 ac_save_IFS=$IFS; IFS='-'
5211 set x $ac_cv_host
5212 shift
5213 host_cpu=$1
5214 host_vendor=$2
5215 shift; shift
5216 # Remember, the first character of IFS is used to create $*,
5217 # except with old shells:
5218 host_os=$*
5219 IFS=$ac_save_IFS
5220 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5221
5222
5223 # Backslashify metacharacters that are still active within
5224 # double-quoted strings.
5225 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5226
5227 # Same as above, but do not quote variable references.
5228 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5229
5230 # Sed substitution to delay expansion of an escaped shell variable in a
5231 # double_quote_subst'ed string.
5232 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5233
5234 # Sed substitution to delay expansion of an escaped single quote.
5235 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5236
5237 # Sed substitution to avoid accidental globbing in evaled expressions
5238 no_glob_subst='s/\*/\\\*/g'
5239
5240 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5241 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5242 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5245 $as_echo_n "checking how to print strings... " >&6; }
5246 # Test print first, because it will be a builtin if present.
5247 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5248    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5249   ECHO='print -r --'
5250 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5251   ECHO='printf %s\n'
5252 else
5253   # Use this function as a fallback that always works.
5254   func_fallback_echo ()
5255   {
5256     eval 'cat <<_LTECHO_EOF
5257 $1
5258 _LTECHO_EOF'
5259   }
5260   ECHO='func_fallback_echo'
5261 fi
5262
5263 # func_echo_all arg...
5264 # Invoke $ECHO with all args, space-separated.
5265 func_echo_all ()
5266 {
5267     $ECHO ""
5268 }
5269
5270 case "$ECHO" in
5271   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5272 $as_echo "printf" >&6; } ;;
5273   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5274 $as_echo "print -r" >&6; } ;;
5275   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5276 $as_echo "cat" >&6; } ;;
5277 esac
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5293 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5294 if ${ac_cv_path_SED+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5298      for ac_i in 1 2 3 4 5 6 7; do
5299        ac_script="$ac_script$as_nl$ac_script"
5300      done
5301      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5302      { ac_script=; unset ac_script;}
5303      if test -z "$SED"; then
5304   ac_path_SED_found=false
5305   # Loop through the user's path and test for each of PROGNAME-LIST
5306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311     for ac_prog in sed gsed; do
5312     for ac_exec_ext in '' $ac_executable_extensions; do
5313       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5314       as_fn_executable_p "$ac_path_SED" || continue
5315 # Check for GNU ac_path_SED and select it if it is found.
5316   # Check for GNU $ac_path_SED
5317 case `"$ac_path_SED" --version 2>&1` in
5318 *GNU*)
5319   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5320 *)
5321   ac_count=0
5322   $as_echo_n 0123456789 >"conftest.in"
5323   while :
5324   do
5325     cat "conftest.in" "conftest.in" >"conftest.tmp"
5326     mv "conftest.tmp" "conftest.in"
5327     cp "conftest.in" "conftest.nl"
5328     $as_echo '' >> "conftest.nl"
5329     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5330     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5331     as_fn_arith $ac_count + 1 && ac_count=$as_val
5332     if test $ac_count -gt ${ac_path_SED_max-0}; then
5333       # Best one so far, save it but keep looking for a better one
5334       ac_cv_path_SED="$ac_path_SED"
5335       ac_path_SED_max=$ac_count
5336     fi
5337     # 10*(2^10) chars as input seems more than enough
5338     test $ac_count -gt 10 && break
5339   done
5340   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5341 esac
5342
5343       $ac_path_SED_found && break 3
5344     done
5345   done
5346   done
5347 IFS=$as_save_IFS
5348   if test -z "$ac_cv_path_SED"; then
5349     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5350   fi
5351 else
5352   ac_cv_path_SED=$SED
5353 fi
5354
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5357 $as_echo "$ac_cv_path_SED" >&6; }
5358  SED="$ac_cv_path_SED"
5359   rm -f conftest.sed
5360
5361 test -z "$SED" && SED=sed
5362 Xsed="$SED -e 1s/^X//"
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5375 $as_echo_n "checking for fgrep... " >&6; }
5376 if ${ac_cv_path_FGREP+:} false; then :
5377   $as_echo_n "(cached) " >&6
5378 else
5379   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5380    then ac_cv_path_FGREP="$GREP -F"
5381    else
5382      if test -z "$FGREP"; then
5383   ac_path_FGREP_found=false
5384   # Loop through the user's path and test for each of PROGNAME-LIST
5385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_prog in fgrep; do
5391     for ac_exec_ext in '' $ac_executable_extensions; do
5392       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5393       as_fn_executable_p "$ac_path_FGREP" || continue
5394 # Check for GNU ac_path_FGREP and select it if it is found.
5395   # Check for GNU $ac_path_FGREP
5396 case `"$ac_path_FGREP" --version 2>&1` in
5397 *GNU*)
5398   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5399 *)
5400   ac_count=0
5401   $as_echo_n 0123456789 >"conftest.in"
5402   while :
5403   do
5404     cat "conftest.in" "conftest.in" >"conftest.tmp"
5405     mv "conftest.tmp" "conftest.in"
5406     cp "conftest.in" "conftest.nl"
5407     $as_echo 'FGREP' >> "conftest.nl"
5408     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5409     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5410     as_fn_arith $ac_count + 1 && ac_count=$as_val
5411     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5412       # Best one so far, save it but keep looking for a better one
5413       ac_cv_path_FGREP="$ac_path_FGREP"
5414       ac_path_FGREP_max=$ac_count
5415     fi
5416     # 10*(2^10) chars as input seems more than enough
5417     test $ac_count -gt 10 && break
5418   done
5419   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5420 esac
5421
5422       $ac_path_FGREP_found && break 3
5423     done
5424   done
5425   done
5426 IFS=$as_save_IFS
5427   if test -z "$ac_cv_path_FGREP"; then
5428     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5429   fi
5430 else
5431   ac_cv_path_FGREP=$FGREP
5432 fi
5433
5434    fi
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5437 $as_echo "$ac_cv_path_FGREP" >&6; }
5438  FGREP="$ac_cv_path_FGREP"
5439
5440
5441 test -z "$GREP" && GREP=grep
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461 # Check whether --with-gnu-ld was given.
5462 if test "${with_gnu_ld+set}" = set; then :
5463   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5464 else
5465   with_gnu_ld=no
5466 fi
5467
5468 ac_prog=ld
5469 if test "$GCC" = yes; then
5470   # Check if gcc -print-prog-name=ld gives a path.
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5472 $as_echo_n "checking for ld used by $CC... " >&6; }
5473   case $host in
5474   *-*-mingw*)
5475     # gcc leaves a trailing carriage return which upsets mingw
5476     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5477   *)
5478     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5479   esac
5480   case $ac_prog in
5481     # Accept absolute paths.
5482     [\\/]* | ?:[\\/]*)
5483       re_direlt='/[^/][^/]*/\.\./'
5484       # Canonicalize the pathname of ld
5485       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5486       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5487         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5488       done
5489       test -z "$LD" && LD="$ac_prog"
5490       ;;
5491   "")
5492     # If it fails, then pretend we aren't using GCC.
5493     ac_prog=ld
5494     ;;
5495   *)
5496     # If it is relative, then search for the first ld in PATH.
5497     with_gnu_ld=unknown
5498     ;;
5499   esac
5500 elif test "$with_gnu_ld" = yes; then
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5502 $as_echo_n "checking for GNU ld... " >&6; }
5503 else
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5505 $as_echo_n "checking for non-GNU ld... " >&6; }
5506 fi
5507 if ${lt_cv_path_LD+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if test -z "$LD"; then
5511   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5512   for ac_dir in $PATH; do
5513     IFS="$lt_save_ifs"
5514     test -z "$ac_dir" && ac_dir=.
5515     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5516       lt_cv_path_LD="$ac_dir/$ac_prog"
5517       # Check to see if the program is GNU ld.  I'd rather use --version,
5518       # but apparently some variants of GNU ld only accept -v.
5519       # Break only if it was the GNU/non-GNU ld that we prefer.
5520       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5521       *GNU* | *'with BFD'*)
5522         test "$with_gnu_ld" != no && break
5523         ;;
5524       *)
5525         test "$with_gnu_ld" != yes && break
5526         ;;
5527       esac
5528     fi
5529   done
5530   IFS="$lt_save_ifs"
5531 else
5532   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5533 fi
5534 fi
5535
5536 LD="$lt_cv_path_LD"
5537 if test -n "$LD"; then
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5539 $as_echo "$LD" >&6; }
5540 else
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5546 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5547 if ${lt_cv_prog_gnu_ld+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5551 case `$LD -v 2>&1 </dev/null` in
5552 *GNU* | *'with BFD'*)
5553   lt_cv_prog_gnu_ld=yes
5554   ;;
5555 *)
5556   lt_cv_prog_gnu_ld=no
5557   ;;
5558 esac
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5561 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5562 with_gnu_ld=$lt_cv_prog_gnu_ld
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5573 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5574 if ${lt_cv_path_NM+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   if test -n "$NM"; then
5578   # Let the user override the test.
5579   lt_cv_path_NM="$NM"
5580 else
5581   lt_nm_to_check="${ac_tool_prefix}nm"
5582   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5583     lt_nm_to_check="$lt_nm_to_check nm"
5584   fi
5585   for lt_tmp_nm in $lt_nm_to_check; do
5586     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5587     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5588       IFS="$lt_save_ifs"
5589       test -z "$ac_dir" && ac_dir=.
5590       tmp_nm="$ac_dir/$lt_tmp_nm"
5591       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5592         # Check to see if the nm accepts a BSD-compat flag.
5593         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5594         #   nm: unknown option "B" ignored
5595         # Tru64's nm complains that /dev/null is an invalid object file
5596         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5597         */dev/null* | *'Invalid file or object type'*)
5598           lt_cv_path_NM="$tmp_nm -B"
5599           break
5600           ;;
5601         *)
5602           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5603           */dev/null*)
5604             lt_cv_path_NM="$tmp_nm -p"
5605             break
5606             ;;
5607           *)
5608             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5609             continue # so that we can try to find one that supports BSD flags
5610             ;;
5611           esac
5612           ;;
5613         esac
5614       fi
5615     done
5616     IFS="$lt_save_ifs"
5617   done
5618   : ${lt_cv_path_NM=no}
5619 fi
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5622 $as_echo "$lt_cv_path_NM" >&6; }
5623 if test "$lt_cv_path_NM" != "no"; then
5624   NM="$lt_cv_path_NM"
5625 else
5626   # Didn't find any BSD compatible name lister, look for dumpbin.
5627   if test -n "$DUMPBIN"; then :
5628     # Let the user override the test.
5629   else
5630     if test -n "$ac_tool_prefix"; then
5631   for ac_prog in dumpbin "link -dump"
5632   do
5633     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_DUMPBIN+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   if test -n "$DUMPBIN"; then
5641   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655   done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 DUMPBIN=$ac_cv_prog_DUMPBIN
5661 if test -n "$DUMPBIN"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5663 $as_echo "$DUMPBIN" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670     test -n "$DUMPBIN" && break
5671   done
5672 fi
5673 if test -z "$DUMPBIN"; then
5674   ac_ct_DUMPBIN=$DUMPBIN
5675   for ac_prog in dumpbin "link -dump"
5676 do
5677   # Extract the first word of "$ac_prog", so it can be a program name with args.
5678 set dummy $ac_prog; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5682   $as_echo_n "(cached) " >&6
5683 else
5684   if test -n "$ac_ct_DUMPBIN"; then
5685   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692     for ac_exec_ext in '' $ac_executable_extensions; do
5693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699   done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5705 if test -n "$ac_ct_DUMPBIN"; then
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5707 $as_echo "$ac_ct_DUMPBIN" >&6; }
5708 else
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713
5714   test -n "$ac_ct_DUMPBIN" && break
5715 done
5716
5717   if test "x$ac_ct_DUMPBIN" = x; then
5718     DUMPBIN=":"
5719   else
5720     case $cross_compiling:$ac_tool_warned in
5721 yes:)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726     DUMPBIN=$ac_ct_DUMPBIN
5727   fi
5728 fi
5729
5730     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5731     *COFF*)
5732       DUMPBIN="$DUMPBIN -symbols"
5733       ;;
5734     *)
5735       DUMPBIN=:
5736       ;;
5737     esac
5738   fi
5739
5740   if test "$DUMPBIN" != ":"; then
5741     NM="$DUMPBIN"
5742   fi
5743 fi
5744 test -z "$NM" && NM=nm
5745
5746
5747
5748
5749
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5752 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5753 if ${lt_cv_nm_interface+:} false; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   lt_cv_nm_interface="BSD nm"
5757   echo "int some_variable = 0;" > conftest.$ac_ext
5758   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5759   (eval "$ac_compile" 2>conftest.err)
5760   cat conftest.err >&5
5761   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5762   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5763   cat conftest.err >&5
5764   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5765   cat conftest.out >&5
5766   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5767     lt_cv_nm_interface="MS dumpbin"
5768   fi
5769   rm -f conftest*
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5772 $as_echo "$lt_cv_nm_interface" >&6; }
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5775 $as_echo_n "checking whether ln -s works... " >&6; }
5776 LN_S=$as_ln_s
5777 if test "$LN_S" = "ln -s"; then
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5779 $as_echo "yes" >&6; }
5780 else
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5782 $as_echo "no, using $LN_S" >&6; }
5783 fi
5784
5785 # find the maximum length of command line arguments
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5787 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5788 if ${lt_cv_sys_max_cmd_len+:} false; then :
5789   $as_echo_n "(cached) " >&6
5790 else
5791     i=0
5792   teststring="ABCD"
5793
5794   case $build_os in
5795   msdosdjgpp*)
5796     # On DJGPP, this test can blow up pretty badly due to problems in libc
5797     # (any single argument exceeding 2000 bytes causes a buffer overrun
5798     # during glob expansion).  Even if it were fixed, the result of this
5799     # check would be larger than it should be.
5800     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5801     ;;
5802
5803   gnu*)
5804     # Under GNU Hurd, this test is not required because there is
5805     # no limit to the length of command line arguments.
5806     # Libtool will interpret -1 as no limit whatsoever
5807     lt_cv_sys_max_cmd_len=-1;
5808     ;;
5809
5810   cygwin* | mingw* | cegcc*)
5811     # On Win9x/ME, this test blows up -- it succeeds, but takes
5812     # about 5 minutes as the teststring grows exponentially.
5813     # Worse, since 9x/ME are not pre-emptively multitasking,
5814     # you end up with a "frozen" computer, even though with patience
5815     # the test eventually succeeds (with a max line length of 256k).
5816     # Instead, let's just punt: use the minimum linelength reported by
5817     # all of the supported platforms: 8192 (on NT/2K/XP).
5818     lt_cv_sys_max_cmd_len=8192;
5819     ;;
5820
5821   mint*)
5822     # On MiNT this can take a long time and run out of memory.
5823     lt_cv_sys_max_cmd_len=8192;
5824     ;;
5825
5826   amigaos*)
5827     # On AmigaOS with pdksh, this test takes hours, literally.
5828     # So we just punt and use a minimum line length of 8192.
5829     lt_cv_sys_max_cmd_len=8192;
5830     ;;
5831
5832   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5833     # This has been around since 386BSD, at least.  Likely further.
5834     if test -x /sbin/sysctl; then
5835       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5836     elif test -x /usr/sbin/sysctl; then
5837       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5838     else
5839       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5840     fi
5841     # And add a safety zone
5842     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5843     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844     ;;
5845
5846   interix*)
5847     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5848     lt_cv_sys_max_cmd_len=196608
5849     ;;
5850
5851   os2*)
5852     # The test takes a long time on OS/2.
5853     lt_cv_sys_max_cmd_len=8192
5854     ;;
5855
5856   osf*)
5857     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5858     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5859     # nice to cause kernel panics so lets avoid the loop below.
5860     # First set a reasonable default.
5861     lt_cv_sys_max_cmd_len=16384
5862     #
5863     if test -x /sbin/sysconfig; then
5864       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5865         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5866       esac
5867     fi
5868     ;;
5869   sco3.2v5*)
5870     lt_cv_sys_max_cmd_len=102400
5871     ;;
5872   sysv5* | sco5v6* | sysv4.2uw2*)
5873     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5874     if test -n "$kargmax"; then
5875       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5876     else
5877       lt_cv_sys_max_cmd_len=32768
5878     fi
5879     ;;
5880   *)
5881     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5882     if test -n "$lt_cv_sys_max_cmd_len" && \
5883         test undefined != "$lt_cv_sys_max_cmd_len"; then
5884       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5885       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5886     else
5887       # Make teststring a little bigger before we do anything with it.
5888       # a 1K string should be a reasonable start.
5889       for i in 1 2 3 4 5 6 7 8 ; do
5890         teststring=$teststring$teststring
5891       done
5892       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5893       # If test is not a shell built-in, we'll probably end up computing a
5894       # maximum length that is only half of the actual maximum length, but
5895       # we can't tell.
5896       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5897                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5898               test $i != 17 # 1/2 MB should be enough
5899       do
5900         i=`expr $i + 1`
5901         teststring=$teststring$teststring
5902       done
5903       # Only check the string length outside the loop.
5904       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5905       teststring=
5906       # Add a significant safety factor because C++ compilers can tack on
5907       # massive amounts of additional arguments before passing them to the
5908       # linker.  It appears as though 1/2 is a usable value.
5909       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5910     fi
5911     ;;
5912   esac
5913
5914 fi
5915
5916 if test -n $lt_cv_sys_max_cmd_len ; then
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5918 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5919 else
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5921 $as_echo "none" >&6; }
5922 fi
5923 max_cmd_len=$lt_cv_sys_max_cmd_len
5924
5925
5926
5927
5928
5929
5930 : ${CP="cp -f"}
5931 : ${MV="mv -f"}
5932 : ${RM="rm -f"}
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5935 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5936 # Try some XSI features
5937 xsi_shell=no
5938 ( _lt_dummy="a/b/c"
5939   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5940       = c,a/b,b/c, \
5941     && eval 'test $(( 1 + 1 )) -eq 2 \
5942     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5943   && xsi_shell=yes
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5945 $as_echo "$xsi_shell" >&6; }
5946
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5949 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5950 lt_shell_append=no
5951 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5952     >/dev/null 2>&1 \
5953   && lt_shell_append=yes
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5955 $as_echo "$lt_shell_append" >&6; }
5956
5957
5958 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5959   lt_unset=unset
5960 else
5961   lt_unset=false
5962 fi
5963
5964
5965
5966
5967
5968 # test EBCDIC or ASCII
5969 case `echo X|tr X '\101'` in
5970  A) # ASCII based system
5971     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5972   lt_SP2NL='tr \040 \012'
5973   lt_NL2SP='tr \015\012 \040\040'
5974   ;;
5975  *) # EBCDIC based system
5976   lt_SP2NL='tr \100 \n'
5977   lt_NL2SP='tr \r\n \100\100'
5978   ;;
5979 esac
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5990 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5991 if ${lt_cv_to_host_file_cmd+:} false; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   case $host in
5995   *-*-mingw* )
5996     case $build in
5997       *-*-mingw* ) # actually msys
5998         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5999         ;;
6000       *-*-cygwin* )
6001         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6002         ;;
6003       * ) # otherwise, assume *nix
6004         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6005         ;;
6006     esac
6007     ;;
6008   *-*-cygwin* )
6009     case $build in
6010       *-*-mingw* ) # actually msys
6011         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6012         ;;
6013       *-*-cygwin* )
6014         lt_cv_to_host_file_cmd=func_convert_file_noop
6015         ;;
6016       * ) # otherwise, assume *nix
6017         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6018         ;;
6019     esac
6020     ;;
6021   * ) # unhandled hosts (and "normal" native builds)
6022     lt_cv_to_host_file_cmd=func_convert_file_noop
6023     ;;
6024 esac
6025
6026 fi
6027
6028 to_host_file_cmd=$lt_cv_to_host_file_cmd
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6030 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6031
6032
6033
6034
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6037 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6038 if ${lt_cv_to_tool_file_cmd+:} false; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   #assume ordinary cross tools, or native build.
6042 lt_cv_to_tool_file_cmd=func_convert_file_noop
6043 case $host in
6044   *-*-mingw* )
6045     case $build in
6046       *-*-mingw* ) # actually msys
6047         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6048         ;;
6049     esac
6050     ;;
6051 esac
6052
6053 fi
6054
6055 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6057 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6058
6059
6060
6061
6062
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6064 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6065 if ${lt_cv_ld_reload_flag+:} false; then :
6066   $as_echo_n "(cached) " >&6
6067 else
6068   lt_cv_ld_reload_flag='-r'
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6071 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6072 reload_flag=$lt_cv_ld_reload_flag
6073 case $reload_flag in
6074 "" | " "*) ;;
6075 *) reload_flag=" $reload_flag" ;;
6076 esac
6077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6078 case $host_os in
6079   cygwin* | mingw* | pw32* | cegcc*)
6080     if test "$GCC" != yes; then
6081       reload_cmds=false
6082     fi
6083     ;;
6084   darwin*)
6085     if test "$GCC" = yes; then
6086       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6087     else
6088       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6089     fi
6090     ;;
6091 esac
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 if test -n "$ac_tool_prefix"; then
6102   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_OBJDUMP+:} false; then :
6107   $as_echo_n "(cached) " >&6
6108 else
6109   if test -n "$OBJDUMP"; then
6110   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124   done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 OBJDUMP=$ac_cv_prog_OBJDUMP
6130 if test -n "$OBJDUMP"; then
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6132 $as_echo "$OBJDUMP" >&6; }
6133 else
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138
6139 fi
6140 if test -z "$ac_cv_prog_OBJDUMP"; then
6141   ac_ct_OBJDUMP=$OBJDUMP
6142   # Extract the first word of "objdump", so it can be a program name with args.
6143 set dummy objdump; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6147   $as_echo_n "(cached) " >&6
6148 else
6149   if test -n "$ac_ct_OBJDUMP"; then
6150   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157     for ac_exec_ext in '' $ac_executable_extensions; do
6158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164   done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6170 if test -n "$ac_ct_OBJDUMP"; then
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6172 $as_echo "$ac_ct_OBJDUMP" >&6; }
6173 else
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178   if test "x$ac_ct_OBJDUMP" = x; then
6179     OBJDUMP="false"
6180   else
6181     case $cross_compiling:$ac_tool_warned in
6182 yes:)
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6186 esac
6187     OBJDUMP=$ac_ct_OBJDUMP
6188   fi
6189 else
6190   OBJDUMP="$ac_cv_prog_OBJDUMP"
6191 fi
6192
6193 test -z "$OBJDUMP" && OBJDUMP=objdump
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6204 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6205 if ${lt_cv_deplibs_check_method+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   lt_cv_file_magic_cmd='$MAGIC_CMD'
6209 lt_cv_file_magic_test_file=
6210 lt_cv_deplibs_check_method='unknown'
6211 # Need to set the preceding variable on all platforms that support
6212 # interlibrary dependencies.
6213 # 'none' -- dependencies not supported.
6214 # `unknown' -- same as none, but documents that we really don't know.
6215 # 'pass_all' -- all dependencies passed with no checks.
6216 # 'test_compile' -- check by making test program.
6217 # 'file_magic [[regex]]' -- check by looking for files in library path
6218 # which responds to the $file_magic_cmd with a given extended regex.
6219 # If you have `file' or equivalent on your system and you're not sure
6220 # whether `pass_all' will *always* work, you probably want this one.
6221
6222 case $host_os in
6223 aix[4-9]*)
6224   lt_cv_deplibs_check_method=pass_all
6225   ;;
6226
6227 beos*)
6228   lt_cv_deplibs_check_method=pass_all
6229   ;;
6230
6231 bsdi[45]*)
6232   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6233   lt_cv_file_magic_cmd='/usr/bin/file -L'
6234   lt_cv_file_magic_test_file=/shlib/libc.so
6235   ;;
6236
6237 cygwin*)
6238   # func_win32_libid is a shell function defined in ltmain.sh
6239   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6240   lt_cv_file_magic_cmd='func_win32_libid'
6241   ;;
6242
6243 mingw* | pw32*)
6244   # Base MSYS/MinGW do not provide the 'file' command needed by
6245   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6246   # unless we find 'file', for example because we are cross-compiling.
6247   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6248   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6249     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6250     lt_cv_file_magic_cmd='func_win32_libid'
6251   else
6252     # Keep this pattern in sync with the one in func_win32_libid.
6253     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6254     lt_cv_file_magic_cmd='$OBJDUMP -f'
6255   fi
6256   ;;
6257
6258 cegcc*)
6259   # use the weaker test based on 'objdump'. See mingw*.
6260   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6261   lt_cv_file_magic_cmd='$OBJDUMP -f'
6262   ;;
6263
6264 darwin* | rhapsody*)
6265   lt_cv_deplibs_check_method=pass_all
6266   ;;
6267
6268 freebsd* | dragonfly*)
6269   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6270     case $host_cpu in
6271     i*86 )
6272       # Not sure whether the presence of OpenBSD here was a mistake.
6273       # Let's accept both of them until this is cleared up.
6274       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6275       lt_cv_file_magic_cmd=/usr/bin/file
6276       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6277       ;;
6278     esac
6279   else
6280     lt_cv_deplibs_check_method=pass_all
6281   fi
6282   ;;
6283
6284 haiku*)
6285   lt_cv_deplibs_check_method=pass_all
6286   ;;
6287
6288 hpux10.20* | hpux11*)
6289   lt_cv_file_magic_cmd=/usr/bin/file
6290   case $host_cpu in
6291   ia64*)
6292     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6293     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6294     ;;
6295   hppa*64*)
6296     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6297     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6298     ;;
6299   *)
6300     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6301     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6302     ;;
6303   esac
6304   ;;
6305
6306 interix[3-9]*)
6307   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6308   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6309   ;;
6310
6311 irix5* | irix6* | nonstopux*)
6312   case $LD in
6313   *-32|*"-32 ") libmagic=32-bit;;
6314   *-n32|*"-n32 ") libmagic=N32;;
6315   *-64|*"-64 ") libmagic=64-bit;;
6316   *) libmagic=never-match;;
6317   esac
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 # This must be glibc/ELF.
6322 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6323   lt_cv_deplibs_check_method=pass_all
6324   ;;
6325
6326 netbsd* | netbsdelf*-gnu)
6327   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6328     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6329   else
6330     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6331   fi
6332   ;;
6333
6334 newos6*)
6335   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6336   lt_cv_file_magic_cmd=/usr/bin/file
6337   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6338   ;;
6339
6340 *nto* | *qnx*)
6341   lt_cv_deplibs_check_method=pass_all
6342   ;;
6343
6344 openbsd*)
6345   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6346     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6347   else
6348     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6349   fi
6350   ;;
6351
6352 osf3* | osf4* | osf5*)
6353   lt_cv_deplibs_check_method=pass_all
6354   ;;
6355
6356 rdos*)
6357   lt_cv_deplibs_check_method=pass_all
6358   ;;
6359
6360 solaris*)
6361   lt_cv_deplibs_check_method=pass_all
6362   ;;
6363
6364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6365   lt_cv_deplibs_check_method=pass_all
6366   ;;
6367
6368 sysv4 | sysv4.3*)
6369   case $host_vendor in
6370   motorola)
6371     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6372     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6373     ;;
6374   ncr)
6375     lt_cv_deplibs_check_method=pass_all
6376     ;;
6377   sequent)
6378     lt_cv_file_magic_cmd='/bin/file'
6379     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6380     ;;
6381   sni)
6382     lt_cv_file_magic_cmd='/bin/file'
6383     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6384     lt_cv_file_magic_test_file=/lib/libc.so
6385     ;;
6386   siemens)
6387     lt_cv_deplibs_check_method=pass_all
6388     ;;
6389   pc)
6390     lt_cv_deplibs_check_method=pass_all
6391     ;;
6392   esac
6393   ;;
6394
6395 tpf*)
6396   lt_cv_deplibs_check_method=pass_all
6397   ;;
6398 esac
6399
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6402 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6403
6404 file_magic_glob=
6405 want_nocaseglob=no
6406 if test "$build" = "$host"; then
6407   case $host_os in
6408   mingw* | pw32*)
6409     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6410       want_nocaseglob=yes
6411     else
6412       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6413     fi
6414     ;;
6415   esac
6416 fi
6417
6418 file_magic_cmd=$lt_cv_file_magic_cmd
6419 deplibs_check_method=$lt_cv_deplibs_check_method
6420 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 if test -n "$ac_tool_prefix"; then
6444   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_DLLTOOL+:} false; then :
6449   $as_echo_n "(cached) " >&6
6450 else
6451   if test -n "$DLLTOOL"; then
6452   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459     for ac_exec_ext in '' $ac_executable_extensions; do
6460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466   done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 DLLTOOL=$ac_cv_prog_DLLTOOL
6472 if test -n "$DLLTOOL"; then
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6474 $as_echo "$DLLTOOL" >&6; }
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480
6481 fi
6482 if test -z "$ac_cv_prog_DLLTOOL"; then
6483   ac_ct_DLLTOOL=$DLLTOOL
6484   # Extract the first word of "dlltool", so it can be a program name with args.
6485 set dummy dlltool; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   if test -n "$ac_ct_DLLTOOL"; then
6492   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6512 if test -n "$ac_ct_DLLTOOL"; then
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6514 $as_echo "$ac_ct_DLLTOOL" >&6; }
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520   if test "x$ac_ct_DLLTOOL" = x; then
6521     DLLTOOL="false"
6522   else
6523     case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529     DLLTOOL=$ac_ct_DLLTOOL
6530   fi
6531 else
6532   DLLTOOL="$ac_cv_prog_DLLTOOL"
6533 fi
6534
6535 test -z "$DLLTOOL" && DLLTOOL=dlltool
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6547 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6548 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6549   $as_echo_n "(cached) " >&6
6550 else
6551   lt_cv_sharedlib_from_linklib_cmd='unknown'
6552
6553 case $host_os in
6554 cygwin* | mingw* | pw32* | cegcc*)
6555   # two different shell functions defined in ltmain.sh
6556   # decide which to use based on capabilities of $DLLTOOL
6557   case `$DLLTOOL --help 2>&1` in
6558   *--identify-strict*)
6559     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6560     ;;
6561   *)
6562     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6563     ;;
6564   esac
6565   ;;
6566 *)
6567   # fallback: assume linklib IS sharedlib
6568   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6569   ;;
6570 esac
6571
6572 fi
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6574 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6575 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6576 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6577
6578
6579
6580
6581
6582
6583
6584 if test -n "$ac_tool_prefix"; then
6585   for ac_prog in ar
6586   do
6587     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_AR+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$AR"; then
6595   ac_cv_prog_AR="$AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602     for ac_exec_ext in '' $ac_executable_extensions; do
6603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609   done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 AR=$ac_cv_prog_AR
6615 if test -n "$AR"; then
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6617 $as_echo "$AR" >&6; }
6618 else
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624     test -n "$AR" && break
6625   done
6626 fi
6627 if test -z "$AR"; then
6628   ac_ct_AR=$AR
6629   for ac_prog in ar
6630 do
6631   # Extract the first word of "$ac_prog", so it can be a program name with args.
6632 set dummy $ac_prog; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test -n "$ac_ct_AR"; then
6639   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646     for ac_exec_ext in '' $ac_executable_extensions; do
6647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648     ac_cv_prog_ac_ct_AR="$ac_prog"
6649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653   done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6659 if test -n "$ac_ct_AR"; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6661 $as_echo "$ac_ct_AR" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667
6668   test -n "$ac_ct_AR" && break
6669 done
6670
6671   if test "x$ac_ct_AR" = x; then
6672     AR="false"
6673   else
6674     case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680     AR=$ac_ct_AR
6681   fi
6682 fi
6683
6684 : ${AR=ar}
6685 : ${AR_FLAGS=cru}
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6698 $as_echo_n "checking for archiver @FILE support... " >&6; }
6699 if ${lt_cv_ar_at_file+:} false; then :
6700   $as_echo_n "(cached) " >&6
6701 else
6702   lt_cv_ar_at_file=no
6703    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705
6706 int
6707 main ()
6708 {
6709
6710   ;
6711   return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715   echo conftest.$ac_objext > conftest.lst
6716       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6717       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6718   (eval $lt_ar_try) 2>&5
6719   ac_status=$?
6720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721   test $ac_status = 0; }
6722       if test "$ac_status" -eq 0; then
6723         # Ensure the archiver fails upon bogus file names.
6724         rm -f conftest.$ac_objext libconftest.a
6725         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6726   (eval $lt_ar_try) 2>&5
6727   ac_status=$?
6728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729   test $ac_status = 0; }
6730         if test "$ac_status" -ne 0; then
6731           lt_cv_ar_at_file=@
6732         fi
6733       fi
6734       rm -f conftest.* libconftest.a
6735
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6741 $as_echo "$lt_cv_ar_at_file" >&6; }
6742
6743 if test "x$lt_cv_ar_at_file" = xno; then
6744   archiver_list_spec=
6745 else
6746   archiver_list_spec=$lt_cv_ar_at_file
6747 fi
6748
6749
6750
6751
6752
6753
6754
6755 if test -n "$ac_tool_prefix"; then
6756   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}strip; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_STRIP+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$STRIP"; then
6764   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 STRIP=$ac_cv_prog_STRIP
6784 if test -n "$STRIP"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6786 $as_echo "$STRIP" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792
6793 fi
6794 if test -z "$ac_cv_prog_STRIP"; then
6795   ac_ct_STRIP=$STRIP
6796   # Extract the first word of "strip", so it can be a program name with args.
6797 set dummy strip; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   if test -n "$ac_ct_STRIP"; then
6804   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811     for ac_exec_ext in '' $ac_executable_extensions; do
6812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813     ac_cv_prog_ac_ct_STRIP="strip"
6814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818   done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6824 if test -n "$ac_ct_STRIP"; then
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6826 $as_echo "$ac_ct_STRIP" >&6; }
6827 else
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832   if test "x$ac_ct_STRIP" = x; then
6833     STRIP=":"
6834   else
6835     case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839 ac_tool_warned=yes ;;
6840 esac
6841     STRIP=$ac_ct_STRIP
6842   fi
6843 else
6844   STRIP="$ac_cv_prog_STRIP"
6845 fi
6846
6847 test -z "$STRIP" && STRIP=:
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_RANLIB+:} false; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   if test -n "$RANLIB"; then
6863   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870     for ac_exec_ext in '' $ac_executable_extensions; do
6871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877   done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 RANLIB=$ac_cv_prog_RANLIB
6883 if test -n "$RANLIB"; then
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6885 $as_echo "$RANLIB" >&6; }
6886 else
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891
6892 fi
6893 if test -z "$ac_cv_prog_RANLIB"; then
6894   ac_ct_RANLIB=$RANLIB
6895   # Extract the first word of "ranlib", so it can be a program name with args.
6896 set dummy ranlib; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   if test -n "$ac_ct_RANLIB"; then
6903   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908   IFS=$as_save_IFS
6909   test -z "$as_dir" && as_dir=.
6910     for ac_exec_ext in '' $ac_executable_extensions; do
6911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912     ac_cv_prog_ac_ct_RANLIB="ranlib"
6913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914     break 2
6915   fi
6916 done
6917   done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923 if test -n "$ac_ct_RANLIB"; then
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6925 $as_echo "$ac_ct_RANLIB" >&6; }
6926 else
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931   if test "x$ac_ct_RANLIB" = x; then
6932     RANLIB=":"
6933   else
6934     case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940     RANLIB=$ac_ct_RANLIB
6941   fi
6942 else
6943   RANLIB="$ac_cv_prog_RANLIB"
6944 fi
6945
6946 test -z "$RANLIB" && RANLIB=:
6947
6948
6949
6950
6951
6952
6953 # Determine commands to create old-style static archives.
6954 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6955 old_postinstall_cmds='chmod 644 $oldlib'
6956 old_postuninstall_cmds=
6957
6958 if test -n "$RANLIB"; then
6959   case $host_os in
6960   openbsd*)
6961     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6962     ;;
6963   *)
6964     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6965     ;;
6966   esac
6967   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6968 fi
6969
6970 case $host_os in
6971   darwin*)
6972     lock_old_archive_extraction=yes ;;
6973   *)
6974     lock_old_archive_extraction=no ;;
6975 esac
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 # If no C compiler was specified, use CC.
7016 LTCC=${LTCC-"$CC"}
7017
7018 # If no C compiler flags were specified, use CFLAGS.
7019 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7020
7021 # Allow CC to be a program name with arguments.
7022 compiler=$CC
7023
7024
7025 # Check for command to grab the raw symbol name followed by C symbol from nm.
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7027 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7028 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031
7032 # These are sane defaults that work on at least a few old systems.
7033 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7034
7035 # Character class describing NM global symbol codes.
7036 symcode='[BCDEGRST]'
7037
7038 # Regexp to match symbols that can be accessed directly from C.
7039 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7040
7041 # Define system-specific variables.
7042 case $host_os in
7043 aix*)
7044   symcode='[BCDT]'
7045   ;;
7046 cygwin* | mingw* | pw32* | cegcc*)
7047   symcode='[ABCDGISTW]'
7048   ;;
7049 hpux*)
7050   if test "$host_cpu" = ia64; then
7051     symcode='[ABCDEGRST]'
7052   fi
7053   ;;
7054 irix* | nonstopux*)
7055   symcode='[BCDEGRST]'
7056   ;;
7057 osf*)
7058   symcode='[BCDEGQRST]'
7059   ;;
7060 solaris*)
7061   symcode='[BDRT]'
7062   ;;
7063 sco3.2v5*)
7064   symcode='[DT]'
7065   ;;
7066 sysv4.2uw2*)
7067   symcode='[DT]'
7068   ;;
7069 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7070   symcode='[ABDT]'
7071   ;;
7072 sysv4)
7073   symcode='[DFNSTU]'
7074   ;;
7075 esac
7076
7077 # If we're using GNU nm, then use its standard symbol codes.
7078 case `$NM -V 2>&1` in
7079 *GNU* | *'with BFD'*)
7080   symcode='[ABCDGIRSTW]' ;;
7081 esac
7082
7083 # Transform an extracted symbol line into a proper C declaration.
7084 # Some systems (esp. on ia64) link data and code symbols differently,
7085 # so use this general approach.
7086 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7087
7088 # Transform an extracted symbol line into symbol name and symbol address
7089 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7091
7092 # Handle CRLF in mingw tool chain
7093 opt_cr=
7094 case $build_os in
7095 mingw*)
7096   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7097   ;;
7098 esac
7099
7100 # Try without a prefix underscore, then with it.
7101 for ac_symprfx in "" "_"; do
7102
7103   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7104   symxfrm="\\1 $ac_symprfx\\2 \\2"
7105
7106   # Write the raw and C identifiers.
7107   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7108     # Fake it for dumpbin and say T for any non-static function
7109     # and D for any global variable.
7110     # Also find C++ and __fastcall symbols from MSVC++,
7111     # which start with @ or ?.
7112     lt_cv_sys_global_symbol_pipe="$AWK '"\
7113 "     {last_section=section; section=\$ 3};"\
7114 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7115 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7116 "     \$ 0!~/External *\|/{next};"\
7117 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7118 "     {if(hide[section]) next};"\
7119 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7120 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7121 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7122 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7123 "     ' prfx=^$ac_symprfx"
7124   else
7125     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7126   fi
7127   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7128
7129   # Check to see that the pipe works correctly.
7130   pipe_works=no
7131
7132   rm -f conftest*
7133   cat > conftest.$ac_ext <<_LT_EOF
7134 #ifdef __cplusplus
7135 extern "C" {
7136 #endif
7137 char nm_test_var;
7138 void nm_test_func(void);
7139 void nm_test_func(void){}
7140 #ifdef __cplusplus
7141 }
7142 #endif
7143 int main(){nm_test_var='a';nm_test_func();return(0);}
7144 _LT_EOF
7145
7146   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147   (eval $ac_compile) 2>&5
7148   ac_status=$?
7149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150   test $ac_status = 0; }; then
7151     # Now try to grab the symbols.
7152     nlist=conftest.nm
7153     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7154   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7155   ac_status=$?
7156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157   test $ac_status = 0; } && test -s "$nlist"; then
7158       # Try sorting and uniquifying the output.
7159       if sort "$nlist" | uniq > "$nlist"T; then
7160         mv -f "$nlist"T "$nlist"
7161       else
7162         rm -f "$nlist"T
7163       fi
7164
7165       # Make sure that we snagged all the symbols we need.
7166       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7167         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7168           cat <<_LT_EOF > conftest.$ac_ext
7169 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7170 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7171 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7172    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7173 # define LT_DLSYM_CONST
7174 #elif defined(__osf__)
7175 /* This system does not cope well with relocations in const data.  */
7176 # define LT_DLSYM_CONST
7177 #else
7178 # define LT_DLSYM_CONST const
7179 #endif
7180
7181 #ifdef __cplusplus
7182 extern "C" {
7183 #endif
7184
7185 _LT_EOF
7186           # Now generate the symbol file.
7187           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7188
7189           cat <<_LT_EOF >> conftest.$ac_ext
7190
7191 /* The mapping between symbol names and symbols.  */
7192 LT_DLSYM_CONST struct {
7193   const char *name;
7194   void       *address;
7195 }
7196 lt__PROGRAM__LTX_preloaded_symbols[] =
7197 {
7198   { "@PROGRAM@", (void *) 0 },
7199 _LT_EOF
7200           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7201           cat <<\_LT_EOF >> conftest.$ac_ext
7202   {0, (void *) 0}
7203 };
7204
7205 /* This works around a problem in FreeBSD linker */
7206 #ifdef FREEBSD_WORKAROUND
7207 static const void *lt_preloaded_setup() {
7208   return lt__PROGRAM__LTX_preloaded_symbols;
7209 }
7210 #endif
7211
7212 #ifdef __cplusplus
7213 }
7214 #endif
7215 _LT_EOF
7216           # Now try linking the two files.
7217           mv conftest.$ac_objext conftstm.$ac_objext
7218           lt_globsym_save_LIBS=$LIBS
7219           lt_globsym_save_CFLAGS=$CFLAGS
7220           LIBS="conftstm.$ac_objext"
7221           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7222           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7223   (eval $ac_link) 2>&5
7224   ac_status=$?
7225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7227             pipe_works=yes
7228           fi
7229           LIBS=$lt_globsym_save_LIBS
7230           CFLAGS=$lt_globsym_save_CFLAGS
7231         else
7232           echo "cannot find nm_test_func in $nlist" >&5
7233         fi
7234       else
7235         echo "cannot find nm_test_var in $nlist" >&5
7236       fi
7237     else
7238       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7239     fi
7240   else
7241     echo "$progname: failed program was:" >&5
7242     cat conftest.$ac_ext >&5
7243   fi
7244   rm -rf conftest* conftst*
7245
7246   # Do not use the global_symbol_pipe unless it works.
7247   if test "$pipe_works" = yes; then
7248     break
7249   else
7250     lt_cv_sys_global_symbol_pipe=
7251   fi
7252 done
7253
7254 fi
7255
7256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7257   lt_cv_sys_global_symbol_to_cdecl=
7258 fi
7259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7261 $as_echo "failed" >&6; }
7262 else
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7264 $as_echo "ok" >&6; }
7265 fi
7266
7267 # Response file support.
7268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7269   nm_file_list_spec='@'
7270 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7271   nm_file_list_spec='@'
7272 fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7301 $as_echo_n "checking for sysroot... " >&6; }
7302
7303 # Check whether --with-sysroot was given.
7304 if test "${with_sysroot+set}" = set; then :
7305   withval=$with_sysroot;
7306 else
7307   with_sysroot=no
7308 fi
7309
7310
7311 lt_sysroot=
7312 case ${with_sysroot} in #(
7313  yes)
7314    if test "$GCC" = yes; then
7315      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7316    fi
7317    ;; #(
7318  /*)
7319    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7320    ;; #(
7321  no|'')
7322    ;; #(
7323  *)
7324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7325 $as_echo "${with_sysroot}" >&6; }
7326    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7327    ;;
7328 esac
7329
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7331 $as_echo "${lt_sysroot:-no}" >&6; }
7332
7333
7334
7335
7336
7337 # Check whether --enable-libtool-lock was given.
7338 if test "${enable_libtool_lock+set}" = set; then :
7339   enableval=$enable_libtool_lock;
7340 fi
7341
7342 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7343
7344 # Some flags need to be propagated to the compiler or linker for good
7345 # libtool support.
7346 case $host in
7347 ia64-*-hpux*)
7348   # Find out which ABI we are using.
7349   echo 'int i;' > conftest.$ac_ext
7350   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7351   (eval $ac_compile) 2>&5
7352   ac_status=$?
7353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354   test $ac_status = 0; }; then
7355     case `/usr/bin/file conftest.$ac_objext` in
7356       *ELF-32*)
7357         HPUX_IA64_MODE="32"
7358         ;;
7359       *ELF-64*)
7360         HPUX_IA64_MODE="64"
7361         ;;
7362     esac
7363   fi
7364   rm -rf conftest*
7365   ;;
7366 *-*-irix6*)
7367   # Find out which ABI we are using.
7368   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7369   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7370   (eval $ac_compile) 2>&5
7371   ac_status=$?
7372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373   test $ac_status = 0; }; then
7374     if test "$lt_cv_prog_gnu_ld" = yes; then
7375       case `/usr/bin/file conftest.$ac_objext` in
7376         *32-bit*)
7377           LD="${LD-ld} -melf32bsmip"
7378           ;;
7379         *N32*)
7380           LD="${LD-ld} -melf32bmipn32"
7381           ;;
7382         *64-bit*)
7383           LD="${LD-ld} -melf64bmip"
7384         ;;
7385       esac
7386     else
7387       case `/usr/bin/file conftest.$ac_objext` in
7388         *32-bit*)
7389           LD="${LD-ld} -32"
7390           ;;
7391         *N32*)
7392           LD="${LD-ld} -n32"
7393           ;;
7394         *64-bit*)
7395           LD="${LD-ld} -64"
7396           ;;
7397       esac
7398     fi
7399   fi
7400   rm -rf conftest*
7401   ;;
7402
7403 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7404 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7405   # Find out which ABI we are using.
7406   echo 'int i;' > conftest.$ac_ext
7407   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408   (eval $ac_compile) 2>&5
7409   ac_status=$?
7410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411   test $ac_status = 0; }; then
7412     case `/usr/bin/file conftest.o` in
7413       *32-bit*)
7414         case $host in
7415           x86_64-*kfreebsd*-gnu)
7416             LD="${LD-ld} -m elf_i386_fbsd"
7417             ;;
7418           x86_64-*linux*)
7419             case `/usr/bin/file conftest.o` in
7420               *x86-64*)
7421                 LD="${LD-ld} -m elf32_x86_64"
7422                 ;;
7423               *)
7424                 LD="${LD-ld} -m elf_i386"
7425                 ;;
7426             esac
7427             ;;
7428           ppc64-*linux*|powerpc64-*linux*)
7429             LD="${LD-ld} -m elf32ppclinux"
7430             ;;
7431           s390x-*linux*)
7432             LD="${LD-ld} -m elf_s390"
7433             ;;
7434           sparc64-*linux*)
7435             LD="${LD-ld} -m elf32_sparc"
7436             ;;
7437         esac
7438         ;;
7439       *64-bit*)
7440         case $host in
7441           x86_64-*kfreebsd*-gnu)
7442             LD="${LD-ld} -m elf_x86_64_fbsd"
7443             ;;
7444           x86_64-*linux*)
7445             LD="${LD-ld} -m elf_x86_64"
7446             ;;
7447           ppc*-*linux*|powerpc*-*linux*)
7448             LD="${LD-ld} -m elf64ppc"
7449             ;;
7450           s390*-*linux*|s390*-*tpf*)
7451             LD="${LD-ld} -m elf64_s390"
7452             ;;
7453           sparc*-*linux*)
7454             LD="${LD-ld} -m elf64_sparc"
7455             ;;
7456         esac
7457         ;;
7458     esac
7459   fi
7460   rm -rf conftest*
7461   ;;
7462
7463 *-*-sco3.2v5*)
7464   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465   SAVE_CFLAGS="$CFLAGS"
7466   CFLAGS="$CFLAGS -belf"
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7468 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7469 if ${lt_cv_cc_needs_belf+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h.  */
7480
7481 int
7482 main ()
7483 {
7484
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 if ac_fn_c_try_link "$LINENO"; then :
7490   lt_cv_cc_needs_belf=yes
7491 else
7492   lt_cv_cc_needs_belf=no
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext \
7495     conftest$ac_exeext conftest.$ac_ext
7496      ac_ext=c
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7504 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7505   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7506     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7507     CFLAGS="$SAVE_CFLAGS"
7508   fi
7509   ;;
7510 *-*solaris*)
7511   # Find out which ABI we are using.
7512   echo 'int i;' > conftest.$ac_ext
7513   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514   (eval $ac_compile) 2>&5
7515   ac_status=$?
7516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517   test $ac_status = 0; }; then
7518     case `/usr/bin/file conftest.o` in
7519     *64-bit*)
7520       case $lt_cv_prog_gnu_ld in
7521       yes*)
7522         case $host in
7523         i?86-*-solaris*)
7524           LD="${LD-ld} -m elf_x86_64"
7525           ;;
7526         sparc*-*-solaris*)
7527           LD="${LD-ld} -m elf64_sparc"
7528           ;;
7529         esac
7530         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7531         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7532           LD="${LD-ld}_sol2"
7533         fi
7534         ;;
7535       *)
7536         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7537           LD="${LD-ld} -64"
7538         fi
7539         ;;
7540       esac
7541       ;;
7542     esac
7543   fi
7544   rm -rf conftest*
7545   ;;
7546 esac
7547
7548 need_locks="$enable_libtool_lock"
7549
7550 if test -n "$ac_tool_prefix"; then
7551   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}mt; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   if test -n "$MANIFEST_TOOL"; then
7559   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_exec_ext in '' $ac_executable_extensions; do
7567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573   done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7579 if test -n "$MANIFEST_TOOL"; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7581 $as_echo "$MANIFEST_TOOL" >&6; }
7582 else
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585 fi
7586
7587
7588 fi
7589 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7590   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7591   # Extract the first word of "mt", so it can be a program name with args.
7592 set dummy mt; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test -n "$ac_ct_MANIFEST_TOOL"; then
7599   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606     for ac_exec_ext in '' $ac_executable_extensions; do
7607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613   done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7619 if test -n "$ac_ct_MANIFEST_TOOL"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7621 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7628     MANIFEST_TOOL=":"
7629   else
7630     case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7637   fi
7638 else
7639   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7640 fi
7641
7642 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7644 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7645 if ${lt_cv_path_mainfest_tool+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   lt_cv_path_mainfest_tool=no
7649   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7650   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7651   cat conftest.err >&5
7652   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7653     lt_cv_path_mainfest_tool=yes
7654   fi
7655   rm -f conftest*
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7658 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7659 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7660   MANIFEST_TOOL=:
7661 fi
7662
7663
7664
7665
7666
7667
7668   case $host_os in
7669     rhapsody* | darwin*)
7670     if test -n "$ac_tool_prefix"; then
7671   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7672 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678   if test -n "$DSYMUTIL"; then
7679   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686     for ac_exec_ext in '' $ac_executable_extensions; do
7687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693   done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7699 if test -n "$DSYMUTIL"; then
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7701 $as_echo "$DSYMUTIL" >&6; }
7702 else
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7705 fi
7706
7707
7708 fi
7709 if test -z "$ac_cv_prog_DSYMUTIL"; then
7710   ac_ct_DSYMUTIL=$DSYMUTIL
7711   # Extract the first word of "dsymutil", so it can be a program name with args.
7712 set dummy dsymutil; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   if test -n "$ac_ct_DSYMUTIL"; then
7719   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724   IFS=$as_save_IFS
7725   test -z "$as_dir" && as_dir=.
7726     for ac_exec_ext in '' $ac_executable_extensions; do
7727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730     break 2
7731   fi
7732 done
7733   done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7739 if test -n "$ac_ct_DSYMUTIL"; then
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7741 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7742 else
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747   if test "x$ac_ct_DSYMUTIL" = x; then
7748     DSYMUTIL=":"
7749   else
7750     case $cross_compiling:$ac_tool_warned in
7751 yes:)
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7754 ac_tool_warned=yes ;;
7755 esac
7756     DSYMUTIL=$ac_ct_DSYMUTIL
7757   fi
7758 else
7759   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7760 fi
7761
7762     if test -n "$ac_tool_prefix"; then
7763   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7764 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_NMEDIT+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   if test -n "$NMEDIT"; then
7771   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 NMEDIT=$ac_cv_prog_NMEDIT
7791 if test -n "$NMEDIT"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7793 $as_echo "$NMEDIT" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800 fi
7801 if test -z "$ac_cv_prog_NMEDIT"; then
7802   ac_ct_NMEDIT=$NMEDIT
7803   # Extract the first word of "nmedit", so it can be a program name with args.
7804 set dummy nmedit; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   if test -n "$ac_ct_NMEDIT"; then
7811   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818     for ac_exec_ext in '' $ac_executable_extensions; do
7819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825   done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7831 if test -n "$ac_ct_NMEDIT"; then
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7833 $as_echo "$ac_ct_NMEDIT" >&6; }
7834 else
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839   if test "x$ac_ct_NMEDIT" = x; then
7840     NMEDIT=":"
7841   else
7842     case $cross_compiling:$ac_tool_warned in
7843 yes:)
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7846 ac_tool_warned=yes ;;
7847 esac
7848     NMEDIT=$ac_ct_NMEDIT
7849   fi
7850 else
7851   NMEDIT="$ac_cv_prog_NMEDIT"
7852 fi
7853
7854     if test -n "$ac_tool_prefix"; then
7855   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7856 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if ${ac_cv_prog_LIPO+:} false; then :
7860   $as_echo_n "(cached) " >&6
7861 else
7862   if test -n "$LIPO"; then
7863   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868   IFS=$as_save_IFS
7869   test -z "$as_dir" && as_dir=.
7870     for ac_exec_ext in '' $ac_executable_extensions; do
7871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874     break 2
7875   fi
7876 done
7877   done
7878 IFS=$as_save_IFS
7879
7880 fi
7881 fi
7882 LIPO=$ac_cv_prog_LIPO
7883 if test -n "$LIPO"; then
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7885 $as_echo "$LIPO" >&6; }
7886 else
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890
7891
7892 fi
7893 if test -z "$ac_cv_prog_LIPO"; then
7894   ac_ct_LIPO=$LIPO
7895   # Extract the first word of "lipo", so it can be a program name with args.
7896 set dummy lipo; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   if test -n "$ac_ct_LIPO"; then
7903   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912     ac_cv_prog_ac_ct_LIPO="lipo"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7923 if test -n "$ac_ct_LIPO"; then
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7925 $as_echo "$ac_ct_LIPO" >&6; }
7926 else
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931   if test "x$ac_ct_LIPO" = x; then
7932     LIPO=":"
7933   else
7934     case $cross_compiling:$ac_tool_warned in
7935 yes:)
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938 ac_tool_warned=yes ;;
7939 esac
7940     LIPO=$ac_ct_LIPO
7941   fi
7942 else
7943   LIPO="$ac_cv_prog_LIPO"
7944 fi
7945
7946     if test -n "$ac_tool_prefix"; then
7947   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7948 set dummy ${ac_tool_prefix}otool; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if ${ac_cv_prog_OTOOL+:} false; then :
7952   $as_echo_n "(cached) " >&6
7953 else
7954   if test -n "$OTOOL"; then
7955   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960   IFS=$as_save_IFS
7961   test -z "$as_dir" && as_dir=.
7962     for ac_exec_ext in '' $ac_executable_extensions; do
7963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966     break 2
7967   fi
7968 done
7969   done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 OTOOL=$ac_cv_prog_OTOOL
7975 if test -n "$OTOOL"; then
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7977 $as_echo "$OTOOL" >&6; }
7978 else
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984 fi
7985 if test -z "$ac_cv_prog_OTOOL"; then
7986   ac_ct_OTOOL=$OTOOL
7987   # Extract the first word of "otool", so it can be a program name with args.
7988 set dummy otool; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   if test -n "$ac_ct_OTOOL"; then
7995   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002     for ac_exec_ext in '' $ac_executable_extensions; do
8003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004     ac_cv_prog_ac_ct_OTOOL="otool"
8005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009   done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8015 if test -n "$ac_ct_OTOOL"; then
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8017 $as_echo "$ac_ct_OTOOL" >&6; }
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023   if test "x$ac_ct_OTOOL" = x; then
8024     OTOOL=":"
8025   else
8026     case $cross_compiling:$ac_tool_warned in
8027 yes:)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030 ac_tool_warned=yes ;;
8031 esac
8032     OTOOL=$ac_ct_OTOOL
8033   fi
8034 else
8035   OTOOL="$ac_cv_prog_OTOOL"
8036 fi
8037
8038     if test -n "$ac_tool_prefix"; then
8039   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8040 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if ${ac_cv_prog_OTOOL64+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   if test -n "$OTOOL64"; then
8047   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054     for ac_exec_ext in '' $ac_executable_extensions; do
8055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058     break 2
8059   fi
8060 done
8061   done
8062 IFS=$as_save_IFS
8063
8064 fi
8065 fi
8066 OTOOL64=$ac_cv_prog_OTOOL64
8067 if test -n "$OTOOL64"; then
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8069 $as_echo "$OTOOL64" >&6; }
8070 else
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8073 fi
8074
8075
8076 fi
8077 if test -z "$ac_cv_prog_OTOOL64"; then
8078   ac_ct_OTOOL64=$OTOOL64
8079   # Extract the first word of "otool64", so it can be a program name with args.
8080 set dummy otool64; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   if test -n "$ac_ct_OTOOL64"; then
8087   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092   IFS=$as_save_IFS
8093   test -z "$as_dir" && as_dir=.
8094     for ac_exec_ext in '' $ac_executable_extensions; do
8095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096     ac_cv_prog_ac_ct_OTOOL64="otool64"
8097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098     break 2
8099   fi
8100 done
8101   done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8107 if test -n "$ac_ct_OTOOL64"; then
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8109 $as_echo "$ac_ct_OTOOL64" >&6; }
8110 else
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115   if test "x$ac_ct_OTOOL64" = x; then
8116     OTOOL64=":"
8117   else
8118     case $cross_compiling:$ac_tool_warned in
8119 yes:)
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124     OTOOL64=$ac_ct_OTOOL64
8125   fi
8126 else
8127   OTOOL64="$ac_cv_prog_OTOOL64"
8128 fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8157 $as_echo_n "checking for -single_module linker flag... " >&6; }
8158 if ${lt_cv_apple_cc_single_mod+:} false; then :
8159   $as_echo_n "(cached) " >&6
8160 else
8161   lt_cv_apple_cc_single_mod=no
8162       if test -z "${LT_MULTI_MODULE}"; then
8163         # By default we will add the -single_module flag. You can override
8164         # by either setting the environment variable LT_MULTI_MODULE
8165         # non-empty at configure time, or by adding -multi_module to the
8166         # link flags.
8167         rm -rf libconftest.dylib*
8168         echo "int foo(void){return 1;}" > conftest.c
8169         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8170 -dynamiclib -Wl,-single_module conftest.c" >&5
8171         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8172           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8173         _lt_result=$?
8174         # If there is a non-empty error log, and "single_module"
8175         # appears in it, assume the flag caused a linker warning
8176         if test -s conftest.err && $GREP single_module conftest.err; then
8177           cat conftest.err >&5
8178         # Otherwise, if the output was created with a 0 exit code from
8179         # the compiler, it worked.
8180         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8181           lt_cv_apple_cc_single_mod=yes
8182         else
8183           cat conftest.err >&5
8184         fi
8185         rm -rf libconftest.dylib*
8186         rm -f conftest.*
8187       fi
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8190 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8191
8192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8193 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8194 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197   lt_cv_ld_exported_symbols_list=no
8198       save_LDFLAGS=$LDFLAGS
8199       echo "_main" > conftest.sym
8200       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h.  */
8203
8204 int
8205 main ()
8206 {
8207
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_link "$LINENO"; then :
8213   lt_cv_ld_exported_symbols_list=yes
8214 else
8215   lt_cv_ld_exported_symbols_list=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext \
8218     conftest$ac_exeext conftest.$ac_ext
8219         LDFLAGS="$save_LDFLAGS"
8220
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8223 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8224
8225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8226 $as_echo_n "checking for -force_load linker flag... " >&6; }
8227 if ${lt_cv_ld_force_load+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   lt_cv_ld_force_load=no
8231       cat > conftest.c << _LT_EOF
8232 int forced_loaded() { return 2;}
8233 _LT_EOF
8234       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8235       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8236       echo "$AR cru libconftest.a conftest.o" >&5
8237       $AR cru libconftest.a conftest.o 2>&5
8238       echo "$RANLIB libconftest.a" >&5
8239       $RANLIB libconftest.a 2>&5
8240       cat > conftest.c << _LT_EOF
8241 int main() { return 0;}
8242 _LT_EOF
8243       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8244       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8245       _lt_result=$?
8246       if test -s conftest.err && $GREP force_load conftest.err; then
8247         cat conftest.err >&5
8248       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8249         lt_cv_ld_force_load=yes
8250       else
8251         cat conftest.err >&5
8252       fi
8253         rm -f conftest.err libconftest.a conftest conftest.c
8254         rm -rf conftest.dSYM
8255
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8258 $as_echo "$lt_cv_ld_force_load" >&6; }
8259     case $host_os in
8260     rhapsody* | darwin1.[012])
8261       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8262     darwin1.*)
8263       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8264     darwin*) # darwin 5.x on
8265       # if running on 10.5 or later, the deployment target defaults
8266       # to the OS version, if on x86, and 10.4, the deployment
8267       # target defaults to 10.4. Don't you love it?
8268       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8269         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8270           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8271         10.[012]*)
8272           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8273         10.*)
8274           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8275       esac
8276     ;;
8277   esac
8278     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8279       _lt_dar_single_mod='$single_module'
8280     fi
8281     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8282       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8283     else
8284       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8285     fi
8286     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8287       _lt_dsymutil='~$DSYMUTIL $lib || :'
8288     else
8289       _lt_dsymutil=
8290     fi
8291     ;;
8292   esac
8293
8294 for ac_header in dlfcn.h
8295 do :
8296   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8297 "
8298 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8299   cat >>confdefs.h <<_ACEOF
8300 #define HAVE_DLFCN_H 1
8301 _ACEOF
8302
8303 fi
8304
8305 done
8306
8307
8308
8309
8310
8311 # Set options
8312
8313
8314
8315         enable_dlopen=no
8316
8317
8318   enable_win32_dll=no
8319
8320
8321             # Check whether --enable-shared was given.
8322 if test "${enable_shared+set}" = set; then :
8323   enableval=$enable_shared; p=${PACKAGE-default}
8324     case $enableval in
8325     yes) enable_shared=yes ;;
8326     no) enable_shared=no ;;
8327     *)
8328       enable_shared=no
8329       # Look at the argument we got.  We use all the common list separators.
8330       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8331       for pkg in $enableval; do
8332         IFS="$lt_save_ifs"
8333         if test "X$pkg" = "X$p"; then
8334           enable_shared=yes
8335         fi
8336       done
8337       IFS="$lt_save_ifs"
8338       ;;
8339     esac
8340 else
8341   enable_shared=yes
8342 fi
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354 # Check whether --with-pic was given.
8355 if test "${with_pic+set}" = set; then :
8356   withval=$with_pic; lt_p=${PACKAGE-default}
8357     case $withval in
8358     yes|no) pic_mode=$withval ;;
8359     *)
8360       pic_mode=default
8361       # Look at the argument we got.  We use all the common list separators.
8362       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8363       for lt_pkg in $withval; do
8364         IFS="$lt_save_ifs"
8365         if test "X$lt_pkg" = "X$lt_p"; then
8366           pic_mode=yes
8367         fi
8368       done
8369       IFS="$lt_save_ifs"
8370       ;;
8371     esac
8372 else
8373   pic_mode=default
8374 fi
8375
8376
8377 test -z "$pic_mode" && pic_mode=default
8378
8379
8380
8381
8382
8383
8384
8385   # Check whether --enable-fast-install was given.
8386 if test "${enable_fast_install+set}" = set; then :
8387   enableval=$enable_fast_install; p=${PACKAGE-default}
8388     case $enableval in
8389     yes) enable_fast_install=yes ;;
8390     no) enable_fast_install=no ;;
8391     *)
8392       enable_fast_install=no
8393       # Look at the argument we got.  We use all the common list separators.
8394       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8395       for pkg in $enableval; do
8396         IFS="$lt_save_ifs"
8397         if test "X$pkg" = "X$p"; then
8398           enable_fast_install=yes
8399         fi
8400       done
8401       IFS="$lt_save_ifs"
8402       ;;
8403     esac
8404 else
8405   enable_fast_install=yes
8406 fi
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418 # This can be used to rebuild libtool when needed
8419 LIBTOOL_DEPS="$ltmain"
8420
8421 # Always use our own libtool.
8422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453 test -z "$LN_S" && LN_S="ln -s"
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468 if test -n "${ZSH_VERSION+set}" ; then
8469    setopt NO_GLOB_SUBST
8470 fi
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8473 $as_echo_n "checking for objdir... " >&6; }
8474 if ${lt_cv_objdir+:} false; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   rm -f .libs 2>/dev/null
8478 mkdir .libs 2>/dev/null
8479 if test -d .libs; then
8480   lt_cv_objdir=.libs
8481 else
8482   # MS-DOS does not allow filenames that begin with a dot.
8483   lt_cv_objdir=_libs
8484 fi
8485 rmdir .libs 2>/dev/null
8486 fi
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8488 $as_echo "$lt_cv_objdir" >&6; }
8489 objdir=$lt_cv_objdir
8490
8491
8492
8493
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define LT_OBJDIR "$lt_cv_objdir/"
8497 _ACEOF
8498
8499
8500
8501
8502 case $host_os in
8503 aix3*)
8504   # AIX sometimes has problems with the GCC collect2 program.  For some
8505   # reason, if we set the COLLECT_NAMES environment variable, the problems
8506   # vanish in a puff of smoke.
8507   if test "X${COLLECT_NAMES+set}" != Xset; then
8508     COLLECT_NAMES=
8509     export COLLECT_NAMES
8510   fi
8511   ;;
8512 esac
8513
8514 # Global variables:
8515 ofile=libtool
8516 can_build_shared=yes
8517
8518 # All known linkers require a `.a' archive for static linking (except MSVC,
8519 # which needs '.lib').
8520 libext=a
8521
8522 with_gnu_ld="$lt_cv_prog_gnu_ld"
8523
8524 old_CC="$CC"
8525 old_CFLAGS="$CFLAGS"
8526
8527 # Set sane defaults for various variables
8528 test -z "$CC" && CC=cc
8529 test -z "$LTCC" && LTCC=$CC
8530 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8531 test -z "$LD" && LD=ld
8532 test -z "$ac_objext" && ac_objext=o
8533
8534 for cc_temp in $compiler""; do
8535   case $cc_temp in
8536     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8537     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8538     \-*) ;;
8539     *) break;;
8540   esac
8541 done
8542 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8543
8544
8545 # Only perform the check for file, if the check method requires it
8546 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8547 case $deplibs_check_method in
8548 file_magic*)
8549   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8551 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8552 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   case $MAGIC_CMD in
8556 [\\/*] |  ?:[\\/]*)
8557   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8558   ;;
8559 *)
8560   lt_save_MAGIC_CMD="$MAGIC_CMD"
8561   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8562   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8563   for ac_dir in $ac_dummy; do
8564     IFS="$lt_save_ifs"
8565     test -z "$ac_dir" && ac_dir=.
8566     if test -f $ac_dir/${ac_tool_prefix}file; then
8567       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8568       if test -n "$file_magic_test_file"; then
8569         case $deplibs_check_method in
8570         "file_magic "*)
8571           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8572           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8573           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8574             $EGREP "$file_magic_regex" > /dev/null; then
8575             :
8576           else
8577             cat <<_LT_EOF 1>&2
8578
8579 *** Warning: the command libtool uses to detect shared libraries,
8580 *** $file_magic_cmd, produces output that libtool cannot recognize.
8581 *** The result is that libtool may fail to recognize shared libraries
8582 *** as such.  This will affect the creation of libtool libraries that
8583 *** depend on shared libraries, but programs linked with such libtool
8584 *** libraries will work regardless of this problem.  Nevertheless, you
8585 *** may want to report the problem to your system manager and/or to
8586 *** bug-libtool@gnu.org
8587
8588 _LT_EOF
8589           fi ;;
8590         esac
8591       fi
8592       break
8593     fi
8594   done
8595   IFS="$lt_save_ifs"
8596   MAGIC_CMD="$lt_save_MAGIC_CMD"
8597   ;;
8598 esac
8599 fi
8600
8601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602 if test -n "$MAGIC_CMD"; then
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8604 $as_echo "$MAGIC_CMD" >&6; }
8605 else
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 fi
8609
8610
8611
8612
8613
8614 if test -z "$lt_cv_path_MAGIC_CMD"; then
8615   if test -n "$ac_tool_prefix"; then
8616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8617 $as_echo_n "checking for file... " >&6; }
8618 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   case $MAGIC_CMD in
8622 [\\/*] |  ?:[\\/]*)
8623   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8624   ;;
8625 *)
8626   lt_save_MAGIC_CMD="$MAGIC_CMD"
8627   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8628   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8629   for ac_dir in $ac_dummy; do
8630     IFS="$lt_save_ifs"
8631     test -z "$ac_dir" && ac_dir=.
8632     if test -f $ac_dir/file; then
8633       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8634       if test -n "$file_magic_test_file"; then
8635         case $deplibs_check_method in
8636         "file_magic "*)
8637           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8638           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8639           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8640             $EGREP "$file_magic_regex" > /dev/null; then
8641             :
8642           else
8643             cat <<_LT_EOF 1>&2
8644
8645 *** Warning: the command libtool uses to detect shared libraries,
8646 *** $file_magic_cmd, produces output that libtool cannot recognize.
8647 *** The result is that libtool may fail to recognize shared libraries
8648 *** as such.  This will affect the creation of libtool libraries that
8649 *** depend on shared libraries, but programs linked with such libtool
8650 *** libraries will work regardless of this problem.  Nevertheless, you
8651 *** may want to report the problem to your system manager and/or to
8652 *** bug-libtool@gnu.org
8653
8654 _LT_EOF
8655           fi ;;
8656         esac
8657       fi
8658       break
8659     fi
8660   done
8661   IFS="$lt_save_ifs"
8662   MAGIC_CMD="$lt_save_MAGIC_CMD"
8663   ;;
8664 esac
8665 fi
8666
8667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8668 if test -n "$MAGIC_CMD"; then
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8670 $as_echo "$MAGIC_CMD" >&6; }
8671 else
8672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8674 fi
8675
8676
8677   else
8678     MAGIC_CMD=:
8679   fi
8680 fi
8681
8682   fi
8683   ;;
8684 esac
8685
8686 # Use C for the default configuration in the libtool script
8687
8688 lt_save_CC="$CC"
8689 ac_ext=c
8690 ac_cpp='$CPP $CPPFLAGS'
8691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694
8695
8696 # Source file extension for C test sources.
8697 ac_ext=c
8698
8699 # Object file extension for compiled C test sources.
8700 objext=o
8701 objext=$objext
8702
8703 # Code to be used in simple compile tests
8704 lt_simple_compile_test_code="int some_variable = 0;"
8705
8706 # Code to be used in simple link tests
8707 lt_simple_link_test_code='int main(){return(0);}'
8708
8709
8710
8711
8712
8713
8714
8715 # If no C compiler was specified, use CC.
8716 LTCC=${LTCC-"$CC"}
8717
8718 # If no C compiler flags were specified, use CFLAGS.
8719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8720
8721 # Allow CC to be a program name with arguments.
8722 compiler=$CC
8723
8724 # Save the default compiler, since it gets overwritten when the other
8725 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8726 compiler_DEFAULT=$CC
8727
8728 # save warnings/boilerplate of simple test code
8729 ac_outfile=conftest.$ac_objext
8730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8732 _lt_compiler_boilerplate=`cat conftest.err`
8733 $RM conftest*
8734
8735 ac_outfile=conftest.$ac_objext
8736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8738 _lt_linker_boilerplate=`cat conftest.err`
8739 $RM -r conftest*
8740
8741
8742 ## CAVEAT EMPTOR:
8743 ## There is no encapsulation within the following macros, do not change
8744 ## the running order or otherwise move them around unless you know exactly
8745 ## what you are doing...
8746 if test -n "$compiler"; then
8747
8748 lt_prog_compiler_no_builtin_flag=
8749
8750 if test "$GCC" = yes; then
8751   case $cc_basename in
8752   nvcc*)
8753     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8754   *)
8755     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8756   esac
8757
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8759 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8760 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   lt_cv_prog_compiler_rtti_exceptions=no
8764    ac_outfile=conftest.$ac_objext
8765    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766    lt_compiler_flag="-fno-rtti -fno-exceptions"
8767    # Insert the option either (1) after the last *FLAGS variable, or
8768    # (2) before a word containing "conftest.", or (3) at the end.
8769    # Note that $ac_compile itself does not contain backslashes and begins
8770    # with a dollar sign (not a hyphen), so the echo should work correctly.
8771    # The option is referenced via a variable to avoid confusing sed.
8772    lt_compile=`echo "$ac_compile" | $SED \
8773    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775    -e 's:$: $lt_compiler_flag:'`
8776    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777    (eval "$lt_compile" 2>conftest.err)
8778    ac_status=$?
8779    cat conftest.err >&5
8780    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781    if (exit $ac_status) && test -s "$ac_outfile"; then
8782      # The compiler can only warn and ignore the option if not recognized
8783      # So say no if there are warnings other than the usual output.
8784      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8785      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8786      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8787        lt_cv_prog_compiler_rtti_exceptions=yes
8788      fi
8789    fi
8790    $RM conftest*
8791
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8794 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8795
8796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8797     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8798 else
8799     :
8800 fi
8801
8802 fi
8803
8804
8805
8806
8807
8808
8809   lt_prog_compiler_wl=
8810 lt_prog_compiler_pic=
8811 lt_prog_compiler_static=
8812
8813
8814   if test "$GCC" = yes; then
8815     lt_prog_compiler_wl='-Wl,'
8816     lt_prog_compiler_static='-static'
8817
8818     case $host_os in
8819       aix*)
8820       # All AIX code is PIC.
8821       if test "$host_cpu" = ia64; then
8822         # AIX 5 now supports IA64 processor
8823         lt_prog_compiler_static='-Bstatic'
8824       fi
8825       ;;
8826
8827     amigaos*)
8828       case $host_cpu in
8829       powerpc)
8830             # see comment about AmigaOS4 .so support
8831             lt_prog_compiler_pic='-fPIC'
8832         ;;
8833       m68k)
8834             # FIXME: we need at least 68020 code to build shared libraries, but
8835             # adding the `-m68020' flag to GCC prevents building anything better,
8836             # like `-m68040'.
8837             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8838         ;;
8839       esac
8840       ;;
8841
8842     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8843       # PIC is the default for these OSes.
8844       ;;
8845
8846     mingw* | cygwin* | pw32* | os2* | cegcc*)
8847       # This hack is so that the source file can tell whether it is being
8848       # built for inclusion in a dll (and should export symbols for example).
8849       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8850       # (--disable-auto-import) libraries
8851       lt_prog_compiler_pic='-DDLL_EXPORT'
8852       ;;
8853
8854     darwin* | rhapsody*)
8855       # PIC is the default on this platform
8856       # Common symbols not allowed in MH_DYLIB files
8857       lt_prog_compiler_pic='-fno-common'
8858       ;;
8859
8860     haiku*)
8861       # PIC is the default for Haiku.
8862       # The "-static" flag exists, but is broken.
8863       lt_prog_compiler_static=
8864       ;;
8865
8866     hpux*)
8867       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8868       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8869       # sets the default TLS model and affects inlining.
8870       case $host_cpu in
8871       hppa*64*)
8872         # +Z the default
8873         ;;
8874       *)
8875         lt_prog_compiler_pic='-fPIC'
8876         ;;
8877       esac
8878       ;;
8879
8880     interix[3-9]*)
8881       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8882       # Instead, we relocate shared libraries at runtime.
8883       ;;
8884
8885     msdosdjgpp*)
8886       # Just because we use GCC doesn't mean we suddenly get shared libraries
8887       # on systems that don't support them.
8888       lt_prog_compiler_can_build_shared=no
8889       enable_shared=no
8890       ;;
8891
8892     *nto* | *qnx*)
8893       # QNX uses GNU C++, but need to define -shared option too, otherwise
8894       # it will coredump.
8895       lt_prog_compiler_pic='-fPIC -shared'
8896       ;;
8897
8898     sysv4*MP*)
8899       if test -d /usr/nec; then
8900         lt_prog_compiler_pic=-Kconform_pic
8901       fi
8902       ;;
8903
8904     *)
8905       lt_prog_compiler_pic='-fPIC'
8906       ;;
8907     esac
8908
8909     case $cc_basename in
8910     nvcc*) # Cuda Compiler Driver 2.2
8911       lt_prog_compiler_wl='-Xlinker '
8912       if test -n "$lt_prog_compiler_pic"; then
8913         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8914       fi
8915       ;;
8916     esac
8917   else
8918     # PORTME Check for flag to pass linker flags through the system compiler.
8919     case $host_os in
8920     aix*)
8921       lt_prog_compiler_wl='-Wl,'
8922       if test "$host_cpu" = ia64; then
8923         # AIX 5 now supports IA64 processor
8924         lt_prog_compiler_static='-Bstatic'
8925       else
8926         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8927       fi
8928       ;;
8929
8930     mingw* | cygwin* | pw32* | os2* | cegcc*)
8931       # This hack is so that the source file can tell whether it is being
8932       # built for inclusion in a dll (and should export symbols for example).
8933       lt_prog_compiler_pic='-DDLL_EXPORT'
8934       ;;
8935
8936     hpux9* | hpux10* | hpux11*)
8937       lt_prog_compiler_wl='-Wl,'
8938       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8939       # not for PA HP-UX.
8940       case $host_cpu in
8941       hppa*64*|ia64*)
8942         # +Z the default
8943         ;;
8944       *)
8945         lt_prog_compiler_pic='+Z'
8946         ;;
8947       esac
8948       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8949       lt_prog_compiler_static='${wl}-a ${wl}archive'
8950       ;;
8951
8952     irix5* | irix6* | nonstopux*)
8953       lt_prog_compiler_wl='-Wl,'
8954       # PIC (with -KPIC) is the default.
8955       lt_prog_compiler_static='-non_shared'
8956       ;;
8957
8958     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8959       case $cc_basename in
8960       # old Intel for x86_64 which still supported -KPIC.
8961       ecc*)
8962         lt_prog_compiler_wl='-Wl,'
8963         lt_prog_compiler_pic='-KPIC'
8964         lt_prog_compiler_static='-static'
8965         ;;
8966       # icc used to be incompatible with GCC.
8967       # ICC 10 doesn't accept -KPIC any more.
8968       icc* | ifort*)
8969         lt_prog_compiler_wl='-Wl,'
8970         lt_prog_compiler_pic='-fPIC'
8971         lt_prog_compiler_static='-static'
8972         ;;
8973       # Lahey Fortran 8.1.
8974       lf95*)
8975         lt_prog_compiler_wl='-Wl,'
8976         lt_prog_compiler_pic='--shared'
8977         lt_prog_compiler_static='--static'
8978         ;;
8979       nagfor*)
8980         # NAG Fortran compiler
8981         lt_prog_compiler_wl='-Wl,-Wl,,'
8982         lt_prog_compiler_pic='-PIC'
8983         lt_prog_compiler_static='-Bstatic'
8984         ;;
8985       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8986         # Portland Group compilers (*not* the Pentium gcc compiler,
8987         # which looks to be a dead project)
8988         lt_prog_compiler_wl='-Wl,'
8989         lt_prog_compiler_pic='-fpic'
8990         lt_prog_compiler_static='-Bstatic'
8991         ;;
8992       ccc*)
8993         lt_prog_compiler_wl='-Wl,'
8994         # All Alpha code is PIC.
8995         lt_prog_compiler_static='-non_shared'
8996         ;;
8997       xl* | bgxl* | bgf* | mpixl*)
8998         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8999         lt_prog_compiler_wl='-Wl,'
9000         lt_prog_compiler_pic='-qpic'
9001         lt_prog_compiler_static='-qstaticlink'
9002         ;;
9003       *)
9004         case `$CC -V 2>&1 | sed 5q` in
9005         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9006           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9007           lt_prog_compiler_pic='-KPIC'
9008           lt_prog_compiler_static='-Bstatic'
9009           lt_prog_compiler_wl=''
9010           ;;
9011         *Sun\ F* | *Sun*Fortran*)
9012           lt_prog_compiler_pic='-KPIC'
9013           lt_prog_compiler_static='-Bstatic'
9014           lt_prog_compiler_wl='-Qoption ld '
9015           ;;
9016         *Sun\ C*)
9017           # Sun C 5.9
9018           lt_prog_compiler_pic='-KPIC'
9019           lt_prog_compiler_static='-Bstatic'
9020           lt_prog_compiler_wl='-Wl,'
9021           ;;
9022         *Intel*\ [CF]*Compiler*)
9023           lt_prog_compiler_wl='-Wl,'
9024           lt_prog_compiler_pic='-fPIC'
9025           lt_prog_compiler_static='-static'
9026           ;;
9027         *Portland\ Group*)
9028           lt_prog_compiler_wl='-Wl,'
9029           lt_prog_compiler_pic='-fpic'
9030           lt_prog_compiler_static='-Bstatic'
9031           ;;
9032         esac
9033         ;;
9034       esac
9035       ;;
9036
9037     newsos6)
9038       lt_prog_compiler_pic='-KPIC'
9039       lt_prog_compiler_static='-Bstatic'
9040       ;;
9041
9042     *nto* | *qnx*)
9043       # QNX uses GNU C++, but need to define -shared option too, otherwise
9044       # it will coredump.
9045       lt_prog_compiler_pic='-fPIC -shared'
9046       ;;
9047
9048     osf3* | osf4* | osf5*)
9049       lt_prog_compiler_wl='-Wl,'
9050       # All OSF/1 code is PIC.
9051       lt_prog_compiler_static='-non_shared'
9052       ;;
9053
9054     rdos*)
9055       lt_prog_compiler_static='-non_shared'
9056       ;;
9057
9058     solaris*)
9059       lt_prog_compiler_pic='-KPIC'
9060       lt_prog_compiler_static='-Bstatic'
9061       case $cc_basename in
9062       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9063         lt_prog_compiler_wl='-Qoption ld ';;
9064       *)
9065         lt_prog_compiler_wl='-Wl,';;
9066       esac
9067       ;;
9068
9069     sunos4*)
9070       lt_prog_compiler_wl='-Qoption ld '
9071       lt_prog_compiler_pic='-PIC'
9072       lt_prog_compiler_static='-Bstatic'
9073       ;;
9074
9075     sysv4 | sysv4.2uw2* | sysv4.3*)
9076       lt_prog_compiler_wl='-Wl,'
9077       lt_prog_compiler_pic='-KPIC'
9078       lt_prog_compiler_static='-Bstatic'
9079       ;;
9080
9081     sysv4*MP*)
9082       if test -d /usr/nec ;then
9083         lt_prog_compiler_pic='-Kconform_pic'
9084         lt_prog_compiler_static='-Bstatic'
9085       fi
9086       ;;
9087
9088     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9089       lt_prog_compiler_wl='-Wl,'
9090       lt_prog_compiler_pic='-KPIC'
9091       lt_prog_compiler_static='-Bstatic'
9092       ;;
9093
9094     unicos*)
9095       lt_prog_compiler_wl='-Wl,'
9096       lt_prog_compiler_can_build_shared=no
9097       ;;
9098
9099     uts4*)
9100       lt_prog_compiler_pic='-pic'
9101       lt_prog_compiler_static='-Bstatic'
9102       ;;
9103
9104     *)
9105       lt_prog_compiler_can_build_shared=no
9106       ;;
9107     esac
9108   fi
9109
9110 case $host_os in
9111   # For platforms which do not support PIC, -DPIC is meaningless:
9112   *djgpp*)
9113     lt_prog_compiler_pic=
9114     ;;
9115   *)
9116     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9117     ;;
9118 esac
9119
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9121 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9122 if ${lt_cv_prog_compiler_pic+:} false; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9126 fi
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9128 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9129 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9130
9131 #
9132 # Check to make sure the PIC flag actually works.
9133 #
9134 if test -n "$lt_prog_compiler_pic"; then
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9136 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9137 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9138   $as_echo_n "(cached) " >&6
9139 else
9140   lt_cv_prog_compiler_pic_works=no
9141    ac_outfile=conftest.$ac_objext
9142    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9143    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9144    # Insert the option either (1) after the last *FLAGS variable, or
9145    # (2) before a word containing "conftest.", or (3) at the end.
9146    # Note that $ac_compile itself does not contain backslashes and begins
9147    # with a dollar sign (not a hyphen), so the echo should work correctly.
9148    # The option is referenced via a variable to avoid confusing sed.
9149    lt_compile=`echo "$ac_compile" | $SED \
9150    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152    -e 's:$: $lt_compiler_flag:'`
9153    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9154    (eval "$lt_compile" 2>conftest.err)
9155    ac_status=$?
9156    cat conftest.err >&5
9157    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158    if (exit $ac_status) && test -s "$ac_outfile"; then
9159      # The compiler can only warn and ignore the option if not recognized
9160      # So say no if there are warnings other than the usual output.
9161      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9162      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9163      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9164        lt_cv_prog_compiler_pic_works=yes
9165      fi
9166    fi
9167    $RM conftest*
9168
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9171 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9172
9173 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9174     case $lt_prog_compiler_pic in
9175      "" | " "*) ;;
9176      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9177      esac
9178 else
9179     lt_prog_compiler_pic=
9180      lt_prog_compiler_can_build_shared=no
9181 fi
9182
9183 fi
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195 #
9196 # Check to make sure the static flag actually works.
9197 #
9198 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9200 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9201 if ${lt_cv_prog_compiler_static_works+:} false; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   lt_cv_prog_compiler_static_works=no
9205    save_LDFLAGS="$LDFLAGS"
9206    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9207    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9208    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9209      # The linker can only warn and ignore the option if not recognized
9210      # So say no if there are warnings
9211      if test -s conftest.err; then
9212        # Append any errors to the config.log.
9213        cat conftest.err 1>&5
9214        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9215        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9216        if diff conftest.exp conftest.er2 >/dev/null; then
9217          lt_cv_prog_compiler_static_works=yes
9218        fi
9219      else
9220        lt_cv_prog_compiler_static_works=yes
9221      fi
9222    fi
9223    $RM -r conftest*
9224    LDFLAGS="$save_LDFLAGS"
9225
9226 fi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9228 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9229
9230 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9231     :
9232 else
9233     lt_prog_compiler_static=
9234 fi
9235
9236
9237
9238
9239
9240
9241
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9244 if ${lt_cv_prog_compiler_c_o+:} false; then :
9245   $as_echo_n "(cached) " >&6
9246 else
9247   lt_cv_prog_compiler_c_o=no
9248    $RM -r conftest 2>/dev/null
9249    mkdir conftest
9250    cd conftest
9251    mkdir out
9252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9253
9254    lt_compiler_flag="-o out/conftest2.$ac_objext"
9255    # Insert the option either (1) after the last *FLAGS variable, or
9256    # (2) before a word containing "conftest.", or (3) at the end.
9257    # Note that $ac_compile itself does not contain backslashes and begins
9258    # with a dollar sign (not a hyphen), so the echo should work correctly.
9259    lt_compile=`echo "$ac_compile" | $SED \
9260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9262    -e 's:$: $lt_compiler_flag:'`
9263    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9264    (eval "$lt_compile" 2>out/conftest.err)
9265    ac_status=$?
9266    cat out/conftest.err >&5
9267    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9269    then
9270      # The compiler can only warn and ignore the option if not recognized
9271      # So say no if there are warnings
9272      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9273      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9274      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9275        lt_cv_prog_compiler_c_o=yes
9276      fi
9277    fi
9278    chmod u+w . 2>&5
9279    $RM conftest*
9280    # SGI C++ compiler will create directory out/ii_files/ for
9281    # template instantiation
9282    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9283    $RM out/* && rmdir out
9284    cd ..
9285    $RM -r conftest
9286    $RM conftest*
9287
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9290 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9291
9292
9293
9294
9295
9296
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9299 if ${lt_cv_prog_compiler_c_o+:} false; then :
9300   $as_echo_n "(cached) " >&6
9301 else
9302   lt_cv_prog_compiler_c_o=no
9303    $RM -r conftest 2>/dev/null
9304    mkdir conftest
9305    cd conftest
9306    mkdir out
9307    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9308
9309    lt_compiler_flag="-o out/conftest2.$ac_objext"
9310    # Insert the option either (1) after the last *FLAGS variable, or
9311    # (2) before a word containing "conftest.", or (3) at the end.
9312    # Note that $ac_compile itself does not contain backslashes and begins
9313    # with a dollar sign (not a hyphen), so the echo should work correctly.
9314    lt_compile=`echo "$ac_compile" | $SED \
9315    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317    -e 's:$: $lt_compiler_flag:'`
9318    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9319    (eval "$lt_compile" 2>out/conftest.err)
9320    ac_status=$?
9321    cat out/conftest.err >&5
9322    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9324    then
9325      # The compiler can only warn and ignore the option if not recognized
9326      # So say no if there are warnings
9327      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9328      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9329      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9330        lt_cv_prog_compiler_c_o=yes
9331      fi
9332    fi
9333    chmod u+w . 2>&5
9334    $RM conftest*
9335    # SGI C++ compiler will create directory out/ii_files/ for
9336    # template instantiation
9337    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9338    $RM out/* && rmdir out
9339    cd ..
9340    $RM -r conftest
9341    $RM conftest*
9342
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9345 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9346
9347
9348
9349
9350 hard_links="nottested"
9351 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9352   # do not overwrite the value of need_locks provided by the user
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9354 $as_echo_n "checking if we can lock with hard links... " >&6; }
9355   hard_links=yes
9356   $RM conftest*
9357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9358   touch conftest.a
9359   ln conftest.a conftest.b 2>&5 || hard_links=no
9360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9362 $as_echo "$hard_links" >&6; }
9363   if test "$hard_links" = no; then
9364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9365 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9366     need_locks=warn
9367   fi
9368 else
9369   need_locks=no
9370 fi
9371
9372
9373
9374
9375
9376
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9378 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9379
9380   runpath_var=
9381   allow_undefined_flag=
9382   always_export_symbols=no
9383   archive_cmds=
9384   archive_expsym_cmds=
9385   compiler_needs_object=no
9386   enable_shared_with_static_runtimes=no
9387   export_dynamic_flag_spec=
9388   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9389   hardcode_automatic=no
9390   hardcode_direct=no
9391   hardcode_direct_absolute=no
9392   hardcode_libdir_flag_spec=
9393   hardcode_libdir_separator=
9394   hardcode_minus_L=no
9395   hardcode_shlibpath_var=unsupported
9396   inherit_rpath=no
9397   link_all_deplibs=unknown
9398   module_cmds=
9399   module_expsym_cmds=
9400   old_archive_from_new_cmds=
9401   old_archive_from_expsyms_cmds=
9402   thread_safe_flag_spec=
9403   whole_archive_flag_spec=
9404   # include_expsyms should be a list of space-separated symbols to be *always*
9405   # included in the symbol list
9406   include_expsyms=
9407   # exclude_expsyms can be an extended regexp of symbols to exclude
9408   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9409   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9410   # as well as any symbol that contains `d'.
9411   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9412   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9413   # platforms (ab)use it in PIC code, but their linkers get confused if
9414   # the symbol is explicitly referenced.  Since portable code cannot
9415   # rely on this symbol name, it's probably fine to never include it in
9416   # preloaded symbol tables.
9417   # Exclude shared library initialization/finalization symbols.
9418   extract_expsyms_cmds=
9419
9420   case $host_os in
9421   cygwin* | mingw* | pw32* | cegcc*)
9422     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9423     # When not using gcc, we currently assume that we are using
9424     # Microsoft Visual C++.
9425     if test "$GCC" != yes; then
9426       with_gnu_ld=no
9427     fi
9428     ;;
9429   interix*)
9430     # we just hope/assume this is gcc and not c89 (= MSVC++)
9431     with_gnu_ld=yes
9432     ;;
9433   openbsd*)
9434     with_gnu_ld=no
9435     ;;
9436   linux* | k*bsd*-gnu | gnu*)
9437     link_all_deplibs=no
9438     ;;
9439   esac
9440
9441   ld_shlibs=yes
9442
9443   # On some targets, GNU ld is compatible enough with the native linker
9444   # that we're better off using the native interface for both.
9445   lt_use_gnu_ld_interface=no
9446   if test "$with_gnu_ld" = yes; then
9447     case $host_os in
9448       aix*)
9449         # The AIX port of GNU ld has always aspired to compatibility
9450         # with the native linker.  However, as the warning in the GNU ld
9451         # block says, versions before 2.19.5* couldn't really create working
9452         # shared libraries, regardless of the interface used.
9453         case `$LD -v 2>&1` in
9454           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9455           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9456           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9457           *)
9458             lt_use_gnu_ld_interface=yes
9459             ;;
9460         esac
9461         ;;
9462       *)
9463         lt_use_gnu_ld_interface=yes
9464         ;;
9465     esac
9466   fi
9467
9468   if test "$lt_use_gnu_ld_interface" = yes; then
9469     # If archive_cmds runs LD, not CC, wlarc should be empty
9470     wlarc='${wl}'
9471
9472     # Set some defaults for GNU ld with shared library support. These
9473     # are reset later if shared libraries are not supported. Putting them
9474     # here allows them to be overridden if necessary.
9475     runpath_var=LD_RUN_PATH
9476     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477     export_dynamic_flag_spec='${wl}--export-dynamic'
9478     # ancient GNU ld didn't support --whole-archive et. al.
9479     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9480       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9481     else
9482       whole_archive_flag_spec=
9483     fi
9484     supports_anon_versioning=no
9485     case `$LD -v 2>&1` in
9486       *GNU\ gold*) supports_anon_versioning=yes ;;
9487       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9488       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9489       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9490       *\ 2.11.*) ;; # other 2.11 versions
9491       *) supports_anon_versioning=yes ;;
9492     esac
9493
9494     # See if GNU ld supports shared libraries.
9495     case $host_os in
9496     aix[3-9]*)
9497       # On AIX/PPC, the GNU linker is very broken
9498       if test "$host_cpu" != ia64; then
9499         ld_shlibs=no
9500         cat <<_LT_EOF 1>&2
9501
9502 *** Warning: the GNU linker, at least up to release 2.19, is reported
9503 *** to be unable to reliably create shared libraries on AIX.
9504 *** Therefore, libtool is disabling shared libraries support.  If you
9505 *** really care for shared libraries, you may want to install binutils
9506 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9507 *** You will then need to restart the configuration process.
9508
9509 _LT_EOF
9510       fi
9511       ;;
9512
9513     amigaos*)
9514       case $host_cpu in
9515       powerpc)
9516             # see comment about AmigaOS4 .so support
9517             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518             archive_expsym_cmds=''
9519         ;;
9520       m68k)
9521             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9522             hardcode_libdir_flag_spec='-L$libdir'
9523             hardcode_minus_L=yes
9524         ;;
9525       esac
9526       ;;
9527
9528     beos*)
9529       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530         allow_undefined_flag=unsupported
9531         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9532         # support --undefined.  This deserves some investigation.  FIXME
9533         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534       else
9535         ld_shlibs=no
9536       fi
9537       ;;
9538
9539     cygwin* | mingw* | pw32* | cegcc*)
9540       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9541       # as there is no search path for DLLs.
9542       hardcode_libdir_flag_spec='-L$libdir'
9543       export_dynamic_flag_spec='${wl}--export-all-symbols'
9544       allow_undefined_flag=unsupported
9545       always_export_symbols=no
9546       enable_shared_with_static_runtimes=yes
9547       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9548       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9549
9550       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9551         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9552         # If the export-symbols file already is a .def file (1st line
9553         # is EXPORTS), use it as is; otherwise, prepend...
9554         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9555           cp $export_symbols $output_objdir/$soname.def;
9556         else
9557           echo EXPORTS > $output_objdir/$soname.def;
9558           cat $export_symbols >> $output_objdir/$soname.def;
9559         fi~
9560         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9561       else
9562         ld_shlibs=no
9563       fi
9564       ;;
9565
9566     haiku*)
9567       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568       link_all_deplibs=yes
9569       ;;
9570
9571     interix[3-9]*)
9572       hardcode_direct=no
9573       hardcode_shlibpath_var=no
9574       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9575       export_dynamic_flag_spec='${wl}-E'
9576       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9577       # Instead, shared libraries are loaded at an image base (0x10000000 by
9578       # default) and relocated if they conflict, which is a slow very memory
9579       # consuming and fragmenting process.  To avoid this, we pick a random,
9580       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9581       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9582       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9583       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9584       ;;
9585
9586     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9587       tmp_diet=no
9588       if test "$host_os" = linux-dietlibc; then
9589         case $cc_basename in
9590           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9591         esac
9592       fi
9593       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9594          && test "$tmp_diet" = no
9595       then
9596         tmp_addflag=' $pic_flag'
9597         tmp_sharedflag='-shared'
9598         case $cc_basename,$host_cpu in
9599         pgcc*)                          # Portland Group C compiler
9600           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9601           tmp_addflag=' $pic_flag'
9602           ;;
9603         pgf77* | pgf90* | pgf95* | pgfortran*)
9604                                         # Portland Group f77 and f90 compilers
9605           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9606           tmp_addflag=' $pic_flag -Mnomain' ;;
9607         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9608           tmp_addflag=' -i_dynamic' ;;
9609         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9610           tmp_addflag=' -i_dynamic -nofor_main' ;;
9611         ifc* | ifort*)                  # Intel Fortran compiler
9612           tmp_addflag=' -nofor_main' ;;
9613         lf95*)                          # Lahey Fortran 8.1
9614           whole_archive_flag_spec=
9615           tmp_sharedflag='--shared' ;;
9616         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9617           tmp_sharedflag='-qmkshrobj'
9618           tmp_addflag= ;;
9619         nvcc*)  # Cuda Compiler Driver 2.2
9620           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9621           compiler_needs_object=yes
9622           ;;
9623         esac
9624         case `$CC -V 2>&1 | sed 5q` in
9625         *Sun\ C*)                       # Sun C 5.9
9626           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9627           compiler_needs_object=yes
9628           tmp_sharedflag='-G' ;;
9629         *Sun\ F*)                       # Sun Fortran 8.3
9630           tmp_sharedflag='-G' ;;
9631         esac
9632         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9633
9634         if test "x$supports_anon_versioning" = xyes; then
9635           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9636             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9637             echo "local: *; };" >> $output_objdir/$libname.ver~
9638             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9639         fi
9640
9641         case $cc_basename in
9642         xlf* | bgf* | bgxlf* | mpixlf*)
9643           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9644           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9645           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9646           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9647           if test "x$supports_anon_versioning" = xyes; then
9648             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9649               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9650               echo "local: *; };" >> $output_objdir/$libname.ver~
9651               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9652           fi
9653           ;;
9654         esac
9655       else
9656         ld_shlibs=no
9657       fi
9658       ;;
9659
9660     netbsd* | netbsdelf*-gnu)
9661       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9662         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9663         wlarc=
9664       else
9665         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9667       fi
9668       ;;
9669
9670     solaris*)
9671       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9672         ld_shlibs=no
9673         cat <<_LT_EOF 1>&2
9674
9675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9676 *** create shared libraries on Solaris systems.  Therefore, libtool
9677 *** is disabling shared libraries support.  We urge you to upgrade GNU
9678 *** binutils to release 2.9.1 or newer.  Another option is to modify
9679 *** your PATH or compiler configuration so that the native linker is
9680 *** used, and then restart.
9681
9682 _LT_EOF
9683       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9686       else
9687         ld_shlibs=no
9688       fi
9689       ;;
9690
9691     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9692       case `$LD -v 2>&1` in
9693         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9694         ld_shlibs=no
9695         cat <<_LT_EOF 1>&2
9696
9697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9698 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9699 *** is disabling shared libraries support.  We urge you to upgrade GNU
9700 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9701 *** your PATH or compiler configuration so that the native linker is
9702 *** used, and then restart.
9703
9704 _LT_EOF
9705         ;;
9706         *)
9707           # For security reasons, it is highly recommended that you always
9708           # use absolute paths for naming shared libraries, and exclude the
9709           # DT_RUNPATH tag from executables and libraries.  But doing so
9710           # requires that you compile everything twice, which is a pain.
9711           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9712             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9713             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9715           else
9716             ld_shlibs=no
9717           fi
9718         ;;
9719       esac
9720       ;;
9721
9722     sunos4*)
9723       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9724       wlarc=
9725       hardcode_direct=yes
9726       hardcode_shlibpath_var=no
9727       ;;
9728
9729     *)
9730       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9733       else
9734         ld_shlibs=no
9735       fi
9736       ;;
9737     esac
9738
9739     if test "$ld_shlibs" = no; then
9740       runpath_var=
9741       hardcode_libdir_flag_spec=
9742       export_dynamic_flag_spec=
9743       whole_archive_flag_spec=
9744     fi
9745   else
9746     # PORTME fill in a description of your system's linker (not GNU ld)
9747     case $host_os in
9748     aix3*)
9749       allow_undefined_flag=unsupported
9750       always_export_symbols=yes
9751       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9752       # Note: this linker hardcodes the directories in LIBPATH if there
9753       # are no directories specified by -L.
9754       hardcode_minus_L=yes
9755       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9756         # Neither direct hardcoding nor static linking is supported with a
9757         # broken collect2.
9758         hardcode_direct=unsupported
9759       fi
9760       ;;
9761
9762     aix[4-9]*)
9763       if test "$host_cpu" = ia64; then
9764         # On IA64, the linker does run time linking by default, so we don't
9765         # have to do anything special.
9766         aix_use_runtimelinking=no
9767         exp_sym_flag='-Bexport'
9768         no_entry_flag=""
9769       else
9770         # If we're using GNU nm, then we don't want the "-C" option.
9771         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9772         # Also, AIX nm treats weak defined symbols like other global
9773         # defined symbols, whereas GNU nm marks them as "W".
9774         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9775           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9776         else
9777           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9778         fi
9779         aix_use_runtimelinking=no
9780
9781         # Test if we are trying to use run time linking or normal
9782         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9783         # need to do runtime linking.
9784         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9785           for ld_flag in $LDFLAGS; do
9786           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9787             aix_use_runtimelinking=yes
9788             break
9789           fi
9790           done
9791           ;;
9792         esac
9793
9794         exp_sym_flag='-bexport'
9795         no_entry_flag='-bnoentry'
9796       fi
9797
9798       # When large executables or shared objects are built, AIX ld can
9799       # have problems creating the table of contents.  If linking a library
9800       # or program results in "error TOC overflow" add -mminimal-toc to
9801       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9802       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9803
9804       archive_cmds=''
9805       hardcode_direct=yes
9806       hardcode_direct_absolute=yes
9807       hardcode_libdir_separator=':'
9808       link_all_deplibs=yes
9809       file_list_spec='${wl}-f,'
9810
9811       if test "$GCC" = yes; then
9812         case $host_os in aix4.[012]|aix4.[012].*)
9813         # We only want to do this on AIX 4.2 and lower, the check
9814         # below for broken collect2 doesn't work under 4.3+
9815           collect2name=`${CC} -print-prog-name=collect2`
9816           if test -f "$collect2name" &&
9817            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9818           then
9819           # We have reworked collect2
9820           :
9821           else
9822           # We have old collect2
9823           hardcode_direct=unsupported
9824           # It fails to find uninstalled libraries when the uninstalled
9825           # path is not listed in the libpath.  Setting hardcode_minus_L
9826           # to unsupported forces relinking
9827           hardcode_minus_L=yes
9828           hardcode_libdir_flag_spec='-L$libdir'
9829           hardcode_libdir_separator=
9830           fi
9831           ;;
9832         esac
9833         shared_flag='-shared'
9834         if test "$aix_use_runtimelinking" = yes; then
9835           shared_flag="$shared_flag "'${wl}-G'
9836         fi
9837         link_all_deplibs=no
9838       else
9839         # not using gcc
9840         if test "$host_cpu" = ia64; then
9841         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9842         # chokes on -Wl,-G. The following line is correct:
9843           shared_flag='-G'
9844         else
9845           if test "$aix_use_runtimelinking" = yes; then
9846             shared_flag='${wl}-G'
9847           else
9848             shared_flag='${wl}-bM:SRE'
9849           fi
9850         fi
9851       fi
9852
9853       export_dynamic_flag_spec='${wl}-bexpall'
9854       # It seems that -bexpall does not export symbols beginning with
9855       # underscore (_), so it is better to generate a list of symbols to export.
9856       always_export_symbols=yes
9857       if test "$aix_use_runtimelinking" = yes; then
9858         # Warning - without using the other runtime loading flags (-brtl),
9859         # -berok will link without error, but may produce a broken library.
9860         allow_undefined_flag='-berok'
9861         # Determine the default libpath from the value encoded in an
9862         # empty executable.
9863         if test "${lt_cv_aix_libpath+set}" = set; then
9864   aix_libpath=$lt_cv_aix_libpath
9865 else
9866   if ${lt_cv_aix_libpath_+:} false; then :
9867   $as_echo_n "(cached) " >&6
9868 else
9869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h.  */
9871
9872 int
9873 main ()
9874 {
9875
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"; then :
9881
9882   lt_aix_libpath_sed='
9883       /Import File Strings/,/^$/ {
9884           /^0/ {
9885               s/^0  *\([^ ]*\) *$/\1/
9886               p
9887           }
9888       }'
9889   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9890   # Check for a 64-bit object if we didn't find anything.
9891   if test -z "$lt_cv_aix_libpath_"; then
9892     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9893   fi
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext \
9896     conftest$ac_exeext conftest.$ac_ext
9897   if test -z "$lt_cv_aix_libpath_"; then
9898     lt_cv_aix_libpath_="/usr/lib:/lib"
9899   fi
9900
9901 fi
9902
9903   aix_libpath=$lt_cv_aix_libpath_
9904 fi
9905
9906         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9907         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9908       else
9909         if test "$host_cpu" = ia64; then
9910           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9911           allow_undefined_flag="-z nodefs"
9912           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9913         else
9914          # Determine the default libpath from the value encoded in an
9915          # empty executable.
9916          if test "${lt_cv_aix_libpath+set}" = set; then
9917   aix_libpath=$lt_cv_aix_libpath
9918 else
9919   if ${lt_cv_aix_libpath_+:} false; then :
9920   $as_echo_n "(cached) " >&6
9921 else
9922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h.  */
9924
9925 int
9926 main ()
9927 {
9928
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 if ac_fn_c_try_link "$LINENO"; then :
9934
9935   lt_aix_libpath_sed='
9936       /Import File Strings/,/^$/ {
9937           /^0/ {
9938               s/^0  *\([^ ]*\) *$/\1/
9939               p
9940           }
9941       }'
9942   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9943   # Check for a 64-bit object if we didn't find anything.
9944   if test -z "$lt_cv_aix_libpath_"; then
9945     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9946   fi
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext \
9949     conftest$ac_exeext conftest.$ac_ext
9950   if test -z "$lt_cv_aix_libpath_"; then
9951     lt_cv_aix_libpath_="/usr/lib:/lib"
9952   fi
9953
9954 fi
9955
9956   aix_libpath=$lt_cv_aix_libpath_
9957 fi
9958
9959          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9960           # Warning - without using the other run time loading flags,
9961           # -berok will link without error, but may produce a broken library.
9962           no_undefined_flag=' ${wl}-bernotok'
9963           allow_undefined_flag=' ${wl}-berok'
9964           if test "$with_gnu_ld" = yes; then
9965             # We only use this code for GNU lds that support --whole-archive.
9966             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9967           else
9968             # Exported symbols can be pulled into shared objects from archives
9969             whole_archive_flag_spec='$convenience'
9970           fi
9971           archive_cmds_need_lc=yes
9972           # This is similar to how AIX traditionally builds its shared libraries.
9973           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9974         fi
9975       fi
9976       ;;
9977
9978     amigaos*)
9979       case $host_cpu in
9980       powerpc)
9981             # see comment about AmigaOS4 .so support
9982             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983             archive_expsym_cmds=''
9984         ;;
9985       m68k)
9986             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9987             hardcode_libdir_flag_spec='-L$libdir'
9988             hardcode_minus_L=yes
9989         ;;
9990       esac
9991       ;;
9992
9993     bsdi[45]*)
9994       export_dynamic_flag_spec=-rdynamic
9995       ;;
9996
9997     cygwin* | mingw* | pw32* | cegcc*)
9998       # When not using gcc, we currently assume that we are using
9999       # Microsoft Visual C++.
10000       # hardcode_libdir_flag_spec is actually meaningless, as there is
10001       # no search path for DLLs.
10002       case $cc_basename in
10003       cl*)
10004         # Native MSVC
10005         hardcode_libdir_flag_spec=' '
10006         allow_undefined_flag=unsupported
10007         always_export_symbols=yes
10008         file_list_spec='@'
10009         # Tell ltmain to make .lib files, not .a files.
10010         libext=lib
10011         # Tell ltmain to make .dll files, not .so files.
10012         shrext_cmds=".dll"
10013         # FIXME: Setting linknames here is a bad hack.
10014         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10015         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10016             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10017           else
10018             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10019           fi~
10020           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10021           linknames='
10022         # The linker will not automatically build a static lib if we build a DLL.
10023         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10024         enable_shared_with_static_runtimes=yes
10025         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10026         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10027         # Don't use ranlib
10028         old_postinstall_cmds='chmod 644 $oldlib'
10029         postlink_cmds='lt_outputfile="@OUTPUT@"~
10030           lt_tool_outputfile="@TOOL_OUTPUT@"~
10031           case $lt_outputfile in
10032             *.exe|*.EXE) ;;
10033             *)
10034               lt_outputfile="$lt_outputfile.exe"
10035               lt_tool_outputfile="$lt_tool_outputfile.exe"
10036               ;;
10037           esac~
10038           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10039             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10040             $RM "$lt_outputfile.manifest";
10041           fi'
10042         ;;
10043       *)
10044         # Assume MSVC wrapper
10045         hardcode_libdir_flag_spec=' '
10046         allow_undefined_flag=unsupported
10047         # Tell ltmain to make .lib files, not .a files.
10048         libext=lib
10049         # Tell ltmain to make .dll files, not .so files.
10050         shrext_cmds=".dll"
10051         # FIXME: Setting linknames here is a bad hack.
10052         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10053         # The linker will automatically build a .lib file if we build a DLL.
10054         old_archive_from_new_cmds='true'
10055         # FIXME: Should let the user specify the lib program.
10056         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10057         enable_shared_with_static_runtimes=yes
10058         ;;
10059       esac
10060       ;;
10061
10062     darwin* | rhapsody*)
10063
10064
10065   archive_cmds_need_lc=no
10066   hardcode_direct=no
10067   hardcode_automatic=yes
10068   hardcode_shlibpath_var=unsupported
10069   if test "$lt_cv_ld_force_load" = "yes"; then
10070     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10071
10072   else
10073     whole_archive_flag_spec=''
10074   fi
10075   link_all_deplibs=yes
10076   allow_undefined_flag="$_lt_dar_allow_undefined"
10077   case $cc_basename in
10078      ifort*) _lt_dar_can_shared=yes ;;
10079      *) _lt_dar_can_shared=$GCC ;;
10080   esac
10081   if test "$_lt_dar_can_shared" = "yes"; then
10082     output_verbose_link_cmd=func_echo_all
10083     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10084     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10085     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10086     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10087
10088   else
10089   ld_shlibs=no
10090   fi
10091
10092       ;;
10093
10094     dgux*)
10095       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096       hardcode_libdir_flag_spec='-L$libdir'
10097       hardcode_shlibpath_var=no
10098       ;;
10099
10100     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10101     # support.  Future versions do this automatically, but an explicit c++rt0.o
10102     # does not break anything, and helps significantly (at the cost of a little
10103     # extra space).
10104     freebsd2.2*)
10105       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10106       hardcode_libdir_flag_spec='-R$libdir'
10107       hardcode_direct=yes
10108       hardcode_shlibpath_var=no
10109       ;;
10110
10111     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10112     freebsd2.*)
10113       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114       hardcode_direct=yes
10115       hardcode_minus_L=yes
10116       hardcode_shlibpath_var=no
10117       ;;
10118
10119     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10120     freebsd* | dragonfly*)
10121       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10122       hardcode_libdir_flag_spec='-R$libdir'
10123       hardcode_direct=yes
10124       hardcode_shlibpath_var=no
10125       ;;
10126
10127     hpux9*)
10128       if test "$GCC" = yes; then
10129         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10130       else
10131         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10132       fi
10133       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10134       hardcode_libdir_separator=:
10135       hardcode_direct=yes
10136
10137       # hardcode_minus_L: Not really in the search PATH,
10138       # but as the default location of the library.
10139       hardcode_minus_L=yes
10140       export_dynamic_flag_spec='${wl}-E'
10141       ;;
10142
10143     hpux10*)
10144       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10145         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10146       else
10147         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10148       fi
10149       if test "$with_gnu_ld" = no; then
10150         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10151         hardcode_libdir_separator=:
10152         hardcode_direct=yes
10153         hardcode_direct_absolute=yes
10154         export_dynamic_flag_spec='${wl}-E'
10155         # hardcode_minus_L: Not really in the search PATH,
10156         # but as the default location of the library.
10157         hardcode_minus_L=yes
10158       fi
10159       ;;
10160
10161     hpux11*)
10162       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10163         case $host_cpu in
10164         hppa*64*)
10165           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10166           ;;
10167         ia64*)
10168           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10169           ;;
10170         *)
10171           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10172           ;;
10173         esac
10174       else
10175         case $host_cpu in
10176         hppa*64*)
10177           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10178           ;;
10179         ia64*)
10180           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10181           ;;
10182         *)
10183
10184           # Older versions of the 11.00 compiler do not understand -b yet
10185           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10186           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10187 $as_echo_n "checking if $CC understands -b... " >&6; }
10188 if ${lt_cv_prog_compiler__b+:} false; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   lt_cv_prog_compiler__b=no
10192    save_LDFLAGS="$LDFLAGS"
10193    LDFLAGS="$LDFLAGS -b"
10194    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10195    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10196      # The linker can only warn and ignore the option if not recognized
10197      # So say no if there are warnings
10198      if test -s conftest.err; then
10199        # Append any errors to the config.log.
10200        cat conftest.err 1>&5
10201        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10202        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10203        if diff conftest.exp conftest.er2 >/dev/null; then
10204          lt_cv_prog_compiler__b=yes
10205        fi
10206      else
10207        lt_cv_prog_compiler__b=yes
10208      fi
10209    fi
10210    $RM -r conftest*
10211    LDFLAGS="$save_LDFLAGS"
10212
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10215 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10216
10217 if test x"$lt_cv_prog_compiler__b" = xyes; then
10218     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10219 else
10220     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10221 fi
10222
10223           ;;
10224         esac
10225       fi
10226       if test "$with_gnu_ld" = no; then
10227         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10228         hardcode_libdir_separator=:
10229
10230         case $host_cpu in
10231         hppa*64*|ia64*)
10232           hardcode_direct=no
10233           hardcode_shlibpath_var=no
10234           ;;
10235         *)
10236           hardcode_direct=yes
10237           hardcode_direct_absolute=yes
10238           export_dynamic_flag_spec='${wl}-E'
10239
10240           # hardcode_minus_L: Not really in the search PATH,
10241           # but as the default location of the library.
10242           hardcode_minus_L=yes
10243           ;;
10244         esac
10245       fi
10246       ;;
10247
10248     irix5* | irix6* | nonstopux*)
10249       if test "$GCC" = yes; then
10250         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10251         # Try to use the -exported_symbol ld option, if it does not
10252         # work, assume that -exports_file does not work either and
10253         # implicitly export all symbols.
10254         # This should be the same for all languages, so no per-tag cache variable.
10255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10256 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10257 if ${lt_cv_irix_exported_symbol+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   save_LDFLAGS="$LDFLAGS"
10261            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10262            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h.  */
10264 int foo (void) { return 0; }
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267   lt_cv_irix_exported_symbol=yes
10268 else
10269   lt_cv_irix_exported_symbol=no
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext \
10272     conftest$ac_exeext conftest.$ac_ext
10273            LDFLAGS="$save_LDFLAGS"
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10276 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10277         if test "$lt_cv_irix_exported_symbol" = yes; then
10278           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10279         fi
10280       else
10281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10282         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10283       fi
10284       archive_cmds_need_lc='no'
10285       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286       hardcode_libdir_separator=:
10287       inherit_rpath=yes
10288       link_all_deplibs=yes
10289       ;;
10290
10291     netbsd* | netbsdelf*-gnu)
10292       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10293         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10294       else
10295         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10296       fi
10297       hardcode_libdir_flag_spec='-R$libdir'
10298       hardcode_direct=yes
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     newsos6)
10303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304       hardcode_direct=yes
10305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10306       hardcode_libdir_separator=:
10307       hardcode_shlibpath_var=no
10308       ;;
10309
10310     *nto* | *qnx*)
10311       ;;
10312
10313     openbsd*)
10314       if test -f /usr/libexec/ld.so; then
10315         hardcode_direct=yes
10316         hardcode_shlibpath_var=no
10317         hardcode_direct_absolute=yes
10318         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10319           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10320           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10321           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10322           export_dynamic_flag_spec='${wl}-E'
10323         else
10324           case $host_os in
10325            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10326              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10327              hardcode_libdir_flag_spec='-R$libdir'
10328              ;;
10329            *)
10330              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10331              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10332              ;;
10333           esac
10334         fi
10335       else
10336         ld_shlibs=no
10337       fi
10338       ;;
10339
10340     os2*)
10341       hardcode_libdir_flag_spec='-L$libdir'
10342       hardcode_minus_L=yes
10343       allow_undefined_flag=unsupported
10344       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10345       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10346       ;;
10347
10348     osf3*)
10349       if test "$GCC" = yes; then
10350         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10351         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10352       else
10353         allow_undefined_flag=' -expect_unresolved \*'
10354         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10355       fi
10356       archive_cmds_need_lc='no'
10357       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10358       hardcode_libdir_separator=:
10359       ;;
10360
10361     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10362       if test "$GCC" = yes; then
10363         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10364         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10365         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10366       else
10367         allow_undefined_flag=' -expect_unresolved \*'
10368         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10369         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10370         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10371
10372         # Both c and cxx compiler support -rpath directly
10373         hardcode_libdir_flag_spec='-rpath $libdir'
10374       fi
10375       archive_cmds_need_lc='no'
10376       hardcode_libdir_separator=:
10377       ;;
10378
10379     solaris*)
10380       no_undefined_flag=' -z defs'
10381       if test "$GCC" = yes; then
10382         wlarc='${wl}'
10383         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10384         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10385           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10386       else
10387         case `$CC -V 2>&1` in
10388         *"Compilers 5.0"*)
10389           wlarc=''
10390           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10392           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10393           ;;
10394         *)
10395           wlarc='${wl}'
10396           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10397           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10398           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10399           ;;
10400         esac
10401       fi
10402       hardcode_libdir_flag_spec='-R$libdir'
10403       hardcode_shlibpath_var=no
10404       case $host_os in
10405       solaris2.[0-5] | solaris2.[0-5].*) ;;
10406       *)
10407         # The compiler driver will combine and reorder linker options,
10408         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10409         # but is careful enough not to reorder.
10410         # Supported since Solaris 2.6 (maybe 2.5.1?)
10411         if test "$GCC" = yes; then
10412           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10413         else
10414           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10415         fi
10416         ;;
10417       esac
10418       link_all_deplibs=yes
10419       ;;
10420
10421     sunos4*)
10422       if test "x$host_vendor" = xsequent; then
10423         # Use $CC to link under sequent, because it throws in some extra .o
10424         # files that make .init and .fini sections work.
10425         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10426       else
10427         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10428       fi
10429       hardcode_libdir_flag_spec='-L$libdir'
10430       hardcode_direct=yes
10431       hardcode_minus_L=yes
10432       hardcode_shlibpath_var=no
10433       ;;
10434
10435     sysv4)
10436       case $host_vendor in
10437         sni)
10438           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439           hardcode_direct=yes # is this really true???
10440         ;;
10441         siemens)
10442           ## LD is ld it makes a PLAMLIB
10443           ## CC just makes a GrossModule.
10444           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10445           reload_cmds='$CC -r -o $output$reload_objs'
10446           hardcode_direct=no
10447         ;;
10448         motorola)
10449           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10451         ;;
10452       esac
10453       runpath_var='LD_RUN_PATH'
10454       hardcode_shlibpath_var=no
10455       ;;
10456
10457     sysv4.3*)
10458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459       hardcode_shlibpath_var=no
10460       export_dynamic_flag_spec='-Bexport'
10461       ;;
10462
10463     sysv4*MP*)
10464       if test -d /usr/nec; then
10465         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466         hardcode_shlibpath_var=no
10467         runpath_var=LD_RUN_PATH
10468         hardcode_runpath_var=yes
10469         ld_shlibs=yes
10470       fi
10471       ;;
10472
10473     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10474       no_undefined_flag='${wl}-z,text'
10475       archive_cmds_need_lc=no
10476       hardcode_shlibpath_var=no
10477       runpath_var='LD_RUN_PATH'
10478
10479       if test "$GCC" = yes; then
10480         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482       else
10483         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485       fi
10486       ;;
10487
10488     sysv5* | sco3.2v5* | sco5v6*)
10489       # Note: We can NOT use -z defs as we might desire, because we do not
10490       # link with -lc, and that would cause any symbols used from libc to
10491       # always be unresolved, which means just about no library would
10492       # ever link correctly.  If we're not using GNU ld we use -z text
10493       # though, which does catch some bad symbols but isn't as heavy-handed
10494       # as -z defs.
10495       no_undefined_flag='${wl}-z,text'
10496       allow_undefined_flag='${wl}-z,nodefs'
10497       archive_cmds_need_lc=no
10498       hardcode_shlibpath_var=no
10499       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10500       hardcode_libdir_separator=':'
10501       link_all_deplibs=yes
10502       export_dynamic_flag_spec='${wl}-Bexport'
10503       runpath_var='LD_RUN_PATH'
10504
10505       if test "$GCC" = yes; then
10506         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10507         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10508       else
10509         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511       fi
10512       ;;
10513
10514     uts4*)
10515       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516       hardcode_libdir_flag_spec='-L$libdir'
10517       hardcode_shlibpath_var=no
10518       ;;
10519
10520     *)
10521       ld_shlibs=no
10522       ;;
10523     esac
10524
10525     if test x$host_vendor = xsni; then
10526       case $host in
10527       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10528         export_dynamic_flag_spec='${wl}-Blargedynsym'
10529         ;;
10530       esac
10531     fi
10532   fi
10533
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10535 $as_echo "$ld_shlibs" >&6; }
10536 test "$ld_shlibs" = no && can_build_shared=no
10537
10538 with_gnu_ld=$with_gnu_ld
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554 #
10555 # Do we need to explicitly link libc?
10556 #
10557 case "x$archive_cmds_need_lc" in
10558 x|xyes)
10559   # Assume -lc should be added
10560   archive_cmds_need_lc=yes
10561
10562   if test "$enable_shared" = yes && test "$GCC" = yes; then
10563     case $archive_cmds in
10564     *'~'*)
10565       # FIXME: we may have to deal with multi-command sequences.
10566       ;;
10567     '$CC '*)
10568       # Test whether the compiler implicitly links with -lc since on some
10569       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10570       # to ld, don't add -lc before -lgcc.
10571       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10572 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10573 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   $RM conftest*
10577         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10578
10579         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10580   (eval $ac_compile) 2>&5
10581   ac_status=$?
10582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10583   test $ac_status = 0; } 2>conftest.err; then
10584           soname=conftest
10585           lib=conftest
10586           libobjs=conftest.$ac_objext
10587           deplibs=
10588           wl=$lt_prog_compiler_wl
10589           pic_flag=$lt_prog_compiler_pic
10590           compiler_flags=-v
10591           linker_flags=-v
10592           verstring=
10593           output_objdir=.
10594           libname=conftest
10595           lt_save_allow_undefined_flag=$allow_undefined_flag
10596           allow_undefined_flag=
10597           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10598   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10599   ac_status=$?
10600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10601   test $ac_status = 0; }
10602           then
10603             lt_cv_archive_cmds_need_lc=no
10604           else
10605             lt_cv_archive_cmds_need_lc=yes
10606           fi
10607           allow_undefined_flag=$lt_save_allow_undefined_flag
10608         else
10609           cat conftest.err 1>&5
10610         fi
10611         $RM conftest*
10612
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10615 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10616       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10617       ;;
10618     esac
10619   fi
10620   ;;
10621 esac
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10775 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10776
10777 if test "$GCC" = yes; then
10778   case $host_os in
10779     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10780     *) lt_awk_arg="/^libraries:/" ;;
10781   esac
10782   case $host_os in
10783     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10784     *) lt_sed_strip_eq="s,=/,/,g" ;;
10785   esac
10786   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10787   case $lt_search_path_spec in
10788   *\;*)
10789     # if the path contains ";" then we assume it to be the separator
10790     # otherwise default to the standard path separator (i.e. ":") - it is
10791     # assumed that no part of a normal pathname contains ";" but that should
10792     # okay in the real world where ";" in dirpaths is itself problematic.
10793     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10794     ;;
10795   *)
10796     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10797     ;;
10798   esac
10799   # Ok, now we have the path, separated by spaces, we can step through it
10800   # and add multilib dir if necessary.
10801   lt_tmp_lt_search_path_spec=
10802   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10803   for lt_sys_path in $lt_search_path_spec; do
10804     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10805       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10806     else
10807       test -d "$lt_sys_path" && \
10808         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10809     fi
10810   done
10811   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10812 BEGIN {RS=" "; FS="/|\n";} {
10813   lt_foo="";
10814   lt_count=0;
10815   for (lt_i = NF; lt_i > 0; lt_i--) {
10816     if ($lt_i != "" && $lt_i != ".") {
10817       if ($lt_i == "..") {
10818         lt_count++;
10819       } else {
10820         if (lt_count == 0) {
10821           lt_foo="/" $lt_i lt_foo;
10822         } else {
10823           lt_count--;
10824         }
10825       }
10826     }
10827   }
10828   if (lt_foo != "") { lt_freq[lt_foo]++; }
10829   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10830 }'`
10831   # AWK program above erroneously prepends '/' to C:/dos/paths
10832   # for these hosts.
10833   case $host_os in
10834     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10835       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10836   esac
10837   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10838 else
10839   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10840 fi
10841 library_names_spec=
10842 libname_spec='lib$name'
10843 soname_spec=
10844 shrext_cmds=".so"
10845 postinstall_cmds=
10846 postuninstall_cmds=
10847 finish_cmds=
10848 finish_eval=
10849 shlibpath_var=
10850 shlibpath_overrides_runpath=unknown
10851 version_type=none
10852 dynamic_linker="$host_os ld.so"
10853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10854 need_lib_prefix=unknown
10855 hardcode_into_libs=no
10856
10857 # when you set need_version to no, make sure it does not cause -set_version
10858 # flags to be left without arguments
10859 need_version=unknown
10860
10861 case $host_os in
10862 aix3*)
10863   version_type=linux # correct to gnu/linux during the next big refactor
10864   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10865   shlibpath_var=LIBPATH
10866
10867   # AIX 3 has no versioning support, so we append a major version to the name.
10868   soname_spec='${libname}${release}${shared_ext}$major'
10869   ;;
10870
10871 aix[4-9]*)
10872   version_type=linux # correct to gnu/linux during the next big refactor
10873   need_lib_prefix=no
10874   need_version=no
10875   hardcode_into_libs=yes
10876   if test "$host_cpu" = ia64; then
10877     # AIX 5 supports IA64
10878     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10879     shlibpath_var=LD_LIBRARY_PATH
10880   else
10881     # With GCC up to 2.95.x, collect2 would create an import file
10882     # for dependence libraries.  The import file would start with
10883     # the line `#! .'.  This would cause the generated library to
10884     # depend on `.', always an invalid library.  This was fixed in
10885     # development snapshots of GCC prior to 3.0.
10886     case $host_os in
10887       aix4 | aix4.[01] | aix4.[01].*)
10888       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10889            echo ' yes '
10890            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10891         :
10892       else
10893         can_build_shared=no
10894       fi
10895       ;;
10896     esac
10897     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10898     # soname into executable. Probably we can add versioning support to
10899     # collect2, so additional links can be useful in future.
10900     if test "$aix_use_runtimelinking" = yes; then
10901       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10902       # instead of lib<name>.a to let people know that these are not
10903       # typical AIX shared libraries.
10904       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905     else
10906       # We preserve .a as extension for shared libraries through AIX4.2
10907       # and later when we are not doing run time linking.
10908       library_names_spec='${libname}${release}.a $libname.a'
10909       soname_spec='${libname}${release}${shared_ext}$major'
10910     fi
10911     shlibpath_var=LIBPATH
10912   fi
10913   ;;
10914
10915 amigaos*)
10916   case $host_cpu in
10917   powerpc)
10918     # Since July 2007 AmigaOS4 officially supports .so libraries.
10919     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921     ;;
10922   m68k)
10923     library_names_spec='$libname.ixlibrary $libname.a'
10924     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10925     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10926     ;;
10927   esac
10928   ;;
10929
10930 beos*)
10931   library_names_spec='${libname}${shared_ext}'
10932   dynamic_linker="$host_os ld.so"
10933   shlibpath_var=LIBRARY_PATH
10934   ;;
10935
10936 bsdi[45]*)
10937   version_type=linux # correct to gnu/linux during the next big refactor
10938   need_version=no
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10942   shlibpath_var=LD_LIBRARY_PATH
10943   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10944   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10945   # the default ld.so.conf also contains /usr/contrib/lib and
10946   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10947   # libtool to hard-code these into programs
10948   ;;
10949
10950 cygwin* | mingw* | pw32* | cegcc*)
10951   version_type=windows
10952   shrext_cmds=".dll"
10953   need_version=no
10954   need_lib_prefix=no
10955
10956   case $GCC,$cc_basename in
10957   yes,*)
10958     # gcc
10959     library_names_spec='$libname.dll.a'
10960     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10961     postinstall_cmds='base_file=`basename \${file}`~
10962       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10963       dldir=$destdir/`dirname \$dlpath`~
10964       test -d \$dldir || mkdir -p \$dldir~
10965       $install_prog $dir/$dlname \$dldir/$dlname~
10966       chmod a+x \$dldir/$dlname~
10967       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10968         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10969       fi'
10970     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10971       dlpath=$dir/\$dldll~
10972        $RM \$dlpath'
10973     shlibpath_overrides_runpath=yes
10974
10975     case $host_os in
10976     cygwin*)
10977       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10978       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10979
10980       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10981       ;;
10982     mingw* | cegcc*)
10983       # MinGW DLLs use traditional 'lib' prefix
10984       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10985       ;;
10986     pw32*)
10987       # pw32 DLLs use 'pw' prefix rather than 'lib'
10988       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10989       ;;
10990     esac
10991     dynamic_linker='Win32 ld.exe'
10992     ;;
10993
10994   *,cl*)
10995     # Native MSVC
10996     libname_spec='$name'
10997     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10998     library_names_spec='${libname}.dll.lib'
10999
11000     case $build_os in
11001     mingw*)
11002       sys_lib_search_path_spec=
11003       lt_save_ifs=$IFS
11004       IFS=';'
11005       for lt_path in $LIB
11006       do
11007         IFS=$lt_save_ifs
11008         # Let DOS variable expansion print the short 8.3 style file name.
11009         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11010         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11011       done
11012       IFS=$lt_save_ifs
11013       # Convert to MSYS style.
11014       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11015       ;;
11016     cygwin*)
11017       # Convert to unix form, then to dos form, then back to unix form
11018       # but this time dos style (no spaces!) so that the unix form looks
11019       # like /cygdrive/c/PROGRA~1:/cygdr...
11020       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11021       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11022       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11023       ;;
11024     *)
11025       sys_lib_search_path_spec="$LIB"
11026       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11027         # It is most probably a Windows format PATH.
11028         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11029       else
11030         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11031       fi
11032       # FIXME: find the short name or the path components, as spaces are
11033       # common. (e.g. "Program Files" -> "PROGRA~1")
11034       ;;
11035     esac
11036
11037     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11038     postinstall_cmds='base_file=`basename \${file}`~
11039       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11040       dldir=$destdir/`dirname \$dlpath`~
11041       test -d \$dldir || mkdir -p \$dldir~
11042       $install_prog $dir/$dlname \$dldir/$dlname'
11043     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11044       dlpath=$dir/\$dldll~
11045        $RM \$dlpath'
11046     shlibpath_overrides_runpath=yes
11047     dynamic_linker='Win32 link.exe'
11048     ;;
11049
11050   *)
11051     # Assume MSVC wrapper
11052     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11053     dynamic_linker='Win32 ld.exe'
11054     ;;
11055   esac
11056   # FIXME: first we should search . and the directory the executable is in
11057   shlibpath_var=PATH
11058   ;;
11059
11060 darwin* | rhapsody*)
11061   dynamic_linker="$host_os dyld"
11062   version_type=darwin
11063   need_lib_prefix=no
11064   need_version=no
11065   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11066   soname_spec='${libname}${release}${major}$shared_ext'
11067   shlibpath_overrides_runpath=yes
11068   shlibpath_var=DYLD_LIBRARY_PATH
11069   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11070
11071   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11072   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11073   ;;
11074
11075 dgux*)
11076   version_type=linux # correct to gnu/linux during the next big refactor
11077   need_lib_prefix=no
11078   need_version=no
11079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11080   soname_spec='${libname}${release}${shared_ext}$major'
11081   shlibpath_var=LD_LIBRARY_PATH
11082   ;;
11083
11084 freebsd* | dragonfly*)
11085   # DragonFly does not have aout.  When/if they implement a new
11086   # versioning mechanism, adjust this.
11087   if test -x /usr/bin/objformat; then
11088     objformat=`/usr/bin/objformat`
11089   else
11090     case $host_os in
11091     freebsd[23].*) objformat=aout ;;
11092     *) objformat=elf ;;
11093     esac
11094   fi
11095   version_type=freebsd-$objformat
11096   case $version_type in
11097     freebsd-elf*)
11098       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11099       need_version=no
11100       need_lib_prefix=no
11101       ;;
11102     freebsd-*)
11103       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11104       need_version=yes
11105       ;;
11106   esac
11107   shlibpath_var=LD_LIBRARY_PATH
11108   case $host_os in
11109   freebsd2.*)
11110     shlibpath_overrides_runpath=yes
11111     ;;
11112   freebsd3.[01]* | freebsdelf3.[01]*)
11113     shlibpath_overrides_runpath=yes
11114     hardcode_into_libs=yes
11115     ;;
11116   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11117   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11118     shlibpath_overrides_runpath=no
11119     hardcode_into_libs=yes
11120     ;;
11121   *) # from 4.6 on, and DragonFly
11122     shlibpath_overrides_runpath=yes
11123     hardcode_into_libs=yes
11124     ;;
11125   esac
11126   ;;
11127
11128 haiku*)
11129   version_type=linux # correct to gnu/linux during the next big refactor
11130   need_lib_prefix=no
11131   need_version=no
11132   dynamic_linker="$host_os runtime_loader"
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   shlibpath_var=LIBRARY_PATH
11136   shlibpath_overrides_runpath=yes
11137   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11138   hardcode_into_libs=yes
11139   ;;
11140
11141 hpux9* | hpux10* | hpux11*)
11142   # Give a soname corresponding to the major version so that dld.sl refuses to
11143   # link against other versions.
11144   version_type=sunos
11145   need_lib_prefix=no
11146   need_version=no
11147   case $host_cpu in
11148   ia64*)
11149     shrext_cmds='.so'
11150     hardcode_into_libs=yes
11151     dynamic_linker="$host_os dld.so"
11152     shlibpath_var=LD_LIBRARY_PATH
11153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155     soname_spec='${libname}${release}${shared_ext}$major'
11156     if test "X$HPUX_IA64_MODE" = X32; then
11157       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11158     else
11159       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11160     fi
11161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11162     ;;
11163   hppa*64*)
11164     shrext_cmds='.sl'
11165     hardcode_into_libs=yes
11166     dynamic_linker="$host_os dld.sl"
11167     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170     soname_spec='${libname}${release}${shared_ext}$major'
11171     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11172     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11173     ;;
11174   *)
11175     shrext_cmds='.sl'
11176     dynamic_linker="$host_os dld.sl"
11177     shlibpath_var=SHLIB_PATH
11178     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180     soname_spec='${libname}${release}${shared_ext}$major'
11181     ;;
11182   esac
11183   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11184   postinstall_cmds='chmod 555 $lib'
11185   # or fails outright, so override atomically:
11186   install_override_mode=555
11187   ;;
11188
11189 interix[3-9]*)
11190   version_type=linux # correct to gnu/linux during the next big refactor
11191   need_lib_prefix=no
11192   need_version=no
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11194   soname_spec='${libname}${release}${shared_ext}$major'
11195   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11196   shlibpath_var=LD_LIBRARY_PATH
11197   shlibpath_overrides_runpath=no
11198   hardcode_into_libs=yes
11199   ;;
11200
11201 irix5* | irix6* | nonstopux*)
11202   case $host_os in
11203     nonstopux*) version_type=nonstopux ;;
11204     *)
11205         if test "$lt_cv_prog_gnu_ld" = yes; then
11206                 version_type=linux # correct to gnu/linux during the next big refactor
11207         else
11208                 version_type=irix
11209         fi ;;
11210   esac
11211   need_lib_prefix=no
11212   need_version=no
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11215   case $host_os in
11216   irix5* | nonstopux*)
11217     libsuff= shlibsuff=
11218     ;;
11219   *)
11220     case $LD in # libtool.m4 will add one of these switches to LD
11221     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11222       libsuff= shlibsuff= libmagic=32-bit;;
11223     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11224       libsuff=32 shlibsuff=N32 libmagic=N32;;
11225     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11226       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11227     *) libsuff= shlibsuff= libmagic=never-match;;
11228     esac
11229     ;;
11230   esac
11231   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11232   shlibpath_overrides_runpath=no
11233   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11234   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11235   hardcode_into_libs=yes
11236   ;;
11237
11238 # No shared lib support for Linux oldld, aout, or coff.
11239 linux*oldld* | linux*aout* | linux*coff*)
11240   dynamic_linker=no
11241   ;;
11242
11243 # This must be glibc/ELF.
11244 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11245   version_type=linux # correct to gnu/linux during the next big refactor
11246   need_lib_prefix=no
11247   need_version=no
11248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249   soname_spec='${libname}${release}${shared_ext}$major'
11250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11251   shlibpath_var=LD_LIBRARY_PATH
11252   shlibpath_overrides_runpath=no
11253
11254   # Some binutils ld are patched to set DT_RUNPATH
11255   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   lt_cv_shlibpath_overrides_runpath=no
11259     save_LDFLAGS=$LDFLAGS
11260     save_libdir=$libdir
11261     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11262          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11263     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h.  */
11265
11266 int
11267 main ()
11268 {
11269
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11276   lt_cv_shlibpath_overrides_runpath=yes
11277 fi
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280     conftest$ac_exeext conftest.$ac_ext
11281     LDFLAGS=$save_LDFLAGS
11282     libdir=$save_libdir
11283
11284 fi
11285
11286   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11287
11288   # This implies no fast_install, which is unacceptable.
11289   # Some rework will be needed to allow for fast_install
11290   # before this can be enabled.
11291   hardcode_into_libs=yes
11292
11293   # Append ld.so.conf contents to the search path
11294   if test -f /etc/ld.so.conf; then
11295     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11296     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11297   fi
11298
11299   # We used to test for /lib/ld.so.1 and disable shared libraries on
11300   # powerpc, because MkLinux only supported shared libraries with the
11301   # GNU dynamic linker.  Since this was broken with cross compilers,
11302   # most powerpc-linux boxes support dynamic linking these days and
11303   # people can always --disable-shared, the test was removed, and we
11304   # assume the GNU/Linux dynamic linker is in use.
11305   dynamic_linker='GNU/Linux ld.so'
11306   ;;
11307
11308 netbsdelf*-gnu)
11309   version_type=linux
11310   need_lib_prefix=no
11311   need_version=no
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11313   soname_spec='${libname}${release}${shared_ext}$major'
11314   shlibpath_var=LD_LIBRARY_PATH
11315   shlibpath_overrides_runpath=no
11316   hardcode_into_libs=yes
11317   dynamic_linker='NetBSD ld.elf_so'
11318   ;;
11319
11320 netbsd*)
11321   version_type=sunos
11322   need_lib_prefix=no
11323   need_version=no
11324   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11326     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11327     dynamic_linker='NetBSD (a.out) ld.so'
11328   else
11329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11330     soname_spec='${libname}${release}${shared_ext}$major'
11331     dynamic_linker='NetBSD ld.elf_so'
11332   fi
11333   shlibpath_var=LD_LIBRARY_PATH
11334   shlibpath_overrides_runpath=yes
11335   hardcode_into_libs=yes
11336   ;;
11337
11338 newsos6)
11339   version_type=linux # correct to gnu/linux during the next big refactor
11340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341   shlibpath_var=LD_LIBRARY_PATH
11342   shlibpath_overrides_runpath=yes
11343   ;;
11344
11345 *nto* | *qnx*)
11346   version_type=qnx
11347   need_lib_prefix=no
11348   need_version=no
11349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350   soname_spec='${libname}${release}${shared_ext}$major'
11351   shlibpath_var=LD_LIBRARY_PATH
11352   shlibpath_overrides_runpath=no
11353   hardcode_into_libs=yes
11354   dynamic_linker='ldqnx.so'
11355   ;;
11356
11357 openbsd*)
11358   version_type=sunos
11359   sys_lib_dlsearch_path_spec="/usr/lib"
11360   need_lib_prefix=no
11361   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11362   case $host_os in
11363     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11364     *)                          need_version=no  ;;
11365   esac
11366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11368   shlibpath_var=LD_LIBRARY_PATH
11369   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11370     case $host_os in
11371       openbsd2.[89] | openbsd2.[89].*)
11372         shlibpath_overrides_runpath=no
11373         ;;
11374       *)
11375         shlibpath_overrides_runpath=yes
11376         ;;
11377       esac
11378   else
11379     shlibpath_overrides_runpath=yes
11380   fi
11381   ;;
11382
11383 os2*)
11384   libname_spec='$name'
11385   shrext_cmds=".dll"
11386   need_lib_prefix=no
11387   library_names_spec='$libname${shared_ext} $libname.a'
11388   dynamic_linker='OS/2 ld.exe'
11389   shlibpath_var=LIBPATH
11390   ;;
11391
11392 osf3* | osf4* | osf5*)
11393   version_type=osf
11394   need_lib_prefix=no
11395   need_version=no
11396   soname_spec='${libname}${release}${shared_ext}$major'
11397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11400   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11401   ;;
11402
11403 rdos*)
11404   dynamic_linker=no
11405   ;;
11406
11407 solaris*)
11408   version_type=linux # correct to gnu/linux during the next big refactor
11409   need_lib_prefix=no
11410   need_version=no
11411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412   soname_spec='${libname}${release}${shared_ext}$major'
11413   shlibpath_var=LD_LIBRARY_PATH
11414   shlibpath_overrides_runpath=yes
11415   hardcode_into_libs=yes
11416   # ldd complains unless libraries are executable
11417   postinstall_cmds='chmod +x $lib'
11418   ;;
11419
11420 sunos4*)
11421   version_type=sunos
11422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11423   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   shlibpath_overrides_runpath=yes
11426   if test "$with_gnu_ld" = yes; then
11427     need_lib_prefix=no
11428   fi
11429   need_version=yes
11430   ;;
11431
11432 sysv4 | sysv4.3*)
11433   version_type=linux # correct to gnu/linux during the next big refactor
11434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435   soname_spec='${libname}${release}${shared_ext}$major'
11436   shlibpath_var=LD_LIBRARY_PATH
11437   case $host_vendor in
11438     sni)
11439       shlibpath_overrides_runpath=no
11440       need_lib_prefix=no
11441       runpath_var=LD_RUN_PATH
11442       ;;
11443     siemens)
11444       need_lib_prefix=no
11445       ;;
11446     motorola)
11447       need_lib_prefix=no
11448       need_version=no
11449       shlibpath_overrides_runpath=no
11450       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11451       ;;
11452   esac
11453   ;;
11454
11455 sysv4*MP*)
11456   if test -d /usr/nec ;then
11457     version_type=linux # correct to gnu/linux during the next big refactor
11458     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11459     soname_spec='$libname${shared_ext}.$major'
11460     shlibpath_var=LD_LIBRARY_PATH
11461   fi
11462   ;;
11463
11464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11465   version_type=freebsd-elf
11466   need_lib_prefix=no
11467   need_version=no
11468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11469   soname_spec='${libname}${release}${shared_ext}$major'
11470   shlibpath_var=LD_LIBRARY_PATH
11471   shlibpath_overrides_runpath=yes
11472   hardcode_into_libs=yes
11473   if test "$with_gnu_ld" = yes; then
11474     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11475   else
11476     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11477     case $host_os in
11478       sco3.2v5*)
11479         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11480         ;;
11481     esac
11482   fi
11483   sys_lib_dlsearch_path_spec='/usr/lib'
11484   ;;
11485
11486 tpf*)
11487   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11488   version_type=linux # correct to gnu/linux during the next big refactor
11489   need_lib_prefix=no
11490   need_version=no
11491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492   shlibpath_var=LD_LIBRARY_PATH
11493   shlibpath_overrides_runpath=no
11494   hardcode_into_libs=yes
11495   ;;
11496
11497 uts4*)
11498   version_type=linux # correct to gnu/linux during the next big refactor
11499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500   soname_spec='${libname}${release}${shared_ext}$major'
11501   shlibpath_var=LD_LIBRARY_PATH
11502   ;;
11503
11504 *)
11505   dynamic_linker=no
11506   ;;
11507 esac
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11509 $as_echo "$dynamic_linker" >&6; }
11510 test "$dynamic_linker" = no && can_build_shared=no
11511
11512 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11513 if test "$GCC" = yes; then
11514   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11515 fi
11516
11517 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11518   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11519 fi
11520 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11521   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11522 fi
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11616 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11617 hardcode_action=
11618 if test -n "$hardcode_libdir_flag_spec" ||
11619    test -n "$runpath_var" ||
11620    test "X$hardcode_automatic" = "Xyes" ; then
11621
11622   # We can hardcode non-existent directories.
11623   if test "$hardcode_direct" != no &&
11624      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11625      # have to relink, otherwise we might link with an installed library
11626      # when we should be linking with a yet-to-be-installed one
11627      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11628      test "$hardcode_minus_L" != no; then
11629     # Linking always hardcodes the temporary library directory.
11630     hardcode_action=relink
11631   else
11632     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11633     hardcode_action=immediate
11634   fi
11635 else
11636   # We cannot hardcode anything, or else we can only hardcode existing
11637   # directories.
11638   hardcode_action=unsupported
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11641 $as_echo "$hardcode_action" >&6; }
11642
11643 if test "$hardcode_action" = relink ||
11644    test "$inherit_rpath" = yes; then
11645   # Fast installation is not supported
11646   enable_fast_install=no
11647 elif test "$shlibpath_overrides_runpath" = yes ||
11648      test "$enable_shared" = no; then
11649   # Fast installation is not necessary
11650   enable_fast_install=needless
11651 fi
11652
11653
11654
11655
11656
11657
11658   if test "x$enable_dlopen" != xyes; then
11659   enable_dlopen=unknown
11660   enable_dlopen_self=unknown
11661   enable_dlopen_self_static=unknown
11662 else
11663   lt_cv_dlopen=no
11664   lt_cv_dlopen_libs=
11665
11666   case $host_os in
11667   beos*)
11668     lt_cv_dlopen="load_add_on"
11669     lt_cv_dlopen_libs=
11670     lt_cv_dlopen_self=yes
11671     ;;
11672
11673   mingw* | pw32* | cegcc*)
11674     lt_cv_dlopen="LoadLibrary"
11675     lt_cv_dlopen_libs=
11676     ;;
11677
11678   cygwin*)
11679     lt_cv_dlopen="dlopen"
11680     lt_cv_dlopen_libs=
11681     ;;
11682
11683   darwin*)
11684   # if libdl is installed we need to link against it
11685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11686 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11687 if ${ac_cv_lib_dl_dlopen+:} false; then :
11688   $as_echo_n "(cached) " >&6
11689 else
11690   ac_check_lib_save_LIBS=$LIBS
11691 LIBS="-ldl  $LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h.  */
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696    Use char because int might match the return type of a GCC
11697    builtin and then its argument prototype would still apply.  */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char dlopen ();
11702 int
11703 main ()
11704 {
11705 return dlopen ();
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711   ac_cv_lib_dl_dlopen=yes
11712 else
11713   ac_cv_lib_dl_dlopen=no
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716     conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11720 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11721 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11722   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11723 else
11724
11725     lt_cv_dlopen="dyld"
11726     lt_cv_dlopen_libs=
11727     lt_cv_dlopen_self=yes
11728
11729 fi
11730
11731     ;;
11732
11733   *)
11734     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11735 if test "x$ac_cv_func_shl_load" = xyes; then :
11736   lt_cv_dlopen="shl_load"
11737 else
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11739 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11740 if ${ac_cv_lib_dld_shl_load+:} false; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743   ac_check_lib_save_LIBS=$LIBS
11744 LIBS="-ldld  $LIBS"
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h.  */
11747
11748 /* Override any GCC internal prototype to avoid an error.
11749    Use char because int might match the return type of a GCC
11750    builtin and then its argument prototype would still apply.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 char shl_load ();
11755 int
11756 main ()
11757 {
11758 return shl_load ();
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 if ac_fn_c_try_link "$LINENO"; then :
11764   ac_cv_lib_dld_shl_load=yes
11765 else
11766   ac_cv_lib_dld_shl_load=no
11767 fi
11768 rm -f core conftest.err conftest.$ac_objext \
11769     conftest$ac_exeext conftest.$ac_ext
11770 LIBS=$ac_check_lib_save_LIBS
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11773 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11774 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11775   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11776 else
11777   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11778 if test "x$ac_cv_func_dlopen" = xyes; then :
11779   lt_cv_dlopen="dlopen"
11780 else
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11782 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11783 if ${ac_cv_lib_dl_dlopen+:} false; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-ldl  $LIBS"
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h.  */
11790
11791 /* Override any GCC internal prototype to avoid an error.
11792    Use char because int might match the return type of a GCC
11793    builtin and then its argument prototype would still apply.  */
11794 #ifdef __cplusplus
11795 extern "C"
11796 #endif
11797 char dlopen ();
11798 int
11799 main ()
11800 {
11801 return dlopen ();
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_link "$LINENO"; then :
11807   ac_cv_lib_dl_dlopen=yes
11808 else
11809   ac_cv_lib_dl_dlopen=no
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext \
11812     conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11816 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11817 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11818   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11819 else
11820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11821 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11822 if ${ac_cv_lib_svld_dlopen+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   ac_check_lib_save_LIBS=$LIBS
11826 LIBS="-lsvld  $LIBS"
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h.  */
11829
11830 /* Override any GCC internal prototype to avoid an error.
11831    Use char because int might match the return type of a GCC
11832    builtin and then its argument prototype would still apply.  */
11833 #ifdef __cplusplus
11834 extern "C"
11835 #endif
11836 char dlopen ();
11837 int
11838 main ()
11839 {
11840 return dlopen ();
11841   ;
11842   return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846   ac_cv_lib_svld_dlopen=yes
11847 else
11848   ac_cv_lib_svld_dlopen=no
11849 fi
11850 rm -f core conftest.err conftest.$ac_objext \
11851     conftest$ac_exeext conftest.$ac_ext
11852 LIBS=$ac_check_lib_save_LIBS
11853 fi
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11855 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11856 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11857   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11858 else
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11860 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11861 if ${ac_cv_lib_dld_dld_link+:} false; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864   ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-ldld  $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h.  */
11868
11869 /* Override any GCC internal prototype to avoid an error.
11870    Use char because int might match the return type of a GCC
11871    builtin and then its argument prototype would still apply.  */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char dld_link ();
11876 int
11877 main ()
11878 {
11879 return dld_link ();
11880   ;
11881   return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885   ac_cv_lib_dld_dld_link=yes
11886 else
11887   ac_cv_lib_dld_dld_link=no
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext \
11890     conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11894 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11895 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11896   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11897 fi
11898
11899
11900 fi
11901
11902
11903 fi
11904
11905
11906 fi
11907
11908
11909 fi
11910
11911
11912 fi
11913
11914     ;;
11915   esac
11916
11917   if test "x$lt_cv_dlopen" != xno; then
11918     enable_dlopen=yes
11919   else
11920     enable_dlopen=no
11921   fi
11922
11923   case $lt_cv_dlopen in
11924   dlopen)
11925     save_CPPFLAGS="$CPPFLAGS"
11926     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11927
11928     save_LDFLAGS="$LDFLAGS"
11929     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11930
11931     save_LIBS="$LIBS"
11932     LIBS="$lt_cv_dlopen_libs $LIBS"
11933
11934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11935 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11936 if ${lt_cv_dlopen_self+:} false; then :
11937   $as_echo_n "(cached) " >&6
11938 else
11939           if test "$cross_compiling" = yes; then :
11940   lt_cv_dlopen_self=cross
11941 else
11942   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11943   lt_status=$lt_dlunknown
11944   cat > conftest.$ac_ext <<_LT_EOF
11945 #line $LINENO "configure"
11946 #include "confdefs.h"
11947
11948 #if HAVE_DLFCN_H
11949 #include <dlfcn.h>
11950 #endif
11951
11952 #include <stdio.h>
11953
11954 #ifdef RTLD_GLOBAL
11955 #  define LT_DLGLOBAL           RTLD_GLOBAL
11956 #else
11957 #  ifdef DL_GLOBAL
11958 #    define LT_DLGLOBAL         DL_GLOBAL
11959 #  else
11960 #    define LT_DLGLOBAL         0
11961 #  endif
11962 #endif
11963
11964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11965    find out it does not work in some platform. */
11966 #ifndef LT_DLLAZY_OR_NOW
11967 #  ifdef RTLD_LAZY
11968 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11969 #  else
11970 #    ifdef DL_LAZY
11971 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11972 #    else
11973 #      ifdef RTLD_NOW
11974 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11975 #      else
11976 #        ifdef DL_NOW
11977 #          define LT_DLLAZY_OR_NOW      DL_NOW
11978 #        else
11979 #          define LT_DLLAZY_OR_NOW      0
11980 #        endif
11981 #      endif
11982 #    endif
11983 #  endif
11984 #endif
11985
11986 /* When -fvisbility=hidden is used, assume the code has been annotated
11987    correspondingly for the symbols needed.  */
11988 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11989 int fnord () __attribute__((visibility("default")));
11990 #endif
11991
11992 int fnord () { return 42; }
11993 int main ()
11994 {
11995   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11996   int status = $lt_dlunknown;
11997
11998   if (self)
11999     {
12000       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12001       else
12002         {
12003           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12004           else puts (dlerror ());
12005         }
12006       /* dlclose (self); */
12007     }
12008   else
12009     puts (dlerror ());
12010
12011   return status;
12012 }
12013 _LT_EOF
12014   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12015   (eval $ac_link) 2>&5
12016   ac_status=$?
12017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12018   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12019     (./conftest; exit; ) >&5 2>/dev/null
12020     lt_status=$?
12021     case x$lt_status in
12022       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12023       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12024       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12025     esac
12026   else :
12027     # compilation failed
12028     lt_cv_dlopen_self=no
12029   fi
12030 fi
12031 rm -fr conftest*
12032
12033
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12036 $as_echo "$lt_cv_dlopen_self" >&6; }
12037
12038     if test "x$lt_cv_dlopen_self" = xyes; then
12039       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12041 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12042 if ${lt_cv_dlopen_self_static+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045           if test "$cross_compiling" = yes; then :
12046   lt_cv_dlopen_self_static=cross
12047 else
12048   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12049   lt_status=$lt_dlunknown
12050   cat > conftest.$ac_ext <<_LT_EOF
12051 #line $LINENO "configure"
12052 #include "confdefs.h"
12053
12054 #if HAVE_DLFCN_H
12055 #include <dlfcn.h>
12056 #endif
12057
12058 #include <stdio.h>
12059
12060 #ifdef RTLD_GLOBAL
12061 #  define LT_DLGLOBAL           RTLD_GLOBAL
12062 #else
12063 #  ifdef DL_GLOBAL
12064 #    define LT_DLGLOBAL         DL_GLOBAL
12065 #  else
12066 #    define LT_DLGLOBAL         0
12067 #  endif
12068 #endif
12069
12070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12071    find out it does not work in some platform. */
12072 #ifndef LT_DLLAZY_OR_NOW
12073 #  ifdef RTLD_LAZY
12074 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12075 #  else
12076 #    ifdef DL_LAZY
12077 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12078 #    else
12079 #      ifdef RTLD_NOW
12080 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12081 #      else
12082 #        ifdef DL_NOW
12083 #          define LT_DLLAZY_OR_NOW      DL_NOW
12084 #        else
12085 #          define LT_DLLAZY_OR_NOW      0
12086 #        endif
12087 #      endif
12088 #    endif
12089 #  endif
12090 #endif
12091
12092 /* When -fvisbility=hidden is used, assume the code has been annotated
12093    correspondingly for the symbols needed.  */
12094 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12095 int fnord () __attribute__((visibility("default")));
12096 #endif
12097
12098 int fnord () { return 42; }
12099 int main ()
12100 {
12101   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12102   int status = $lt_dlunknown;
12103
12104   if (self)
12105     {
12106       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12107       else
12108         {
12109           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12110           else puts (dlerror ());
12111         }
12112       /* dlclose (self); */
12113     }
12114   else
12115     puts (dlerror ());
12116
12117   return status;
12118 }
12119 _LT_EOF
12120   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12121   (eval $ac_link) 2>&5
12122   ac_status=$?
12123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12124   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12125     (./conftest; exit; ) >&5 2>/dev/null
12126     lt_status=$?
12127     case x$lt_status in
12128       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12129       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12130       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12131     esac
12132   else :
12133     # compilation failed
12134     lt_cv_dlopen_self_static=no
12135   fi
12136 fi
12137 rm -fr conftest*
12138
12139
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12142 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12143     fi
12144
12145     CPPFLAGS="$save_CPPFLAGS"
12146     LDFLAGS="$save_LDFLAGS"
12147     LIBS="$save_LIBS"
12148     ;;
12149   esac
12150
12151   case $lt_cv_dlopen_self in
12152   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12153   *) enable_dlopen_self=unknown ;;
12154   esac
12155
12156   case $lt_cv_dlopen_self_static in
12157   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12158   *) enable_dlopen_self_static=unknown ;;
12159   esac
12160 fi
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178 striplib=
12179 old_striplib=
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12181 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12182 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12183   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12184   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12186 $as_echo "yes" >&6; }
12187 else
12188 # FIXME - insert some real tests, host_os isn't really good enough
12189   case $host_os in
12190   darwin*)
12191     if test -n "$STRIP" ; then
12192       striplib="$STRIP -x"
12193       old_striplib="$STRIP -S"
12194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195 $as_echo "yes" >&6; }
12196     else
12197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199     fi
12200     ;;
12201   *)
12202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12204     ;;
12205   esac
12206 fi
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219   # Report which library types will actually be built
12220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12221 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12223 $as_echo "$can_build_shared" >&6; }
12224
12225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12226 $as_echo_n "checking whether to build shared libraries... " >&6; }
12227   test "$can_build_shared" = "no" && enable_shared=no
12228
12229   # On AIX, shared libraries and static libraries use the same namespace, and
12230   # are all built from PIC.
12231   case $host_os in
12232   aix3*)
12233     test "$enable_shared" = yes && enable_static=no
12234     if test -n "$RANLIB"; then
12235       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12236       postinstall_cmds='$RANLIB $lib'
12237     fi
12238     ;;
12239
12240   aix[4-9]*)
12241     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12242       test "$enable_shared" = yes && enable_static=no
12243     fi
12244     ;;
12245   esac
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12247 $as_echo "$enable_shared" >&6; }
12248
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12250 $as_echo_n "checking whether to build static libraries... " >&6; }
12251   # Make sure either enable_shared or enable_static is yes.
12252   test "$enable_shared" = yes || enable_static=yes
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12254 $as_echo "$enable_static" >&6; }
12255
12256
12257
12258
12259 fi
12260 ac_ext=c
12261 ac_cpp='$CPP $CPPFLAGS'
12262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12265
12266 CC="$lt_save_CC"
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282         ac_config_commands="$ac_config_commands libtool"
12283
12284
12285
12286
12287 # Only expand once:
12288
12289
12290
12291 rra_lib_arch_name=lib
12292  # The cast to long int works around a bug in the HP C Compiler
12293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12295 # This bug is HP SR number 8606223364.
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12297 $as_echo_n "checking size of long... " >&6; }
12298 if ${ac_cv_sizeof_long+:} false; then :
12299   $as_echo_n "(cached) " >&6
12300 else
12301   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12302
12303 else
12304   if test "$ac_cv_type_long" = yes; then
12305      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12307 as_fn_error 77 "cannot compute sizeof (long)
12308 See \`config.log' for more details" "$LINENO" 5; }
12309    else
12310      ac_cv_sizeof_long=0
12311    fi
12312 fi
12313
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12316 $as_echo "$ac_cv_sizeof_long" >&6; }
12317
12318
12319
12320 cat >>confdefs.h <<_ACEOF
12321 #define SIZEOF_LONG $ac_cv_sizeof_long
12322 _ACEOF
12323
12324
12325  if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then :
12326   rra_lib_arch_name=lib32
12327 else
12328   if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then :
12329   rra_lib_arch_name=lib64
12330 fi
12331 fi
12332 rra_CDB_root=
12333  rra_CDB_libdir=
12334  rra_CDB_includedir=
12335  rra_use_CDB=
12336  CDB_CPPFLAGS=
12337  CDB_LDFLAGS=
12338  CDB_LIBS=
12339
12340
12341
12342
12343 # Check whether --with-tinycdb was given.
12344 if test "${with_tinycdb+set}" = set; then :
12345   withval=$with_tinycdb; if test x"$withval" = xno; then :
12346   rra_use_CDB=false
12347 else
12348   if test x"$withval" != xyes; then :
12349   rra_CDB_root="$withval"
12350 fi
12351          rra_use_CDB=true
12352 fi
12353 fi
12354
12355
12356 # Check whether --with-tinycdb-include was given.
12357 if test "${with_tinycdb_include+set}" = set; then :
12358   withval=$with_tinycdb_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12359   rra_CDB_includedir="$withval"
12360 fi
12361 fi
12362
12363
12364 # Check whether --with-tinycdb-lib was given.
12365 if test "${with_tinycdb_lib+set}" = set; then :
12366   withval=$with_tinycdb_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12367   rra_CDB_libdir="$withval"
12368 fi
12369 fi
12370
12371  if test x"$rra_use_CDB" != xfalse; then :
12372   if test x"$rra_use_CDB" = xtrue; then :
12373   if test x"$rra_CDB_libdir" != x; then :
12374   CDB_LDFLAGS="-L$rra_CDB_libdir"
12375 else
12376   if test x"$rra_CDB_root" != x; then :
12377
12378  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
12379   if test x"" = x; then :
12380   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
12381 else
12382   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
12383 fi
12384 else
12385   if test x"" = x; then :
12386   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
12387 else
12388   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
12389 fi
12390 fi
12391  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
12392 fi
12393 fi
12394  if test x"$rra_CDB_includedir" != x; then :
12395   CDB_CPPFLAGS="-I$rra_CDB_includedir"
12396 else
12397   if test x"$rra_CDB_root" != x; then :
12398   if test x"$rra_CDB_root" != x/usr; then :
12399   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
12400 fi
12401 fi
12402 fi
12403  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
12404  rra_CDB_save_LDFLAGS="$LDFLAGS"
12405  rra_CDB_save_LIBS="$LIBS"
12406  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
12407  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
12408  LIBS="$CDB_LIBS $LIBS"
12409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
12410 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
12411 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
12412   $as_echo_n "(cached) " >&6
12413 else
12414   ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-lcdb  $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h.  */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420    Use char because int might match the return type of a GCC
12421    builtin and then its argument prototype would still apply.  */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char cdb_init ();
12426 int
12427 main ()
12428 {
12429 return cdb_init ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435   ac_cv_lib_cdb_cdb_init=yes
12436 else
12437   ac_cv_lib_cdb_cdb_init=no
12438 fi
12439 rm -f core conftest.err conftest.$ac_objext \
12440     conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
12444 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
12445 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
12446   CDB_LIBS=-lcdb
12447
12448 $as_echo "#define HAVE_CDB 1" >>confdefs.h
12449
12450      rra_use_CDB=true
12451 else
12452   if test x"true" = xtrue; then :
12453   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
12454 fi
12455 fi
12456
12457  for ac_header in cdb.h
12458 do :
12459   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
12460 if test "x$ac_cv_header_cdb_h" = xyes; then :
12461   cat >>confdefs.h <<_ACEOF
12462 #define HAVE_CDB_H 1
12463 _ACEOF
12464
12465 fi
12466
12467 done
12468
12469  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
12470  LDFLAGS="$rra_CDB_save_LDFLAGS"
12471  LIBS="$rra_CDB_save_LIBS"
12472 else
12473   if test x"$rra_CDB_libdir" != x; then :
12474   CDB_LDFLAGS="-L$rra_CDB_libdir"
12475 else
12476   if test x"$rra_CDB_root" != x; then :
12477
12478  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
12479   if test x"" = x; then :
12480   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
12481 else
12482   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
12483 fi
12484 else
12485   if test x"" = x; then :
12486   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
12487 else
12488   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
12489 fi
12490 fi
12491  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
12492 fi
12493 fi
12494  if test x"$rra_CDB_includedir" != x; then :
12495   CDB_CPPFLAGS="-I$rra_CDB_includedir"
12496 else
12497   if test x"$rra_CDB_root" != x; then :
12498   if test x"$rra_CDB_root" != x/usr; then :
12499   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
12500 fi
12501 fi
12502 fi
12503  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
12504  rra_CDB_save_LDFLAGS="$LDFLAGS"
12505  rra_CDB_save_LIBS="$LIBS"
12506  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
12507  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
12508  LIBS="$CDB_LIBS $LIBS"
12509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
12510 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
12511 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-lcdb  $LIBS"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h.  */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520    Use char because int might match the return type of a GCC
12521    builtin and then its argument prototype would still apply.  */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char cdb_init ();
12526 int
12527 main ()
12528 {
12529 return cdb_init ();
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then :
12535   ac_cv_lib_cdb_cdb_init=yes
12536 else
12537   ac_cv_lib_cdb_cdb_init=no
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext \
12540     conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
12544 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
12545 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
12546   CDB_LIBS=-lcdb
12547
12548 $as_echo "#define HAVE_CDB 1" >>confdefs.h
12549
12550      rra_use_CDB=true
12551 else
12552   if test x"false" = xtrue; then :
12553   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
12554 fi
12555 fi
12556
12557  for ac_header in cdb.h
12558 do :
12559   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
12560 if test "x$ac_cv_header_cdb_h" = xyes; then :
12561   cat >>confdefs.h <<_ACEOF
12562 #define HAVE_CDB_H 1
12563 _ACEOF
12564
12565 fi
12566
12567 done
12568
12569  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
12570  LDFLAGS="$rra_CDB_save_LDFLAGS"
12571  LIBS="$rra_CDB_save_LIBS"
12572 fi
12573 fi
12574 rra_system_cracklib=
12575  rra_cracklib_root=
12576  rra_cracklib_libdir=
12577  rra_cracklib_includedir=
12578  CRACKLIB_CPPFLAGS=
12579  CRACKLIB_LDFLAGS=
12580  CRACKLIB_LIBS=
12581
12582
12583
12584
12585
12586 # Check whether --with-cracklib was given.
12587 if test "${with_cracklib+set}" = set; then :
12588   withval=$with_cracklib; if test x"$withval" != xno; then :
12589   rra_system_cracklib=yes
12590 fi
12591      if test x"$withval" != xyes && test x"$withval" != xno; then :
12592   rra_cracklib_root="$withval"
12593 fi
12594 fi
12595
12596
12597 # Check whether --with-cracklib-include was given.
12598 if test "${with_cracklib_include+set}" = set; then :
12599   withval=$with_cracklib_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12600   rra_cracklib_includedir="$withval"
12601 fi
12602 fi
12603
12604
12605 # Check whether --with-cracklib-lib was given.
12606 if test "${with_cracklib_lib+set}" = set; then :
12607   withval=$with_cracklib_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12608   rra_cracklib_libdir="$withval"
12609 fi
12610 fi
12611
12612
12613   if test x"$rra_system_cracklib" != xyes; then
12614   EMBEDDED_CRACKLIB_TRUE=
12615   EMBEDDED_CRACKLIB_FALSE='#'
12616 else
12617   EMBEDDED_CRACKLIB_TRUE='#'
12618   EMBEDDED_CRACKLIB_FALSE=
12619 fi
12620
12621  if test x"$rra_system_cracklib" = xyes; then :
12622   if test x"$rra_cracklib_libdir" != x; then :
12623   CRACKLIB_LDFLAGS="-L$rra_cracklib_libdir"
12624 else
12625   if test x"$rra_cracklib_root" != x; then :
12626
12627  if test -d "$rra_cracklib_root/$rra_lib_arch_name"; then :
12628   if test x"" = x; then :
12629   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}"
12630 else
12631   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}/"
12632 fi
12633 else
12634   if test x"" = x; then :
12635   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib"
12636 else
12637   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib/"
12638 fi
12639 fi
12640  CRACKLIB_LDFLAGS=`echo "$CRACKLIB_LDFLAGS" | sed -e 's/^ *//'`
12641 fi
12642 fi
12643  if test x"$rra_cracklib_includedir" != x; then :
12644   CRACKLIB_CPPFLAGS="-I$rra_cracklib_includedir"
12645 else
12646   if test x"$rra_cracklib_root" != x; then :
12647   if test x"$rra_cracklib_root" != x/usr; then :
12648   CRACKLIB_CPPFLAGS="-I${rra_cracklib_root}/include"
12649 fi
12650 fi
12651 fi
12652       CRACKLIB_LIBS="-lcrack"
12653       rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
12654  rra_cracklib_save_LDFLAGS="$LDFLAGS"
12655  rra_cracklib_save_LIBS="$LIBS"
12656  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
12657  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
12658  LIBS="$CRACKLIB_LIBS $LIBS"
12659  ac_fn_c_check_func "$LINENO" "FascistCheck" "ac_cv_func_FascistCheck"
12660 if test "x$ac_cv_func_FascistCheck" = xyes; then :
12661
12662 else
12663   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12665 as_fn_error $? "unable to link with CrackLib library
12666 See \`config.log' for more details" "$LINENO" 5; }
12667 fi
12668
12669  CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
12670  LDFLAGS="$rra_cracklib_save_LDFLAGS"
12671  LIBS="$rra_cracklib_save_LIBS"
12672 fi
12673 if test x"$rra_system_cracklib" = xyes; then :
12674   rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
12675  rra_cracklib_save_LDFLAGS="$LDFLAGS"
12676  rra_cracklib_save_LIBS="$LIBS"
12677  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
12678  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
12679  LIBS="$CRACKLIB_LIBS $LIBS"
12680      for ac_header in crack.h
12681 do :
12682   ac_fn_c_check_header_mongrel "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
12683 if test "x$ac_cv_header_crack_h" = xyes; then :
12684   cat >>confdefs.h <<_ACEOF
12685 #define HAVE_CRACK_H 1
12686 _ACEOF
12687
12688 fi
12689
12690 done
12691
12692      CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
12693  LDFLAGS="$rra_cracklib_save_LDFLAGS"
12694  LIBS="$rra_cracklib_save_LIBS"
12695 fi
12696 rra_reduced_depends=false
12697 # Check whether --enable-reduced-depends was given.
12698 if test "${enable_reduced_depends+set}" = set; then :
12699   enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then :
12700   rra_reduced_depends=true
12701 fi
12702 fi
12703
12704
12705  # Extract the first word of "krb5-config", so it can be a program name with args.
12706 set dummy krb5-config; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708 $as_echo_n "checking for $ac_word... " >&6; }
12709 if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then :
12710   $as_echo_n "(cached) " >&6
12711 else
12712   case $PATH_KRB5_CONFIG in
12713   [\\/]* | ?:[\\/]*)
12714   ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
12715   ;;
12716   *)
12717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 as_dummy="${PATH}:/usr/kerberos/bin"
12719 for as_dir in $as_dummy
12720 do
12721   IFS=$as_save_IFS
12722   test -z "$as_dir" && as_dir=.
12723     for ac_exec_ext in '' $ac_executable_extensions; do
12724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725     ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727     break 2
12728   fi
12729 done
12730   done
12731 IFS=$as_save_IFS
12732
12733   ;;
12734 esac
12735 fi
12736 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
12737 if test -n "$PATH_KRB5_CONFIG"; then
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
12739 $as_echo "$PATH_KRB5_CONFIG" >&6; }
12740 else
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 fi
12744
12745
12746 rra_krb5_root=
12747  rra_krb5_libdir=
12748  rra_krb5_includedir=
12749  rra_use_kerberos=true
12750
12751
12752
12753
12754
12755 # Check whether --with-krb5 was given.
12756 if test "${with_krb5+set}" = set; then :
12757   withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then :
12758   rra_krb5_root="$withval"
12759 fi
12760 fi
12761
12762
12763 # Check whether --with-krb5-include was given.
12764 if test "${with_krb5_include+set}" = set; then :
12765   withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12766   rra_krb5_includedir="$withval"
12767 fi
12768 fi
12769
12770
12771 # Check whether --with-krb5-lib was given.
12772 if test "${with_krb5_lib+set}" = set; then :
12773   withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12774   rra_krb5_libdir="$withval"
12775 fi
12776 fi
12777
12778
12779  rra_krb5_incroot=
12780  if test x"$rra_krb5_includedir" != x; then :
12781   rra_krb5_incroot="$rra_krb5_includedir"
12782 else
12783   if test x"$rra_krb5_root" != x; then :
12784   rra_krb5_incroot="${rra_krb5_root}/include"
12785 fi
12786 fi
12787  if test x"$rra_reduced_depends" = xtrue; then :
12788   if test x"$rra_krb5_libdir" != x; then :
12789   KRB5_LDFLAGS="-L$rra_krb5_libdir"
12790 else
12791   if test x"$rra_krb5_root" != x; then :
12792
12793  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
12794   if test x"" = x; then :
12795   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
12796 else
12797   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
12798 fi
12799 else
12800   if test x"" = x; then :
12801   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
12802 else
12803   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
12804 fi
12805 fi
12806  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
12807 fi
12808 fi
12809  if test x"$rra_krb5_includedir" != x; then :
12810   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
12811 else
12812   if test x"$rra_krb5_root" != x; then :
12813   if test x"$rra_krb5_root" != x/usr; then :
12814   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
12815 fi
12816 fi
12817 fi
12818      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
12819  rra_krb5_save_LDFLAGS="$LDFLAGS"
12820  rra_krb5_save_LIBS="$LIBS"
12821  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
12822  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
12823  LIBS="$KRB5_LIBS $LIBS"
12824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12825 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12826 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829   ac_check_lib_save_LIBS=$LIBS
12830 LIBS="-lkrb5  $LIBS"
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h.  */
12833
12834 /* Override any GCC internal prototype to avoid an error.
12835    Use char because int might match the return type of a GCC
12836    builtin and then its argument prototype would still apply.  */
12837 #ifdef __cplusplus
12838 extern "C"
12839 #endif
12840 char krb5_init_context ();
12841 int
12842 main ()
12843 {
12844 return krb5_init_context ();
12845   ;
12846   return 0;
12847 }
12848 _ACEOF
12849 if ac_fn_c_try_link "$LINENO"; then :
12850   ac_cv_lib_krb5_krb5_init_context=yes
12851 else
12852   ac_cv_lib_krb5_krb5_init_context=no
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext \
12855     conftest$ac_exeext conftest.$ac_ext
12856 LIBS=$ac_check_lib_save_LIBS
12857 fi
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12859 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12860 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
12861   KRB5_LIBS="-lkrb5"
12862 else
12863   if test x"true" = xtrue; then :
12864   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
12865 fi
12866 fi
12867
12868  LIBS="$KRB5_LIBS $LIBS"
12869  if test x"$rra_krb5_incroot" = x; then :
12870   for ac_header in krb5.h krb5/krb5.h
12871 do :
12872   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12875   cat >>confdefs.h <<_ACEOF
12876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12877 _ACEOF
12878
12879 fi
12880
12881 done
12882
12883 else
12884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
12885 $as_echo_n "checking for krb5.h... " >&6; }
12886  if test -f "${rra_krb5_incroot}/krb5.h"; then :
12887
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_KRB5_H 1
12890 _ACEOF
12891
12892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12893 $as_echo "yes" >&6; }
12894 else
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12897 fi
12898       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
12899 $as_echo_n "checking for krb5/krb5.h... " >&6; }
12900  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
12901
12902 cat >>confdefs.h <<_ACEOF
12903 #define HAVE_KRB5_KRB5_H 1
12904 _ACEOF
12905
12906      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907 $as_echo "yes" >&6; }
12908 else
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12911 fi
12912 fi
12913  for ac_func in krb5_get_error_message
12914 do :
12915   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
12916 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
12917   cat >>confdefs.h <<_ACEOF
12918 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
12919 _ACEOF
12920  for ac_func in krb5_free_error_message
12921 do :
12922   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
12923 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
12924   cat >>confdefs.h <<_ACEOF
12925 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
12926 _ACEOF
12927
12928 fi
12929 done
12930
12931 else
12932   for ac_func in krb5_get_error_string
12933 do :
12934   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
12935 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
12936   cat >>confdefs.h <<_ACEOF
12937 #define HAVE_KRB5_GET_ERROR_STRING 1
12938 _ACEOF
12939
12940 else
12941   for ac_func in krb5_get_err_txt
12942 do :
12943   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
12944 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
12945   cat >>confdefs.h <<_ACEOF
12946 #define HAVE_KRB5_GET_ERR_TXT 1
12947 _ACEOF
12948
12949 else
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
12951 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
12952 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   ac_check_lib_save_LIBS=$LIBS
12956 LIBS="-lksvc  $LIBS"
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959
12960 /* Override any GCC internal prototype to avoid an error.
12961    Use char because int might match the return type of a GCC
12962    builtin and then its argument prototype would still apply.  */
12963 #ifdef __cplusplus
12964 extern "C"
12965 #endif
12966 char krb5_svc_get_msg ();
12967 int
12968 main ()
12969 {
12970 return krb5_svc_get_msg ();
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
12977 else
12978   ac_cv_lib_ksvc_krb5_svc_get_msg=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext \
12981     conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
12985 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
12986 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
12987   KRB5_LIBS="$KRB5_LIBS -lksvc"
12988                   $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
12989
12990                   for ac_header in ibm_svc/krb5_svc.h
12991 do :
12992   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
12993 #if HAVE_KRB5_H
12994 # include <krb5.h>
12995 #else
12996 # include <krb5/krb5.h>
12997 #endif
12998
12999 "
13000 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
13001   cat >>confdefs.h <<_ACEOF
13002 #define HAVE_IBM_SVC_KRB5_SVC_H 1
13003 _ACEOF
13004
13005 fi
13006
13007 done
13008
13009 else
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13011 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13012 if ${ac_cv_lib_com_err_com_err+:} false; then :
13013   $as_echo_n "(cached) " >&6
13014 else
13015   ac_check_lib_save_LIBS=$LIBS
13016 LIBS="-lcom_err  $LIBS"
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h.  */
13019
13020 /* Override any GCC internal prototype to avoid an error.
13021    Use char because int might match the return type of a GCC
13022    builtin and then its argument prototype would still apply.  */
13023 #ifdef __cplusplus
13024 extern "C"
13025 #endif
13026 char com_err ();
13027 int
13028 main ()
13029 {
13030 return com_err ();
13031   ;
13032   return 0;
13033 }
13034 _ACEOF
13035 if ac_fn_c_try_link "$LINENO"; then :
13036   ac_cv_lib_com_err_com_err=yes
13037 else
13038   ac_cv_lib_com_err_com_err=no
13039 fi
13040 rm -f core conftest.err conftest.$ac_objext \
13041     conftest$ac_exeext conftest.$ac_ext
13042 LIBS=$ac_check_lib_save_LIBS
13043 fi
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13045 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13046 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13047   KRB5_LIBS="$KRB5_LIBS -lcom_err"
13048 else
13049   as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
13050 fi
13051
13052                   for ac_header in et/com_err.h
13053 do :
13054   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
13055 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
13056   cat >>confdefs.h <<_ACEOF
13057 #define HAVE_ET_COM_ERR_H 1
13058 _ACEOF
13059
13060 fi
13061
13062 done
13063
13064 fi
13065
13066 fi
13067 done
13068
13069 fi
13070 done
13071
13072 fi
13073 done
13074
13075  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13076  LDFLAGS="$rra_krb5_save_LDFLAGS"
13077  LIBS="$rra_krb5_save_LIBS"
13078 else
13079   if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
13080
13081  rra_krb5_config_KRB5=
13082  rra_krb5_config_KRB5_ok=
13083  if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
13084   rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
13085 else
13086   rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
13087 fi
13088  if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
13090 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
13091 if ${rra_cv_lib_KRB5_config+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
13095   rra_cv_lib_KRB5_config=yes
13096 else
13097   rra_cv_lib_KRB5_config=no
13098 fi
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
13101 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
13102      if test "$rra_cv_lib_KRB5_config" = yes; then :
13103   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
13104
13105
13106
13107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
13108 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
13109 if ${rra_cv_krb5_config_deps+:} false; then :
13110   $as_echo_n "(cached) " >&6
13111 else
13112   if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
13113   rra_cv_krb5_config_deps=yes
13114 else
13115   rra_cv_krb5_config_deps=no
13116 fi
13117 fi
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
13119 $as_echo "$rra_cv_krb5_config_deps" >&6; }
13120  if test x"$rra_reduced_depends" = xfalse \
13121         && test x"$rra_cv_krb5_config_deps" = xyes; then :
13122   KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
13123 else
13124   KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13125 fi
13126          rra_krb5_config_KRB5_ok=yes
13127 else
13128   if test x"krb5" = xkrb5; then :
13129   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
13130              KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13131              rra_krb5_config_KRB5_ok=yes
13132 fi
13133 fi
13134 fi
13135  if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
13136   KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
13137      KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
13138      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13139  rra_krb5_save_LDFLAGS="$LDFLAGS"
13140  rra_krb5_save_LIBS="$LIBS"
13141  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13142  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13143  LIBS="$KRB5_LIBS $LIBS"
13144  ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
13145 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
13146   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13147  LDFLAGS="$rra_krb5_save_LDFLAGS"
13148  LIBS="$rra_krb5_save_LIBS"
13149 else
13150   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13151  LDFLAGS="$rra_krb5_save_LDFLAGS"
13152  LIBS="$rra_krb5_save_LIBS"
13153      KRB5_CPPFLAGS=
13154      KRB5_LIBS=
13155      if test x"$rra_krb5_libdir" != x; then :
13156   KRB5_LDFLAGS="-L$rra_krb5_libdir"
13157 else
13158   if test x"$rra_krb5_root" != x; then :
13159
13160  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
13161   if test x"" = x; then :
13162   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
13163 else
13164   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
13165 fi
13166 else
13167   if test x"" = x; then :
13168   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
13169 else
13170   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
13171 fi
13172 fi
13173  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
13174 fi
13175 fi
13176  if test x"$rra_krb5_includedir" != x; then :
13177   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
13178 else
13179   if test x"$rra_krb5_root" != x; then :
13180   if test x"$rra_krb5_root" != x/usr; then :
13181   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
13182 fi
13183 fi
13184 fi
13185      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13186  rra_krb5_save_LDFLAGS="$LDFLAGS"
13187  rra_krb5_save_LIBS="$LIBS"
13188  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13189  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13190  LIBS="$KRB5_LIBS $LIBS"
13191  rra_krb5_extra=
13192  LIBS=
13193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
13194 $as_echo_n "checking for library containing res_search... " >&6; }
13195 if ${ac_cv_search_res_search+:} false; then :
13196   $as_echo_n "(cached) " >&6
13197 else
13198   ac_func_search_save_LIBS=$LIBS
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h.  */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203    Use char because int might match the return type of a GCC
13204    builtin and then its argument prototype would still apply.  */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char res_search ();
13209 int
13210 main ()
13211 {
13212 return res_search ();
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 for ac_lib in '' resolv; do
13218   if test -z "$ac_lib"; then
13219     ac_res="none required"
13220   else
13221     ac_res=-l$ac_lib
13222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13223   fi
13224   if ac_fn_c_try_link "$LINENO"; then :
13225   ac_cv_search_res_search=$ac_res
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext \
13228     conftest$ac_exeext
13229   if ${ac_cv_search_res_search+:} false; then :
13230   break
13231 fi
13232 done
13233 if ${ac_cv_search_res_search+:} false; then :
13234
13235 else
13236   ac_cv_search_res_search=no
13237 fi
13238 rm conftest.$ac_ext
13239 LIBS=$ac_func_search_save_LIBS
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
13242 $as_echo "$ac_cv_search_res_search" >&6; }
13243 ac_res=$ac_cv_search_res_search
13244 if test "$ac_res" != no; then :
13245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13246
13247 else
13248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
13249 $as_echo_n "checking for library containing __res_search... " >&6; }
13250 if ${ac_cv_search___res_search+:} false; then :
13251   $as_echo_n "(cached) " >&6
13252 else
13253   ac_func_search_save_LIBS=$LIBS
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h.  */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258    Use char because int might match the return type of a GCC
13259    builtin and then its argument prototype would still apply.  */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char __res_search ();
13264 int
13265 main ()
13266 {
13267 return __res_search ();
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 for ac_lib in '' resolv; do
13273   if test -z "$ac_lib"; then
13274     ac_res="none required"
13275   else
13276     ac_res=-l$ac_lib
13277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13278   fi
13279   if ac_fn_c_try_link "$LINENO"; then :
13280   ac_cv_search___res_search=$ac_res
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext \
13283     conftest$ac_exeext
13284   if ${ac_cv_search___res_search+:} false; then :
13285   break
13286 fi
13287 done
13288 if ${ac_cv_search___res_search+:} false; then :
13289
13290 else
13291   ac_cv_search___res_search=no
13292 fi
13293 rm conftest.$ac_ext
13294 LIBS=$ac_func_search_save_LIBS
13295 fi
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
13297 $as_echo "$ac_cv_search___res_search" >&6; }
13298 ac_res=$ac_cv_search___res_search
13299 if test "$ac_res" != no; then :
13300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13301
13302 fi
13303
13304 fi
13305
13306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13307 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13308 if ${ac_cv_search_gethostbyname+:} false; then :
13309   $as_echo_n "(cached) " >&6
13310 else
13311   ac_func_search_save_LIBS=$LIBS
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h.  */
13314
13315 /* Override any GCC internal prototype to avoid an error.
13316    Use char because int might match the return type of a GCC
13317    builtin and then its argument prototype would still apply.  */
13318 #ifdef __cplusplus
13319 extern "C"
13320 #endif
13321 char gethostbyname ();
13322 int
13323 main ()
13324 {
13325 return gethostbyname ();
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 for ac_lib in '' nsl; do
13331   if test -z "$ac_lib"; then
13332     ac_res="none required"
13333   else
13334     ac_res=-l$ac_lib
13335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13336   fi
13337   if ac_fn_c_try_link "$LINENO"; then :
13338   ac_cv_search_gethostbyname=$ac_res
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext \
13341     conftest$ac_exeext
13342   if ${ac_cv_search_gethostbyname+:} false; then :
13343   break
13344 fi
13345 done
13346 if ${ac_cv_search_gethostbyname+:} false; then :
13347
13348 else
13349   ac_cv_search_gethostbyname=no
13350 fi
13351 rm conftest.$ac_ext
13352 LIBS=$ac_func_search_save_LIBS
13353 fi
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13355 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13356 ac_res=$ac_cv_search_gethostbyname
13357 if test "$ac_res" != no; then :
13358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13359
13360 fi
13361
13362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13363 $as_echo_n "checking for library containing socket... " >&6; }
13364 if ${ac_cv_search_socket+:} false; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367   ac_func_search_save_LIBS=$LIBS
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h.  */
13370
13371 /* Override any GCC internal prototype to avoid an error.
13372    Use char because int might match the return type of a GCC
13373    builtin and then its argument prototype would still apply.  */
13374 #ifdef __cplusplus
13375 extern "C"
13376 #endif
13377 char socket ();
13378 int
13379 main ()
13380 {
13381 return socket ();
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 for ac_lib in '' socket; do
13387   if test -z "$ac_lib"; then
13388     ac_res="none required"
13389   else
13390     ac_res=-l$ac_lib
13391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13392   fi
13393   if ac_fn_c_try_link "$LINENO"; then :
13394   ac_cv_search_socket=$ac_res
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext \
13397     conftest$ac_exeext
13398   if ${ac_cv_search_socket+:} false; then :
13399   break
13400 fi
13401 done
13402 if ${ac_cv_search_socket+:} false; then :
13403
13404 else
13405   ac_cv_search_socket=no
13406 fi
13407 rm conftest.$ac_ext
13408 LIBS=$ac_func_search_save_LIBS
13409 fi
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13411 $as_echo "$ac_cv_search_socket" >&6; }
13412 ac_res=$ac_cv_search_socket
13413 if test "$ac_res" != no; then :
13414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13415
13416 else
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
13418 $as_echo_n "checking for socket in -lnsl... " >&6; }
13419 if ${ac_cv_lib_nsl_socket+:} false; then :
13420   $as_echo_n "(cached) " >&6
13421 else
13422   ac_check_lib_save_LIBS=$LIBS
13423 LIBS="-lnsl -lsocket $LIBS"
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h.  */
13426
13427 /* Override any GCC internal prototype to avoid an error.
13428    Use char because int might match the return type of a GCC
13429    builtin and then its argument prototype would still apply.  */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 char socket ();
13434 int
13435 main ()
13436 {
13437 return socket ();
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"; then :
13443   ac_cv_lib_nsl_socket=yes
13444 else
13445   ac_cv_lib_nsl_socket=no
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448     conftest$ac_exeext conftest.$ac_ext
13449 LIBS=$ac_check_lib_save_LIBS
13450 fi
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
13452 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
13453 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
13454   LIBS="-lnsl -lsocket $LIBS"
13455 fi
13456
13457 fi
13458
13459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13460 $as_echo_n "checking for library containing crypt... " >&6; }
13461 if ${ac_cv_search_crypt+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   ac_func_search_save_LIBS=$LIBS
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h.  */
13467
13468 /* Override any GCC internal prototype to avoid an error.
13469    Use char because int might match the return type of a GCC
13470    builtin and then its argument prototype would still apply.  */
13471 #ifdef __cplusplus
13472 extern "C"
13473 #endif
13474 char crypt ();
13475 int
13476 main ()
13477 {
13478 return crypt ();
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 for ac_lib in '' crypt; do
13484   if test -z "$ac_lib"; then
13485     ac_res="none required"
13486   else
13487     ac_res=-l$ac_lib
13488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13489   fi
13490   if ac_fn_c_try_link "$LINENO"; then :
13491   ac_cv_search_crypt=$ac_res
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext \
13494     conftest$ac_exeext
13495   if ${ac_cv_search_crypt+:} false; then :
13496   break
13497 fi
13498 done
13499 if ${ac_cv_search_crypt+:} false; then :
13500
13501 else
13502   ac_cv_search_crypt=no
13503 fi
13504 rm conftest.$ac_ext
13505 LIBS=$ac_func_search_save_LIBS
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13508 $as_echo "$ac_cv_search_crypt" >&6; }
13509 ac_res=$ac_cv_search_crypt
13510 if test "$ac_res" != no; then :
13511   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13512
13513 fi
13514
13515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
13516 $as_echo_n "checking for library containing roken_concat... " >&6; }
13517 if ${ac_cv_search_roken_concat+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   ac_func_search_save_LIBS=$LIBS
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h.  */
13523
13524 /* Override any GCC internal prototype to avoid an error.
13525    Use char because int might match the return type of a GCC
13526    builtin and then its argument prototype would still apply.  */
13527 #ifdef __cplusplus
13528 extern "C"
13529 #endif
13530 char roken_concat ();
13531 int
13532 main ()
13533 {
13534 return roken_concat ();
13535   ;
13536   return 0;
13537 }
13538 _ACEOF
13539 for ac_lib in '' roken; do
13540   if test -z "$ac_lib"; then
13541     ac_res="none required"
13542   else
13543     ac_res=-l$ac_lib
13544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13545   fi
13546   if ac_fn_c_try_link "$LINENO"; then :
13547   ac_cv_search_roken_concat=$ac_res
13548 fi
13549 rm -f core conftest.err conftest.$ac_objext \
13550     conftest$ac_exeext
13551   if ${ac_cv_search_roken_concat+:} false; then :
13552   break
13553 fi
13554 done
13555 if ${ac_cv_search_roken_concat+:} false; then :
13556
13557 else
13558   ac_cv_search_roken_concat=no
13559 fi
13560 rm conftest.$ac_ext
13561 LIBS=$ac_func_search_save_LIBS
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
13564 $as_echo "$ac_cv_search_roken_concat" >&6; }
13565 ac_res=$ac_cv_search_roken_concat
13566 if test "$ac_res" != no; then :
13567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13568
13569 fi
13570
13571  rra_krb5_extra="$LIBS"
13572  LIBS="$rra_krb5_save_LIBS"
13573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13574 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13575 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13576   $as_echo_n "(cached) " >&6
13577 else
13578   ac_check_lib_save_LIBS=$LIBS
13579 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h.  */
13582
13583 /* Override any GCC internal prototype to avoid an error.
13584    Use char because int might match the return type of a GCC
13585    builtin and then its argument prototype would still apply.  */
13586 #ifdef __cplusplus
13587 extern "C"
13588 #endif
13589 char krb5_init_context ();
13590 int
13591 main ()
13592 {
13593 return krb5_init_context ();
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 if ac_fn_c_try_link "$LINENO"; then :
13599   ac_cv_lib_krb5_krb5_init_context=yes
13600 else
13601   ac_cv_lib_krb5_krb5_init_context=no
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext \
13604     conftest$ac_exeext conftest.$ac_ext
13605 LIBS=$ac_check_lib_save_LIBS
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13608 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13609 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13610   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
13611 else
13612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
13613 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
13614 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617   ac_check_lib_save_LIBS=$LIBS
13618 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h.  */
13621
13622 /* Override any GCC internal prototype to avoid an error.
13623    Use char because int might match the return type of a GCC
13624    builtin and then its argument prototype would still apply.  */
13625 #ifdef __cplusplus
13626 extern "C"
13627 #endif
13628 char krb5int_getspecific ();
13629 int
13630 main ()
13631 {
13632 return krb5int_getspecific ();
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_link "$LINENO"; then :
13638   ac_cv_lib_krb5support_krb5int_getspecific=yes
13639 else
13640   ac_cv_lib_krb5support_krb5int_getspecific=no
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643     conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13645 fi
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
13647 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
13648 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
13649   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
13650 else
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
13652 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
13653 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
13654   $as_echo_n "(cached) " >&6
13655 else
13656   ac_check_lib_save_LIBS=$LIBS
13657 LIBS="-lpthreads  $LIBS"
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h.  */
13660
13661 /* Override any GCC internal prototype to avoid an error.
13662    Use char because int might match the return type of a GCC
13663    builtin and then its argument prototype would still apply.  */
13664 #ifdef __cplusplus
13665 extern "C"
13666 #endif
13667 char pthread_setspecific ();
13668 int
13669 main ()
13670 {
13671 return pthread_setspecific ();
13672   ;
13673   return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677   ac_cv_lib_pthreads_pthread_setspecific=yes
13678 else
13679   ac_cv_lib_pthreads_pthread_setspecific=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682     conftest$ac_exeext conftest.$ac_ext
13683 LIBS=$ac_check_lib_save_LIBS
13684 fi
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
13686 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
13687 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
13688   rra_krb5_pthread="-lpthreads"
13689 else
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
13691 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
13692 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
13693   $as_echo_n "(cached) " >&6
13694 else
13695   ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-lpthread  $LIBS"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699
13700 /* Override any GCC internal prototype to avoid an error.
13701    Use char because int might match the return type of a GCC
13702    builtin and then its argument prototype would still apply.  */
13703 #ifdef __cplusplus
13704 extern "C"
13705 #endif
13706 char pthread_setspecific ();
13707 int
13708 main ()
13709 {
13710 return pthread_setspecific ();
13711   ;
13712   return 0;
13713 }
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"; then :
13716   ac_cv_lib_pthread_pthread_setspecific=yes
13717 else
13718   ac_cv_lib_pthread_pthread_setspecific=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext \
13721     conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13723 fi
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
13725 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
13726 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
13727   rra_krb5_pthread="-lpthread"
13728 fi
13729
13730 fi
13731
13732          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
13733 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
13734 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
13735   $as_echo_n "(cached) " >&6
13736 else
13737   ac_check_lib_save_LIBS=$LIBS
13738 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h.  */
13741
13742 /* Override any GCC internal prototype to avoid an error.
13743    Use char because int might match the return type of a GCC
13744    builtin and then its argument prototype would still apply.  */
13745 #ifdef __cplusplus
13746 extern "C"
13747 #endif
13748 char krb5int_setspecific ();
13749 int
13750 main ()
13751 {
13752 return krb5int_setspecific ();
13753   ;
13754   return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_c_try_link "$LINENO"; then :
13758   ac_cv_lib_krb5support_krb5int_setspecific=yes
13759 else
13760   ac_cv_lib_krb5support_krb5int_setspecific=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext \
13763     conftest$ac_exeext conftest.$ac_ext
13764 LIBS=$ac_check_lib_save_LIBS
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
13767 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
13768 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
13769   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
13770 fi
13771
13772 fi
13773
13774      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
13775 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
13776 if ${ac_cv_lib_com_err_error_message+:} false; then :
13777   $as_echo_n "(cached) " >&6
13778 else
13779   ac_check_lib_save_LIBS=$LIBS
13780 LIBS="-lcom_err $rra_krb5_extra $LIBS"
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h.  */
13783
13784 /* Override any GCC internal prototype to avoid an error.
13785    Use char because int might match the return type of a GCC
13786    builtin and then its argument prototype would still apply.  */
13787 #ifdef __cplusplus
13788 extern "C"
13789 #endif
13790 char error_message ();
13791 int
13792 main ()
13793 {
13794 return error_message ();
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"; then :
13800   ac_cv_lib_com_err_error_message=yes
13801 else
13802   ac_cv_lib_com_err_error_message=no
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext \
13805     conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
13809 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
13810 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
13811   rra_krb5_extra="-lcom_err $rra_krb5_extra"
13812 fi
13813
13814      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
13815 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
13816 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
13817   $as_echo_n "(cached) " >&6
13818 else
13819   ac_check_lib_save_LIBS=$LIBS
13820 LIBS="-lksvc $rra_krb5_extra $LIBS"
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h.  */
13823
13824 /* Override any GCC internal prototype to avoid an error.
13825    Use char because int might match the return type of a GCC
13826    builtin and then its argument prototype would still apply.  */
13827 #ifdef __cplusplus
13828 extern "C"
13829 #endif
13830 char krb5_svc_get_msg ();
13831 int
13832 main ()
13833 {
13834 return krb5_svc_get_msg ();
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 if ac_fn_c_try_link "$LINENO"; then :
13840   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
13841 else
13842   ac_cv_lib_ksvc_krb5_svc_get_msg=no
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext \
13845     conftest$ac_exeext conftest.$ac_ext
13846 LIBS=$ac_check_lib_save_LIBS
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
13849 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
13850 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
13851   rra_krb5_extra="-lksvc $rra_krb5_extra"
13852 fi
13853
13854      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
13855 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
13856 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
13857   $as_echo_n "(cached) " >&6
13858 else
13859   ac_check_lib_save_LIBS=$LIBS
13860 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h.  */
13863
13864 /* Override any GCC internal prototype to avoid an error.
13865    Use char because int might match the return type of a GCC
13866    builtin and then its argument prototype would still apply.  */
13867 #ifdef __cplusplus
13868 extern "C"
13869 #endif
13870 char krb5int_hash_md5 ();
13871 int
13872 main ()
13873 {
13874 return krb5int_hash_md5 ();
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 if ac_fn_c_try_link "$LINENO"; then :
13880   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
13881 else
13882   ac_cv_lib_k5crypto_krb5int_hash_md5=no
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext \
13885     conftest$ac_exeext conftest.$ac_ext
13886 LIBS=$ac_check_lib_save_LIBS
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
13889 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
13890 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
13891   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
13892 fi
13893
13894      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
13895 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
13896 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   ac_check_lib_save_LIBS=$LIBS
13900 LIBS="-lk5profile $rra_krb5_extra $LIBS"
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h.  */
13903
13904 /* Override any GCC internal prototype to avoid an error.
13905    Use char because int might match the return type of a GCC
13906    builtin and then its argument prototype would still apply.  */
13907 #ifdef __cplusplus
13908 extern "C"
13909 #endif
13910 char profile_get_values ();
13911 int
13912 main ()
13913 {
13914 return profile_get_values ();
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_link "$LINENO"; then :
13920   ac_cv_lib_k5profile_profile_get_values=yes
13921 else
13922   ac_cv_lib_k5profile_profile_get_values=no
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext \
13925     conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13927 fi
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
13929 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
13930 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
13931   rra_krb5_extra="-lk5profile $rra_krb5_extra"
13932 fi
13933
13934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
13935 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
13936 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
13937   $as_echo_n "(cached) " >&6
13938 else
13939   ac_check_lib_save_LIBS=$LIBS
13940 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943
13944 /* Override any GCC internal prototype to avoid an error.
13945    Use char because int might match the return type of a GCC
13946    builtin and then its argument prototype would still apply.  */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 char krb5_cc_default ();
13951 int
13952 main ()
13953 {
13954 return krb5_cc_default ();
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 if ac_fn_c_try_link "$LINENO"; then :
13960   ac_cv_lib_krb5_krb5_cc_default=yes
13961 else
13962   ac_cv_lib_krb5_krb5_cc_default=no
13963 fi
13964 rm -f core conftest.err conftest.$ac_objext \
13965     conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13967 fi
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
13969 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
13970 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
13971   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
13972 else
13973   if test x"true" = xtrue; then :
13974   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
13975 fi
13976 fi
13977
13978 fi
13979
13980  LIBS="$KRB5_LIBS $LIBS"
13981  if test x"$rra_krb5_incroot" = x; then :
13982   for ac_header in krb5.h krb5/krb5.h
13983 do :
13984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13987   cat >>confdefs.h <<_ACEOF
13988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13989 _ACEOF
13990
13991 fi
13992
13993 done
13994
13995 else
13996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
13997 $as_echo_n "checking for krb5.h... " >&6; }
13998  if test -f "${rra_krb5_incroot}/krb5.h"; then :
13999
14000 cat >>confdefs.h <<_ACEOF
14001 #define HAVE_KRB5_H 1
14002 _ACEOF
14003
14004      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14005 $as_echo "yes" >&6; }
14006 else
14007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009 fi
14010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14011 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14012  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14013
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_KRB5_KRB5_H 1
14016 _ACEOF
14017
14018      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14019 $as_echo "yes" >&6; }
14020 else
14021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 fi
14024 fi
14025  for ac_func in krb5_get_error_message
14026 do :
14027   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14028 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14029   cat >>confdefs.h <<_ACEOF
14030 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14031 _ACEOF
14032  for ac_func in krb5_free_error_message
14033 do :
14034   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14035 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14036   cat >>confdefs.h <<_ACEOF
14037 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14038 _ACEOF
14039
14040 fi
14041 done
14042
14043 else
14044   for ac_func in krb5_get_error_string
14045 do :
14046   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14047 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14048   cat >>confdefs.h <<_ACEOF
14049 #define HAVE_KRB5_GET_ERROR_STRING 1
14050 _ACEOF
14051
14052 else
14053   for ac_func in krb5_get_err_txt
14054 do :
14055   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14056 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14057   cat >>confdefs.h <<_ACEOF
14058 #define HAVE_KRB5_GET_ERR_TXT 1
14059 _ACEOF
14060
14061 else
14062   for ac_func in krb5_svc_get_msg
14063 do :
14064   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14065 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14066   cat >>confdefs.h <<_ACEOF
14067 #define HAVE_KRB5_SVC_GET_MSG 1
14068 _ACEOF
14069  for ac_header in ibm_svc/krb5_svc.h
14070 do :
14071   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14072 #if HAVE_KRB5_H
14073 # include <krb5.h>
14074 #else
14075 # include <krb5/krb5.h>
14076 #endif
14077
14078 "
14079 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14080   cat >>confdefs.h <<_ACEOF
14081 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14082 _ACEOF
14083
14084 fi
14085
14086 done
14087
14088 else
14089   for ac_header in et/com_err.h
14090 do :
14091   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
14092 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
14093   cat >>confdefs.h <<_ACEOF
14094 #define HAVE_ET_COM_ERR_H 1
14095 _ACEOF
14096
14097 fi
14098
14099 done
14100
14101 fi
14102 done
14103
14104 fi
14105 done
14106
14107 fi
14108 done
14109
14110 fi
14111 done
14112
14113  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14114  LDFLAGS="$rra_krb5_save_LDFLAGS"
14115  LIBS="$rra_krb5_save_LIBS"
14116 fi
14117
14118      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14119  rra_krb5_save_LDFLAGS="$LDFLAGS"
14120  rra_krb5_save_LIBS="$LIBS"
14121  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14122  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14123  LIBS="$KRB5_LIBS $LIBS"
14124      if test x"$rra_krb5_incroot" = x; then :
14125   for ac_header in krb5.h krb5/krb5.h
14126 do :
14127   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14130   cat >>confdefs.h <<_ACEOF
14131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14132 _ACEOF
14133
14134 fi
14135
14136 done
14137
14138 else
14139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14140 $as_echo_n "checking for krb5.h... " >&6; }
14141  if test -f "${rra_krb5_incroot}/krb5.h"; then :
14142
14143 cat >>confdefs.h <<_ACEOF
14144 #define HAVE_KRB5_H 1
14145 _ACEOF
14146
14147      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14148 $as_echo "yes" >&6; }
14149 else
14150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151 $as_echo "no" >&6; }
14152 fi
14153           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14154 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14155  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14156
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_KRB5_KRB5_H 1
14159 _ACEOF
14160
14161      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14162 $as_echo "yes" >&6; }
14163 else
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 fi
14167 fi
14168      for ac_func in krb5_get_error_message
14169 do :
14170   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14171 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14172   cat >>confdefs.h <<_ACEOF
14173 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14174 _ACEOF
14175  for ac_func in krb5_free_error_message
14176 do :
14177   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14178 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14179   cat >>confdefs.h <<_ACEOF
14180 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14181 _ACEOF
14182
14183 fi
14184 done
14185
14186 else
14187   for ac_func in krb5_get_error_string
14188 do :
14189   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14190 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14191   cat >>confdefs.h <<_ACEOF
14192 #define HAVE_KRB5_GET_ERROR_STRING 1
14193 _ACEOF
14194
14195 else
14196   for ac_func in krb5_get_err_txt
14197 do :
14198   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14199 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14200   cat >>confdefs.h <<_ACEOF
14201 #define HAVE_KRB5_GET_ERR_TXT 1
14202 _ACEOF
14203
14204 else
14205   for ac_func in krb5_svc_get_msg
14206 do :
14207   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14208 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14209   cat >>confdefs.h <<_ACEOF
14210 #define HAVE_KRB5_SVC_GET_MSG 1
14211 _ACEOF
14212  for ac_header in ibm_svc/krb5_svc.h
14213 do :
14214   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14215 #if HAVE_KRB5_H
14216 # include <krb5.h>
14217 #else
14218 # include <krb5/krb5.h>
14219 #endif
14220
14221 "
14222 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14223   cat >>confdefs.h <<_ACEOF
14224 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14225 _ACEOF
14226
14227 fi
14228
14229 done
14230
14231 else
14232   for ac_header in et/com_err.h
14233 do :
14234   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
14235 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
14236   cat >>confdefs.h <<_ACEOF
14237 #define HAVE_ET_COM_ERR_H 1
14238 _ACEOF
14239
14240 fi
14241
14242 done
14243
14244 fi
14245 done
14246
14247 fi
14248 done
14249
14250 fi
14251 done
14252
14253 fi
14254 done
14255
14256      CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14257  LDFLAGS="$rra_krb5_save_LDFLAGS"
14258  LIBS="$rra_krb5_save_LIBS"
14259 else
14260   if test x"$rra_krb5_libdir" != x; then :
14261   KRB5_LDFLAGS="-L$rra_krb5_libdir"
14262 else
14263   if test x"$rra_krb5_root" != x; then :
14264
14265  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
14266   if test x"" = x; then :
14267   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
14268 else
14269   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
14270 fi
14271 else
14272   if test x"" = x; then :
14273   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
14274 else
14275   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
14276 fi
14277 fi
14278  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
14279 fi
14280 fi
14281  if test x"$rra_krb5_includedir" != x; then :
14282   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
14283 else
14284   if test x"$rra_krb5_root" != x; then :
14285   if test x"$rra_krb5_root" != x/usr; then :
14286   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
14287 fi
14288 fi
14289 fi
14290      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14291  rra_krb5_save_LDFLAGS="$LDFLAGS"
14292  rra_krb5_save_LIBS="$LIBS"
14293  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14294  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14295  LIBS="$KRB5_LIBS $LIBS"
14296  rra_krb5_extra=
14297  LIBS=
14298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
14299 $as_echo_n "checking for library containing res_search... " >&6; }
14300 if ${ac_cv_search_res_search+:} false; then :
14301   $as_echo_n "(cached) " >&6
14302 else
14303   ac_func_search_save_LIBS=$LIBS
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h.  */
14306
14307 /* Override any GCC internal prototype to avoid an error.
14308    Use char because int might match the return type of a GCC
14309    builtin and then its argument prototype would still apply.  */
14310 #ifdef __cplusplus
14311 extern "C"
14312 #endif
14313 char res_search ();
14314 int
14315 main ()
14316 {
14317 return res_search ();
14318   ;
14319   return 0;
14320 }
14321 _ACEOF
14322 for ac_lib in '' resolv; do
14323   if test -z "$ac_lib"; then
14324     ac_res="none required"
14325   else
14326     ac_res=-l$ac_lib
14327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14328   fi
14329   if ac_fn_c_try_link "$LINENO"; then :
14330   ac_cv_search_res_search=$ac_res
14331 fi
14332 rm -f core conftest.err conftest.$ac_objext \
14333     conftest$ac_exeext
14334   if ${ac_cv_search_res_search+:} false; then :
14335   break
14336 fi
14337 done
14338 if ${ac_cv_search_res_search+:} false; then :
14339
14340 else
14341   ac_cv_search_res_search=no
14342 fi
14343 rm conftest.$ac_ext
14344 LIBS=$ac_func_search_save_LIBS
14345 fi
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
14347 $as_echo "$ac_cv_search_res_search" >&6; }
14348 ac_res=$ac_cv_search_res_search
14349 if test "$ac_res" != no; then :
14350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14351
14352 else
14353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
14354 $as_echo_n "checking for library containing __res_search... " >&6; }
14355 if ${ac_cv_search___res_search+:} false; then :
14356   $as_echo_n "(cached) " >&6
14357 else
14358   ac_func_search_save_LIBS=$LIBS
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h.  */
14361
14362 /* Override any GCC internal prototype to avoid an error.
14363    Use char because int might match the return type of a GCC
14364    builtin and then its argument prototype would still apply.  */
14365 #ifdef __cplusplus
14366 extern "C"
14367 #endif
14368 char __res_search ();
14369 int
14370 main ()
14371 {
14372 return __res_search ();
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 for ac_lib in '' resolv; do
14378   if test -z "$ac_lib"; then
14379     ac_res="none required"
14380   else
14381     ac_res=-l$ac_lib
14382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14383   fi
14384   if ac_fn_c_try_link "$LINENO"; then :
14385   ac_cv_search___res_search=$ac_res
14386 fi
14387 rm -f core conftest.err conftest.$ac_objext \
14388     conftest$ac_exeext
14389   if ${ac_cv_search___res_search+:} false; then :
14390   break
14391 fi
14392 done
14393 if ${ac_cv_search___res_search+:} false; then :
14394
14395 else
14396   ac_cv_search___res_search=no
14397 fi
14398 rm conftest.$ac_ext
14399 LIBS=$ac_func_search_save_LIBS
14400 fi
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
14402 $as_echo "$ac_cv_search___res_search" >&6; }
14403 ac_res=$ac_cv_search___res_search
14404 if test "$ac_res" != no; then :
14405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14406
14407 fi
14408
14409 fi
14410
14411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14412 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14413 if ${ac_cv_search_gethostbyname+:} false; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416   ac_func_search_save_LIBS=$LIBS
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h.  */
14419
14420 /* Override any GCC internal prototype to avoid an error.
14421    Use char because int might match the return type of a GCC
14422    builtin and then its argument prototype would still apply.  */
14423 #ifdef __cplusplus
14424 extern "C"
14425 #endif
14426 char gethostbyname ();
14427 int
14428 main ()
14429 {
14430 return gethostbyname ();
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 for ac_lib in '' nsl; do
14436   if test -z "$ac_lib"; then
14437     ac_res="none required"
14438   else
14439     ac_res=-l$ac_lib
14440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14441   fi
14442   if ac_fn_c_try_link "$LINENO"; then :
14443   ac_cv_search_gethostbyname=$ac_res
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext \
14446     conftest$ac_exeext
14447   if ${ac_cv_search_gethostbyname+:} false; then :
14448   break
14449 fi
14450 done
14451 if ${ac_cv_search_gethostbyname+:} false; then :
14452
14453 else
14454   ac_cv_search_gethostbyname=no
14455 fi
14456 rm conftest.$ac_ext
14457 LIBS=$ac_func_search_save_LIBS
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14460 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14461 ac_res=$ac_cv_search_gethostbyname
14462 if test "$ac_res" != no; then :
14463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14464
14465 fi
14466
14467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14468 $as_echo_n "checking for library containing socket... " >&6; }
14469 if ${ac_cv_search_socket+:} false; then :
14470   $as_echo_n "(cached) " >&6
14471 else
14472   ac_func_search_save_LIBS=$LIBS
14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h.  */
14475
14476 /* Override any GCC internal prototype to avoid an error.
14477    Use char because int might match the return type of a GCC
14478    builtin and then its argument prototype would still apply.  */
14479 #ifdef __cplusplus
14480 extern "C"
14481 #endif
14482 char socket ();
14483 int
14484 main ()
14485 {
14486 return socket ();
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 for ac_lib in '' socket; do
14492   if test -z "$ac_lib"; then
14493     ac_res="none required"
14494   else
14495     ac_res=-l$ac_lib
14496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14497   fi
14498   if ac_fn_c_try_link "$LINENO"; then :
14499   ac_cv_search_socket=$ac_res
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext \
14502     conftest$ac_exeext
14503   if ${ac_cv_search_socket+:} false; then :
14504   break
14505 fi
14506 done
14507 if ${ac_cv_search_socket+:} false; then :
14508
14509 else
14510   ac_cv_search_socket=no
14511 fi
14512 rm conftest.$ac_ext
14513 LIBS=$ac_func_search_save_LIBS
14514 fi
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14516 $as_echo "$ac_cv_search_socket" >&6; }
14517 ac_res=$ac_cv_search_socket
14518 if test "$ac_res" != no; then :
14519   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14520
14521 else
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
14523 $as_echo_n "checking for socket in -lnsl... " >&6; }
14524 if ${ac_cv_lib_nsl_socket+:} false; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   ac_check_lib_save_LIBS=$LIBS
14528 LIBS="-lnsl -lsocket $LIBS"
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h.  */
14531
14532 /* Override any GCC internal prototype to avoid an error.
14533    Use char because int might match the return type of a GCC
14534    builtin and then its argument prototype would still apply.  */
14535 #ifdef __cplusplus
14536 extern "C"
14537 #endif
14538 char socket ();
14539 int
14540 main ()
14541 {
14542 return socket ();
14543   ;
14544   return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_link "$LINENO"; then :
14548   ac_cv_lib_nsl_socket=yes
14549 else
14550   ac_cv_lib_nsl_socket=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext \
14553     conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
14557 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
14558 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
14559   LIBS="-lnsl -lsocket $LIBS"
14560 fi
14561
14562 fi
14563
14564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14565 $as_echo_n "checking for library containing crypt... " >&6; }
14566 if ${ac_cv_search_crypt+:} false; then :
14567   $as_echo_n "(cached) " >&6
14568 else
14569   ac_func_search_save_LIBS=$LIBS
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h.  */
14572
14573 /* Override any GCC internal prototype to avoid an error.
14574    Use char because int might match the return type of a GCC
14575    builtin and then its argument prototype would still apply.  */
14576 #ifdef __cplusplus
14577 extern "C"
14578 #endif
14579 char crypt ();
14580 int
14581 main ()
14582 {
14583 return crypt ();
14584   ;
14585   return 0;
14586 }
14587 _ACEOF
14588 for ac_lib in '' crypt; do
14589   if test -z "$ac_lib"; then
14590     ac_res="none required"
14591   else
14592     ac_res=-l$ac_lib
14593     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14594   fi
14595   if ac_fn_c_try_link "$LINENO"; then :
14596   ac_cv_search_crypt=$ac_res
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext \
14599     conftest$ac_exeext
14600   if ${ac_cv_search_crypt+:} false; then :
14601   break
14602 fi
14603 done
14604 if ${ac_cv_search_crypt+:} false; then :
14605
14606 else
14607   ac_cv_search_crypt=no
14608 fi
14609 rm conftest.$ac_ext
14610 LIBS=$ac_func_search_save_LIBS
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14613 $as_echo "$ac_cv_search_crypt" >&6; }
14614 ac_res=$ac_cv_search_crypt
14615 if test "$ac_res" != no; then :
14616   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14617
14618 fi
14619
14620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
14621 $as_echo_n "checking for library containing roken_concat... " >&6; }
14622 if ${ac_cv_search_roken_concat+:} false; then :
14623   $as_echo_n "(cached) " >&6
14624 else
14625   ac_func_search_save_LIBS=$LIBS
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h.  */
14628
14629 /* Override any GCC internal prototype to avoid an error.
14630    Use char because int might match the return type of a GCC
14631    builtin and then its argument prototype would still apply.  */
14632 #ifdef __cplusplus
14633 extern "C"
14634 #endif
14635 char roken_concat ();
14636 int
14637 main ()
14638 {
14639 return roken_concat ();
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 for ac_lib in '' roken; do
14645   if test -z "$ac_lib"; then
14646     ac_res="none required"
14647   else
14648     ac_res=-l$ac_lib
14649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14650   fi
14651   if ac_fn_c_try_link "$LINENO"; then :
14652   ac_cv_search_roken_concat=$ac_res
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext \
14655     conftest$ac_exeext
14656   if ${ac_cv_search_roken_concat+:} false; then :
14657   break
14658 fi
14659 done
14660 if ${ac_cv_search_roken_concat+:} false; then :
14661
14662 else
14663   ac_cv_search_roken_concat=no
14664 fi
14665 rm conftest.$ac_ext
14666 LIBS=$ac_func_search_save_LIBS
14667 fi
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
14669 $as_echo "$ac_cv_search_roken_concat" >&6; }
14670 ac_res=$ac_cv_search_roken_concat
14671 if test "$ac_res" != no; then :
14672   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14673
14674 fi
14675
14676  rra_krb5_extra="$LIBS"
14677  LIBS="$rra_krb5_save_LIBS"
14678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14679 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14680 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14681   $as_echo_n "(cached) " >&6
14682 else
14683   ac_check_lib_save_LIBS=$LIBS
14684 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h.  */
14687
14688 /* Override any GCC internal prototype to avoid an error.
14689    Use char because int might match the return type of a GCC
14690    builtin and then its argument prototype would still apply.  */
14691 #ifdef __cplusplus
14692 extern "C"
14693 #endif
14694 char krb5_init_context ();
14695 int
14696 main ()
14697 {
14698 return krb5_init_context ();
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 if ac_fn_c_try_link "$LINENO"; then :
14704   ac_cv_lib_krb5_krb5_init_context=yes
14705 else
14706   ac_cv_lib_krb5_krb5_init_context=no
14707 fi
14708 rm -f core conftest.err conftest.$ac_objext \
14709     conftest$ac_exeext conftest.$ac_ext
14710 LIBS=$ac_check_lib_save_LIBS
14711 fi
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14713 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14714 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14715   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
14716 else
14717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14718 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14719 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14720   $as_echo_n "(cached) " >&6
14721 else
14722   ac_check_lib_save_LIBS=$LIBS
14723 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h.  */
14726
14727 /* Override any GCC internal prototype to avoid an error.
14728    Use char because int might match the return type of a GCC
14729    builtin and then its argument prototype would still apply.  */
14730 #ifdef __cplusplus
14731 extern "C"
14732 #endif
14733 char krb5int_getspecific ();
14734 int
14735 main ()
14736 {
14737 return krb5int_getspecific ();
14738   ;
14739   return 0;
14740 }
14741 _ACEOF
14742 if ac_fn_c_try_link "$LINENO"; then :
14743   ac_cv_lib_krb5support_krb5int_getspecific=yes
14744 else
14745   ac_cv_lib_krb5support_krb5int_getspecific=no
14746 fi
14747 rm -f core conftest.err conftest.$ac_objext \
14748     conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14752 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14753 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14754   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
14755 else
14756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
14757 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
14758 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
14759   $as_echo_n "(cached) " >&6
14760 else
14761   ac_check_lib_save_LIBS=$LIBS
14762 LIBS="-lpthreads  $LIBS"
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h.  */
14765
14766 /* Override any GCC internal prototype to avoid an error.
14767    Use char because int might match the return type of a GCC
14768    builtin and then its argument prototype would still apply.  */
14769 #ifdef __cplusplus
14770 extern "C"
14771 #endif
14772 char pthread_setspecific ();
14773 int
14774 main ()
14775 {
14776 return pthread_setspecific ();
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 if ac_fn_c_try_link "$LINENO"; then :
14782   ac_cv_lib_pthreads_pthread_setspecific=yes
14783 else
14784   ac_cv_lib_pthreads_pthread_setspecific=no
14785 fi
14786 rm -f core conftest.err conftest.$ac_objext \
14787     conftest$ac_exeext conftest.$ac_ext
14788 LIBS=$ac_check_lib_save_LIBS
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
14791 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
14792 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
14793   rra_krb5_pthread="-lpthreads"
14794 else
14795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
14796 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
14797 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
14798   $as_echo_n "(cached) " >&6
14799 else
14800   ac_check_lib_save_LIBS=$LIBS
14801 LIBS="-lpthread  $LIBS"
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h.  */
14804
14805 /* Override any GCC internal prototype to avoid an error.
14806    Use char because int might match the return type of a GCC
14807    builtin and then its argument prototype would still apply.  */
14808 #ifdef __cplusplus
14809 extern "C"
14810 #endif
14811 char pthread_setspecific ();
14812 int
14813 main ()
14814 {
14815 return pthread_setspecific ();
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_c_try_link "$LINENO"; then :
14821   ac_cv_lib_pthread_pthread_setspecific=yes
14822 else
14823   ac_cv_lib_pthread_pthread_setspecific=no
14824 fi
14825 rm -f core conftest.err conftest.$ac_objext \
14826     conftest$ac_exeext conftest.$ac_ext
14827 LIBS=$ac_check_lib_save_LIBS
14828 fi
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
14830 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
14831 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
14832   rra_krb5_pthread="-lpthread"
14833 fi
14834
14835 fi
14836
14837          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
14838 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
14839 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h.  */
14846
14847 /* Override any GCC internal prototype to avoid an error.
14848    Use char because int might match the return type of a GCC
14849    builtin and then its argument prototype would still apply.  */
14850 #ifdef __cplusplus
14851 extern "C"
14852 #endif
14853 char krb5int_setspecific ();
14854 int
14855 main ()
14856 {
14857 return krb5int_setspecific ();
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 if ac_fn_c_try_link "$LINENO"; then :
14863   ac_cv_lib_krb5support_krb5int_setspecific=yes
14864 else
14865   ac_cv_lib_krb5support_krb5int_setspecific=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext \
14868     conftest$ac_exeext conftest.$ac_ext
14869 LIBS=$ac_check_lib_save_LIBS
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
14872 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
14873 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
14874   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
14875 fi
14876
14877 fi
14878
14879      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
14880 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
14881 if ${ac_cv_lib_com_err_error_message+:} false; then :
14882   $as_echo_n "(cached) " >&6
14883 else
14884   ac_check_lib_save_LIBS=$LIBS
14885 LIBS="-lcom_err $rra_krb5_extra $LIBS"
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h.  */
14888
14889 /* Override any GCC internal prototype to avoid an error.
14890    Use char because int might match the return type of a GCC
14891    builtin and then its argument prototype would still apply.  */
14892 #ifdef __cplusplus
14893 extern "C"
14894 #endif
14895 char error_message ();
14896 int
14897 main ()
14898 {
14899 return error_message ();
14900   ;
14901   return 0;
14902 }
14903 _ACEOF
14904 if ac_fn_c_try_link "$LINENO"; then :
14905   ac_cv_lib_com_err_error_message=yes
14906 else
14907   ac_cv_lib_com_err_error_message=no
14908 fi
14909 rm -f core conftest.err conftest.$ac_objext \
14910     conftest$ac_exeext conftest.$ac_ext
14911 LIBS=$ac_check_lib_save_LIBS
14912 fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
14914 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
14915 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
14916   rra_krb5_extra="-lcom_err $rra_krb5_extra"
14917 fi
14918
14919      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
14920 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
14921 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
14922   $as_echo_n "(cached) " >&6
14923 else
14924   ac_check_lib_save_LIBS=$LIBS
14925 LIBS="-lksvc $rra_krb5_extra $LIBS"
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h.  */
14928
14929 /* Override any GCC internal prototype to avoid an error.
14930    Use char because int might match the return type of a GCC
14931    builtin and then its argument prototype would still apply.  */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 char krb5_svc_get_msg ();
14936 int
14937 main ()
14938 {
14939 return krb5_svc_get_msg ();
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 if ac_fn_c_try_link "$LINENO"; then :
14945   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
14946 else
14947   ac_cv_lib_ksvc_krb5_svc_get_msg=no
14948 fi
14949 rm -f core conftest.err conftest.$ac_objext \
14950     conftest$ac_exeext conftest.$ac_ext
14951 LIBS=$ac_check_lib_save_LIBS
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
14954 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
14955 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
14956   rra_krb5_extra="-lksvc $rra_krb5_extra"
14957 fi
14958
14959      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
14960 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
14961 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
14962   $as_echo_n "(cached) " >&6
14963 else
14964   ac_check_lib_save_LIBS=$LIBS
14965 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h.  */
14968
14969 /* Override any GCC internal prototype to avoid an error.
14970    Use char because int might match the return type of a GCC
14971    builtin and then its argument prototype would still apply.  */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 char krb5int_hash_md5 ();
14976 int
14977 main ()
14978 {
14979 return krb5int_hash_md5 ();
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
14986 else
14987   ac_cv_lib_k5crypto_krb5int_hash_md5=no
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990     conftest$ac_exeext conftest.$ac_ext
14991 LIBS=$ac_check_lib_save_LIBS
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
14994 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
14995 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
14996   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
14997 fi
14998
14999      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15000 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
15001 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
15002   $as_echo_n "(cached) " >&6
15003 else
15004   ac_check_lib_save_LIBS=$LIBS
15005 LIBS="-lk5profile $rra_krb5_extra $LIBS"
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h.  */
15008
15009 /* Override any GCC internal prototype to avoid an error.
15010    Use char because int might match the return type of a GCC
15011    builtin and then its argument prototype would still apply.  */
15012 #ifdef __cplusplus
15013 extern "C"
15014 #endif
15015 char profile_get_values ();
15016 int
15017 main ()
15018 {
15019 return profile_get_values ();
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 if ac_fn_c_try_link "$LINENO"; then :
15025   ac_cv_lib_k5profile_profile_get_values=yes
15026 else
15027   ac_cv_lib_k5profile_profile_get_values=no
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext \
15030     conftest$ac_exeext conftest.$ac_ext
15031 LIBS=$ac_check_lib_save_LIBS
15032 fi
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
15034 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
15035 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
15036   rra_krb5_extra="-lk5profile $rra_krb5_extra"
15037 fi
15038
15039      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
15040 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
15041 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
15042   $as_echo_n "(cached) " >&6
15043 else
15044   ac_check_lib_save_LIBS=$LIBS
15045 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h.  */
15048
15049 /* Override any GCC internal prototype to avoid an error.
15050    Use char because int might match the return type of a GCC
15051    builtin and then its argument prototype would still apply.  */
15052 #ifdef __cplusplus
15053 extern "C"
15054 #endif
15055 char krb5_cc_default ();
15056 int
15057 main ()
15058 {
15059 return krb5_cc_default ();
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 if ac_fn_c_try_link "$LINENO"; then :
15065   ac_cv_lib_krb5_krb5_cc_default=yes
15066 else
15067   ac_cv_lib_krb5_krb5_cc_default=no
15068 fi
15069 rm -f core conftest.err conftest.$ac_objext \
15070     conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15072 fi
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
15074 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
15075 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
15076   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
15077 else
15078   if test x"true" = xtrue; then :
15079   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
15080 fi
15081 fi
15082
15083 fi
15084
15085  LIBS="$KRB5_LIBS $LIBS"
15086  if test x"$rra_krb5_incroot" = x; then :
15087   for ac_header in krb5.h krb5/krb5.h
15088 do :
15089   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15092   cat >>confdefs.h <<_ACEOF
15093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15094 _ACEOF
15095
15096 fi
15097
15098 done
15099
15100 else
15101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
15102 $as_echo_n "checking for krb5.h... " >&6; }
15103  if test -f "${rra_krb5_incroot}/krb5.h"; then :
15104
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_KRB5_H 1
15107 _ACEOF
15108
15109      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15110 $as_echo "yes" >&6; }
15111 else
15112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 $as_echo "no" >&6; }
15114 fi
15115       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
15116 $as_echo_n "checking for krb5/krb5.h... " >&6; }
15117  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
15118
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_KRB5_KRB5_H 1
15121 _ACEOF
15122
15123      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15124 $as_echo "yes" >&6; }
15125 else
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 $as_echo "no" >&6; }
15128 fi
15129 fi
15130  for ac_func in krb5_get_error_message
15131 do :
15132   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
15133 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
15134   cat >>confdefs.h <<_ACEOF
15135 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
15136 _ACEOF
15137  for ac_func in krb5_free_error_message
15138 do :
15139   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
15140 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
15141   cat >>confdefs.h <<_ACEOF
15142 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
15143 _ACEOF
15144
15145 fi
15146 done
15147
15148 else
15149   for ac_func in krb5_get_error_string
15150 do :
15151   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
15152 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
15153   cat >>confdefs.h <<_ACEOF
15154 #define HAVE_KRB5_GET_ERROR_STRING 1
15155 _ACEOF
15156
15157 else
15158   for ac_func in krb5_get_err_txt
15159 do :
15160   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
15161 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
15162   cat >>confdefs.h <<_ACEOF
15163 #define HAVE_KRB5_GET_ERR_TXT 1
15164 _ACEOF
15165
15166 else
15167   for ac_func in krb5_svc_get_msg
15168 do :
15169   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
15170 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
15171   cat >>confdefs.h <<_ACEOF
15172 #define HAVE_KRB5_SVC_GET_MSG 1
15173 _ACEOF
15174  for ac_header in ibm_svc/krb5_svc.h
15175 do :
15176   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
15177 #if HAVE_KRB5_H
15178 # include <krb5.h>
15179 #else
15180 # include <krb5/krb5.h>
15181 #endif
15182
15183 "
15184 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
15185   cat >>confdefs.h <<_ACEOF
15186 #define HAVE_IBM_SVC_KRB5_SVC_H 1
15187 _ACEOF
15188
15189 fi
15190
15191 done
15192
15193 else
15194   for ac_header in et/com_err.h
15195 do :
15196   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
15197 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
15198   cat >>confdefs.h <<_ACEOF
15199 #define HAVE_ET_COM_ERR_H 1
15200 _ACEOF
15201
15202 fi
15203
15204 done
15205
15206 fi
15207 done
15208
15209 fi
15210 done
15211
15212 fi
15213 done
15214
15215 fi
15216 done
15217
15218  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15219  LDFLAGS="$rra_krb5_save_LDFLAGS"
15220  LIBS="$rra_krb5_save_LIBS"
15221 fi
15222 else
15223   if test x"$rra_krb5_libdir" != x; then :
15224   KRB5_LDFLAGS="-L$rra_krb5_libdir"
15225 else
15226   if test x"$rra_krb5_root" != x; then :
15227
15228  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15229   if test x"" = x; then :
15230   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15231 else
15232   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15233 fi
15234 else
15235   if test x"" = x; then :
15236   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15237 else
15238   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15239 fi
15240 fi
15241  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15242 fi
15243 fi
15244  if test x"$rra_krb5_includedir" != x; then :
15245   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15246 else
15247   if test x"$rra_krb5_root" != x; then :
15248   if test x"$rra_krb5_root" != x/usr; then :
15249   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15250 fi
15251 fi
15252 fi
15253          rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15254  rra_krb5_save_LDFLAGS="$LDFLAGS"
15255  rra_krb5_save_LIBS="$LIBS"
15256  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15257  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15258  LIBS="$KRB5_LIBS $LIBS"
15259  rra_krb5_extra=
15260  LIBS=
15261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
15262 $as_echo_n "checking for library containing res_search... " >&6; }
15263 if ${ac_cv_search_res_search+:} false; then :
15264   $as_echo_n "(cached) " >&6
15265 else
15266   ac_func_search_save_LIBS=$LIBS
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h.  */
15269
15270 /* Override any GCC internal prototype to avoid an error.
15271    Use char because int might match the return type of a GCC
15272    builtin and then its argument prototype would still apply.  */
15273 #ifdef __cplusplus
15274 extern "C"
15275 #endif
15276 char res_search ();
15277 int
15278 main ()
15279 {
15280 return res_search ();
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 for ac_lib in '' resolv; do
15286   if test -z "$ac_lib"; then
15287     ac_res="none required"
15288   else
15289     ac_res=-l$ac_lib
15290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15291   fi
15292   if ac_fn_c_try_link "$LINENO"; then :
15293   ac_cv_search_res_search=$ac_res
15294 fi
15295 rm -f core conftest.err conftest.$ac_objext \
15296     conftest$ac_exeext
15297   if ${ac_cv_search_res_search+:} false; then :
15298   break
15299 fi
15300 done
15301 if ${ac_cv_search_res_search+:} false; then :
15302
15303 else
15304   ac_cv_search_res_search=no
15305 fi
15306 rm conftest.$ac_ext
15307 LIBS=$ac_func_search_save_LIBS
15308 fi
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
15310 $as_echo "$ac_cv_search_res_search" >&6; }
15311 ac_res=$ac_cv_search_res_search
15312 if test "$ac_res" != no; then :
15313   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15314
15315 else
15316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
15317 $as_echo_n "checking for library containing __res_search... " >&6; }
15318 if ${ac_cv_search___res_search+:} false; then :
15319   $as_echo_n "(cached) " >&6
15320 else
15321   ac_func_search_save_LIBS=$LIBS
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h.  */
15324
15325 /* Override any GCC internal prototype to avoid an error.
15326    Use char because int might match the return type of a GCC
15327    builtin and then its argument prototype would still apply.  */
15328 #ifdef __cplusplus
15329 extern "C"
15330 #endif
15331 char __res_search ();
15332 int
15333 main ()
15334 {
15335 return __res_search ();
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 for ac_lib in '' resolv; do
15341   if test -z "$ac_lib"; then
15342     ac_res="none required"
15343   else
15344     ac_res=-l$ac_lib
15345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15346   fi
15347   if ac_fn_c_try_link "$LINENO"; then :
15348   ac_cv_search___res_search=$ac_res
15349 fi
15350 rm -f core conftest.err conftest.$ac_objext \
15351     conftest$ac_exeext
15352   if ${ac_cv_search___res_search+:} false; then :
15353   break
15354 fi
15355 done
15356 if ${ac_cv_search___res_search+:} false; then :
15357
15358 else
15359   ac_cv_search___res_search=no
15360 fi
15361 rm conftest.$ac_ext
15362 LIBS=$ac_func_search_save_LIBS
15363 fi
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
15365 $as_echo "$ac_cv_search___res_search" >&6; }
15366 ac_res=$ac_cv_search___res_search
15367 if test "$ac_res" != no; then :
15368   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15369
15370 fi
15371
15372 fi
15373
15374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15375 $as_echo_n "checking for library containing gethostbyname... " >&6; }
15376 if ${ac_cv_search_gethostbyname+:} false; then :
15377   $as_echo_n "(cached) " >&6
15378 else
15379   ac_func_search_save_LIBS=$LIBS
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h.  */
15382
15383 /* Override any GCC internal prototype to avoid an error.
15384    Use char because int might match the return type of a GCC
15385    builtin and then its argument prototype would still apply.  */
15386 #ifdef __cplusplus
15387 extern "C"
15388 #endif
15389 char gethostbyname ();
15390 int
15391 main ()
15392 {
15393 return gethostbyname ();
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 for ac_lib in '' nsl; do
15399   if test -z "$ac_lib"; then
15400     ac_res="none required"
15401   else
15402     ac_res=-l$ac_lib
15403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15404   fi
15405   if ac_fn_c_try_link "$LINENO"; then :
15406   ac_cv_search_gethostbyname=$ac_res
15407 fi
15408 rm -f core conftest.err conftest.$ac_objext \
15409     conftest$ac_exeext
15410   if ${ac_cv_search_gethostbyname+:} false; then :
15411   break
15412 fi
15413 done
15414 if ${ac_cv_search_gethostbyname+:} false; then :
15415
15416 else
15417   ac_cv_search_gethostbyname=no
15418 fi
15419 rm conftest.$ac_ext
15420 LIBS=$ac_func_search_save_LIBS
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15423 $as_echo "$ac_cv_search_gethostbyname" >&6; }
15424 ac_res=$ac_cv_search_gethostbyname
15425 if test "$ac_res" != no; then :
15426   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15427
15428 fi
15429
15430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15431 $as_echo_n "checking for library containing socket... " >&6; }
15432 if ${ac_cv_search_socket+:} false; then :
15433   $as_echo_n "(cached) " >&6
15434 else
15435   ac_func_search_save_LIBS=$LIBS
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h.  */
15438
15439 /* Override any GCC internal prototype to avoid an error.
15440    Use char because int might match the return type of a GCC
15441    builtin and then its argument prototype would still apply.  */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 char socket ();
15446 int
15447 main ()
15448 {
15449 return socket ();
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 for ac_lib in '' socket; do
15455   if test -z "$ac_lib"; then
15456     ac_res="none required"
15457   else
15458     ac_res=-l$ac_lib
15459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15460   fi
15461   if ac_fn_c_try_link "$LINENO"; then :
15462   ac_cv_search_socket=$ac_res
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext \
15465     conftest$ac_exeext
15466   if ${ac_cv_search_socket+:} false; then :
15467   break
15468 fi
15469 done
15470 if ${ac_cv_search_socket+:} false; then :
15471
15472 else
15473   ac_cv_search_socket=no
15474 fi
15475 rm conftest.$ac_ext
15476 LIBS=$ac_func_search_save_LIBS
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15479 $as_echo "$ac_cv_search_socket" >&6; }
15480 ac_res=$ac_cv_search_socket
15481 if test "$ac_res" != no; then :
15482   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15483
15484 else
15485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
15486 $as_echo_n "checking for socket in -lnsl... " >&6; }
15487 if ${ac_cv_lib_nsl_socket+:} false; then :
15488   $as_echo_n "(cached) " >&6
15489 else
15490   ac_check_lib_save_LIBS=$LIBS
15491 LIBS="-lnsl -lsocket $LIBS"
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h.  */
15494
15495 /* Override any GCC internal prototype to avoid an error.
15496    Use char because int might match the return type of a GCC
15497    builtin and then its argument prototype would still apply.  */
15498 #ifdef __cplusplus
15499 extern "C"
15500 #endif
15501 char socket ();
15502 int
15503 main ()
15504 {
15505 return socket ();
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 if ac_fn_c_try_link "$LINENO"; then :
15511   ac_cv_lib_nsl_socket=yes
15512 else
15513   ac_cv_lib_nsl_socket=no
15514 fi
15515 rm -f core conftest.err conftest.$ac_objext \
15516     conftest$ac_exeext conftest.$ac_ext
15517 LIBS=$ac_check_lib_save_LIBS
15518 fi
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
15520 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
15521 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
15522   LIBS="-lnsl -lsocket $LIBS"
15523 fi
15524
15525 fi
15526
15527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15528 $as_echo_n "checking for library containing crypt... " >&6; }
15529 if ${ac_cv_search_crypt+:} false; then :
15530   $as_echo_n "(cached) " >&6
15531 else
15532   ac_func_search_save_LIBS=$LIBS
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h.  */
15535
15536 /* Override any GCC internal prototype to avoid an error.
15537    Use char because int might match the return type of a GCC
15538    builtin and then its argument prototype would still apply.  */
15539 #ifdef __cplusplus
15540 extern "C"
15541 #endif
15542 char crypt ();
15543 int
15544 main ()
15545 {
15546 return crypt ();
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 for ac_lib in '' crypt; do
15552   if test -z "$ac_lib"; then
15553     ac_res="none required"
15554   else
15555     ac_res=-l$ac_lib
15556     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15557   fi
15558   if ac_fn_c_try_link "$LINENO"; then :
15559   ac_cv_search_crypt=$ac_res
15560 fi
15561 rm -f core conftest.err conftest.$ac_objext \
15562     conftest$ac_exeext
15563   if ${ac_cv_search_crypt+:} false; then :
15564   break
15565 fi
15566 done
15567 if ${ac_cv_search_crypt+:} false; then :
15568
15569 else
15570   ac_cv_search_crypt=no
15571 fi
15572 rm conftest.$ac_ext
15573 LIBS=$ac_func_search_save_LIBS
15574 fi
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15576 $as_echo "$ac_cv_search_crypt" >&6; }
15577 ac_res=$ac_cv_search_crypt
15578 if test "$ac_res" != no; then :
15579   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15580
15581 fi
15582
15583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
15584 $as_echo_n "checking for library containing roken_concat... " >&6; }
15585 if ${ac_cv_search_roken_concat+:} false; then :
15586   $as_echo_n "(cached) " >&6
15587 else
15588   ac_func_search_save_LIBS=$LIBS
15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h.  */
15591
15592 /* Override any GCC internal prototype to avoid an error.
15593    Use char because int might match the return type of a GCC
15594    builtin and then its argument prototype would still apply.  */
15595 #ifdef __cplusplus
15596 extern "C"
15597 #endif
15598 char roken_concat ();
15599 int
15600 main ()
15601 {
15602 return roken_concat ();
15603   ;
15604   return 0;
15605 }
15606 _ACEOF
15607 for ac_lib in '' roken; do
15608   if test -z "$ac_lib"; then
15609     ac_res="none required"
15610   else
15611     ac_res=-l$ac_lib
15612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15613   fi
15614   if ac_fn_c_try_link "$LINENO"; then :
15615   ac_cv_search_roken_concat=$ac_res
15616 fi
15617 rm -f core conftest.err conftest.$ac_objext \
15618     conftest$ac_exeext
15619   if ${ac_cv_search_roken_concat+:} false; then :
15620   break
15621 fi
15622 done
15623 if ${ac_cv_search_roken_concat+:} false; then :
15624
15625 else
15626   ac_cv_search_roken_concat=no
15627 fi
15628 rm conftest.$ac_ext
15629 LIBS=$ac_func_search_save_LIBS
15630 fi
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
15632 $as_echo "$ac_cv_search_roken_concat" >&6; }
15633 ac_res=$ac_cv_search_roken_concat
15634 if test "$ac_res" != no; then :
15635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15636
15637 fi
15638
15639  rra_krb5_extra="$LIBS"
15640  LIBS="$rra_krb5_save_LIBS"
15641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15642 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15643 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15644   $as_echo_n "(cached) " >&6
15645 else
15646   ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h.  */
15650
15651 /* Override any GCC internal prototype to avoid an error.
15652    Use char because int might match the return type of a GCC
15653    builtin and then its argument prototype would still apply.  */
15654 #ifdef __cplusplus
15655 extern "C"
15656 #endif
15657 char krb5_init_context ();
15658 int
15659 main ()
15660 {
15661 return krb5_init_context ();
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_link "$LINENO"; then :
15667   ac_cv_lib_krb5_krb5_init_context=yes
15668 else
15669   ac_cv_lib_krb5_krb5_init_context=no
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext \
15672     conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15674 fi
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15676 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15677 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15678   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
15679 else
15680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
15681 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
15682 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
15683   $as_echo_n "(cached) " >&6
15684 else
15685   ac_check_lib_save_LIBS=$LIBS
15686 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h.  */
15689
15690 /* Override any GCC internal prototype to avoid an error.
15691    Use char because int might match the return type of a GCC
15692    builtin and then its argument prototype would still apply.  */
15693 #ifdef __cplusplus
15694 extern "C"
15695 #endif
15696 char krb5int_getspecific ();
15697 int
15698 main ()
15699 {
15700 return krb5int_getspecific ();
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 if ac_fn_c_try_link "$LINENO"; then :
15706   ac_cv_lib_krb5support_krb5int_getspecific=yes
15707 else
15708   ac_cv_lib_krb5support_krb5int_getspecific=no
15709 fi
15710 rm -f core conftest.err conftest.$ac_objext \
15711     conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15713 fi
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
15715 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
15716 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
15717   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
15718 else
15719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
15720 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
15721 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
15722   $as_echo_n "(cached) " >&6
15723 else
15724   ac_check_lib_save_LIBS=$LIBS
15725 LIBS="-lpthreads  $LIBS"
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h.  */
15728
15729 /* Override any GCC internal prototype to avoid an error.
15730    Use char because int might match the return type of a GCC
15731    builtin and then its argument prototype would still apply.  */
15732 #ifdef __cplusplus
15733 extern "C"
15734 #endif
15735 char pthread_setspecific ();
15736 int
15737 main ()
15738 {
15739 return pthread_setspecific ();
15740   ;
15741   return 0;
15742 }
15743 _ACEOF
15744 if ac_fn_c_try_link "$LINENO"; then :
15745   ac_cv_lib_pthreads_pthread_setspecific=yes
15746 else
15747   ac_cv_lib_pthreads_pthread_setspecific=no
15748 fi
15749 rm -f core conftest.err conftest.$ac_objext \
15750     conftest$ac_exeext conftest.$ac_ext
15751 LIBS=$ac_check_lib_save_LIBS
15752 fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
15754 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
15755 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
15756   rra_krb5_pthread="-lpthreads"
15757 else
15758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
15759 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
15760 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
15761   $as_echo_n "(cached) " >&6
15762 else
15763   ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lpthread  $LIBS"
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h.  */
15767
15768 /* Override any GCC internal prototype to avoid an error.
15769    Use char because int might match the return type of a GCC
15770    builtin and then its argument prototype would still apply.  */
15771 #ifdef __cplusplus
15772 extern "C"
15773 #endif
15774 char pthread_setspecific ();
15775 int
15776 main ()
15777 {
15778 return pthread_setspecific ();
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 if ac_fn_c_try_link "$LINENO"; then :
15784   ac_cv_lib_pthread_pthread_setspecific=yes
15785 else
15786   ac_cv_lib_pthread_pthread_setspecific=no
15787 fi
15788 rm -f core conftest.err conftest.$ac_objext \
15789     conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_lib_save_LIBS
15791 fi
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
15793 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
15794 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
15795   rra_krb5_pthread="-lpthread"
15796 fi
15797
15798 fi
15799
15800          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
15801 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
15802 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
15803   $as_echo_n "(cached) " >&6
15804 else
15805   ac_check_lib_save_LIBS=$LIBS
15806 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h.  */
15809
15810 /* Override any GCC internal prototype to avoid an error.
15811    Use char because int might match the return type of a GCC
15812    builtin and then its argument prototype would still apply.  */
15813 #ifdef __cplusplus
15814 extern "C"
15815 #endif
15816 char krb5int_setspecific ();
15817 int
15818 main ()
15819 {
15820 return krb5int_setspecific ();
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 if ac_fn_c_try_link "$LINENO"; then :
15826   ac_cv_lib_krb5support_krb5int_setspecific=yes
15827 else
15828   ac_cv_lib_krb5support_krb5int_setspecific=no
15829 fi
15830 rm -f core conftest.err conftest.$ac_objext \
15831     conftest$ac_exeext conftest.$ac_ext
15832 LIBS=$ac_check_lib_save_LIBS
15833 fi
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
15835 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
15836 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
15837   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
15838 fi
15839
15840 fi
15841
15842      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
15843 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
15844 if ${ac_cv_lib_com_err_error_message+:} false; then :
15845   $as_echo_n "(cached) " >&6
15846 else
15847   ac_check_lib_save_LIBS=$LIBS
15848 LIBS="-lcom_err $rra_krb5_extra $LIBS"
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h.  */
15851
15852 /* Override any GCC internal prototype to avoid an error.
15853    Use char because int might match the return type of a GCC
15854    builtin and then its argument prototype would still apply.  */
15855 #ifdef __cplusplus
15856 extern "C"
15857 #endif
15858 char error_message ();
15859 int
15860 main ()
15861 {
15862 return error_message ();
15863   ;
15864   return 0;
15865 }
15866 _ACEOF
15867 if ac_fn_c_try_link "$LINENO"; then :
15868   ac_cv_lib_com_err_error_message=yes
15869 else
15870   ac_cv_lib_com_err_error_message=no
15871 fi
15872 rm -f core conftest.err conftest.$ac_objext \
15873     conftest$ac_exeext conftest.$ac_ext
15874 LIBS=$ac_check_lib_save_LIBS
15875 fi
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
15877 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
15878 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
15879   rra_krb5_extra="-lcom_err $rra_krb5_extra"
15880 fi
15881
15882      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15883 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15884 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15885   $as_echo_n "(cached) " >&6
15886 else
15887   ac_check_lib_save_LIBS=$LIBS
15888 LIBS="-lksvc $rra_krb5_extra $LIBS"
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h.  */
15891
15892 /* Override any GCC internal prototype to avoid an error.
15893    Use char because int might match the return type of a GCC
15894    builtin and then its argument prototype would still apply.  */
15895 #ifdef __cplusplus
15896 extern "C"
15897 #endif
15898 char krb5_svc_get_msg ();
15899 int
15900 main ()
15901 {
15902 return krb5_svc_get_msg ();
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 if ac_fn_c_try_link "$LINENO"; then :
15908   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15909 else
15910   ac_cv_lib_ksvc_krb5_svc_get_msg=no
15911 fi
15912 rm -f core conftest.err conftest.$ac_objext \
15913     conftest$ac_exeext conftest.$ac_ext
15914 LIBS=$ac_check_lib_save_LIBS
15915 fi
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15917 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15918 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15919   rra_krb5_extra="-lksvc $rra_krb5_extra"
15920 fi
15921
15922      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
15923 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
15924 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
15925   $as_echo_n "(cached) " >&6
15926 else
15927   ac_check_lib_save_LIBS=$LIBS
15928 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h.  */
15931
15932 /* Override any GCC internal prototype to avoid an error.
15933    Use char because int might match the return type of a GCC
15934    builtin and then its argument prototype would still apply.  */
15935 #ifdef __cplusplus
15936 extern "C"
15937 #endif
15938 char krb5int_hash_md5 ();
15939 int
15940 main ()
15941 {
15942 return krb5int_hash_md5 ();
15943   ;
15944   return 0;
15945 }
15946 _ACEOF
15947 if ac_fn_c_try_link "$LINENO"; then :
15948   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
15949 else
15950   ac_cv_lib_k5crypto_krb5int_hash_md5=no
15951 fi
15952 rm -f core conftest.err conftest.$ac_objext \
15953     conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15955 fi
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
15957 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
15958 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
15959   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
15960 fi
15961
15962      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15963 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
15964 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
15965   $as_echo_n "(cached) " >&6
15966 else
15967   ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-lk5profile $rra_krb5_extra $LIBS"
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h.  */
15971
15972 /* Override any GCC internal prototype to avoid an error.
15973    Use char because int might match the return type of a GCC
15974    builtin and then its argument prototype would still apply.  */
15975 #ifdef __cplusplus
15976 extern "C"
15977 #endif
15978 char profile_get_values ();
15979 int
15980 main ()
15981 {
15982 return profile_get_values ();
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 if ac_fn_c_try_link "$LINENO"; then :
15988   ac_cv_lib_k5profile_profile_get_values=yes
15989 else
15990   ac_cv_lib_k5profile_profile_get_values=no
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext \
15993     conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15995 fi
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
15997 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
15998 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
15999   rra_krb5_extra="-lk5profile $rra_krb5_extra"
16000 fi
16001
16002      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
16003 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
16004 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
16005   $as_echo_n "(cached) " >&6
16006 else
16007   ac_check_lib_save_LIBS=$LIBS
16008 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h.  */
16011
16012 /* Override any GCC internal prototype to avoid an error.
16013    Use char because int might match the return type of a GCC
16014    builtin and then its argument prototype would still apply.  */
16015 #ifdef __cplusplus
16016 extern "C"
16017 #endif
16018 char krb5_cc_default ();
16019 int
16020 main ()
16021 {
16022 return krb5_cc_default ();
16023   ;
16024   return 0;
16025 }
16026 _ACEOF
16027 if ac_fn_c_try_link "$LINENO"; then :
16028   ac_cv_lib_krb5_krb5_cc_default=yes
16029 else
16030   ac_cv_lib_krb5_krb5_cc_default=no
16031 fi
16032 rm -f core conftest.err conftest.$ac_objext \
16033     conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16035 fi
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
16037 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
16038 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
16039   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
16040 else
16041   if test x"true" = xtrue; then :
16042   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16043 fi
16044 fi
16045
16046 fi
16047
16048  LIBS="$KRB5_LIBS $LIBS"
16049  if test x"$rra_krb5_incroot" = x; then :
16050   for ac_header in krb5.h krb5/krb5.h
16051 do :
16052   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16053 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16054 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16055   cat >>confdefs.h <<_ACEOF
16056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057 _ACEOF
16058
16059 fi
16060
16061 done
16062
16063 else
16064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16065 $as_echo_n "checking for krb5.h... " >&6; }
16066  if test -f "${rra_krb5_incroot}/krb5.h"; then :
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_KRB5_H 1
16070 _ACEOF
16071
16072      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16073 $as_echo "yes" >&6; }
16074 else
16075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076 $as_echo "no" >&6; }
16077 fi
16078       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16079 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16080  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16081
16082 cat >>confdefs.h <<_ACEOF
16083 #define HAVE_KRB5_KRB5_H 1
16084 _ACEOF
16085
16086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16087 $as_echo "yes" >&6; }
16088 else
16089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090 $as_echo "no" >&6; }
16091 fi
16092 fi
16093  for ac_func in krb5_get_error_message
16094 do :
16095   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16096 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16097   cat >>confdefs.h <<_ACEOF
16098 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16099 _ACEOF
16100  for ac_func in krb5_free_error_message
16101 do :
16102   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16103 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16104   cat >>confdefs.h <<_ACEOF
16105 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16106 _ACEOF
16107
16108 fi
16109 done
16110
16111 else
16112   for ac_func in krb5_get_error_string
16113 do :
16114   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16115 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16116   cat >>confdefs.h <<_ACEOF
16117 #define HAVE_KRB5_GET_ERROR_STRING 1
16118 _ACEOF
16119
16120 else
16121   for ac_func in krb5_get_err_txt
16122 do :
16123   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16124 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16125   cat >>confdefs.h <<_ACEOF
16126 #define HAVE_KRB5_GET_ERR_TXT 1
16127 _ACEOF
16128
16129 else
16130   for ac_func in krb5_svc_get_msg
16131 do :
16132   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
16133 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
16134   cat >>confdefs.h <<_ACEOF
16135 #define HAVE_KRB5_SVC_GET_MSG 1
16136 _ACEOF
16137  for ac_header in ibm_svc/krb5_svc.h
16138 do :
16139   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16140 #if HAVE_KRB5_H
16141 # include <krb5.h>
16142 #else
16143 # include <krb5/krb5.h>
16144 #endif
16145
16146 "
16147 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16148   cat >>confdefs.h <<_ACEOF
16149 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16150 _ACEOF
16151
16152 fi
16153
16154 done
16155
16156 else
16157   for ac_header in et/com_err.h
16158 do :
16159   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
16160 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
16161   cat >>confdefs.h <<_ACEOF
16162 #define HAVE_ET_COM_ERR_H 1
16163 _ACEOF
16164
16165 fi
16166
16167 done
16168
16169 fi
16170 done
16171
16172 fi
16173 done
16174
16175 fi
16176 done
16177
16178 fi
16179 done
16180
16181  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16182  LDFLAGS="$rra_krb5_save_LDFLAGS"
16183  LIBS="$rra_krb5_save_LIBS"
16184 fi
16185 fi
16186  rra_krb5_uses_com_err=false
16187  case $LIBS in #(
16188   *-lcom_err*) :
16189     rra_krb5_uses_com_err=true ;; #(
16190   *) :
16191      ;;
16192 esac
16193   if test x"$rra_krb5_uses_com_err" = xtrue; then
16194   KRB5_USES_COM_ERR_TRUE=
16195   KRB5_USES_COM_ERR_FALSE='#'
16196 else
16197   KRB5_USES_COM_ERR_TRUE='#'
16198   KRB5_USES_COM_ERR_FALSE=
16199 fi
16200
16201
16202 $as_echo "#define HAVE_KERBEROS 1" >>confdefs.h
16203
16204 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16205  rra_krb5_save_LDFLAGS="$LDFLAGS"
16206  rra_krb5_save_LIBS="$LIBS"
16207  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16208  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16209  LIBS="$KRB5_LIBS $LIBS"
16210 for ac_header in kadm5/kadm5-pwcheck.h kadm5/kadm5_err.h
16211 do :
16212   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16213 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16214 #if HAVE_KRB5_H
16215 # include <krb5.h>
16216 #else
16217 # include <krb5/krb5.h>
16218 #endif
16219
16220 "
16221 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16222   cat >>confdefs.h <<_ACEOF
16223 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16224 _ACEOF
16225
16226 fi
16227
16228 done
16229
16230 for ac_header in krb5/pwqual_plugin.h
16231 do :
16232   ac_fn_c_check_header_compile "$LINENO" "krb5/pwqual_plugin.h" "ac_cv_header_krb5_pwqual_plugin_h" "
16233 #if HAVE_KRB5_H
16234 # include <krb5.h>
16235 #else
16236 # include <krb5/krb5.h>
16237 #endif
16238
16239 "
16240 if test "x$ac_cv_header_krb5_pwqual_plugin_h" = xyes; then :
16241   cat >>confdefs.h <<_ACEOF
16242 #define HAVE_KRB5_PWQUAL_PLUGIN_H 1
16243 _ACEOF
16244
16245 fi
16246
16247 done
16248
16249 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
16250 #if HAVE_KRB5_H
16251 # include <krb5.h>
16252 #else
16253 # include <krb5/krb5.h>
16254 #endif
16255
16256 "
16257 if test "x$ac_cv_type_krb5_realm" = xyes; then :
16258
16259 cat >>confdefs.h <<_ACEOF
16260 #define HAVE_KRB5_REALM 1
16261 _ACEOF
16262
16263
16264 fi
16265
16266 for ac_func in krb5_free_default_realm \
16267     krb5_free_string \
16268     krb5_principal_get_realm \
16269     krb5_get_init_creds_opt_alloc \
16270     krb5_get_init_creds_opt_set_default_flags \
16271     krb5_xfree
16272 do :
16273   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16274 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16275 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16276   cat >>confdefs.h <<_ACEOF
16277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16278 _ACEOF
16279
16280 fi
16281 done
16282
16283 for ac_func in krb5_get_init_creds_opt_free
16284 do :
16285   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
16286 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then :
16287   cat >>confdefs.h <<_ACEOF
16288 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
16289 _ACEOF
16290  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
16291 $as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
16292 if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then :
16293   $as_echo_n "(cached) " >&6
16294 else
16295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h.  */
16297
16298 #if HAVE_KRB5_H
16299 # include <krb5.h>
16300 #else
16301 # include <krb5/krb5.h>
16302 #endif
16303
16304 int
16305 main(void)
16306 {
16307     krb5_get_init_creds_opt *opts;
16308     krb5_context c;
16309     krb5_get_init_creds_opt_free(c, opts);
16310 }
16311
16312 _ACEOF
16313 if ac_fn_c_try_compile "$LINENO"; then :
16314   rra_cv_func_krb5_get_init_creds_opt_free_args=yes
16315 else
16316   rra_cv_func_krb5_get_init_creds_opt_free_args=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 fi
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
16321 $as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
16322  if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then :
16323
16324 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
16325
16326 fi
16327 fi
16328 done
16329
16330 ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "
16331 #if HAVE_KRB5_H
16332 # include <krb5.h>
16333 #else
16334 # include <krb5/krb5.h>
16335 #endif
16336
16337 "
16338 if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then :
16339   ac_have_decl=1
16340 else
16341   ac_have_decl=0
16342 fi
16343
16344 cat >>confdefs.h <<_ACEOF
16345 #define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl
16346 _ACEOF
16347
16348 case " $LIBOBJS " in
16349   *" krb5-extra.$ac_objext "* ) ;;
16350   *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
16351  ;;
16352 esac
16353
16354 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16355  LDFLAGS="$rra_krb5_save_LDFLAGS"
16356  LIBS="$rra_krb5_save_LIBS"
16357
16358 save_LIBS="$LIBS"
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16360 $as_echo_n "checking for library containing dlopen... " >&6; }
16361 if ${ac_cv_search_dlopen+:} false; then :
16362   $as_echo_n "(cached) " >&6
16363 else
16364   ac_func_search_save_LIBS=$LIBS
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h.  */
16367
16368 /* Override any GCC internal prototype to avoid an error.
16369    Use char because int might match the return type of a GCC
16370    builtin and then its argument prototype would still apply.  */
16371 #ifdef __cplusplus
16372 extern "C"
16373 #endif
16374 char dlopen ();
16375 int
16376 main ()
16377 {
16378 return dlopen ();
16379   ;
16380   return 0;
16381 }
16382 _ACEOF
16383 for ac_lib in '' dl; do
16384   if test -z "$ac_lib"; then
16385     ac_res="none required"
16386   else
16387     ac_res=-l$ac_lib
16388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16389   fi
16390   if ac_fn_c_try_link "$LINENO"; then :
16391   ac_cv_search_dlopen=$ac_res
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext \
16394     conftest$ac_exeext
16395   if ${ac_cv_search_dlopen+:} false; then :
16396   break
16397 fi
16398 done
16399 if ${ac_cv_search_dlopen+:} false; then :
16400
16401 else
16402   ac_cv_search_dlopen=no
16403 fi
16404 rm conftest.$ac_ext
16405 LIBS=$ac_func_search_save_LIBS
16406 fi
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16408 $as_echo "$ac_cv_search_dlopen" >&6; }
16409 ac_res=$ac_cv_search_dlopen
16410 if test "$ac_res" != no; then :
16411   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16412   DL_LIBS="$LIBS"
16413 fi
16414
16415 LIBS="$save_LIBS"
16416
16417
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16419 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16420 if ${ac_cv_header_stdbool_h+:} false; then :
16421   $as_echo_n "(cached) " >&6
16422 else
16423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h.  */
16425
16426              #include <stdbool.h>
16427              #ifndef bool
16428               "error: bool is not defined"
16429              #endif
16430              #ifndef false
16431               "error: false is not defined"
16432              #endif
16433              #if false
16434               "error: false is not 0"
16435              #endif
16436              #ifndef true
16437               "error: true is not defined"
16438              #endif
16439              #if true != 1
16440               "error: true is not 1"
16441              #endif
16442              #ifndef __bool_true_false_are_defined
16443               "error: __bool_true_false_are_defined is not defined"
16444              #endif
16445
16446              struct s { _Bool s: 1; _Bool t; } s;
16447
16448              char a[true == 1 ? 1 : -1];
16449              char b[false == 0 ? 1 : -1];
16450              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16451              char d[(bool) 0.5 == true ? 1 : -1];
16452              /* See body of main program for 'e'.  */
16453              char f[(_Bool) 0.0 == false ? 1 : -1];
16454              char g[true];
16455              char h[sizeof (_Bool)];
16456              char i[sizeof s.t];
16457              enum { j = false, k = true, l = false * true, m = true * 256 };
16458              /* The following fails for
16459                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16460              _Bool n[m];
16461              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16462              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16463              /* Catch a bug in an HP-UX C compiler.  See
16464                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16465                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16466               */
16467              _Bool q = true;
16468              _Bool *pq = &q;
16469
16470 int
16471 main ()
16472 {
16473
16474              bool e = &s;
16475              *pq |= q;
16476              *pq |= ! q;
16477              /* Refer to every declared value, to avoid compiler optimizations.  */
16478              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16479                      + !m + !n + !o + !p + !q + !pq);
16480
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 if ac_fn_c_try_compile "$LINENO"; then :
16486   ac_cv_header_stdbool_h=yes
16487 else
16488   ac_cv_header_stdbool_h=no
16489 fi
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491 fi
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16493 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16494    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16495 if test "x$ac_cv_type__Bool" = xyes; then :
16496
16497 cat >>confdefs.h <<_ACEOF
16498 #define HAVE__BOOL 1
16499 _ACEOF
16500
16501
16502 fi
16503
16504
16505 if test $ac_cv_header_stdbool_h = yes; then
16506
16507 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16508
16509 fi
16510
16511 for ac_header in sys/bittypes.h syslog.h
16512 do :
16513   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16514 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16515 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16516   cat >>confdefs.h <<_ACEOF
16517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16518 _ACEOF
16519
16520 fi
16521
16522 done
16523
16524 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
16525 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
16526   ac_have_decl=1
16527 else
16528   ac_have_decl=0
16529 fi
16530
16531 cat >>confdefs.h <<_ACEOF
16532 #define HAVE_DECL_SNPRINTF $ac_have_decl
16533 _ACEOF
16534 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16535 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
16536   ac_have_decl=1
16537 else
16538   ac_have_decl=0
16539 fi
16540
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_DECL_VSNPRINTF $ac_have_decl
16543 _ACEOF
16544
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
16546 $as_echo_n "checking for C99 variadic macros... " >&6; }
16547 if ${rra_cv_c_c99_vamacros+:} false; then :
16548   $as_echo_n "(cached) " >&6
16549 else
16550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h.  */
16552
16553 #include <stdio.h>
16554 #define error(...) fprintf(stderr, __VA_ARGS__)
16555
16556 int
16557 main(void) {
16558     error("foo");
16559     error("foo %d", 0);
16560     return 0;
16561 }
16562
16563 _ACEOF
16564 if ac_fn_c_try_compile "$LINENO"; then :
16565   rra_cv_c_c99_vamacros=yes
16566 else
16567   rra_cv_c_c99_vamacros=no
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5
16572 $as_echo "$rra_cv_c_c99_vamacros" >&6; }
16573  if test x"$rra_cv_c_c99_vamacros" = xyes; then :
16574
16575 $as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h
16576
16577 fi
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5
16579 $as_echo_n "checking for GNU-style variadic macros... " >&6; }
16580 if ${rra_cv_c_gnu_vamacros+:} false; then :
16581   $as_echo_n "(cached) " >&6
16582 else
16583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584 /* end confdefs.h.  */
16585
16586 #include <stdio.h>
16587 #define error(args...) fprintf(stderr, args)
16588
16589 int
16590 main(void) {
16591     error("foo");
16592     error("foo %d", 0);
16593     return 0;
16594 }
16595
16596 _ACEOF
16597 if ac_fn_c_try_compile "$LINENO"; then :
16598   rra_cv_c_gnu_vamacros=yes
16599 else
16600   rra_cv_c_gnu_vamacros=no
16601 fi
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603 fi
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5
16605 $as_echo "$rra_cv_c_gnu_vamacros" >&6; }
16606  if test x"$rra_cv_c_gnu_vamacros" = xyes; then :
16607
16608 $as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h
16609
16610 fi
16611
16612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16613 $as_echo_n "checking for unsigned long long int... " >&6; }
16614 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16615   $as_echo_n "(cached) " >&6
16616 else
16617   ac_cv_type_unsigned_long_long_int=yes
16618      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16619        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h.  */
16621
16622   /* For now, do not test the preprocessor; as of 2007 there are too many
16623          implementations with broken preprocessors.  Perhaps this can
16624          be revisited in 2012.  In the meantime, code should not expect
16625          #if to work with literals wider than 32 bits.  */
16626       /* Test literals.  */
16627       long long int ll = 9223372036854775807ll;
16628       long long int nll = -9223372036854775807LL;
16629       unsigned long long int ull = 18446744073709551615ULL;
16630       /* Test constant expressions.   */
16631       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16632                      ? 1 : -1)];
16633       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16634                      ? 1 : -1)];
16635       int i = 63;
16636 int
16637 main ()
16638 {
16639 /* Test availability of runtime routines for shift and division.  */
16640       long long int llmax = 9223372036854775807ll;
16641       unsigned long long int ullmax = 18446744073709551615ull;
16642       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16643               | (llmax / ll) | (llmax % ll)
16644               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16645               | (ullmax / ull) | (ullmax % ull));
16646   ;
16647   return 0;
16648 }
16649
16650 _ACEOF
16651 if ac_fn_c_try_link "$LINENO"; then :
16652
16653 else
16654   ac_cv_type_unsigned_long_long_int=no
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext \
16657     conftest$ac_exeext conftest.$ac_ext
16658      fi
16659 fi
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16661 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16662   if test $ac_cv_type_unsigned_long_long_int = yes; then
16663
16664 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16665
16666   fi
16667
16668
16669
16670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16671 $as_echo_n "checking for long long int... " >&6; }
16672 if ${ac_cv_type_long_long_int+:} false; then :
16673   $as_echo_n "(cached) " >&6
16674 else
16675   ac_cv_type_long_long_int=yes
16676       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16677         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16678         if test $ac_cv_type_long_long_int = yes; then
16679                                         if test "$cross_compiling" = yes; then :
16680   :
16681 else
16682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h.  */
16684 #include <limits.h>
16685                  #ifndef LLONG_MAX
16686                  # define HALF \
16687                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16688                  # define LLONG_MAX (HALF - 1 + HALF)
16689                  #endif
16690 int
16691 main ()
16692 {
16693 long long int n = 1;
16694                  int i;
16695                  for (i = 0; ; i++)
16696                    {
16697                      long long int m = n << i;
16698                      if (m >> i != n)
16699                        return 1;
16700                      if (LLONG_MAX / 2 < m)
16701                        break;
16702                    }
16703                  return 0;
16704   ;
16705   return 0;
16706 }
16707 _ACEOF
16708 if ac_fn_c_try_run "$LINENO"; then :
16709
16710 else
16711   ac_cv_type_long_long_int=no
16712 fi
16713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16714   conftest.$ac_objext conftest.beam conftest.$ac_ext
16715 fi
16716
16717         fi
16718       fi
16719 fi
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16721 $as_echo "$ac_cv_type_long_long_int" >&6; }
16722   if test $ac_cv_type_long_long_int = yes; then
16723
16724 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16725
16726   fi
16727
16728 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
16729 case $ac_cv_c_uint8_t in #(
16730   no|yes) ;; #(
16731   *)
16732
16733 $as_echo "#define _UINT8_T 1" >>confdefs.h
16734
16735
16736 cat >>confdefs.h <<_ACEOF
16737 #define uint8_t $ac_cv_c_uint8_t
16738 _ACEOF
16739 ;;
16740   esac
16741
16742 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
16743 case $ac_cv_c_uint16_t in #(
16744   no|yes) ;; #(
16745   *)
16746
16747
16748 cat >>confdefs.h <<_ACEOF
16749 #define uint16_t $ac_cv_c_uint16_t
16750 _ACEOF
16751 ;;
16752   esac
16753
16754 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16755 case $ac_cv_c_uint32_t in #(
16756   no|yes) ;; #(
16757   *)
16758
16759 $as_echo "#define _UINT32_T 1" >>confdefs.h
16760
16761
16762 cat >>confdefs.h <<_ACEOF
16763 #define uint32_t $ac_cv_c_uint32_t
16764 _ACEOF
16765 ;;
16766   esac
16767
16768 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
16769 "
16770 if test "x$ac_cv_type_ssize_t" = xyes; then :
16771
16772 cat >>confdefs.h <<_ACEOF
16773 #define HAVE_SSIZE_T 1
16774 _ACEOF
16775
16776
16777 fi
16778
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
16780 $as_echo_n "checking for working snprintf... " >&6; }
16781 if ${rra_cv_func_snprintf_works+:} false; then :
16782   $as_echo_n "(cached) " >&6
16783 else
16784   if test "$cross_compiling" = yes; then :
16785   rra_cv_func_snprintf_works=no
16786 else
16787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h.  */
16789
16790 #include <stdio.h>
16791 #include <stdarg.h>
16792
16793 char buf[2];
16794
16795 int
16796 test(char *format, ...)
16797 {
16798     va_list args;
16799     int count;
16800
16801     va_start(args, format);
16802     count = vsnprintf(buf, sizeof buf, format, args);
16803     va_end(args);
16804     return count;
16805 }
16806
16807 int
16808 main()
16809 {
16810     return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
16811              && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
16812 }
16813
16814 _ACEOF
16815 if ac_fn_c_try_run "$LINENO"; then :
16816   rra_cv_func_snprintf_works=yes
16817 else
16818   rra_cv_func_snprintf_works=no
16819 fi
16820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16821   conftest.$ac_objext conftest.beam conftest.$ac_ext
16822 fi
16823
16824 fi
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5
16826 $as_echo "$rra_cv_func_snprintf_works" >&6; }
16827  if test x"$rra_cv_func_snprintf_works" = xyes; then :
16828
16829 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16830
16831 else
16832   case " $LIBOBJS " in
16833   *" snprintf.$ac_objext "* ) ;;
16834   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16835  ;;
16836 esac
16837
16838 fi
16839 for ac_func in setrlimit
16840 do :
16841   ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
16842 if test "x$ac_cv_func_setrlimit" = xyes; then :
16843   cat >>confdefs.h <<_ACEOF
16844 #define HAVE_SETRLIMIT 1
16845 _ACEOF
16846
16847 fi
16848 done
16849
16850 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
16851 if test "x$ac_cv_func_asprintf" = xyes; then :
16852   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
16853
16854 else
16855   case " $LIBOBJS " in
16856   *" asprintf.$ac_objext "* ) ;;
16857   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
16858  ;;
16859 esac
16860
16861 fi
16862
16863
16864
16865 ac_config_files="$ac_config_files Makefile"
16866
16867 ac_config_headers="$ac_config_headers config.h"
16868
16869 cat >confcache <<\_ACEOF
16870 # This file is a shell script that caches the results of configure
16871 # tests run on this system so they can be shared between configure
16872 # scripts and configure runs, see configure's option --config-cache.
16873 # It is not useful on other systems.  If it contains results you don't
16874 # want to keep, you may remove or edit it.
16875 #
16876 # config.status only pays attention to the cache file if you give it
16877 # the --recheck option to rerun configure.
16878 #
16879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16881 # following values.
16882
16883 _ACEOF
16884
16885 # The following way of writing the cache mishandles newlines in values,
16886 # but we know of no workaround that is simple, portable, and efficient.
16887 # So, we kill variables containing newlines.
16888 # Ultrix sh set writes to stderr and can't be redirected directly,
16889 # and sets the high bit in the cache file unless we assign to the vars.
16890 (
16891   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16892     eval ac_val=\$$ac_var
16893     case $ac_val in #(
16894     *${as_nl}*)
16895       case $ac_var in #(
16896       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16898       esac
16899       case $ac_var in #(
16900       _ | IFS | as_nl) ;; #(
16901       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16902       *) { eval $ac_var=; unset $ac_var;} ;;
16903       esac ;;
16904     esac
16905   done
16906
16907   (set) 2>&1 |
16908     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16909     *${as_nl}ac_space=\ *)
16910       # `set' does not quote correctly, so add quotes: double-quote
16911       # substitution turns \\\\ into \\, and sed turns \\ into \.
16912       sed -n \
16913         "s/'/'\\\\''/g;
16914           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16915       ;; #(
16916     *)
16917       # `set' quotes correctly as required by POSIX, so do not add quotes.
16918       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16919       ;;
16920     esac |
16921     sort
16922 ) |
16923   sed '
16924      /^ac_cv_env_/b end
16925      t clear
16926      :clear
16927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16928      t end
16929      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16930      :end' >>confcache
16931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16932   if test -w "$cache_file"; then
16933     if test "x$cache_file" != "x/dev/null"; then
16934       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16935 $as_echo "$as_me: updating cache $cache_file" >&6;}
16936       if test ! -f "$cache_file" || test -h "$cache_file"; then
16937         cat confcache >"$cache_file"
16938       else
16939         case $cache_file in #(
16940         */* | ?:*)
16941           mv -f confcache "$cache_file"$$ &&
16942           mv -f "$cache_file"$$ "$cache_file" ;; #(
16943         *)
16944           mv -f confcache "$cache_file" ;;
16945         esac
16946       fi
16947     fi
16948   else
16949     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16951   fi
16952 fi
16953 rm -f confcache
16954
16955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16956 # Let make expand exec_prefix.
16957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16958
16959 DEFS=-DHAVE_CONFIG_H
16960
16961 ac_libobjs=
16962 ac_ltlibobjs=
16963 U=
16964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16965   # 1. Remove the extension, and $U if already installed.
16966   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16967   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16968   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16969   #    will be set to the directory where LIBOBJS objects are built.
16970   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16971   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16972 done
16973 LIBOBJS=$ac_libobjs
16974
16975 LTLIBOBJS=$ac_ltlibobjs
16976
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16979 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16980    if test -n "$am_sleep_pid"; then
16981      # Hide warnings about reused PIDs.
16982      wait $am_sleep_pid 2>/dev/null
16983    fi
16984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16985 $as_echo "done" >&6; }
16986  if test -n "$EXEEXT"; then
16987   am__EXEEXT_TRUE=
16988   am__EXEEXT_FALSE='#'
16989 else
16990   am__EXEEXT_TRUE='#'
16991   am__EXEEXT_FALSE=
16992 fi
16993
16994 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16995   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16997 fi
16998 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16999   as_fn_error $? "conditional \"AMDEP\" was never defined.
17000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17001 fi
17002 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17003   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17005 fi
17006 if test -z "${EMBEDDED_CRACKLIB_TRUE}" && test -z "${EMBEDDED_CRACKLIB_FALSE}"; then
17007   as_fn_error $? "conditional \"EMBEDDED_CRACKLIB\" was never defined.
17008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17009 fi
17010 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
17011   as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
17012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17013 fi
17014
17015 : "${CONFIG_STATUS=./config.status}"
17016 ac_write_fail=0
17017 ac_clean_files_save=$ac_clean_files
17018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17020 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17021 as_write_fail=0
17022 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17023 #! $SHELL
17024 # Generated by $as_me.
17025 # Run this file to recreate the current configuration.
17026 # Compiler output produced by configure, useful for debugging
17027 # configure, is in config.log if it exists.
17028
17029 debug=false
17030 ac_cs_recheck=false
17031 ac_cs_silent=false
17032
17033 SHELL=\${CONFIG_SHELL-$SHELL}
17034 export SHELL
17035 _ASEOF
17036 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17037 ## -------------------- ##
17038 ## M4sh Initialization. ##
17039 ## -------------------- ##
17040
17041 # Be more Bourne compatible
17042 DUALCASE=1; export DUALCASE # for MKS sh
17043 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17044   emulate sh
17045   NULLCMD=:
17046   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17047   # is contrary to our usage.  Disable this feature.
17048   alias -g '${1+"$@"}'='"$@"'
17049   setopt NO_GLOB_SUBST
17050 else
17051   case `(set -o) 2>/dev/null` in #(
17052   *posix*) :
17053     set -o posix ;; #(
17054   *) :
17055      ;;
17056 esac
17057 fi
17058
17059
17060 as_nl='
17061 '
17062 export as_nl
17063 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17064 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17067 # Prefer a ksh shell builtin over an external printf program on Solaris,
17068 # but without wasting forks for bash or zsh.
17069 if test -z "$BASH_VERSION$ZSH_VERSION" \
17070     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17071   as_echo='print -r --'
17072   as_echo_n='print -rn --'
17073 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17074   as_echo='printf %s\n'
17075   as_echo_n='printf %s'
17076 else
17077   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17078     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17079     as_echo_n='/usr/ucb/echo -n'
17080   else
17081     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17082     as_echo_n_body='eval
17083       arg=$1;
17084       case $arg in #(
17085       *"$as_nl"*)
17086         expr "X$arg" : "X\\(.*\\)$as_nl";
17087         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17088       esac;
17089       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17090     '
17091     export as_echo_n_body
17092     as_echo_n='sh -c $as_echo_n_body as_echo'
17093   fi
17094   export as_echo_body
17095   as_echo='sh -c $as_echo_body as_echo'
17096 fi
17097
17098 # The user is always right.
17099 if test "${PATH_SEPARATOR+set}" != set; then
17100   PATH_SEPARATOR=:
17101   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17102     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17103       PATH_SEPARATOR=';'
17104   }
17105 fi
17106
17107
17108 # IFS
17109 # We need space, tab and new line, in precisely that order.  Quoting is
17110 # there to prevent editors from complaining about space-tab.
17111 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17112 # splitting by setting IFS to empty value.)
17113 IFS=" ""        $as_nl"
17114
17115 # Find who we are.  Look in the path if we contain no directory separator.
17116 as_myself=
17117 case $0 in #((
17118   *[\\/]* ) as_myself=$0 ;;
17119   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120 for as_dir in $PATH
17121 do
17122   IFS=$as_save_IFS
17123   test -z "$as_dir" && as_dir=.
17124     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17125   done
17126 IFS=$as_save_IFS
17127
17128      ;;
17129 esac
17130 # We did not find ourselves, most probably we were run as `sh COMMAND'
17131 # in which case we are not to be found in the path.
17132 if test "x$as_myself" = x; then
17133   as_myself=$0
17134 fi
17135 if test ! -f "$as_myself"; then
17136   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17137   exit 1
17138 fi
17139
17140 # Unset variables that we do not need and which cause bugs (e.g. in
17141 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17142 # suppresses any "Segmentation fault" message there.  '((' could
17143 # trigger a bug in pdksh 5.2.14.
17144 for as_var in BASH_ENV ENV MAIL MAILPATH
17145 do eval test x\${$as_var+set} = xset \
17146   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17147 done
17148 PS1='$ '
17149 PS2='> '
17150 PS4='+ '
17151
17152 # NLS nuisances.
17153 LC_ALL=C
17154 export LC_ALL
17155 LANGUAGE=C
17156 export LANGUAGE
17157
17158 # CDPATH.
17159 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17160
17161
17162 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17163 # ----------------------------------------
17164 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17165 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17166 # script with STATUS, using 1 if that was 0.
17167 as_fn_error ()
17168 {
17169   as_status=$1; test $as_status -eq 0 && as_status=1
17170   if test "$4"; then
17171     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17172     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17173   fi
17174   $as_echo "$as_me: error: $2" >&2
17175   as_fn_exit $as_status
17176 } # as_fn_error
17177
17178
17179 # as_fn_set_status STATUS
17180 # -----------------------
17181 # Set $? to STATUS, without forking.
17182 as_fn_set_status ()
17183 {
17184   return $1
17185 } # as_fn_set_status
17186
17187 # as_fn_exit STATUS
17188 # -----------------
17189 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17190 as_fn_exit ()
17191 {
17192   set +e
17193   as_fn_set_status $1
17194   exit $1
17195 } # as_fn_exit
17196
17197 # as_fn_unset VAR
17198 # ---------------
17199 # Portably unset VAR.
17200 as_fn_unset ()
17201 {
17202   { eval $1=; unset $1;}
17203 }
17204 as_unset=as_fn_unset
17205 # as_fn_append VAR VALUE
17206 # ----------------------
17207 # Append the text in VALUE to the end of the definition contained in VAR. Take
17208 # advantage of any shell optimizations that allow amortized linear growth over
17209 # repeated appends, instead of the typical quadratic growth present in naive
17210 # implementations.
17211 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17212   eval 'as_fn_append ()
17213   {
17214     eval $1+=\$2
17215   }'
17216 else
17217   as_fn_append ()
17218   {
17219     eval $1=\$$1\$2
17220   }
17221 fi # as_fn_append
17222
17223 # as_fn_arith ARG...
17224 # ------------------
17225 # Perform arithmetic evaluation on the ARGs, and store the result in the
17226 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17227 # must be portable across $(()) and expr.
17228 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17229   eval 'as_fn_arith ()
17230   {
17231     as_val=$(( $* ))
17232   }'
17233 else
17234   as_fn_arith ()
17235   {
17236     as_val=`expr "$@" || test $? -eq 1`
17237   }
17238 fi # as_fn_arith
17239
17240
17241 if expr a : '\(a\)' >/dev/null 2>&1 &&
17242    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17243   as_expr=expr
17244 else
17245   as_expr=false
17246 fi
17247
17248 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17249   as_basename=basename
17250 else
17251   as_basename=false
17252 fi
17253
17254 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17255   as_dirname=dirname
17256 else
17257   as_dirname=false
17258 fi
17259
17260 as_me=`$as_basename -- "$0" ||
17261 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17262          X"$0" : 'X\(//\)$' \| \
17263          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17264 $as_echo X/"$0" |
17265     sed '/^.*\/\([^/][^/]*\)\/*$/{
17266             s//\1/
17267             q
17268           }
17269           /^X\/\(\/\/\)$/{
17270             s//\1/
17271             q
17272           }
17273           /^X\/\(\/\).*/{
17274             s//\1/
17275             q
17276           }
17277           s/.*/./; q'`
17278
17279 # Avoid depending upon Character Ranges.
17280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17283 as_cr_digits='0123456789'
17284 as_cr_alnum=$as_cr_Letters$as_cr_digits
17285
17286 ECHO_C= ECHO_N= ECHO_T=
17287 case `echo -n x` in #(((((
17288 -n*)
17289   case `echo 'xy\c'` in
17290   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17291   xy)  ECHO_C='\c';;
17292   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17293        ECHO_T=' ';;
17294   esac;;
17295 *)
17296   ECHO_N='-n';;
17297 esac
17298
17299 rm -f conf$$ conf$$.exe conf$$.file
17300 if test -d conf$$.dir; then
17301   rm -f conf$$.dir/conf$$.file
17302 else
17303   rm -f conf$$.dir
17304   mkdir conf$$.dir 2>/dev/null
17305 fi
17306 if (echo >conf$$.file) 2>/dev/null; then
17307   if ln -s conf$$.file conf$$ 2>/dev/null; then
17308     as_ln_s='ln -s'
17309     # ... but there are two gotchas:
17310     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17311     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17312     # In both cases, we have to default to `cp -pR'.
17313     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17314       as_ln_s='cp -pR'
17315   elif ln conf$$.file conf$$ 2>/dev/null; then
17316     as_ln_s=ln
17317   else
17318     as_ln_s='cp -pR'
17319   fi
17320 else
17321   as_ln_s='cp -pR'
17322 fi
17323 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17324 rmdir conf$$.dir 2>/dev/null
17325
17326
17327 # as_fn_mkdir_p
17328 # -------------
17329 # Create "$as_dir" as a directory, including parents if necessary.
17330 as_fn_mkdir_p ()
17331 {
17332
17333   case $as_dir in #(
17334   -*) as_dir=./$as_dir;;
17335   esac
17336   test -d "$as_dir" || eval $as_mkdir_p || {
17337     as_dirs=
17338     while :; do
17339       case $as_dir in #(
17340       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17341       *) as_qdir=$as_dir;;
17342       esac
17343       as_dirs="'$as_qdir' $as_dirs"
17344       as_dir=`$as_dirname -- "$as_dir" ||
17345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17346          X"$as_dir" : 'X\(//\)[^/]' \| \
17347          X"$as_dir" : 'X\(//\)$' \| \
17348          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17349 $as_echo X"$as_dir" |
17350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17351             s//\1/
17352             q
17353           }
17354           /^X\(\/\/\)[^/].*/{
17355             s//\1/
17356             q
17357           }
17358           /^X\(\/\/\)$/{
17359             s//\1/
17360             q
17361           }
17362           /^X\(\/\).*/{
17363             s//\1/
17364             q
17365           }
17366           s/.*/./; q'`
17367       test -d "$as_dir" && break
17368     done
17369     test -z "$as_dirs" || eval "mkdir $as_dirs"
17370   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17371
17372
17373 } # as_fn_mkdir_p
17374 if mkdir -p . 2>/dev/null; then
17375   as_mkdir_p='mkdir -p "$as_dir"'
17376 else
17377   test -d ./-p && rmdir ./-p
17378   as_mkdir_p=false
17379 fi
17380
17381
17382 # as_fn_executable_p FILE
17383 # -----------------------
17384 # Test if FILE is an executable regular file.
17385 as_fn_executable_p ()
17386 {
17387   test -f "$1" && test -x "$1"
17388 } # as_fn_executable_p
17389 as_test_x='test -x'
17390 as_executable_p=as_fn_executable_p
17391
17392 # Sed expression to map a string onto a valid CPP name.
17393 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17394
17395 # Sed expression to map a string onto a valid variable name.
17396 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17397
17398
17399 exec 6>&1
17400 ## ----------------------------------- ##
17401 ## Main body of $CONFIG_STATUS script. ##
17402 ## ----------------------------------- ##
17403 _ASEOF
17404 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17405
17406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17407 # Save the log message, to keep $0 and so on meaningful, and to
17408 # report actual input values of CONFIG_FILES etc. instead of their
17409 # values after options handling.
17410 ac_log="
17411 This file was extended by krb5-strength $as_me 2.1, which was
17412 generated by GNU Autoconf 2.69.  Invocation command line was
17413
17414   CONFIG_FILES    = $CONFIG_FILES
17415   CONFIG_HEADERS  = $CONFIG_HEADERS
17416   CONFIG_LINKS    = $CONFIG_LINKS
17417   CONFIG_COMMANDS = $CONFIG_COMMANDS
17418   $ $0 $@
17419
17420 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17421 "
17422
17423 _ACEOF
17424
17425 case $ac_config_files in *"
17426 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17427 esac
17428
17429 case $ac_config_headers in *"
17430 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17431 esac
17432
17433
17434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17435 # Files that config.status was made for.
17436 config_files="$ac_config_files"
17437 config_headers="$ac_config_headers"
17438 config_commands="$ac_config_commands"
17439
17440 _ACEOF
17441
17442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17443 ac_cs_usage="\
17444 \`$as_me' instantiates files and other configuration actions
17445 from templates according to the current configuration.  Unless the files
17446 and actions are specified as TAGs, all are instantiated by default.
17447
17448 Usage: $0 [OPTION]... [TAG]...
17449
17450   -h, --help       print this help, then exit
17451   -V, --version    print version number and configuration settings, then exit
17452       --config     print configuration, then exit
17453   -q, --quiet, --silent
17454                    do not print progress messages
17455   -d, --debug      don't remove temporary files
17456       --recheck    update $as_me by reconfiguring in the same conditions
17457       --file=FILE[:TEMPLATE]
17458                    instantiate the configuration file FILE
17459       --header=FILE[:TEMPLATE]
17460                    instantiate the configuration header FILE
17461
17462 Configuration files:
17463 $config_files
17464
17465 Configuration headers:
17466 $config_headers
17467
17468 Configuration commands:
17469 $config_commands
17470
17471 Report bugs to <rra@stanford.edu>."
17472
17473 _ACEOF
17474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17475 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17476 ac_cs_version="\\
17477 krb5-strength config.status 2.1
17478 configured by $0, generated by GNU Autoconf 2.69,
17479   with options \\"\$ac_cs_config\\"
17480
17481 Copyright (C) 2012 Free Software Foundation, Inc.
17482 This config.status script is free software; the Free Software Foundation
17483 gives unlimited permission to copy, distribute and modify it."
17484
17485 ac_pwd='$ac_pwd'
17486 srcdir='$srcdir'
17487 INSTALL='$INSTALL'
17488 MKDIR_P='$MKDIR_P'
17489 AWK='$AWK'
17490 test -n "\$AWK" || AWK=awk
17491 _ACEOF
17492
17493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17494 # The default lists apply if the user does not specify any file.
17495 ac_need_defaults=:
17496 while test $# != 0
17497 do
17498   case $1 in
17499   --*=?*)
17500     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17501     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17502     ac_shift=:
17503     ;;
17504   --*=)
17505     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17506     ac_optarg=
17507     ac_shift=:
17508     ;;
17509   *)
17510     ac_option=$1
17511     ac_optarg=$2
17512     ac_shift=shift
17513     ;;
17514   esac
17515
17516   case $ac_option in
17517   # Handling of the options.
17518   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17519     ac_cs_recheck=: ;;
17520   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17521     $as_echo "$ac_cs_version"; exit ;;
17522   --config | --confi | --conf | --con | --co | --c )
17523     $as_echo "$ac_cs_config"; exit ;;
17524   --debug | --debu | --deb | --de | --d | -d )
17525     debug=: ;;
17526   --file | --fil | --fi | --f )
17527     $ac_shift
17528     case $ac_optarg in
17529     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17530     '') as_fn_error $? "missing file argument" ;;
17531     esac
17532     as_fn_append CONFIG_FILES " '$ac_optarg'"
17533     ac_need_defaults=false;;
17534   --header | --heade | --head | --hea )
17535     $ac_shift
17536     case $ac_optarg in
17537     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17538     esac
17539     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17540     ac_need_defaults=false;;
17541   --he | --h)
17542     # Conflict between --help and --header
17543     as_fn_error $? "ambiguous option: \`$1'
17544 Try \`$0 --help' for more information.";;
17545   --help | --hel | -h )
17546     $as_echo "$ac_cs_usage"; exit ;;
17547   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17548   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17549     ac_cs_silent=: ;;
17550
17551   # This is an error.
17552   -*) as_fn_error $? "unrecognized option: \`$1'
17553 Try \`$0 --help' for more information." ;;
17554
17555   *) as_fn_append ac_config_targets " $1"
17556      ac_need_defaults=false ;;
17557
17558   esac
17559   shift
17560 done
17561
17562 ac_configure_extra_args=
17563
17564 if $ac_cs_silent; then
17565   exec 6>/dev/null
17566   ac_configure_extra_args="$ac_configure_extra_args --silent"
17567 fi
17568
17569 _ACEOF
17570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17571 if \$ac_cs_recheck; then
17572   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17573   shift
17574   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17575   CONFIG_SHELL='$SHELL'
17576   export CONFIG_SHELL
17577   exec "\$@"
17578 fi
17579
17580 _ACEOF
17581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17582 exec 5>>config.log
17583 {
17584   echo
17585   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17586 ## Running $as_me. ##
17587 _ASBOX
17588   $as_echo "$ac_log"
17589 } >&5
17590
17591 _ACEOF
17592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17593 #
17594 # INIT-COMMANDS
17595 #
17596 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17597
17598
17599 # The HP-UX ksh and POSIX shell print the target directory to stdout
17600 # if CDPATH is set.
17601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17602
17603 sed_quote_subst='$sed_quote_subst'
17604 double_quote_subst='$double_quote_subst'
17605 delay_variable_subst='$delay_variable_subst'
17606 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17607 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17608 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17610 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17611 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17612 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17613 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17614 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17615 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17616 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17617 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17618 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17619 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17620 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17621 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17622 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17623 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17624 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17625 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17626 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17627 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17628 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17629 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17630 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17631 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17632 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17633 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17634 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17635 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17636 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17637 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17638 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17639 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17644 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17645 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17646 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17647 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17648 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17649 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17650 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17651 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17653 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17654 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17655 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17656 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17657 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17658 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17659 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17660 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17662 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17663 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17664 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17665 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17666 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17667 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17668 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17669 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17670 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17671 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17672 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17673 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17674 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17675 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17676 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17677 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17678 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17679 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17680 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17681 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17682 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17683 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17684 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17685 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17686 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17687 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17688 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17689 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17690 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17691 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17692 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17693 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17694 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17695 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17696 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17697 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17698 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17699 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17700 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17701 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17702 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17703 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17704 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17705 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17706 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17707 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17708 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17709 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17710 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17711 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17712 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17713 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17714 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17715 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17716 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17717 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17718 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17719 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17720 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17721 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17722 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17723 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17724 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17725 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17726 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17727 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17728 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17729 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17730 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17731 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17732 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17733 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17734 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17735 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17736
17737 LTCC='$LTCC'
17738 LTCFLAGS='$LTCFLAGS'
17739 compiler='$compiler_DEFAULT'
17740
17741 # A function that is used when there is no print builtin or printf.
17742 func_fallback_echo ()
17743 {
17744   eval 'cat <<_LTECHO_EOF
17745 \$1
17746 _LTECHO_EOF'
17747 }
17748
17749 # Quote evaled strings.
17750 for var in SHELL \
17751 ECHO \
17752 PATH_SEPARATOR \
17753 SED \
17754 GREP \
17755 EGREP \
17756 FGREP \
17757 LD \
17758 NM \
17759 LN_S \
17760 lt_SP2NL \
17761 lt_NL2SP \
17762 reload_flag \
17763 OBJDUMP \
17764 deplibs_check_method \
17765 file_magic_cmd \
17766 file_magic_glob \
17767 want_nocaseglob \
17768 DLLTOOL \
17769 sharedlib_from_linklib_cmd \
17770 AR \
17771 AR_FLAGS \
17772 archiver_list_spec \
17773 STRIP \
17774 RANLIB \
17775 CC \
17776 CFLAGS \
17777 compiler \
17778 lt_cv_sys_global_symbol_pipe \
17779 lt_cv_sys_global_symbol_to_cdecl \
17780 lt_cv_sys_global_symbol_to_c_name_address \
17781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17782 nm_file_list_spec \
17783 lt_prog_compiler_no_builtin_flag \
17784 lt_prog_compiler_pic \
17785 lt_prog_compiler_wl \
17786 lt_prog_compiler_static \
17787 lt_cv_prog_compiler_c_o \
17788 need_locks \
17789 MANIFEST_TOOL \
17790 DSYMUTIL \
17791 NMEDIT \
17792 LIPO \
17793 OTOOL \
17794 OTOOL64 \
17795 shrext_cmds \
17796 export_dynamic_flag_spec \
17797 whole_archive_flag_spec \
17798 compiler_needs_object \
17799 with_gnu_ld \
17800 allow_undefined_flag \
17801 no_undefined_flag \
17802 hardcode_libdir_flag_spec \
17803 hardcode_libdir_separator \
17804 exclude_expsyms \
17805 include_expsyms \
17806 file_list_spec \
17807 variables_saved_for_relink \
17808 libname_spec \
17809 library_names_spec \
17810 soname_spec \
17811 install_override_mode \
17812 finish_eval \
17813 old_striplib \
17814 striplib; do
17815     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17816     *[\\\\\\\`\\"\\\$]*)
17817       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17818       ;;
17819     *)
17820       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17821       ;;
17822     esac
17823 done
17824
17825 # Double-quote double-evaled strings.
17826 for var in reload_cmds \
17827 old_postinstall_cmds \
17828 old_postuninstall_cmds \
17829 old_archive_cmds \
17830 extract_expsyms_cmds \
17831 old_archive_from_new_cmds \
17832 old_archive_from_expsyms_cmds \
17833 archive_cmds \
17834 archive_expsym_cmds \
17835 module_cmds \
17836 module_expsym_cmds \
17837 export_symbols_cmds \
17838 prelink_cmds \
17839 postlink_cmds \
17840 postinstall_cmds \
17841 postuninstall_cmds \
17842 finish_cmds \
17843 sys_lib_search_path_spec \
17844 sys_lib_dlsearch_path_spec; do
17845     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17846     *[\\\\\\\`\\"\\\$]*)
17847       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17848       ;;
17849     *)
17850       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17851       ;;
17852     esac
17853 done
17854
17855 ac_aux_dir='$ac_aux_dir'
17856 xsi_shell='$xsi_shell'
17857 lt_shell_append='$lt_shell_append'
17858
17859 # See if we are running on zsh, and set the options which allow our
17860 # commands through without removal of \ escapes INIT.
17861 if test -n "\${ZSH_VERSION+set}" ; then
17862    setopt NO_GLOB_SUBST
17863 fi
17864
17865
17866     PACKAGE='$PACKAGE'
17867     VERSION='$VERSION'
17868     TIMESTAMP='$TIMESTAMP'
17869     RM='$RM'
17870     ofile='$ofile'
17871
17872
17873
17874
17875 _ACEOF
17876
17877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17878
17879 # Handling of arguments.
17880 for ac_config_target in $ac_config_targets
17881 do
17882   case $ac_config_target in
17883     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17884     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17885     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17886     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17887
17888   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17889   esac
17890 done
17891
17892
17893 # If the user did not use the arguments to specify the items to instantiate,
17894 # then the envvar interface is used.  Set only those that are not.
17895 # We use the long form for the default assignment because of an extremely
17896 # bizarre bug on SunOS 4.1.3.
17897 if $ac_need_defaults; then
17898   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17899   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17900   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17901 fi
17902
17903 # Have a temporary directory for convenience.  Make it in the build tree
17904 # simply because there is no reason against having it here, and in addition,
17905 # creating and moving files from /tmp can sometimes cause problems.
17906 # Hook for its removal unless debugging.
17907 # Note that there is a small window in which the directory will not be cleaned:
17908 # after its creation but before its name has been assigned to `$tmp'.
17909 $debug ||
17910 {
17911   tmp= ac_tmp=
17912   trap 'exit_status=$?
17913   : "${ac_tmp:=$tmp}"
17914   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17915 ' 0
17916   trap 'as_fn_exit 1' 1 2 13 15
17917 }
17918 # Create a (secure) tmp directory for tmp files.
17919
17920 {
17921   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17922   test -d "$tmp"
17923 }  ||
17924 {
17925   tmp=./conf$$-$RANDOM
17926   (umask 077 && mkdir "$tmp")
17927 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17928 ac_tmp=$tmp
17929
17930 # Set up the scripts for CONFIG_FILES section.
17931 # No need to generate them if there are no CONFIG_FILES.
17932 # This happens for instance with `./config.status config.h'.
17933 if test -n "$CONFIG_FILES"; then
17934
17935
17936 ac_cr=`echo X | tr X '\015'`
17937 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17938 # But we know of no other shell where ac_cr would be empty at this
17939 # point, so we can use a bashism as a fallback.
17940 if test "x$ac_cr" = x; then
17941   eval ac_cr=\$\'\\r\'
17942 fi
17943 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17944 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17945   ac_cs_awk_cr='\\r'
17946 else
17947   ac_cs_awk_cr=$ac_cr
17948 fi
17949
17950 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17951 _ACEOF
17952
17953
17954 {
17955   echo "cat >conf$$subs.awk <<_ACEOF" &&
17956   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17957   echo "_ACEOF"
17958 } >conf$$subs.sh ||
17959   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17960 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17961 ac_delim='%!_!# '
17962 for ac_last_try in false false false false false :; do
17963   . ./conf$$subs.sh ||
17964     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17965
17966   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17967   if test $ac_delim_n = $ac_delim_num; then
17968     break
17969   elif $ac_last_try; then
17970     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17971   else
17972     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17973   fi
17974 done
17975 rm -f conf$$subs.sh
17976
17977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17979 _ACEOF
17980 sed -n '
17981 h
17982 s/^/S["/; s/!.*/"]=/
17983 p
17984 g
17985 s/^[^!]*!//
17986 :repl
17987 t repl
17988 s/'"$ac_delim"'$//
17989 t delim
17990 :nl
17991 h
17992 s/\(.\{148\}\)..*/\1/
17993 t more1
17994 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17995 p
17996 n
17997 b repl
17998 :more1
17999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18000 p
18001 g
18002 s/.\{148\}//
18003 t nl
18004 :delim
18005 h
18006 s/\(.\{148\}\)..*/\1/
18007 t more2
18008 s/["\\]/\\&/g; s/^/"/; s/$/"/
18009 p
18010 b
18011 :more2
18012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18013 p
18014 g
18015 s/.\{148\}//
18016 t delim
18017 ' <conf$$subs.awk | sed '
18018 /^[^""]/{
18019   N
18020   s/\n//
18021 }
18022 ' >>$CONFIG_STATUS || ac_write_fail=1
18023 rm -f conf$$subs.awk
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 _ACAWK
18026 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18027   for (key in S) S_is_set[key] = 1
18028   FS = "\a"
18029
18030 }
18031 {
18032   line = $ 0
18033   nfields = split(line, field, "@")
18034   substed = 0
18035   len = length(field[1])
18036   for (i = 2; i < nfields; i++) {
18037     key = field[i]
18038     keylen = length(key)
18039     if (S_is_set[key]) {
18040       value = S[key]
18041       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18042       len += length(value) + length(field[++i])
18043       substed = 1
18044     } else
18045       len += 1 + keylen
18046   }
18047
18048   print line
18049 }
18050
18051 _ACAWK
18052 _ACEOF
18053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18054 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18055   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18056 else
18057   cat
18058 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18059   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18060 _ACEOF
18061
18062 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18063 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18064 # trailing colons and then remove the whole line if VPATH becomes empty
18065 # (actually we leave an empty line to preserve line numbers).
18066 if test "x$srcdir" = x.; then
18067   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18068 h
18069 s///
18070 s/^/:/
18071 s/[      ]*$/:/
18072 s/:\$(srcdir):/:/g
18073 s/:\${srcdir}:/:/g
18074 s/:@srcdir@:/:/g
18075 s/^:*//
18076 s/:*$//
18077 x
18078 s/\(=[   ]*\).*/\1/
18079 G
18080 s/\n//
18081 s/^[^=]*=[       ]*$//
18082 }'
18083 fi
18084
18085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18086 fi # test -n "$CONFIG_FILES"
18087
18088 # Set up the scripts for CONFIG_HEADERS section.
18089 # No need to generate them if there are no CONFIG_HEADERS.
18090 # This happens for instance with `./config.status Makefile'.
18091 if test -n "$CONFIG_HEADERS"; then
18092 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18093 BEGIN {
18094 _ACEOF
18095
18096 # Transform confdefs.h into an awk script `defines.awk', embedded as
18097 # here-document in config.status, that substitutes the proper values into
18098 # config.h.in to produce config.h.
18099
18100 # Create a delimiter string that does not exist in confdefs.h, to ease
18101 # handling of long lines.
18102 ac_delim='%!_!# '
18103 for ac_last_try in false false :; do
18104   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18105   if test -z "$ac_tt"; then
18106     break
18107   elif $ac_last_try; then
18108     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18109   else
18110     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18111   fi
18112 done
18113
18114 # For the awk script, D is an array of macro values keyed by name,
18115 # likewise P contains macro parameters if any.  Preserve backslash
18116 # newline sequences.
18117
18118 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18119 sed -n '
18120 s/.\{148\}/&'"$ac_delim"'/g
18121 t rset
18122 :rset
18123 s/^[     ]*#[    ]*define[       ][      ]*/ /
18124 t def
18125 d
18126 :def
18127 s/\\$//
18128 t bsnl
18129 s/["\\]/\\&/g
18130 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18131 D["\1"]=" \3"/p
18132 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18133 d
18134 :bsnl
18135 s/["\\]/\\&/g
18136 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18137 D["\1"]=" \3\\\\\\n"\\/p
18138 t cont
18139 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18140 t cont
18141 d
18142 :cont
18143 n
18144 s/.\{148\}/&'"$ac_delim"'/g
18145 t clear
18146 :clear
18147 s/\\$//
18148 t bsnlc
18149 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18150 d
18151 :bsnlc
18152 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18153 b cont
18154 ' <confdefs.h | sed '
18155 s/'"$ac_delim"'/"\\\
18156 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18157
18158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159   for (key in D) D_is_set[key] = 1
18160   FS = "\a"
18161 }
18162 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18163   line = \$ 0
18164   split(line, arg, " ")
18165   if (arg[1] == "#") {
18166     defundef = arg[2]
18167     mac1 = arg[3]
18168   } else {
18169     defundef = substr(arg[1], 2)
18170     mac1 = arg[2]
18171   }
18172   split(mac1, mac2, "(") #)
18173   macro = mac2[1]
18174   prefix = substr(line, 1, index(line, defundef) - 1)
18175   if (D_is_set[macro]) {
18176     # Preserve the white space surrounding the "#".
18177     print prefix "define", macro P[macro] D[macro]
18178     next
18179   } else {
18180     # Replace #undef with comments.  This is necessary, for example,
18181     # in the case of _POSIX_SOURCE, which is predefined and required
18182     # on some systems where configure will not decide to define it.
18183     if (defundef == "undef") {
18184       print "/*", prefix defundef, macro, "*/"
18185       next
18186     }
18187   }
18188 }
18189 { print }
18190 _ACAWK
18191 _ACEOF
18192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18194 fi # test -n "$CONFIG_HEADERS"
18195
18196
18197 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18198 shift
18199 for ac_tag
18200 do
18201   case $ac_tag in
18202   :[FHLC]) ac_mode=$ac_tag; continue;;
18203   esac
18204   case $ac_mode$ac_tag in
18205   :[FHL]*:*);;
18206   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18207   :[FH]-) ac_tag=-:-;;
18208   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18209   esac
18210   ac_save_IFS=$IFS
18211   IFS=:
18212   set x $ac_tag
18213   IFS=$ac_save_IFS
18214   shift
18215   ac_file=$1
18216   shift
18217
18218   case $ac_mode in
18219   :L) ac_source=$1;;
18220   :[FH])
18221     ac_file_inputs=
18222     for ac_f
18223     do
18224       case $ac_f in
18225       -) ac_f="$ac_tmp/stdin";;
18226       *) # Look for the file first in the build tree, then in the source tree
18227          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18228          # because $ac_f cannot contain `:'.
18229          test -f "$ac_f" ||
18230            case $ac_f in
18231            [\\/$]*) false;;
18232            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18233            esac ||
18234            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18235       esac
18236       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18237       as_fn_append ac_file_inputs " '$ac_f'"
18238     done
18239
18240     # Let's still pretend it is `configure' which instantiates (i.e., don't
18241     # use $as_me), people would be surprised to read:
18242     #    /* config.h.  Generated by config.status.  */
18243     configure_input='Generated from '`
18244           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18245         `' by configure.'
18246     if test x"$ac_file" != x-; then
18247       configure_input="$ac_file.  $configure_input"
18248       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18249 $as_echo "$as_me: creating $ac_file" >&6;}
18250     fi
18251     # Neutralize special characters interpreted by sed in replacement strings.
18252     case $configure_input in #(
18253     *\&* | *\|* | *\\* )
18254        ac_sed_conf_input=`$as_echo "$configure_input" |
18255        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18256     *) ac_sed_conf_input=$configure_input;;
18257     esac
18258
18259     case $ac_tag in
18260     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18261       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18262     esac
18263     ;;
18264   esac
18265
18266   ac_dir=`$as_dirname -- "$ac_file" ||
18267 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18268          X"$ac_file" : 'X\(//\)[^/]' \| \
18269          X"$ac_file" : 'X\(//\)$' \| \
18270          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18271 $as_echo X"$ac_file" |
18272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18273             s//\1/
18274             q
18275           }
18276           /^X\(\/\/\)[^/].*/{
18277             s//\1/
18278             q
18279           }
18280           /^X\(\/\/\)$/{
18281             s//\1/
18282             q
18283           }
18284           /^X\(\/\).*/{
18285             s//\1/
18286             q
18287           }
18288           s/.*/./; q'`
18289   as_dir="$ac_dir"; as_fn_mkdir_p
18290   ac_builddir=.
18291
18292 case "$ac_dir" in
18293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18294 *)
18295   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18296   # A ".." for each directory in $ac_dir_suffix.
18297   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18298   case $ac_top_builddir_sub in
18299   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18300   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18301   esac ;;
18302 esac
18303 ac_abs_top_builddir=$ac_pwd
18304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18305 # for backward compatibility:
18306 ac_top_builddir=$ac_top_build_prefix
18307
18308 case $srcdir in
18309   .)  # We are building in place.
18310     ac_srcdir=.
18311     ac_top_srcdir=$ac_top_builddir_sub
18312     ac_abs_top_srcdir=$ac_pwd ;;
18313   [\\/]* | ?:[\\/]* )  # Absolute name.
18314     ac_srcdir=$srcdir$ac_dir_suffix;
18315     ac_top_srcdir=$srcdir
18316     ac_abs_top_srcdir=$srcdir ;;
18317   *) # Relative name.
18318     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18319     ac_top_srcdir=$ac_top_build_prefix$srcdir
18320     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18321 esac
18322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18323
18324
18325   case $ac_mode in
18326   :F)
18327   #
18328   # CONFIG_FILE
18329   #
18330
18331   case $INSTALL in
18332   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18333   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18334   esac
18335   ac_MKDIR_P=$MKDIR_P
18336   case $MKDIR_P in
18337   [\\/$]* | ?:[\\/]* ) ;;
18338   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18339   esac
18340 _ACEOF
18341
18342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18343 # If the template does not know about datarootdir, expand it.
18344 # FIXME: This hack should be removed a few years after 2.60.
18345 ac_datarootdir_hack=; ac_datarootdir_seen=
18346 ac_sed_dataroot='
18347 /datarootdir/ {
18348   p
18349   q
18350 }
18351 /@datadir@/p
18352 /@docdir@/p
18353 /@infodir@/p
18354 /@localedir@/p
18355 /@mandir@/p'
18356 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18357 *datarootdir*) ac_datarootdir_seen=yes;;
18358 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18359   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18360 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18361 _ACEOF
18362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18363   ac_datarootdir_hack='
18364   s&@datadir@&$datadir&g
18365   s&@docdir@&$docdir&g
18366   s&@infodir@&$infodir&g
18367   s&@localedir@&$localedir&g
18368   s&@mandir@&$mandir&g
18369   s&\\\${datarootdir}&$datarootdir&g' ;;
18370 esac
18371 _ACEOF
18372
18373 # Neutralize VPATH when `$srcdir' = `.'.
18374 # Shell code in configure.ac might set extrasub.
18375 # FIXME: do we really want to maintain this feature?
18376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18377 ac_sed_extra="$ac_vpsub
18378 $extrasub
18379 _ACEOF
18380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381 :t
18382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18383 s|@configure_input@|$ac_sed_conf_input|;t t
18384 s&@top_builddir@&$ac_top_builddir_sub&;t t
18385 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18386 s&@srcdir@&$ac_srcdir&;t t
18387 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18388 s&@top_srcdir@&$ac_top_srcdir&;t t
18389 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18390 s&@builddir@&$ac_builddir&;t t
18391 s&@abs_builddir@&$ac_abs_builddir&;t t
18392 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18393 s&@INSTALL@&$ac_INSTALL&;t t
18394 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18395 $ac_datarootdir_hack
18396 "
18397 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18398   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18399
18400 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18401   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18402   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18403       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18404   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18405 which seems to be undefined.  Please make sure it is defined" >&5
18406 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18407 which seems to be undefined.  Please make sure it is defined" >&2;}
18408
18409   rm -f "$ac_tmp/stdin"
18410   case $ac_file in
18411   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18412   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18413   esac \
18414   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18415  ;;
18416   :H)
18417   #
18418   # CONFIG_HEADER
18419   #
18420   if test x"$ac_file" != x-; then
18421     {
18422       $as_echo "/* $configure_input  */" \
18423       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18424     } >"$ac_tmp/config.h" \
18425       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18426     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18427       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18428 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18429     else
18430       rm -f "$ac_file"
18431       mv "$ac_tmp/config.h" "$ac_file" \
18432         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18433     fi
18434   else
18435     $as_echo "/* $configure_input  */" \
18436       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18437       || as_fn_error $? "could not create -" "$LINENO" 5
18438   fi
18439 # Compute "$ac_file"'s index in $config_headers.
18440 _am_arg="$ac_file"
18441 _am_stamp_count=1
18442 for _am_header in $config_headers :; do
18443   case $_am_header in
18444     $_am_arg | $_am_arg:* )
18445       break ;;
18446     * )
18447       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18448   esac
18449 done
18450 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18451 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18452          X"$_am_arg" : 'X\(//\)[^/]' \| \
18453          X"$_am_arg" : 'X\(//\)$' \| \
18454          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18455 $as_echo X"$_am_arg" |
18456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18457             s//\1/
18458             q
18459           }
18460           /^X\(\/\/\)[^/].*/{
18461             s//\1/
18462             q
18463           }
18464           /^X\(\/\/\)$/{
18465             s//\1/
18466             q
18467           }
18468           /^X\(\/\).*/{
18469             s//\1/
18470             q
18471           }
18472           s/.*/./; q'`/stamp-h$_am_stamp_count
18473  ;;
18474
18475   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18476 $as_echo "$as_me: executing $ac_file commands" >&6;}
18477  ;;
18478   esac
18479
18480
18481   case $ac_file$ac_mode in
18482     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18483   # Older Autoconf quotes --file arguments for eval, but not when files
18484   # are listed without --file.  Let's play safe and only enable the eval
18485   # if we detect the quoting.
18486   case $CONFIG_FILES in
18487   *\'*) eval set x "$CONFIG_FILES" ;;
18488   *)   set x $CONFIG_FILES ;;
18489   esac
18490   shift
18491   for mf
18492   do
18493     # Strip MF so we end up with the name of the file.
18494     mf=`echo "$mf" | sed -e 's/:.*$//'`
18495     # Check whether this is an Automake generated Makefile or not.
18496     # We used to match only the files named 'Makefile.in', but
18497     # some people rename them; so instead we look at the file content.
18498     # Grep'ing the first line is not enough: some people post-process
18499     # each Makefile.in and add a new line on top of each file to say so.
18500     # Grep'ing the whole file is not good either: AIX grep has a line
18501     # limit of 2048, but all sed's we know have understand at least 4000.
18502     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18503       dirpart=`$as_dirname -- "$mf" ||
18504 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18505          X"$mf" : 'X\(//\)[^/]' \| \
18506          X"$mf" : 'X\(//\)$' \| \
18507          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18508 $as_echo X"$mf" |
18509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18510             s//\1/
18511             q
18512           }
18513           /^X\(\/\/\)[^/].*/{
18514             s//\1/
18515             q
18516           }
18517           /^X\(\/\/\)$/{
18518             s//\1/
18519             q
18520           }
18521           /^X\(\/\).*/{
18522             s//\1/
18523             q
18524           }
18525           s/.*/./; q'`
18526     else
18527       continue
18528     fi
18529     # Extract the definition of DEPDIR, am__include, and am__quote
18530     # from the Makefile without running 'make'.
18531     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18532     test -z "$DEPDIR" && continue
18533     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18534     test -z "$am__include" && continue
18535     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18536     # Find all dependency output files, they are included files with
18537     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18538     # simplest approach to changing $(DEPDIR) to its actual value in the
18539     # expansion.
18540     for file in `sed -n "
18541       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18542          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18543       # Make sure the directory exists.
18544       test -f "$dirpart/$file" && continue
18545       fdir=`$as_dirname -- "$file" ||
18546 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18547          X"$file" : 'X\(//\)[^/]' \| \
18548          X"$file" : 'X\(//\)$' \| \
18549          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18550 $as_echo X"$file" |
18551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18552             s//\1/
18553             q
18554           }
18555           /^X\(\/\/\)[^/].*/{
18556             s//\1/
18557             q
18558           }
18559           /^X\(\/\/\)$/{
18560             s//\1/
18561             q
18562           }
18563           /^X\(\/\).*/{
18564             s//\1/
18565             q
18566           }
18567           s/.*/./; q'`
18568       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18569       # echo "creating $dirpart/$file"
18570       echo '# dummy' > "$dirpart/$file"
18571     done
18572   done
18573 }
18574  ;;
18575     "libtool":C)
18576
18577     # See if we are running on zsh, and set the options which allow our
18578     # commands through without removal of \ escapes.
18579     if test -n "${ZSH_VERSION+set}" ; then
18580       setopt NO_GLOB_SUBST
18581     fi
18582
18583     cfgfile="${ofile}T"
18584     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18585     $RM "$cfgfile"
18586
18587     cat <<_LT_EOF >> "$cfgfile"
18588 #! $SHELL
18589
18590 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18591 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18592 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18593 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18594 #
18595 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18596 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18597 #                 Foundation, Inc.
18598 #   Written by Gordon Matzigkeit, 1996
18599 #
18600 #   This file is part of GNU Libtool.
18601 #
18602 # GNU Libtool is free software; you can redistribute it and/or
18603 # modify it under the terms of the GNU General Public License as
18604 # published by the Free Software Foundation; either version 2 of
18605 # the License, or (at your option) any later version.
18606 #
18607 # As a special exception to the GNU General Public License,
18608 # if you distribute this file as part of a program or library that
18609 # is built using GNU Libtool, you may include this file under the
18610 # same distribution terms that you use for the rest of that program.
18611 #
18612 # GNU Libtool is distributed in the hope that it will be useful,
18613 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18614 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18615 # GNU General Public License for more details.
18616 #
18617 # You should have received a copy of the GNU General Public License
18618 # along with GNU Libtool; see the file COPYING.  If not, a copy
18619 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18620 # obtained by writing to the Free Software Foundation, Inc.,
18621 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18622
18623
18624 # The names of the tagged configurations supported by this script.
18625 available_tags=""
18626
18627 # ### BEGIN LIBTOOL CONFIG
18628
18629 # Whether or not to build static libraries.
18630 build_old_libs=$enable_static
18631
18632 # Which release of libtool.m4 was used?
18633 macro_version=$macro_version
18634 macro_revision=$macro_revision
18635
18636 # Whether or not to build shared libraries.
18637 build_libtool_libs=$enable_shared
18638
18639 # What type of objects to build.
18640 pic_mode=$pic_mode
18641
18642 # Whether or not to optimize for fast installation.
18643 fast_install=$enable_fast_install
18644
18645 # Shell to use when invoking shell scripts.
18646 SHELL=$lt_SHELL
18647
18648 # An echo program that protects backslashes.
18649 ECHO=$lt_ECHO
18650
18651 # The PATH separator for the build system.
18652 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18653
18654 # The host system.
18655 host_alias=$host_alias
18656 host=$host
18657 host_os=$host_os
18658
18659 # The build system.
18660 build_alias=$build_alias
18661 build=$build
18662 build_os=$build_os
18663
18664 # A sed program that does not truncate output.
18665 SED=$lt_SED
18666
18667 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18668 Xsed="\$SED -e 1s/^X//"
18669
18670 # A grep program that handles long lines.
18671 GREP=$lt_GREP
18672
18673 # An ERE matcher.
18674 EGREP=$lt_EGREP
18675
18676 # A literal string matcher.
18677 FGREP=$lt_FGREP
18678
18679 # A BSD- or MS-compatible name lister.
18680 NM=$lt_NM
18681
18682 # Whether we need soft or hard links.
18683 LN_S=$lt_LN_S
18684
18685 # What is the maximum length of a command?
18686 max_cmd_len=$max_cmd_len
18687
18688 # Object file suffix (normally "o").
18689 objext=$ac_objext
18690
18691 # Executable file suffix (normally "").
18692 exeext=$exeext
18693
18694 # whether the shell understands "unset".
18695 lt_unset=$lt_unset
18696
18697 # turn spaces into newlines.
18698 SP2NL=$lt_lt_SP2NL
18699
18700 # turn newlines into spaces.
18701 NL2SP=$lt_lt_NL2SP
18702
18703 # convert \$build file names to \$host format.
18704 to_host_file_cmd=$lt_cv_to_host_file_cmd
18705
18706 # convert \$build files to toolchain format.
18707 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18708
18709 # An object symbol dumper.
18710 OBJDUMP=$lt_OBJDUMP
18711
18712 # Method to check whether dependent libraries are shared objects.
18713 deplibs_check_method=$lt_deplibs_check_method
18714
18715 # Command to use when deplibs_check_method = "file_magic".
18716 file_magic_cmd=$lt_file_magic_cmd
18717
18718 # How to find potential files when deplibs_check_method = "file_magic".
18719 file_magic_glob=$lt_file_magic_glob
18720
18721 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18722 want_nocaseglob=$lt_want_nocaseglob
18723
18724 # DLL creation program.
18725 DLLTOOL=$lt_DLLTOOL
18726
18727 # Command to associate shared and link libraries.
18728 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18729
18730 # The archiver.
18731 AR=$lt_AR
18732
18733 # Flags to create an archive.
18734 AR_FLAGS=$lt_AR_FLAGS
18735
18736 # How to feed a file listing to the archiver.
18737 archiver_list_spec=$lt_archiver_list_spec
18738
18739 # A symbol stripping program.
18740 STRIP=$lt_STRIP
18741
18742 # Commands used to install an old-style archive.
18743 RANLIB=$lt_RANLIB
18744 old_postinstall_cmds=$lt_old_postinstall_cmds
18745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18746
18747 # Whether to use a lock for old archive extraction.
18748 lock_old_archive_extraction=$lock_old_archive_extraction
18749
18750 # A C compiler.
18751 LTCC=$lt_CC
18752
18753 # LTCC compiler flags.
18754 LTCFLAGS=$lt_CFLAGS
18755
18756 # Take the output of nm and produce a listing of raw symbols and C names.
18757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18758
18759 # Transform the output of nm in a proper C declaration.
18760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18761
18762 # Transform the output of nm in a C name address pair.
18763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18764
18765 # Transform the output of nm in a C name address pair when lib prefix is needed.
18766 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18767
18768 # Specify filename containing input files for \$NM.
18769 nm_file_list_spec=$lt_nm_file_list_spec
18770
18771 # The root where to search for dependent libraries,and in which our libraries should be installed.
18772 lt_sysroot=$lt_sysroot
18773
18774 # The name of the directory that contains temporary libtool files.
18775 objdir=$objdir
18776
18777 # Used to examine libraries when file_magic_cmd begins with "file".
18778 MAGIC_CMD=$MAGIC_CMD
18779
18780 # Must we lock files when doing compilation?
18781 need_locks=$lt_need_locks
18782
18783 # Manifest tool.
18784 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18785
18786 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18787 DSYMUTIL=$lt_DSYMUTIL
18788
18789 # Tool to change global to local symbols on Mac OS X.
18790 NMEDIT=$lt_NMEDIT
18791
18792 # Tool to manipulate fat objects and archives on Mac OS X.
18793 LIPO=$lt_LIPO
18794
18795 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18796 OTOOL=$lt_OTOOL
18797
18798 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18799 OTOOL64=$lt_OTOOL64
18800
18801 # Old archive suffix (normally "a").
18802 libext=$libext
18803
18804 # Shared library suffix (normally ".so").
18805 shrext_cmds=$lt_shrext_cmds
18806
18807 # The commands to extract the exported symbol list from a shared archive.
18808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18809
18810 # Variables whose values should be saved in libtool wrapper scripts and
18811 # restored at link time.
18812 variables_saved_for_relink=$lt_variables_saved_for_relink
18813
18814 # Do we need the "lib" prefix for modules?
18815 need_lib_prefix=$need_lib_prefix
18816
18817 # Do we need a version for libraries?
18818 need_version=$need_version
18819
18820 # Library versioning type.
18821 version_type=$version_type
18822
18823 # Shared library runtime path variable.
18824 runpath_var=$runpath_var
18825
18826 # Shared library path variable.
18827 shlibpath_var=$shlibpath_var
18828
18829 # Is shlibpath searched before the hard-coded library search path?
18830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18831
18832 # Format of library name prefix.
18833 libname_spec=$lt_libname_spec
18834
18835 # List of archive names.  First name is the real one, the rest are links.
18836 # The last name is the one that the linker finds with -lNAME
18837 library_names_spec=$lt_library_names_spec
18838
18839 # The coded name of the library, if different from the real name.
18840 soname_spec=$lt_soname_spec
18841
18842 # Permission mode override for installation of shared libraries.
18843 install_override_mode=$lt_install_override_mode
18844
18845 # Command to use after installation of a shared archive.
18846 postinstall_cmds=$lt_postinstall_cmds
18847
18848 # Command to use after uninstallation of a shared archive.
18849 postuninstall_cmds=$lt_postuninstall_cmds
18850
18851 # Commands used to finish a libtool library installation in a directory.
18852 finish_cmds=$lt_finish_cmds
18853
18854 # As "finish_cmds", except a single script fragment to be evaled but
18855 # not shown.
18856 finish_eval=$lt_finish_eval
18857
18858 # Whether we should hardcode library paths into libraries.
18859 hardcode_into_libs=$hardcode_into_libs
18860
18861 # Compile-time system search path for libraries.
18862 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18863
18864 # Run-time system search path for libraries.
18865 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18866
18867 # Whether dlopen is supported.
18868 dlopen_support=$enable_dlopen
18869
18870 # Whether dlopen of programs is supported.
18871 dlopen_self=$enable_dlopen_self
18872
18873 # Whether dlopen of statically linked programs is supported.
18874 dlopen_self_static=$enable_dlopen_self_static
18875
18876 # Commands to strip libraries.
18877 old_striplib=$lt_old_striplib
18878 striplib=$lt_striplib
18879
18880
18881 # The linker used to build libraries.
18882 LD=$lt_LD
18883
18884 # How to create reloadable object files.
18885 reload_flag=$lt_reload_flag
18886 reload_cmds=$lt_reload_cmds
18887
18888 # Commands used to build an old-style archive.
18889 old_archive_cmds=$lt_old_archive_cmds
18890
18891 # A language specific compiler.
18892 CC=$lt_compiler
18893
18894 # Is the compiler the GNU compiler?
18895 with_gcc=$GCC
18896
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18899
18900 # Additional compiler flags for building library objects.
18901 pic_flag=$lt_lt_prog_compiler_pic
18902
18903 # How to pass a linker flag through the compiler.
18904 wl=$lt_lt_prog_compiler_wl
18905
18906 # Compiler flag to prevent dynamic linking.
18907 link_static_flag=$lt_lt_prog_compiler_static
18908
18909 # Does compiler simultaneously support -c and -o options?
18910 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18911
18912 # Whether or not to add -lc for building shared libraries.
18913 build_libtool_need_lc=$archive_cmds_need_lc
18914
18915 # Whether or not to disallow shared libs when runtime libs are static.
18916 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18917
18918 # Compiler flag to allow reflexive dlopens.
18919 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18920
18921 # Compiler flag to generate shared objects directly from archives.
18922 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18923
18924 # Whether the compiler copes with passing no objects directly.
18925 compiler_needs_object=$lt_compiler_needs_object
18926
18927 # Create an old-style archive from a shared archive.
18928 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18929
18930 # Create a temporary old-style archive to link instead of a shared archive.
18931 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18932
18933 # Commands used to build a shared archive.
18934 archive_cmds=$lt_archive_cmds
18935 archive_expsym_cmds=$lt_archive_expsym_cmds
18936
18937 # Commands used to build a loadable module if different from building
18938 # a shared archive.
18939 module_cmds=$lt_module_cmds
18940 module_expsym_cmds=$lt_module_expsym_cmds
18941
18942 # Whether we are building with GNU ld or not.
18943 with_gnu_ld=$lt_with_gnu_ld
18944
18945 # Flag that allows shared libraries with undefined symbols to be built.
18946 allow_undefined_flag=$lt_allow_undefined_flag
18947
18948 # Flag that enforces no undefined symbols.
18949 no_undefined_flag=$lt_no_undefined_flag
18950
18951 # Flag to hardcode \$libdir into a binary during linking.
18952 # This must work even if \$libdir does not exist
18953 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18954
18955 # Whether we need a single "-rpath" flag with a separated argument.
18956 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18957
18958 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18959 # DIR into the resulting binary.
18960 hardcode_direct=$hardcode_direct
18961
18962 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18963 # DIR into the resulting binary and the resulting library dependency is
18964 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18965 # library is relocated.
18966 hardcode_direct_absolute=$hardcode_direct_absolute
18967
18968 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18969 # into the resulting binary.
18970 hardcode_minus_L=$hardcode_minus_L
18971
18972 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18973 # into the resulting binary.
18974 hardcode_shlibpath_var=$hardcode_shlibpath_var
18975
18976 # Set to "yes" if building a shared library automatically hardcodes DIR
18977 # into the library and all subsequent libraries and executables linked
18978 # against it.
18979 hardcode_automatic=$hardcode_automatic
18980
18981 # Set to yes if linker adds runtime paths of dependent libraries
18982 # to runtime path list.
18983 inherit_rpath=$inherit_rpath
18984
18985 # Whether libtool must link a program against all its dependency libraries.
18986 link_all_deplibs=$link_all_deplibs
18987
18988 # Set to "yes" if exported symbols are required.
18989 always_export_symbols=$always_export_symbols
18990
18991 # The commands to list exported symbols.
18992 export_symbols_cmds=$lt_export_symbols_cmds
18993
18994 # Symbols that should not be listed in the preloaded symbols.
18995 exclude_expsyms=$lt_exclude_expsyms
18996
18997 # Symbols that must always be exported.
18998 include_expsyms=$lt_include_expsyms
18999
19000 # Commands necessary for linking programs (against libraries) with templates.
19001 prelink_cmds=$lt_prelink_cmds
19002
19003 # Commands necessary for finishing linking programs.
19004 postlink_cmds=$lt_postlink_cmds
19005
19006 # Specify filename containing input files.
19007 file_list_spec=$lt_file_list_spec
19008
19009 # How to hardcode a shared library path into an executable.
19010 hardcode_action=$hardcode_action
19011
19012 # ### END LIBTOOL CONFIG
19013
19014 _LT_EOF
19015
19016   case $host_os in
19017   aix3*)
19018     cat <<\_LT_EOF >> "$cfgfile"
19019 # AIX sometimes has problems with the GCC collect2 program.  For some
19020 # reason, if we set the COLLECT_NAMES environment variable, the problems
19021 # vanish in a puff of smoke.
19022 if test "X${COLLECT_NAMES+set}" != Xset; then
19023   COLLECT_NAMES=
19024   export COLLECT_NAMES
19025 fi
19026 _LT_EOF
19027     ;;
19028   esac
19029
19030
19031 ltmain="$ac_aux_dir/ltmain.sh"
19032
19033
19034   # We use sed instead of cat because bash on DJGPP gets confused if
19035   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19036   # text mode, it properly converts lines to CR/LF.  This bash problem
19037   # is reportedly fixed, but why not run on old versions too?
19038   sed '$q' "$ltmain" >> "$cfgfile" \
19039      || (rm -f "$cfgfile"; exit 1)
19040
19041   if test x"$xsi_shell" = xyes; then
19042   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19043 func_dirname ()\
19044 {\
19045 \    case ${1} in\
19046 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19047 \      *  ) func_dirname_result="${3}" ;;\
19048 \    esac\
19049 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19050   && mv -f "$cfgfile.tmp" "$cfgfile" \
19051     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19052 test 0 -eq $? || _lt_function_replace_fail=:
19053
19054
19055   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19056 func_basename ()\
19057 {\
19058 \    func_basename_result="${1##*/}"\
19059 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19060   && mv -f "$cfgfile.tmp" "$cfgfile" \
19061     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19062 test 0 -eq $? || _lt_function_replace_fail=:
19063
19064
19065   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19066 func_dirname_and_basename ()\
19067 {\
19068 \    case ${1} in\
19069 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19070 \      *  ) func_dirname_result="${3}" ;;\
19071 \    esac\
19072 \    func_basename_result="${1##*/}"\
19073 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19074   && mv -f "$cfgfile.tmp" "$cfgfile" \
19075     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19076 test 0 -eq $? || _lt_function_replace_fail=:
19077
19078
19079   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19080 func_stripname ()\
19081 {\
19082 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19083 \    # positional parameters, so assign one to ordinary parameter first.\
19084 \    func_stripname_result=${3}\
19085 \    func_stripname_result=${func_stripname_result#"${1}"}\
19086 \    func_stripname_result=${func_stripname_result%"${2}"}\
19087 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19088   && mv -f "$cfgfile.tmp" "$cfgfile" \
19089     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19090 test 0 -eq $? || _lt_function_replace_fail=:
19091
19092
19093   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19094 func_split_long_opt ()\
19095 {\
19096 \    func_split_long_opt_name=${1%%=*}\
19097 \    func_split_long_opt_arg=${1#*=}\
19098 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19099   && mv -f "$cfgfile.tmp" "$cfgfile" \
19100     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19101 test 0 -eq $? || _lt_function_replace_fail=:
19102
19103
19104   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19105 func_split_short_opt ()\
19106 {\
19107 \    func_split_short_opt_arg=${1#??}\
19108 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19109 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19110   && mv -f "$cfgfile.tmp" "$cfgfile" \
19111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19112 test 0 -eq $? || _lt_function_replace_fail=:
19113
19114
19115   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19116 func_lo2o ()\
19117 {\
19118 \    case ${1} in\
19119 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19120 \      *)    func_lo2o_result=${1} ;;\
19121 \    esac\
19122 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19123   && mv -f "$cfgfile.tmp" "$cfgfile" \
19124     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19125 test 0 -eq $? || _lt_function_replace_fail=:
19126
19127
19128   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19129 func_xform ()\
19130 {\
19131     func_xform_result=${1%.*}.lo\
19132 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19133   && mv -f "$cfgfile.tmp" "$cfgfile" \
19134     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19135 test 0 -eq $? || _lt_function_replace_fail=:
19136
19137
19138   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19139 func_arith ()\
19140 {\
19141     func_arith_result=$(( $* ))\
19142 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19143   && mv -f "$cfgfile.tmp" "$cfgfile" \
19144     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19145 test 0 -eq $? || _lt_function_replace_fail=:
19146
19147
19148   sed -e '/^func_len ()$/,/^} # func_len /c\
19149 func_len ()\
19150 {\
19151     func_len_result=${#1}\
19152 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19153   && mv -f "$cfgfile.tmp" "$cfgfile" \
19154     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19155 test 0 -eq $? || _lt_function_replace_fail=:
19156
19157 fi
19158
19159 if test x"$lt_shell_append" = xyes; then
19160   sed -e '/^func_append ()$/,/^} # func_append /c\
19161 func_append ()\
19162 {\
19163     eval "${1}+=\\${2}"\
19164 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19165   && mv -f "$cfgfile.tmp" "$cfgfile" \
19166     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19167 test 0 -eq $? || _lt_function_replace_fail=:
19168
19169
19170   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19171 func_append_quoted ()\
19172 {\
19173 \    func_quote_for_eval "${2}"\
19174 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19175 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19176   && mv -f "$cfgfile.tmp" "$cfgfile" \
19177     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19178 test 0 -eq $? || _lt_function_replace_fail=:
19179
19180
19181   # Save a `func_append' function call where possible by direct use of '+='
19182   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19183     && mv -f "$cfgfile.tmp" "$cfgfile" \
19184       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19185   test 0 -eq $? || _lt_function_replace_fail=:
19186 else
19187   # Save a `func_append' function call even when '+=' is not available
19188   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19189     && mv -f "$cfgfile.tmp" "$cfgfile" \
19190       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19191   test 0 -eq $? || _lt_function_replace_fail=:
19192 fi
19193
19194 if test x"$_lt_function_replace_fail" = x":"; then
19195   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19196 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19197 fi
19198
19199
19200    mv -f "$cfgfile" "$ofile" ||
19201     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19202   chmod +x "$ofile"
19203
19204  ;;
19205
19206   esac
19207 done # for ac_tag
19208
19209
19210 as_fn_exit 0
19211 _ACEOF
19212 ac_clean_files=$ac_clean_files_save
19213
19214 test $ac_write_fail = 0 ||
19215   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19216
19217
19218 # configure is writing to config.log, and then calls config.status.
19219 # config.status does its own redirection, appending to config.log.
19220 # Unfortunately, on DOS this fails, as config.log is still kept open
19221 # by configure, so config.status won't be able to write to it; its
19222 # output is simply discarded.  So we exec the FD to /dev/null,
19223 # effectively closing config.log, so it can be properly (re)opened and
19224 # appended to by config.status.  When coming back to configure, we
19225 # need to make the FD available again.
19226 if test "$no_create" != yes; then
19227   ac_cs_success=:
19228   ac_config_status_args=
19229   test "$silent" = yes &&
19230     ac_config_status_args="$ac_config_status_args --quiet"
19231   exec 5>/dev/null
19232   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19233   exec 5>>config.log
19234   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19235   # would make configure fail if this is the last instruction.
19236   $ac_cs_success || as_fn_exit 1
19237 fi
19238 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19239   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19240 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19241 fi
19242