]> eyrie.org Git - kerberos/krb5-strength.git/blob - configure
Merge tag 'upstream/2.2' into debian
[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.2.
4 #
5 # Report bugs to <eagle@eyrie.org>.
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 eagle@eyrie.org
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.2'
594 PACKAGE_STRING='krb5-strength 2.2'
595 PACKAGE_BUGREPORT='eagle@eyrie.org'
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.2 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.2:";;
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 <eagle@eyrie.org>.
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.2
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 eagle@eyrie.org ##
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.2, 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.2'
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 else
12448   if test x"true" = xtrue; then :
12449   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
12450 fi
12451 fi
12452
12453  for ac_header in cdb.h
12454 do :
12455   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_cdb_h" = xyes; then :
12457   cat >>confdefs.h <<_ACEOF
12458 #define HAVE_CDB_H 1
12459 _ACEOF
12460
12461 fi
12462
12463 done
12464
12465  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
12466  LDFLAGS="$rra_CDB_save_LDFLAGS"
12467  LIBS="$rra_CDB_save_LIBS"
12468 else
12469   if test x"$rra_CDB_libdir" != x; then :
12470   CDB_LDFLAGS="-L$rra_CDB_libdir"
12471 else
12472   if test x"$rra_CDB_root" != x; then :
12473
12474  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
12475   if test x"" = x; then :
12476   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
12477 else
12478   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
12479 fi
12480 else
12481   if test x"" = x; then :
12482   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
12483 else
12484   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
12485 fi
12486 fi
12487  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
12488 fi
12489 fi
12490  if test x"$rra_CDB_includedir" != x; then :
12491   CDB_CPPFLAGS="-I$rra_CDB_includedir"
12492 else
12493   if test x"$rra_CDB_root" != x; then :
12494   if test x"$rra_CDB_root" != x/usr; then :
12495   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
12496 fi
12497 fi
12498 fi
12499  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
12500  rra_CDB_save_LDFLAGS="$LDFLAGS"
12501  rra_CDB_save_LIBS="$LIBS"
12502  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
12503  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
12504  LIBS="$CDB_LIBS $LIBS"
12505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
12506 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
12507 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
12508   $as_echo_n "(cached) " >&6
12509 else
12510   ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lcdb  $LIBS"
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h.  */
12514
12515 /* Override any GCC internal prototype to avoid an error.
12516    Use char because int might match the return type of a GCC
12517    builtin and then its argument prototype would still apply.  */
12518 #ifdef __cplusplus
12519 extern "C"
12520 #endif
12521 char cdb_init ();
12522 int
12523 main ()
12524 {
12525 return cdb_init ();
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531   ac_cv_lib_cdb_cdb_init=yes
12532 else
12533   ac_cv_lib_cdb_cdb_init=no
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext \
12536     conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12538 fi
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
12540 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
12541 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
12542   CDB_LIBS=-lcdb
12543 else
12544   if test x"false" = xtrue; then :
12545   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
12546 fi
12547 fi
12548
12549  for ac_header in cdb.h
12550 do :
12551   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
12552 if test "x$ac_cv_header_cdb_h" = xyes; then :
12553   cat >>confdefs.h <<_ACEOF
12554 #define HAVE_CDB_H 1
12555 _ACEOF
12556
12557 fi
12558
12559 done
12560
12561  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
12562  LDFLAGS="$rra_CDB_save_LDFLAGS"
12563  LIBS="$rra_CDB_save_LIBS"
12564 fi
12565 fi
12566  if test x"$CDB_LIBS" != x; then :
12567   rra_use_CDB=true
12568
12569 $as_echo "#define HAVE_CDB 1" >>confdefs.h
12570
12571 fi
12572 rra_system_cracklib=
12573  rra_cracklib_root=
12574  rra_cracklib_libdir=
12575  rra_cracklib_includedir=
12576  CRACKLIB_CPPFLAGS=
12577  CRACKLIB_LDFLAGS=
12578  CRACKLIB_LIBS=
12579
12580
12581
12582
12583
12584 # Check whether --with-cracklib was given.
12585 if test "${with_cracklib+set}" = set; then :
12586   withval=$with_cracklib; if test x"$withval" != xno; then :
12587   rra_system_cracklib=yes
12588 fi
12589      if test x"$withval" != xyes && test x"$withval" != xno; then :
12590   rra_cracklib_root="$withval"
12591 fi
12592 fi
12593
12594
12595 # Check whether --with-cracklib-include was given.
12596 if test "${with_cracklib_include+set}" = set; then :
12597   withval=$with_cracklib_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12598   rra_cracklib_includedir="$withval"
12599 fi
12600 fi
12601
12602
12603 # Check whether --with-cracklib-lib was given.
12604 if test "${with_cracklib_lib+set}" = set; then :
12605   withval=$with_cracklib_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12606   rra_cracklib_libdir="$withval"
12607 fi
12608 fi
12609
12610
12611   if test x"$rra_system_cracklib" != xyes; then
12612   EMBEDDED_CRACKLIB_TRUE=
12613   EMBEDDED_CRACKLIB_FALSE='#'
12614 else
12615   EMBEDDED_CRACKLIB_TRUE='#'
12616   EMBEDDED_CRACKLIB_FALSE=
12617 fi
12618
12619  if test x"$rra_system_cracklib" = xyes; then :
12620   if test x"$rra_cracklib_libdir" != x; then :
12621   CRACKLIB_LDFLAGS="-L$rra_cracklib_libdir"
12622 else
12623   if test x"$rra_cracklib_root" != x; then :
12624
12625  if test -d "$rra_cracklib_root/$rra_lib_arch_name"; then :
12626   if test x"" = x; then :
12627   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}"
12628 else
12629   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/${rra_lib_arch_name}/"
12630 fi
12631 else
12632   if test x"" = x; then :
12633   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib"
12634 else
12635   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L$rra_cracklib_root/lib/"
12636 fi
12637 fi
12638  CRACKLIB_LDFLAGS=`echo "$CRACKLIB_LDFLAGS" | sed -e 's/^ *//'`
12639 fi
12640 fi
12641  if test x"$rra_cracklib_includedir" != x; then :
12642   CRACKLIB_CPPFLAGS="-I$rra_cracklib_includedir"
12643 else
12644   if test x"$rra_cracklib_root" != x; then :
12645   if test x"$rra_cracklib_root" != x/usr; then :
12646   CRACKLIB_CPPFLAGS="-I${rra_cracklib_root}/include"
12647 fi
12648 fi
12649 fi
12650       CRACKLIB_LIBS="-lcrack"
12651       rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
12652  rra_cracklib_save_LDFLAGS="$LDFLAGS"
12653  rra_cracklib_save_LIBS="$LIBS"
12654  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
12655  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
12656  LIBS="$CRACKLIB_LIBS $LIBS"
12657  ac_fn_c_check_func "$LINENO" "FascistCheck" "ac_cv_func_FascistCheck"
12658 if test "x$ac_cv_func_FascistCheck" = xyes; then :
12659
12660 else
12661   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12663 as_fn_error $? "unable to link with CrackLib library
12664 See \`config.log' for more details" "$LINENO" 5; }
12665 fi
12666
12667  CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
12668  LDFLAGS="$rra_cracklib_save_LDFLAGS"
12669  LIBS="$rra_cracklib_save_LIBS"
12670 fi
12671 if test x"$rra_system_cracklib" = xyes; then :
12672   rra_cracklib_save_CPPFLAGS="$CPPFLAGS"
12673  rra_cracklib_save_LDFLAGS="$LDFLAGS"
12674  rra_cracklib_save_LIBS="$LIBS"
12675  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
12676  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
12677  LIBS="$CRACKLIB_LIBS $LIBS"
12678      for ac_header in crack.h
12679 do :
12680   ac_fn_c_check_header_mongrel "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
12681 if test "x$ac_cv_header_crack_h" = xyes; then :
12682   cat >>confdefs.h <<_ACEOF
12683 #define HAVE_CRACK_H 1
12684 _ACEOF
12685
12686 fi
12687
12688 done
12689
12690      CPPFLAGS="$rra_cracklib_save_CPPFLAGS"
12691  LDFLAGS="$rra_cracklib_save_LDFLAGS"
12692  LIBS="$rra_cracklib_save_LIBS"
12693 fi
12694 rra_reduced_depends=false
12695 # Check whether --enable-reduced-depends was given.
12696 if test "${enable_reduced_depends+set}" = set; then :
12697   enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then :
12698   rra_reduced_depends=true
12699 fi
12700 fi
12701
12702
12703  # Extract the first word of "krb5-config", so it can be a program name with args.
12704 set dummy krb5-config; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then :
12708   $as_echo_n "(cached) " >&6
12709 else
12710   case $PATH_KRB5_CONFIG in
12711   [\\/]* | ?:[\\/]*)
12712   ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
12713   ;;
12714   *)
12715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716 as_dummy="${PATH}:/usr/kerberos/bin"
12717 for as_dir in $as_dummy
12718 do
12719   IFS=$as_save_IFS
12720   test -z "$as_dir" && as_dir=.
12721     for ac_exec_ext in '' $ac_executable_extensions; do
12722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12723     ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725     break 2
12726   fi
12727 done
12728   done
12729 IFS=$as_save_IFS
12730
12731   ;;
12732 esac
12733 fi
12734 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
12735 if test -n "$PATH_KRB5_CONFIG"; then
12736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
12737 $as_echo "$PATH_KRB5_CONFIG" >&6; }
12738 else
12739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12741 fi
12742
12743
12744 rra_krb5_root=
12745  rra_krb5_libdir=
12746  rra_krb5_includedir=
12747  rra_use_KRB5=true
12748
12749
12750
12751
12752
12753 # Check whether --with-krb5 was given.
12754 if test "${with_krb5+set}" = set; then :
12755   withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then :
12756   rra_krb5_root="$withval"
12757 fi
12758 fi
12759
12760
12761 # Check whether --with-krb5-include was given.
12762 if test "${with_krb5_include+set}" = set; then :
12763   withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12764   rra_krb5_includedir="$withval"
12765 fi
12766 fi
12767
12768
12769 # Check whether --with-krb5-lib was given.
12770 if test "${with_krb5_lib+set}" = set; then :
12771   withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12772   rra_krb5_libdir="$withval"
12773 fi
12774 fi
12775
12776
12777  rra_krb5_incroot=
12778  if test x"$rra_krb5_includedir" != x; then :
12779   rra_krb5_incroot="$rra_krb5_includedir"
12780 else
12781   if test x"$rra_krb5_root" != x; then :
12782   rra_krb5_incroot="${rra_krb5_root}/include"
12783 fi
12784 fi
12785  if test x"$rra_reduced_depends" = xtrue; then :
12786   if test x"$rra_krb5_libdir" != x; then :
12787   KRB5_LDFLAGS="-L$rra_krb5_libdir"
12788 else
12789   if test x"$rra_krb5_root" != x; then :
12790
12791  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
12792   if test x"" = x; then :
12793   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
12794 else
12795   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
12796 fi
12797 else
12798   if test x"" = x; then :
12799   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
12800 else
12801   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
12802 fi
12803 fi
12804  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
12805 fi
12806 fi
12807  if test x"$rra_krb5_includedir" != x; then :
12808   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
12809 else
12810   if test x"$rra_krb5_root" != x; then :
12811   if test x"$rra_krb5_root" != x/usr; then :
12812   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
12813 fi
12814 fi
12815 fi
12816      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
12817  rra_krb5_save_LDFLAGS="$LDFLAGS"
12818  rra_krb5_save_LIBS="$LIBS"
12819  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
12820  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
12821  LIBS="$KRB5_LIBS $LIBS"
12822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12823 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12824 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
12825   $as_echo_n "(cached) " >&6
12826 else
12827   ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lkrb5  $LIBS"
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h.  */
12831
12832 /* Override any GCC internal prototype to avoid an error.
12833    Use char because int might match the return type of a GCC
12834    builtin and then its argument prototype would still apply.  */
12835 #ifdef __cplusplus
12836 extern "C"
12837 #endif
12838 char krb5_init_context ();
12839 int
12840 main ()
12841 {
12842 return krb5_init_context ();
12843   ;
12844   return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_link "$LINENO"; then :
12848   ac_cv_lib_krb5_krb5_init_context=yes
12849 else
12850   ac_cv_lib_krb5_krb5_init_context=no
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext \
12853     conftest$ac_exeext conftest.$ac_ext
12854 LIBS=$ac_check_lib_save_LIBS
12855 fi
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12857 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12858 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
12859   KRB5_LIBS="-lkrb5"
12860 else
12861   if test x"true" = xtrue; then :
12862   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
12863 fi
12864 fi
12865
12866  LIBS="$KRB5_LIBS $LIBS"
12867  if test x"$rra_krb5_incroot" = x; then :
12868   for ac_header in krb5.h krb5/krb5.h
12869 do :
12870   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12873   cat >>confdefs.h <<_ACEOF
12874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12875 _ACEOF
12876
12877 fi
12878
12879 done
12880
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
12883 $as_echo_n "checking for krb5.h... " >&6; }
12884  if test -f "${rra_krb5_incroot}/krb5.h"; then :
12885
12886 cat >>confdefs.h <<_ACEOF
12887 #define HAVE_KRB5_H 1
12888 _ACEOF
12889
12890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12891 $as_echo "yes" >&6; }
12892 else
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895 fi
12896       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
12897 $as_echo_n "checking for krb5/krb5.h... " >&6; }
12898  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
12899
12900 cat >>confdefs.h <<_ACEOF
12901 #define HAVE_KRB5_KRB5_H 1
12902 _ACEOF
12903
12904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12905 $as_echo "yes" >&6; }
12906 else
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910 fi
12911  for ac_func in krb5_get_error_message
12912 do :
12913   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
12914 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
12915   cat >>confdefs.h <<_ACEOF
12916 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
12917 _ACEOF
12918  for ac_func in krb5_free_error_message
12919 do :
12920   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
12921 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
12922   cat >>confdefs.h <<_ACEOF
12923 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
12924 _ACEOF
12925
12926 fi
12927 done
12928
12929 else
12930   for ac_func in krb5_get_error_string
12931 do :
12932   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
12933 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
12934   cat >>confdefs.h <<_ACEOF
12935 #define HAVE_KRB5_GET_ERROR_STRING 1
12936 _ACEOF
12937
12938 else
12939   for ac_func in krb5_get_err_txt
12940 do :
12941   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
12942 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
12943   cat >>confdefs.h <<_ACEOF
12944 #define HAVE_KRB5_GET_ERR_TXT 1
12945 _ACEOF
12946
12947 else
12948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
12949 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
12950 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-lksvc  $LIBS"
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h.  */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959    Use char because int might match the return type of a GCC
12960    builtin and then its argument prototype would still apply.  */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char krb5_svc_get_msg ();
12965 int
12966 main ()
12967 {
12968 return krb5_svc_get_msg ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
12975 else
12976   ac_cv_lib_ksvc_krb5_svc_get_msg=no
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979     conftest$ac_exeext conftest.$ac_ext
12980 LIBS=$ac_check_lib_save_LIBS
12981 fi
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
12983 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
12984 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
12985   KRB5_LIBS="$KRB5_LIBS -lksvc"
12986                   $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
12987
12988                   for ac_header in ibm_svc/krb5_svc.h
12989 do :
12990   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
12991 #if HAVE_KRB5_H
12992 # include <krb5.h>
12993 #else
12994 # include <krb5/krb5.h>
12995 #endif
12996
12997 "
12998 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
12999   cat >>confdefs.h <<_ACEOF
13000 #define HAVE_IBM_SVC_KRB5_SVC_H 1
13001 _ACEOF
13002
13003 fi
13004
13005 done
13006
13007 else
13008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13009 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13010 if ${ac_cv_lib_com_err_com_err+:} false; then :
13011   $as_echo_n "(cached) " >&6
13012 else
13013   ac_check_lib_save_LIBS=$LIBS
13014 LIBS="-lcom_err  $LIBS"
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h.  */
13017
13018 /* Override any GCC internal prototype to avoid an error.
13019    Use char because int might match the return type of a GCC
13020    builtin and then its argument prototype would still apply.  */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char com_err ();
13025 int
13026 main ()
13027 {
13028 return com_err ();
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_c_try_link "$LINENO"; then :
13034   ac_cv_lib_com_err_com_err=yes
13035 else
13036   ac_cv_lib_com_err_com_err=no
13037 fi
13038 rm -f core conftest.err conftest.$ac_objext \
13039     conftest$ac_exeext conftest.$ac_ext
13040 LIBS=$ac_check_lib_save_LIBS
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13043 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13044 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13045   KRB5_LIBS="$KRB5_LIBS -lcom_err"
13046 else
13047   if test x"true" = xtrue; then :
13048   as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
13049 else
13050   KRB5_LIBS=""
13051 fi
13052 fi
13053
13054                   for ac_header in et/com_err.h
13055 do :
13056   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
13057 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
13058   cat >>confdefs.h <<_ACEOF
13059 #define HAVE_ET_COM_ERR_H 1
13060 _ACEOF
13061
13062 fi
13063
13064 done
13065
13066 fi
13067
13068 fi
13069 done
13070
13071 fi
13072 done
13073
13074 fi
13075 done
13076
13077  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13078  LDFLAGS="$rra_krb5_save_LDFLAGS"
13079  LIBS="$rra_krb5_save_LIBS"
13080 else
13081   if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
13082
13083  rra_krb5_config_KRB5=
13084  rra_krb5_config_KRB5_ok=
13085  if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
13086   rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
13087 else
13088   rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
13089 fi
13090  if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
13092 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
13093 if ${rra_cv_lib_KRB5_config+:} false; then :
13094   $as_echo_n "(cached) " >&6
13095 else
13096   if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
13097   rra_cv_lib_KRB5_config=yes
13098 else
13099   rra_cv_lib_KRB5_config=no
13100 fi
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
13103 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
13104      if test "$rra_cv_lib_KRB5_config" = yes; then :
13105   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
13106
13107
13108
13109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
13110 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
13111 if ${rra_cv_krb5_config_deps+:} false; then :
13112   $as_echo_n "(cached) " >&6
13113 else
13114   if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
13115   rra_cv_krb5_config_deps=yes
13116 else
13117   rra_cv_krb5_config_deps=no
13118 fi
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
13121 $as_echo "$rra_cv_krb5_config_deps" >&6; }
13122  if test x"$rra_reduced_depends" = xfalse \
13123         && test x"$rra_cv_krb5_config_deps" = xyes; then :
13124   KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
13125 else
13126   KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13127 fi
13128          rra_krb5_config_KRB5_ok=yes
13129 else
13130   if test x"krb5" = xkrb5; then :
13131   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
13132              KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13133              rra_krb5_config_KRB5_ok=yes
13134 fi
13135 fi
13136 fi
13137  if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
13138   KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
13139      KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
13140      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13141  rra_krb5_save_LDFLAGS="$LDFLAGS"
13142  rra_krb5_save_LIBS="$LIBS"
13143  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13144  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13145  LIBS="$KRB5_LIBS $LIBS"
13146  ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
13147 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
13148   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13149  LDFLAGS="$rra_krb5_save_LDFLAGS"
13150  LIBS="$rra_krb5_save_LIBS"
13151 else
13152   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13153  LDFLAGS="$rra_krb5_save_LDFLAGS"
13154  LIBS="$rra_krb5_save_LIBS"
13155      KRB5_CPPFLAGS=
13156      KRB5_LIBS=
13157      if test x"$rra_krb5_libdir" != x; then :
13158   KRB5_LDFLAGS="-L$rra_krb5_libdir"
13159 else
13160   if test x"$rra_krb5_root" != x; then :
13161
13162  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
13163   if test x"" = x; then :
13164   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
13165 else
13166   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
13167 fi
13168 else
13169   if test x"" = x; then :
13170   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
13171 else
13172   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
13173 fi
13174 fi
13175  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
13176 fi
13177 fi
13178  if test x"$rra_krb5_includedir" != x; then :
13179   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
13180 else
13181   if test x"$rra_krb5_root" != x; then :
13182   if test x"$rra_krb5_root" != x/usr; then :
13183   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
13184 fi
13185 fi
13186 fi
13187      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13188  rra_krb5_save_LDFLAGS="$LDFLAGS"
13189  rra_krb5_save_LIBS="$LIBS"
13190  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13191  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13192  LIBS="$KRB5_LIBS $LIBS"
13193  rra_krb5_extra=
13194  LIBS=
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
13196 $as_echo_n "checking for library containing res_search... " >&6; }
13197 if ${ac_cv_search_res_search+:} false; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200   ac_func_search_save_LIBS=$LIBS
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h.  */
13203
13204 /* Override any GCC internal prototype to avoid an error.
13205    Use char because int might match the return type of a GCC
13206    builtin and then its argument prototype would still apply.  */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char res_search ();
13211 int
13212 main ()
13213 {
13214 return res_search ();
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 for ac_lib in '' resolv; do
13220   if test -z "$ac_lib"; then
13221     ac_res="none required"
13222   else
13223     ac_res=-l$ac_lib
13224     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13225   fi
13226   if ac_fn_c_try_link "$LINENO"; then :
13227   ac_cv_search_res_search=$ac_res
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext \
13230     conftest$ac_exeext
13231   if ${ac_cv_search_res_search+:} false; then :
13232   break
13233 fi
13234 done
13235 if ${ac_cv_search_res_search+:} false; then :
13236
13237 else
13238   ac_cv_search_res_search=no
13239 fi
13240 rm conftest.$ac_ext
13241 LIBS=$ac_func_search_save_LIBS
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
13244 $as_echo "$ac_cv_search_res_search" >&6; }
13245 ac_res=$ac_cv_search_res_search
13246 if test "$ac_res" != no; then :
13247   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13248
13249 else
13250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
13251 $as_echo_n "checking for library containing __res_search... " >&6; }
13252 if ${ac_cv_search___res_search+:} false; then :
13253   $as_echo_n "(cached) " >&6
13254 else
13255   ac_func_search_save_LIBS=$LIBS
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h.  */
13258
13259 /* Override any GCC internal prototype to avoid an error.
13260    Use char because int might match the return type of a GCC
13261    builtin and then its argument prototype would still apply.  */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char __res_search ();
13266 int
13267 main ()
13268 {
13269 return __res_search ();
13270   ;
13271   return 0;
13272 }
13273 _ACEOF
13274 for ac_lib in '' resolv; do
13275   if test -z "$ac_lib"; then
13276     ac_res="none required"
13277   else
13278     ac_res=-l$ac_lib
13279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13280   fi
13281   if ac_fn_c_try_link "$LINENO"; then :
13282   ac_cv_search___res_search=$ac_res
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext \
13285     conftest$ac_exeext
13286   if ${ac_cv_search___res_search+:} false; then :
13287   break
13288 fi
13289 done
13290 if ${ac_cv_search___res_search+:} false; then :
13291
13292 else
13293   ac_cv_search___res_search=no
13294 fi
13295 rm conftest.$ac_ext
13296 LIBS=$ac_func_search_save_LIBS
13297 fi
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
13299 $as_echo "$ac_cv_search___res_search" >&6; }
13300 ac_res=$ac_cv_search___res_search
13301 if test "$ac_res" != no; then :
13302   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13303
13304 fi
13305
13306 fi
13307
13308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13309 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13310 if ${ac_cv_search_gethostbyname+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   ac_func_search_save_LIBS=$LIBS
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316
13317 /* Override any GCC internal prototype to avoid an error.
13318    Use char because int might match the return type of a GCC
13319    builtin and then its argument prototype would still apply.  */
13320 #ifdef __cplusplus
13321 extern "C"
13322 #endif
13323 char gethostbyname ();
13324 int
13325 main ()
13326 {
13327 return gethostbyname ();
13328   ;
13329   return 0;
13330 }
13331 _ACEOF
13332 for ac_lib in '' nsl; do
13333   if test -z "$ac_lib"; then
13334     ac_res="none required"
13335   else
13336     ac_res=-l$ac_lib
13337     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13338   fi
13339   if ac_fn_c_try_link "$LINENO"; then :
13340   ac_cv_search_gethostbyname=$ac_res
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343     conftest$ac_exeext
13344   if ${ac_cv_search_gethostbyname+:} false; then :
13345   break
13346 fi
13347 done
13348 if ${ac_cv_search_gethostbyname+:} false; then :
13349
13350 else
13351   ac_cv_search_gethostbyname=no
13352 fi
13353 rm conftest.$ac_ext
13354 LIBS=$ac_func_search_save_LIBS
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13357 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13358 ac_res=$ac_cv_search_gethostbyname
13359 if test "$ac_res" != no; then :
13360   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361
13362 fi
13363
13364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13365 $as_echo_n "checking for library containing socket... " >&6; }
13366 if ${ac_cv_search_socket+:} false; then :
13367   $as_echo_n "(cached) " >&6
13368 else
13369   ac_func_search_save_LIBS=$LIBS
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h.  */
13372
13373 /* Override any GCC internal prototype to avoid an error.
13374    Use char because int might match the return type of a GCC
13375    builtin and then its argument prototype would still apply.  */
13376 #ifdef __cplusplus
13377 extern "C"
13378 #endif
13379 char socket ();
13380 int
13381 main ()
13382 {
13383 return socket ();
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 for ac_lib in '' socket; do
13389   if test -z "$ac_lib"; then
13390     ac_res="none required"
13391   else
13392     ac_res=-l$ac_lib
13393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13394   fi
13395   if ac_fn_c_try_link "$LINENO"; then :
13396   ac_cv_search_socket=$ac_res
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext \
13399     conftest$ac_exeext
13400   if ${ac_cv_search_socket+:} false; then :
13401   break
13402 fi
13403 done
13404 if ${ac_cv_search_socket+:} false; then :
13405
13406 else
13407   ac_cv_search_socket=no
13408 fi
13409 rm conftest.$ac_ext
13410 LIBS=$ac_func_search_save_LIBS
13411 fi
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13413 $as_echo "$ac_cv_search_socket" >&6; }
13414 ac_res=$ac_cv_search_socket
13415 if test "$ac_res" != no; then :
13416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13417
13418 else
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
13420 $as_echo_n "checking for socket in -lnsl... " >&6; }
13421 if ${ac_cv_lib_nsl_socket+:} false; then :
13422   $as_echo_n "(cached) " >&6
13423 else
13424   ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lnsl -lsocket $LIBS"
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h.  */
13428
13429 /* Override any GCC internal prototype to avoid an error.
13430    Use char because int might match the return type of a GCC
13431    builtin and then its argument prototype would still apply.  */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 char socket ();
13436 int
13437 main ()
13438 {
13439 return socket ();
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_link "$LINENO"; then :
13445   ac_cv_lib_nsl_socket=yes
13446 else
13447   ac_cv_lib_nsl_socket=no
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext \
13450     conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
13454 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
13455 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
13456   LIBS="-lnsl -lsocket $LIBS"
13457 fi
13458
13459 fi
13460
13461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13462 $as_echo_n "checking for library containing crypt... " >&6; }
13463 if ${ac_cv_search_crypt+:} false; then :
13464   $as_echo_n "(cached) " >&6
13465 else
13466   ac_func_search_save_LIBS=$LIBS
13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h.  */
13469
13470 /* Override any GCC internal prototype to avoid an error.
13471    Use char because int might match the return type of a GCC
13472    builtin and then its argument prototype would still apply.  */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 char crypt ();
13477 int
13478 main ()
13479 {
13480 return crypt ();
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 for ac_lib in '' crypt; do
13486   if test -z "$ac_lib"; then
13487     ac_res="none required"
13488   else
13489     ac_res=-l$ac_lib
13490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13491   fi
13492   if ac_fn_c_try_link "$LINENO"; then :
13493   ac_cv_search_crypt=$ac_res
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext \
13496     conftest$ac_exeext
13497   if ${ac_cv_search_crypt+:} false; then :
13498   break
13499 fi
13500 done
13501 if ${ac_cv_search_crypt+:} false; then :
13502
13503 else
13504   ac_cv_search_crypt=no
13505 fi
13506 rm conftest.$ac_ext
13507 LIBS=$ac_func_search_save_LIBS
13508 fi
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13510 $as_echo "$ac_cv_search_crypt" >&6; }
13511 ac_res=$ac_cv_search_crypt
13512 if test "$ac_res" != no; then :
13513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13514
13515 fi
13516
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
13518 $as_echo_n "checking for library containing roken_concat... " >&6; }
13519 if ${ac_cv_search_roken_concat+:} false; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   ac_func_search_save_LIBS=$LIBS
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h.  */
13525
13526 /* Override any GCC internal prototype to avoid an error.
13527    Use char because int might match the return type of a GCC
13528    builtin and then its argument prototype would still apply.  */
13529 #ifdef __cplusplus
13530 extern "C"
13531 #endif
13532 char roken_concat ();
13533 int
13534 main ()
13535 {
13536 return roken_concat ();
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 for ac_lib in '' roken; do
13542   if test -z "$ac_lib"; then
13543     ac_res="none required"
13544   else
13545     ac_res=-l$ac_lib
13546     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13547   fi
13548   if ac_fn_c_try_link "$LINENO"; then :
13549   ac_cv_search_roken_concat=$ac_res
13550 fi
13551 rm -f core conftest.err conftest.$ac_objext \
13552     conftest$ac_exeext
13553   if ${ac_cv_search_roken_concat+:} false; then :
13554   break
13555 fi
13556 done
13557 if ${ac_cv_search_roken_concat+:} false; then :
13558
13559 else
13560   ac_cv_search_roken_concat=no
13561 fi
13562 rm conftest.$ac_ext
13563 LIBS=$ac_func_search_save_LIBS
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
13566 $as_echo "$ac_cv_search_roken_concat" >&6; }
13567 ac_res=$ac_cv_search_roken_concat
13568 if test "$ac_res" != no; then :
13569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13570
13571 fi
13572
13573  rra_krb5_extra="$LIBS"
13574  LIBS="$rra_krb5_save_LIBS"
13575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13576 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13577 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13578   $as_echo_n "(cached) " >&6
13579 else
13580   ac_check_lib_save_LIBS=$LIBS
13581 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h.  */
13584
13585 /* Override any GCC internal prototype to avoid an error.
13586    Use char because int might match the return type of a GCC
13587    builtin and then its argument prototype would still apply.  */
13588 #ifdef __cplusplus
13589 extern "C"
13590 #endif
13591 char krb5_init_context ();
13592 int
13593 main ()
13594 {
13595 return krb5_init_context ();
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601   ac_cv_lib_krb5_krb5_init_context=yes
13602 else
13603   ac_cv_lib_krb5_krb5_init_context=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext \
13606     conftest$ac_exeext conftest.$ac_ext
13607 LIBS=$ac_check_lib_save_LIBS
13608 fi
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13610 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13611 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13612   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
13613 else
13614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
13615 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
13616 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
13617   $as_echo_n "(cached) " >&6
13618 else
13619   ac_check_lib_save_LIBS=$LIBS
13620 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h.  */
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625    Use char because int might match the return type of a GCC
13626    builtin and then its argument prototype would still apply.  */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char krb5int_getspecific ();
13631 int
13632 main ()
13633 {
13634 return krb5int_getspecific ();
13635   ;
13636   return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"; then :
13640   ac_cv_lib_krb5support_krb5int_getspecific=yes
13641 else
13642   ac_cv_lib_krb5support_krb5int_getspecific=no
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext \
13645     conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13647 fi
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
13649 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
13650 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
13651   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
13652 else
13653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
13654 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
13655 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
13656   $as_echo_n "(cached) " >&6
13657 else
13658   ac_check_lib_save_LIBS=$LIBS
13659 LIBS="-lpthreads  $LIBS"
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h.  */
13662
13663 /* Override any GCC internal prototype to avoid an error.
13664    Use char because int might match the return type of a GCC
13665    builtin and then its argument prototype would still apply.  */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char pthread_setspecific ();
13670 int
13671 main ()
13672 {
13673 return pthread_setspecific ();
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679   ac_cv_lib_pthreads_pthread_setspecific=yes
13680 else
13681   ac_cv_lib_pthreads_pthread_setspecific=no
13682 fi
13683 rm -f core conftest.err conftest.$ac_objext \
13684     conftest$ac_exeext conftest.$ac_ext
13685 LIBS=$ac_check_lib_save_LIBS
13686 fi
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
13688 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
13689 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
13690   rra_krb5_pthread="-lpthreads"
13691 else
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
13693 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
13694 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
13695   $as_echo_n "(cached) " >&6
13696 else
13697   ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-lpthread  $LIBS"
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h.  */
13701
13702 /* Override any GCC internal prototype to avoid an error.
13703    Use char because int might match the return type of a GCC
13704    builtin and then its argument prototype would still apply.  */
13705 #ifdef __cplusplus
13706 extern "C"
13707 #endif
13708 char pthread_setspecific ();
13709 int
13710 main ()
13711 {
13712 return pthread_setspecific ();
13713   ;
13714   return 0;
13715 }
13716 _ACEOF
13717 if ac_fn_c_try_link "$LINENO"; then :
13718   ac_cv_lib_pthread_pthread_setspecific=yes
13719 else
13720   ac_cv_lib_pthread_pthread_setspecific=no
13721 fi
13722 rm -f core conftest.err conftest.$ac_objext \
13723     conftest$ac_exeext conftest.$ac_ext
13724 LIBS=$ac_check_lib_save_LIBS
13725 fi
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
13727 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
13728 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
13729   rra_krb5_pthread="-lpthread"
13730 fi
13731
13732 fi
13733
13734          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
13735 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
13736 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
13737   $as_echo_n "(cached) " >&6
13738 else
13739   ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h.  */
13743
13744 /* Override any GCC internal prototype to avoid an error.
13745    Use char because int might match the return type of a GCC
13746    builtin and then its argument prototype would still apply.  */
13747 #ifdef __cplusplus
13748 extern "C"
13749 #endif
13750 char krb5int_setspecific ();
13751 int
13752 main ()
13753 {
13754 return krb5int_setspecific ();
13755   ;
13756   return 0;
13757 }
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760   ac_cv_lib_krb5support_krb5int_setspecific=yes
13761 else
13762   ac_cv_lib_krb5support_krb5int_setspecific=no
13763 fi
13764 rm -f core conftest.err conftest.$ac_objext \
13765     conftest$ac_exeext conftest.$ac_ext
13766 LIBS=$ac_check_lib_save_LIBS
13767 fi
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
13769 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
13770 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
13771   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
13772 fi
13773
13774 fi
13775
13776      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
13777 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
13778 if ${ac_cv_lib_com_err_error_message+:} false; then :
13779   $as_echo_n "(cached) " >&6
13780 else
13781   ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-lcom_err $rra_krb5_extra $LIBS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785
13786 /* Override any GCC internal prototype to avoid an error.
13787    Use char because int might match the return type of a GCC
13788    builtin and then its argument prototype would still apply.  */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 char error_message ();
13793 int
13794 main ()
13795 {
13796 return error_message ();
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 if ac_fn_c_try_link "$LINENO"; then :
13802   ac_cv_lib_com_err_error_message=yes
13803 else
13804   ac_cv_lib_com_err_error_message=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext \
13807     conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13809 fi
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
13811 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
13812 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
13813   rra_krb5_extra="-lcom_err $rra_krb5_extra"
13814 fi
13815
13816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
13817 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
13818 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
13819   $as_echo_n "(cached) " >&6
13820 else
13821   ac_check_lib_save_LIBS=$LIBS
13822 LIBS="-lksvc $rra_krb5_extra $LIBS"
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h.  */
13825
13826 /* Override any GCC internal prototype to avoid an error.
13827    Use char because int might match the return type of a GCC
13828    builtin and then its argument prototype would still apply.  */
13829 #ifdef __cplusplus
13830 extern "C"
13831 #endif
13832 char krb5_svc_get_msg ();
13833 int
13834 main ()
13835 {
13836 return krb5_svc_get_msg ();
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 if ac_fn_c_try_link "$LINENO"; then :
13842   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
13843 else
13844   ac_cv_lib_ksvc_krb5_svc_get_msg=no
13845 fi
13846 rm -f core conftest.err conftest.$ac_objext \
13847     conftest$ac_exeext conftest.$ac_ext
13848 LIBS=$ac_check_lib_save_LIBS
13849 fi
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
13851 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
13852 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
13853   rra_krb5_extra="-lksvc $rra_krb5_extra"
13854 fi
13855
13856      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
13857 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
13858 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861   ac_check_lib_save_LIBS=$LIBS
13862 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h.  */
13865
13866 /* Override any GCC internal prototype to avoid an error.
13867    Use char because int might match the return type of a GCC
13868    builtin and then its argument prototype would still apply.  */
13869 #ifdef __cplusplus
13870 extern "C"
13871 #endif
13872 char krb5int_hash_md5 ();
13873 int
13874 main ()
13875 {
13876 return krb5int_hash_md5 ();
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
13881 if ac_fn_c_try_link "$LINENO"; then :
13882   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
13883 else
13884   ac_cv_lib_k5crypto_krb5int_hash_md5=no
13885 fi
13886 rm -f core conftest.err conftest.$ac_objext \
13887     conftest$ac_exeext conftest.$ac_ext
13888 LIBS=$ac_check_lib_save_LIBS
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
13891 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
13892 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
13893   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
13894 fi
13895
13896      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
13897 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
13898 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
13899   $as_echo_n "(cached) " >&6
13900 else
13901   ac_check_lib_save_LIBS=$LIBS
13902 LIBS="-lk5profile $rra_krb5_extra $LIBS"
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h.  */
13905
13906 /* Override any GCC internal prototype to avoid an error.
13907    Use char because int might match the return type of a GCC
13908    builtin and then its argument prototype would still apply.  */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 char profile_get_values ();
13913 int
13914 main ()
13915 {
13916 return profile_get_values ();
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 if ac_fn_c_try_link "$LINENO"; then :
13922   ac_cv_lib_k5profile_profile_get_values=yes
13923 else
13924   ac_cv_lib_k5profile_profile_get_values=no
13925 fi
13926 rm -f core conftest.err conftest.$ac_objext \
13927     conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13929 fi
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
13931 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
13932 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
13933   rra_krb5_extra="-lk5profile $rra_krb5_extra"
13934 fi
13935
13936      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
13937 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
13938 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
13939   $as_echo_n "(cached) " >&6
13940 else
13941   ac_check_lib_save_LIBS=$LIBS
13942 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h.  */
13945
13946 /* Override any GCC internal prototype to avoid an error.
13947    Use char because int might match the return type of a GCC
13948    builtin and then its argument prototype would still apply.  */
13949 #ifdef __cplusplus
13950 extern "C"
13951 #endif
13952 char krb5_cc_default ();
13953 int
13954 main ()
13955 {
13956 return krb5_cc_default ();
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_link "$LINENO"; then :
13962   ac_cv_lib_krb5_krb5_cc_default=yes
13963 else
13964   ac_cv_lib_krb5_krb5_cc_default=no
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext \
13967     conftest$ac_exeext conftest.$ac_ext
13968 LIBS=$ac_check_lib_save_LIBS
13969 fi
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
13971 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
13972 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
13973   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
13974 else
13975   if test x"true" = xtrue; then :
13976   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
13977 fi
13978 fi
13979
13980 fi
13981
13982  LIBS="$KRB5_LIBS $LIBS"
13983  if test x"$rra_krb5_incroot" = x; then :
13984   for ac_header in krb5.h krb5/krb5.h
13985 do :
13986   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13988 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13989   cat >>confdefs.h <<_ACEOF
13990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13991 _ACEOF
13992
13993 fi
13994
13995 done
13996
13997 else
13998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
13999 $as_echo_n "checking for krb5.h... " >&6; }
14000  if test -f "${rra_krb5_incroot}/krb5.h"; then :
14001
14002 cat >>confdefs.h <<_ACEOF
14003 #define HAVE_KRB5_H 1
14004 _ACEOF
14005
14006      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008 else
14009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 $as_echo "no" >&6; }
14011 fi
14012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14013 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14014  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14015
14016 cat >>confdefs.h <<_ACEOF
14017 #define HAVE_KRB5_KRB5_H 1
14018 _ACEOF
14019
14020      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14021 $as_echo "yes" >&6; }
14022 else
14023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14025 fi
14026 fi
14027  for ac_func in krb5_get_error_message
14028 do :
14029   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14030 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14031   cat >>confdefs.h <<_ACEOF
14032 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14033 _ACEOF
14034  for ac_func in krb5_free_error_message
14035 do :
14036   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14037 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14038   cat >>confdefs.h <<_ACEOF
14039 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14040 _ACEOF
14041
14042 fi
14043 done
14044
14045 else
14046   for ac_func in krb5_get_error_string
14047 do :
14048   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14049 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14050   cat >>confdefs.h <<_ACEOF
14051 #define HAVE_KRB5_GET_ERROR_STRING 1
14052 _ACEOF
14053
14054 else
14055   for ac_func in krb5_get_err_txt
14056 do :
14057   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14058 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14059   cat >>confdefs.h <<_ACEOF
14060 #define HAVE_KRB5_GET_ERR_TXT 1
14061 _ACEOF
14062
14063 else
14064   for ac_func in krb5_svc_get_msg
14065 do :
14066   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14067 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14068   cat >>confdefs.h <<_ACEOF
14069 #define HAVE_KRB5_SVC_GET_MSG 1
14070 _ACEOF
14071  for ac_header in ibm_svc/krb5_svc.h
14072 do :
14073   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14074 #if HAVE_KRB5_H
14075 # include <krb5.h>
14076 #else
14077 # include <krb5/krb5.h>
14078 #endif
14079
14080 "
14081 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14082   cat >>confdefs.h <<_ACEOF
14083 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14084 _ACEOF
14085
14086 fi
14087
14088 done
14089
14090 else
14091   for ac_header in et/com_err.h
14092 do :
14093   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
14094 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
14095   cat >>confdefs.h <<_ACEOF
14096 #define HAVE_ET_COM_ERR_H 1
14097 _ACEOF
14098
14099 fi
14100
14101 done
14102
14103 fi
14104 done
14105
14106 fi
14107 done
14108
14109 fi
14110 done
14111
14112 fi
14113 done
14114
14115  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14116  LDFLAGS="$rra_krb5_save_LDFLAGS"
14117  LIBS="$rra_krb5_save_LIBS"
14118 fi
14119
14120      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14121  rra_krb5_save_LDFLAGS="$LDFLAGS"
14122  rra_krb5_save_LIBS="$LIBS"
14123  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14124  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14125  LIBS="$KRB5_LIBS $LIBS"
14126      if test x"$rra_krb5_incroot" = x; then :
14127   for ac_header in krb5.h krb5/krb5.h
14128 do :
14129   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14130 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14132   cat >>confdefs.h <<_ACEOF
14133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14134 _ACEOF
14135
14136 fi
14137
14138 done
14139
14140 else
14141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14142 $as_echo_n "checking for krb5.h... " >&6; }
14143  if test -f "${rra_krb5_incroot}/krb5.h"; then :
14144
14145 cat >>confdefs.h <<_ACEOF
14146 #define HAVE_KRB5_H 1
14147 _ACEOF
14148
14149      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14150 $as_echo "yes" >&6; }
14151 else
14152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 $as_echo "no" >&6; }
14154 fi
14155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14156 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14157  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14158
14159 cat >>confdefs.h <<_ACEOF
14160 #define HAVE_KRB5_KRB5_H 1
14161 _ACEOF
14162
14163      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14164 $as_echo "yes" >&6; }
14165 else
14166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14168 fi
14169 fi
14170      for ac_func in krb5_get_error_message
14171 do :
14172   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14173 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14174   cat >>confdefs.h <<_ACEOF
14175 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14176 _ACEOF
14177  for ac_func in krb5_free_error_message
14178 do :
14179   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14180 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14181   cat >>confdefs.h <<_ACEOF
14182 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14183 _ACEOF
14184
14185 fi
14186 done
14187
14188 else
14189   for ac_func in krb5_get_error_string
14190 do :
14191   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14192 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14193   cat >>confdefs.h <<_ACEOF
14194 #define HAVE_KRB5_GET_ERROR_STRING 1
14195 _ACEOF
14196
14197 else
14198   for ac_func in krb5_get_err_txt
14199 do :
14200   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14201 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14202   cat >>confdefs.h <<_ACEOF
14203 #define HAVE_KRB5_GET_ERR_TXT 1
14204 _ACEOF
14205
14206 else
14207   for ac_func in krb5_svc_get_msg
14208 do :
14209   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14210 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14211   cat >>confdefs.h <<_ACEOF
14212 #define HAVE_KRB5_SVC_GET_MSG 1
14213 _ACEOF
14214  for ac_header in ibm_svc/krb5_svc.h
14215 do :
14216   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14217 #if HAVE_KRB5_H
14218 # include <krb5.h>
14219 #else
14220 # include <krb5/krb5.h>
14221 #endif
14222
14223 "
14224 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14225   cat >>confdefs.h <<_ACEOF
14226 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14227 _ACEOF
14228
14229 fi
14230
14231 done
14232
14233 else
14234   for ac_header in et/com_err.h
14235 do :
14236   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
14237 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
14238   cat >>confdefs.h <<_ACEOF
14239 #define HAVE_ET_COM_ERR_H 1
14240 _ACEOF
14241
14242 fi
14243
14244 done
14245
14246 fi
14247 done
14248
14249 fi
14250 done
14251
14252 fi
14253 done
14254
14255 fi
14256 done
14257
14258      CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14259  LDFLAGS="$rra_krb5_save_LDFLAGS"
14260  LIBS="$rra_krb5_save_LIBS"
14261 else
14262   if test x"$rra_krb5_libdir" != x; then :
14263   KRB5_LDFLAGS="-L$rra_krb5_libdir"
14264 else
14265   if test x"$rra_krb5_root" != x; then :
14266
14267  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
14268   if test x"" = x; then :
14269   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
14270 else
14271   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
14272 fi
14273 else
14274   if test x"" = x; then :
14275   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
14276 else
14277   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
14278 fi
14279 fi
14280  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
14281 fi
14282 fi
14283  if test x"$rra_krb5_includedir" != x; then :
14284   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
14285 else
14286   if test x"$rra_krb5_root" != x; then :
14287   if test x"$rra_krb5_root" != x/usr; then :
14288   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
14289 fi
14290 fi
14291 fi
14292      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14293  rra_krb5_save_LDFLAGS="$LDFLAGS"
14294  rra_krb5_save_LIBS="$LIBS"
14295  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14296  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14297  LIBS="$KRB5_LIBS $LIBS"
14298  rra_krb5_extra=
14299  LIBS=
14300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
14301 $as_echo_n "checking for library containing res_search... " >&6; }
14302 if ${ac_cv_search_res_search+:} false; then :
14303   $as_echo_n "(cached) " >&6
14304 else
14305   ac_func_search_save_LIBS=$LIBS
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h.  */
14308
14309 /* Override any GCC internal prototype to avoid an error.
14310    Use char because int might match the return type of a GCC
14311    builtin and then its argument prototype would still apply.  */
14312 #ifdef __cplusplus
14313 extern "C"
14314 #endif
14315 char res_search ();
14316 int
14317 main ()
14318 {
14319 return res_search ();
14320   ;
14321   return 0;
14322 }
14323 _ACEOF
14324 for ac_lib in '' resolv; do
14325   if test -z "$ac_lib"; then
14326     ac_res="none required"
14327   else
14328     ac_res=-l$ac_lib
14329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14330   fi
14331   if ac_fn_c_try_link "$LINENO"; then :
14332   ac_cv_search_res_search=$ac_res
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext \
14335     conftest$ac_exeext
14336   if ${ac_cv_search_res_search+:} false; then :
14337   break
14338 fi
14339 done
14340 if ${ac_cv_search_res_search+:} false; then :
14341
14342 else
14343   ac_cv_search_res_search=no
14344 fi
14345 rm conftest.$ac_ext
14346 LIBS=$ac_func_search_save_LIBS
14347 fi
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
14349 $as_echo "$ac_cv_search_res_search" >&6; }
14350 ac_res=$ac_cv_search_res_search
14351 if test "$ac_res" != no; then :
14352   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14353
14354 else
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
14356 $as_echo_n "checking for library containing __res_search... " >&6; }
14357 if ${ac_cv_search___res_search+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   ac_func_search_save_LIBS=$LIBS
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h.  */
14363
14364 /* Override any GCC internal prototype to avoid an error.
14365    Use char because int might match the return type of a GCC
14366    builtin and then its argument prototype would still apply.  */
14367 #ifdef __cplusplus
14368 extern "C"
14369 #endif
14370 char __res_search ();
14371 int
14372 main ()
14373 {
14374 return __res_search ();
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 for ac_lib in '' resolv; do
14380   if test -z "$ac_lib"; then
14381     ac_res="none required"
14382   else
14383     ac_res=-l$ac_lib
14384     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14385   fi
14386   if ac_fn_c_try_link "$LINENO"; then :
14387   ac_cv_search___res_search=$ac_res
14388 fi
14389 rm -f core conftest.err conftest.$ac_objext \
14390     conftest$ac_exeext
14391   if ${ac_cv_search___res_search+:} false; then :
14392   break
14393 fi
14394 done
14395 if ${ac_cv_search___res_search+:} false; then :
14396
14397 else
14398   ac_cv_search___res_search=no
14399 fi
14400 rm conftest.$ac_ext
14401 LIBS=$ac_func_search_save_LIBS
14402 fi
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
14404 $as_echo "$ac_cv_search___res_search" >&6; }
14405 ac_res=$ac_cv_search___res_search
14406 if test "$ac_res" != no; then :
14407   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14408
14409 fi
14410
14411 fi
14412
14413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14414 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14415 if ${ac_cv_search_gethostbyname+:} false; then :
14416   $as_echo_n "(cached) " >&6
14417 else
14418   ac_func_search_save_LIBS=$LIBS
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h.  */
14421
14422 /* Override any GCC internal prototype to avoid an error.
14423    Use char because int might match the return type of a GCC
14424    builtin and then its argument prototype would still apply.  */
14425 #ifdef __cplusplus
14426 extern "C"
14427 #endif
14428 char gethostbyname ();
14429 int
14430 main ()
14431 {
14432 return gethostbyname ();
14433   ;
14434   return 0;
14435 }
14436 _ACEOF
14437 for ac_lib in '' nsl; do
14438   if test -z "$ac_lib"; then
14439     ac_res="none required"
14440   else
14441     ac_res=-l$ac_lib
14442     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14443   fi
14444   if ac_fn_c_try_link "$LINENO"; then :
14445   ac_cv_search_gethostbyname=$ac_res
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext \
14448     conftest$ac_exeext
14449   if ${ac_cv_search_gethostbyname+:} false; then :
14450   break
14451 fi
14452 done
14453 if ${ac_cv_search_gethostbyname+:} false; then :
14454
14455 else
14456   ac_cv_search_gethostbyname=no
14457 fi
14458 rm conftest.$ac_ext
14459 LIBS=$ac_func_search_save_LIBS
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14462 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14463 ac_res=$ac_cv_search_gethostbyname
14464 if test "$ac_res" != no; then :
14465   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466
14467 fi
14468
14469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14470 $as_echo_n "checking for library containing socket... " >&6; }
14471 if ${ac_cv_search_socket+:} false; then :
14472   $as_echo_n "(cached) " >&6
14473 else
14474   ac_func_search_save_LIBS=$LIBS
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h.  */
14477
14478 /* Override any GCC internal prototype to avoid an error.
14479    Use char because int might match the return type of a GCC
14480    builtin and then its argument prototype would still apply.  */
14481 #ifdef __cplusplus
14482 extern "C"
14483 #endif
14484 char socket ();
14485 int
14486 main ()
14487 {
14488 return socket ();
14489   ;
14490   return 0;
14491 }
14492 _ACEOF
14493 for ac_lib in '' socket; do
14494   if test -z "$ac_lib"; then
14495     ac_res="none required"
14496   else
14497     ac_res=-l$ac_lib
14498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14499   fi
14500   if ac_fn_c_try_link "$LINENO"; then :
14501   ac_cv_search_socket=$ac_res
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext \
14504     conftest$ac_exeext
14505   if ${ac_cv_search_socket+:} false; then :
14506   break
14507 fi
14508 done
14509 if ${ac_cv_search_socket+:} false; then :
14510
14511 else
14512   ac_cv_search_socket=no
14513 fi
14514 rm conftest.$ac_ext
14515 LIBS=$ac_func_search_save_LIBS
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14518 $as_echo "$ac_cv_search_socket" >&6; }
14519 ac_res=$ac_cv_search_socket
14520 if test "$ac_res" != no; then :
14521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14522
14523 else
14524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
14525 $as_echo_n "checking for socket in -lnsl... " >&6; }
14526 if ${ac_cv_lib_nsl_socket+:} false; then :
14527   $as_echo_n "(cached) " >&6
14528 else
14529   ac_check_lib_save_LIBS=$LIBS
14530 LIBS="-lnsl -lsocket $LIBS"
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h.  */
14533
14534 /* Override any GCC internal prototype to avoid an error.
14535    Use char because int might match the return type of a GCC
14536    builtin and then its argument prototype would still apply.  */
14537 #ifdef __cplusplus
14538 extern "C"
14539 #endif
14540 char socket ();
14541 int
14542 main ()
14543 {
14544 return socket ();
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_c_try_link "$LINENO"; then :
14550   ac_cv_lib_nsl_socket=yes
14551 else
14552   ac_cv_lib_nsl_socket=no
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext \
14555     conftest$ac_exeext conftest.$ac_ext
14556 LIBS=$ac_check_lib_save_LIBS
14557 fi
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
14559 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
14560 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
14561   LIBS="-lnsl -lsocket $LIBS"
14562 fi
14563
14564 fi
14565
14566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14567 $as_echo_n "checking for library containing crypt... " >&6; }
14568 if ${ac_cv_search_crypt+:} false; then :
14569   $as_echo_n "(cached) " >&6
14570 else
14571   ac_func_search_save_LIBS=$LIBS
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h.  */
14574
14575 /* Override any GCC internal prototype to avoid an error.
14576    Use char because int might match the return type of a GCC
14577    builtin and then its argument prototype would still apply.  */
14578 #ifdef __cplusplus
14579 extern "C"
14580 #endif
14581 char crypt ();
14582 int
14583 main ()
14584 {
14585 return crypt ();
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 for ac_lib in '' crypt; do
14591   if test -z "$ac_lib"; then
14592     ac_res="none required"
14593   else
14594     ac_res=-l$ac_lib
14595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14596   fi
14597   if ac_fn_c_try_link "$LINENO"; then :
14598   ac_cv_search_crypt=$ac_res
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext \
14601     conftest$ac_exeext
14602   if ${ac_cv_search_crypt+:} false; then :
14603   break
14604 fi
14605 done
14606 if ${ac_cv_search_crypt+:} false; then :
14607
14608 else
14609   ac_cv_search_crypt=no
14610 fi
14611 rm conftest.$ac_ext
14612 LIBS=$ac_func_search_save_LIBS
14613 fi
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14615 $as_echo "$ac_cv_search_crypt" >&6; }
14616 ac_res=$ac_cv_search_crypt
14617 if test "$ac_res" != no; then :
14618   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14619
14620 fi
14621
14622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
14623 $as_echo_n "checking for library containing roken_concat... " >&6; }
14624 if ${ac_cv_search_roken_concat+:} false; then :
14625   $as_echo_n "(cached) " >&6
14626 else
14627   ac_func_search_save_LIBS=$LIBS
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h.  */
14630
14631 /* Override any GCC internal prototype to avoid an error.
14632    Use char because int might match the return type of a GCC
14633    builtin and then its argument prototype would still apply.  */
14634 #ifdef __cplusplus
14635 extern "C"
14636 #endif
14637 char roken_concat ();
14638 int
14639 main ()
14640 {
14641 return roken_concat ();
14642   ;
14643   return 0;
14644 }
14645 _ACEOF
14646 for ac_lib in '' roken; do
14647   if test -z "$ac_lib"; then
14648     ac_res="none required"
14649   else
14650     ac_res=-l$ac_lib
14651     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14652   fi
14653   if ac_fn_c_try_link "$LINENO"; then :
14654   ac_cv_search_roken_concat=$ac_res
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext \
14657     conftest$ac_exeext
14658   if ${ac_cv_search_roken_concat+:} false; then :
14659   break
14660 fi
14661 done
14662 if ${ac_cv_search_roken_concat+:} false; then :
14663
14664 else
14665   ac_cv_search_roken_concat=no
14666 fi
14667 rm conftest.$ac_ext
14668 LIBS=$ac_func_search_save_LIBS
14669 fi
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
14671 $as_echo "$ac_cv_search_roken_concat" >&6; }
14672 ac_res=$ac_cv_search_roken_concat
14673 if test "$ac_res" != no; then :
14674   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14675
14676 fi
14677
14678  rra_krb5_extra="$LIBS"
14679  LIBS="$rra_krb5_save_LIBS"
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14681 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14682 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14683   $as_echo_n "(cached) " >&6
14684 else
14685   ac_check_lib_save_LIBS=$LIBS
14686 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h.  */
14689
14690 /* Override any GCC internal prototype to avoid an error.
14691    Use char because int might match the return type of a GCC
14692    builtin and then its argument prototype would still apply.  */
14693 #ifdef __cplusplus
14694 extern "C"
14695 #endif
14696 char krb5_init_context ();
14697 int
14698 main ()
14699 {
14700 return krb5_init_context ();
14701   ;
14702   return 0;
14703 }
14704 _ACEOF
14705 if ac_fn_c_try_link "$LINENO"; then :
14706   ac_cv_lib_krb5_krb5_init_context=yes
14707 else
14708   ac_cv_lib_krb5_krb5_init_context=no
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext \
14711     conftest$ac_exeext conftest.$ac_ext
14712 LIBS=$ac_check_lib_save_LIBS
14713 fi
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14715 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14716 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14717   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
14718 else
14719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14720 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14721 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14722   $as_echo_n "(cached) " >&6
14723 else
14724   ac_check_lib_save_LIBS=$LIBS
14725 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h.  */
14728
14729 /* Override any GCC internal prototype to avoid an error.
14730    Use char because int might match the return type of a GCC
14731    builtin and then its argument prototype would still apply.  */
14732 #ifdef __cplusplus
14733 extern "C"
14734 #endif
14735 char krb5int_getspecific ();
14736 int
14737 main ()
14738 {
14739 return krb5int_getspecific ();
14740   ;
14741   return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_link "$LINENO"; then :
14745   ac_cv_lib_krb5support_krb5int_getspecific=yes
14746 else
14747   ac_cv_lib_krb5support_krb5int_getspecific=no
14748 fi
14749 rm -f core conftest.err conftest.$ac_objext \
14750     conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14752 fi
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14754 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14755 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14756   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
14757 else
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
14759 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
14760 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
14761   $as_echo_n "(cached) " >&6
14762 else
14763   ac_check_lib_save_LIBS=$LIBS
14764 LIBS="-lpthreads  $LIBS"
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h.  */
14767
14768 /* Override any GCC internal prototype to avoid an error.
14769    Use char because int might match the return type of a GCC
14770    builtin and then its argument prototype would still apply.  */
14771 #ifdef __cplusplus
14772 extern "C"
14773 #endif
14774 char pthread_setspecific ();
14775 int
14776 main ()
14777 {
14778 return pthread_setspecific ();
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 if ac_fn_c_try_link "$LINENO"; then :
14784   ac_cv_lib_pthreads_pthread_setspecific=yes
14785 else
14786   ac_cv_lib_pthreads_pthread_setspecific=no
14787 fi
14788 rm -f core conftest.err conftest.$ac_objext \
14789     conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_check_lib_save_LIBS
14791 fi
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
14793 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
14794 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
14795   rra_krb5_pthread="-lpthreads"
14796 else
14797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
14798 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
14799 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
14800   $as_echo_n "(cached) " >&6
14801 else
14802   ac_check_lib_save_LIBS=$LIBS
14803 LIBS="-lpthread  $LIBS"
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h.  */
14806
14807 /* Override any GCC internal prototype to avoid an error.
14808    Use char because int might match the return type of a GCC
14809    builtin and then its argument prototype would still apply.  */
14810 #ifdef __cplusplus
14811 extern "C"
14812 #endif
14813 char pthread_setspecific ();
14814 int
14815 main ()
14816 {
14817 return pthread_setspecific ();
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_link "$LINENO"; then :
14823   ac_cv_lib_pthread_pthread_setspecific=yes
14824 else
14825   ac_cv_lib_pthread_pthread_setspecific=no
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext \
14828     conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
14832 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
14833 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
14834   rra_krb5_pthread="-lpthread"
14835 fi
14836
14837 fi
14838
14839          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
14840 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
14841 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
14842   $as_echo_n "(cached) " >&6
14843 else
14844   ac_check_lib_save_LIBS=$LIBS
14845 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h.  */
14848
14849 /* Override any GCC internal prototype to avoid an error.
14850    Use char because int might match the return type of a GCC
14851    builtin and then its argument prototype would still apply.  */
14852 #ifdef __cplusplus
14853 extern "C"
14854 #endif
14855 char krb5int_setspecific ();
14856 int
14857 main ()
14858 {
14859 return krb5int_setspecific ();
14860   ;
14861   return 0;
14862 }
14863 _ACEOF
14864 if ac_fn_c_try_link "$LINENO"; then :
14865   ac_cv_lib_krb5support_krb5int_setspecific=yes
14866 else
14867   ac_cv_lib_krb5support_krb5int_setspecific=no
14868 fi
14869 rm -f core conftest.err conftest.$ac_objext \
14870     conftest$ac_exeext conftest.$ac_ext
14871 LIBS=$ac_check_lib_save_LIBS
14872 fi
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
14874 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
14875 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
14876   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
14877 fi
14878
14879 fi
14880
14881      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
14882 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
14883 if ${ac_cv_lib_com_err_error_message+:} false; then :
14884   $as_echo_n "(cached) " >&6
14885 else
14886   ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-lcom_err $rra_krb5_extra $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h.  */
14890
14891 /* Override any GCC internal prototype to avoid an error.
14892    Use char because int might match the return type of a GCC
14893    builtin and then its argument prototype would still apply.  */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char error_message ();
14898 int
14899 main ()
14900 {
14901 return error_message ();
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907   ac_cv_lib_com_err_error_message=yes
14908 else
14909   ac_cv_lib_com_err_error_message=no
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext \
14912     conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14914 fi
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
14916 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
14917 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
14918   rra_krb5_extra="-lcom_err $rra_krb5_extra"
14919 fi
14920
14921      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
14922 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
14923 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
14924   $as_echo_n "(cached) " >&6
14925 else
14926   ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-lksvc $rra_krb5_extra $LIBS"
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h.  */
14930
14931 /* Override any GCC internal prototype to avoid an error.
14932    Use char because int might match the return type of a GCC
14933    builtin and then its argument prototype would still apply.  */
14934 #ifdef __cplusplus
14935 extern "C"
14936 #endif
14937 char krb5_svc_get_msg ();
14938 int
14939 main ()
14940 {
14941 return krb5_svc_get_msg ();
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 if ac_fn_c_try_link "$LINENO"; then :
14947   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
14948 else
14949   ac_cv_lib_ksvc_krb5_svc_get_msg=no
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext \
14952     conftest$ac_exeext conftest.$ac_ext
14953 LIBS=$ac_check_lib_save_LIBS
14954 fi
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
14956 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
14957 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
14958   rra_krb5_extra="-lksvc $rra_krb5_extra"
14959 fi
14960
14961      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
14962 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
14963 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
14964   $as_echo_n "(cached) " >&6
14965 else
14966   ac_check_lib_save_LIBS=$LIBS
14967 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h.  */
14970
14971 /* Override any GCC internal prototype to avoid an error.
14972    Use char because int might match the return type of a GCC
14973    builtin and then its argument prototype would still apply.  */
14974 #ifdef __cplusplus
14975 extern "C"
14976 #endif
14977 char krb5int_hash_md5 ();
14978 int
14979 main ()
14980 {
14981 return krb5int_hash_md5 ();
14982   ;
14983   return 0;
14984 }
14985 _ACEOF
14986 if ac_fn_c_try_link "$LINENO"; then :
14987   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
14988 else
14989   ac_cv_lib_k5crypto_krb5int_hash_md5=no
14990 fi
14991 rm -f core conftest.err conftest.$ac_objext \
14992     conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14994 fi
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
14996 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
14997 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
14998   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
14999 fi
15000
15001      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15002 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
15003 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
15004   $as_echo_n "(cached) " >&6
15005 else
15006   ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-lk5profile $rra_krb5_extra $LIBS"
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h.  */
15010
15011 /* Override any GCC internal prototype to avoid an error.
15012    Use char because int might match the return type of a GCC
15013    builtin and then its argument prototype would still apply.  */
15014 #ifdef __cplusplus
15015 extern "C"
15016 #endif
15017 char profile_get_values ();
15018 int
15019 main ()
15020 {
15021 return profile_get_values ();
15022   ;
15023   return 0;
15024 }
15025 _ACEOF
15026 if ac_fn_c_try_link "$LINENO"; then :
15027   ac_cv_lib_k5profile_profile_get_values=yes
15028 else
15029   ac_cv_lib_k5profile_profile_get_values=no
15030 fi
15031 rm -f core conftest.err conftest.$ac_objext \
15032     conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15034 fi
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
15036 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
15037 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
15038   rra_krb5_extra="-lk5profile $rra_krb5_extra"
15039 fi
15040
15041      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
15042 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
15043 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
15044   $as_echo_n "(cached) " >&6
15045 else
15046   ac_check_lib_save_LIBS=$LIBS
15047 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h.  */
15050
15051 /* Override any GCC internal prototype to avoid an error.
15052    Use char because int might match the return type of a GCC
15053    builtin and then its argument prototype would still apply.  */
15054 #ifdef __cplusplus
15055 extern "C"
15056 #endif
15057 char krb5_cc_default ();
15058 int
15059 main ()
15060 {
15061 return krb5_cc_default ();
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 if ac_fn_c_try_link "$LINENO"; then :
15067   ac_cv_lib_krb5_krb5_cc_default=yes
15068 else
15069   ac_cv_lib_krb5_krb5_cc_default=no
15070 fi
15071 rm -f core conftest.err conftest.$ac_objext \
15072     conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15074 fi
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
15076 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
15077 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
15078   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
15079 else
15080   if test x"true" = xtrue; then :
15081   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
15082 fi
15083 fi
15084
15085 fi
15086
15087  LIBS="$KRB5_LIBS $LIBS"
15088  if test x"$rra_krb5_incroot" = x; then :
15089   for ac_header in krb5.h krb5/krb5.h
15090 do :
15091   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15094   cat >>confdefs.h <<_ACEOF
15095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096 _ACEOF
15097
15098 fi
15099
15100 done
15101
15102 else
15103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
15104 $as_echo_n "checking for krb5.h... " >&6; }
15105  if test -f "${rra_krb5_incroot}/krb5.h"; then :
15106
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_KRB5_H 1
15109 _ACEOF
15110
15111      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15112 $as_echo "yes" >&6; }
15113 else
15114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15115 $as_echo "no" >&6; }
15116 fi
15117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
15118 $as_echo_n "checking for krb5/krb5.h... " >&6; }
15119  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
15120
15121 cat >>confdefs.h <<_ACEOF
15122 #define HAVE_KRB5_KRB5_H 1
15123 _ACEOF
15124
15125      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15126 $as_echo "yes" >&6; }
15127 else
15128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15130 fi
15131 fi
15132  for ac_func in krb5_get_error_message
15133 do :
15134   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
15135 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
15136   cat >>confdefs.h <<_ACEOF
15137 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
15138 _ACEOF
15139  for ac_func in krb5_free_error_message
15140 do :
15141   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
15142 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
15143   cat >>confdefs.h <<_ACEOF
15144 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
15145 _ACEOF
15146
15147 fi
15148 done
15149
15150 else
15151   for ac_func in krb5_get_error_string
15152 do :
15153   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
15154 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
15155   cat >>confdefs.h <<_ACEOF
15156 #define HAVE_KRB5_GET_ERROR_STRING 1
15157 _ACEOF
15158
15159 else
15160   for ac_func in krb5_get_err_txt
15161 do :
15162   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
15163 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
15164   cat >>confdefs.h <<_ACEOF
15165 #define HAVE_KRB5_GET_ERR_TXT 1
15166 _ACEOF
15167
15168 else
15169   for ac_func in krb5_svc_get_msg
15170 do :
15171   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
15172 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
15173   cat >>confdefs.h <<_ACEOF
15174 #define HAVE_KRB5_SVC_GET_MSG 1
15175 _ACEOF
15176  for ac_header in ibm_svc/krb5_svc.h
15177 do :
15178   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
15179 #if HAVE_KRB5_H
15180 # include <krb5.h>
15181 #else
15182 # include <krb5/krb5.h>
15183 #endif
15184
15185 "
15186 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
15187   cat >>confdefs.h <<_ACEOF
15188 #define HAVE_IBM_SVC_KRB5_SVC_H 1
15189 _ACEOF
15190
15191 fi
15192
15193 done
15194
15195 else
15196   for ac_header in et/com_err.h
15197 do :
15198   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
15199 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
15200   cat >>confdefs.h <<_ACEOF
15201 #define HAVE_ET_COM_ERR_H 1
15202 _ACEOF
15203
15204 fi
15205
15206 done
15207
15208 fi
15209 done
15210
15211 fi
15212 done
15213
15214 fi
15215 done
15216
15217 fi
15218 done
15219
15220  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15221  LDFLAGS="$rra_krb5_save_LDFLAGS"
15222  LIBS="$rra_krb5_save_LIBS"
15223 fi
15224 else
15225   if test x"$rra_krb5_libdir" != x; then :
15226   KRB5_LDFLAGS="-L$rra_krb5_libdir"
15227 else
15228   if test x"$rra_krb5_root" != x; then :
15229
15230  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15231   if test x"" = x; then :
15232   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15233 else
15234   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15235 fi
15236 else
15237   if test x"" = x; then :
15238   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15239 else
15240   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15241 fi
15242 fi
15243  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15244 fi
15245 fi
15246  if test x"$rra_krb5_includedir" != x; then :
15247   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15248 else
15249   if test x"$rra_krb5_root" != x; then :
15250   if test x"$rra_krb5_root" != x/usr; then :
15251   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15252 fi
15253 fi
15254 fi
15255          rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15256  rra_krb5_save_LDFLAGS="$LDFLAGS"
15257  rra_krb5_save_LIBS="$LIBS"
15258  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15259  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15260  LIBS="$KRB5_LIBS $LIBS"
15261  rra_krb5_extra=
15262  LIBS=
15263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
15264 $as_echo_n "checking for library containing res_search... " >&6; }
15265 if ${ac_cv_search_res_search+:} false; then :
15266   $as_echo_n "(cached) " >&6
15267 else
15268   ac_func_search_save_LIBS=$LIBS
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h.  */
15271
15272 /* Override any GCC internal prototype to avoid an error.
15273    Use char because int might match the return type of a GCC
15274    builtin and then its argument prototype would still apply.  */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 char res_search ();
15279 int
15280 main ()
15281 {
15282 return res_search ();
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 for ac_lib in '' resolv; do
15288   if test -z "$ac_lib"; then
15289     ac_res="none required"
15290   else
15291     ac_res=-l$ac_lib
15292     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15293   fi
15294   if ac_fn_c_try_link "$LINENO"; then :
15295   ac_cv_search_res_search=$ac_res
15296 fi
15297 rm -f core conftest.err conftest.$ac_objext \
15298     conftest$ac_exeext
15299   if ${ac_cv_search_res_search+:} false; then :
15300   break
15301 fi
15302 done
15303 if ${ac_cv_search_res_search+:} false; then :
15304
15305 else
15306   ac_cv_search_res_search=no
15307 fi
15308 rm conftest.$ac_ext
15309 LIBS=$ac_func_search_save_LIBS
15310 fi
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
15312 $as_echo "$ac_cv_search_res_search" >&6; }
15313 ac_res=$ac_cv_search_res_search
15314 if test "$ac_res" != no; then :
15315   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15316
15317 else
15318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
15319 $as_echo_n "checking for library containing __res_search... " >&6; }
15320 if ${ac_cv_search___res_search+:} false; then :
15321   $as_echo_n "(cached) " >&6
15322 else
15323   ac_func_search_save_LIBS=$LIBS
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h.  */
15326
15327 /* Override any GCC internal prototype to avoid an error.
15328    Use char because int might match the return type of a GCC
15329    builtin and then its argument prototype would still apply.  */
15330 #ifdef __cplusplus
15331 extern "C"
15332 #endif
15333 char __res_search ();
15334 int
15335 main ()
15336 {
15337 return __res_search ();
15338   ;
15339   return 0;
15340 }
15341 _ACEOF
15342 for ac_lib in '' resolv; do
15343   if test -z "$ac_lib"; then
15344     ac_res="none required"
15345   else
15346     ac_res=-l$ac_lib
15347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15348   fi
15349   if ac_fn_c_try_link "$LINENO"; then :
15350   ac_cv_search___res_search=$ac_res
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext \
15353     conftest$ac_exeext
15354   if ${ac_cv_search___res_search+:} false; then :
15355   break
15356 fi
15357 done
15358 if ${ac_cv_search___res_search+:} false; then :
15359
15360 else
15361   ac_cv_search___res_search=no
15362 fi
15363 rm conftest.$ac_ext
15364 LIBS=$ac_func_search_save_LIBS
15365 fi
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
15367 $as_echo "$ac_cv_search___res_search" >&6; }
15368 ac_res=$ac_cv_search___res_search
15369 if test "$ac_res" != no; then :
15370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15371
15372 fi
15373
15374 fi
15375
15376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15377 $as_echo_n "checking for library containing gethostbyname... " >&6; }
15378 if ${ac_cv_search_gethostbyname+:} false; then :
15379   $as_echo_n "(cached) " >&6
15380 else
15381   ac_func_search_save_LIBS=$LIBS
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h.  */
15384
15385 /* Override any GCC internal prototype to avoid an error.
15386    Use char because int might match the return type of a GCC
15387    builtin and then its argument prototype would still apply.  */
15388 #ifdef __cplusplus
15389 extern "C"
15390 #endif
15391 char gethostbyname ();
15392 int
15393 main ()
15394 {
15395 return gethostbyname ();
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 for ac_lib in '' nsl; do
15401   if test -z "$ac_lib"; then
15402     ac_res="none required"
15403   else
15404     ac_res=-l$ac_lib
15405     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15406   fi
15407   if ac_fn_c_try_link "$LINENO"; then :
15408   ac_cv_search_gethostbyname=$ac_res
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext \
15411     conftest$ac_exeext
15412   if ${ac_cv_search_gethostbyname+:} false; then :
15413   break
15414 fi
15415 done
15416 if ${ac_cv_search_gethostbyname+:} false; then :
15417
15418 else
15419   ac_cv_search_gethostbyname=no
15420 fi
15421 rm conftest.$ac_ext
15422 LIBS=$ac_func_search_save_LIBS
15423 fi
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15425 $as_echo "$ac_cv_search_gethostbyname" >&6; }
15426 ac_res=$ac_cv_search_gethostbyname
15427 if test "$ac_res" != no; then :
15428   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15429
15430 fi
15431
15432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15433 $as_echo_n "checking for library containing socket... " >&6; }
15434 if ${ac_cv_search_socket+:} false; then :
15435   $as_echo_n "(cached) " >&6
15436 else
15437   ac_func_search_save_LIBS=$LIBS
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h.  */
15440
15441 /* Override any GCC internal prototype to avoid an error.
15442    Use char because int might match the return type of a GCC
15443    builtin and then its argument prototype would still apply.  */
15444 #ifdef __cplusplus
15445 extern "C"
15446 #endif
15447 char socket ();
15448 int
15449 main ()
15450 {
15451 return socket ();
15452   ;
15453   return 0;
15454 }
15455 _ACEOF
15456 for ac_lib in '' socket; do
15457   if test -z "$ac_lib"; then
15458     ac_res="none required"
15459   else
15460     ac_res=-l$ac_lib
15461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15462   fi
15463   if ac_fn_c_try_link "$LINENO"; then :
15464   ac_cv_search_socket=$ac_res
15465 fi
15466 rm -f core conftest.err conftest.$ac_objext \
15467     conftest$ac_exeext
15468   if ${ac_cv_search_socket+:} false; then :
15469   break
15470 fi
15471 done
15472 if ${ac_cv_search_socket+:} false; then :
15473
15474 else
15475   ac_cv_search_socket=no
15476 fi
15477 rm conftest.$ac_ext
15478 LIBS=$ac_func_search_save_LIBS
15479 fi
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15481 $as_echo "$ac_cv_search_socket" >&6; }
15482 ac_res=$ac_cv_search_socket
15483 if test "$ac_res" != no; then :
15484   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15485
15486 else
15487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
15488 $as_echo_n "checking for socket in -lnsl... " >&6; }
15489 if ${ac_cv_lib_nsl_socket+:} false; then :
15490   $as_echo_n "(cached) " >&6
15491 else
15492   ac_check_lib_save_LIBS=$LIBS
15493 LIBS="-lnsl -lsocket $LIBS"
15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h.  */
15496
15497 /* Override any GCC internal prototype to avoid an error.
15498    Use char because int might match the return type of a GCC
15499    builtin and then its argument prototype would still apply.  */
15500 #ifdef __cplusplus
15501 extern "C"
15502 #endif
15503 char socket ();
15504 int
15505 main ()
15506 {
15507 return socket ();
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 if ac_fn_c_try_link "$LINENO"; then :
15513   ac_cv_lib_nsl_socket=yes
15514 else
15515   ac_cv_lib_nsl_socket=no
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext \
15518     conftest$ac_exeext conftest.$ac_ext
15519 LIBS=$ac_check_lib_save_LIBS
15520 fi
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
15522 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
15523 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
15524   LIBS="-lnsl -lsocket $LIBS"
15525 fi
15526
15527 fi
15528
15529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15530 $as_echo_n "checking for library containing crypt... " >&6; }
15531 if ${ac_cv_search_crypt+:} false; then :
15532   $as_echo_n "(cached) " >&6
15533 else
15534   ac_func_search_save_LIBS=$LIBS
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h.  */
15537
15538 /* Override any GCC internal prototype to avoid an error.
15539    Use char because int might match the return type of a GCC
15540    builtin and then its argument prototype would still apply.  */
15541 #ifdef __cplusplus
15542 extern "C"
15543 #endif
15544 char crypt ();
15545 int
15546 main ()
15547 {
15548 return crypt ();
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 for ac_lib in '' crypt; do
15554   if test -z "$ac_lib"; then
15555     ac_res="none required"
15556   else
15557     ac_res=-l$ac_lib
15558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15559   fi
15560   if ac_fn_c_try_link "$LINENO"; then :
15561   ac_cv_search_crypt=$ac_res
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext \
15564     conftest$ac_exeext
15565   if ${ac_cv_search_crypt+:} false; then :
15566   break
15567 fi
15568 done
15569 if ${ac_cv_search_crypt+:} false; then :
15570
15571 else
15572   ac_cv_search_crypt=no
15573 fi
15574 rm conftest.$ac_ext
15575 LIBS=$ac_func_search_save_LIBS
15576 fi
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15578 $as_echo "$ac_cv_search_crypt" >&6; }
15579 ac_res=$ac_cv_search_crypt
15580 if test "$ac_res" != no; then :
15581   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15582
15583 fi
15584
15585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
15586 $as_echo_n "checking for library containing roken_concat... " >&6; }
15587 if ${ac_cv_search_roken_concat+:} false; then :
15588   $as_echo_n "(cached) " >&6
15589 else
15590   ac_func_search_save_LIBS=$LIBS
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h.  */
15593
15594 /* Override any GCC internal prototype to avoid an error.
15595    Use char because int might match the return type of a GCC
15596    builtin and then its argument prototype would still apply.  */
15597 #ifdef __cplusplus
15598 extern "C"
15599 #endif
15600 char roken_concat ();
15601 int
15602 main ()
15603 {
15604 return roken_concat ();
15605   ;
15606   return 0;
15607 }
15608 _ACEOF
15609 for ac_lib in '' roken; do
15610   if test -z "$ac_lib"; then
15611     ac_res="none required"
15612   else
15613     ac_res=-l$ac_lib
15614     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15615   fi
15616   if ac_fn_c_try_link "$LINENO"; then :
15617   ac_cv_search_roken_concat=$ac_res
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext \
15620     conftest$ac_exeext
15621   if ${ac_cv_search_roken_concat+:} false; then :
15622   break
15623 fi
15624 done
15625 if ${ac_cv_search_roken_concat+:} false; then :
15626
15627 else
15628   ac_cv_search_roken_concat=no
15629 fi
15630 rm conftest.$ac_ext
15631 LIBS=$ac_func_search_save_LIBS
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
15634 $as_echo "$ac_cv_search_roken_concat" >&6; }
15635 ac_res=$ac_cv_search_roken_concat
15636 if test "$ac_res" != no; then :
15637   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15638
15639 fi
15640
15641  rra_krb5_extra="$LIBS"
15642  LIBS="$rra_krb5_save_LIBS"
15643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15644 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15645 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15646   $as_echo_n "(cached) " >&6
15647 else
15648   ac_check_lib_save_LIBS=$LIBS
15649 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h.  */
15652
15653 /* Override any GCC internal prototype to avoid an error.
15654    Use char because int might match the return type of a GCC
15655    builtin and then its argument prototype would still apply.  */
15656 #ifdef __cplusplus
15657 extern "C"
15658 #endif
15659 char krb5_init_context ();
15660 int
15661 main ()
15662 {
15663 return krb5_init_context ();
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_c_try_link "$LINENO"; then :
15669   ac_cv_lib_krb5_krb5_init_context=yes
15670 else
15671   ac_cv_lib_krb5_krb5_init_context=no
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext \
15674     conftest$ac_exeext conftest.$ac_ext
15675 LIBS=$ac_check_lib_save_LIBS
15676 fi
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15678 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15679 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15680   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
15681 else
15682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
15683 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
15684 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
15685   $as_echo_n "(cached) " >&6
15686 else
15687   ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h.  */
15691
15692 /* Override any GCC internal prototype to avoid an error.
15693    Use char because int might match the return type of a GCC
15694    builtin and then its argument prototype would still apply.  */
15695 #ifdef __cplusplus
15696 extern "C"
15697 #endif
15698 char krb5int_getspecific ();
15699 int
15700 main ()
15701 {
15702 return krb5int_getspecific ();
15703   ;
15704   return 0;
15705 }
15706 _ACEOF
15707 if ac_fn_c_try_link "$LINENO"; then :
15708   ac_cv_lib_krb5support_krb5int_getspecific=yes
15709 else
15710   ac_cv_lib_krb5support_krb5int_getspecific=no
15711 fi
15712 rm -f core conftest.err conftest.$ac_objext \
15713     conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15715 fi
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
15717 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
15718 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
15719   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
15720 else
15721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
15722 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
15723 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
15724   $as_echo_n "(cached) " >&6
15725 else
15726   ac_check_lib_save_LIBS=$LIBS
15727 LIBS="-lpthreads  $LIBS"
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h.  */
15730
15731 /* Override any GCC internal prototype to avoid an error.
15732    Use char because int might match the return type of a GCC
15733    builtin and then its argument prototype would still apply.  */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 char pthread_setspecific ();
15738 int
15739 main ()
15740 {
15741 return pthread_setspecific ();
15742   ;
15743   return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_c_try_link "$LINENO"; then :
15747   ac_cv_lib_pthreads_pthread_setspecific=yes
15748 else
15749   ac_cv_lib_pthreads_pthread_setspecific=no
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext \
15752     conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15754 fi
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
15756 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
15757 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
15758   rra_krb5_pthread="-lpthreads"
15759 else
15760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
15761 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
15762 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
15763   $as_echo_n "(cached) " >&6
15764 else
15765   ac_check_lib_save_LIBS=$LIBS
15766 LIBS="-lpthread  $LIBS"
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h.  */
15769
15770 /* Override any GCC internal prototype to avoid an error.
15771    Use char because int might match the return type of a GCC
15772    builtin and then its argument prototype would still apply.  */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 char pthread_setspecific ();
15777 int
15778 main ()
15779 {
15780 return pthread_setspecific ();
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 if ac_fn_c_try_link "$LINENO"; then :
15786   ac_cv_lib_pthread_pthread_setspecific=yes
15787 else
15788   ac_cv_lib_pthread_pthread_setspecific=no
15789 fi
15790 rm -f core conftest.err conftest.$ac_objext \
15791     conftest$ac_exeext conftest.$ac_ext
15792 LIBS=$ac_check_lib_save_LIBS
15793 fi
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
15795 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
15796 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
15797   rra_krb5_pthread="-lpthread"
15798 fi
15799
15800 fi
15801
15802          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
15803 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
15804 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
15805   $as_echo_n "(cached) " >&6
15806 else
15807   ac_check_lib_save_LIBS=$LIBS
15808 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h.  */
15811
15812 /* Override any GCC internal prototype to avoid an error.
15813    Use char because int might match the return type of a GCC
15814    builtin and then its argument prototype would still apply.  */
15815 #ifdef __cplusplus
15816 extern "C"
15817 #endif
15818 char krb5int_setspecific ();
15819 int
15820 main ()
15821 {
15822 return krb5int_setspecific ();
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 if ac_fn_c_try_link "$LINENO"; then :
15828   ac_cv_lib_krb5support_krb5int_setspecific=yes
15829 else
15830   ac_cv_lib_krb5support_krb5int_setspecific=no
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext \
15833     conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
15837 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
15838 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
15839   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
15840 fi
15841
15842 fi
15843
15844      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
15845 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
15846 if ${ac_cv_lib_com_err_error_message+:} false; then :
15847   $as_echo_n "(cached) " >&6
15848 else
15849   ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lcom_err $rra_krb5_extra $LIBS"
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h.  */
15853
15854 /* Override any GCC internal prototype to avoid an error.
15855    Use char because int might match the return type of a GCC
15856    builtin and then its argument prototype would still apply.  */
15857 #ifdef __cplusplus
15858 extern "C"
15859 #endif
15860 char error_message ();
15861 int
15862 main ()
15863 {
15864 return error_message ();
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 if ac_fn_c_try_link "$LINENO"; then :
15870   ac_cv_lib_com_err_error_message=yes
15871 else
15872   ac_cv_lib_com_err_error_message=no
15873 fi
15874 rm -f core conftest.err conftest.$ac_objext \
15875     conftest$ac_exeext conftest.$ac_ext
15876 LIBS=$ac_check_lib_save_LIBS
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
15879 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
15880 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
15881   rra_krb5_extra="-lcom_err $rra_krb5_extra"
15882 fi
15883
15884      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15885 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15886 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15887   $as_echo_n "(cached) " >&6
15888 else
15889   ac_check_lib_save_LIBS=$LIBS
15890 LIBS="-lksvc $rra_krb5_extra $LIBS"
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h.  */
15893
15894 /* Override any GCC internal prototype to avoid an error.
15895    Use char because int might match the return type of a GCC
15896    builtin and then its argument prototype would still apply.  */
15897 #ifdef __cplusplus
15898 extern "C"
15899 #endif
15900 char krb5_svc_get_msg ();
15901 int
15902 main ()
15903 {
15904 return krb5_svc_get_msg ();
15905   ;
15906   return 0;
15907 }
15908 _ACEOF
15909 if ac_fn_c_try_link "$LINENO"; then :
15910   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15911 else
15912   ac_cv_lib_ksvc_krb5_svc_get_msg=no
15913 fi
15914 rm -f core conftest.err conftest.$ac_objext \
15915     conftest$ac_exeext conftest.$ac_ext
15916 LIBS=$ac_check_lib_save_LIBS
15917 fi
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15919 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15920 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15921   rra_krb5_extra="-lksvc $rra_krb5_extra"
15922 fi
15923
15924      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
15925 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
15926 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
15927   $as_echo_n "(cached) " >&6
15928 else
15929   ac_check_lib_save_LIBS=$LIBS
15930 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h.  */
15933
15934 /* Override any GCC internal prototype to avoid an error.
15935    Use char because int might match the return type of a GCC
15936    builtin and then its argument prototype would still apply.  */
15937 #ifdef __cplusplus
15938 extern "C"
15939 #endif
15940 char krb5int_hash_md5 ();
15941 int
15942 main ()
15943 {
15944 return krb5int_hash_md5 ();
15945   ;
15946   return 0;
15947 }
15948 _ACEOF
15949 if ac_fn_c_try_link "$LINENO"; then :
15950   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
15951 else
15952   ac_cv_lib_k5crypto_krb5int_hash_md5=no
15953 fi
15954 rm -f core conftest.err conftest.$ac_objext \
15955     conftest$ac_exeext conftest.$ac_ext
15956 LIBS=$ac_check_lib_save_LIBS
15957 fi
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
15959 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
15960 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
15961   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
15962 fi
15963
15964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15965 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
15966 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
15967   $as_echo_n "(cached) " >&6
15968 else
15969   ac_check_lib_save_LIBS=$LIBS
15970 LIBS="-lk5profile $rra_krb5_extra $LIBS"
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h.  */
15973
15974 /* Override any GCC internal prototype to avoid an error.
15975    Use char because int might match the return type of a GCC
15976    builtin and then its argument prototype would still apply.  */
15977 #ifdef __cplusplus
15978 extern "C"
15979 #endif
15980 char profile_get_values ();
15981 int
15982 main ()
15983 {
15984 return profile_get_values ();
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 if ac_fn_c_try_link "$LINENO"; then :
15990   ac_cv_lib_k5profile_profile_get_values=yes
15991 else
15992   ac_cv_lib_k5profile_profile_get_values=no
15993 fi
15994 rm -f core conftest.err conftest.$ac_objext \
15995     conftest$ac_exeext conftest.$ac_ext
15996 LIBS=$ac_check_lib_save_LIBS
15997 fi
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
15999 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
16000 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
16001   rra_krb5_extra="-lk5profile $rra_krb5_extra"
16002 fi
16003
16004      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
16005 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
16006 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
16007   $as_echo_n "(cached) " >&6
16008 else
16009   ac_check_lib_save_LIBS=$LIBS
16010 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013
16014 /* Override any GCC internal prototype to avoid an error.
16015    Use char because int might match the return type of a GCC
16016    builtin and then its argument prototype would still apply.  */
16017 #ifdef __cplusplus
16018 extern "C"
16019 #endif
16020 char krb5_cc_default ();
16021 int
16022 main ()
16023 {
16024 return krb5_cc_default ();
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 if ac_fn_c_try_link "$LINENO"; then :
16030   ac_cv_lib_krb5_krb5_cc_default=yes
16031 else
16032   ac_cv_lib_krb5_krb5_cc_default=no
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext \
16035     conftest$ac_exeext conftest.$ac_ext
16036 LIBS=$ac_check_lib_save_LIBS
16037 fi
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
16039 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
16040 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
16041   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
16042 else
16043   if test x"true" = xtrue; then :
16044   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16045 fi
16046 fi
16047
16048 fi
16049
16050  LIBS="$KRB5_LIBS $LIBS"
16051  if test x"$rra_krb5_incroot" = x; then :
16052   for ac_header in krb5.h krb5/krb5.h
16053 do :
16054   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16055 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16056 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16057   cat >>confdefs.h <<_ACEOF
16058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16059 _ACEOF
16060
16061 fi
16062
16063 done
16064
16065 else
16066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16067 $as_echo_n "checking for krb5.h... " >&6; }
16068  if test -f "${rra_krb5_incroot}/krb5.h"; then :
16069
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_KRB5_H 1
16072 _ACEOF
16073
16074      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16075 $as_echo "yes" >&6; }
16076 else
16077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078 $as_echo "no" >&6; }
16079 fi
16080       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16081 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16082  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16083
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_KRB5_KRB5_H 1
16086 _ACEOF
16087
16088      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16089 $as_echo "yes" >&6; }
16090 else
16091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16093 fi
16094 fi
16095  for ac_func in krb5_get_error_message
16096 do :
16097   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16098 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16099   cat >>confdefs.h <<_ACEOF
16100 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16101 _ACEOF
16102  for ac_func in krb5_free_error_message
16103 do :
16104   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16105 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16106   cat >>confdefs.h <<_ACEOF
16107 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16108 _ACEOF
16109
16110 fi
16111 done
16112
16113 else
16114   for ac_func in krb5_get_error_string
16115 do :
16116   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16117 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16118   cat >>confdefs.h <<_ACEOF
16119 #define HAVE_KRB5_GET_ERROR_STRING 1
16120 _ACEOF
16121
16122 else
16123   for ac_func in krb5_get_err_txt
16124 do :
16125   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16126 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16127   cat >>confdefs.h <<_ACEOF
16128 #define HAVE_KRB5_GET_ERR_TXT 1
16129 _ACEOF
16130
16131 else
16132   for ac_func in krb5_svc_get_msg
16133 do :
16134   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
16135 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
16136   cat >>confdefs.h <<_ACEOF
16137 #define HAVE_KRB5_SVC_GET_MSG 1
16138 _ACEOF
16139  for ac_header in ibm_svc/krb5_svc.h
16140 do :
16141   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16142 #if HAVE_KRB5_H
16143 # include <krb5.h>
16144 #else
16145 # include <krb5/krb5.h>
16146 #endif
16147
16148 "
16149 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16150   cat >>confdefs.h <<_ACEOF
16151 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16152 _ACEOF
16153
16154 fi
16155
16156 done
16157
16158 else
16159   for ac_header in et/com_err.h
16160 do :
16161   ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
16162 if test "x$ac_cv_header_et_com_err_h" = xyes; then :
16163   cat >>confdefs.h <<_ACEOF
16164 #define HAVE_ET_COM_ERR_H 1
16165 _ACEOF
16166
16167 fi
16168
16169 done
16170
16171 fi
16172 done
16173
16174 fi
16175 done
16176
16177 fi
16178 done
16179
16180 fi
16181 done
16182
16183  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16184  LDFLAGS="$rra_krb5_save_LDFLAGS"
16185  LIBS="$rra_krb5_save_LIBS"
16186 fi
16187 fi
16188  rra_krb5_uses_com_err=false
16189  case $KRB5_LIBS in #(
16190   *-lcom_err*) :
16191     rra_krb5_uses_com_err=true ;; #(
16192   *) :
16193      ;;
16194 esac
16195   if test x"$rra_krb5_uses_com_err" = xtrue; then
16196   KRB5_USES_COM_ERR_TRUE=
16197   KRB5_USES_COM_ERR_FALSE='#'
16198 else
16199   KRB5_USES_COM_ERR_TRUE='#'
16200   KRB5_USES_COM_ERR_FALSE=
16201 fi
16202
16203
16204 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
16205
16206 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16207  rra_krb5_save_LDFLAGS="$LDFLAGS"
16208  rra_krb5_save_LIBS="$LIBS"
16209  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16210  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16211  LIBS="$KRB5_LIBS $LIBS"
16212 for ac_header in kadm5/kadm5-pwcheck.h kadm5/kadm5_err.h
16213 do :
16214   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16215 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16216 #if HAVE_KRB5_H
16217 # include <krb5.h>
16218 #else
16219 # include <krb5/krb5.h>
16220 #endif
16221
16222 "
16223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16224   cat >>confdefs.h <<_ACEOF
16225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16226 _ACEOF
16227
16228 fi
16229
16230 done
16231
16232 for ac_header in krb5/pwqual_plugin.h
16233 do :
16234   ac_fn_c_check_header_compile "$LINENO" "krb5/pwqual_plugin.h" "ac_cv_header_krb5_pwqual_plugin_h" "
16235 #if HAVE_KRB5_H
16236 # include <krb5.h>
16237 #else
16238 # include <krb5/krb5.h>
16239 #endif
16240
16241 "
16242 if test "x$ac_cv_header_krb5_pwqual_plugin_h" = xyes; then :
16243   cat >>confdefs.h <<_ACEOF
16244 #define HAVE_KRB5_PWQUAL_PLUGIN_H 1
16245 _ACEOF
16246
16247 fi
16248
16249 done
16250
16251 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
16252 #if HAVE_KRB5_H
16253 # include <krb5.h>
16254 #else
16255 # include <krb5/krb5.h>
16256 #endif
16257
16258 "
16259 if test "x$ac_cv_type_krb5_realm" = xyes; then :
16260
16261 cat >>confdefs.h <<_ACEOF
16262 #define HAVE_KRB5_REALM 1
16263 _ACEOF
16264
16265
16266 fi
16267
16268 for ac_func in krb5_free_default_realm \
16269     krb5_free_string \
16270     krb5_get_init_creds_opt_alloc \
16271     krb5_get_init_creds_opt_set_default_flags \
16272     krb5_principal_get_realm \
16273     krb5_xfree
16274 do :
16275   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16277 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16278   cat >>confdefs.h <<_ACEOF
16279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16280 _ACEOF
16281
16282 fi
16283 done
16284
16285 for ac_func in krb5_get_init_creds_opt_free
16286 do :
16287   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
16288 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then :
16289   cat >>confdefs.h <<_ACEOF
16290 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
16291 _ACEOF
16292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
16293 $as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
16294 if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then :
16295   $as_echo_n "(cached) " >&6
16296 else
16297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298 /* end confdefs.h.  */
16299
16300 #if HAVE_KRB5_H
16301 # include <krb5.h>
16302 #else
16303 # include <krb5/krb5.h>
16304 #endif
16305
16306 int
16307 main(void)
16308 {
16309     krb5_get_init_creds_opt *opts;
16310     krb5_context c;
16311     krb5_get_init_creds_opt_free(c, opts);
16312 }
16313
16314 _ACEOF
16315 if ac_fn_c_try_compile "$LINENO"; then :
16316   rra_cv_func_krb5_get_init_creds_opt_free_args=yes
16317 else
16318   rra_cv_func_krb5_get_init_creds_opt_free_args=no
16319 fi
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 fi
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
16323 $as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
16324  if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then :
16325
16326 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
16327
16328 fi
16329 fi
16330 done
16331
16332 ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "
16333 #if HAVE_KRB5_H
16334 # include <krb5.h>
16335 #else
16336 # include <krb5/krb5.h>
16337 #endif
16338
16339 "
16340 if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then :
16341   ac_have_decl=1
16342 else
16343   ac_have_decl=0
16344 fi
16345
16346 cat >>confdefs.h <<_ACEOF
16347 #define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl
16348 _ACEOF
16349
16350 case " $LIBOBJS " in
16351   *" krb5-extra.$ac_objext "* ) ;;
16352   *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
16353  ;;
16354 esac
16355
16356 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16357  LDFLAGS="$rra_krb5_save_LDFLAGS"
16358  LIBS="$rra_krb5_save_LIBS"
16359
16360 save_LIBS="$LIBS"
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16362 $as_echo_n "checking for library containing dlopen... " >&6; }
16363 if ${ac_cv_search_dlopen+:} false; then :
16364   $as_echo_n "(cached) " >&6
16365 else
16366   ac_func_search_save_LIBS=$LIBS
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h.  */
16369
16370 /* Override any GCC internal prototype to avoid an error.
16371    Use char because int might match the return type of a GCC
16372    builtin and then its argument prototype would still apply.  */
16373 #ifdef __cplusplus
16374 extern "C"
16375 #endif
16376 char dlopen ();
16377 int
16378 main ()
16379 {
16380 return dlopen ();
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 for ac_lib in '' dl; do
16386   if test -z "$ac_lib"; then
16387     ac_res="none required"
16388   else
16389     ac_res=-l$ac_lib
16390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16391   fi
16392   if ac_fn_c_try_link "$LINENO"; then :
16393   ac_cv_search_dlopen=$ac_res
16394 fi
16395 rm -f core conftest.err conftest.$ac_objext \
16396     conftest$ac_exeext
16397   if ${ac_cv_search_dlopen+:} false; then :
16398   break
16399 fi
16400 done
16401 if ${ac_cv_search_dlopen+:} false; then :
16402
16403 else
16404   ac_cv_search_dlopen=no
16405 fi
16406 rm conftest.$ac_ext
16407 LIBS=$ac_func_search_save_LIBS
16408 fi
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16410 $as_echo "$ac_cv_search_dlopen" >&6; }
16411 ac_res=$ac_cv_search_dlopen
16412 if test "$ac_res" != no; then :
16413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16414   DL_LIBS="$LIBS"
16415 fi
16416
16417 LIBS="$save_LIBS"
16418
16419
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16421 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16422 if ${ac_cv_header_stdbool_h+:} false; then :
16423   $as_echo_n "(cached) " >&6
16424 else
16425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h.  */
16427
16428              #include <stdbool.h>
16429              #ifndef bool
16430               "error: bool is not defined"
16431              #endif
16432              #ifndef false
16433               "error: false is not defined"
16434              #endif
16435              #if false
16436               "error: false is not 0"
16437              #endif
16438              #ifndef true
16439               "error: true is not defined"
16440              #endif
16441              #if true != 1
16442               "error: true is not 1"
16443              #endif
16444              #ifndef __bool_true_false_are_defined
16445               "error: __bool_true_false_are_defined is not defined"
16446              #endif
16447
16448              struct s { _Bool s: 1; _Bool t; } s;
16449
16450              char a[true == 1 ? 1 : -1];
16451              char b[false == 0 ? 1 : -1];
16452              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16453              char d[(bool) 0.5 == true ? 1 : -1];
16454              /* See body of main program for 'e'.  */
16455              char f[(_Bool) 0.0 == false ? 1 : -1];
16456              char g[true];
16457              char h[sizeof (_Bool)];
16458              char i[sizeof s.t];
16459              enum { j = false, k = true, l = false * true, m = true * 256 };
16460              /* The following fails for
16461                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16462              _Bool n[m];
16463              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16464              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16465              /* Catch a bug in an HP-UX C compiler.  See
16466                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16467                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16468               */
16469              _Bool q = true;
16470              _Bool *pq = &q;
16471
16472 int
16473 main ()
16474 {
16475
16476              bool e = &s;
16477              *pq |= q;
16478              *pq |= ! q;
16479              /* Refer to every declared value, to avoid compiler optimizations.  */
16480              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16481                      + !m + !n + !o + !p + !q + !pq);
16482
16483   ;
16484   return 0;
16485 }
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"; then :
16488   ac_cv_header_stdbool_h=yes
16489 else
16490   ac_cv_header_stdbool_h=no
16491 fi
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 fi
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16495 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16496    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16497 if test "x$ac_cv_type__Bool" = xyes; then :
16498
16499 cat >>confdefs.h <<_ACEOF
16500 #define HAVE__BOOL 1
16501 _ACEOF
16502
16503
16504 fi
16505
16506
16507 if test $ac_cv_header_stdbool_h = yes; then
16508
16509 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16510
16511 fi
16512
16513 for ac_header in sys/bittypes.h syslog.h
16514 do :
16515   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16516 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16517 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16518   cat >>confdefs.h <<_ACEOF
16519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16520 _ACEOF
16521
16522 fi
16523
16524 done
16525
16526 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
16527 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
16528   ac_have_decl=1
16529 else
16530   ac_have_decl=0
16531 fi
16532
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_DECL_SNPRINTF $ac_have_decl
16535 _ACEOF
16536 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16537 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
16538   ac_have_decl=1
16539 else
16540   ac_have_decl=0
16541 fi
16542
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_DECL_VSNPRINTF $ac_have_decl
16545 _ACEOF
16546
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
16548 $as_echo_n "checking for C99 variadic macros... " >&6; }
16549 if ${rra_cv_c_c99_vamacros+:} false; then :
16550   $as_echo_n "(cached) " >&6
16551 else
16552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h.  */
16554
16555 #include <stdio.h>
16556 #define error(...) fprintf(stderr, __VA_ARGS__)
16557
16558 int
16559 main(void) {
16560     error("foo");
16561     error("foo %d", 0);
16562     return 0;
16563 }
16564
16565 _ACEOF
16566 if ac_fn_c_try_compile "$LINENO"; then :
16567   rra_cv_c_c99_vamacros=yes
16568 else
16569   rra_cv_c_c99_vamacros=no
16570 fi
16571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572 fi
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5
16574 $as_echo "$rra_cv_c_c99_vamacros" >&6; }
16575  if test x"$rra_cv_c_c99_vamacros" = xyes; then :
16576
16577 $as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h
16578
16579 fi
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5
16581 $as_echo_n "checking for GNU-style variadic macros... " >&6; }
16582 if ${rra_cv_c_gnu_vamacros+:} false; then :
16583   $as_echo_n "(cached) " >&6
16584 else
16585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h.  */
16587
16588 #include <stdio.h>
16589 #define error(args...) fprintf(stderr, args)
16590
16591 int
16592 main(void) {
16593     error("foo");
16594     error("foo %d", 0);
16595     return 0;
16596 }
16597
16598 _ACEOF
16599 if ac_fn_c_try_compile "$LINENO"; then :
16600   rra_cv_c_gnu_vamacros=yes
16601 else
16602   rra_cv_c_gnu_vamacros=no
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605 fi
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5
16607 $as_echo "$rra_cv_c_gnu_vamacros" >&6; }
16608  if test x"$rra_cv_c_gnu_vamacros" = xyes; then :
16609
16610 $as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h
16611
16612 fi
16613
16614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16615 $as_echo_n "checking for unsigned long long int... " >&6; }
16616 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16617   $as_echo_n "(cached) " >&6
16618 else
16619   ac_cv_type_unsigned_long_long_int=yes
16620      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16621        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h.  */
16623
16624   /* For now, do not test the preprocessor; as of 2007 there are too many
16625          implementations with broken preprocessors.  Perhaps this can
16626          be revisited in 2012.  In the meantime, code should not expect
16627          #if to work with literals wider than 32 bits.  */
16628       /* Test literals.  */
16629       long long int ll = 9223372036854775807ll;
16630       long long int nll = -9223372036854775807LL;
16631       unsigned long long int ull = 18446744073709551615ULL;
16632       /* Test constant expressions.   */
16633       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16634                      ? 1 : -1)];
16635       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16636                      ? 1 : -1)];
16637       int i = 63;
16638 int
16639 main ()
16640 {
16641 /* Test availability of runtime routines for shift and division.  */
16642       long long int llmax = 9223372036854775807ll;
16643       unsigned long long int ullmax = 18446744073709551615ull;
16644       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16645               | (llmax / ll) | (llmax % ll)
16646               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16647               | (ullmax / ull) | (ullmax % ull));
16648   ;
16649   return 0;
16650 }
16651
16652 _ACEOF
16653 if ac_fn_c_try_link "$LINENO"; then :
16654
16655 else
16656   ac_cv_type_unsigned_long_long_int=no
16657 fi
16658 rm -f core conftest.err conftest.$ac_objext \
16659     conftest$ac_exeext conftest.$ac_ext
16660      fi
16661 fi
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16663 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16664   if test $ac_cv_type_unsigned_long_long_int = yes; then
16665
16666 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16667
16668   fi
16669
16670
16671
16672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16673 $as_echo_n "checking for long long int... " >&6; }
16674 if ${ac_cv_type_long_long_int+:} false; then :
16675   $as_echo_n "(cached) " >&6
16676 else
16677   ac_cv_type_long_long_int=yes
16678       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16679         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16680         if test $ac_cv_type_long_long_int = yes; then
16681                                         if test "$cross_compiling" = yes; then :
16682   :
16683 else
16684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h.  */
16686 #include <limits.h>
16687                  #ifndef LLONG_MAX
16688                  # define HALF \
16689                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16690                  # define LLONG_MAX (HALF - 1 + HALF)
16691                  #endif
16692 int
16693 main ()
16694 {
16695 long long int n = 1;
16696                  int i;
16697                  for (i = 0; ; i++)
16698                    {
16699                      long long int m = n << i;
16700                      if (m >> i != n)
16701                        return 1;
16702                      if (LLONG_MAX / 2 < m)
16703                        break;
16704                    }
16705                  return 0;
16706   ;
16707   return 0;
16708 }
16709 _ACEOF
16710 if ac_fn_c_try_run "$LINENO"; then :
16711
16712 else
16713   ac_cv_type_long_long_int=no
16714 fi
16715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16716   conftest.$ac_objext conftest.beam conftest.$ac_ext
16717 fi
16718
16719         fi
16720       fi
16721 fi
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16723 $as_echo "$ac_cv_type_long_long_int" >&6; }
16724   if test $ac_cv_type_long_long_int = yes; then
16725
16726 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16727
16728   fi
16729
16730 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
16731 case $ac_cv_c_uint8_t in #(
16732   no|yes) ;; #(
16733   *)
16734
16735 $as_echo "#define _UINT8_T 1" >>confdefs.h
16736
16737
16738 cat >>confdefs.h <<_ACEOF
16739 #define uint8_t $ac_cv_c_uint8_t
16740 _ACEOF
16741 ;;
16742   esac
16743
16744 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
16745 case $ac_cv_c_uint16_t in #(
16746   no|yes) ;; #(
16747   *)
16748
16749
16750 cat >>confdefs.h <<_ACEOF
16751 #define uint16_t $ac_cv_c_uint16_t
16752 _ACEOF
16753 ;;
16754   esac
16755
16756 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16757 case $ac_cv_c_uint32_t in #(
16758   no|yes) ;; #(
16759   *)
16760
16761 $as_echo "#define _UINT32_T 1" >>confdefs.h
16762
16763
16764 cat >>confdefs.h <<_ACEOF
16765 #define uint32_t $ac_cv_c_uint32_t
16766 _ACEOF
16767 ;;
16768   esac
16769
16770 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
16771 "
16772 if test "x$ac_cv_type_ssize_t" = xyes; then :
16773
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_SSIZE_T 1
16776 _ACEOF
16777
16778
16779 fi
16780
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
16782 $as_echo_n "checking for working snprintf... " >&6; }
16783 if ${rra_cv_func_snprintf_works+:} false; then :
16784   $as_echo_n "(cached) " >&6
16785 else
16786   if test "$cross_compiling" = yes; then :
16787   rra_cv_func_snprintf_works=no
16788 else
16789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h.  */
16791
16792 #include <stdio.h>
16793 #include <stdarg.h>
16794
16795 char buf[2];
16796
16797 int
16798 test(char *format, ...)
16799 {
16800     va_list args;
16801     int count;
16802
16803     va_start(args, format);
16804     count = vsnprintf(buf, sizeof buf, format, args);
16805     va_end(args);
16806     return count;
16807 }
16808
16809 int
16810 main()
16811 {
16812     return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
16813              && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
16814 }
16815
16816 _ACEOF
16817 if ac_fn_c_try_run "$LINENO"; then :
16818   rra_cv_func_snprintf_works=yes
16819 else
16820   rra_cv_func_snprintf_works=no
16821 fi
16822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16823   conftest.$ac_objext conftest.beam conftest.$ac_ext
16824 fi
16825
16826 fi
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5
16828 $as_echo "$rra_cv_func_snprintf_works" >&6; }
16829  if test x"$rra_cv_func_snprintf_works" = xyes; then :
16830
16831 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16832
16833 else
16834   case " $LIBOBJS " in
16835   *" snprintf.$ac_objext "* ) ;;
16836   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16837  ;;
16838 esac
16839
16840 fi
16841 for ac_func in setrlimit
16842 do :
16843   ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
16844 if test "x$ac_cv_func_setrlimit" = xyes; then :
16845   cat >>confdefs.h <<_ACEOF
16846 #define HAVE_SETRLIMIT 1
16847 _ACEOF
16848
16849 fi
16850 done
16851
16852 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
16853 if test "x$ac_cv_func_asprintf" = xyes; then :
16854   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
16855
16856 else
16857   case " $LIBOBJS " in
16858   *" asprintf.$ac_objext "* ) ;;
16859   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
16860  ;;
16861 esac
16862
16863 fi
16864
16865 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
16866 if test "x$ac_cv_func_strndup" = xyes; then :
16867   $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16868
16869 else
16870   case " $LIBOBJS " in
16871   *" strndup.$ac_objext "* ) ;;
16872   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
16873  ;;
16874 esac
16875
16876 fi
16877
16878
16879
16880 ac_config_files="$ac_config_files Makefile"
16881
16882 ac_config_headers="$ac_config_headers config.h"
16883
16884 cat >confcache <<\_ACEOF
16885 # This file is a shell script that caches the results of configure
16886 # tests run on this system so they can be shared between configure
16887 # scripts and configure runs, see configure's option --config-cache.
16888 # It is not useful on other systems.  If it contains results you don't
16889 # want to keep, you may remove or edit it.
16890 #
16891 # config.status only pays attention to the cache file if you give it
16892 # the --recheck option to rerun configure.
16893 #
16894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16896 # following values.
16897
16898 _ACEOF
16899
16900 # The following way of writing the cache mishandles newlines in values,
16901 # but we know of no workaround that is simple, portable, and efficient.
16902 # So, we kill variables containing newlines.
16903 # Ultrix sh set writes to stderr and can't be redirected directly,
16904 # and sets the high bit in the cache file unless we assign to the vars.
16905 (
16906   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16907     eval ac_val=\$$ac_var
16908     case $ac_val in #(
16909     *${as_nl}*)
16910       case $ac_var in #(
16911       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16913       esac
16914       case $ac_var in #(
16915       _ | IFS | as_nl) ;; #(
16916       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16917       *) { eval $ac_var=; unset $ac_var;} ;;
16918       esac ;;
16919     esac
16920   done
16921
16922   (set) 2>&1 |
16923     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16924     *${as_nl}ac_space=\ *)
16925       # `set' does not quote correctly, so add quotes: double-quote
16926       # substitution turns \\\\ into \\, and sed turns \\ into \.
16927       sed -n \
16928         "s/'/'\\\\''/g;
16929           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16930       ;; #(
16931     *)
16932       # `set' quotes correctly as required by POSIX, so do not add quotes.
16933       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16934       ;;
16935     esac |
16936     sort
16937 ) |
16938   sed '
16939      /^ac_cv_env_/b end
16940      t clear
16941      :clear
16942      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16943      t end
16944      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16945      :end' >>confcache
16946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16947   if test -w "$cache_file"; then
16948     if test "x$cache_file" != "x/dev/null"; then
16949       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16950 $as_echo "$as_me: updating cache $cache_file" >&6;}
16951       if test ! -f "$cache_file" || test -h "$cache_file"; then
16952         cat confcache >"$cache_file"
16953       else
16954         case $cache_file in #(
16955         */* | ?:*)
16956           mv -f confcache "$cache_file"$$ &&
16957           mv -f "$cache_file"$$ "$cache_file" ;; #(
16958         *)
16959           mv -f confcache "$cache_file" ;;
16960         esac
16961       fi
16962     fi
16963   else
16964     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16966   fi
16967 fi
16968 rm -f confcache
16969
16970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16971 # Let make expand exec_prefix.
16972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16973
16974 DEFS=-DHAVE_CONFIG_H
16975
16976 ac_libobjs=
16977 ac_ltlibobjs=
16978 U=
16979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16980   # 1. Remove the extension, and $U if already installed.
16981   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16982   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16983   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16984   #    will be set to the directory where LIBOBJS objects are built.
16985   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16986   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16987 done
16988 LIBOBJS=$ac_libobjs
16989
16990 LTLIBOBJS=$ac_ltlibobjs
16991
16992
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16994 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16995    if test -n "$am_sleep_pid"; then
16996      # Hide warnings about reused PIDs.
16997      wait $am_sleep_pid 2>/dev/null
16998    fi
16999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17000 $as_echo "done" >&6; }
17001  if test -n "$EXEEXT"; then
17002   am__EXEEXT_TRUE=
17003   am__EXEEXT_FALSE='#'
17004 else
17005   am__EXEEXT_TRUE='#'
17006   am__EXEEXT_FALSE=
17007 fi
17008
17009 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17010   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012 fi
17013 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17014   as_fn_error $? "conditional \"AMDEP\" was never defined.
17015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17016 fi
17017 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17018   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17020 fi
17021 if test -z "${EMBEDDED_CRACKLIB_TRUE}" && test -z "${EMBEDDED_CRACKLIB_FALSE}"; then
17022   as_fn_error $? "conditional \"EMBEDDED_CRACKLIB\" was never defined.
17023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17024 fi
17025 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
17026   as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
17027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 fi
17029
17030 : "${CONFIG_STATUS=./config.status}"
17031 ac_write_fail=0
17032 ac_clean_files_save=$ac_clean_files
17033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17035 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17036 as_write_fail=0
17037 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17038 #! $SHELL
17039 # Generated by $as_me.
17040 # Run this file to recreate the current configuration.
17041 # Compiler output produced by configure, useful for debugging
17042 # configure, is in config.log if it exists.
17043
17044 debug=false
17045 ac_cs_recheck=false
17046 ac_cs_silent=false
17047
17048 SHELL=\${CONFIG_SHELL-$SHELL}
17049 export SHELL
17050 _ASEOF
17051 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17052 ## -------------------- ##
17053 ## M4sh Initialization. ##
17054 ## -------------------- ##
17055
17056 # Be more Bourne compatible
17057 DUALCASE=1; export DUALCASE # for MKS sh
17058 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17059   emulate sh
17060   NULLCMD=:
17061   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17062   # is contrary to our usage.  Disable this feature.
17063   alias -g '${1+"$@"}'='"$@"'
17064   setopt NO_GLOB_SUBST
17065 else
17066   case `(set -o) 2>/dev/null` in #(
17067   *posix*) :
17068     set -o posix ;; #(
17069   *) :
17070      ;;
17071 esac
17072 fi
17073
17074
17075 as_nl='
17076 '
17077 export as_nl
17078 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17079 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17082 # Prefer a ksh shell builtin over an external printf program on Solaris,
17083 # but without wasting forks for bash or zsh.
17084 if test -z "$BASH_VERSION$ZSH_VERSION" \
17085     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17086   as_echo='print -r --'
17087   as_echo_n='print -rn --'
17088 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17089   as_echo='printf %s\n'
17090   as_echo_n='printf %s'
17091 else
17092   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17093     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17094     as_echo_n='/usr/ucb/echo -n'
17095   else
17096     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17097     as_echo_n_body='eval
17098       arg=$1;
17099       case $arg in #(
17100       *"$as_nl"*)
17101         expr "X$arg" : "X\\(.*\\)$as_nl";
17102         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17103       esac;
17104       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17105     '
17106     export as_echo_n_body
17107     as_echo_n='sh -c $as_echo_n_body as_echo'
17108   fi
17109   export as_echo_body
17110   as_echo='sh -c $as_echo_body as_echo'
17111 fi
17112
17113 # The user is always right.
17114 if test "${PATH_SEPARATOR+set}" != set; then
17115   PATH_SEPARATOR=:
17116   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17117     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17118       PATH_SEPARATOR=';'
17119   }
17120 fi
17121
17122
17123 # IFS
17124 # We need space, tab and new line, in precisely that order.  Quoting is
17125 # there to prevent editors from complaining about space-tab.
17126 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17127 # splitting by setting IFS to empty value.)
17128 IFS=" ""        $as_nl"
17129
17130 # Find who we are.  Look in the path if we contain no directory separator.
17131 as_myself=
17132 case $0 in #((
17133   *[\\/]* ) as_myself=$0 ;;
17134   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17135 for as_dir in $PATH
17136 do
17137   IFS=$as_save_IFS
17138   test -z "$as_dir" && as_dir=.
17139     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17140   done
17141 IFS=$as_save_IFS
17142
17143      ;;
17144 esac
17145 # We did not find ourselves, most probably we were run as `sh COMMAND'
17146 # in which case we are not to be found in the path.
17147 if test "x$as_myself" = x; then
17148   as_myself=$0
17149 fi
17150 if test ! -f "$as_myself"; then
17151   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17152   exit 1
17153 fi
17154
17155 # Unset variables that we do not need and which cause bugs (e.g. in
17156 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17157 # suppresses any "Segmentation fault" message there.  '((' could
17158 # trigger a bug in pdksh 5.2.14.
17159 for as_var in BASH_ENV ENV MAIL MAILPATH
17160 do eval test x\${$as_var+set} = xset \
17161   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17162 done
17163 PS1='$ '
17164 PS2='> '
17165 PS4='+ '
17166
17167 # NLS nuisances.
17168 LC_ALL=C
17169 export LC_ALL
17170 LANGUAGE=C
17171 export LANGUAGE
17172
17173 # CDPATH.
17174 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17175
17176
17177 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17178 # ----------------------------------------
17179 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17180 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17181 # script with STATUS, using 1 if that was 0.
17182 as_fn_error ()
17183 {
17184   as_status=$1; test $as_status -eq 0 && as_status=1
17185   if test "$4"; then
17186     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17187     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17188   fi
17189   $as_echo "$as_me: error: $2" >&2
17190   as_fn_exit $as_status
17191 } # as_fn_error
17192
17193
17194 # as_fn_set_status STATUS
17195 # -----------------------
17196 # Set $? to STATUS, without forking.
17197 as_fn_set_status ()
17198 {
17199   return $1
17200 } # as_fn_set_status
17201
17202 # as_fn_exit STATUS
17203 # -----------------
17204 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17205 as_fn_exit ()
17206 {
17207   set +e
17208   as_fn_set_status $1
17209   exit $1
17210 } # as_fn_exit
17211
17212 # as_fn_unset VAR
17213 # ---------------
17214 # Portably unset VAR.
17215 as_fn_unset ()
17216 {
17217   { eval $1=; unset $1;}
17218 }
17219 as_unset=as_fn_unset
17220 # as_fn_append VAR VALUE
17221 # ----------------------
17222 # Append the text in VALUE to the end of the definition contained in VAR. Take
17223 # advantage of any shell optimizations that allow amortized linear growth over
17224 # repeated appends, instead of the typical quadratic growth present in naive
17225 # implementations.
17226 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17227   eval 'as_fn_append ()
17228   {
17229     eval $1+=\$2
17230   }'
17231 else
17232   as_fn_append ()
17233   {
17234     eval $1=\$$1\$2
17235   }
17236 fi # as_fn_append
17237
17238 # as_fn_arith ARG...
17239 # ------------------
17240 # Perform arithmetic evaluation on the ARGs, and store the result in the
17241 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17242 # must be portable across $(()) and expr.
17243 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17244   eval 'as_fn_arith ()
17245   {
17246     as_val=$(( $* ))
17247   }'
17248 else
17249   as_fn_arith ()
17250   {
17251     as_val=`expr "$@" || test $? -eq 1`
17252   }
17253 fi # as_fn_arith
17254
17255
17256 if expr a : '\(a\)' >/dev/null 2>&1 &&
17257    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17258   as_expr=expr
17259 else
17260   as_expr=false
17261 fi
17262
17263 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17264   as_basename=basename
17265 else
17266   as_basename=false
17267 fi
17268
17269 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17270   as_dirname=dirname
17271 else
17272   as_dirname=false
17273 fi
17274
17275 as_me=`$as_basename -- "$0" ||
17276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17277          X"$0" : 'X\(//\)$' \| \
17278          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17279 $as_echo X/"$0" |
17280     sed '/^.*\/\([^/][^/]*\)\/*$/{
17281             s//\1/
17282             q
17283           }
17284           /^X\/\(\/\/\)$/{
17285             s//\1/
17286             q
17287           }
17288           /^X\/\(\/\).*/{
17289             s//\1/
17290             q
17291           }
17292           s/.*/./; q'`
17293
17294 # Avoid depending upon Character Ranges.
17295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17298 as_cr_digits='0123456789'
17299 as_cr_alnum=$as_cr_Letters$as_cr_digits
17300
17301 ECHO_C= ECHO_N= ECHO_T=
17302 case `echo -n x` in #(((((
17303 -n*)
17304   case `echo 'xy\c'` in
17305   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17306   xy)  ECHO_C='\c';;
17307   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17308        ECHO_T=' ';;
17309   esac;;
17310 *)
17311   ECHO_N='-n';;
17312 esac
17313
17314 rm -f conf$$ conf$$.exe conf$$.file
17315 if test -d conf$$.dir; then
17316   rm -f conf$$.dir/conf$$.file
17317 else
17318   rm -f conf$$.dir
17319   mkdir conf$$.dir 2>/dev/null
17320 fi
17321 if (echo >conf$$.file) 2>/dev/null; then
17322   if ln -s conf$$.file conf$$ 2>/dev/null; then
17323     as_ln_s='ln -s'
17324     # ... but there are two gotchas:
17325     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17326     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17327     # In both cases, we have to default to `cp -pR'.
17328     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17329       as_ln_s='cp -pR'
17330   elif ln conf$$.file conf$$ 2>/dev/null; then
17331     as_ln_s=ln
17332   else
17333     as_ln_s='cp -pR'
17334   fi
17335 else
17336   as_ln_s='cp -pR'
17337 fi
17338 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17339 rmdir conf$$.dir 2>/dev/null
17340
17341
17342 # as_fn_mkdir_p
17343 # -------------
17344 # Create "$as_dir" as a directory, including parents if necessary.
17345 as_fn_mkdir_p ()
17346 {
17347
17348   case $as_dir in #(
17349   -*) as_dir=./$as_dir;;
17350   esac
17351   test -d "$as_dir" || eval $as_mkdir_p || {
17352     as_dirs=
17353     while :; do
17354       case $as_dir in #(
17355       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17356       *) as_qdir=$as_dir;;
17357       esac
17358       as_dirs="'$as_qdir' $as_dirs"
17359       as_dir=`$as_dirname -- "$as_dir" ||
17360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17361          X"$as_dir" : 'X\(//\)[^/]' \| \
17362          X"$as_dir" : 'X\(//\)$' \| \
17363          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17364 $as_echo X"$as_dir" |
17365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17366             s//\1/
17367             q
17368           }
17369           /^X\(\/\/\)[^/].*/{
17370             s//\1/
17371             q
17372           }
17373           /^X\(\/\/\)$/{
17374             s//\1/
17375             q
17376           }
17377           /^X\(\/\).*/{
17378             s//\1/
17379             q
17380           }
17381           s/.*/./; q'`
17382       test -d "$as_dir" && break
17383     done
17384     test -z "$as_dirs" || eval "mkdir $as_dirs"
17385   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17386
17387
17388 } # as_fn_mkdir_p
17389 if mkdir -p . 2>/dev/null; then
17390   as_mkdir_p='mkdir -p "$as_dir"'
17391 else
17392   test -d ./-p && rmdir ./-p
17393   as_mkdir_p=false
17394 fi
17395
17396
17397 # as_fn_executable_p FILE
17398 # -----------------------
17399 # Test if FILE is an executable regular file.
17400 as_fn_executable_p ()
17401 {
17402   test -f "$1" && test -x "$1"
17403 } # as_fn_executable_p
17404 as_test_x='test -x'
17405 as_executable_p=as_fn_executable_p
17406
17407 # Sed expression to map a string onto a valid CPP name.
17408 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17409
17410 # Sed expression to map a string onto a valid variable name.
17411 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17412
17413
17414 exec 6>&1
17415 ## ----------------------------------- ##
17416 ## Main body of $CONFIG_STATUS script. ##
17417 ## ----------------------------------- ##
17418 _ASEOF
17419 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17420
17421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17422 # Save the log message, to keep $0 and so on meaningful, and to
17423 # report actual input values of CONFIG_FILES etc. instead of their
17424 # values after options handling.
17425 ac_log="
17426 This file was extended by krb5-strength $as_me 2.2, which was
17427 generated by GNU Autoconf 2.69.  Invocation command line was
17428
17429   CONFIG_FILES    = $CONFIG_FILES
17430   CONFIG_HEADERS  = $CONFIG_HEADERS
17431   CONFIG_LINKS    = $CONFIG_LINKS
17432   CONFIG_COMMANDS = $CONFIG_COMMANDS
17433   $ $0 $@
17434
17435 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17436 "
17437
17438 _ACEOF
17439
17440 case $ac_config_files in *"
17441 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17442 esac
17443
17444 case $ac_config_headers in *"
17445 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17446 esac
17447
17448
17449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17450 # Files that config.status was made for.
17451 config_files="$ac_config_files"
17452 config_headers="$ac_config_headers"
17453 config_commands="$ac_config_commands"
17454
17455 _ACEOF
17456
17457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17458 ac_cs_usage="\
17459 \`$as_me' instantiates files and other configuration actions
17460 from templates according to the current configuration.  Unless the files
17461 and actions are specified as TAGs, all are instantiated by default.
17462
17463 Usage: $0 [OPTION]... [TAG]...
17464
17465   -h, --help       print this help, then exit
17466   -V, --version    print version number and configuration settings, then exit
17467       --config     print configuration, then exit
17468   -q, --quiet, --silent
17469                    do not print progress messages
17470   -d, --debug      don't remove temporary files
17471       --recheck    update $as_me by reconfiguring in the same conditions
17472       --file=FILE[:TEMPLATE]
17473                    instantiate the configuration file FILE
17474       --header=FILE[:TEMPLATE]
17475                    instantiate the configuration header FILE
17476
17477 Configuration files:
17478 $config_files
17479
17480 Configuration headers:
17481 $config_headers
17482
17483 Configuration commands:
17484 $config_commands
17485
17486 Report bugs to <eagle@eyrie.org>."
17487
17488 _ACEOF
17489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17490 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17491 ac_cs_version="\\
17492 krb5-strength config.status 2.2
17493 configured by $0, generated by GNU Autoconf 2.69,
17494   with options \\"\$ac_cs_config\\"
17495
17496 Copyright (C) 2012 Free Software Foundation, Inc.
17497 This config.status script is free software; the Free Software Foundation
17498 gives unlimited permission to copy, distribute and modify it."
17499
17500 ac_pwd='$ac_pwd'
17501 srcdir='$srcdir'
17502 INSTALL='$INSTALL'
17503 MKDIR_P='$MKDIR_P'
17504 AWK='$AWK'
17505 test -n "\$AWK" || AWK=awk
17506 _ACEOF
17507
17508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17509 # The default lists apply if the user does not specify any file.
17510 ac_need_defaults=:
17511 while test $# != 0
17512 do
17513   case $1 in
17514   --*=?*)
17515     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17516     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17517     ac_shift=:
17518     ;;
17519   --*=)
17520     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17521     ac_optarg=
17522     ac_shift=:
17523     ;;
17524   *)
17525     ac_option=$1
17526     ac_optarg=$2
17527     ac_shift=shift
17528     ;;
17529   esac
17530
17531   case $ac_option in
17532   # Handling of the options.
17533   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17534     ac_cs_recheck=: ;;
17535   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17536     $as_echo "$ac_cs_version"; exit ;;
17537   --config | --confi | --conf | --con | --co | --c )
17538     $as_echo "$ac_cs_config"; exit ;;
17539   --debug | --debu | --deb | --de | --d | -d )
17540     debug=: ;;
17541   --file | --fil | --fi | --f )
17542     $ac_shift
17543     case $ac_optarg in
17544     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17545     '') as_fn_error $? "missing file argument" ;;
17546     esac
17547     as_fn_append CONFIG_FILES " '$ac_optarg'"
17548     ac_need_defaults=false;;
17549   --header | --heade | --head | --hea )
17550     $ac_shift
17551     case $ac_optarg in
17552     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17553     esac
17554     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17555     ac_need_defaults=false;;
17556   --he | --h)
17557     # Conflict between --help and --header
17558     as_fn_error $? "ambiguous option: \`$1'
17559 Try \`$0 --help' for more information.";;
17560   --help | --hel | -h )
17561     $as_echo "$ac_cs_usage"; exit ;;
17562   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17563   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17564     ac_cs_silent=: ;;
17565
17566   # This is an error.
17567   -*) as_fn_error $? "unrecognized option: \`$1'
17568 Try \`$0 --help' for more information." ;;
17569
17570   *) as_fn_append ac_config_targets " $1"
17571      ac_need_defaults=false ;;
17572
17573   esac
17574   shift
17575 done
17576
17577 ac_configure_extra_args=
17578
17579 if $ac_cs_silent; then
17580   exec 6>/dev/null
17581   ac_configure_extra_args="$ac_configure_extra_args --silent"
17582 fi
17583
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 if \$ac_cs_recheck; then
17587   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17588   shift
17589   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17590   CONFIG_SHELL='$SHELL'
17591   export CONFIG_SHELL
17592   exec "\$@"
17593 fi
17594
17595 _ACEOF
17596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17597 exec 5>>config.log
17598 {
17599   echo
17600   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17601 ## Running $as_me. ##
17602 _ASBOX
17603   $as_echo "$ac_log"
17604 } >&5
17605
17606 _ACEOF
17607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17608 #
17609 # INIT-COMMANDS
17610 #
17611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17612
17613
17614 # The HP-UX ksh and POSIX shell print the target directory to stdout
17615 # if CDPATH is set.
17616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17617
17618 sed_quote_subst='$sed_quote_subst'
17619 double_quote_subst='$double_quote_subst'
17620 delay_variable_subst='$delay_variable_subst'
17621 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17622 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17623 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17624 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17625 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17626 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17627 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17628 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17629 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17630 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17631 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17632 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17633 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17634 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17635 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17636 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17637 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17638 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17639 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17640 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17641 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17642 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17643 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17644 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17645 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17646 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17647 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17648 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17649 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17650 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17651 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17652 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17653 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17654 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17655 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17656 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17657 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17658 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17659 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17660 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17661 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17662 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17663 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17664 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17665 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17666 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17667 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17668 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17669 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17670 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17671 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17672 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17673 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17674 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17675 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17676 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17677 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"`'
17678 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17679 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17680 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17681 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17682 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17683 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17684 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17685 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17686 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17687 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17688 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17689 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17690 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17691 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17692 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17693 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17694 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17695 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17696 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17697 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17698 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17699 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17700 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17701 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17702 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17703 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17704 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17705 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17706 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17707 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17708 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17709 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17710 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17711 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17712 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17713 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17714 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17715 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17716 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17717 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17718 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17719 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17720 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17721 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17722 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17723 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17724 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17725 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17726 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17727 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17728 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17729 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17730 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17731 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17732 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17733 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17734 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17735 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17736 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17737 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17738 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17739 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17740 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17741 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17742 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17743 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17744 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17745 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17746 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17747 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17748 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17749 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17750 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17751
17752 LTCC='$LTCC'
17753 LTCFLAGS='$LTCFLAGS'
17754 compiler='$compiler_DEFAULT'
17755
17756 # A function that is used when there is no print builtin or printf.
17757 func_fallback_echo ()
17758 {
17759   eval 'cat <<_LTECHO_EOF
17760 \$1
17761 _LTECHO_EOF'
17762 }
17763
17764 # Quote evaled strings.
17765 for var in SHELL \
17766 ECHO \
17767 PATH_SEPARATOR \
17768 SED \
17769 GREP \
17770 EGREP \
17771 FGREP \
17772 LD \
17773 NM \
17774 LN_S \
17775 lt_SP2NL \
17776 lt_NL2SP \
17777 reload_flag \
17778 OBJDUMP \
17779 deplibs_check_method \
17780 file_magic_cmd \
17781 file_magic_glob \
17782 want_nocaseglob \
17783 DLLTOOL \
17784 sharedlib_from_linklib_cmd \
17785 AR \
17786 AR_FLAGS \
17787 archiver_list_spec \
17788 STRIP \
17789 RANLIB \
17790 CC \
17791 CFLAGS \
17792 compiler \
17793 lt_cv_sys_global_symbol_pipe \
17794 lt_cv_sys_global_symbol_to_cdecl \
17795 lt_cv_sys_global_symbol_to_c_name_address \
17796 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17797 nm_file_list_spec \
17798 lt_prog_compiler_no_builtin_flag \
17799 lt_prog_compiler_pic \
17800 lt_prog_compiler_wl \
17801 lt_prog_compiler_static \
17802 lt_cv_prog_compiler_c_o \
17803 need_locks \
17804 MANIFEST_TOOL \
17805 DSYMUTIL \
17806 NMEDIT \
17807 LIPO \
17808 OTOOL \
17809 OTOOL64 \
17810 shrext_cmds \
17811 export_dynamic_flag_spec \
17812 whole_archive_flag_spec \
17813 compiler_needs_object \
17814 with_gnu_ld \
17815 allow_undefined_flag \
17816 no_undefined_flag \
17817 hardcode_libdir_flag_spec \
17818 hardcode_libdir_separator \
17819 exclude_expsyms \
17820 include_expsyms \
17821 file_list_spec \
17822 variables_saved_for_relink \
17823 libname_spec \
17824 library_names_spec \
17825 soname_spec \
17826 install_override_mode \
17827 finish_eval \
17828 old_striplib \
17829 striplib; do
17830     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17831     *[\\\\\\\`\\"\\\$]*)
17832       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17833       ;;
17834     *)
17835       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17836       ;;
17837     esac
17838 done
17839
17840 # Double-quote double-evaled strings.
17841 for var in reload_cmds \
17842 old_postinstall_cmds \
17843 old_postuninstall_cmds \
17844 old_archive_cmds \
17845 extract_expsyms_cmds \
17846 old_archive_from_new_cmds \
17847 old_archive_from_expsyms_cmds \
17848 archive_cmds \
17849 archive_expsym_cmds \
17850 module_cmds \
17851 module_expsym_cmds \
17852 export_symbols_cmds \
17853 prelink_cmds \
17854 postlink_cmds \
17855 postinstall_cmds \
17856 postuninstall_cmds \
17857 finish_cmds \
17858 sys_lib_search_path_spec \
17859 sys_lib_dlsearch_path_spec; do
17860     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17861     *[\\\\\\\`\\"\\\$]*)
17862       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17863       ;;
17864     *)
17865       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17866       ;;
17867     esac
17868 done
17869
17870 ac_aux_dir='$ac_aux_dir'
17871 xsi_shell='$xsi_shell'
17872 lt_shell_append='$lt_shell_append'
17873
17874 # See if we are running on zsh, and set the options which allow our
17875 # commands through without removal of \ escapes INIT.
17876 if test -n "\${ZSH_VERSION+set}" ; then
17877    setopt NO_GLOB_SUBST
17878 fi
17879
17880
17881     PACKAGE='$PACKAGE'
17882     VERSION='$VERSION'
17883     TIMESTAMP='$TIMESTAMP'
17884     RM='$RM'
17885     ofile='$ofile'
17886
17887
17888
17889
17890 _ACEOF
17891
17892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17893
17894 # Handling of arguments.
17895 for ac_config_target in $ac_config_targets
17896 do
17897   case $ac_config_target in
17898     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17899     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17900     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17901     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17902
17903   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17904   esac
17905 done
17906
17907
17908 # If the user did not use the arguments to specify the items to instantiate,
17909 # then the envvar interface is used.  Set only those that are not.
17910 # We use the long form for the default assignment because of an extremely
17911 # bizarre bug on SunOS 4.1.3.
17912 if $ac_need_defaults; then
17913   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17914   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17915   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17916 fi
17917
17918 # Have a temporary directory for convenience.  Make it in the build tree
17919 # simply because there is no reason against having it here, and in addition,
17920 # creating and moving files from /tmp can sometimes cause problems.
17921 # Hook for its removal unless debugging.
17922 # Note that there is a small window in which the directory will not be cleaned:
17923 # after its creation but before its name has been assigned to `$tmp'.
17924 $debug ||
17925 {
17926   tmp= ac_tmp=
17927   trap 'exit_status=$?
17928   : "${ac_tmp:=$tmp}"
17929   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17930 ' 0
17931   trap 'as_fn_exit 1' 1 2 13 15
17932 }
17933 # Create a (secure) tmp directory for tmp files.
17934
17935 {
17936   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17937   test -d "$tmp"
17938 }  ||
17939 {
17940   tmp=./conf$$-$RANDOM
17941   (umask 077 && mkdir "$tmp")
17942 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17943 ac_tmp=$tmp
17944
17945 # Set up the scripts for CONFIG_FILES section.
17946 # No need to generate them if there are no CONFIG_FILES.
17947 # This happens for instance with `./config.status config.h'.
17948 if test -n "$CONFIG_FILES"; then
17949
17950
17951 ac_cr=`echo X | tr X '\015'`
17952 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17953 # But we know of no other shell where ac_cr would be empty at this
17954 # point, so we can use a bashism as a fallback.
17955 if test "x$ac_cr" = x; then
17956   eval ac_cr=\$\'\\r\'
17957 fi
17958 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17959 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17960   ac_cs_awk_cr='\\r'
17961 else
17962   ac_cs_awk_cr=$ac_cr
17963 fi
17964
17965 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17966 _ACEOF
17967
17968
17969 {
17970   echo "cat >conf$$subs.awk <<_ACEOF" &&
17971   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17972   echo "_ACEOF"
17973 } >conf$$subs.sh ||
17974   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17975 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17976 ac_delim='%!_!# '
17977 for ac_last_try in false false false false false :; do
17978   . ./conf$$subs.sh ||
17979     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17980
17981   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17982   if test $ac_delim_n = $ac_delim_num; then
17983     break
17984   elif $ac_last_try; then
17985     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17986   else
17987     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17988   fi
17989 done
17990 rm -f conf$$subs.sh
17991
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17994 _ACEOF
17995 sed -n '
17996 h
17997 s/^/S["/; s/!.*/"]=/
17998 p
17999 g
18000 s/^[^!]*!//
18001 :repl
18002 t repl
18003 s/'"$ac_delim"'$//
18004 t delim
18005 :nl
18006 h
18007 s/\(.\{148\}\)..*/\1/
18008 t more1
18009 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18010 p
18011 n
18012 b repl
18013 :more1
18014 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18015 p
18016 g
18017 s/.\{148\}//
18018 t nl
18019 :delim
18020 h
18021 s/\(.\{148\}\)..*/\1/
18022 t more2
18023 s/["\\]/\\&/g; s/^/"/; s/$/"/
18024 p
18025 b
18026 :more2
18027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18028 p
18029 g
18030 s/.\{148\}//
18031 t delim
18032 ' <conf$$subs.awk | sed '
18033 /^[^""]/{
18034   N
18035   s/\n//
18036 }
18037 ' >>$CONFIG_STATUS || ac_write_fail=1
18038 rm -f conf$$subs.awk
18039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18040 _ACAWK
18041 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18042   for (key in S) S_is_set[key] = 1
18043   FS = "\a"
18044
18045 }
18046 {
18047   line = $ 0
18048   nfields = split(line, field, "@")
18049   substed = 0
18050   len = length(field[1])
18051   for (i = 2; i < nfields; i++) {
18052     key = field[i]
18053     keylen = length(key)
18054     if (S_is_set[key]) {
18055       value = S[key]
18056       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18057       len += length(value) + length(field[++i])
18058       substed = 1
18059     } else
18060       len += 1 + keylen
18061   }
18062
18063   print line
18064 }
18065
18066 _ACAWK
18067 _ACEOF
18068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18069 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18070   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18071 else
18072   cat
18073 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18074   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18075 _ACEOF
18076
18077 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18078 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18079 # trailing colons and then remove the whole line if VPATH becomes empty
18080 # (actually we leave an empty line to preserve line numbers).
18081 if test "x$srcdir" = x.; then
18082   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18083 h
18084 s///
18085 s/^/:/
18086 s/[      ]*$/:/
18087 s/:\$(srcdir):/:/g
18088 s/:\${srcdir}:/:/g
18089 s/:@srcdir@:/:/g
18090 s/^:*//
18091 s/:*$//
18092 x
18093 s/\(=[   ]*\).*/\1/
18094 G
18095 s/\n//
18096 s/^[^=]*=[       ]*$//
18097 }'
18098 fi
18099
18100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18101 fi # test -n "$CONFIG_FILES"
18102
18103 # Set up the scripts for CONFIG_HEADERS section.
18104 # No need to generate them if there are no CONFIG_HEADERS.
18105 # This happens for instance with `./config.status Makefile'.
18106 if test -n "$CONFIG_HEADERS"; then
18107 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18108 BEGIN {
18109 _ACEOF
18110
18111 # Transform confdefs.h into an awk script `defines.awk', embedded as
18112 # here-document in config.status, that substitutes the proper values into
18113 # config.h.in to produce config.h.
18114
18115 # Create a delimiter string that does not exist in confdefs.h, to ease
18116 # handling of long lines.
18117 ac_delim='%!_!# '
18118 for ac_last_try in false false :; do
18119   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18120   if test -z "$ac_tt"; then
18121     break
18122   elif $ac_last_try; then
18123     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18124   else
18125     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18126   fi
18127 done
18128
18129 # For the awk script, D is an array of macro values keyed by name,
18130 # likewise P contains macro parameters if any.  Preserve backslash
18131 # newline sequences.
18132
18133 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18134 sed -n '
18135 s/.\{148\}/&'"$ac_delim"'/g
18136 t rset
18137 :rset
18138 s/^[     ]*#[    ]*define[       ][      ]*/ /
18139 t def
18140 d
18141 :def
18142 s/\\$//
18143 t bsnl
18144 s/["\\]/\\&/g
18145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18146 D["\1"]=" \3"/p
18147 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18148 d
18149 :bsnl
18150 s/["\\]/\\&/g
18151 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18152 D["\1"]=" \3\\\\\\n"\\/p
18153 t cont
18154 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18155 t cont
18156 d
18157 :cont
18158 n
18159 s/.\{148\}/&'"$ac_delim"'/g
18160 t clear
18161 :clear
18162 s/\\$//
18163 t bsnlc
18164 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18165 d
18166 :bsnlc
18167 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18168 b cont
18169 ' <confdefs.h | sed '
18170 s/'"$ac_delim"'/"\\\
18171 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18172
18173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18174   for (key in D) D_is_set[key] = 1
18175   FS = "\a"
18176 }
18177 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18178   line = \$ 0
18179   split(line, arg, " ")
18180   if (arg[1] == "#") {
18181     defundef = arg[2]
18182     mac1 = arg[3]
18183   } else {
18184     defundef = substr(arg[1], 2)
18185     mac1 = arg[2]
18186   }
18187   split(mac1, mac2, "(") #)
18188   macro = mac2[1]
18189   prefix = substr(line, 1, index(line, defundef) - 1)
18190   if (D_is_set[macro]) {
18191     # Preserve the white space surrounding the "#".
18192     print prefix "define", macro P[macro] D[macro]
18193     next
18194   } else {
18195     # Replace #undef with comments.  This is necessary, for example,
18196     # in the case of _POSIX_SOURCE, which is predefined and required
18197     # on some systems where configure will not decide to define it.
18198     if (defundef == "undef") {
18199       print "/*", prefix defundef, macro, "*/"
18200       next
18201     }
18202   }
18203 }
18204 { print }
18205 _ACAWK
18206 _ACEOF
18207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18208   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18209 fi # test -n "$CONFIG_HEADERS"
18210
18211
18212 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18213 shift
18214 for ac_tag
18215 do
18216   case $ac_tag in
18217   :[FHLC]) ac_mode=$ac_tag; continue;;
18218   esac
18219   case $ac_mode$ac_tag in
18220   :[FHL]*:*);;
18221   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18222   :[FH]-) ac_tag=-:-;;
18223   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18224   esac
18225   ac_save_IFS=$IFS
18226   IFS=:
18227   set x $ac_tag
18228   IFS=$ac_save_IFS
18229   shift
18230   ac_file=$1
18231   shift
18232
18233   case $ac_mode in
18234   :L) ac_source=$1;;
18235   :[FH])
18236     ac_file_inputs=
18237     for ac_f
18238     do
18239       case $ac_f in
18240       -) ac_f="$ac_tmp/stdin";;
18241       *) # Look for the file first in the build tree, then in the source tree
18242          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18243          # because $ac_f cannot contain `:'.
18244          test -f "$ac_f" ||
18245            case $ac_f in
18246            [\\/$]*) false;;
18247            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18248            esac ||
18249            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18250       esac
18251       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18252       as_fn_append ac_file_inputs " '$ac_f'"
18253     done
18254
18255     # Let's still pretend it is `configure' which instantiates (i.e., don't
18256     # use $as_me), people would be surprised to read:
18257     #    /* config.h.  Generated by config.status.  */
18258     configure_input='Generated from '`
18259           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18260         `' by configure.'
18261     if test x"$ac_file" != x-; then
18262       configure_input="$ac_file.  $configure_input"
18263       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18264 $as_echo "$as_me: creating $ac_file" >&6;}
18265     fi
18266     # Neutralize special characters interpreted by sed in replacement strings.
18267     case $configure_input in #(
18268     *\&* | *\|* | *\\* )
18269        ac_sed_conf_input=`$as_echo "$configure_input" |
18270        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18271     *) ac_sed_conf_input=$configure_input;;
18272     esac
18273
18274     case $ac_tag in
18275     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18276       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18277     esac
18278     ;;
18279   esac
18280
18281   ac_dir=`$as_dirname -- "$ac_file" ||
18282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18283          X"$ac_file" : 'X\(//\)[^/]' \| \
18284          X"$ac_file" : 'X\(//\)$' \| \
18285          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18286 $as_echo X"$ac_file" |
18287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18288             s//\1/
18289             q
18290           }
18291           /^X\(\/\/\)[^/].*/{
18292             s//\1/
18293             q
18294           }
18295           /^X\(\/\/\)$/{
18296             s//\1/
18297             q
18298           }
18299           /^X\(\/\).*/{
18300             s//\1/
18301             q
18302           }
18303           s/.*/./; q'`
18304   as_dir="$ac_dir"; as_fn_mkdir_p
18305   ac_builddir=.
18306
18307 case "$ac_dir" in
18308 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18309 *)
18310   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18311   # A ".." for each directory in $ac_dir_suffix.
18312   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18313   case $ac_top_builddir_sub in
18314   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18315   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18316   esac ;;
18317 esac
18318 ac_abs_top_builddir=$ac_pwd
18319 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18320 # for backward compatibility:
18321 ac_top_builddir=$ac_top_build_prefix
18322
18323 case $srcdir in
18324   .)  # We are building in place.
18325     ac_srcdir=.
18326     ac_top_srcdir=$ac_top_builddir_sub
18327     ac_abs_top_srcdir=$ac_pwd ;;
18328   [\\/]* | ?:[\\/]* )  # Absolute name.
18329     ac_srcdir=$srcdir$ac_dir_suffix;
18330     ac_top_srcdir=$srcdir
18331     ac_abs_top_srcdir=$srcdir ;;
18332   *) # Relative name.
18333     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18334     ac_top_srcdir=$ac_top_build_prefix$srcdir
18335     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18336 esac
18337 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18338
18339
18340   case $ac_mode in
18341   :F)
18342   #
18343   # CONFIG_FILE
18344   #
18345
18346   case $INSTALL in
18347   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18348   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18349   esac
18350   ac_MKDIR_P=$MKDIR_P
18351   case $MKDIR_P in
18352   [\\/$]* | ?:[\\/]* ) ;;
18353   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18354   esac
18355 _ACEOF
18356
18357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18358 # If the template does not know about datarootdir, expand it.
18359 # FIXME: This hack should be removed a few years after 2.60.
18360 ac_datarootdir_hack=; ac_datarootdir_seen=
18361 ac_sed_dataroot='
18362 /datarootdir/ {
18363   p
18364   q
18365 }
18366 /@datadir@/p
18367 /@docdir@/p
18368 /@infodir@/p
18369 /@localedir@/p
18370 /@mandir@/p'
18371 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18372 *datarootdir*) ac_datarootdir_seen=yes;;
18373 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18375 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18376 _ACEOF
18377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18378   ac_datarootdir_hack='
18379   s&@datadir@&$datadir&g
18380   s&@docdir@&$docdir&g
18381   s&@infodir@&$infodir&g
18382   s&@localedir@&$localedir&g
18383   s&@mandir@&$mandir&g
18384   s&\\\${datarootdir}&$datarootdir&g' ;;
18385 esac
18386 _ACEOF
18387
18388 # Neutralize VPATH when `$srcdir' = `.'.
18389 # Shell code in configure.ac might set extrasub.
18390 # FIXME: do we really want to maintain this feature?
18391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18392 ac_sed_extra="$ac_vpsub
18393 $extrasub
18394 _ACEOF
18395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18396 :t
18397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18398 s|@configure_input@|$ac_sed_conf_input|;t t
18399 s&@top_builddir@&$ac_top_builddir_sub&;t t
18400 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18401 s&@srcdir@&$ac_srcdir&;t t
18402 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18403 s&@top_srcdir@&$ac_top_srcdir&;t t
18404 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18405 s&@builddir@&$ac_builddir&;t t
18406 s&@abs_builddir@&$ac_abs_builddir&;t t
18407 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18408 s&@INSTALL@&$ac_INSTALL&;t t
18409 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18410 $ac_datarootdir_hack
18411 "
18412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18413   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18414
18415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18416   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18417   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18418       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18419   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18420 which seems to be undefined.  Please make sure it is defined" >&5
18421 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18422 which seems to be undefined.  Please make sure it is defined" >&2;}
18423
18424   rm -f "$ac_tmp/stdin"
18425   case $ac_file in
18426   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18427   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18428   esac \
18429   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18430  ;;
18431   :H)
18432   #
18433   # CONFIG_HEADER
18434   #
18435   if test x"$ac_file" != x-; then
18436     {
18437       $as_echo "/* $configure_input  */" \
18438       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18439     } >"$ac_tmp/config.h" \
18440       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18441     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18442       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18443 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18444     else
18445       rm -f "$ac_file"
18446       mv "$ac_tmp/config.h" "$ac_file" \
18447         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18448     fi
18449   else
18450     $as_echo "/* $configure_input  */" \
18451       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18452       || as_fn_error $? "could not create -" "$LINENO" 5
18453   fi
18454 # Compute "$ac_file"'s index in $config_headers.
18455 _am_arg="$ac_file"
18456 _am_stamp_count=1
18457 for _am_header in $config_headers :; do
18458   case $_am_header in
18459     $_am_arg | $_am_arg:* )
18460       break ;;
18461     * )
18462       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18463   esac
18464 done
18465 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18466 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18467          X"$_am_arg" : 'X\(//\)[^/]' \| \
18468          X"$_am_arg" : 'X\(//\)$' \| \
18469          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18470 $as_echo X"$_am_arg" |
18471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18472             s//\1/
18473             q
18474           }
18475           /^X\(\/\/\)[^/].*/{
18476             s//\1/
18477             q
18478           }
18479           /^X\(\/\/\)$/{
18480             s//\1/
18481             q
18482           }
18483           /^X\(\/\).*/{
18484             s//\1/
18485             q
18486           }
18487           s/.*/./; q'`/stamp-h$_am_stamp_count
18488  ;;
18489
18490   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18491 $as_echo "$as_me: executing $ac_file commands" >&6;}
18492  ;;
18493   esac
18494
18495
18496   case $ac_file$ac_mode in
18497     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18498   # Older Autoconf quotes --file arguments for eval, but not when files
18499   # are listed without --file.  Let's play safe and only enable the eval
18500   # if we detect the quoting.
18501   case $CONFIG_FILES in
18502   *\'*) eval set x "$CONFIG_FILES" ;;
18503   *)   set x $CONFIG_FILES ;;
18504   esac
18505   shift
18506   for mf
18507   do
18508     # Strip MF so we end up with the name of the file.
18509     mf=`echo "$mf" | sed -e 's/:.*$//'`
18510     # Check whether this is an Automake generated Makefile or not.
18511     # We used to match only the files named 'Makefile.in', but
18512     # some people rename them; so instead we look at the file content.
18513     # Grep'ing the first line is not enough: some people post-process
18514     # each Makefile.in and add a new line on top of each file to say so.
18515     # Grep'ing the whole file is not good either: AIX grep has a line
18516     # limit of 2048, but all sed's we know have understand at least 4000.
18517     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18518       dirpart=`$as_dirname -- "$mf" ||
18519 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18520          X"$mf" : 'X\(//\)[^/]' \| \
18521          X"$mf" : 'X\(//\)$' \| \
18522          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18523 $as_echo X"$mf" |
18524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18525             s//\1/
18526             q
18527           }
18528           /^X\(\/\/\)[^/].*/{
18529             s//\1/
18530             q
18531           }
18532           /^X\(\/\/\)$/{
18533             s//\1/
18534             q
18535           }
18536           /^X\(\/\).*/{
18537             s//\1/
18538             q
18539           }
18540           s/.*/./; q'`
18541     else
18542       continue
18543     fi
18544     # Extract the definition of DEPDIR, am__include, and am__quote
18545     # from the Makefile without running 'make'.
18546     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18547     test -z "$DEPDIR" && continue
18548     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18549     test -z "$am__include" && continue
18550     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18551     # Find all dependency output files, they are included files with
18552     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18553     # simplest approach to changing $(DEPDIR) to its actual value in the
18554     # expansion.
18555     for file in `sed -n "
18556       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18557          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18558       # Make sure the directory exists.
18559       test -f "$dirpart/$file" && continue
18560       fdir=`$as_dirname -- "$file" ||
18561 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18562          X"$file" : 'X\(//\)[^/]' \| \
18563          X"$file" : 'X\(//\)$' \| \
18564          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18565 $as_echo X"$file" |
18566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18567             s//\1/
18568             q
18569           }
18570           /^X\(\/\/\)[^/].*/{
18571             s//\1/
18572             q
18573           }
18574           /^X\(\/\/\)$/{
18575             s//\1/
18576             q
18577           }
18578           /^X\(\/\).*/{
18579             s//\1/
18580             q
18581           }
18582           s/.*/./; q'`
18583       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18584       # echo "creating $dirpart/$file"
18585       echo '# dummy' > "$dirpart/$file"
18586     done
18587   done
18588 }
18589  ;;
18590     "libtool":C)
18591
18592     # See if we are running on zsh, and set the options which allow our
18593     # commands through without removal of \ escapes.
18594     if test -n "${ZSH_VERSION+set}" ; then
18595       setopt NO_GLOB_SUBST
18596     fi
18597
18598     cfgfile="${ofile}T"
18599     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18600     $RM "$cfgfile"
18601
18602     cat <<_LT_EOF >> "$cfgfile"
18603 #! $SHELL
18604
18605 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18606 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18608 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18609 #
18610 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18611 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18612 #                 Foundation, Inc.
18613 #   Written by Gordon Matzigkeit, 1996
18614 #
18615 #   This file is part of GNU Libtool.
18616 #
18617 # GNU Libtool is free software; you can redistribute it and/or
18618 # modify it under the terms of the GNU General Public License as
18619 # published by the Free Software Foundation; either version 2 of
18620 # the License, or (at your option) any later version.
18621 #
18622 # As a special exception to the GNU General Public License,
18623 # if you distribute this file as part of a program or library that
18624 # is built using GNU Libtool, you may include this file under the
18625 # same distribution terms that you use for the rest of that program.
18626 #
18627 # GNU Libtool is distributed in the hope that it will be useful,
18628 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18629 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18630 # GNU General Public License for more details.
18631 #
18632 # You should have received a copy of the GNU General Public License
18633 # along with GNU Libtool; see the file COPYING.  If not, a copy
18634 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18635 # obtained by writing to the Free Software Foundation, Inc.,
18636 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18637
18638
18639 # The names of the tagged configurations supported by this script.
18640 available_tags=""
18641
18642 # ### BEGIN LIBTOOL CONFIG
18643
18644 # Whether or not to build static libraries.
18645 build_old_libs=$enable_static
18646
18647 # Which release of libtool.m4 was used?
18648 macro_version=$macro_version
18649 macro_revision=$macro_revision
18650
18651 # Whether or not to build shared libraries.
18652 build_libtool_libs=$enable_shared
18653
18654 # What type of objects to build.
18655 pic_mode=$pic_mode
18656
18657 # Whether or not to optimize for fast installation.
18658 fast_install=$enable_fast_install
18659
18660 # Shell to use when invoking shell scripts.
18661 SHELL=$lt_SHELL
18662
18663 # An echo program that protects backslashes.
18664 ECHO=$lt_ECHO
18665
18666 # The PATH separator for the build system.
18667 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18668
18669 # The host system.
18670 host_alias=$host_alias
18671 host=$host
18672 host_os=$host_os
18673
18674 # The build system.
18675 build_alias=$build_alias
18676 build=$build
18677 build_os=$build_os
18678
18679 # A sed program that does not truncate output.
18680 SED=$lt_SED
18681
18682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18683 Xsed="\$SED -e 1s/^X//"
18684
18685 # A grep program that handles long lines.
18686 GREP=$lt_GREP
18687
18688 # An ERE matcher.
18689 EGREP=$lt_EGREP
18690
18691 # A literal string matcher.
18692 FGREP=$lt_FGREP
18693
18694 # A BSD- or MS-compatible name lister.
18695 NM=$lt_NM
18696
18697 # Whether we need soft or hard links.
18698 LN_S=$lt_LN_S
18699
18700 # What is the maximum length of a command?
18701 max_cmd_len=$max_cmd_len
18702
18703 # Object file suffix (normally "o").
18704 objext=$ac_objext
18705
18706 # Executable file suffix (normally "").
18707 exeext=$exeext
18708
18709 # whether the shell understands "unset".
18710 lt_unset=$lt_unset
18711
18712 # turn spaces into newlines.
18713 SP2NL=$lt_lt_SP2NL
18714
18715 # turn newlines into spaces.
18716 NL2SP=$lt_lt_NL2SP
18717
18718 # convert \$build file names to \$host format.
18719 to_host_file_cmd=$lt_cv_to_host_file_cmd
18720
18721 # convert \$build files to toolchain format.
18722 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18723
18724 # An object symbol dumper.
18725 OBJDUMP=$lt_OBJDUMP
18726
18727 # Method to check whether dependent libraries are shared objects.
18728 deplibs_check_method=$lt_deplibs_check_method
18729
18730 # Command to use when deplibs_check_method = "file_magic".
18731 file_magic_cmd=$lt_file_magic_cmd
18732
18733 # How to find potential files when deplibs_check_method = "file_magic".
18734 file_magic_glob=$lt_file_magic_glob
18735
18736 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18737 want_nocaseglob=$lt_want_nocaseglob
18738
18739 # DLL creation program.
18740 DLLTOOL=$lt_DLLTOOL
18741
18742 # Command to associate shared and link libraries.
18743 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18744
18745 # The archiver.
18746 AR=$lt_AR
18747
18748 # Flags to create an archive.
18749 AR_FLAGS=$lt_AR_FLAGS
18750
18751 # How to feed a file listing to the archiver.
18752 archiver_list_spec=$lt_archiver_list_spec
18753
18754 # A symbol stripping program.
18755 STRIP=$lt_STRIP
18756
18757 # Commands used to install an old-style archive.
18758 RANLIB=$lt_RANLIB
18759 old_postinstall_cmds=$lt_old_postinstall_cmds
18760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18761
18762 # Whether to use a lock for old archive extraction.
18763 lock_old_archive_extraction=$lock_old_archive_extraction
18764
18765 # A C compiler.
18766 LTCC=$lt_CC
18767
18768 # LTCC compiler flags.
18769 LTCFLAGS=$lt_CFLAGS
18770
18771 # Take the output of nm and produce a listing of raw symbols and C names.
18772 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18773
18774 # Transform the output of nm in a proper C declaration.
18775 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18776
18777 # Transform the output of nm in a C name address pair.
18778 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18779
18780 # Transform the output of nm in a C name address pair when lib prefix is needed.
18781 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18782
18783 # Specify filename containing input files for \$NM.
18784 nm_file_list_spec=$lt_nm_file_list_spec
18785
18786 # The root where to search for dependent libraries,and in which our libraries should be installed.
18787 lt_sysroot=$lt_sysroot
18788
18789 # The name of the directory that contains temporary libtool files.
18790 objdir=$objdir
18791
18792 # Used to examine libraries when file_magic_cmd begins with "file".
18793 MAGIC_CMD=$MAGIC_CMD
18794
18795 # Must we lock files when doing compilation?
18796 need_locks=$lt_need_locks
18797
18798 # Manifest tool.
18799 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18800
18801 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18802 DSYMUTIL=$lt_DSYMUTIL
18803
18804 # Tool to change global to local symbols on Mac OS X.
18805 NMEDIT=$lt_NMEDIT
18806
18807 # Tool to manipulate fat objects and archives on Mac OS X.
18808 LIPO=$lt_LIPO
18809
18810 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18811 OTOOL=$lt_OTOOL
18812
18813 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18814 OTOOL64=$lt_OTOOL64
18815
18816 # Old archive suffix (normally "a").
18817 libext=$libext
18818
18819 # Shared library suffix (normally ".so").
18820 shrext_cmds=$lt_shrext_cmds
18821
18822 # The commands to extract the exported symbol list from a shared archive.
18823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18824
18825 # Variables whose values should be saved in libtool wrapper scripts and
18826 # restored at link time.
18827 variables_saved_for_relink=$lt_variables_saved_for_relink
18828
18829 # Do we need the "lib" prefix for modules?
18830 need_lib_prefix=$need_lib_prefix
18831
18832 # Do we need a version for libraries?
18833 need_version=$need_version
18834
18835 # Library versioning type.
18836 version_type=$version_type
18837
18838 # Shared library runtime path variable.
18839 runpath_var=$runpath_var
18840
18841 # Shared library path variable.
18842 shlibpath_var=$shlibpath_var
18843
18844 # Is shlibpath searched before the hard-coded library search path?
18845 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18846
18847 # Format of library name prefix.
18848 libname_spec=$lt_libname_spec
18849
18850 # List of archive names.  First name is the real one, the rest are links.
18851 # The last name is the one that the linker finds with -lNAME
18852 library_names_spec=$lt_library_names_spec
18853
18854 # The coded name of the library, if different from the real name.
18855 soname_spec=$lt_soname_spec
18856
18857 # Permission mode override for installation of shared libraries.
18858 install_override_mode=$lt_install_override_mode
18859
18860 # Command to use after installation of a shared archive.
18861 postinstall_cmds=$lt_postinstall_cmds
18862
18863 # Command to use after uninstallation of a shared archive.
18864 postuninstall_cmds=$lt_postuninstall_cmds
18865
18866 # Commands used to finish a libtool library installation in a directory.
18867 finish_cmds=$lt_finish_cmds
18868
18869 # As "finish_cmds", except a single script fragment to be evaled but
18870 # not shown.
18871 finish_eval=$lt_finish_eval
18872
18873 # Whether we should hardcode library paths into libraries.
18874 hardcode_into_libs=$hardcode_into_libs
18875
18876 # Compile-time system search path for libraries.
18877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18878
18879 # Run-time system search path for libraries.
18880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18881
18882 # Whether dlopen is supported.
18883 dlopen_support=$enable_dlopen
18884
18885 # Whether dlopen of programs is supported.
18886 dlopen_self=$enable_dlopen_self
18887
18888 # Whether dlopen of statically linked programs is supported.
18889 dlopen_self_static=$enable_dlopen_self_static
18890
18891 # Commands to strip libraries.
18892 old_striplib=$lt_old_striplib
18893 striplib=$lt_striplib
18894
18895
18896 # The linker used to build libraries.
18897 LD=$lt_LD
18898
18899 # How to create reloadable object files.
18900 reload_flag=$lt_reload_flag
18901 reload_cmds=$lt_reload_cmds
18902
18903 # Commands used to build an old-style archive.
18904 old_archive_cmds=$lt_old_archive_cmds
18905
18906 # A language specific compiler.
18907 CC=$lt_compiler
18908
18909 # Is the compiler the GNU compiler?
18910 with_gcc=$GCC
18911
18912 # Compiler flag to turn off builtin functions.
18913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18914
18915 # Additional compiler flags for building library objects.
18916 pic_flag=$lt_lt_prog_compiler_pic
18917
18918 # How to pass a linker flag through the compiler.
18919 wl=$lt_lt_prog_compiler_wl
18920
18921 # Compiler flag to prevent dynamic linking.
18922 link_static_flag=$lt_lt_prog_compiler_static
18923
18924 # Does compiler simultaneously support -c and -o options?
18925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18926
18927 # Whether or not to add -lc for building shared libraries.
18928 build_libtool_need_lc=$archive_cmds_need_lc
18929
18930 # Whether or not to disallow shared libs when runtime libs are static.
18931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18932
18933 # Compiler flag to allow reflexive dlopens.
18934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18935
18936 # Compiler flag to generate shared objects directly from archives.
18937 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18938
18939 # Whether the compiler copes with passing no objects directly.
18940 compiler_needs_object=$lt_compiler_needs_object
18941
18942 # Create an old-style archive from a shared archive.
18943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18944
18945 # Create a temporary old-style archive to link instead of a shared archive.
18946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18947
18948 # Commands used to build a shared archive.
18949 archive_cmds=$lt_archive_cmds
18950 archive_expsym_cmds=$lt_archive_expsym_cmds
18951
18952 # Commands used to build a loadable module if different from building
18953 # a shared archive.
18954 module_cmds=$lt_module_cmds
18955 module_expsym_cmds=$lt_module_expsym_cmds
18956
18957 # Whether we are building with GNU ld or not.
18958 with_gnu_ld=$lt_with_gnu_ld
18959
18960 # Flag that allows shared libraries with undefined symbols to be built.
18961 allow_undefined_flag=$lt_allow_undefined_flag
18962
18963 # Flag that enforces no undefined symbols.
18964 no_undefined_flag=$lt_no_undefined_flag
18965
18966 # Flag to hardcode \$libdir into a binary during linking.
18967 # This must work even if \$libdir does not exist
18968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18969
18970 # Whether we need a single "-rpath" flag with a separated argument.
18971 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18972
18973 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18974 # DIR into the resulting binary.
18975 hardcode_direct=$hardcode_direct
18976
18977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18978 # DIR into the resulting binary and the resulting library dependency is
18979 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18980 # library is relocated.
18981 hardcode_direct_absolute=$hardcode_direct_absolute
18982
18983 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18984 # into the resulting binary.
18985 hardcode_minus_L=$hardcode_minus_L
18986
18987 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18988 # into the resulting binary.
18989 hardcode_shlibpath_var=$hardcode_shlibpath_var
18990
18991 # Set to "yes" if building a shared library automatically hardcodes DIR
18992 # into the library and all subsequent libraries and executables linked
18993 # against it.
18994 hardcode_automatic=$hardcode_automatic
18995
18996 # Set to yes if linker adds runtime paths of dependent libraries
18997 # to runtime path list.
18998 inherit_rpath=$inherit_rpath
18999
19000 # Whether libtool must link a program against all its dependency libraries.
19001 link_all_deplibs=$link_all_deplibs
19002
19003 # Set to "yes" if exported symbols are required.
19004 always_export_symbols=$always_export_symbols
19005
19006 # The commands to list exported symbols.
19007 export_symbols_cmds=$lt_export_symbols_cmds
19008
19009 # Symbols that should not be listed in the preloaded symbols.
19010 exclude_expsyms=$lt_exclude_expsyms
19011
19012 # Symbols that must always be exported.
19013 include_expsyms=$lt_include_expsyms
19014
19015 # Commands necessary for linking programs (against libraries) with templates.
19016 prelink_cmds=$lt_prelink_cmds
19017
19018 # Commands necessary for finishing linking programs.
19019 postlink_cmds=$lt_postlink_cmds
19020
19021 # Specify filename containing input files.
19022 file_list_spec=$lt_file_list_spec
19023
19024 # How to hardcode a shared library path into an executable.
19025 hardcode_action=$hardcode_action
19026
19027 # ### END LIBTOOL CONFIG
19028
19029 _LT_EOF
19030
19031   case $host_os in
19032   aix3*)
19033     cat <<\_LT_EOF >> "$cfgfile"
19034 # AIX sometimes has problems with the GCC collect2 program.  For some
19035 # reason, if we set the COLLECT_NAMES environment variable, the problems
19036 # vanish in a puff of smoke.
19037 if test "X${COLLECT_NAMES+set}" != Xset; then
19038   COLLECT_NAMES=
19039   export COLLECT_NAMES
19040 fi
19041 _LT_EOF
19042     ;;
19043   esac
19044
19045
19046 ltmain="$ac_aux_dir/ltmain.sh"
19047
19048
19049   # We use sed instead of cat because bash on DJGPP gets confused if
19050   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19051   # text mode, it properly converts lines to CR/LF.  This bash problem
19052   # is reportedly fixed, but why not run on old versions too?
19053   sed '$q' "$ltmain" >> "$cfgfile" \
19054      || (rm -f "$cfgfile"; exit 1)
19055
19056   if test x"$xsi_shell" = xyes; then
19057   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19058 func_dirname ()\
19059 {\
19060 \    case ${1} in\
19061 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19062 \      *  ) func_dirname_result="${3}" ;;\
19063 \    esac\
19064 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19065   && mv -f "$cfgfile.tmp" "$cfgfile" \
19066     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19067 test 0 -eq $? || _lt_function_replace_fail=:
19068
19069
19070   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19071 func_basename ()\
19072 {\
19073 \    func_basename_result="${1##*/}"\
19074 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19075   && mv -f "$cfgfile.tmp" "$cfgfile" \
19076     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19077 test 0 -eq $? || _lt_function_replace_fail=:
19078
19079
19080   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19081 func_dirname_and_basename ()\
19082 {\
19083 \    case ${1} in\
19084 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19085 \      *  ) func_dirname_result="${3}" ;;\
19086 \    esac\
19087 \    func_basename_result="${1##*/}"\
19088 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19089   && mv -f "$cfgfile.tmp" "$cfgfile" \
19090     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19091 test 0 -eq $? || _lt_function_replace_fail=:
19092
19093
19094   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19095 func_stripname ()\
19096 {\
19097 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19098 \    # positional parameters, so assign one to ordinary parameter first.\
19099 \    func_stripname_result=${3}\
19100 \    func_stripname_result=${func_stripname_result#"${1}"}\
19101 \    func_stripname_result=${func_stripname_result%"${2}"}\
19102 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19103   && mv -f "$cfgfile.tmp" "$cfgfile" \
19104     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19105 test 0 -eq $? || _lt_function_replace_fail=:
19106
19107
19108   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19109 func_split_long_opt ()\
19110 {\
19111 \    func_split_long_opt_name=${1%%=*}\
19112 \    func_split_long_opt_arg=${1#*=}\
19113 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19114   && mv -f "$cfgfile.tmp" "$cfgfile" \
19115     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19116 test 0 -eq $? || _lt_function_replace_fail=:
19117
19118
19119   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19120 func_split_short_opt ()\
19121 {\
19122 \    func_split_short_opt_arg=${1#??}\
19123 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19124 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19125   && mv -f "$cfgfile.tmp" "$cfgfile" \
19126     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19127 test 0 -eq $? || _lt_function_replace_fail=:
19128
19129
19130   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19131 func_lo2o ()\
19132 {\
19133 \    case ${1} in\
19134 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19135 \      *)    func_lo2o_result=${1} ;;\
19136 \    esac\
19137 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19138   && mv -f "$cfgfile.tmp" "$cfgfile" \
19139     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19140 test 0 -eq $? || _lt_function_replace_fail=:
19141
19142
19143   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19144 func_xform ()\
19145 {\
19146     func_xform_result=${1%.*}.lo\
19147 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19148   && mv -f "$cfgfile.tmp" "$cfgfile" \
19149     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19150 test 0 -eq $? || _lt_function_replace_fail=:
19151
19152
19153   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19154 func_arith ()\
19155 {\
19156     func_arith_result=$(( $* ))\
19157 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19158   && mv -f "$cfgfile.tmp" "$cfgfile" \
19159     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19160 test 0 -eq $? || _lt_function_replace_fail=:
19161
19162
19163   sed -e '/^func_len ()$/,/^} # func_len /c\
19164 func_len ()\
19165 {\
19166     func_len_result=${#1}\
19167 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19168   && mv -f "$cfgfile.tmp" "$cfgfile" \
19169     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19170 test 0 -eq $? || _lt_function_replace_fail=:
19171
19172 fi
19173
19174 if test x"$lt_shell_append" = xyes; then
19175   sed -e '/^func_append ()$/,/^} # func_append /c\
19176 func_append ()\
19177 {\
19178     eval "${1}+=\\${2}"\
19179 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19180   && mv -f "$cfgfile.tmp" "$cfgfile" \
19181     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19182 test 0 -eq $? || _lt_function_replace_fail=:
19183
19184
19185   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19186 func_append_quoted ()\
19187 {\
19188 \    func_quote_for_eval "${2}"\
19189 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19190 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19191   && mv -f "$cfgfile.tmp" "$cfgfile" \
19192     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19193 test 0 -eq $? || _lt_function_replace_fail=:
19194
19195
19196   # Save a `func_append' function call where possible by direct use of '+='
19197   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19198     && mv -f "$cfgfile.tmp" "$cfgfile" \
19199       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19200   test 0 -eq $? || _lt_function_replace_fail=:
19201 else
19202   # Save a `func_append' function call even when '+=' is not available
19203   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19204     && mv -f "$cfgfile.tmp" "$cfgfile" \
19205       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19206   test 0 -eq $? || _lt_function_replace_fail=:
19207 fi
19208
19209 if test x"$_lt_function_replace_fail" = x":"; then
19210   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19211 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19212 fi
19213
19214
19215    mv -f "$cfgfile" "$ofile" ||
19216     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19217   chmod +x "$ofile"
19218
19219  ;;
19220
19221   esac
19222 done # for ac_tag
19223
19224
19225 as_fn_exit 0
19226 _ACEOF
19227 ac_clean_files=$ac_clean_files_save
19228
19229 test $ac_write_fail = 0 ||
19230   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19231
19232
19233 # configure is writing to config.log, and then calls config.status.
19234 # config.status does its own redirection, appending to config.log.
19235 # Unfortunately, on DOS this fails, as config.log is still kept open
19236 # by configure, so config.status won't be able to write to it; its
19237 # output is simply discarded.  So we exec the FD to /dev/null,
19238 # effectively closing config.log, so it can be properly (re)opened and
19239 # appended to by config.status.  When coming back to configure, we
19240 # need to make the FD available again.
19241 if test "$no_create" != yes; then
19242   ac_cs_success=:
19243   ac_config_status_args=
19244   test "$silent" = yes &&
19245     ac_config_status_args="$ac_config_status_args --quiet"
19246   exec 5>/dev/null
19247   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19248   exec 5>>config.log
19249   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19250   # would make configure fail if this is the last instruction.
19251   $ac_cs_success || as_fn_exit 1
19252 fi
19253 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19254   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19255 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19256 fi
19257