]> eyrie.org Git - kerberos/krb5-strength.git/blob - configure
New upstream version 3.2
[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 3.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='3.2'
594 PACKAGE_STRING='krb5-strength 3.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 SQLITE_CFLAGS
640 PKG_CONFIG_LIBDIR
641 PKG_CONFIG_PATH
642 PKG_CONFIG
643 SQLITE_LIBS
644 SQLITE_LDFLAGS
645 SQLITE_CPPFLAGS
646 LIBOBJS
647 KRB5_USES_COM_ERR_FALSE
648 KRB5_USES_COM_ERR_TRUE
649 PATH_KRB5_CONFIG
650 KRB5_LIBS
651 KRB5_LDFLAGS
652 KRB5_CPPFLAGS_GCC
653 KRB5_CPPFLAGS
654 EMBEDDED_CRACKLIB_FALSE
655 EMBEDDED_CRACKLIB_TRUE
656 CRACKLIB_LIBS
657 CRACKLIB_LDFLAGS
658 CRACKLIB_CPPFLAGS
659 CDB_LIBS
660 CDB_LDFLAGS
661 CDB_CPPFLAGS
662 PATH_VALGRIND
663 LT_SYS_LIBRARY_PATH
664 OTOOL64
665 OTOOL
666 LIPO
667 NMEDIT
668 DSYMUTIL
669 MANIFEST_TOOL
670 RANLIB
671 DLLTOOL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 SED
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 LIBTOOL
689 ac_ct_AR
690 AR
691 WARNINGS_CFLAGS
692 EGREP
693 GREP
694 CPP
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL
780 am__quote'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_silent_rules
785 enable_maintainer_mode
786 enable_dependency_tracking
787 enable_largefile
788 enable_static
789 enable_shared
790 with_pic
791 enable_fast_install
792 with_aix_soname
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 with_tinycdb
797 with_tinycdb_include
798 with_tinycdb_lib
799 with_cracklib
800 with_cracklib_include
801 with_cracklib_lib
802 with_krb5
803 with_krb5_include
804 with_krb5_lib
805 enable_reduced_depends
806 with_sqlite
807 with_sqlite_include
808 with_sqlite_lib
809 '
810       ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP
819 LT_SYS_LIBRARY_PATH
820 PATH_KRB5_CONFIG
821 PKG_CONFIG
822 PKG_CONFIG_PATH
823 PKG_CONFIG_LIBDIR
824 SQLITE_CFLAGS
825 SQLITE_LIBS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 runstatedir='${localstatedir}/run'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881   # If the previous option needs an argument, assign it.
882   if test -n "$ac_prev"; then
883     eval $ac_prev=\$ac_option
884     ac_prev=
885     continue
886   fi
887
888   case $ac_option in
889   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890   *=)   ac_optarg= ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error $? "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=no ;;
947
948   -docdir | --docdir | --docdi | --doc | --do)
949     ac_prev=docdir ;;
950   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951     docdir=$ac_optarg ;;
952
953   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954     ac_prev=dvidir ;;
955   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956     dvidir=$ac_optarg ;;
957
958   -enable-* | --enable-*)
959     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960     # Reject names that are not valid shell variable names.
961     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962       as_fn_error $? "invalid feature name: $ac_useropt"
963     ac_useropt_orig=$ac_useropt
964     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965     case $ac_user_opts in
966       *"
967 "enable_$ac_useropt"
968 "*) ;;
969       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970          ac_unrecognized_sep=', ';;
971     esac
972     eval enable_$ac_useropt=\$ac_optarg ;;
973
974   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976   | --exec | --exe | --ex)
977     ac_prev=exec_prefix ;;
978   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980   | --exec=* | --exe=* | --ex=*)
981     exec_prefix=$ac_optarg ;;
982
983   -gas | --gas | --ga | --g)
984     # Obsolete; use --with-gas.
985     with_gas=yes ;;
986
987   -help | --help | --hel | --he | -h)
988     ac_init_help=long ;;
989   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990     ac_init_help=recursive ;;
991   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992     ac_init_help=short ;;
993
994   -host | --host | --hos | --ho)
995     ac_prev=host_alias ;;
996   -host=* | --host=* | --hos=* | --ho=*)
997     host_alias=$ac_optarg ;;
998
999   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000     ac_prev=htmldir ;;
1001   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002   | --ht=*)
1003     htmldir=$ac_optarg ;;
1004
1005   -includedir | --includedir | --includedi | --included | --include \
1006   | --includ | --inclu | --incl | --inc)
1007     ac_prev=includedir ;;
1008   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009   | --includ=* | --inclu=* | --incl=* | --inc=*)
1010     includedir=$ac_optarg ;;
1011
1012   -infodir | --infodir | --infodi | --infod | --info | --inf)
1013     ac_prev=infodir ;;
1014   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015     infodir=$ac_optarg ;;
1016
1017   -libdir | --libdir | --libdi | --libd)
1018     ac_prev=libdir ;;
1019   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020     libdir=$ac_optarg ;;
1021
1022   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023   | --libexe | --libex | --libe)
1024     ac_prev=libexecdir ;;
1025   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026   | --libexe=* | --libex=* | --libe=*)
1027     libexecdir=$ac_optarg ;;
1028
1029   -localedir | --localedir | --localedi | --localed | --locale)
1030     ac_prev=localedir ;;
1031   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032     localedir=$ac_optarg ;;
1033
1034   -localstatedir | --localstatedir | --localstatedi | --localstated \
1035   | --localstate | --localstat | --localsta | --localst | --locals)
1036     ac_prev=localstatedir ;;
1037   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039     localstatedir=$ac_optarg ;;
1040
1041   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042     ac_prev=mandir ;;
1043   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044     mandir=$ac_optarg ;;
1045
1046   -nfp | --nfp | --nf)
1047     # Obsolete; use --without-fp.
1048     with_fp=no ;;
1049
1050   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051   | --no-cr | --no-c | -n)
1052     no_create=yes ;;
1053
1054   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056     no_recursion=yes ;;
1057
1058   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060   | --oldin | --oldi | --old | --ol | --o)
1061     ac_prev=oldincludedir ;;
1062   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065     oldincludedir=$ac_optarg ;;
1066
1067   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068     ac_prev=prefix ;;
1069   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070     prefix=$ac_optarg ;;
1071
1072   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073   | --program-pre | --program-pr | --program-p)
1074     ac_prev=program_prefix ;;
1075   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077     program_prefix=$ac_optarg ;;
1078
1079   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080   | --program-suf | --program-su | --program-s)
1081     ac_prev=program_suffix ;;
1082   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084     program_suffix=$ac_optarg ;;
1085
1086   -program-transform-name | --program-transform-name \
1087   | --program-transform-nam | --program-transform-na \
1088   | --program-transform-n | --program-transform- \
1089   | --program-transform | --program-transfor \
1090   | --program-transfo | --program-transf \
1091   | --program-trans | --program-tran \
1092   | --progr-tra | --program-tr | --program-t)
1093     ac_prev=program_transform_name ;;
1094   -program-transform-name=* | --program-transform-name=* \
1095   | --program-transform-nam=* | --program-transform-na=* \
1096   | --program-transform-n=* | --program-transform-=* \
1097   | --program-transform=* | --program-transfor=* \
1098   | --program-transfo=* | --program-transf=* \
1099   | --program-trans=* | --program-tran=* \
1100   | --progr-tra=* | --program-tr=* | --program-t=*)
1101     program_transform_name=$ac_optarg ;;
1102
1103   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104     ac_prev=pdfdir ;;
1105   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106     pdfdir=$ac_optarg ;;
1107
1108   -psdir | --psdir | --psdi | --psd | --ps)
1109     ac_prev=psdir ;;
1110   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111     psdir=$ac_optarg ;;
1112
1113   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114   | -silent | --silent | --silen | --sile | --sil)
1115     silent=yes ;;
1116
1117   -runstatedir | --runstatedir | --runstatedi | --runstated \
1118   | --runstate | --runstat | --runsta | --runst | --runs \
1119   | --run | --ru | --r)
1120     ac_prev=runstatedir ;;
1121   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1122   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1123   | --run=* | --ru=* | --r=*)
1124     runstatedir=$ac_optarg ;;
1125
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170
1171   -with-* | --with-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=\$ac_optarg ;;
1186
1187   -without-* | --without-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error $? "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=no ;;
1202
1203   --x)
1204     # Obsolete; use --with-x.
1205     with_x=yes ;;
1206
1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208   | --x-incl | --x-inc | --x-in | --x-i)
1209     ac_prev=x_includes ;;
1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212     x_includes=$ac_optarg ;;
1213
1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216     ac_prev=x_libraries ;;
1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219     x_libraries=$ac_optarg ;;
1220
1221   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223     ;;
1224
1225   *=*)
1226     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227     # Reject names that are not valid shell variable names.
1228     case $ac_envvar in #(
1229       '' | [0-9]* | *[!_$as_cr_alnum]* )
1230       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231     esac
1232     eval $ac_envvar=\$ac_optarg
1233     export $ac_envvar ;;
1234
1235   *)
1236     # FIXME: should be removed in autoconf 3.0.
1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241     ;;
1242
1243   esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248   as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252   case $enable_option_checking in
1253     no) ;;
1254     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256   esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261                 datadir sysconfdir sharedstatedir localstatedir includedir \
1262                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263                 libdir localedir mandir runstatedir
1264 do
1265   eval ac_val=\$$ac_var
1266   # Remove trailing slashes.
1267   case $ac_val in
1268     */ )
1269       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270       eval $ac_var=\$ac_val;;
1271   esac
1272   # Be sure to have absolute directory names.
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289   if test "x$build_alias" = x; then
1290     cross_compiling=maybe
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_env_${ac_var}_value=\$${ac_var}
1365   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373   # Omit some internal or obsolete options to make the list less imposing.
1374   # This message is too long to be a string in the A/UX 3.1 sh.
1375   cat <<_ACEOF
1376 \`configure' configures krb5-strength 3.2 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE.  See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386   -h, --help              display this help and exit
1387       --help=short        display options specific to this package
1388       --help=recursive    display the short help of all the included packages
1389   -V, --version           display version information and exit
1390   -q, --quiet, --silent   do not print \`checking ...' messages
1391       --cache-file=FILE   cache test results in FILE [disabled]
1392   -C, --config-cache      alias for \`--cache-file=config.cache'
1393   -n, --no-create         do not create output files
1394       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397   --prefix=PREFIX         install architecture-independent files in PREFIX
1398                           [$ac_default_prefix]
1399   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1400                           [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410   --bindir=DIR            user executables [EPREFIX/bin]
1411   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1412   --libexecdir=DIR        program executables [EPREFIX/libexec]
1413   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1414   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1415   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1416   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1417   --libdir=DIR            object code libraries [EPREFIX/lib]
1418   --includedir=DIR        C header files [PREFIX/include]
1419   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1420   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1421   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1422   --infodir=DIR           info documentation [DATAROOTDIR/info]
1423   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1424   --mandir=DIR            man documentation [DATAROOTDIR/man]
1425   --docdir=DIR            documentation root [DATAROOTDIR/doc/krb5-strength]
1426   --htmldir=DIR           html documentation [DOCDIR]
1427   --dvidir=DIR            dvi documentation [DOCDIR]
1428   --pdfdir=DIR            pdf documentation [DOCDIR]
1429   --psdir=DIR             ps documentation [DOCDIR]
1430 _ACEOF
1431
1432   cat <<\_ACEOF
1433
1434 Program names:
1435   --program-prefix=PREFIX            prepend PREFIX to installed program names
1436   --program-suffix=SUFFIX            append SUFFIX to installed program names
1437   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1438
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446   case $ac_init_help in
1447      short | recursive ) echo "Configuration of krb5-strength 3.2:";;
1448    esac
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-option-checking  ignore unrecognized --enable/--with options
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --enable-silent-rules   less verbose build output (undo: "make V=1")
1456   --disable-silent-rules  verbose build output (undo: "make V=0")
1457   --enable-maintainer-mode
1458                           enable make rules and dependencies not useful (and
1459                           sometimes confusing) to the casual installer
1460   --enable-dependency-tracking
1461                           do not reject slow dependency extractors
1462   --disable-dependency-tracking
1463                           speeds up one-time build
1464   --disable-largefile     omit support for large files
1465   --enable-static[=PKGS]  build static libraries [default=no]
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-fast-install[=PKGS]
1468                           optimize for fast installation [default=yes]
1469   --disable-libtool-lock  avoid locking (might break parallel builds)
1470   --enable-reduced-depends
1471                           Try to minimize shared library dependencies
1472
1473 Optional Packages:
1474   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1477                           both]
1478   --with-aix-soname=aix|svr4|both
1479                           shared library versioning (aka "SONAME") variant to
1480                           provide on AIX, [default=aix].
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1483                           compiler's sysroot if not specified).
1484   --with-tinycdb[=DIR]    Location of TinyCDB headers and libraries
1485   --with-tinycdb-include=DIR
1486                           Location of TinyCDB headers
1487   --with-tinycdb-lib=DIR  Location of TinyCDB libraries
1488   --with-cracklib[=DIR]   Use system CrackLib instead of embedded copy
1489   --with-cracklib-include=DIR
1490                           Location of CrackLib headers
1491   --with-cracklib-lib=DIR Location of CrackLib libraries
1492   --with-krb5=DIR         Location of Kerberos headers and libraries
1493   --with-krb5-include=DIR Location of Kerberos headers
1494   --with-krb5-lib=DIR     Location of Kerberos libraries
1495   --with-sqlite[=DIR]     Location of SQLite headers and libraries
1496   --with-sqlite-include=DIR
1497                           Location of SQLite headers
1498   --with-sqlite-lib=DIR   Location of SQLite libraries
1499
1500 Some influential environment variables:
1501   CC          C compiler command
1502   CFLAGS      C compiler flags
1503   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1504               nonstandard directory <lib dir>
1505   LIBS        libraries to pass to the linker, e.g. -l<library>
1506   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507               you have headers in a nonstandard directory <include dir>
1508   CPP         C preprocessor
1509   LT_SYS_LIBRARY_PATH
1510               User-defined run-time library search path.
1511   PATH_KRB5_CONFIG
1512               Path to krb5-config
1513   PKG_CONFIG  path to pkg-config utility
1514   PKG_CONFIG_PATH
1515               directories to add to pkg-config's search path
1516   PKG_CONFIG_LIBDIR
1517               path overriding pkg-config's built-in search path
1518   SQLITE_CFLAGS
1519               C compiler flags for SQLITE, overriding pkg-config
1520   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <eagle@eyrie.org>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" ||
1534       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1535       continue
1536     ac_builddir=.
1537
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *)
1541   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1542   # A ".." for each directory in $ac_dir_suffix.
1543   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1544   case $ac_top_builddir_sub in
1545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547   esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1553
1554 case $srcdir in
1555   .)  # We are building in place.
1556     ac_srcdir=.
1557     ac_top_srcdir=$ac_top_builddir_sub
1558     ac_abs_top_srcdir=$ac_pwd ;;
1559   [\\/]* | ?:[\\/]* )  # Absolute name.
1560     ac_srcdir=$srcdir$ac_dir_suffix;
1561     ac_top_srcdir=$srcdir
1562     ac_abs_top_srcdir=$srcdir ;;
1563   *) # Relative name.
1564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565     ac_top_srcdir=$ac_top_build_prefix$srcdir
1566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570     cd "$ac_dir" || { ac_status=$?; continue; }
1571     # Check for guested configure.
1572     if test -f "$ac_srcdir/configure.gnu"; then
1573       echo &&
1574       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575     elif test -f "$ac_srcdir/configure"; then
1576       echo &&
1577       $SHELL "$ac_srcdir/configure" --help=recursive
1578     else
1579       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580     fi || ac_status=$?
1581     cd "$ac_pwd" || { ac_status=$?; break; }
1582   done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587   cat <<\_ACEOF
1588 krb5-strength configure 3.2
1589 generated by GNU Autoconf 2.69
1590
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595   exit
1596 fi
1597
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1601
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   rm -f conftest.$ac_objext
1609   if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612   *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616   (eval "$ac_compile") 2>conftest.err
1617   ac_status=$?
1618   if test -s conftest.err; then
1619     grep -v '^ *+' conftest.err >conftest.er1
1620     cat conftest.er1 >&5
1621     mv -f conftest.er1 conftest.err
1622   fi
1623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624   test $ac_status = 0; } && {
1625          test -z "$ac_c_werror_flag" ||
1626          test ! -s conftest.err
1627        } && test -s conftest.$ac_objext; then :
1628   ac_retval=0
1629 else
1630   $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633         ac_retval=1
1634 fi
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636   as_fn_set_status $ac_retval
1637
1638 } # ac_fn_c_try_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654   ac_status=$?
1655   if test -s conftest.err; then
1656     grep -v '^ *+' conftest.err >conftest.er1
1657     cat conftest.er1 >&5
1658     mv -f conftest.er1 conftest.err
1659   fi
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } > conftest.i && {
1662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663          test ! -s conftest.err
1664        }; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670     ac_retval=1
1671 fi
1672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673   as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1680 # the include files in INCLUDES and setting the cache variable VAR
1681 # accordingly.
1682 ac_fn_c_check_header_mongrel ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   if eval \${$3+:} false; then :
1686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689   $as_echo_n "(cached) " >&6
1690 fi
1691 eval ac_res=\$$3
1692                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 else
1695   # Is the header compilable?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1697 $as_echo_n "checking $2 usability... " >&6; }
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h.  */
1700 $4
1701 #include <$2>
1702 _ACEOF
1703 if ac_fn_c_try_compile "$LINENO"; then :
1704   ac_header_compiler=yes
1705 else
1706   ac_header_compiler=no
1707 fi
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1710 $as_echo "$ac_header_compiler" >&6; }
1711
1712 # Is the header present?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1714 $as_echo_n "checking $2 presence... " >&6; }
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_cpp "$LINENO"; then :
1720   ac_header_preproc=yes
1721 else
1722   ac_header_preproc=no
1723 fi
1724 rm -f conftest.err conftest.i conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1726 $as_echo "$ac_header_preproc" >&6; }
1727
1728 # So?  What about this header?
1729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1730   yes:no: )
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1732 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735     ;;
1736   no:yes:* )
1737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1738 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1740 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1742 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1743     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1744 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1745     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 ( $as_echo "## ------------------------------ ##
1748 ## Report this to eagle@eyrie.org ##
1749 ## ------------------------------ ##"
1750      ) | sed "s/^/$as_me: WARNING:     /" >&2
1751     ;;
1752 esac
1753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756   $as_echo_n "(cached) " >&6
1757 else
1758   eval "$3=\$ac_header_compiler"
1759 fi
1760 eval ac_res=\$$3
1761                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 fi
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_mongrel
1767
1768 # ac_fn_c_try_run LINENO
1769 # ----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771 # that executables *can* be run.
1772 ac_fn_c_try_run ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_link") 2>&5
1783   ac_status=$?
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786   { { case "(($ac_try" in
1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788   *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792   (eval "$ac_try") 2>&5
1793   ac_status=$?
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; }; }; then :
1796   ac_retval=0
1797 else
1798   $as_echo "$as_me: program exited with status $ac_status" >&5
1799        $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802        ac_retval=$ac_status
1803 fi
1804   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806   as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_run
1809
1810 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists and can be compiled using the include files in
1813 # INCLUDES, setting the cache variable VAR accordingly.
1814 ac_fn_c_check_header_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820   $as_echo_n "(cached) " >&6
1821 else
1822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1824 $4
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828   eval "$3=yes"
1829 else
1830   eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_header_compile
1840
1841 # ac_fn_c_try_link LINENO
1842 # -----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_link ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   rm -f conftest.$ac_objext conftest$ac_exeext
1848   if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_link") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && {
1864          test -z "$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        } && test -s conftest$ac_exeext && {
1867          test "$cross_compiling" = yes ||
1868          test -x conftest$ac_exeext
1869        }; then :
1870   ac_retval=0
1871 else
1872   $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875         ac_retval=1
1876 fi
1877   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879   # interfere with the next link command; also delete a directory that is
1880   # left behind by Apple's compiler.  We do this before executing the actions.
1881   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883   as_fn_set_status $ac_retval
1884
1885 } # ac_fn_c_try_link
1886
1887 # ac_fn_c_check_func LINENO FUNC VAR
1888 # ----------------------------------
1889 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1890 ac_fn_c_check_func ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896   $as_echo_n "(cached) " >&6
1897 else
1898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h.  */
1900 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1902 #define $2 innocuous_$2
1903
1904 /* System header to define __stub macros and hopefully few prototypes,
1905     which can conflict with char $2 (); below.
1906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907     <limits.h> exists even on freestanding compilers.  */
1908
1909 #ifdef __STDC__
1910 # include <limits.h>
1911 #else
1912 # include <assert.h>
1913 #endif
1914
1915 #undef $2
1916
1917 /* Override any GCC internal prototype to avoid an error.
1918    Use char because int might match the return type of a GCC
1919    builtin and then its argument prototype would still apply.  */
1920 #ifdef __cplusplus
1921 extern "C"
1922 #endif
1923 char $2 ();
1924 /* The GNU C library defines this for functions which it implements
1925     to always fail with ENOSYS.  Some functions are actually named
1926     something starting with __ and the normal name is an alias.  */
1927 #if defined __stub_$2 || defined __stub___$2
1928 choke me
1929 #endif
1930
1931 int
1932 main ()
1933 {
1934 return $2 ();
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_link "$LINENO"; then :
1940   eval "$3=yes"
1941 else
1942   eval "$3=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext \
1945     conftest$ac_exeext conftest.$ac_ext
1946 fi
1947 eval ac_res=\$$3
1948                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_func
1953
1954 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1955 # --------------------------------------------
1956 # Tries to find the compile-time value of EXPR in a program that includes
1957 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1958 # computed
1959 ac_fn_c_compute_int ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   if test "$cross_compiling" = yes; then
1963     # Depending upon the size, compute the lo and hi bounds.
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) >= 0)];
1971 test_array [0] = 0;
1972 return test_array [0];
1973
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979   ac_lo=0 ac_mid=0
1980   while :; do
1981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h.  */
1983 $4
1984 int
1985 main ()
1986 {
1987 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 test_array [0] = 0;
1989 return test_array [0];
1990
1991   ;
1992   return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996   ac_hi=$ac_mid; break
1997 else
1998   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1999                         if test $ac_lo -le $ac_mid; then
2000                           ac_lo= ac_hi=
2001                           break
2002                         fi
2003                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006   done
2007 else
2008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 int
2012 main ()
2013 {
2014 static int test_array [1 - 2 * !(($2) < 0)];
2015 test_array [0] = 0;
2016 return test_array [0];
2017
2018   ;
2019   return 0;
2020 }
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023   ac_hi=-1 ac_mid=-1
2024   while :; do
2025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2032 test_array [0] = 0;
2033 return test_array [0];
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   ac_lo=$ac_mid; break
2041 else
2042   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2043                         if test $ac_mid -le $ac_hi; then
2044                           ac_lo= ac_hi=
2045                           break
2046                         fi
2047                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050   done
2051 else
2052   ac_lo= ac_hi=
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 # Binary search between lo and hi bounds.
2058 while test "x$ac_lo" != "x$ac_hi"; do
2059   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $4
2063 int
2064 main ()
2065 {
2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067 test_array [0] = 0;
2068 return test_array [0];
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_hi=$ac_mid
2076 else
2077   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 done
2081 case $ac_lo in #((
2082 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2083 '') ac_retval=1 ;;
2084 esac
2085   else
2086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h.  */
2088 $4
2089 static long int longval () { return $2; }
2090 static unsigned long int ulongval () { return $2; }
2091 #include <stdio.h>
2092 #include <stdlib.h>
2093 int
2094 main ()
2095 {
2096
2097   FILE *f = fopen ("conftest.val", "w");
2098   if (! f)
2099     return 1;
2100   if (($2) < 0)
2101     {
2102       long int i = longval ();
2103       if (i != ($2))
2104         return 1;
2105       fprintf (f, "%ld", i);
2106     }
2107   else
2108     {
2109       unsigned long int i = ulongval ();
2110       if (i != ($2))
2111         return 1;
2112       fprintf (f, "%lu", i);
2113     }
2114   /* Do not output a trailing newline, as this causes \r\n confusion
2115      on some platforms.  */
2116   return ferror (f) || fclose (f) != 0;
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_run "$LINENO"; then :
2123   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2124 else
2125   ac_retval=1
2126 fi
2127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2128   conftest.$ac_objext conftest.beam conftest.$ac_ext
2129 rm -f conftest.val
2130
2131   fi
2132   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133   as_fn_set_status $ac_retval
2134
2135 } # ac_fn_c_compute_int
2136
2137 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2138 # -------------------------------------------
2139 # Tests whether TYPE exists after having included INCLUDES, setting cache
2140 # variable VAR accordingly.
2141 ac_fn_c_check_type ()
2142 {
2143   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145 $as_echo_n "checking for $2... " >&6; }
2146 if eval \${$3+:} false; then :
2147   $as_echo_n "(cached) " >&6
2148 else
2149   eval "$3=no"
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 int
2154 main ()
2155 {
2156 if (sizeof ($2))
2157          return 0;
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $4
2166 int
2167 main ()
2168 {
2169 if (sizeof (($2)))
2170             return 0;
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176
2177 else
2178   eval "$3=yes"
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 fi
2184 eval ac_res=\$$3
2185                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188
2189 } # ac_fn_c_check_type
2190
2191 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2192 # ---------------------------------------------
2193 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2194 # accordingly.
2195 ac_fn_c_check_decl ()
2196 {
2197   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198   as_decl_name=`echo $2|sed 's/ *(.*//'`
2199   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2201 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2202 if eval \${$3+:} false; then :
2203   $as_echo_n "(cached) " >&6
2204 else
2205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2207 $4
2208 int
2209 main ()
2210 {
2211 #ifndef $as_decl_name
2212 #ifdef __cplusplus
2213   (void) $as_decl_use;
2214 #else
2215   (void) $as_decl_name;
2216 #endif
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224   eval "$3=yes"
2225 else
2226   eval "$3=no"
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 fi
2230 eval ac_res=\$$3
2231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234
2235 } # ac_fn_c_check_decl
2236
2237 # ac_fn_c_find_uintX_t LINENO BITS VAR
2238 # ------------------------------------
2239 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2240 # accordingly.
2241 ac_fn_c_find_uintX_t ()
2242 {
2243   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2245 $as_echo_n "checking for uint$2_t... " >&6; }
2246 if eval \${$3+:} false; then :
2247   $as_echo_n "(cached) " >&6
2248 else
2249   eval "$3=no"
2250      # Order is important - never check a type that is potentially smaller
2251      # than half of the expected target width.
2252      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2253          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2254        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h.  */
2256 $ac_includes_default
2257 int
2258 main ()
2259 {
2260 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2261 test_array [0] = 0;
2262 return test_array [0];
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269   case $ac_type in #(
2270   uint$2_t) :
2271     eval "$3=yes" ;; #(
2272   *) :
2273     eval "$3=\$ac_type" ;;
2274 esac
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277        if eval test \"x\$"$3"\" = x"no"; then :
2278
2279 else
2280   break
2281 fi
2282      done
2283 fi
2284 eval ac_res=\$$3
2285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288
2289 } # ac_fn_c_find_uintX_t
2290 cat >config.log <<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2293
2294 It was created by krb5-strength $as_me 3.2, which was
2295 generated by GNU Autoconf 2.69.  Invocation command line was
2296
2297   $ $0 $@
2298
2299 _ACEOF
2300 exec 5>>config.log
2301 {
2302 cat <<_ASUNAME
2303 ## --------- ##
2304 ## Platform. ##
2305 ## --------- ##
2306
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2312
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2315
2316 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2317 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2320 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2321 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2322 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2323
2324 _ASUNAME
2325
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331     $as_echo "PATH: $as_dir"
2332   done
2333 IFS=$as_save_IFS
2334
2335 } >&5
2336
2337 cat >&5 <<_ACEOF
2338
2339
2340 ## ----------- ##
2341 ## Core tests. ##
2342 ## ----------- ##
2343
2344 _ACEOF
2345
2346
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_configure_args=
2353 ac_configure_args0=
2354 ac_configure_args1=
2355 ac_must_keep_next=false
2356 for ac_pass in 1 2
2357 do
2358   for ac_arg
2359   do
2360     case $ac_arg in
2361     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363     | -silent | --silent | --silen | --sile | --sil)
2364       continue ;;
2365     *\'*)
2366       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367     esac
2368     case $ac_pass in
2369     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2370     2)
2371       as_fn_append ac_configure_args1 " '$ac_arg'"
2372       if test $ac_must_keep_next = true; then
2373         ac_must_keep_next=false # Got value, back to normal.
2374       else
2375         case $ac_arg in
2376           *=* | --config-cache | -C | -disable-* | --disable-* \
2377           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379           | -with-* | --with-* | -without-* | --without-* | --x)
2380             case "$ac_configure_args0 " in
2381               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382             esac
2383             ;;
2384           -* ) ac_must_keep_next=true ;;
2385         esac
2386       fi
2387       as_fn_append ac_configure_args " '$ac_arg'"
2388       ;;
2389     esac
2390   done
2391 done
2392 { ac_configure_args0=; unset ac_configure_args0;}
2393 { ac_configure_args1=; unset ac_configure_args1;}
2394
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log.  We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401   # Save into config.log some information that might help in debugging.
2402   {
2403     echo
2404
2405     $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2408     echo
2409     # The following way of writing the cache mishandles newlines in values,
2410 (
2411   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412     eval ac_val=\$$ac_var
2413     case $ac_val in #(
2414     *${as_nl}*)
2415       case $ac_var in #(
2416       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418       esac
2419       case $ac_var in #(
2420       _ | IFS | as_nl) ;; #(
2421       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422       *) { eval $ac_var=; unset $ac_var;} ;;
2423       esac ;;
2424     esac
2425   done
2426   (set) 2>&1 |
2427     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428     *${as_nl}ac_space=\ *)
2429       sed -n \
2430         "s/'\''/'\''\\\\'\'''\''/g;
2431           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432       ;; #(
2433     *)
2434       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2435       ;;
2436     esac |
2437     sort
2438 )
2439     echo
2440
2441     $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2444     echo
2445     for ac_var in $ac_subst_vars
2446     do
2447       eval ac_val=\$$ac_var
2448       case $ac_val in
2449       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450       esac
2451       $as_echo "$ac_var='\''$ac_val'\''"
2452     done | sort
2453     echo
2454
2455     if test -n "$ac_subst_files"; then
2456       $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2459       echo
2460       for ac_var in $ac_subst_files
2461       do
2462         eval ac_val=\$$ac_var
2463         case $ac_val in
2464         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465         esac
2466         $as_echo "$ac_var='\''$ac_val'\''"
2467       done | sort
2468       echo
2469     fi
2470
2471     if test -s confdefs.h; then
2472       $as_echo "## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##"
2475       echo
2476       cat confdefs.h
2477       echo
2478     fi
2479     test "$ac_signal" != 0 &&
2480       $as_echo "$as_me: caught signal $ac_signal"
2481     $as_echo "$as_me: exit $exit_status"
2482   } >&5
2483   rm -f core *.core core.conftest.* &&
2484     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485     exit $exit_status
2486 ' 0
2487 for ac_signal in 1 2 13 15; do
2488   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 done
2490 ac_signal=0
2491
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2494
2495 $as_echo "/* confdefs.h */" > confdefs.h
2496
2497 # Predefined preprocessor variables.
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 _ACEOF
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2521 _ACEOF
2522
2523
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2526 ac_site_file1=NONE
2527 ac_site_file2=NONE
2528 if test -n "$CONFIG_SITE"; then
2529   # We do not want a PATH search for config.site.
2530   case $CONFIG_SITE in #((
2531     -*)  ac_site_file1=./$CONFIG_SITE;;
2532     */*) ac_site_file1=$CONFIG_SITE;;
2533     *)   ac_site_file1=./$CONFIG_SITE;;
2534   esac
2535 elif test "x$prefix" != xNONE; then
2536   ac_site_file1=$prefix/share/config.site
2537   ac_site_file2=$prefix/etc/config.site
2538 else
2539   ac_site_file1=$ac_default_prefix/share/config.site
2540   ac_site_file2=$ac_default_prefix/etc/config.site
2541 fi
2542 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2543 do
2544   test "x$ac_site_file" = xNONE && continue
2545   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548     sed 's/^/| /' "$ac_site_file" >&5
2549     . "$ac_site_file" \
2550       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $? "failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2554   fi
2555 done
2556
2557 if test -r "$cache_file"; then
2558   # Some versions of bash will fail to source /dev/null (special files
2559   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2560   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563     case $cache_file in
2564       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565       *)                      . "./$cache_file";;
2566     esac
2567   fi
2568 else
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571   >$cache_file
2572 fi
2573
2574 # Check that the precious variables saved in the cache have kept the same
2575 # value.
2576 ac_cache_corrupted=false
2577 for ac_var in $ac_precious_vars; do
2578   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579   eval ac_new_set=\$ac_env_${ac_var}_set
2580   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581   eval ac_new_val=\$ac_env_${ac_var}_value
2582   case $ac_old_set,$ac_new_set in
2583     set,)
2584       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586       ac_cache_corrupted=: ;;
2587     ,set)
2588       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590       ac_cache_corrupted=: ;;
2591     ,);;
2592     *)
2593       if test "x$ac_old_val" != "x$ac_new_val"; then
2594         # differences in whitespace do not lead to failure.
2595         ac_old_val_w=`echo x $ac_old_val`
2596         ac_new_val_w=`echo x $ac_new_val`
2597         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600           ac_cache_corrupted=:
2601         else
2602           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604           eval $ac_var=\$ac_old_val
2605         fi
2606         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2607 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2608         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2609 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2610       fi;;
2611   esac
2612   # Pass precious variables to config.status.
2613   if test "$ac_new_set" = set; then
2614     case $ac_new_val in
2615     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616     *) ac_arg=$ac_var=$ac_new_val ;;
2617     esac
2618     case " $ac_configure_args " in
2619       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2620       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621     esac
2622   fi
2623 done
2624 if $ac_cache_corrupted; then
2625   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2630 fi
2631 ## -------------------- ##
2632 ## Main body of script. ##
2633 ## -------------------- ##
2634
2635 ac_ext=c
2636 ac_cpp='$CPP $CPPFLAGS'
2637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640
2641
2642 ac_aux_dir=
2643 for ac_dir in build-aux "$srcdir"/build-aux; do
2644   if test -f "$ac_dir/install-sh"; then
2645     ac_aux_dir=$ac_dir
2646     ac_install_sh="$ac_aux_dir/install-sh -c"
2647     break
2648   elif test -f "$ac_dir/install.sh"; then
2649     ac_aux_dir=$ac_dir
2650     ac_install_sh="$ac_aux_dir/install.sh -c"
2651     break
2652   elif test -f "$ac_dir/shtool"; then
2653     ac_aux_dir=$ac_dir
2654     ac_install_sh="$ac_aux_dir/shtool install -c"
2655     break
2656   fi
2657 done
2658 if test -z "$ac_aux_dir"; then
2659   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2660 fi
2661
2662 # These three variables are undocumented and unsupported,
2663 # and are intended to be withdrawn in a future Autoconf release.
2664 # They can cause serious problems if a builder's source tree is in a directory
2665 # whose full name contains unusual characters.
2666 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2667 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2668 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2669
2670
2671
2672
2673 am__api_version='1.16'
2674
2675 # Find a good install program.  We prefer a C program (faster),
2676 # so one script is as good as another.  But avoid the broken or
2677 # incompatible versions:
2678 # SysV /etc/install, /usr/sbin/install
2679 # SunOS /usr/etc/install
2680 # IRIX /sbin/install
2681 # AIX /bin/install
2682 # AmigaOS /C/install, which installs bootblocks on floppy discs
2683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2686 # OS/2's system install, which has a completely different semantic
2687 # ./install, which can be erroneously created by make from ./install.sh.
2688 # Reject install programs that cannot install multiple files.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2690 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2691 if test -z "$INSTALL"; then
2692 if ${ac_cv_path_install+:} false; then :
2693   $as_echo_n "(cached) " >&6
2694 else
2695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698   IFS=$as_save_IFS
2699   test -z "$as_dir" && as_dir=.
2700     # Account for people who put trailing slashes in PATH elements.
2701 case $as_dir/ in #((
2702   ./ | .// | /[cC]/* | \
2703   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2704   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2705   /usr/ucb/* ) ;;
2706   *)
2707     # OSF1 and SCO ODT 3.0 have their own names for install.
2708     # Don't use installbsd from OSF since it installs stuff as root
2709     # by default.
2710     for ac_prog in ginstall scoinst install; do
2711       for ac_exec_ext in '' $ac_executable_extensions; do
2712         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2713           if test $ac_prog = install &&
2714             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715             # AIX install.  It has an incompatible calling convention.
2716             :
2717           elif test $ac_prog = install &&
2718             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2719             # program-specific install script used by HP pwplus--don't use.
2720             :
2721           else
2722             rm -rf conftest.one conftest.two conftest.dir
2723             echo one > conftest.one
2724             echo two > conftest.two
2725             mkdir conftest.dir
2726             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2727               test -s conftest.one && test -s conftest.two &&
2728               test -s conftest.dir/conftest.one &&
2729               test -s conftest.dir/conftest.two
2730             then
2731               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2732               break 3
2733             fi
2734           fi
2735         fi
2736       done
2737     done
2738     ;;
2739 esac
2740
2741   done
2742 IFS=$as_save_IFS
2743
2744 rm -rf conftest.one conftest.two conftest.dir
2745
2746 fi
2747   if test "${ac_cv_path_install+set}" = set; then
2748     INSTALL=$ac_cv_path_install
2749   else
2750     # As a last resort, use the slow shell script.  Don't cache a
2751     # value for INSTALL within a source directory, because that will
2752     # break other packages using the cache if that directory is
2753     # removed, or if the value is a relative name.
2754     INSTALL=$ac_install_sh
2755   fi
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2758 $as_echo "$INSTALL" >&6; }
2759
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2769 $as_echo_n "checking whether build environment is sane... " >&6; }
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name.  Accept space and tab only in the latter.
2772 am_lf='
2773 '
2774 case `pwd` in
2775   *[\\\"\#\$\&\'\`$am_lf]*)
2776     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2777 esac
2778 case $srcdir in
2779   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2780     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2781 esac
2782
2783 # Do 'set' in a subshell so we don't clobber the current shell's
2784 # arguments.  Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2787 # directory).
2788 if (
2789    am_has_slept=no
2790    for am_try in 1 2; do
2791      echo "timestamp, slept: $am_has_slept" > conftest.file
2792      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2793      if test "$*" = "X"; then
2794         # -L didn't work.
2795         set X `ls -t "$srcdir/configure" conftest.file`
2796      fi
2797      if test "$*" != "X $srcdir/configure conftest.file" \
2798         && test "$*" != "X conftest.file $srcdir/configure"; then
2799
2800         # If neither matched, then we have a broken ls.  This can happen
2801         # if, for instance, CONFIG_SHELL is bash and it inherits a
2802         # broken ls alias from the environment.  This has actually
2803         # happened.  Such a system could not be considered "sane".
2804         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2805   alias in your environment" "$LINENO" 5
2806      fi
2807      if test "$2" = conftest.file || test $am_try -eq 2; then
2808        break
2809      fi
2810      # Just in case.
2811      sleep 1
2812      am_has_slept=yes
2813    done
2814    test "$2" = conftest.file
2815    )
2816 then
2817    # Ok.
2818    :
2819 else
2820    as_fn_error $? "newly created file is older than distributed files!
2821 Check your system clock" "$LINENO" 5
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2824 $as_echo "yes" >&6; }
2825 # If we didn't sleep, we still need to ensure time stamps of config.status and
2826 # generated files are strictly newer.
2827 am_sleep_pid=
2828 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2829   ( sleep 1 ) &
2830   am_sleep_pid=$!
2831 fi
2832
2833 rm -f conftest.file
2834
2835 test "$program_prefix" != NONE &&
2836   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837 # Use a double $ so make ignores it.
2838 test "$program_suffix" != NONE &&
2839   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840 # Double any \ or $.
2841 # By default was `s,x,x', remove it if useless.
2842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844
2845 # Expand $ac_aux_dir to an absolute path.
2846 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2847
2848 if test x"${MISSING+set}" != xset; then
2849   case $am_aux_dir in
2850   *\ * | *\     *)
2851     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2852   *)
2853     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2854   esac
2855 fi
2856 # Use eval to expand $SHELL
2857 if eval "$MISSING --is-lightweight"; then
2858   am_missing_run="$MISSING "
2859 else
2860   am_missing_run=
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2862 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2863 fi
2864
2865 if test x"${install_sh+set}" != xset; then
2866   case $am_aux_dir in
2867   *\ * | *\     *)
2868     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869   *)
2870     install_sh="\${SHELL} $am_aux_dir/install-sh"
2871   esac
2872 fi
2873
2874 # Installed binaries are usually stripped using 'strip' when the user
2875 # run "make install-strip".  However 'strip' might not be the right
2876 # tool to use in cross-compilation environments, therefore Automake
2877 # will honor the 'STRIP' environment variable to overrule this program.
2878 if test "$cross_compiling" != no; then
2879   if test -n "$ac_tool_prefix"; then
2880   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}strip; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_STRIP+:} false; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   if test -n "$STRIP"; then
2888   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902   done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 STRIP=$ac_cv_prog_STRIP
2908 if test -n "$STRIP"; then
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2910 $as_echo "$STRIP" >&6; }
2911 else
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_STRIP"; then
2919   ac_ct_STRIP=$STRIP
2920   # Extract the first word of "strip", so it can be a program name with args.
2921 set dummy strip; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$ac_ct_STRIP"; then
2928   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937     ac_cv_prog_ac_ct_STRIP="strip"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2948 if test -n "$ac_ct_STRIP"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2950 $as_echo "$ac_ct_STRIP" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956   if test "x$ac_ct_STRIP" = x; then
2957     STRIP=":"
2958   else
2959     case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965     STRIP=$ac_ct_STRIP
2966   fi
2967 else
2968   STRIP="$ac_cv_prog_STRIP"
2969 fi
2970
2971 fi
2972 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2975 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2976 if test -z "$MKDIR_P"; then
2977   if ${ac_cv_path_mkdir+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985     for ac_prog in mkdir gmkdir; do
2986          for ac_exec_ext in '' $ac_executable_extensions; do
2987            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2988            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2989              'mkdir (GNU coreutils) '* | \
2990              'mkdir (coreutils) '* | \
2991              'mkdir (fileutils) '4.1*)
2992                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2993                break 3;;
2994            esac
2995          done
2996        done
2997   done
2998 IFS=$as_save_IFS
2999
3000 fi
3001
3002   test -d ./--version && rmdir ./--version
3003   if test "${ac_cv_path_mkdir+set}" = set; then
3004     MKDIR_P="$ac_cv_path_mkdir -p"
3005   else
3006     # As a last resort, use the slow shell script.  Don't cache a
3007     # value for MKDIR_P within a source directory, because that will
3008     # break other packages using the cache if that directory is
3009     # removed, or if the value is a relative name.
3010     MKDIR_P="$ac_install_sh -d"
3011   fi
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3014 $as_echo "$MKDIR_P" >&6; }
3015
3016 for ac_prog in gawk mawk nawk awk
3017 do
3018   # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_AWK+:} false; then :
3023   $as_echo_n "(cached) " >&6
3024 else
3025   if test -n "$AWK"; then
3026   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033     for ac_exec_ext in '' $ac_executable_extensions; do
3034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035     ac_cv_prog_AWK="$ac_prog"
3036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040   done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 AWK=$ac_cv_prog_AWK
3046 if test -n "$AWK"; then
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3048 $as_echo "$AWK" >&6; }
3049 else
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055   test -n "$AWK" && break
3056 done
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3059 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3060 set x ${MAKE-make}
3061 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3062 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   cat >conftest.make <<\_ACEOF
3066 SHELL = /bin/sh
3067 all:
3068         @echo '@@@%%%=$(MAKE)=@@@%%%'
3069 _ACEOF
3070 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3071 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3072   *@@@%%%=?*=@@@%%%*)
3073     eval ac_cv_prog_make_${ac_make}_set=yes;;
3074   *)
3075     eval ac_cv_prog_make_${ac_make}_set=no;;
3076 esac
3077 rm -f conftest.make
3078 fi
3079 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081 $as_echo "yes" >&6; }
3082   SET_MAKE=
3083 else
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086   SET_MAKE="MAKE=${MAKE-make}"
3087 fi
3088
3089 rm -rf .tst 2>/dev/null
3090 mkdir .tst 2>/dev/null
3091 if test -d .tst; then
3092   am__leading_dot=.
3093 else
3094   am__leading_dot=_
3095 fi
3096 rmdir .tst 2>/dev/null
3097
3098 # Check whether --enable-silent-rules was given.
3099 if test "${enable_silent_rules+set}" = set; then :
3100   enableval=$enable_silent_rules;
3101 fi
3102
3103 case $enable_silent_rules in # (((
3104   yes) AM_DEFAULT_VERBOSITY=0;;
3105    no) AM_DEFAULT_VERBOSITY=1;;
3106     *) AM_DEFAULT_VERBOSITY=1;;
3107 esac
3108 am_make=${MAKE-make}
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3110 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3111 if ${am_cv_make_support_nested_variables+:} false; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if $as_echo 'TRUE=$(BAR$(V))
3115 BAR0=false
3116 BAR1=true
3117 V=1
3118 am__doit:
3119         @$(TRUE)
3120 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3121   am_cv_make_support_nested_variables=yes
3122 else
3123   am_cv_make_support_nested_variables=no
3124 fi
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3127 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3128 if test $am_cv_make_support_nested_variables = yes; then
3129     AM_V='$(V)'
3130   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3131 else
3132   AM_V=$AM_DEFAULT_VERBOSITY
3133   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3134 fi
3135 AM_BACKSLASH='\'
3136
3137 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3138   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3139   # is not polluted with repeated "-I."
3140   am__isrc=' -I$(srcdir)'
3141   # test to see if srcdir already configured
3142   if test -f $srcdir/config.status; then
3143     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3144   fi
3145 fi
3146
3147 # test whether we have cygpath
3148 if test -z "$CYGPATH_W"; then
3149   if (cygpath --version) >/dev/null 2>/dev/null; then
3150     CYGPATH_W='cygpath -w'
3151   else
3152     CYGPATH_W=echo
3153   fi
3154 fi
3155
3156
3157 # Define the identity of the package.
3158  PACKAGE='krb5-strength'
3159  VERSION='3.2'
3160
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE "$PACKAGE"
3164 _ACEOF
3165
3166
3167 cat >>confdefs.h <<_ACEOF
3168 #define VERSION "$VERSION"
3169 _ACEOF
3170
3171 # Some tools Automake needs.
3172
3173 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3174
3175
3176 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3177
3178
3179 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3180
3181
3182 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3183
3184
3185 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3186
3187 # For better backward compatibility.  To be removed once Automake 1.9.x
3188 # dies out for good.  For more background, see:
3189 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3190 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3191 mkdir_p='$(MKDIR_P)'
3192
3193 # We need awk for the "check" target (and possibly the TAP driver).  The
3194 # system "awk" is bad on some platforms.
3195 # Always define AMTAR for backward compatibility.  Yes, it's still used
3196 # in the wild :-(  We should find a proper way to deprecate it ...
3197 AMTAR='$${TAR-tar}'
3198
3199
3200 # We'll loop over all known methods to create a tar archive until one works.
3201 _am_tools='gnutar  pax cpio none'
3202
3203 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3204
3205
3206
3207
3208
3209
3210 # POSIX will say in a future version that running "rm -f" with no argument
3211 # is OK; and we want to be able to make that assumption in our Makefile
3212 # recipes.  So use an aggressive probe to check that the usage we want is
3213 # actually supported "in the wild" to an acceptable degree.
3214 # See automake bug#10828.
3215 # To make any issue more visible, cause the running configure to be aborted
3216 # by default if the 'rm' program in use doesn't match our expectations; the
3217 # user can still override this though.
3218 if rm -f && rm -fr && rm -rf; then : OK; else
3219   cat >&2 <<'END'
3220 Oops!
3221
3222 Your 'rm' program seems unable to run without file operands specified
3223 on the command line, even when the '-f' option is present.  This is contrary
3224 to the behaviour of most rm programs out there, and not conforming with
3225 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3226
3227 Please tell bug-automake@gnu.org about your system, including the value
3228 of your $PATH and any error possibly output before this message.  This
3229 can help us improve future automake versions.
3230
3231 END
3232   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3233     echo 'Configuration will proceed anyway, since you have set the' >&2
3234     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3235     echo >&2
3236   else
3237     cat >&2 <<'END'
3238 Aborting the configuration process, to ensure you take notice of the issue.
3239
3240 You can download and install GNU coreutils to get an 'rm' implementation
3241 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3242
3243 If you want to complete the configuration process using your problematic
3244 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3245 to "yes", and re-run configure.
3246
3247 END
3248     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3249   fi
3250 fi
3251
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3254 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3255     # Check whether --enable-maintainer-mode was given.
3256 if test "${enable_maintainer_mode+set}" = set; then :
3257   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3258 else
3259   USE_MAINTAINER_MODE=no
3260 fi
3261
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3263 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3264    if test $USE_MAINTAINER_MODE = yes; then
3265   MAINTAINER_MODE_TRUE=
3266   MAINTAINER_MODE_FALSE='#'
3267 else
3268   MAINTAINER_MODE_TRUE='#'
3269   MAINTAINER_MODE_FALSE=
3270 fi
3271
3272   MAINT=$MAINTAINER_MODE_TRUE
3273
3274
3275
3276
3277
3278
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 if test -n "$ac_tool_prefix"; then
3285   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   if test -n "$CC"; then
3293   ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307   done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322 fi
3323 if test -z "$ac_cv_prog_CC"; then
3324   ac_ct_CC=$CC
3325   # Extract the first word of "gcc", so it can be a program name with args.
3326 set dummy gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$ac_ct_CC"; then
3333   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340     for ac_exec_ext in '' $ac_executable_extensions; do
3341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342     ac_cv_prog_ac_ct_CC="gcc"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3356 else
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361   if test "x$ac_ct_CC" = x; then
3362     CC=""
3363   else
3364     case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned=yes ;;
3369 esac
3370     CC=$ac_ct_CC
3371   fi
3372 else
3373   CC="$ac_cv_prog_CC"
3374 fi
3375
3376 if test -z "$CC"; then
3377           if test -n "$ac_tool_prefix"; then
3378     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}cc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_CC+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   if test -n "$CC"; then
3386   ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393     for ac_exec_ext in '' $ac_executable_extensions; do
3394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395     ac_cv_prog_CC="${ac_tool_prefix}cc"
3396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400   done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415   fi
3416 fi
3417 if test -z "$CC"; then
3418   # Extract the first word of "cc", so it can be a program name with args.
3419 set dummy cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   if test -n "$CC"; then
3426   ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428   ac_prog_rejected=no
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3437        ac_prog_rejected=yes
3438        continue
3439      fi
3440     ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3449   # We found a bogon in the path, so make sure we never use it.
3450   set dummy $ac_cv_prog_CC
3451   shift
3452   if test $# != 0; then
3453     # We chose a different compiler from the bogus one.
3454     # However, it has the same basename, so the bogon will be chosen
3455     # first if we set CC to just the basename; use the full file name.
3456     shift
3457     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3458   fi
3459 fi
3460 fi
3461 fi
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471
3472 fi
3473 if test -z "$CC"; then
3474   if test -n "$ac_tool_prefix"; then
3475   for ac_prog in cl.exe
3476   do
3477     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   if test -n "$CC"; then
3485   ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490   IFS=$as_save_IFS
3491   test -z "$as_dir" && as_dir=.
3492     for ac_exec_ext in '' $ac_executable_extensions; do
3493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496     break 2
3497   fi
3498 done
3499   done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514     test -n "$CC" && break
3515   done
3516 fi
3517 if test -z "$CC"; then
3518   ac_ct_CC=$CC
3519   for ac_prog in cl.exe
3520 do
3521   # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   if test -n "$ac_ct_CC"; then
3529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534   IFS=$as_save_IFS
3535   test -z "$as_dir" && as_dir=.
3536     for ac_exec_ext in '' $ac_executable_extensions; do
3537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538     ac_cv_prog_ac_ct_CC="$ac_prog"
3539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540     break 2
3541   fi
3542 done
3543   done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3549 if test -n "$ac_ct_CC"; then
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3551 $as_echo "$ac_ct_CC" >&6; }
3552 else
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 fi
3556
3557
3558   test -n "$ac_ct_CC" && break
3559 done
3560
3561   if test "x$ac_ct_CC" = x; then
3562     CC=""
3563   else
3564     case $cross_compiling:$ac_tool_warned in
3565 yes:)
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3568 ac_tool_warned=yes ;;
3569 esac
3570     CC=$ac_ct_CC
3571   fi
3572 fi
3573
3574 fi
3575
3576
3577 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error $? "no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details" "$LINENO" 5; }
3581
3582 # Provide some information about the compiler.
3583 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3584 set X $ac_compile
3585 ac_compiler=$2
3586 for ac_option in --version -v -V -qversion; do
3587   { { ac_try="$ac_compiler $ac_option >&5"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3595   ac_status=$?
3596   if test -s conftest.err; then
3597     sed '10a\
3598 ... rest of stderr output deleted ...
3599          10q' conftest.err >conftest.er1
3600     cat conftest.er1 >&5
3601   fi
3602   rm -f conftest.er1 conftest.err
3603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604   test $ac_status = 0; }
3605 done
3606
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 ac_clean_files_save=$ac_clean_files
3619 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3620 # Try to create an executable without -o first, disregard a.out.
3621 # It will help us diagnose broken compilers, and finding out an intuition
3622 # of exeext.
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3624 $as_echo_n "checking whether the C compiler works... " >&6; }
3625 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3626
3627 # The possible output files:
3628 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3629
3630 ac_rmfiles=
3631 for ac_file in $ac_files
3632 do
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3636   esac
3637 done
3638 rm -f $ac_rmfiles
3639
3640 if { { ac_try="$ac_link_default"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647   (eval "$ac_link_default") 2>&5
3648   ac_status=$?
3649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650   test $ac_status = 0; }; then :
3651   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3652 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3653 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3654 # so that the user can short-circuit this test for compilers unknown to
3655 # Autoconf.
3656 for ac_file in $ac_files ''
3657 do
3658   test -f "$ac_file" || continue
3659   case $ac_file in
3660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3661         ;;
3662     [ab].out )
3663         # We found the default executable, but exeext='' is most
3664         # certainly right.
3665         break;;
3666     *.* )
3667         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3668         then :; else
3669            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3670         fi
3671         # We set ac_cv_exeext here because the later test for it is not
3672         # safe: cross compilers may not add the suffix if given an `-o'
3673         # argument, so we may need to know it at that point already.
3674         # Even if this section looks crufty: it has the advantage of
3675         # actually working.
3676         break;;
3677     * )
3678         break;;
3679   esac
3680 done
3681 test "$ac_cv_exeext" = no && ac_cv_exeext=
3682
3683 else
3684   ac_file=''
3685 fi
3686 if test -z "$ac_file"; then :
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error 77 "C compiler cannot create executables
3695 See \`config.log' for more details" "$LINENO" 5; }
3696 else
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698 $as_echo "yes" >&6; }
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3701 $as_echo_n "checking for C compiler default output file name... " >&6; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3703 $as_echo "$ac_file" >&6; }
3704 ac_exeext=$ac_cv_exeext
3705
3706 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3707 ac_clean_files=$ac_clean_files_save
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3709 $as_echo_n "checking for suffix of executables... " >&6; }
3710 if { { ac_try="$ac_link"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717   (eval "$ac_link") 2>&5
3718   ac_status=$?
3719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720   test $ac_status = 0; }; then :
3721   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3722 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3723 # work properly (i.e., refer to `conftest.exe'), while it won't with
3724 # `rm'.
3725 for ac_file in conftest.exe conftest conftest.*; do
3726   test -f "$ac_file" || continue
3727   case $ac_file in
3728     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3729     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730           break;;
3731     * ) break;;
3732   esac
3733 done
3734 else
3735   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3738 See \`config.log' for more details" "$LINENO" 5; }
3739 fi
3740 rm -f conftest conftest$ac_cv_exeext
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3742 $as_echo "$ac_cv_exeext" >&6; }
3743
3744 rm -f conftest.$ac_ext
3745 EXEEXT=$ac_cv_exeext
3746 ac_exeext=$EXEEXT
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749 #include <stdio.h>
3750 int
3751 main ()
3752 {
3753 FILE *f = fopen ("conftest.out", "w");
3754  return ferror (f) || fclose (f) != 0;
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 ac_clean_files="$ac_clean_files conftest.out"
3761 # Check that the compiler produces executables we can run.  If not, either
3762 # the compiler is broken, or we cross compile.
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3764 $as_echo_n "checking whether we are cross compiling... " >&6; }
3765 if test "$cross_compiling" != yes; then
3766   { { ac_try="$ac_link"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772 $as_echo "$ac_try_echo"; } >&5
3773   (eval "$ac_link") 2>&5
3774   ac_status=$?
3775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776   test $ac_status = 0; }
3777   if { ac_try='./conftest$ac_cv_exeext'
3778   { { case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_try") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }; }; then
3788     cross_compiling=no
3789   else
3790     if test "$cross_compiling" = maybe; then
3791         cross_compiling=yes
3792     else
3793         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error $? "cannot run C compiled programs.
3796 If you meant to cross compile, use \`--host'.
3797 See \`config.log' for more details" "$LINENO" 5; }
3798     fi
3799   fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3802 $as_echo "$cross_compiling" >&6; }
3803
3804 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3805 ac_clean_files=$ac_clean_files_save
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3807 $as_echo_n "checking for suffix of object files... " >&6; }
3808 if ${ac_cv_objext+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 rm -f conftest.o conftest.obj
3823 if { { ac_try="$ac_compile"
3824 case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830   (eval "$ac_compile") 2>&5
3831   ac_status=$?
3832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833   test $ac_status = 0; }; then :
3834   for ac_file in conftest.o conftest.obj conftest.*; do
3835   test -f "$ac_file" || continue;
3836   case $ac_file in
3837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3838     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3839        break;;
3840   esac
3841 done
3842 else
3843   $as_echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot compute suffix of object files: cannot compile
3849 See \`config.log' for more details" "$LINENO" 5; }
3850 fi
3851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3854 $as_echo "$ac_cv_objext" >&6; }
3855 OBJEXT=$ac_cv_objext
3856 ac_objext=$OBJEXT
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3858 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3859 if ${ac_cv_c_compiler_gnu+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h.  */
3864
3865 int
3866 main ()
3867 {
3868 #ifndef __GNUC__
3869        choke me
3870 #endif
3871
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877   ac_compiler_gnu=yes
3878 else
3879   ac_compiler_gnu=no
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3883
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3886 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3887 if test $ac_compiler_gnu = yes; then
3888   GCC=yes
3889 else
3890   GCC=
3891 fi
3892 ac_test_CFLAGS=${CFLAGS+set}
3893 ac_save_CFLAGS=$CFLAGS
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3895 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3896 if ${ac_cv_prog_cc_g+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   ac_save_c_werror_flag=$ac_c_werror_flag
3900    ac_c_werror_flag=yes
3901    ac_cv_prog_cc_g=no
3902    CFLAGS="-g"
3903    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915   ac_cv_prog_cc_g=yes
3916 else
3917   CFLAGS=""
3918       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h.  */
3920
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930
3931 else
3932   ac_c_werror_flag=$ac_save_c_werror_flag
3933          CFLAGS="-g"
3934          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936
3937 int
3938 main ()
3939 {
3940
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946   ac_cv_prog_cc_g=yes
3947 fi
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 fi
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953    ac_c_werror_flag=$ac_save_c_werror_flag
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3956 $as_echo "$ac_cv_prog_cc_g" >&6; }
3957 if test "$ac_test_CFLAGS" = set; then
3958   CFLAGS=$ac_save_CFLAGS
3959 elif test $ac_cv_prog_cc_g = yes; then
3960   if test "$GCC" = yes; then
3961     CFLAGS="-g -O2"
3962   else
3963     CFLAGS="-g"
3964   fi
3965 else
3966   if test "$GCC" = yes; then
3967     CFLAGS="-O2"
3968   else
3969     CFLAGS=
3970   fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3973 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3974 if ${ac_cv_prog_cc_c89+:} false; then :
3975   $as_echo_n "(cached) " >&6
3976 else
3977   ac_cv_prog_cc_c89=no
3978 ac_save_CC=$CC
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981 #include <stdarg.h>
3982 #include <stdio.h>
3983 struct stat;
3984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3985 struct buf { int x; };
3986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3987 static char *e (p, i)
3988      char **p;
3989      int i;
3990 {
3991   return p[i];
3992 }
3993 static char *f (char * (*g) (char **, int), char **p, ...)
3994 {
3995   char *s;
3996   va_list v;
3997   va_start (v,p);
3998   s = g (p, va_arg (v,int));
3999   va_end (v);
4000   return s;
4001 }
4002
4003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4004    function prototypes and stuff, but not '\xHH' hex character constants.
4005    These don't provoke an error unfortunately, instead are silently treated
4006    as 'x'.  The following induces an error, until -std is added to get
4007    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4008    array size at least.  It's necessary to write '\x00'==0 to get something
4009    that's true only with -std.  */
4010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4011
4012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4013    inside strings and character constants.  */
4014 #define FOO(x) 'x'
4015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4016
4017 int test (int i, double x);
4018 struct s1 {int (*f) (int a);};
4019 struct s2 {int (*f) (double a);};
4020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4021 int argc;
4022 char **argv;
4023 int
4024 main ()
4025 {
4026 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4027   ;
4028   return 0;
4029 }
4030 _ACEOF
4031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4032         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4033 do
4034   CC="$ac_save_CC $ac_arg"
4035   if ac_fn_c_try_compile "$LINENO"; then :
4036   ac_cv_prog_cc_c89=$ac_arg
4037 fi
4038 rm -f core conftest.err conftest.$ac_objext
4039   test "x$ac_cv_prog_cc_c89" != "xno" && break
4040 done
4041 rm -f conftest.$ac_ext
4042 CC=$ac_save_CC
4043
4044 fi
4045 # AC_CACHE_VAL
4046 case "x$ac_cv_prog_cc_c89" in
4047   x)
4048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4049 $as_echo "none needed" >&6; } ;;
4050   xno)
4051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4052 $as_echo "unsupported" >&6; } ;;
4053   *)
4054     CC="$CC $ac_cv_prog_cc_c89"
4055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4056 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4057 esac
4058 if test "x$ac_cv_prog_cc_c89" != xno; then :
4059
4060 fi
4061
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4074 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4075 if ${am_cv_prog_cc_c_o+:} false; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089   # Make sure it works both with $CC and with simple cc.
4090   # Following AC_PROG_CC_C_O, we do the test twice because some
4091   # compilers refuse to overwrite an existing .o file with -o,
4092   # though they will create one.
4093   am_cv_prog_cc_c_o=yes
4094   for am_i in 1 2; do
4095     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4096    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4097    ac_status=$?
4098    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099    (exit $ac_status); } \
4100          && test -f conftest2.$ac_objext; then
4101       : OK
4102     else
4103       am_cv_prog_cc_c_o=no
4104       break
4105     fi
4106   done
4107   rm -f core conftest*
4108   unset am_i
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4111 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4112 if test "$am_cv_prog_cc_c_o" != yes; then
4113    # Losing compiler, so override with the script.
4114    # FIXME: It is wrong to rewrite CC.
4115    # But if we don't then we get into trouble of one sort or another.
4116    # A longer-term fix would be to have automake use am__CC in this case,
4117    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4118    CC="$am_aux_dir/compile $CC"
4119 fi
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125
4126 DEPDIR="${am__leading_dot}deps"
4127
4128 ac_config_commands="$ac_config_commands depfiles"
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4131 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4132 cat > confinc.mk << 'END'
4133 am__doit:
4134         @echo this is the am__doit target >confinc.out
4135 .PHONY: am__doit
4136 END
4137 am__include="#"
4138 am__quote=
4139 # BSD make does it like this.
4140 echo '.include "confinc.mk" # ignored' > confmf.BSD
4141 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4142 echo 'include confinc.mk # ignored' > confmf.GNU
4143 _am_result=no
4144 for s in GNU BSD; do
4145   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4146    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4147    ac_status=$?
4148    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149    (exit $ac_status); }
4150   case $?:`cat confinc.out 2>/dev/null` in #(
4151   '0:this is the am__doit target') :
4152     case $s in #(
4153   BSD) :
4154     am__include='.include' am__quote='"' ;; #(
4155   *) :
4156     am__include='include' am__quote='' ;;
4157 esac ;; #(
4158   *) :
4159      ;;
4160 esac
4161   if test "$am__include" != "#"; then
4162     _am_result="yes ($s style)"
4163     break
4164   fi
4165 done
4166 rm -f confinc.* confmf.*
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4168 $as_echo "${_am_result}" >&6; }
4169
4170 # Check whether --enable-dependency-tracking was given.
4171 if test "${enable_dependency_tracking+set}" = set; then :
4172   enableval=$enable_dependency_tracking;
4173 fi
4174
4175 if test "x$enable_dependency_tracking" != xno; then
4176   am_depcomp="$ac_aux_dir/depcomp"
4177   AMDEPBACKSLASH='\'
4178   am__nodep='_no'
4179 fi
4180  if test "x$enable_dependency_tracking" != xno; then
4181   AMDEP_TRUE=
4182   AMDEP_FALSE='#'
4183 else
4184   AMDEP_TRUE='#'
4185   AMDEP_FALSE=
4186 fi
4187
4188
4189
4190 depcc="$CC"   am_compiler_list=
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4193 $as_echo_n "checking dependency style of $depcc... " >&6; }
4194 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4198   # We make a subdir and do the tests there.  Otherwise we can end up
4199   # making bogus files that we don't know about and never remove.  For
4200   # instance it was reported that on HP-UX the gcc test will end up
4201   # making a dummy file named 'D' -- because '-MD' means "put the output
4202   # in D".
4203   rm -rf conftest.dir
4204   mkdir conftest.dir
4205   # Copy depcomp to subdir because otherwise we won't find it if we're
4206   # using a relative directory.
4207   cp "$am_depcomp" conftest.dir
4208   cd conftest.dir
4209   # We will build objects and dependencies in a subdirectory because
4210   # it helps to detect inapplicable dependency modes.  For instance
4211   # both Tru64's cc and ICC support -MD to output dependencies as a
4212   # side effect of compilation, but ICC will put the dependencies in
4213   # the current directory while Tru64 will put them in the object
4214   # directory.
4215   mkdir sub
4216
4217   am_cv_CC_dependencies_compiler_type=none
4218   if test "$am_compiler_list" = ""; then
4219      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4220   fi
4221   am__universal=false
4222   case " $depcc " in #(
4223      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4224      esac
4225
4226   for depmode in $am_compiler_list; do
4227     # Setup a source with many dependencies, because some compilers
4228     # like to wrap large dependency lists on column 80 (with \), and
4229     # we should not choose a depcomp mode which is confused by this.
4230     #
4231     # We need to recreate these files for each test, as the compiler may
4232     # overwrite some of them when testing with obscure command lines.
4233     # This happens at least with the AIX C compiler.
4234     : > sub/conftest.c
4235     for i in 1 2 3 4 5 6; do
4236       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4238       # Solaris 10 /bin/sh.
4239       echo '/* dummy */' > sub/conftst$i.h
4240     done
4241     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242
4243     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4244     # mode.  It turns out that the SunPro C++ compiler does not properly
4245     # handle '-M -o', and we need to detect this.  Also, some Intel
4246     # versions had trouble with output in subdirs.
4247     am__obj=sub/conftest.${OBJEXT-o}
4248     am__minus_obj="-o $am__obj"
4249     case $depmode in
4250     gcc)
4251       # This depmode causes a compiler race in universal mode.
4252       test "$am__universal" = false || continue
4253       ;;
4254     nosideeffect)
4255       # After this tag, mechanisms are not by side-effect, so they'll
4256       # only be used when explicitly requested.
4257       if test "x$enable_dependency_tracking" = xyes; then
4258         continue
4259       else
4260         break
4261       fi
4262       ;;
4263     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4264       # This compiler won't grok '-c -o', but also, the minuso test has
4265       # not run yet.  These depmodes are late enough in the game, and
4266       # so weak that their functioning should not be impacted.
4267       am__obj=conftest.${OBJEXT-o}
4268       am__minus_obj=
4269       ;;
4270     none) break ;;
4271     esac
4272     if depmode=$depmode \
4273        source=sub/conftest.c object=$am__obj \
4274        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4275        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4276          >/dev/null 2>conftest.err &&
4277        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4278        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4279        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4280        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4281       # icc doesn't choke on unknown options, it will just issue warnings
4282       # or remarks (even with -Werror).  So we grep stderr for any message
4283       # that says an option was ignored or not supported.
4284       # When given -MP, icc 7.0 and 7.1 complain thusly:
4285       #   icc: Command line warning: ignoring option '-M'; no argument required
4286       # The diagnosis changed in icc 8.0:
4287       #   icc: Command line remark: option '-MP' not supported
4288       if (grep 'ignoring option' conftest.err ||
4289           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4290         am_cv_CC_dependencies_compiler_type=$depmode
4291         break
4292       fi
4293     fi
4294   done
4295
4296   cd ..
4297   rm -rf conftest.dir
4298 else
4299   am_cv_CC_dependencies_compiler_type=none
4300 fi
4301
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4304 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4305 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306
4307  if
4308   test "x$enable_dependency_tracking" != xno \
4309   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310   am__fastdepCC_TRUE=
4311   am__fastdepCC_FALSE='#'
4312 else
4313   am__fastdepCC_TRUE='#'
4314   am__fastdepCC_FALSE=
4315 fi
4316
4317
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4325 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4326 # On Suns, sometimes $CPP names a directory.
4327 if test -n "$CPP" && test -d "$CPP"; then
4328   CPP=
4329 fi
4330 if test -z "$CPP"; then
4331   if ${ac_cv_prog_CPP+:} false; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334       # Double quotes because CPP needs to be expanded
4335     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4336     do
4337       ac_preproc_ok=false
4338 for ac_c_preproc_warn_flag in '' yes
4339 do
4340   # Use a header file that comes with gcc, so configuring glibc
4341   # with a fresh cross-compiler works.
4342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4343   # <limits.h> exists even on freestanding compilers.
4344   # On the NeXT, cc -E runs the code through the compiler's parser,
4345   # not just through cpp. "Syntax error" is here to catch this case.
4346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h.  */
4348 #ifdef __STDC__
4349 # include <limits.h>
4350 #else
4351 # include <assert.h>
4352 #endif
4353                      Syntax error
4354 _ACEOF
4355 if ac_fn_c_try_cpp "$LINENO"; then :
4356
4357 else
4358   # Broken: fails on valid input.
4359 continue
4360 fi
4361 rm -f conftest.err conftest.i conftest.$ac_ext
4362
4363   # OK, works on sane cases.  Now check whether nonexistent headers
4364   # can be detected and how.
4365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h.  */
4367 #include <ac_nonexistent.h>
4368 _ACEOF
4369 if ac_fn_c_try_cpp "$LINENO"; then :
4370   # Broken: success on invalid input.
4371 continue
4372 else
4373   # Passes both tests.
4374 ac_preproc_ok=:
4375 break
4376 fi
4377 rm -f conftest.err conftest.i conftest.$ac_ext
4378
4379 done
4380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4381 rm -f conftest.i conftest.err conftest.$ac_ext
4382 if $ac_preproc_ok; then :
4383   break
4384 fi
4385
4386     done
4387     ac_cv_prog_CPP=$CPP
4388
4389 fi
4390   CPP=$ac_cv_prog_CPP
4391 else
4392   ac_cv_prog_CPP=$CPP
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4395 $as_echo "$CPP" >&6; }
4396 ac_preproc_ok=false
4397 for ac_c_preproc_warn_flag in '' yes
4398 do
4399   # Use a header file that comes with gcc, so configuring glibc
4400   # with a fresh cross-compiler works.
4401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402   # <limits.h> exists even on freestanding compilers.
4403   # On the NeXT, cc -E runs the code through the compiler's parser,
4404   # not just through cpp. "Syntax error" is here to catch this case.
4405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h.  */
4407 #ifdef __STDC__
4408 # include <limits.h>
4409 #else
4410 # include <assert.h>
4411 #endif
4412                      Syntax error
4413 _ACEOF
4414 if ac_fn_c_try_cpp "$LINENO"; then :
4415
4416 else
4417   # Broken: fails on valid input.
4418 continue
4419 fi
4420 rm -f conftest.err conftest.i conftest.$ac_ext
4421
4422   # OK, works on sane cases.  Now check whether nonexistent headers
4423   # can be detected and how.
4424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426 #include <ac_nonexistent.h>
4427 _ACEOF
4428 if ac_fn_c_try_cpp "$LINENO"; then :
4429   # Broken: success on invalid input.
4430 continue
4431 else
4432   # Passes both tests.
4433 ac_preproc_ok=:
4434 break
4435 fi
4436 rm -f conftest.err conftest.i conftest.$ac_ext
4437
4438 done
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.i conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then :
4442
4443 else
4444   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4447 See \`config.log' for more details" "$LINENO" 5; }
4448 fi
4449
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4458 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4459 if ${ac_cv_path_GREP+:} false; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   if test -z "$GREP"; then
4463   ac_path_GREP_found=false
4464   # Loop through the user's path and test for each of PROGNAME-LIST
4465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467 do
4468   IFS=$as_save_IFS
4469   test -z "$as_dir" && as_dir=.
4470     for ac_prog in grep ggrep; do
4471     for ac_exec_ext in '' $ac_executable_extensions; do
4472       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4473       as_fn_executable_p "$ac_path_GREP" || continue
4474 # Check for GNU ac_path_GREP and select it if it is found.
4475   # Check for GNU $ac_path_GREP
4476 case `"$ac_path_GREP" --version 2>&1` in
4477 *GNU*)
4478   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4479 *)
4480   ac_count=0
4481   $as_echo_n 0123456789 >"conftest.in"
4482   while :
4483   do
4484     cat "conftest.in" "conftest.in" >"conftest.tmp"
4485     mv "conftest.tmp" "conftest.in"
4486     cp "conftest.in" "conftest.nl"
4487     $as_echo 'GREP' >> "conftest.nl"
4488     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490     as_fn_arith $ac_count + 1 && ac_count=$as_val
4491     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4492       # Best one so far, save it but keep looking for a better one
4493       ac_cv_path_GREP="$ac_path_GREP"
4494       ac_path_GREP_max=$ac_count
4495     fi
4496     # 10*(2^10) chars as input seems more than enough
4497     test $ac_count -gt 10 && break
4498   done
4499   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500 esac
4501
4502       $ac_path_GREP_found && break 3
4503     done
4504   done
4505   done
4506 IFS=$as_save_IFS
4507   if test -z "$ac_cv_path_GREP"; then
4508     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509   fi
4510 else
4511   ac_cv_path_GREP=$GREP
4512 fi
4513
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4516 $as_echo "$ac_cv_path_GREP" >&6; }
4517  GREP="$ac_cv_path_GREP"
4518
4519
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4521 $as_echo_n "checking for egrep... " >&6; }
4522 if ${ac_cv_path_EGREP+:} false; then :
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4526    then ac_cv_path_EGREP="$GREP -E"
4527    else
4528      if test -z "$EGREP"; then
4529   ac_path_EGREP_found=false
4530   # Loop through the user's path and test for each of PROGNAME-LIST
4531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 do
4534   IFS=$as_save_IFS
4535   test -z "$as_dir" && as_dir=.
4536     for ac_prog in egrep; do
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4539       as_fn_executable_p "$ac_path_EGREP" || continue
4540 # Check for GNU ac_path_EGREP and select it if it is found.
4541   # Check for GNU $ac_path_EGREP
4542 case `"$ac_path_EGREP" --version 2>&1` in
4543 *GNU*)
4544   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4545 *)
4546   ac_count=0
4547   $as_echo_n 0123456789 >"conftest.in"
4548   while :
4549   do
4550     cat "conftest.in" "conftest.in" >"conftest.tmp"
4551     mv "conftest.tmp" "conftest.in"
4552     cp "conftest.in" "conftest.nl"
4553     $as_echo 'EGREP' >> "conftest.nl"
4554     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556     as_fn_arith $ac_count + 1 && ac_count=$as_val
4557     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4558       # Best one so far, save it but keep looking for a better one
4559       ac_cv_path_EGREP="$ac_path_EGREP"
4560       ac_path_EGREP_max=$ac_count
4561     fi
4562     # 10*(2^10) chars as input seems more than enough
4563     test $ac_count -gt 10 && break
4564   done
4565   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 esac
4567
4568       $ac_path_EGREP_found && break 3
4569     done
4570   done
4571   done
4572 IFS=$as_save_IFS
4573   if test -z "$ac_cv_path_EGREP"; then
4574     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4575   fi
4576 else
4577   ac_cv_path_EGREP=$EGREP
4578 fi
4579
4580    fi
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4583 $as_echo "$ac_cv_path_EGREP" >&6; }
4584  EGREP="$ac_cv_path_EGREP"
4585
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4588 $as_echo_n "checking for ANSI C header files... " >&6; }
4589 if ${ac_cv_header_stdc+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h.  */
4594 #include <stdlib.h>
4595 #include <stdarg.h>
4596 #include <string.h>
4597 #include <float.h>
4598
4599 int
4600 main ()
4601 {
4602
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608   ac_cv_header_stdc=yes
4609 else
4610   ac_cv_header_stdc=no
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613
4614 if test $ac_cv_header_stdc = yes; then
4615   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 #include <string.h>
4619
4620 _ACEOF
4621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622   $EGREP "memchr" >/dev/null 2>&1; then :
4623
4624 else
4625   ac_cv_header_stdc=no
4626 fi
4627 rm -f conftest*
4628
4629 fi
4630
4631 if test $ac_cv_header_stdc = yes; then
4632   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h.  */
4635 #include <stdlib.h>
4636
4637 _ACEOF
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639   $EGREP "free" >/dev/null 2>&1; then :
4640
4641 else
4642   ac_cv_header_stdc=no
4643 fi
4644 rm -f conftest*
4645
4646 fi
4647
4648 if test $ac_cv_header_stdc = yes; then
4649   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4650   if test "$cross_compiling" = yes; then :
4651   :
4652 else
4653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h.  */
4655 #include <ctype.h>
4656 #include <stdlib.h>
4657 #if ((' ' & 0x0FF) == 0x020)
4658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4660 #else
4661 # define ISLOWER(c) \
4662                    (('a' <= (c) && (c) <= 'i') \
4663                      || ('j' <= (c) && (c) <= 'r') \
4664                      || ('s' <= (c) && (c) <= 'z'))
4665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4666 #endif
4667
4668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669 int
4670 main ()
4671 {
4672   int i;
4673   for (i = 0; i < 256; i++)
4674     if (XOR (islower (i), ISLOWER (i))
4675         || toupper (i) != TOUPPER (i))
4676       return 2;
4677   return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_run "$LINENO"; then :
4681
4682 else
4683   ac_cv_header_stdc=no
4684 fi
4685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4686   conftest.$ac_objext conftest.beam conftest.$ac_ext
4687 fi
4688
4689 fi
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4692 $as_echo "$ac_cv_header_stdc" >&6; }
4693 if test $ac_cv_header_stdc = yes; then
4694
4695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4696
4697 fi
4698
4699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4701                   inttypes.h stdint.h unistd.h
4702 do :
4703   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4705 "
4706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4707   cat >>confdefs.h <<_ACEOF
4708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4709 _ACEOF
4710
4711 fi
4712
4713 done
4714
4715
4716
4717   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4718 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4719   MINIX=yes
4720 else
4721   MINIX=
4722 fi
4723
4724
4725   if test "$MINIX" = yes; then
4726
4727 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4728
4729
4730 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4731
4732
4733 $as_echo "#define _MINIX 1" >>confdefs.h
4734
4735   fi
4736
4737
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4739 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4740 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745
4746 #         define __EXTENSIONS__ 1
4747           $ac_includes_default
4748 int
4749 main ()
4750 {
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757   ac_cv_safe_to_define___extensions__=yes
4758 else
4759   ac_cv_safe_to_define___extensions__=no
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4764 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4765   test $ac_cv_safe_to_define___extensions__ = yes &&
4766     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4767
4768   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4769
4770   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4771
4772   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4773
4774   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4775
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler is Clang" >&5
4778 $as_echo_n "checking if the compiler is Clang... " >&6; }
4779 if ${rra_cv_prog_cc_clang+:} false; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h.  */
4784
4785 #if ! __clang__
4786 #error
4787 #endif
4788
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791   rra_cv_prog_cc_clang=yes
4792 else
4793   rra_cv_prog_cc_clang=no
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_prog_cc_clang" >&5
4798 $as_echo "$rra_cv_prog_cc_clang" >&6; }
4799  if test x"$rra_cv_prog_cc_clang" = xyes; then :
4800   CLANG=yes
4801 fi
4802
4803  if test x"$CLANG" = xyes; then :
4804   WARNINGS_CFLAGS="-Werror"
4805
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Weverything" >&5
4807 $as_echo_n "checking if $CC supports -Weverything... " >&6; }
4808  if ${rra_cv_compiler_c__Weverything+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   save_CFLAGS=$CFLAGS
4812      case -Weverything in #(
4813   -Wno-*) :
4814     CFLAGS="$CFLAGS `echo "-Weverything" | sed 's/-Wno-/-W/'`" ;; #(
4815   *) :
4816     CFLAGS="$CFLAGS -Weverything" ;; #(
4817   *) :
4818      ;;
4819 esac
4820      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822
4823 int
4824 main ()
4825 {
4826 int foo = 0;
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832   rra_cv_compiler_c__Weverything=yes
4833 else
4834   rra_cv_compiler_c__Weverything=no
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837      CFLAGS=$save_CFLAGS
4838 fi
4839
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Weverything" >&5
4841 $as_echo "$rra_cv_compiler_c__Weverything" >&6; }
4842  if test x"$rra_cv_compiler_c__Weverything" = xyes; then :
4843   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Weverything"
4844 fi
4845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5
4846 $as_echo_n "checking if $CC supports -Wno-cast-qual... " >&6; }
4847  if ${rra_cv_compiler_c__Wno_cast_qual+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   save_CFLAGS=$CFLAGS
4851      case -Wno-cast-qual in #(
4852   -Wno-*) :
4853     CFLAGS="$CFLAGS `echo "-Wno-cast-qual" | sed 's/-Wno-/-W/'`" ;; #(
4854   *) :
4855     CFLAGS="$CFLAGS -Wno-cast-qual" ;; #(
4856   *) :
4857      ;;
4858 esac
4859      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4861
4862 int
4863 main ()
4864 {
4865 int foo = 0;
4866   ;
4867   return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"; then :
4871   rra_cv_compiler_c__Wno_cast_qual=yes
4872 else
4873   rra_cv_compiler_c__Wno_cast_qual=no
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876      CFLAGS=$save_CFLAGS
4877 fi
4878
4879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_cast_qual" >&5
4880 $as_echo "$rra_cv_compiler_c__Wno_cast_qual" >&6; }
4881  if test x"$rra_cv_compiler_c__Wno_cast_qual" = xyes; then :
4882   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-cast-qual"
4883 fi
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-disabled-macro-expansion" >&5
4885 $as_echo_n "checking if $CC supports -Wno-disabled-macro-expansion... " >&6; }
4886  if ${rra_cv_compiler_c__Wno_disabled_macro_expansion+:} false; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889   save_CFLAGS=$CFLAGS
4890      case -Wno-disabled-macro-expansion in #(
4891   -Wno-*) :
4892     CFLAGS="$CFLAGS `echo "-Wno-disabled-macro-expansion" | sed 's/-Wno-/-W/'`" ;; #(
4893   *) :
4894     CFLAGS="$CFLAGS -Wno-disabled-macro-expansion" ;; #(
4895   *) :
4896      ;;
4897 esac
4898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h.  */
4900
4901 int
4902 main ()
4903 {
4904 int foo = 0;
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910   rra_cv_compiler_c__Wno_disabled_macro_expansion=yes
4911 else
4912   rra_cv_compiler_c__Wno_disabled_macro_expansion=no
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915      CFLAGS=$save_CFLAGS
4916 fi
4917
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_disabled_macro_expansion" >&5
4919 $as_echo "$rra_cv_compiler_c__Wno_disabled_macro_expansion" >&6; }
4920  if test x"$rra_cv_compiler_c__Wno_disabled_macro_expansion" = xyes; then :
4921   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-disabled-macro-expansion"
4922 fi
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-padded" >&5
4924 $as_echo_n "checking if $CC supports -Wno-padded... " >&6; }
4925  if ${rra_cv_compiler_c__Wno_padded+:} false; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   save_CFLAGS=$CFLAGS
4929      case -Wno-padded in #(
4930   -Wno-*) :
4931     CFLAGS="$CFLAGS `echo "-Wno-padded" | sed 's/-Wno-/-W/'`" ;; #(
4932   *) :
4933     CFLAGS="$CFLAGS -Wno-padded" ;; #(
4934   *) :
4935      ;;
4936 esac
4937      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h.  */
4939
4940 int
4941 main ()
4942 {
4943 int foo = 0;
4944   ;
4945   return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949   rra_cv_compiler_c__Wno_padded=yes
4950 else
4951   rra_cv_compiler_c__Wno_padded=no
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954      CFLAGS=$save_CFLAGS
4955 fi
4956
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_padded" >&5
4958 $as_echo "$rra_cv_compiler_c__Wno_padded" >&6; }
4959  if test x"$rra_cv_compiler_c__Wno_padded" = xyes; then :
4960   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-padded"
4961 fi
4962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5
4963 $as_echo_n "checking if $CC supports -Wno-sign-conversion... " >&6; }
4964  if ${rra_cv_compiler_c__Wno_sign_conversion+:} false; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   save_CFLAGS=$CFLAGS
4968      case -Wno-sign-conversion in #(
4969   -Wno-*) :
4970     CFLAGS="$CFLAGS `echo "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #(
4971   *) :
4972     CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #(
4973   *) :
4974      ;;
4975 esac
4976      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h.  */
4978
4979 int
4980 main ()
4981 {
4982 int foo = 0;
4983   ;
4984   return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988   rra_cv_compiler_c__Wno_sign_conversion=yes
4989 else
4990   rra_cv_compiler_c__Wno_sign_conversion=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993      CFLAGS=$save_CFLAGS
4994 fi
4995
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5
4997 $as_echo "$rra_cv_compiler_c__Wno_sign_conversion" >&6; }
4998  if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes; then :
4999   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion"
5000 fi
5001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-reserved-id-macro" >&5
5002 $as_echo_n "checking if $CC supports -Wno-reserved-id-macro... " >&6; }
5003  if ${rra_cv_compiler_c__Wno_reserved_id_macro+:} false; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   save_CFLAGS=$CFLAGS
5007      case -Wno-reserved-id-macro in #(
5008   -Wno-*) :
5009     CFLAGS="$CFLAGS `echo "-Wno-reserved-id-macro" | sed 's/-Wno-/-W/'`" ;; #(
5010   *) :
5011     CFLAGS="$CFLAGS -Wno-reserved-id-macro" ;; #(
5012   *) :
5013      ;;
5014 esac
5015      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h.  */
5017
5018 int
5019 main ()
5020 {
5021 int foo = 0;
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027   rra_cv_compiler_c__Wno_reserved_id_macro=yes
5028 else
5029   rra_cv_compiler_c__Wno_reserved_id_macro=no
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032      CFLAGS=$save_CFLAGS
5033 fi
5034
5035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_reserved_id_macro" >&5
5036 $as_echo "$rra_cv_compiler_c__Wno_reserved_id_macro" >&6; }
5037  if test x"$rra_cv_compiler_c__Wno_reserved_id_macro" = xyes; then :
5038   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-reserved-id-macro"
5039 fi
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-tautological-pointer-compare" >&5
5041 $as_echo_n "checking if $CC supports -Wno-tautological-pointer-compare... " >&6; }
5042  if ${rra_cv_compiler_c__Wno_tautological_pointer_compare+:} false; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   save_CFLAGS=$CFLAGS
5046      case -Wno-tautological-pointer-compare in #(
5047   -Wno-*) :
5048     CFLAGS="$CFLAGS `echo "-Wno-tautological-pointer-compare" | sed 's/-Wno-/-W/'`" ;; #(
5049   *) :
5050     CFLAGS="$CFLAGS -Wno-tautological-pointer-compare" ;; #(
5051   *) :
5052      ;;
5053 esac
5054      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h.  */
5056
5057 int
5058 main ()
5059 {
5060 int foo = 0;
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066   rra_cv_compiler_c__Wno_tautological_pointer_compare=yes
5067 else
5068   rra_cv_compiler_c__Wno_tautological_pointer_compare=no
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071      CFLAGS=$save_CFLAGS
5072 fi
5073
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_tautological_pointer_compare" >&5
5075 $as_echo "$rra_cv_compiler_c__Wno_tautological_pointer_compare" >&6; }
5076  if test x"$rra_cv_compiler_c__Wno_tautological_pointer_compare" = xyes; then :
5077   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-tautological-pointer-compare"
5078 fi
5079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-undef" >&5
5080 $as_echo_n "checking if $CC supports -Wno-undef... " >&6; }
5081  if ${rra_cv_compiler_c__Wno_undef+:} false; then :
5082   $as_echo_n "(cached) " >&6
5083 else
5084   save_CFLAGS=$CFLAGS
5085      case -Wno-undef in #(
5086   -Wno-*) :
5087     CFLAGS="$CFLAGS `echo "-Wno-undef" | sed 's/-Wno-/-W/'`" ;; #(
5088   *) :
5089     CFLAGS="$CFLAGS -Wno-undef" ;; #(
5090   *) :
5091      ;;
5092 esac
5093      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h.  */
5095
5096 int
5097 main ()
5098 {
5099 int foo = 0;
5100   ;
5101   return 0;
5102 }
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105   rra_cv_compiler_c__Wno_undef=yes
5106 else
5107   rra_cv_compiler_c__Wno_undef=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110      CFLAGS=$save_CFLAGS
5111 fi
5112
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_undef" >&5
5114 $as_echo "$rra_cv_compiler_c__Wno_undef" >&6; }
5115  if test x"$rra_cv_compiler_c__Wno_undef" = xyes; then :
5116   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-undef"
5117 fi
5118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code" >&5
5119 $as_echo_n "checking if $CC supports -Wno-unreachable-code... " >&6; }
5120  if ${rra_cv_compiler_c__Wno_unreachable_code+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   save_CFLAGS=$CFLAGS
5124      case -Wno-unreachable-code in #(
5125   -Wno-*) :
5126     CFLAGS="$CFLAGS `echo "-Wno-unreachable-code" | sed 's/-Wno-/-W/'`" ;; #(
5127   *) :
5128     CFLAGS="$CFLAGS -Wno-unreachable-code" ;; #(
5129   *) :
5130      ;;
5131 esac
5132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h.  */
5134
5135 int
5136 main ()
5137 {
5138 int foo = 0;
5139   ;
5140   return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_c_try_compile "$LINENO"; then :
5144   rra_cv_compiler_c__Wno_unreachable_code=yes
5145 else
5146   rra_cv_compiler_c__Wno_unreachable_code=no
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149      CFLAGS=$save_CFLAGS
5150 fi
5151
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code" >&5
5153 $as_echo "$rra_cv_compiler_c__Wno_unreachable_code" >&6; }
5154  if test x"$rra_cv_compiler_c__Wno_unreachable_code" = xyes; then :
5155   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code"
5156 fi
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code-return" >&5
5158 $as_echo_n "checking if $CC supports -Wno-unreachable-code-return... " >&6; }
5159  if ${rra_cv_compiler_c__Wno_unreachable_code_return+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   save_CFLAGS=$CFLAGS
5163      case -Wno-unreachable-code-return in #(
5164   -Wno-*) :
5165     CFLAGS="$CFLAGS `echo "-Wno-unreachable-code-return" | sed 's/-Wno-/-W/'`" ;; #(
5166   *) :
5167     CFLAGS="$CFLAGS -Wno-unreachable-code-return" ;; #(
5168   *) :
5169      ;;
5170 esac
5171      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h.  */
5173
5174 int
5175 main ()
5176 {
5177 int foo = 0;
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 if ac_fn_c_try_compile "$LINENO"; then :
5183   rra_cv_compiler_c__Wno_unreachable_code_return=yes
5184 else
5185   rra_cv_compiler_c__Wno_unreachable_code_return=no
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188      CFLAGS=$save_CFLAGS
5189 fi
5190
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code_return" >&5
5192 $as_echo "$rra_cv_compiler_c__Wno_unreachable_code_return" >&6; }
5193  if test x"$rra_cv_compiler_c__Wno_unreachable_code_return" = xyes; then :
5194   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code-return"
5195 fi
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-macros" >&5
5197 $as_echo_n "checking if $CC supports -Wno-unused-macros... " >&6; }
5198  if ${rra_cv_compiler_c__Wno_unused_macros+:} false; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   save_CFLAGS=$CFLAGS
5202      case -Wno-unused-macros in #(
5203   -Wno-*) :
5204     CFLAGS="$CFLAGS `echo "-Wno-unused-macros" | sed 's/-Wno-/-W/'`" ;; #(
5205   *) :
5206     CFLAGS="$CFLAGS -Wno-unused-macros" ;; #(
5207   *) :
5208      ;;
5209 esac
5210      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h.  */
5212
5213 int
5214 main ()
5215 {
5216 int foo = 0;
5217   ;
5218   return 0;
5219 }
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"; then :
5222   rra_cv_compiler_c__Wno_unused_macros=yes
5223 else
5224   rra_cv_compiler_c__Wno_unused_macros=no
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227      CFLAGS=$save_CFLAGS
5228 fi
5229
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unused_macros" >&5
5231 $as_echo "$rra_cv_compiler_c__Wno_unused_macros" >&6; }
5232  if test x"$rra_cv_compiler_c__Wno_unused_macros" = xyes; then :
5233   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unused-macros"
5234 fi
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-used-but-marked-unused" >&5
5236 $as_echo_n "checking if $CC supports -Wno-used-but-marked-unused... " >&6; }
5237  if ${rra_cv_compiler_c__Wno_used_but_marked_unused+:} false; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   save_CFLAGS=$CFLAGS
5241      case -Wno-used-but-marked-unused in #(
5242   -Wno-*) :
5243     CFLAGS="$CFLAGS `echo "-Wno-used-but-marked-unused" | sed 's/-Wno-/-W/'`" ;; #(
5244   *) :
5245     CFLAGS="$CFLAGS -Wno-used-but-marked-unused" ;; #(
5246   *) :
5247      ;;
5248 esac
5249      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h.  */
5251
5252 int
5253 main ()
5254 {
5255 int foo = 0;
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261   rra_cv_compiler_c__Wno_used_but_marked_unused=yes
5262 else
5263   rra_cv_compiler_c__Wno_used_but_marked_unused=no
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266      CFLAGS=$save_CFLAGS
5267 fi
5268
5269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_used_but_marked_unused" >&5
5270 $as_echo "$rra_cv_compiler_c__Wno_used_but_marked_unused" >&6; }
5271  if test x"$rra_cv_compiler_c__Wno_used_but_marked_unused" = xyes; then :
5272   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-used-but-marked-unused"
5273 fi
5274 else
5275   WARNINGS_CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2 -Werror"
5276
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow" >&5
5278 $as_echo_n "checking if $CC supports -fstrict-overflow... " >&6; }
5279  if ${rra_cv_compiler_c__fstrict_overflow+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   save_CFLAGS=$CFLAGS
5283      case -fstrict-overflow in #(
5284   -Wno-*) :
5285     CFLAGS="$CFLAGS `echo "-fstrict-overflow" | sed 's/-Wno-/-W/'`" ;; #(
5286   *) :
5287     CFLAGS="$CFLAGS -fstrict-overflow" ;; #(
5288   *) :
5289      ;;
5290 esac
5291      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293
5294 int
5295 main ()
5296 {
5297 int foo = 0;
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303   rra_cv_compiler_c__fstrict_overflow=yes
5304 else
5305   rra_cv_compiler_c__fstrict_overflow=no
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308      CFLAGS=$save_CFLAGS
5309 fi
5310
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_overflow" >&5
5312 $as_echo "$rra_cv_compiler_c__fstrict_overflow" >&6; }
5313  if test x"$rra_cv_compiler_c__fstrict_overflow" = xyes; then :
5314   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-overflow"
5315 fi
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-aliasing" >&5
5317 $as_echo_n "checking if $CC supports -fstrict-aliasing... " >&6; }
5318  if ${rra_cv_compiler_c__fstrict_aliasing+:} false; then :
5319   $as_echo_n "(cached) " >&6
5320 else
5321   save_CFLAGS=$CFLAGS
5322      case -fstrict-aliasing in #(
5323   -Wno-*) :
5324     CFLAGS="$CFLAGS `echo "-fstrict-aliasing" | sed 's/-Wno-/-W/'`" ;; #(
5325   *) :
5326     CFLAGS="$CFLAGS -fstrict-aliasing" ;; #(
5327   *) :
5328      ;;
5329 esac
5330      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h.  */
5332
5333 int
5334 main ()
5335 {
5336 int foo = 0;
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342   rra_cv_compiler_c__fstrict_aliasing=yes
5343 else
5344   rra_cv_compiler_c__fstrict_aliasing=no
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347      CFLAGS=$save_CFLAGS
5348 fi
5349
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_aliasing" >&5
5351 $as_echo "$rra_cv_compiler_c__fstrict_aliasing" >&6; }
5352  if test x"$rra_cv_compiler_c__fstrict_aliasing" = xyes; then :
5353   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-aliasing"
5354 fi
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5356 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5357  if ${rra_cv_compiler_c__Wall+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   save_CFLAGS=$CFLAGS
5361      case -Wall in #(
5362   -Wno-*) :
5363     CFLAGS="$CFLAGS `echo "-Wall" | sed 's/-Wno-/-W/'`" ;; #(
5364   *) :
5365     CFLAGS="$CFLAGS -Wall" ;; #(
5366   *) :
5367      ;;
5368 esac
5369      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h.  */
5371
5372 int
5373 main ()
5374 {
5375 int foo = 0;
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381   rra_cv_compiler_c__Wall=yes
5382 else
5383   rra_cv_compiler_c__Wall=no
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386      CFLAGS=$save_CFLAGS
5387 fi
5388
5389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wall" >&5
5390 $as_echo "$rra_cv_compiler_c__Wall" >&6; }
5391  if test x"$rra_cv_compiler_c__Wall" = xyes; then :
5392   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wall"
5393 fi
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wextra" >&5
5395 $as_echo_n "checking if $CC supports -Wextra... " >&6; }
5396  if ${rra_cv_compiler_c__Wextra+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   save_CFLAGS=$CFLAGS
5400      case -Wextra in #(
5401   -Wno-*) :
5402     CFLAGS="$CFLAGS `echo "-Wextra" | sed 's/-Wno-/-W/'`" ;; #(
5403   *) :
5404     CFLAGS="$CFLAGS -Wextra" ;; #(
5405   *) :
5406      ;;
5407 esac
5408      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h.  */
5410
5411 int
5412 main ()
5413 {
5414 int foo = 0;
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420   rra_cv_compiler_c__Wextra=yes
5421 else
5422   rra_cv_compiler_c__Wextra=no
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425      CFLAGS=$save_CFLAGS
5426 fi
5427
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wextra" >&5
5429 $as_echo "$rra_cv_compiler_c__Wextra" >&6; }
5430  if test x"$rra_cv_compiler_c__Wextra" = xyes; then :
5431   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wextra"
5432 fi
5433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5434 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5435  if ${rra_cv_compiler_c__Wformat_2+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   save_CFLAGS=$CFLAGS
5439      case -Wformat=2 in #(
5440   -Wno-*) :
5441     CFLAGS="$CFLAGS `echo "-Wformat=2" | sed 's/-Wno-/-W/'`" ;; #(
5442   *) :
5443     CFLAGS="$CFLAGS -Wformat=2" ;; #(
5444   *) :
5445      ;;
5446 esac
5447      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h.  */
5449
5450 int
5451 main ()
5452 {
5453 int foo = 0;
5454   ;
5455   return 0;
5456 }
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459   rra_cv_compiler_c__Wformat_2=yes
5460 else
5461   rra_cv_compiler_c__Wformat_2=no
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464      CFLAGS=$save_CFLAGS
5465 fi
5466
5467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_2" >&5
5468 $as_echo "$rra_cv_compiler_c__Wformat_2" >&6; }
5469  if test x"$rra_cv_compiler_c__Wformat_2" = xyes; then :
5470   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat=2"
5471 fi
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-overflow=2" >&5
5473 $as_echo_n "checking if $CC supports -Wformat-overflow=2... " >&6; }
5474  if ${rra_cv_compiler_c__Wformat_overflow_2+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   save_CFLAGS=$CFLAGS
5478      case -Wformat-overflow=2 in #(
5479   -Wno-*) :
5480     CFLAGS="$CFLAGS `echo "-Wformat-overflow=2" | sed 's/-Wno-/-W/'`" ;; #(
5481   *) :
5482     CFLAGS="$CFLAGS -Wformat-overflow=2" ;; #(
5483   *) :
5484      ;;
5485 esac
5486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h.  */
5488
5489 int
5490 main ()
5491 {
5492 int foo = 0;
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498   rra_cv_compiler_c__Wformat_overflow_2=yes
5499 else
5500   rra_cv_compiler_c__Wformat_overflow_2=no
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503      CFLAGS=$save_CFLAGS
5504 fi
5505
5506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_overflow_2" >&5
5507 $as_echo "$rra_cv_compiler_c__Wformat_overflow_2" >&6; }
5508  if test x"$rra_cv_compiler_c__Wformat_overflow_2" = xyes; then :
5509   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-overflow=2"
5510 fi
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-signedness" >&5
5512 $as_echo_n "checking if $CC supports -Wformat-signedness... " >&6; }
5513  if ${rra_cv_compiler_c__Wformat_signedness+:} false; then :
5514   $as_echo_n "(cached) " >&6
5515 else
5516   save_CFLAGS=$CFLAGS
5517      case -Wformat-signedness in #(
5518   -Wno-*) :
5519     CFLAGS="$CFLAGS `echo "-Wformat-signedness" | sed 's/-Wno-/-W/'`" ;; #(
5520   *) :
5521     CFLAGS="$CFLAGS -Wformat-signedness" ;; #(
5522   *) :
5523      ;;
5524 esac
5525      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h.  */
5527
5528 int
5529 main ()
5530 {
5531 int foo = 0;
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537   rra_cv_compiler_c__Wformat_signedness=yes
5538 else
5539   rra_cv_compiler_c__Wformat_signedness=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542      CFLAGS=$save_CFLAGS
5543 fi
5544
5545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_signedness" >&5
5546 $as_echo "$rra_cv_compiler_c__Wformat_signedness" >&6; }
5547  if test x"$rra_cv_compiler_c__Wformat_signedness" = xyes; then :
5548   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-signedness"
5549 fi
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-truncation=2" >&5
5551 $as_echo_n "checking if $CC supports -Wformat-truncation=2... " >&6; }
5552  if ${rra_cv_compiler_c__Wformat_truncation_2+:} false; then :
5553   $as_echo_n "(cached) " >&6
5554 else
5555   save_CFLAGS=$CFLAGS
5556      case -Wformat-truncation=2 in #(
5557   -Wno-*) :
5558     CFLAGS="$CFLAGS `echo "-Wformat-truncation=2" | sed 's/-Wno-/-W/'`" ;; #(
5559   *) :
5560     CFLAGS="$CFLAGS -Wformat-truncation=2" ;; #(
5561   *) :
5562      ;;
5563 esac
5564      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h.  */
5566
5567 int
5568 main ()
5569 {
5570 int foo = 0;
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576   rra_cv_compiler_c__Wformat_truncation_2=yes
5577 else
5578   rra_cv_compiler_c__Wformat_truncation_2=no
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581      CFLAGS=$save_CFLAGS
5582 fi
5583
5584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_truncation_2" >&5
5585 $as_echo "$rra_cv_compiler_c__Wformat_truncation_2" >&6; }
5586  if test x"$rra_cv_compiler_c__Wformat_truncation_2" = xyes; then :
5587   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-truncation=2"
5588 fi
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnull-dereference" >&5
5590 $as_echo_n "checking if $CC supports -Wnull-dereference... " >&6; }
5591  if ${rra_cv_compiler_c__Wnull_dereference+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   save_CFLAGS=$CFLAGS
5595      case -Wnull-dereference in #(
5596   -Wno-*) :
5597     CFLAGS="$CFLAGS `echo "-Wnull-dereference" | sed 's/-Wno-/-W/'`" ;; #(
5598   *) :
5599     CFLAGS="$CFLAGS -Wnull-dereference" ;; #(
5600   *) :
5601      ;;
5602 esac
5603      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h.  */
5605
5606 int
5607 main ()
5608 {
5609 int foo = 0;
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 if ac_fn_c_try_compile "$LINENO"; then :
5615   rra_cv_compiler_c__Wnull_dereference=yes
5616 else
5617   rra_cv_compiler_c__Wnull_dereference=no
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620      CFLAGS=$save_CFLAGS
5621 fi
5622
5623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnull_dereference" >&5
5624 $as_echo "$rra_cv_compiler_c__Wnull_dereference" >&6; }
5625  if test x"$rra_cv_compiler_c__Wnull_dereference" = xyes; then :
5626   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnull-dereference"
5627 fi
5628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
5629 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
5630  if ${rra_cv_compiler_c__Winit_self+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   save_CFLAGS=$CFLAGS
5634      case -Winit-self in #(
5635   -Wno-*) :
5636     CFLAGS="$CFLAGS `echo "-Winit-self" | sed 's/-Wno-/-W/'`" ;; #(
5637   *) :
5638     CFLAGS="$CFLAGS -Winit-self" ;; #(
5639   *) :
5640      ;;
5641 esac
5642      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h.  */
5644
5645 int
5646 main ()
5647 {
5648 int foo = 0;
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654   rra_cv_compiler_c__Winit_self=yes
5655 else
5656   rra_cv_compiler_c__Winit_self=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659      CFLAGS=$save_CFLAGS
5660 fi
5661
5662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winit_self" >&5
5663 $as_echo "$rra_cv_compiler_c__Winit_self" >&6; }
5664  if test x"$rra_cv_compiler_c__Winit_self" = xyes; then :
5665   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winit-self"
5666 fi
5667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wswitch-enum" >&5
5668 $as_echo_n "checking if $CC supports -Wswitch-enum... " >&6; }
5669  if ${rra_cv_compiler_c__Wswitch_enum+:} false; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   save_CFLAGS=$CFLAGS
5673      case -Wswitch-enum in #(
5674   -Wno-*) :
5675     CFLAGS="$CFLAGS `echo "-Wswitch-enum" | sed 's/-Wno-/-W/'`" ;; #(
5676   *) :
5677     CFLAGS="$CFLAGS -Wswitch-enum" ;; #(
5678   *) :
5679      ;;
5680 esac
5681      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h.  */
5683
5684 int
5685 main ()
5686 {
5687 int foo = 0;
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693   rra_cv_compiler_c__Wswitch_enum=yes
5694 else
5695   rra_cv_compiler_c__Wswitch_enum=no
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698      CFLAGS=$save_CFLAGS
5699 fi
5700
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wswitch_enum" >&5
5702 $as_echo "$rra_cv_compiler_c__Wswitch_enum" >&6; }
5703  if test x"$rra_cv_compiler_c__Wswitch_enum" = xyes; then :
5704   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wswitch-enum"
5705 fi
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-overflow=5" >&5
5707 $as_echo_n "checking if $CC supports -Wstrict-overflow=5... " >&6; }
5708  if ${rra_cv_compiler_c__Wstrict_overflow_5+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   save_CFLAGS=$CFLAGS
5712      case -Wstrict-overflow=5 in #(
5713   -Wno-*) :
5714     CFLAGS="$CFLAGS `echo "-Wstrict-overflow=5" | sed 's/-Wno-/-W/'`" ;; #(
5715   *) :
5716     CFLAGS="$CFLAGS -Wstrict-overflow=5" ;; #(
5717   *) :
5718      ;;
5719 esac
5720      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h.  */
5722
5723 int
5724 main ()
5725 {
5726 int foo = 0;
5727   ;
5728   return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732   rra_cv_compiler_c__Wstrict_overflow_5=yes
5733 else
5734   rra_cv_compiler_c__Wstrict_overflow_5=no
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737      CFLAGS=$save_CFLAGS
5738 fi
5739
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_overflow_5" >&5
5741 $as_echo "$rra_cv_compiler_c__Wstrict_overflow_5" >&6; }
5742  if test x"$rra_cv_compiler_c__Wstrict_overflow_5" = xyes; then :
5743   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-overflow=5"
5744 fi
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
5746 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
5747  if ${rra_cv_compiler_c__Wmissing_format_attribute+:} false; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   save_CFLAGS=$CFLAGS
5751      case -Wmissing-format-attribute in #(
5752   -Wno-*) :
5753     CFLAGS="$CFLAGS `echo "-Wmissing-format-attribute" | sed 's/-Wno-/-W/'`" ;; #(
5754   *) :
5755     CFLAGS="$CFLAGS -Wmissing-format-attribute" ;; #(
5756   *) :
5757      ;;
5758 esac
5759      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h.  */
5761
5762 int
5763 main ()
5764 {
5765 int foo = 0;
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771   rra_cv_compiler_c__Wmissing_format_attribute=yes
5772 else
5773   rra_cv_compiler_c__Wmissing_format_attribute=no
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776      CFLAGS=$save_CFLAGS
5777 fi
5778
5779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_format_attribute" >&5
5780 $as_echo "$rra_cv_compiler_c__Wmissing_format_attribute" >&6; }
5781  if test x"$rra_cv_compiler_c__Wmissing_format_attribute" = xyes; then :
5782   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-format-attribute"
5783 fi
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Walloc-zero" >&5
5785 $as_echo_n "checking if $CC supports -Walloc-zero... " >&6; }
5786  if ${rra_cv_compiler_c__Walloc_zero+:} false; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   save_CFLAGS=$CFLAGS
5790      case -Walloc-zero in #(
5791   -Wno-*) :
5792     CFLAGS="$CFLAGS `echo "-Walloc-zero" | sed 's/-Wno-/-W/'`" ;; #(
5793   *) :
5794     CFLAGS="$CFLAGS -Walloc-zero" ;; #(
5795   *) :
5796      ;;
5797 esac
5798      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h.  */
5800
5801 int
5802 main ()
5803 {
5804 int foo = 0;
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810   rra_cv_compiler_c__Walloc_zero=yes
5811 else
5812   rra_cv_compiler_c__Walloc_zero=no
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815      CFLAGS=$save_CFLAGS
5816 fi
5817
5818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Walloc_zero" >&5
5819 $as_echo "$rra_cv_compiler_c__Walloc_zero" >&6; }
5820  if test x"$rra_cv_compiler_c__Walloc_zero" = xyes; then :
5821   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Walloc-zero"
5822 fi
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-branches" >&5
5824 $as_echo_n "checking if $CC supports -Wduplicated-branches... " >&6; }
5825  if ${rra_cv_compiler_c__Wduplicated_branches+:} false; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   save_CFLAGS=$CFLAGS
5829      case -Wduplicated-branches in #(
5830   -Wno-*) :
5831     CFLAGS="$CFLAGS `echo "-Wduplicated-branches" | sed 's/-Wno-/-W/'`" ;; #(
5832   *) :
5833     CFLAGS="$CFLAGS -Wduplicated-branches" ;; #(
5834   *) :
5835      ;;
5836 esac
5837      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h.  */
5839
5840 int
5841 main ()
5842 {
5843 int foo = 0;
5844   ;
5845   return 0;
5846 }
5847 _ACEOF
5848 if ac_fn_c_try_compile "$LINENO"; then :
5849   rra_cv_compiler_c__Wduplicated_branches=yes
5850 else
5851   rra_cv_compiler_c__Wduplicated_branches=no
5852 fi
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854      CFLAGS=$save_CFLAGS
5855 fi
5856
5857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_branches" >&5
5858 $as_echo "$rra_cv_compiler_c__Wduplicated_branches" >&6; }
5859  if test x"$rra_cv_compiler_c__Wduplicated_branches" = xyes; then :
5860   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-branches"
5861 fi
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-cond" >&5
5863 $as_echo_n "checking if $CC supports -Wduplicated-cond... " >&6; }
5864  if ${rra_cv_compiler_c__Wduplicated_cond+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   save_CFLAGS=$CFLAGS
5868      case -Wduplicated-cond in #(
5869   -Wno-*) :
5870     CFLAGS="$CFLAGS `echo "-Wduplicated-cond" | sed 's/-Wno-/-W/'`" ;; #(
5871   *) :
5872     CFLAGS="$CFLAGS -Wduplicated-cond" ;; #(
5873   *) :
5874      ;;
5875 esac
5876      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h.  */
5878
5879 int
5880 main ()
5881 {
5882 int foo = 0;
5883   ;
5884   return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888   rra_cv_compiler_c__Wduplicated_cond=yes
5889 else
5890   rra_cv_compiler_c__Wduplicated_cond=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893      CFLAGS=$save_CFLAGS
5894 fi
5895
5896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_cond" >&5
5897 $as_echo "$rra_cv_compiler_c__Wduplicated_cond" >&6; }
5898  if test x"$rra_cv_compiler_c__Wduplicated_cond" = xyes; then :
5899   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-cond"
5900 fi
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrampolines" >&5
5902 $as_echo_n "checking if $CC supports -Wtrampolines... " >&6; }
5903  if ${rra_cv_compiler_c__Wtrampolines+:} false; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906   save_CFLAGS=$CFLAGS
5907      case -Wtrampolines in #(
5908   -Wno-*) :
5909     CFLAGS="$CFLAGS `echo "-Wtrampolines" | sed 's/-Wno-/-W/'`" ;; #(
5910   *) :
5911     CFLAGS="$CFLAGS -Wtrampolines" ;; #(
5912   *) :
5913      ;;
5914 esac
5915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h.  */
5917
5918 int
5919 main ()
5920 {
5921 int foo = 0;
5922   ;
5923   return 0;
5924 }
5925 _ACEOF
5926 if ac_fn_c_try_compile "$LINENO"; then :
5927   rra_cv_compiler_c__Wtrampolines=yes
5928 else
5929   rra_cv_compiler_c__Wtrampolines=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932      CFLAGS=$save_CFLAGS
5933 fi
5934
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wtrampolines" >&5
5936 $as_echo "$rra_cv_compiler_c__Wtrampolines" >&6; }
5937  if test x"$rra_cv_compiler_c__Wtrampolines" = xyes; then :
5938   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wtrampolines"
5939 fi
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wfloat-equal" >&5
5941 $as_echo_n "checking if $CC supports -Wfloat-equal... " >&6; }
5942  if ${rra_cv_compiler_c__Wfloat_equal+:} false; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   save_CFLAGS=$CFLAGS
5946      case -Wfloat-equal in #(
5947   -Wno-*) :
5948     CFLAGS="$CFLAGS `echo "-Wfloat-equal" | sed 's/-Wno-/-W/'`" ;; #(
5949   *) :
5950     CFLAGS="$CFLAGS -Wfloat-equal" ;; #(
5951   *) :
5952      ;;
5953 esac
5954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h.  */
5956
5957 int
5958 main ()
5959 {
5960 int foo = 0;
5961   ;
5962   return 0;
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_compile "$LINENO"; then :
5966   rra_cv_compiler_c__Wfloat_equal=yes
5967 else
5968   rra_cv_compiler_c__Wfloat_equal=no
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971      CFLAGS=$save_CFLAGS
5972 fi
5973
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wfloat_equal" >&5
5975 $as_echo "$rra_cv_compiler_c__Wfloat_equal" >&6; }
5976  if test x"$rra_cv_compiler_c__Wfloat_equal" = xyes; then :
5977   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wfloat-equal"
5978 fi
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5980 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5981  if ${rra_cv_compiler_c__Wdeclaration_after_statement+:} false; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   save_CFLAGS=$CFLAGS
5985      case -Wdeclaration-after-statement in #(
5986   -Wno-*) :
5987     CFLAGS="$CFLAGS `echo "-Wdeclaration-after-statement" | sed 's/-Wno-/-W/'`" ;; #(
5988   *) :
5989     CFLAGS="$CFLAGS -Wdeclaration-after-statement" ;; #(
5990   *) :
5991      ;;
5992 esac
5993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h.  */
5995
5996 int
5997 main ()
5998 {
5999 int foo = 0;
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005   rra_cv_compiler_c__Wdeclaration_after_statement=yes
6006 else
6007   rra_cv_compiler_c__Wdeclaration_after_statement=no
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010      CFLAGS=$save_CFLAGS
6011 fi
6012
6013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdeclaration_after_statement" >&5
6014 $as_echo "$rra_cv_compiler_c__Wdeclaration_after_statement" >&6; }
6015  if test x"$rra_cv_compiler_c__Wdeclaration_after_statement" = xyes; then :
6016   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdeclaration-after-statement"
6017 fi
6018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6019 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6020  if ${rra_cv_compiler_c__Wshadow+:} false; then :
6021   $as_echo_n "(cached) " >&6
6022 else
6023   save_CFLAGS=$CFLAGS
6024      case -Wshadow in #(
6025   -Wno-*) :
6026     CFLAGS="$CFLAGS `echo "-Wshadow" | sed 's/-Wno-/-W/'`" ;; #(
6027   *) :
6028     CFLAGS="$CFLAGS -Wshadow" ;; #(
6029   *) :
6030      ;;
6031 esac
6032      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h.  */
6034
6035 int
6036 main ()
6037 {
6038 int foo = 0;
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_compile "$LINENO"; then :
6044   rra_cv_compiler_c__Wshadow=yes
6045 else
6046   rra_cv_compiler_c__Wshadow=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049      CFLAGS=$save_CFLAGS
6050 fi
6051
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wshadow" >&5
6053 $as_echo "$rra_cv_compiler_c__Wshadow" >&6; }
6054  if test x"$rra_cv_compiler_c__Wshadow" = xyes; then :
6055   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wshadow"
6056 fi
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6058 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
6059  if ${rra_cv_compiler_c__Wpointer_arith+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   save_CFLAGS=$CFLAGS
6063      case -Wpointer-arith in #(
6064   -Wno-*) :
6065     CFLAGS="$CFLAGS `echo "-Wpointer-arith" | sed 's/-Wno-/-W/'`" ;; #(
6066   *) :
6067     CFLAGS="$CFLAGS -Wpointer-arith" ;; #(
6068   *) :
6069      ;;
6070 esac
6071      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073
6074 int
6075 main ()
6076 {
6077 int foo = 0;
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083   rra_cv_compiler_c__Wpointer_arith=yes
6084 else
6085   rra_cv_compiler_c__Wpointer_arith=no
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088      CFLAGS=$save_CFLAGS
6089 fi
6090
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpointer_arith" >&5
6092 $as_echo "$rra_cv_compiler_c__Wpointer_arith" >&6; }
6093  if test x"$rra_cv_compiler_c__Wpointer_arith" = xyes; then :
6094   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpointer-arith"
6095 fi
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6097 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6098  if ${rra_cv_compiler_c__Wbad_function_cast+:} false; then :
6099   $as_echo_n "(cached) " >&6
6100 else
6101   save_CFLAGS=$CFLAGS
6102      case -Wbad-function-cast in #(
6103   -Wno-*) :
6104     CFLAGS="$CFLAGS `echo "-Wbad-function-cast" | sed 's/-Wno-/-W/'`" ;; #(
6105   *) :
6106     CFLAGS="$CFLAGS -Wbad-function-cast" ;; #(
6107   *) :
6108      ;;
6109 esac
6110      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h.  */
6112
6113 int
6114 main ()
6115 {
6116 int foo = 0;
6117   ;
6118   return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"; then :
6122   rra_cv_compiler_c__Wbad_function_cast=yes
6123 else
6124   rra_cv_compiler_c__Wbad_function_cast=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127      CFLAGS=$save_CFLAGS
6128 fi
6129
6130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wbad_function_cast" >&5
6131 $as_echo "$rra_cv_compiler_c__Wbad_function_cast" >&6; }
6132  if test x"$rra_cv_compiler_c__Wbad_function_cast" = xyes; then :
6133   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wbad-function-cast"
6134 fi
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-align" >&5
6136 $as_echo_n "checking if $CC supports -Wcast-align... " >&6; }
6137  if ${rra_cv_compiler_c__Wcast_align+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   save_CFLAGS=$CFLAGS
6141      case -Wcast-align in #(
6142   -Wno-*) :
6143     CFLAGS="$CFLAGS `echo "-Wcast-align" | sed 's/-Wno-/-W/'`" ;; #(
6144   *) :
6145     CFLAGS="$CFLAGS -Wcast-align" ;; #(
6146   *) :
6147      ;;
6148 esac
6149      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h.  */
6151
6152 int
6153 main ()
6154 {
6155 int foo = 0;
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161   rra_cv_compiler_c__Wcast_align=yes
6162 else
6163   rra_cv_compiler_c__Wcast_align=no
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166      CFLAGS=$save_CFLAGS
6167 fi
6168
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wcast_align" >&5
6170 $as_echo "$rra_cv_compiler_c__Wcast_align" >&6; }
6171  if test x"$rra_cv_compiler_c__Wcast_align" = xyes; then :
6172   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wcast-align"
6173 fi
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
6175 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
6176  if ${rra_cv_compiler_c__Wwrite_strings+:} false; then :
6177   $as_echo_n "(cached) " >&6
6178 else
6179   save_CFLAGS=$CFLAGS
6180      case -Wwrite-strings in #(
6181   -Wno-*) :
6182     CFLAGS="$CFLAGS `echo "-Wwrite-strings" | sed 's/-Wno-/-W/'`" ;; #(
6183   *) :
6184     CFLAGS="$CFLAGS -Wwrite-strings" ;; #(
6185   *) :
6186      ;;
6187 esac
6188      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h.  */
6190
6191 int
6192 main ()
6193 {
6194 int foo = 0;
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"; then :
6200   rra_cv_compiler_c__Wwrite_strings=yes
6201 else
6202   rra_cv_compiler_c__Wwrite_strings=no
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205      CFLAGS=$save_CFLAGS
6206 fi
6207
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wwrite_strings" >&5
6209 $as_echo "$rra_cv_compiler_c__Wwrite_strings" >&6; }
6210  if test x"$rra_cv_compiler_c__Wwrite_strings" = xyes; then :
6211   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wwrite-strings"
6212 fi
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wconversion" >&5
6214 $as_echo_n "checking if $CC supports -Wconversion... " >&6; }
6215  if ${rra_cv_compiler_c__Wconversion+:} false; then :
6216   $as_echo_n "(cached) " >&6
6217 else
6218   save_CFLAGS=$CFLAGS
6219      case -Wconversion in #(
6220   -Wno-*) :
6221     CFLAGS="$CFLAGS `echo "-Wconversion" | sed 's/-Wno-/-W/'`" ;; #(
6222   *) :
6223     CFLAGS="$CFLAGS -Wconversion" ;; #(
6224   *) :
6225      ;;
6226 esac
6227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h.  */
6229
6230 int
6231 main ()
6232 {
6233 int foo = 0;
6234   ;
6235   return 0;
6236 }
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239   rra_cv_compiler_c__Wconversion=yes
6240 else
6241   rra_cv_compiler_c__Wconversion=no
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244      CFLAGS=$save_CFLAGS
6245 fi
6246
6247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wconversion" >&5
6248 $as_echo "$rra_cv_compiler_c__Wconversion" >&6; }
6249  if test x"$rra_cv_compiler_c__Wconversion" = xyes; then :
6250   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wconversion"
6251 fi
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5
6253 $as_echo_n "checking if $CC supports -Wno-sign-conversion... " >&6; }
6254  if ${rra_cv_compiler_c__Wno_sign_conversion+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   save_CFLAGS=$CFLAGS
6258      case -Wno-sign-conversion in #(
6259   -Wno-*) :
6260     CFLAGS="$CFLAGS `echo "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #(
6261   *) :
6262     CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #(
6263   *) :
6264      ;;
6265 esac
6266      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h.  */
6268
6269 int
6270 main ()
6271 {
6272 int foo = 0;
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 if ac_fn_c_try_compile "$LINENO"; then :
6278   rra_cv_compiler_c__Wno_sign_conversion=yes
6279 else
6280   rra_cv_compiler_c__Wno_sign_conversion=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283      CFLAGS=$save_CFLAGS
6284 fi
6285
6286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5
6287 $as_echo "$rra_cv_compiler_c__Wno_sign_conversion" >&6; }
6288  if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes; then :
6289   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion"
6290 fi
6291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdate-time" >&5
6292 $as_echo_n "checking if $CC supports -Wdate-time... " >&6; }
6293  if ${rra_cv_compiler_c__Wdate_time+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   save_CFLAGS=$CFLAGS
6297      case -Wdate-time in #(
6298   -Wno-*) :
6299     CFLAGS="$CFLAGS `echo "-Wdate-time" | sed 's/-Wno-/-W/'`" ;; #(
6300   *) :
6301     CFLAGS="$CFLAGS -Wdate-time" ;; #(
6302   *) :
6303      ;;
6304 esac
6305      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h.  */
6307
6308 int
6309 main ()
6310 {
6311 int foo = 0;
6312   ;
6313   return 0;
6314 }
6315 _ACEOF
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317   rra_cv_compiler_c__Wdate_time=yes
6318 else
6319   rra_cv_compiler_c__Wdate_time=no
6320 fi
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322      CFLAGS=$save_CFLAGS
6323 fi
6324
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdate_time" >&5
6326 $as_echo "$rra_cv_compiler_c__Wdate_time" >&6; }
6327  if test x"$rra_cv_compiler_c__Wdate_time" = xyes; then :
6328   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdate-time"
6329 fi
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wjump-misses-init" >&5
6331 $as_echo_n "checking if $CC supports -Wjump-misses-init... " >&6; }
6332  if ${rra_cv_compiler_c__Wjump_misses_init+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   save_CFLAGS=$CFLAGS
6336      case -Wjump-misses-init in #(
6337   -Wno-*) :
6338     CFLAGS="$CFLAGS `echo "-Wjump-misses-init" | sed 's/-Wno-/-W/'`" ;; #(
6339   *) :
6340     CFLAGS="$CFLAGS -Wjump-misses-init" ;; #(
6341   *) :
6342      ;;
6343 esac
6344      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h.  */
6346
6347 int
6348 main ()
6349 {
6350 int foo = 0;
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 if ac_fn_c_try_compile "$LINENO"; then :
6356   rra_cv_compiler_c__Wjump_misses_init=yes
6357 else
6358   rra_cv_compiler_c__Wjump_misses_init=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361      CFLAGS=$save_CFLAGS
6362 fi
6363
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wjump_misses_init" >&5
6365 $as_echo "$rra_cv_compiler_c__Wjump_misses_init" >&6; }
6366  if test x"$rra_cv_compiler_c__Wjump_misses_init" = xyes; then :
6367   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wjump-misses-init"
6368 fi
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6370 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6371  if ${rra_cv_compiler_c__Wlogical_op+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   save_CFLAGS=$CFLAGS
6375      case -Wlogical-op in #(
6376   -Wno-*) :
6377     CFLAGS="$CFLAGS `echo "-Wlogical-op" | sed 's/-Wno-/-W/'`" ;; #(
6378   *) :
6379     CFLAGS="$CFLAGS -Wlogical-op" ;; #(
6380   *) :
6381      ;;
6382 esac
6383      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h.  */
6385
6386 int
6387 main ()
6388 {
6389 int foo = 0;
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395   rra_cv_compiler_c__Wlogical_op=yes
6396 else
6397   rra_cv_compiler_c__Wlogical_op=no
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400      CFLAGS=$save_CFLAGS
6401 fi
6402
6403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wlogical_op" >&5
6404 $as_echo "$rra_cv_compiler_c__Wlogical_op" >&6; }
6405  if test x"$rra_cv_compiler_c__Wlogical_op" = xyes; then :
6406   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wlogical-op"
6407 fi
6408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6409 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
6410  if ${rra_cv_compiler_c__Wstrict_prototypes+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   save_CFLAGS=$CFLAGS
6414      case -Wstrict-prototypes in #(
6415   -Wno-*) :
6416     CFLAGS="$CFLAGS `echo "-Wstrict-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
6417   *) :
6418     CFLAGS="$CFLAGS -Wstrict-prototypes" ;; #(
6419   *) :
6420      ;;
6421 esac
6422      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h.  */
6424
6425 int
6426 main ()
6427 {
6428 int foo = 0;
6429   ;
6430   return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"; then :
6434   rra_cv_compiler_c__Wstrict_prototypes=yes
6435 else
6436   rra_cv_compiler_c__Wstrict_prototypes=no
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439      CFLAGS=$save_CFLAGS
6440 fi
6441
6442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_prototypes" >&5
6443 $as_echo "$rra_cv_compiler_c__Wstrict_prototypes" >&6; }
6444  if test x"$rra_cv_compiler_c__Wstrict_prototypes" = xyes; then :
6445   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-prototypes"
6446 fi
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6448 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6449  if ${rra_cv_compiler_c__Wold_style_definition+:} false; then :
6450   $as_echo_n "(cached) " >&6
6451 else
6452   save_CFLAGS=$CFLAGS
6453      case -Wold-style-definition in #(
6454   -Wno-*) :
6455     CFLAGS="$CFLAGS `echo "-Wold-style-definition" | sed 's/-Wno-/-W/'`" ;; #(
6456   *) :
6457     CFLAGS="$CFLAGS -Wold-style-definition" ;; #(
6458   *) :
6459      ;;
6460 esac
6461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h.  */
6463
6464 int
6465 main ()
6466 {
6467 int foo = 0;
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473   rra_cv_compiler_c__Wold_style_definition=yes
6474 else
6475   rra_cv_compiler_c__Wold_style_definition=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478      CFLAGS=$save_CFLAGS
6479 fi
6480
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wold_style_definition" >&5
6482 $as_echo "$rra_cv_compiler_c__Wold_style_definition" >&6; }
6483  if test x"$rra_cv_compiler_c__Wold_style_definition" = xyes; then :
6484   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wold-style-definition"
6485 fi
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6487 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
6488  if ${rra_cv_compiler_c__Wmissing_prototypes+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   save_CFLAGS=$CFLAGS
6492      case -Wmissing-prototypes in #(
6493   -Wno-*) :
6494     CFLAGS="$CFLAGS `echo "-Wmissing-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
6495   *) :
6496     CFLAGS="$CFLAGS -Wmissing-prototypes" ;; #(
6497   *) :
6498      ;;
6499 esac
6500      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h.  */
6502
6503 int
6504 main ()
6505 {
6506 int foo = 0;
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512   rra_cv_compiler_c__Wmissing_prototypes=yes
6513 else
6514   rra_cv_compiler_c__Wmissing_prototypes=no
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517      CFLAGS=$save_CFLAGS
6518 fi
6519
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_prototypes" >&5
6521 $as_echo "$rra_cv_compiler_c__Wmissing_prototypes" >&6; }
6522  if test x"$rra_cv_compiler_c__Wmissing_prototypes" = xyes; then :
6523   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-prototypes"
6524 fi
6525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6526 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
6527  if ${rra_cv_compiler_c__Wmissing_declarations+:} false; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   save_CFLAGS=$CFLAGS
6531      case -Wmissing-declarations in #(
6532   -Wno-*) :
6533     CFLAGS="$CFLAGS `echo "-Wmissing-declarations" | sed 's/-Wno-/-W/'`" ;; #(
6534   *) :
6535     CFLAGS="$CFLAGS -Wmissing-declarations" ;; #(
6536   *) :
6537      ;;
6538 esac
6539      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h.  */
6541
6542 int
6543 main ()
6544 {
6545 int foo = 0;
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551   rra_cv_compiler_c__Wmissing_declarations=yes
6552 else
6553   rra_cv_compiler_c__Wmissing_declarations=no
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556      CFLAGS=$save_CFLAGS
6557 fi
6558
6559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_declarations" >&5
6560 $as_echo "$rra_cv_compiler_c__Wmissing_declarations" >&6; }
6561  if test x"$rra_cv_compiler_c__Wmissing_declarations" = xyes; then :
6562   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-declarations"
6563 fi
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnormalized=nfc" >&5
6565 $as_echo_n "checking if $CC supports -Wnormalized=nfc... " >&6; }
6566  if ${rra_cv_compiler_c__Wnormalized_nfc+:} false; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   save_CFLAGS=$CFLAGS
6570      case -Wnormalized=nfc in #(
6571   -Wno-*) :
6572     CFLAGS="$CFLAGS `echo "-Wnormalized=nfc" | sed 's/-Wno-/-W/'`" ;; #(
6573   *) :
6574     CFLAGS="$CFLAGS -Wnormalized=nfc" ;; #(
6575   *) :
6576      ;;
6577 esac
6578      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h.  */
6580
6581 int
6582 main ()
6583 {
6584 int foo = 0;
6585   ;
6586   return 0;
6587 }
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590   rra_cv_compiler_c__Wnormalized_nfc=yes
6591 else
6592   rra_cv_compiler_c__Wnormalized_nfc=no
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595      CFLAGS=$save_CFLAGS
6596 fi
6597
6598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnormalized_nfc" >&5
6599 $as_echo "$rra_cv_compiler_c__Wnormalized_nfc" >&6; }
6600  if test x"$rra_cv_compiler_c__Wnormalized_nfc" = xyes; then :
6601   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnormalized=nfc"
6602 fi
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpacked" >&5
6604 $as_echo_n "checking if $CC supports -Wpacked... " >&6; }
6605  if ${rra_cv_compiler_c__Wpacked+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   save_CFLAGS=$CFLAGS
6609      case -Wpacked in #(
6610   -Wno-*) :
6611     CFLAGS="$CFLAGS `echo "-Wpacked" | sed 's/-Wno-/-W/'`" ;; #(
6612   *) :
6613     CFLAGS="$CFLAGS -Wpacked" ;; #(
6614   *) :
6615      ;;
6616 esac
6617      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h.  */
6619
6620 int
6621 main ()
6622 {
6623 int foo = 0;
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_compile "$LINENO"; then :
6629   rra_cv_compiler_c__Wpacked=yes
6630 else
6631   rra_cv_compiler_c__Wpacked=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634      CFLAGS=$save_CFLAGS
6635 fi
6636
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpacked" >&5
6638 $as_echo "$rra_cv_compiler_c__Wpacked" >&6; }
6639  if test x"$rra_cv_compiler_c__Wpacked" = xyes; then :
6640   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpacked"
6641 fi
6642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6643 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6644  if ${rra_cv_compiler_c__Wredundant_decls+:} false; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647   save_CFLAGS=$CFLAGS
6648      case -Wredundant-decls in #(
6649   -Wno-*) :
6650     CFLAGS="$CFLAGS `echo "-Wredundant-decls" | sed 's/-Wno-/-W/'`" ;; #(
6651   *) :
6652     CFLAGS="$CFLAGS -Wredundant-decls" ;; #(
6653   *) :
6654      ;;
6655 esac
6656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h.  */
6658
6659 int
6660 main ()
6661 {
6662 int foo = 0;
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668   rra_cv_compiler_c__Wredundant_decls=yes
6669 else
6670   rra_cv_compiler_c__Wredundant_decls=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673      CFLAGS=$save_CFLAGS
6674 fi
6675
6676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wredundant_decls" >&5
6677 $as_echo "$rra_cv_compiler_c__Wredundant_decls" >&6; }
6678  if test x"$rra_cv_compiler_c__Wredundant_decls" = xyes; then :
6679   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wredundant-decls"
6680 fi
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wrestrict" >&5
6682 $as_echo_n "checking if $CC supports -Wrestrict... " >&6; }
6683  if ${rra_cv_compiler_c__Wrestrict+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   save_CFLAGS=$CFLAGS
6687      case -Wrestrict in #(
6688   -Wno-*) :
6689     CFLAGS="$CFLAGS `echo "-Wrestrict" | sed 's/-Wno-/-W/'`" ;; #(
6690   *) :
6691     CFLAGS="$CFLAGS -Wrestrict" ;; #(
6692   *) :
6693      ;;
6694 esac
6695      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h.  */
6697
6698 int
6699 main ()
6700 {
6701 int foo = 0;
6702   ;
6703   return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707   rra_cv_compiler_c__Wrestrict=yes
6708 else
6709   rra_cv_compiler_c__Wrestrict=no
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712      CFLAGS=$save_CFLAGS
6713 fi
6714
6715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wrestrict" >&5
6716 $as_echo "$rra_cv_compiler_c__Wrestrict" >&6; }
6717  if test x"$rra_cv_compiler_c__Wrestrict" = xyes; then :
6718   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wrestrict"
6719 fi
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6721 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
6722  if ${rra_cv_compiler_c__Wnested_externs+:} false; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725   save_CFLAGS=$CFLAGS
6726      case -Wnested-externs in #(
6727   -Wno-*) :
6728     CFLAGS="$CFLAGS `echo "-Wnested-externs" | sed 's/-Wno-/-W/'`" ;; #(
6729   *) :
6730     CFLAGS="$CFLAGS -Wnested-externs" ;; #(
6731   *) :
6732      ;;
6733 esac
6734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h.  */
6736
6737 int
6738 main ()
6739 {
6740 int foo = 0;
6741   ;
6742   return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"; then :
6746   rra_cv_compiler_c__Wnested_externs=yes
6747 else
6748   rra_cv_compiler_c__Wnested_externs=no
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751      CFLAGS=$save_CFLAGS
6752 fi
6753
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnested_externs" >&5
6755 $as_echo "$rra_cv_compiler_c__Wnested_externs" >&6; }
6756  if test x"$rra_cv_compiler_c__Wnested_externs" = xyes; then :
6757   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnested-externs"
6758 fi
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winline" >&5
6760 $as_echo_n "checking if $CC supports -Winline... " >&6; }
6761  if ${rra_cv_compiler_c__Winline+:} false; then :
6762   $as_echo_n "(cached) " >&6
6763 else
6764   save_CFLAGS=$CFLAGS
6765      case -Winline in #(
6766   -Wno-*) :
6767     CFLAGS="$CFLAGS `echo "-Winline" | sed 's/-Wno-/-W/'`" ;; #(
6768   *) :
6769     CFLAGS="$CFLAGS -Winline" ;; #(
6770   *) :
6771      ;;
6772 esac
6773      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h.  */
6775
6776 int
6777 main ()
6778 {
6779 int foo = 0;
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785   rra_cv_compiler_c__Winline=yes
6786 else
6787   rra_cv_compiler_c__Winline=no
6788 fi
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790      CFLAGS=$save_CFLAGS
6791 fi
6792
6793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winline" >&5
6794 $as_echo "$rra_cv_compiler_c__Winline" >&6; }
6795  if test x"$rra_cv_compiler_c__Winline" = xyes; then :
6796   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winline"
6797 fi
6798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wvla" >&5
6799 $as_echo_n "checking if $CC supports -Wvla... " >&6; }
6800  if ${rra_cv_compiler_c__Wvla+:} false; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   save_CFLAGS=$CFLAGS
6804      case -Wvla in #(
6805   -Wno-*) :
6806     CFLAGS="$CFLAGS `echo "-Wvla" | sed 's/-Wno-/-W/'`" ;; #(
6807   *) :
6808     CFLAGS="$CFLAGS -Wvla" ;; #(
6809   *) :
6810      ;;
6811 esac
6812      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h.  */
6814
6815 int
6816 main ()
6817 {
6818 int foo = 0;
6819   ;
6820   return 0;
6821 }
6822 _ACEOF
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824   rra_cv_compiler_c__Wvla=yes
6825 else
6826   rra_cv_compiler_c__Wvla=no
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829      CFLAGS=$save_CFLAGS
6830 fi
6831
6832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wvla" >&5
6833 $as_echo "$rra_cv_compiler_c__Wvla" >&6; }
6834  if test x"$rra_cv_compiler_c__Wvla" = xyes; then :
6835   WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wvla"
6836 fi
6837 fi
6838
6839 # Check whether --enable-largefile was given.
6840 if test "${enable_largefile+set}" = set; then :
6841   enableval=$enable_largefile;
6842 fi
6843
6844 if test "$enable_largefile" != no; then
6845
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6847 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6848 if ${ac_cv_sys_largefile_CC+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   ac_cv_sys_largefile_CC=no
6852      if test "$GCC" != yes; then
6853        ac_save_CC=$CC
6854        while :; do
6855          # IRIX 6.2 and later do not support large files by default,
6856          # so use the C compiler's -n32 option if that helps.
6857          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h.  */
6859 #include <sys/types.h>
6860  /* Check that off_t can represent 2**63 - 1 correctly.
6861     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6862     since some C++ compilers masquerading as C compilers
6863     incorrectly reject 9223372036854775807.  */
6864 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6865   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6866                        && LARGE_OFF_T % 2147483647 == 1)
6867                       ? 1 : -1];
6868 int
6869 main ()
6870 {
6871
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876          if ac_fn_c_try_compile "$LINENO"; then :
6877   break
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext
6880          CC="$CC -n32"
6881          if ac_fn_c_try_compile "$LINENO"; then :
6882   ac_cv_sys_largefile_CC=' -n32'; break
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext
6885          break
6886        done
6887        CC=$ac_save_CC
6888        rm -f conftest.$ac_ext
6889     fi
6890 fi
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6892 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6893   if test "$ac_cv_sys_largefile_CC" != no; then
6894     CC=$CC$ac_cv_sys_largefile_CC
6895   fi
6896
6897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6898 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6899 if ${ac_cv_sys_file_offset_bits+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   while :; do
6903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h.  */
6905 #include <sys/types.h>
6906  /* Check that off_t can represent 2**63 - 1 correctly.
6907     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6908     since some C++ compilers masquerading as C compilers
6909     incorrectly reject 9223372036854775807.  */
6910 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6911   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6912                        && LARGE_OFF_T % 2147483647 == 1)
6913                       ? 1 : -1];
6914 int
6915 main ()
6916 {
6917
6918   ;
6919   return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_c_try_compile "$LINENO"; then :
6923   ac_cv_sys_file_offset_bits=no; break
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h.  */
6928 #define _FILE_OFFSET_BITS 64
6929 #include <sys/types.h>
6930  /* Check that off_t can represent 2**63 - 1 correctly.
6931     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6932     since some C++ compilers masquerading as C compilers
6933     incorrectly reject 9223372036854775807.  */
6934 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6935   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6936                        && LARGE_OFF_T % 2147483647 == 1)
6937                       ? 1 : -1];
6938 int
6939 main ()
6940 {
6941
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 if ac_fn_c_try_compile "$LINENO"; then :
6947   ac_cv_sys_file_offset_bits=64; break
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950   ac_cv_sys_file_offset_bits=unknown
6951   break
6952 done
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6955 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6956 case $ac_cv_sys_file_offset_bits in #(
6957   no | unknown) ;;
6958   *)
6959 cat >>confdefs.h <<_ACEOF
6960 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6961 _ACEOF
6962 ;;
6963 esac
6964 rm -rf conftest*
6965   if test $ac_cv_sys_file_offset_bits = unknown; then
6966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6967 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6968 if ${ac_cv_sys_large_files+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   while :; do
6972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h.  */
6974 #include <sys/types.h>
6975  /* Check that off_t can represent 2**63 - 1 correctly.
6976     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6977     since some C++ compilers masquerading as C compilers
6978     incorrectly reject 9223372036854775807.  */
6979 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6980   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6981                        && LARGE_OFF_T % 2147483647 == 1)
6982                       ? 1 : -1];
6983 int
6984 main ()
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"; then :
6992   ac_cv_sys_large_files=no; break
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h.  */
6997 #define _LARGE_FILES 1
6998 #include <sys/types.h>
6999  /* Check that off_t can represent 2**63 - 1 correctly.
7000     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7001     since some C++ compilers masquerading as C compilers
7002     incorrectly reject 9223372036854775807.  */
7003 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7004   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7005                        && LARGE_OFF_T % 2147483647 == 1)
7006                       ? 1 : -1];
7007 int
7008 main ()
7009 {
7010
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_compile "$LINENO"; then :
7016   ac_cv_sys_large_files=1; break
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019   ac_cv_sys_large_files=unknown
7020   break
7021 done
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7024 $as_echo "$ac_cv_sys_large_files" >&6; }
7025 case $ac_cv_sys_large_files in #(
7026   no | unknown) ;;
7027   *)
7028 cat >>confdefs.h <<_ACEOF
7029 #define _LARGE_FILES $ac_cv_sys_large_files
7030 _ACEOF
7031 ;;
7032 esac
7033 rm -rf conftest*
7034   fi
7035
7036
7037 fi
7038
7039
7040 if test -n "$ac_tool_prefix"; then
7041   for ac_prog in ar lib "link -lib"
7042   do
7043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_AR+:} false; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   if test -n "$AR"; then
7051   ac_cv_prog_AR="$AR" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 AR=$ac_cv_prog_AR
7071 if test -n "$AR"; then
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7073 $as_echo "$AR" >&6; }
7074 else
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079
7080     test -n "$AR" && break
7081   done
7082 fi
7083 if test -z "$AR"; then
7084   ac_ct_AR=$AR
7085   for ac_prog in ar lib "link -lib"
7086 do
7087   # Extract the first word of "$ac_prog", so it can be a program name with args.
7088 set dummy $ac_prog; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094   if test -n "$ac_ct_AR"; then
7095   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102     for ac_exec_ext in '' $ac_executable_extensions; do
7103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104     ac_cv_prog_ac_ct_AR="$ac_prog"
7105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109   done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7115 if test -n "$ac_ct_AR"; then
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7117 $as_echo "$ac_ct_AR" >&6; }
7118 else
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124   test -n "$ac_ct_AR" && break
7125 done
7126
7127   if test "x$ac_ct_AR" = x; then
7128     AR="false"
7129   else
7130     case $cross_compiling:$ac_tool_warned in
7131 yes:)
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7134 ac_tool_warned=yes ;;
7135 esac
7136     AR=$ac_ct_AR
7137   fi
7138 fi
7139
7140 : ${AR=ar}
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7143 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7144 if ${am_cv_ar_interface+:} false; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   ac_ext=c
7148 ac_cpp='$CPP $CPPFLAGS'
7149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7152
7153    am_cv_ar_interface=ar
7154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h.  */
7156 int some_variable = 0;
7157 _ACEOF
7158 if ac_fn_c_try_compile "$LINENO"; then :
7159   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7160       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7161   (eval $am_ar_try) 2>&5
7162   ac_status=$?
7163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164   test $ac_status = 0; }
7165       if test "$ac_status" -eq 0; then
7166         am_cv_ar_interface=ar
7167       else
7168         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7169         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7170   (eval $am_ar_try) 2>&5
7171   ac_status=$?
7172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7173   test $ac_status = 0; }
7174         if test "$ac_status" -eq 0; then
7175           am_cv_ar_interface=lib
7176         else
7177           am_cv_ar_interface=unknown
7178         fi
7179       fi
7180       rm -f conftest.lib libconftest.a
7181
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184    ac_ext=c
7185 ac_cpp='$CPP $CPPFLAGS'
7186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7192 $as_echo "$am_cv_ar_interface" >&6; }
7193
7194 case $am_cv_ar_interface in
7195 ar)
7196   ;;
7197 lib)
7198   # Microsoft lib, so override with the ar-lib wrapper script.
7199   # FIXME: It is wrong to rewrite AR.
7200   # But if we don't then we get into trouble of one sort or another.
7201   # A longer-term fix would be to have automake use am__AR in this case,
7202   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7203   # similar.
7204   AR="$am_aux_dir/ar-lib $AR"
7205   ;;
7206 unknown)
7207   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7208   ;;
7209 esac
7210
7211
7212 # Check whether --enable-static was given.
7213 if test "${enable_static+set}" = set; then :
7214   enableval=$enable_static; p=${PACKAGE-default}
7215     case $enableval in
7216     yes) enable_static=yes ;;
7217     no) enable_static=no ;;
7218     *)
7219      enable_static=no
7220       # Look at the argument we got.  We use all the common list separators.
7221       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7222       for pkg in $enableval; do
7223         IFS=$lt_save_ifs
7224         if test "X$pkg" = "X$p"; then
7225           enable_static=yes
7226         fi
7227       done
7228       IFS=$lt_save_ifs
7229       ;;
7230     esac
7231 else
7232   enable_static=no
7233 fi
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243 case `pwd` in
7244   *\ * | *\     *)
7245     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7246 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7247 esac
7248
7249
7250
7251 macro_version='2.4.6'
7252 macro_revision='2.4.6'
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 ltmain=$ac_aux_dir/ltmain.sh
7267
7268 # Make sure we can run config.sub.
7269 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7270   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7271
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7273 $as_echo_n "checking build system type... " >&6; }
7274 if ${ac_cv_build+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   ac_build_alias=$build_alias
7278 test "x$ac_build_alias" = x &&
7279   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7280 test "x$ac_build_alias" = x &&
7281   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7282 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7283   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7284
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7287 $as_echo "$ac_cv_build" >&6; }
7288 case $ac_cv_build in
7289 *-*-*) ;;
7290 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7291 esac
7292 build=$ac_cv_build
7293 ac_save_IFS=$IFS; IFS='-'
7294 set x $ac_cv_build
7295 shift
7296 build_cpu=$1
7297 build_vendor=$2
7298 shift; shift
7299 # Remember, the first character of IFS is used to create $*,
7300 # except with old shells:
7301 build_os=$*
7302 IFS=$ac_save_IFS
7303 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7304
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7307 $as_echo_n "checking host system type... " >&6; }
7308 if ${ac_cv_host+:} false; then :
7309   $as_echo_n "(cached) " >&6
7310 else
7311   if test "x$host_alias" = x; then
7312   ac_cv_host=$ac_cv_build
7313 else
7314   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7315     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7316 fi
7317
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7320 $as_echo "$ac_cv_host" >&6; }
7321 case $ac_cv_host in
7322 *-*-*) ;;
7323 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7324 esac
7325 host=$ac_cv_host
7326 ac_save_IFS=$IFS; IFS='-'
7327 set x $ac_cv_host
7328 shift
7329 host_cpu=$1
7330 host_vendor=$2
7331 shift; shift
7332 # Remember, the first character of IFS is used to create $*,
7333 # except with old shells:
7334 host_os=$*
7335 IFS=$ac_save_IFS
7336 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7337
7338
7339 # Backslashify metacharacters that are still active within
7340 # double-quoted strings.
7341 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7342
7343 # Same as above, but do not quote variable references.
7344 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7345
7346 # Sed substitution to delay expansion of an escaped shell variable in a
7347 # double_quote_subst'ed string.
7348 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7349
7350 # Sed substitution to delay expansion of an escaped single quote.
7351 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7352
7353 # Sed substitution to avoid accidental globbing in evaled expressions
7354 no_glob_subst='s/\*/\\\*/g'
7355
7356 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7357 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7359
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7361 $as_echo_n "checking how to print strings... " >&6; }
7362 # Test print first, because it will be a builtin if present.
7363 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7364    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7365   ECHO='print -r --'
7366 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7367   ECHO='printf %s\n'
7368 else
7369   # Use this function as a fallback that always works.
7370   func_fallback_echo ()
7371   {
7372     eval 'cat <<_LTECHO_EOF
7373 $1
7374 _LTECHO_EOF'
7375   }
7376   ECHO='func_fallback_echo'
7377 fi
7378
7379 # func_echo_all arg...
7380 # Invoke $ECHO with all args, space-separated.
7381 func_echo_all ()
7382 {
7383     $ECHO ""
7384 }
7385
7386 case $ECHO in
7387   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7388 $as_echo "printf" >&6; } ;;
7389   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7390 $as_echo "print -r" >&6; } ;;
7391   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7392 $as_echo "cat" >&6; } ;;
7393 esac
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7409 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7410 if ${ac_cv_path_SED+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7414      for ac_i in 1 2 3 4 5 6 7; do
7415        ac_script="$ac_script$as_nl$ac_script"
7416      done
7417      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7418      { ac_script=; unset ac_script;}
7419      if test -z "$SED"; then
7420   ac_path_SED_found=false
7421   # Loop through the user's path and test for each of PROGNAME-LIST
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427     for ac_prog in sed gsed; do
7428     for ac_exec_ext in '' $ac_executable_extensions; do
7429       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7430       as_fn_executable_p "$ac_path_SED" || continue
7431 # Check for GNU ac_path_SED and select it if it is found.
7432   # Check for GNU $ac_path_SED
7433 case `"$ac_path_SED" --version 2>&1` in
7434 *GNU*)
7435   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7436 *)
7437   ac_count=0
7438   $as_echo_n 0123456789 >"conftest.in"
7439   while :
7440   do
7441     cat "conftest.in" "conftest.in" >"conftest.tmp"
7442     mv "conftest.tmp" "conftest.in"
7443     cp "conftest.in" "conftest.nl"
7444     $as_echo '' >> "conftest.nl"
7445     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7446     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7447     as_fn_arith $ac_count + 1 && ac_count=$as_val
7448     if test $ac_count -gt ${ac_path_SED_max-0}; then
7449       # Best one so far, save it but keep looking for a better one
7450       ac_cv_path_SED="$ac_path_SED"
7451       ac_path_SED_max=$ac_count
7452     fi
7453     # 10*(2^10) chars as input seems more than enough
7454     test $ac_count -gt 10 && break
7455   done
7456   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7457 esac
7458
7459       $ac_path_SED_found && break 3
7460     done
7461   done
7462   done
7463 IFS=$as_save_IFS
7464   if test -z "$ac_cv_path_SED"; then
7465     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7466   fi
7467 else
7468   ac_cv_path_SED=$SED
7469 fi
7470
7471 fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7473 $as_echo "$ac_cv_path_SED" >&6; }
7474  SED="$ac_cv_path_SED"
7475   rm -f conftest.sed
7476
7477 test -z "$SED" && SED=sed
7478 Xsed="$SED -e 1s/^X//"
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7491 $as_echo_n "checking for fgrep... " >&6; }
7492 if ${ac_cv_path_FGREP+:} false; then :
7493   $as_echo_n "(cached) " >&6
7494 else
7495   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7496    then ac_cv_path_FGREP="$GREP -F"
7497    else
7498      if test -z "$FGREP"; then
7499   ac_path_FGREP_found=false
7500   # Loop through the user's path and test for each of PROGNAME-LIST
7501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506     for ac_prog in fgrep; do
7507     for ac_exec_ext in '' $ac_executable_extensions; do
7508       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7509       as_fn_executable_p "$ac_path_FGREP" || continue
7510 # Check for GNU ac_path_FGREP and select it if it is found.
7511   # Check for GNU $ac_path_FGREP
7512 case `"$ac_path_FGREP" --version 2>&1` in
7513 *GNU*)
7514   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7515 *)
7516   ac_count=0
7517   $as_echo_n 0123456789 >"conftest.in"
7518   while :
7519   do
7520     cat "conftest.in" "conftest.in" >"conftest.tmp"
7521     mv "conftest.tmp" "conftest.in"
7522     cp "conftest.in" "conftest.nl"
7523     $as_echo 'FGREP' >> "conftest.nl"
7524     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7526     as_fn_arith $ac_count + 1 && ac_count=$as_val
7527     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7528       # Best one so far, save it but keep looking for a better one
7529       ac_cv_path_FGREP="$ac_path_FGREP"
7530       ac_path_FGREP_max=$ac_count
7531     fi
7532     # 10*(2^10) chars as input seems more than enough
7533     test $ac_count -gt 10 && break
7534   done
7535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7536 esac
7537
7538       $ac_path_FGREP_found && break 3
7539     done
7540   done
7541   done
7542 IFS=$as_save_IFS
7543   if test -z "$ac_cv_path_FGREP"; then
7544     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7545   fi
7546 else
7547   ac_cv_path_FGREP=$FGREP
7548 fi
7549
7550    fi
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7553 $as_echo "$ac_cv_path_FGREP" >&6; }
7554  FGREP="$ac_cv_path_FGREP"
7555
7556
7557 test -z "$GREP" && GREP=grep
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577 # Check whether --with-gnu-ld was given.
7578 if test "${with_gnu_ld+set}" = set; then :
7579   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7580 else
7581   with_gnu_ld=no
7582 fi
7583
7584 ac_prog=ld
7585 if test yes = "$GCC"; then
7586   # Check if gcc -print-prog-name=ld gives a path.
7587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7588 $as_echo_n "checking for ld used by $CC... " >&6; }
7589   case $host in
7590   *-*-mingw*)
7591     # gcc leaves a trailing carriage return, which upsets mingw
7592     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7593   *)
7594     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7595   esac
7596   case $ac_prog in
7597     # Accept absolute paths.
7598     [\\/]* | ?:[\\/]*)
7599       re_direlt='/[^/][^/]*/\.\./'
7600       # Canonicalize the pathname of ld
7601       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7602       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7603         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7604       done
7605       test -z "$LD" && LD=$ac_prog
7606       ;;
7607   "")
7608     # If it fails, then pretend we aren't using GCC.
7609     ac_prog=ld
7610     ;;
7611   *)
7612     # If it is relative, then search for the first ld in PATH.
7613     with_gnu_ld=unknown
7614     ;;
7615   esac
7616 elif test yes = "$with_gnu_ld"; then
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7618 $as_echo_n "checking for GNU ld... " >&6; }
7619 else
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7621 $as_echo_n "checking for non-GNU ld... " >&6; }
7622 fi
7623 if ${lt_cv_path_LD+:} false; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   if test -z "$LD"; then
7627   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7628   for ac_dir in $PATH; do
7629     IFS=$lt_save_ifs
7630     test -z "$ac_dir" && ac_dir=.
7631     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7632       lt_cv_path_LD=$ac_dir/$ac_prog
7633       # Check to see if the program is GNU ld.  I'd rather use --version,
7634       # but apparently some variants of GNU ld only accept -v.
7635       # Break only if it was the GNU/non-GNU ld that we prefer.
7636       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7637       *GNU* | *'with BFD'*)
7638         test no != "$with_gnu_ld" && break
7639         ;;
7640       *)
7641         test yes != "$with_gnu_ld" && break
7642         ;;
7643       esac
7644     fi
7645   done
7646   IFS=$lt_save_ifs
7647 else
7648   lt_cv_path_LD=$LD # Let the user override the test with a path.
7649 fi
7650 fi
7651
7652 LD=$lt_cv_path_LD
7653 if test -n "$LD"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7655 $as_echo "$LD" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7663 if ${lt_cv_prog_gnu_ld+:} false; then :
7664   $as_echo_n "(cached) " >&6
7665 else
7666   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7667 case `$LD -v 2>&1 </dev/null` in
7668 *GNU* | *'with BFD'*)
7669   lt_cv_prog_gnu_ld=yes
7670   ;;
7671 *)
7672   lt_cv_prog_gnu_ld=no
7673   ;;
7674 esac
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7677 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7678 with_gnu_ld=$lt_cv_prog_gnu_ld
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7689 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7690 if ${lt_cv_path_NM+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   if test -n "$NM"; then
7694   # Let the user override the test.
7695   lt_cv_path_NM=$NM
7696 else
7697   lt_nm_to_check=${ac_tool_prefix}nm
7698   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7699     lt_nm_to_check="$lt_nm_to_check nm"
7700   fi
7701   for lt_tmp_nm in $lt_nm_to_check; do
7702     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7703     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7704       IFS=$lt_save_ifs
7705       test -z "$ac_dir" && ac_dir=.
7706       tmp_nm=$ac_dir/$lt_tmp_nm
7707       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7708         # Check to see if the nm accepts a BSD-compat flag.
7709         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7710         #   nm: unknown option "B" ignored
7711         # Tru64's nm complains that /dev/null is an invalid object file
7712         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7713         case $build_os in
7714         mingw*) lt_bad_file=conftest.nm/nofile ;;
7715         *) lt_bad_file=/dev/null ;;
7716         esac
7717         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7718         *$lt_bad_file* | *'Invalid file or object type'*)
7719           lt_cv_path_NM="$tmp_nm -B"
7720           break 2
7721           ;;
7722         *)
7723           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7724           */dev/null*)
7725             lt_cv_path_NM="$tmp_nm -p"
7726             break 2
7727             ;;
7728           *)
7729             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7730             continue # so that we can try to find one that supports BSD flags
7731             ;;
7732           esac
7733           ;;
7734         esac
7735       fi
7736     done
7737     IFS=$lt_save_ifs
7738   done
7739   : ${lt_cv_path_NM=no}
7740 fi
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7743 $as_echo "$lt_cv_path_NM" >&6; }
7744 if test no != "$lt_cv_path_NM"; then
7745   NM=$lt_cv_path_NM
7746 else
7747   # Didn't find any BSD compatible name lister, look for dumpbin.
7748   if test -n "$DUMPBIN"; then :
7749     # Let the user override the test.
7750   else
7751     if test -n "$ac_tool_prefix"; then
7752   for ac_prog in dumpbin "link -dump"
7753   do
7754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_DUMPBIN+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   if test -n "$DUMPBIN"; then
7762   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767   IFS=$as_save_IFS
7768   test -z "$as_dir" && as_dir=.
7769     for ac_exec_ext in '' $ac_executable_extensions; do
7770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773     break 2
7774   fi
7775 done
7776   done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 DUMPBIN=$ac_cv_prog_DUMPBIN
7782 if test -n "$DUMPBIN"; then
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7784 $as_echo "$DUMPBIN" >&6; }
7785 else
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789
7790
7791     test -n "$DUMPBIN" && break
7792   done
7793 fi
7794 if test -z "$DUMPBIN"; then
7795   ac_ct_DUMPBIN=$DUMPBIN
7796   for ac_prog in dumpbin "link -dump"
7797 do
7798   # Extract the first word of "$ac_prog", so it can be a program name with args.
7799 set dummy $ac_prog; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   if test -n "$ac_ct_DUMPBIN"; then
7806   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811   IFS=$as_save_IFS
7812   test -z "$as_dir" && as_dir=.
7813     for ac_exec_ext in '' $ac_executable_extensions; do
7814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817     break 2
7818   fi
7819 done
7820   done
7821 IFS=$as_save_IFS
7822
7823 fi
7824 fi
7825 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7826 if test -n "$ac_ct_DUMPBIN"; then
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7828 $as_echo "$ac_ct_DUMPBIN" >&6; }
7829 else
7830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835   test -n "$ac_ct_DUMPBIN" && break
7836 done
7837
7838   if test "x$ac_ct_DUMPBIN" = x; then
7839     DUMPBIN=":"
7840   else
7841     case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845 ac_tool_warned=yes ;;
7846 esac
7847     DUMPBIN=$ac_ct_DUMPBIN
7848   fi
7849 fi
7850
7851     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7852     *COFF*)
7853       DUMPBIN="$DUMPBIN -symbols -headers"
7854       ;;
7855     *)
7856       DUMPBIN=:
7857       ;;
7858     esac
7859   fi
7860
7861   if test : != "$DUMPBIN"; then
7862     NM=$DUMPBIN
7863   fi
7864 fi
7865 test -z "$NM" && NM=nm
7866
7867
7868
7869
7870
7871
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7873 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7874 if ${lt_cv_nm_interface+:} false; then :
7875   $as_echo_n "(cached) " >&6
7876 else
7877   lt_cv_nm_interface="BSD nm"
7878   echo "int some_variable = 0;" > conftest.$ac_ext
7879   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7880   (eval "$ac_compile" 2>conftest.err)
7881   cat conftest.err >&5
7882   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7883   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7884   cat conftest.err >&5
7885   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7886   cat conftest.out >&5
7887   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7888     lt_cv_nm_interface="MS dumpbin"
7889   fi
7890   rm -f conftest*
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7893 $as_echo "$lt_cv_nm_interface" >&6; }
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7896 $as_echo_n "checking whether ln -s works... " >&6; }
7897 LN_S=$as_ln_s
7898 if test "$LN_S" = "ln -s"; then
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7901 else
7902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7903 $as_echo "no, using $LN_S" >&6; }
7904 fi
7905
7906 # find the maximum length of command line arguments
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7908 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7909 if ${lt_cv_sys_max_cmd_len+:} false; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912     i=0
7913   teststring=ABCD
7914
7915   case $build_os in
7916   msdosdjgpp*)
7917     # On DJGPP, this test can blow up pretty badly due to problems in libc
7918     # (any single argument exceeding 2000 bytes causes a buffer overrun
7919     # during glob expansion).  Even if it were fixed, the result of this
7920     # check would be larger than it should be.
7921     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7922     ;;
7923
7924   gnu*)
7925     # Under GNU Hurd, this test is not required because there is
7926     # no limit to the length of command line arguments.
7927     # Libtool will interpret -1 as no limit whatsoever
7928     lt_cv_sys_max_cmd_len=-1;
7929     ;;
7930
7931   cygwin* | mingw* | cegcc*)
7932     # On Win9x/ME, this test blows up -- it succeeds, but takes
7933     # about 5 minutes as the teststring grows exponentially.
7934     # Worse, since 9x/ME are not pre-emptively multitasking,
7935     # you end up with a "frozen" computer, even though with patience
7936     # the test eventually succeeds (with a max line length of 256k).
7937     # Instead, let's just punt: use the minimum linelength reported by
7938     # all of the supported platforms: 8192 (on NT/2K/XP).
7939     lt_cv_sys_max_cmd_len=8192;
7940     ;;
7941
7942   mint*)
7943     # On MiNT this can take a long time and run out of memory.
7944     lt_cv_sys_max_cmd_len=8192;
7945     ;;
7946
7947   amigaos*)
7948     # On AmigaOS with pdksh, this test takes hours, literally.
7949     # So we just punt and use a minimum line length of 8192.
7950     lt_cv_sys_max_cmd_len=8192;
7951     ;;
7952
7953   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7954     # This has been around since 386BSD, at least.  Likely further.
7955     if test -x /sbin/sysctl; then
7956       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7957     elif test -x /usr/sbin/sysctl; then
7958       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7959     else
7960       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7961     fi
7962     # And add a safety zone
7963     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7964     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7965     ;;
7966
7967   interix*)
7968     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7969     lt_cv_sys_max_cmd_len=196608
7970     ;;
7971
7972   os2*)
7973     # The test takes a long time on OS/2.
7974     lt_cv_sys_max_cmd_len=8192
7975     ;;
7976
7977   osf*)
7978     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7979     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7980     # nice to cause kernel panics so lets avoid the loop below.
7981     # First set a reasonable default.
7982     lt_cv_sys_max_cmd_len=16384
7983     #
7984     if test -x /sbin/sysconfig; then
7985       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7986         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7987       esac
7988     fi
7989     ;;
7990   sco3.2v5*)
7991     lt_cv_sys_max_cmd_len=102400
7992     ;;
7993   sysv5* | sco5v6* | sysv4.2uw2*)
7994     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7995     if test -n "$kargmax"; then
7996       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7997     else
7998       lt_cv_sys_max_cmd_len=32768
7999     fi
8000     ;;
8001   *)
8002     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8003     if test -n "$lt_cv_sys_max_cmd_len" && \
8004        test undefined != "$lt_cv_sys_max_cmd_len"; then
8005       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8006       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8007     else
8008       # Make teststring a little bigger before we do anything with it.
8009       # a 1K string should be a reasonable start.
8010       for i in 1 2 3 4 5 6 7 8; do
8011         teststring=$teststring$teststring
8012       done
8013       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8014       # If test is not a shell built-in, we'll probably end up computing a
8015       # maximum length that is only half of the actual maximum length, but
8016       # we can't tell.
8017       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8018                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8019               test 17 != "$i" # 1/2 MB should be enough
8020       do
8021         i=`expr $i + 1`
8022         teststring=$teststring$teststring
8023       done
8024       # Only check the string length outside the loop.
8025       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8026       teststring=
8027       # Add a significant safety factor because C++ compilers can tack on
8028       # massive amounts of additional arguments before passing them to the
8029       # linker.  It appears as though 1/2 is a usable value.
8030       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8031     fi
8032     ;;
8033   esac
8034
8035 fi
8036
8037 if test -n "$lt_cv_sys_max_cmd_len"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8039 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8042 $as_echo "none" >&6; }
8043 fi
8044 max_cmd_len=$lt_cv_sys_max_cmd_len
8045
8046
8047
8048
8049
8050
8051 : ${CP="cp -f"}
8052 : ${MV="mv -f"}
8053 : ${RM="rm -f"}
8054
8055 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8056   lt_unset=unset
8057 else
8058   lt_unset=false
8059 fi
8060
8061
8062
8063
8064
8065 # test EBCDIC or ASCII
8066 case `echo X|tr X '\101'` in
8067  A) # ASCII based system
8068     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8069   lt_SP2NL='tr \040 \012'
8070   lt_NL2SP='tr \015\012 \040\040'
8071   ;;
8072  *) # EBCDIC based system
8073   lt_SP2NL='tr \100 \n'
8074   lt_NL2SP='tr \r\n \100\100'
8075   ;;
8076 esac
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8087 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8088 if ${lt_cv_to_host_file_cmd+:} false; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   case $host in
8092   *-*-mingw* )
8093     case $build in
8094       *-*-mingw* ) # actually msys
8095         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8096         ;;
8097       *-*-cygwin* )
8098         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8099         ;;
8100       * ) # otherwise, assume *nix
8101         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8102         ;;
8103     esac
8104     ;;
8105   *-*-cygwin* )
8106     case $build in
8107       *-*-mingw* ) # actually msys
8108         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8109         ;;
8110       *-*-cygwin* )
8111         lt_cv_to_host_file_cmd=func_convert_file_noop
8112         ;;
8113       * ) # otherwise, assume *nix
8114         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8115         ;;
8116     esac
8117     ;;
8118   * ) # unhandled hosts (and "normal" native builds)
8119     lt_cv_to_host_file_cmd=func_convert_file_noop
8120     ;;
8121 esac
8122
8123 fi
8124
8125 to_host_file_cmd=$lt_cv_to_host_file_cmd
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8127 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8128
8129
8130
8131
8132
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8134 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8135 if ${lt_cv_to_tool_file_cmd+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   #assume ordinary cross tools, or native build.
8139 lt_cv_to_tool_file_cmd=func_convert_file_noop
8140 case $host in
8141   *-*-mingw* )
8142     case $build in
8143       *-*-mingw* ) # actually msys
8144         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8145         ;;
8146     esac
8147     ;;
8148 esac
8149
8150 fi
8151
8152 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8154 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8155
8156
8157
8158
8159
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8161 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8162 if ${lt_cv_ld_reload_flag+:} false; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   lt_cv_ld_reload_flag='-r'
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8168 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8169 reload_flag=$lt_cv_ld_reload_flag
8170 case $reload_flag in
8171 "" | " "*) ;;
8172 *) reload_flag=" $reload_flag" ;;
8173 esac
8174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8175 case $host_os in
8176   cygwin* | mingw* | pw32* | cegcc*)
8177     if test yes != "$GCC"; then
8178       reload_cmds=false
8179     fi
8180     ;;
8181   darwin*)
8182     if test yes = "$GCC"; then
8183       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8184     else
8185       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8186     fi
8187     ;;
8188 esac
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 if test -n "$ac_tool_prefix"; then
8199   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8200 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_prog_OBJDUMP+:} false; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   if test -n "$OBJDUMP"; then
8207   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212   IFS=$as_save_IFS
8213   test -z "$as_dir" && as_dir=.
8214     for ac_exec_ext in '' $ac_executable_extensions; do
8215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218     break 2
8219   fi
8220 done
8221   done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 OBJDUMP=$ac_cv_prog_OBJDUMP
8227 if test -n "$OBJDUMP"; then
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8229 $as_echo "$OBJDUMP" >&6; }
8230 else
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236 fi
8237 if test -z "$ac_cv_prog_OBJDUMP"; then
8238   ac_ct_OBJDUMP=$OBJDUMP
8239   # Extract the first word of "objdump", so it can be a program name with args.
8240 set dummy objdump; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8244   $as_echo_n "(cached) " >&6
8245 else
8246   if test -n "$ac_ct_OBJDUMP"; then
8247   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252   IFS=$as_save_IFS
8253   test -z "$as_dir" && as_dir=.
8254     for ac_exec_ext in '' $ac_executable_extensions; do
8255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258     break 2
8259   fi
8260 done
8261   done
8262 IFS=$as_save_IFS
8263
8264 fi
8265 fi
8266 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8267 if test -n "$ac_ct_OBJDUMP"; then
8268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8269 $as_echo "$ac_ct_OBJDUMP" >&6; }
8270 else
8271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274
8275   if test "x$ac_ct_OBJDUMP" = x; then
8276     OBJDUMP="false"
8277   else
8278     case $cross_compiling:$ac_tool_warned in
8279 yes:)
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282 ac_tool_warned=yes ;;
8283 esac
8284     OBJDUMP=$ac_ct_OBJDUMP
8285   fi
8286 else
8287   OBJDUMP="$ac_cv_prog_OBJDUMP"
8288 fi
8289
8290 test -z "$OBJDUMP" && OBJDUMP=objdump
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8301 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8302 if ${lt_cv_deplibs_check_method+:} false; then :
8303   $as_echo_n "(cached) " >&6
8304 else
8305   lt_cv_file_magic_cmd='$MAGIC_CMD'
8306 lt_cv_file_magic_test_file=
8307 lt_cv_deplibs_check_method='unknown'
8308 # Need to set the preceding variable on all platforms that support
8309 # interlibrary dependencies.
8310 # 'none' -- dependencies not supported.
8311 # 'unknown' -- same as none, but documents that we really don't know.
8312 # 'pass_all' -- all dependencies passed with no checks.
8313 # 'test_compile' -- check by making test program.
8314 # 'file_magic [[regex]]' -- check by looking for files in library path
8315 # that responds to the $file_magic_cmd with a given extended regex.
8316 # If you have 'file' or equivalent on your system and you're not sure
8317 # whether 'pass_all' will *always* work, you probably want this one.
8318
8319 case $host_os in
8320 aix[4-9]*)
8321   lt_cv_deplibs_check_method=pass_all
8322   ;;
8323
8324 beos*)
8325   lt_cv_deplibs_check_method=pass_all
8326   ;;
8327
8328 bsdi[45]*)
8329   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8330   lt_cv_file_magic_cmd='/usr/bin/file -L'
8331   lt_cv_file_magic_test_file=/shlib/libc.so
8332   ;;
8333
8334 cygwin*)
8335   # func_win32_libid is a shell function defined in ltmain.sh
8336   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8337   lt_cv_file_magic_cmd='func_win32_libid'
8338   ;;
8339
8340 mingw* | pw32*)
8341   # Base MSYS/MinGW do not provide the 'file' command needed by
8342   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8343   # unless we find 'file', for example because we are cross-compiling.
8344   if ( file / ) >/dev/null 2>&1; then
8345     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8346     lt_cv_file_magic_cmd='func_win32_libid'
8347   else
8348     # Keep this pattern in sync with the one in func_win32_libid.
8349     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8350     lt_cv_file_magic_cmd='$OBJDUMP -f'
8351   fi
8352   ;;
8353
8354 cegcc*)
8355   # use the weaker test based on 'objdump'. See mingw*.
8356   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8357   lt_cv_file_magic_cmd='$OBJDUMP -f'
8358   ;;
8359
8360 darwin* | rhapsody*)
8361   lt_cv_deplibs_check_method=pass_all
8362   ;;
8363
8364 freebsd* | dragonfly*)
8365   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8366     case $host_cpu in
8367     i*86 )
8368       # Not sure whether the presence of OpenBSD here was a mistake.
8369       # Let's accept both of them until this is cleared up.
8370       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8371       lt_cv_file_magic_cmd=/usr/bin/file
8372       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8373       ;;
8374     esac
8375   else
8376     lt_cv_deplibs_check_method=pass_all
8377   fi
8378   ;;
8379
8380 haiku*)
8381   lt_cv_deplibs_check_method=pass_all
8382   ;;
8383
8384 hpux10.20* | hpux11*)
8385   lt_cv_file_magic_cmd=/usr/bin/file
8386   case $host_cpu in
8387   ia64*)
8388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8389     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8390     ;;
8391   hppa*64*)
8392     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]'
8393     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8394     ;;
8395   *)
8396     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8397     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8398     ;;
8399   esac
8400   ;;
8401
8402 interix[3-9]*)
8403   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8404   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8405   ;;
8406
8407 irix5* | irix6* | nonstopux*)
8408   case $LD in
8409   *-32|*"-32 ") libmagic=32-bit;;
8410   *-n32|*"-n32 ") libmagic=N32;;
8411   *-64|*"-64 ") libmagic=64-bit;;
8412   *) libmagic=never-match;;
8413   esac
8414   lt_cv_deplibs_check_method=pass_all
8415   ;;
8416
8417 # This must be glibc/ELF.
8418 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8419   lt_cv_deplibs_check_method=pass_all
8420   ;;
8421
8422 netbsd* | netbsdelf*-gnu)
8423   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8424     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8425   else
8426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8427   fi
8428   ;;
8429
8430 newos6*)
8431   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8432   lt_cv_file_magic_cmd=/usr/bin/file
8433   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8434   ;;
8435
8436 *nto* | *qnx*)
8437   lt_cv_deplibs_check_method=pass_all
8438   ;;
8439
8440 openbsd* | bitrig*)
8441   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8442     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8443   else
8444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8445   fi
8446   ;;
8447
8448 osf3* | osf4* | osf5*)
8449   lt_cv_deplibs_check_method=pass_all
8450   ;;
8451
8452 rdos*)
8453   lt_cv_deplibs_check_method=pass_all
8454   ;;
8455
8456 solaris*)
8457   lt_cv_deplibs_check_method=pass_all
8458   ;;
8459
8460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8461   lt_cv_deplibs_check_method=pass_all
8462   ;;
8463
8464 sysv4 | sysv4.3*)
8465   case $host_vendor in
8466   motorola)
8467     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]'
8468     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8469     ;;
8470   ncr)
8471     lt_cv_deplibs_check_method=pass_all
8472     ;;
8473   sequent)
8474     lt_cv_file_magic_cmd='/bin/file'
8475     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8476     ;;
8477   sni)
8478     lt_cv_file_magic_cmd='/bin/file'
8479     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8480     lt_cv_file_magic_test_file=/lib/libc.so
8481     ;;
8482   siemens)
8483     lt_cv_deplibs_check_method=pass_all
8484     ;;
8485   pc)
8486     lt_cv_deplibs_check_method=pass_all
8487     ;;
8488   esac
8489   ;;
8490
8491 tpf*)
8492   lt_cv_deplibs_check_method=pass_all
8493   ;;
8494 os2*)
8495   lt_cv_deplibs_check_method=pass_all
8496   ;;
8497 esac
8498
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8501 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8502
8503 file_magic_glob=
8504 want_nocaseglob=no
8505 if test "$build" = "$host"; then
8506   case $host_os in
8507   mingw* | pw32*)
8508     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8509       want_nocaseglob=yes
8510     else
8511       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8512     fi
8513     ;;
8514   esac
8515 fi
8516
8517 file_magic_cmd=$lt_cv_file_magic_cmd
8518 deplibs_check_method=$lt_cv_deplibs_check_method
8519 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542 if test -n "$ac_tool_prefix"; then
8543   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8544 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if ${ac_cv_prog_DLLTOOL+:} false; then :
8548   $as_echo_n "(cached) " >&6
8549 else
8550   if test -n "$DLLTOOL"; then
8551   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8552 else
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8555 do
8556   IFS=$as_save_IFS
8557   test -z "$as_dir" && as_dir=.
8558     for ac_exec_ext in '' $ac_executable_extensions; do
8559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8560     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562     break 2
8563   fi
8564 done
8565   done
8566 IFS=$as_save_IFS
8567
8568 fi
8569 fi
8570 DLLTOOL=$ac_cv_prog_DLLTOOL
8571 if test -n "$DLLTOOL"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8573 $as_echo "$DLLTOOL" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579
8580 fi
8581 if test -z "$ac_cv_prog_DLLTOOL"; then
8582   ac_ct_DLLTOOL=$DLLTOOL
8583   # Extract the first word of "dlltool", so it can be a program name with args.
8584 set dummy dlltool; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8588   $as_echo_n "(cached) " >&6
8589 else
8590   if test -n "$ac_ct_DLLTOOL"; then
8591   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   test -z "$as_dir" && as_dir=.
8598     for ac_exec_ext in '' $ac_executable_extensions; do
8599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602     break 2
8603   fi
8604 done
8605   done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8611 if test -n "$ac_ct_DLLTOOL"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8613 $as_echo "$ac_ct_DLLTOOL" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619   if test "x$ac_ct_DLLTOOL" = x; then
8620     DLLTOOL="false"
8621   else
8622     case $cross_compiling:$ac_tool_warned in
8623 yes:)
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8626 ac_tool_warned=yes ;;
8627 esac
8628     DLLTOOL=$ac_ct_DLLTOOL
8629   fi
8630 else
8631   DLLTOOL="$ac_cv_prog_DLLTOOL"
8632 fi
8633
8634 test -z "$DLLTOOL" && DLLTOOL=dlltool
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8646 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8647 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   lt_cv_sharedlib_from_linklib_cmd='unknown'
8651
8652 case $host_os in
8653 cygwin* | mingw* | pw32* | cegcc*)
8654   # two different shell functions defined in ltmain.sh;
8655   # decide which one to use based on capabilities of $DLLTOOL
8656   case `$DLLTOOL --help 2>&1` in
8657   *--identify-strict*)
8658     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8659     ;;
8660   *)
8661     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8662     ;;
8663   esac
8664   ;;
8665 *)
8666   # fallback: assume linklib IS sharedlib
8667   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8668   ;;
8669 esac
8670
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8673 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8674 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8675 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8676
8677
8678
8679
8680
8681
8682
8683 if test -n "$ac_tool_prefix"; then
8684   for ac_prog in ar
8685   do
8686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_prog_AR+:} false; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   if test -n "$AR"; then
8694   ac_cv_prog_AR="$AR" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8698 do
8699   IFS=$as_save_IFS
8700   test -z "$as_dir" && as_dir=.
8701     for ac_exec_ext in '' $ac_executable_extensions; do
8702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705     break 2
8706   fi
8707 done
8708   done
8709 IFS=$as_save_IFS
8710
8711 fi
8712 fi
8713 AR=$ac_cv_prog_AR
8714 if test -n "$AR"; then
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8716 $as_echo "$AR" >&6; }
8717 else
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723     test -n "$AR" && break
8724   done
8725 fi
8726 if test -z "$AR"; then
8727   ac_ct_AR=$AR
8728   for ac_prog in ar
8729 do
8730   # Extract the first word of "$ac_prog", so it can be a program name with args.
8731 set dummy $ac_prog; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   if test -n "$ac_ct_AR"; then
8738   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745     for ac_exec_ext in '' $ac_executable_extensions; do
8746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747     ac_cv_prog_ac_ct_AR="$ac_prog"
8748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752   done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8758 if test -n "$ac_ct_AR"; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8760 $as_echo "$ac_ct_AR" >&6; }
8761 else
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766
8767   test -n "$ac_ct_AR" && break
8768 done
8769
8770   if test "x$ac_ct_AR" = x; then
8771     AR="false"
8772   else
8773     case $cross_compiling:$ac_tool_warned in
8774 yes:)
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8777 ac_tool_warned=yes ;;
8778 esac
8779     AR=$ac_ct_AR
8780   fi
8781 fi
8782
8783 : ${AR=ar}
8784 : ${AR_FLAGS=cr}
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8797 $as_echo_n "checking for archiver @FILE support... " >&6; }
8798 if ${lt_cv_ar_at_file+:} false; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   lt_cv_ar_at_file=no
8802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h.  */
8804
8805 int
8806 main ()
8807 {
8808
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_compile "$LINENO"; then :
8814   echo conftest.$ac_objext > conftest.lst
8815       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8816       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8817   (eval $lt_ar_try) 2>&5
8818   ac_status=$?
8819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8820   test $ac_status = 0; }
8821       if test 0 -eq "$ac_status"; then
8822         # Ensure the archiver fails upon bogus file names.
8823         rm -f conftest.$ac_objext libconftest.a
8824         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8825   (eval $lt_ar_try) 2>&5
8826   ac_status=$?
8827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8828   test $ac_status = 0; }
8829         if test 0 -ne "$ac_status"; then
8830           lt_cv_ar_at_file=@
8831         fi
8832       fi
8833       rm -f conftest.* libconftest.a
8834
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837
8838 fi
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8840 $as_echo "$lt_cv_ar_at_file" >&6; }
8841
8842 if test no = "$lt_cv_ar_at_file"; then
8843   archiver_list_spec=
8844 else
8845   archiver_list_spec=$lt_cv_ar_at_file
8846 fi
8847
8848
8849
8850
8851
8852
8853
8854 if test -n "$ac_tool_prefix"; then
8855   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8856 set dummy ${ac_tool_prefix}strip; ac_word=$2
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 $as_echo_n "checking for $ac_word... " >&6; }
8859 if ${ac_cv_prog_STRIP+:} false; then :
8860   $as_echo_n "(cached) " >&6
8861 else
8862   if test -n "$STRIP"; then
8863   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8864 else
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8867 do
8868   IFS=$as_save_IFS
8869   test -z "$as_dir" && as_dir=.
8870     for ac_exec_ext in '' $ac_executable_extensions; do
8871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874     break 2
8875   fi
8876 done
8877   done
8878 IFS=$as_save_IFS
8879
8880 fi
8881 fi
8882 STRIP=$ac_cv_prog_STRIP
8883 if test -n "$STRIP"; then
8884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8885 $as_echo "$STRIP" >&6; }
8886 else
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8889 fi
8890
8891
8892 fi
8893 if test -z "$ac_cv_prog_STRIP"; then
8894   ac_ct_STRIP=$STRIP
8895   # Extract the first word of "strip", so it can be a program name with args.
8896 set dummy strip; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   if test -n "$ac_ct_STRIP"; then
8903   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908   IFS=$as_save_IFS
8909   test -z "$as_dir" && as_dir=.
8910     for ac_exec_ext in '' $ac_executable_extensions; do
8911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912     ac_cv_prog_ac_ct_STRIP="strip"
8913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914     break 2
8915   fi
8916 done
8917   done
8918 IFS=$as_save_IFS
8919
8920 fi
8921 fi
8922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8923 if test -n "$ac_ct_STRIP"; then
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8925 $as_echo "$ac_ct_STRIP" >&6; }
8926 else
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929 fi
8930
8931   if test "x$ac_ct_STRIP" = x; then
8932     STRIP=":"
8933   else
8934     case $cross_compiling:$ac_tool_warned in
8935 yes:)
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8938 ac_tool_warned=yes ;;
8939 esac
8940     STRIP=$ac_ct_STRIP
8941   fi
8942 else
8943   STRIP="$ac_cv_prog_STRIP"
8944 fi
8945
8946 test -z "$STRIP" && STRIP=:
8947
8948
8949
8950
8951
8952
8953 if test -n "$ac_tool_prefix"; then
8954   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_prog_RANLIB+:} false; then :
8959   $as_echo_n "(cached) " >&6
8960 else
8961   if test -n "$RANLIB"; then
8962   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967   IFS=$as_save_IFS
8968   test -z "$as_dir" && as_dir=.
8969     for ac_exec_ext in '' $ac_executable_extensions; do
8970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973     break 2
8974   fi
8975 done
8976   done
8977 IFS=$as_save_IFS
8978
8979 fi
8980 fi
8981 RANLIB=$ac_cv_prog_RANLIB
8982 if test -n "$RANLIB"; then
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8984 $as_echo "$RANLIB" >&6; }
8985 else
8986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8988 fi
8989
8990
8991 fi
8992 if test -z "$ac_cv_prog_RANLIB"; then
8993   ac_ct_RANLIB=$RANLIB
8994   # Extract the first word of "ranlib", so it can be a program name with args.
8995 set dummy ranlib; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   if test -n "$ac_ct_RANLIB"; then
9002   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007   IFS=$as_save_IFS
9008   test -z "$as_dir" && as_dir=.
9009     for ac_exec_ext in '' $ac_executable_extensions; do
9010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011     ac_cv_prog_ac_ct_RANLIB="ranlib"
9012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013     break 2
9014   fi
9015 done
9016   done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9022 if test -n "$ac_ct_RANLIB"; then
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9024 $as_echo "$ac_ct_RANLIB" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030   if test "x$ac_ct_RANLIB" = x; then
9031     RANLIB=":"
9032   else
9033     case $cross_compiling:$ac_tool_warned in
9034 yes:)
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9037 ac_tool_warned=yes ;;
9038 esac
9039     RANLIB=$ac_ct_RANLIB
9040   fi
9041 else
9042   RANLIB="$ac_cv_prog_RANLIB"
9043 fi
9044
9045 test -z "$RANLIB" && RANLIB=:
9046
9047
9048
9049
9050
9051
9052 # Determine commands to create old-style static archives.
9053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9054 old_postinstall_cmds='chmod 644 $oldlib'
9055 old_postuninstall_cmds=
9056
9057 if test -n "$RANLIB"; then
9058   case $host_os in
9059   bitrig* | openbsd*)
9060     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9061     ;;
9062   *)
9063     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9064     ;;
9065   esac
9066   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9067 fi
9068
9069 case $host_os in
9070   darwin*)
9071     lock_old_archive_extraction=yes ;;
9072   *)
9073     lock_old_archive_extraction=no ;;
9074 esac
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 # If no C compiler was specified, use CC.
9115 LTCC=${LTCC-"$CC"}
9116
9117 # If no C compiler flags were specified, use CFLAGS.
9118 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9119
9120 # Allow CC to be a program name with arguments.
9121 compiler=$CC
9122
9123
9124 # Check for command to grab the raw symbol name followed by C symbol from nm.
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9126 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9127 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130
9131 # These are sane defaults that work on at least a few old systems.
9132 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9133
9134 # Character class describing NM global symbol codes.
9135 symcode='[BCDEGRST]'
9136
9137 # Regexp to match symbols that can be accessed directly from C.
9138 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9139
9140 # Define system-specific variables.
9141 case $host_os in
9142 aix*)
9143   symcode='[BCDT]'
9144   ;;
9145 cygwin* | mingw* | pw32* | cegcc*)
9146   symcode='[ABCDGISTW]'
9147   ;;
9148 hpux*)
9149   if test ia64 = "$host_cpu"; then
9150     symcode='[ABCDEGRST]'
9151   fi
9152   ;;
9153 irix* | nonstopux*)
9154   symcode='[BCDEGRST]'
9155   ;;
9156 osf*)
9157   symcode='[BCDEGQRST]'
9158   ;;
9159 solaris*)
9160   symcode='[BDRT]'
9161   ;;
9162 sco3.2v5*)
9163   symcode='[DT]'
9164   ;;
9165 sysv4.2uw2*)
9166   symcode='[DT]'
9167   ;;
9168 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9169   symcode='[ABDT]'
9170   ;;
9171 sysv4)
9172   symcode='[DFNSTU]'
9173   ;;
9174 esac
9175
9176 # If we're using GNU nm, then use its standard symbol codes.
9177 case `$NM -V 2>&1` in
9178 *GNU* | *'with BFD'*)
9179   symcode='[ABCDGIRSTW]' ;;
9180 esac
9181
9182 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9183   # Gets list of data symbols to import.
9184   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9185   # Adjust the below global symbol transforms to fixup imported variables.
9186   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9187   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9188   lt_c_name_lib_hook="\
9189   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9190   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9191 else
9192   # Disable hooks by default.
9193   lt_cv_sys_global_symbol_to_import=
9194   lt_cdecl_hook=
9195   lt_c_name_hook=
9196   lt_c_name_lib_hook=
9197 fi
9198
9199 # Transform an extracted symbol line into a proper C declaration.
9200 # Some systems (esp. on ia64) link data and code symbols differently,
9201 # so use this general approach.
9202 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9203 $lt_cdecl_hook\
9204 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9205 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9206
9207 # Transform an extracted symbol line into symbol name and symbol address
9208 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9209 $lt_c_name_hook\
9210 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9211 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9212
9213 # Transform an extracted symbol line into symbol name with lib prefix and
9214 # symbol address.
9215 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9216 $lt_c_name_lib_hook\
9217 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9218 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9219 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9220
9221 # Handle CRLF in mingw tool chain
9222 opt_cr=
9223 case $build_os in
9224 mingw*)
9225   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9226   ;;
9227 esac
9228
9229 # Try without a prefix underscore, then with it.
9230 for ac_symprfx in "" "_"; do
9231
9232   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9233   symxfrm="\\1 $ac_symprfx\\2 \\2"
9234
9235   # Write the raw and C identifiers.
9236   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9237     # Fake it for dumpbin and say T for any non-static function,
9238     # D for any global variable and I for any imported variable.
9239     # Also find C++ and __fastcall symbols from MSVC++,
9240     # which start with @ or ?.
9241     lt_cv_sys_global_symbol_pipe="$AWK '"\
9242 "     {last_section=section; section=\$ 3};"\
9243 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9244 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9245 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9246 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9247 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9248 "     \$ 0!~/External *\|/{next};"\
9249 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9250 "     {if(hide[section]) next};"\
9251 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9252 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9253 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9254 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9255 "     ' prfx=^$ac_symprfx"
9256   else
9257     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9258   fi
9259   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9260
9261   # Check to see that the pipe works correctly.
9262   pipe_works=no
9263
9264   rm -f conftest*
9265   cat > conftest.$ac_ext <<_LT_EOF
9266 #ifdef __cplusplus
9267 extern "C" {
9268 #endif
9269 char nm_test_var;
9270 void nm_test_func(void);
9271 void nm_test_func(void){}
9272 #ifdef __cplusplus
9273 }
9274 #endif
9275 int main(){nm_test_var='a';nm_test_func();return(0);}
9276 _LT_EOF
9277
9278   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9279   (eval $ac_compile) 2>&5
9280   ac_status=$?
9281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9282   test $ac_status = 0; }; then
9283     # Now try to grab the symbols.
9284     nlist=conftest.nm
9285     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9286     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9287       # Try sorting and uniquifying the output.
9288       if sort "$nlist" | uniq > "$nlist"T; then
9289         mv -f "$nlist"T "$nlist"
9290       else
9291         rm -f "$nlist"T
9292       fi
9293
9294       # Make sure that we snagged all the symbols we need.
9295       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9296         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9297           cat <<_LT_EOF > conftest.$ac_ext
9298 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9299 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9300 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9301    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9302 # define LT_DLSYM_CONST
9303 #elif defined __osf__
9304 /* This system does not cope well with relocations in const data.  */
9305 # define LT_DLSYM_CONST
9306 #else
9307 # define LT_DLSYM_CONST const
9308 #endif
9309
9310 #ifdef __cplusplus
9311 extern "C" {
9312 #endif
9313
9314 _LT_EOF
9315           # Now generate the symbol file.
9316           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9317
9318           cat <<_LT_EOF >> conftest.$ac_ext
9319
9320 /* The mapping between symbol names and symbols.  */
9321 LT_DLSYM_CONST struct {
9322   const char *name;
9323   void       *address;
9324 }
9325 lt__PROGRAM__LTX_preloaded_symbols[] =
9326 {
9327   { "@PROGRAM@", (void *) 0 },
9328 _LT_EOF
9329           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9330           cat <<\_LT_EOF >> conftest.$ac_ext
9331   {0, (void *) 0}
9332 };
9333
9334 /* This works around a problem in FreeBSD linker */
9335 #ifdef FREEBSD_WORKAROUND
9336 static const void *lt_preloaded_setup() {
9337   return lt__PROGRAM__LTX_preloaded_symbols;
9338 }
9339 #endif
9340
9341 #ifdef __cplusplus
9342 }
9343 #endif
9344 _LT_EOF
9345           # Now try linking the two files.
9346           mv conftest.$ac_objext conftstm.$ac_objext
9347           lt_globsym_save_LIBS=$LIBS
9348           lt_globsym_save_CFLAGS=$CFLAGS
9349           LIBS=conftstm.$ac_objext
9350           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9351           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9352   (eval $ac_link) 2>&5
9353   ac_status=$?
9354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9355   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9356             pipe_works=yes
9357           fi
9358           LIBS=$lt_globsym_save_LIBS
9359           CFLAGS=$lt_globsym_save_CFLAGS
9360         else
9361           echo "cannot find nm_test_func in $nlist" >&5
9362         fi
9363       else
9364         echo "cannot find nm_test_var in $nlist" >&5
9365       fi
9366     else
9367       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9368     fi
9369   else
9370     echo "$progname: failed program was:" >&5
9371     cat conftest.$ac_ext >&5
9372   fi
9373   rm -rf conftest* conftst*
9374
9375   # Do not use the global_symbol_pipe unless it works.
9376   if test yes = "$pipe_works"; then
9377     break
9378   else
9379     lt_cv_sys_global_symbol_pipe=
9380   fi
9381 done
9382
9383 fi
9384
9385 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9386   lt_cv_sys_global_symbol_to_cdecl=
9387 fi
9388 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9390 $as_echo "failed" >&6; }
9391 else
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9393 $as_echo "ok" >&6; }
9394 fi
9395
9396 # Response file support.
9397 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9398   nm_file_list_spec='@'
9399 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9400   nm_file_list_spec='@'
9401 fi
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9440 $as_echo_n "checking for sysroot... " >&6; }
9441
9442 # Check whether --with-sysroot was given.
9443 if test "${with_sysroot+set}" = set; then :
9444   withval=$with_sysroot;
9445 else
9446   with_sysroot=no
9447 fi
9448
9449
9450 lt_sysroot=
9451 case $with_sysroot in #(
9452  yes)
9453    if test yes = "$GCC"; then
9454      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9455    fi
9456    ;; #(
9457  /*)
9458    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9459    ;; #(
9460  no|'')
9461    ;; #(
9462  *)
9463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9464 $as_echo "$with_sysroot" >&6; }
9465    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9466    ;;
9467 esac
9468
9469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9470 $as_echo "${lt_sysroot:-no}" >&6; }
9471
9472
9473
9474
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9477 $as_echo_n "checking for a working dd... " >&6; }
9478 if ${ac_cv_path_lt_DD+:} false; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   printf 0123456789abcdef0123456789abcdef >conftest.i
9482 cat conftest.i conftest.i >conftest2.i
9483 : ${lt_DD:=$DD}
9484 if test -z "$lt_DD"; then
9485   ac_path_lt_DD_found=false
9486   # Loop through the user's path and test for each of PROGNAME-LIST
9487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9489 do
9490   IFS=$as_save_IFS
9491   test -z "$as_dir" && as_dir=.
9492     for ac_prog in dd; do
9493     for ac_exec_ext in '' $ac_executable_extensions; do
9494       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9495       as_fn_executable_p "$ac_path_lt_DD" || continue
9496 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9497   cmp -s conftest.i conftest.out \
9498   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9499 fi
9500       $ac_path_lt_DD_found && break 3
9501     done
9502   done
9503   done
9504 IFS=$as_save_IFS
9505   if test -z "$ac_cv_path_lt_DD"; then
9506     :
9507   fi
9508 else
9509   ac_cv_path_lt_DD=$lt_DD
9510 fi
9511
9512 rm -f conftest.i conftest2.i conftest.out
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9515 $as_echo "$ac_cv_path_lt_DD" >&6; }
9516
9517
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9519 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9520 if ${lt_cv_truncate_bin+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   printf 0123456789abcdef0123456789abcdef >conftest.i
9524 cat conftest.i conftest.i >conftest2.i
9525 lt_cv_truncate_bin=
9526 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9527   cmp -s conftest.i conftest.out \
9528   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9529 fi
9530 rm -f conftest.i conftest2.i conftest.out
9531 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9534 $as_echo "$lt_cv_truncate_bin" >&6; }
9535
9536
9537
9538
9539
9540
9541
9542 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9543 func_cc_basename ()
9544 {
9545     for cc_temp in $*""; do
9546       case $cc_temp in
9547         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9548         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9549         \-*) ;;
9550         *) break;;
9551       esac
9552     done
9553     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9554 }
9555
9556 # Check whether --enable-libtool-lock was given.
9557 if test "${enable_libtool_lock+set}" = set; then :
9558   enableval=$enable_libtool_lock;
9559 fi
9560
9561 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9562
9563 # Some flags need to be propagated to the compiler or linker for good
9564 # libtool support.
9565 case $host in
9566 ia64-*-hpux*)
9567   # Find out what ABI is being produced by ac_compile, and set mode
9568   # options accordingly.
9569   echo 'int i;' > conftest.$ac_ext
9570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9571   (eval $ac_compile) 2>&5
9572   ac_status=$?
9573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9574   test $ac_status = 0; }; then
9575     case `/usr/bin/file conftest.$ac_objext` in
9576       *ELF-32*)
9577         HPUX_IA64_MODE=32
9578         ;;
9579       *ELF-64*)
9580         HPUX_IA64_MODE=64
9581         ;;
9582     esac
9583   fi
9584   rm -rf conftest*
9585   ;;
9586 *-*-irix6*)
9587   # Find out what ABI is being produced by ac_compile, and set linker
9588   # options accordingly.
9589   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9590   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9591   (eval $ac_compile) 2>&5
9592   ac_status=$?
9593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9594   test $ac_status = 0; }; then
9595     if test yes = "$lt_cv_prog_gnu_ld"; then
9596       case `/usr/bin/file conftest.$ac_objext` in
9597         *32-bit*)
9598           LD="${LD-ld} -melf32bsmip"
9599           ;;
9600         *N32*)
9601           LD="${LD-ld} -melf32bmipn32"
9602           ;;
9603         *64-bit*)
9604           LD="${LD-ld} -melf64bmip"
9605         ;;
9606       esac
9607     else
9608       case `/usr/bin/file conftest.$ac_objext` in
9609         *32-bit*)
9610           LD="${LD-ld} -32"
9611           ;;
9612         *N32*)
9613           LD="${LD-ld} -n32"
9614           ;;
9615         *64-bit*)
9616           LD="${LD-ld} -64"
9617           ;;
9618       esac
9619     fi
9620   fi
9621   rm -rf conftest*
9622   ;;
9623
9624 mips64*-*linux*)
9625   # Find out what ABI is being produced by ac_compile, and set linker
9626   # options accordingly.
9627   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9628   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9629   (eval $ac_compile) 2>&5
9630   ac_status=$?
9631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9632   test $ac_status = 0; }; then
9633     emul=elf
9634     case `/usr/bin/file conftest.$ac_objext` in
9635       *32-bit*)
9636         emul="${emul}32"
9637         ;;
9638       *64-bit*)
9639         emul="${emul}64"
9640         ;;
9641     esac
9642     case `/usr/bin/file conftest.$ac_objext` in
9643       *MSB*)
9644         emul="${emul}btsmip"
9645         ;;
9646       *LSB*)
9647         emul="${emul}ltsmip"
9648         ;;
9649     esac
9650     case `/usr/bin/file conftest.$ac_objext` in
9651       *N32*)
9652         emul="${emul}n32"
9653         ;;
9654     esac
9655     LD="${LD-ld} -m $emul"
9656   fi
9657   rm -rf conftest*
9658   ;;
9659
9660 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9661 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9662   # Find out what ABI is being produced by ac_compile, and set linker
9663   # options accordingly.  Note that the listed cases only cover the
9664   # situations where additional linker options are needed (such as when
9665   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9666   # vice versa); the common cases where no linker options are needed do
9667   # not appear in the list.
9668   echo 'int i;' > conftest.$ac_ext
9669   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9670   (eval $ac_compile) 2>&5
9671   ac_status=$?
9672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9673   test $ac_status = 0; }; then
9674     case `/usr/bin/file conftest.o` in
9675       *32-bit*)
9676         case $host in
9677           x86_64-*kfreebsd*-gnu)
9678             LD="${LD-ld} -m elf_i386_fbsd"
9679             ;;
9680           x86_64-*linux*)
9681             case `/usr/bin/file conftest.o` in
9682               *x86-64*)
9683                 LD="${LD-ld} -m elf32_x86_64"
9684                 ;;
9685               *)
9686                 LD="${LD-ld} -m elf_i386"
9687                 ;;
9688             esac
9689             ;;
9690           powerpc64le-*linux*)
9691             LD="${LD-ld} -m elf32lppclinux"
9692             ;;
9693           powerpc64-*linux*)
9694             LD="${LD-ld} -m elf32ppclinux"
9695             ;;
9696           s390x-*linux*)
9697             LD="${LD-ld} -m elf_s390"
9698             ;;
9699           sparc64-*linux*)
9700             LD="${LD-ld} -m elf32_sparc"
9701             ;;
9702         esac
9703         ;;
9704       *64-bit*)
9705         case $host in
9706           x86_64-*kfreebsd*-gnu)
9707             LD="${LD-ld} -m elf_x86_64_fbsd"
9708             ;;
9709           x86_64-*linux*)
9710             LD="${LD-ld} -m elf_x86_64"
9711             ;;
9712           powerpcle-*linux*)
9713             LD="${LD-ld} -m elf64lppc"
9714             ;;
9715           powerpc-*linux*)
9716             LD="${LD-ld} -m elf64ppc"
9717             ;;
9718           s390*-*linux*|s390*-*tpf*)
9719             LD="${LD-ld} -m elf64_s390"
9720             ;;
9721           sparc*-*linux*)
9722             LD="${LD-ld} -m elf64_sparc"
9723             ;;
9724         esac
9725         ;;
9726     esac
9727   fi
9728   rm -rf conftest*
9729   ;;
9730
9731 *-*-sco3.2v5*)
9732   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9733   SAVE_CFLAGS=$CFLAGS
9734   CFLAGS="$CFLAGS -belf"
9735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9736 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9737 if ${lt_cv_cc_needs_belf+:} false; then :
9738   $as_echo_n "(cached) " >&6
9739 else
9740   ac_ext=c
9741 ac_cpp='$CPP $CPPFLAGS'
9742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9745
9746      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h.  */
9748
9749 int
9750 main ()
9751 {
9752
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 if ac_fn_c_try_link "$LINENO"; then :
9758   lt_cv_cc_needs_belf=yes
9759 else
9760   lt_cv_cc_needs_belf=no
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext \
9763     conftest$ac_exeext conftest.$ac_ext
9764      ac_ext=c
9765 ac_cpp='$CPP $CPPFLAGS'
9766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9769
9770 fi
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9772 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9773   if test yes != "$lt_cv_cc_needs_belf"; then
9774     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9775     CFLAGS=$SAVE_CFLAGS
9776   fi
9777   ;;
9778 *-*solaris*)
9779   # Find out what ABI is being produced by ac_compile, and set linker
9780   # options accordingly.
9781   echo 'int i;' > conftest.$ac_ext
9782   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9783   (eval $ac_compile) 2>&5
9784   ac_status=$?
9785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786   test $ac_status = 0; }; then
9787     case `/usr/bin/file conftest.o` in
9788     *64-bit*)
9789       case $lt_cv_prog_gnu_ld in
9790       yes*)
9791         case $host in
9792         i?86-*-solaris*|x86_64-*-solaris*)
9793           LD="${LD-ld} -m elf_x86_64"
9794           ;;
9795         sparc*-*-solaris*)
9796           LD="${LD-ld} -m elf64_sparc"
9797           ;;
9798         esac
9799         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9800         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9801           LD=${LD-ld}_sol2
9802         fi
9803         ;;
9804       *)
9805         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9806           LD="${LD-ld} -64"
9807         fi
9808         ;;
9809       esac
9810       ;;
9811     esac
9812   fi
9813   rm -rf conftest*
9814   ;;
9815 esac
9816
9817 need_locks=$enable_libtool_lock
9818
9819 if test -n "$ac_tool_prefix"; then
9820   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9821 set dummy ${ac_tool_prefix}mt; ac_word=$2
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9823 $as_echo_n "checking for $ac_word... " >&6; }
9824 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9825   $as_echo_n "(cached) " >&6
9826 else
9827   if test -n "$MANIFEST_TOOL"; then
9828   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9829 else
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH
9832 do
9833   IFS=$as_save_IFS
9834   test -z "$as_dir" && as_dir=.
9835     for ac_exec_ext in '' $ac_executable_extensions; do
9836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9837     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839     break 2
9840   fi
9841 done
9842   done
9843 IFS=$as_save_IFS
9844
9845 fi
9846 fi
9847 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9848 if test -n "$MANIFEST_TOOL"; then
9849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9850 $as_echo "$MANIFEST_TOOL" >&6; }
9851 else
9852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9854 fi
9855
9856
9857 fi
9858 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9859   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9860   # Extract the first word of "mt", so it can be a program name with args.
9861 set dummy mt; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   if test -n "$ac_ct_MANIFEST_TOOL"; then
9868   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9869 else
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875     for ac_exec_ext in '' $ac_executable_extensions; do
9876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882   done
9883 IFS=$as_save_IFS
9884
9885 fi
9886 fi
9887 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9888 if test -n "$ac_ct_MANIFEST_TOOL"; then
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9890 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9891 else
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895
9896   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9897     MANIFEST_TOOL=":"
9898   else
9899     case $cross_compiling:$ac_tool_warned in
9900 yes:)
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9903 ac_tool_warned=yes ;;
9904 esac
9905     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9906   fi
9907 else
9908   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9909 fi
9910
9911 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9913 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9914 if ${lt_cv_path_mainfest_tool+:} false; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   lt_cv_path_mainfest_tool=no
9918   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9919   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9920   cat conftest.err >&5
9921   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9922     lt_cv_path_mainfest_tool=yes
9923   fi
9924   rm -f conftest*
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9927 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9928 if test yes != "$lt_cv_path_mainfest_tool"; then
9929   MANIFEST_TOOL=:
9930 fi
9931
9932
9933
9934
9935
9936
9937   case $host_os in
9938     rhapsody* | darwin*)
9939     if test -n "$ac_tool_prefix"; then
9940   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9941 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9945   $as_echo_n "(cached) " >&6
9946 else
9947   if test -n "$DSYMUTIL"; then
9948   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9952 do
9953   IFS=$as_save_IFS
9954   test -z "$as_dir" && as_dir=.
9955     for ac_exec_ext in '' $ac_executable_extensions; do
9956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9957     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959     break 2
9960   fi
9961 done
9962   done
9963 IFS=$as_save_IFS
9964
9965 fi
9966 fi
9967 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9968 if test -n "$DSYMUTIL"; then
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9970 $as_echo "$DSYMUTIL" >&6; }
9971 else
9972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974 fi
9975
9976
9977 fi
9978 if test -z "$ac_cv_prog_DSYMUTIL"; then
9979   ac_ct_DSYMUTIL=$DSYMUTIL
9980   # Extract the first word of "dsymutil", so it can be a program name with args.
9981 set dummy dsymutil; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9985   $as_echo_n "(cached) " >&6
9986 else
9987   if test -n "$ac_ct_DSYMUTIL"; then
9988   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9989 else
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9992 do
9993   IFS=$as_save_IFS
9994   test -z "$as_dir" && as_dir=.
9995     for ac_exec_ext in '' $ac_executable_extensions; do
9996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9997     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999     break 2
10000   fi
10001 done
10002   done
10003 IFS=$as_save_IFS
10004
10005 fi
10006 fi
10007 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10008 if test -n "$ac_ct_DSYMUTIL"; then
10009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10010 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10011 else
10012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10014 fi
10015
10016   if test "x$ac_ct_DSYMUTIL" = x; then
10017     DSYMUTIL=":"
10018   else
10019     case $cross_compiling:$ac_tool_warned in
10020 yes:)
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10023 ac_tool_warned=yes ;;
10024 esac
10025     DSYMUTIL=$ac_ct_DSYMUTIL
10026   fi
10027 else
10028   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10029 fi
10030
10031     if test -n "$ac_tool_prefix"; then
10032   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10033 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_prog_NMEDIT+:} false; then :
10037   $as_echo_n "(cached) " >&6
10038 else
10039   if test -n "$NMEDIT"; then
10040   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10041 else
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10044 do
10045   IFS=$as_save_IFS
10046   test -z "$as_dir" && as_dir=.
10047     for ac_exec_ext in '' $ac_executable_extensions; do
10048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10049     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051     break 2
10052   fi
10053 done
10054   done
10055 IFS=$as_save_IFS
10056
10057 fi
10058 fi
10059 NMEDIT=$ac_cv_prog_NMEDIT
10060 if test -n "$NMEDIT"; then
10061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10062 $as_echo "$NMEDIT" >&6; }
10063 else
10064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10066 fi
10067
10068
10069 fi
10070 if test -z "$ac_cv_prog_NMEDIT"; then
10071   ac_ct_NMEDIT=$NMEDIT
10072   # Extract the first word of "nmedit", so it can be a program name with args.
10073 set dummy nmedit; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10077   $as_echo_n "(cached) " >&6
10078 else
10079   if test -n "$ac_ct_NMEDIT"; then
10080   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10081 else
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in $PATH
10084 do
10085   IFS=$as_save_IFS
10086   test -z "$as_dir" && as_dir=.
10087     for ac_exec_ext in '' $ac_executable_extensions; do
10088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10089     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091     break 2
10092   fi
10093 done
10094   done
10095 IFS=$as_save_IFS
10096
10097 fi
10098 fi
10099 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10100 if test -n "$ac_ct_NMEDIT"; then
10101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10102 $as_echo "$ac_ct_NMEDIT" >&6; }
10103 else
10104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10106 fi
10107
10108   if test "x$ac_ct_NMEDIT" = x; then
10109     NMEDIT=":"
10110   else
10111     case $cross_compiling:$ac_tool_warned in
10112 yes:)
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10115 ac_tool_warned=yes ;;
10116 esac
10117     NMEDIT=$ac_ct_NMEDIT
10118   fi
10119 else
10120   NMEDIT="$ac_cv_prog_NMEDIT"
10121 fi
10122
10123     if test -n "$ac_tool_prefix"; then
10124   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10125 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127 $as_echo_n "checking for $ac_word... " >&6; }
10128 if ${ac_cv_prog_LIPO+:} false; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   if test -n "$LIPO"; then
10132   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10133 else
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10136 do
10137   IFS=$as_save_IFS
10138   test -z "$as_dir" && as_dir=.
10139     for ac_exec_ext in '' $ac_executable_extensions; do
10140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10141     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143     break 2
10144   fi
10145 done
10146   done
10147 IFS=$as_save_IFS
10148
10149 fi
10150 fi
10151 LIPO=$ac_cv_prog_LIPO
10152 if test -n "$LIPO"; then
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10154 $as_echo "$LIPO" >&6; }
10155 else
10156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10158 fi
10159
10160
10161 fi
10162 if test -z "$ac_cv_prog_LIPO"; then
10163   ac_ct_LIPO=$LIPO
10164   # Extract the first word of "lipo", so it can be a program name with args.
10165 set dummy lipo; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10169   $as_echo_n "(cached) " >&6
10170 else
10171   if test -n "$ac_ct_LIPO"; then
10172   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10173 else
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10176 do
10177   IFS=$as_save_IFS
10178   test -z "$as_dir" && as_dir=.
10179     for ac_exec_ext in '' $ac_executable_extensions; do
10180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181     ac_cv_prog_ac_ct_LIPO="lipo"
10182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183     break 2
10184   fi
10185 done
10186   done
10187 IFS=$as_save_IFS
10188
10189 fi
10190 fi
10191 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10192 if test -n "$ac_ct_LIPO"; then
10193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10194 $as_echo "$ac_ct_LIPO" >&6; }
10195 else
10196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10198 fi
10199
10200   if test "x$ac_ct_LIPO" = x; then
10201     LIPO=":"
10202   else
10203     case $cross_compiling:$ac_tool_warned in
10204 yes:)
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10207 ac_tool_warned=yes ;;
10208 esac
10209     LIPO=$ac_ct_LIPO
10210   fi
10211 else
10212   LIPO="$ac_cv_prog_LIPO"
10213 fi
10214
10215     if test -n "$ac_tool_prefix"; then
10216   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10217 set dummy ${ac_tool_prefix}otool; ac_word=$2
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219 $as_echo_n "checking for $ac_word... " >&6; }
10220 if ${ac_cv_prog_OTOOL+:} false; then :
10221   $as_echo_n "(cached) " >&6
10222 else
10223   if test -n "$OTOOL"; then
10224   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10225 else
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229   IFS=$as_save_IFS
10230   test -z "$as_dir" && as_dir=.
10231     for ac_exec_ext in '' $ac_executable_extensions; do
10232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235     break 2
10236   fi
10237 done
10238   done
10239 IFS=$as_save_IFS
10240
10241 fi
10242 fi
10243 OTOOL=$ac_cv_prog_OTOOL
10244 if test -n "$OTOOL"; then
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10246 $as_echo "$OTOOL" >&6; }
10247 else
10248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10250 fi
10251
10252
10253 fi
10254 if test -z "$ac_cv_prog_OTOOL"; then
10255   ac_ct_OTOOL=$OTOOL
10256   # Extract the first word of "otool", so it can be a program name with args.
10257 set dummy otool; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10261   $as_echo_n "(cached) " >&6
10262 else
10263   if test -n "$ac_ct_OTOOL"; then
10264   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10265 else
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10268 do
10269   IFS=$as_save_IFS
10270   test -z "$as_dir" && as_dir=.
10271     for ac_exec_ext in '' $ac_executable_extensions; do
10272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273     ac_cv_prog_ac_ct_OTOOL="otool"
10274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275     break 2
10276   fi
10277 done
10278   done
10279 IFS=$as_save_IFS
10280
10281 fi
10282 fi
10283 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10284 if test -n "$ac_ct_OTOOL"; then
10285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10286 $as_echo "$ac_ct_OTOOL" >&6; }
10287 else
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10290 fi
10291
10292   if test "x$ac_ct_OTOOL" = x; then
10293     OTOOL=":"
10294   else
10295     case $cross_compiling:$ac_tool_warned in
10296 yes:)
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10299 ac_tool_warned=yes ;;
10300 esac
10301     OTOOL=$ac_ct_OTOOL
10302   fi
10303 else
10304   OTOOL="$ac_cv_prog_OTOOL"
10305 fi
10306
10307     if test -n "$ac_tool_prefix"; then
10308   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10309 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_prog_OTOOL64+:} false; then :
10313   $as_echo_n "(cached) " >&6
10314 else
10315   if test -n "$OTOOL64"; then
10316   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10317 else
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10320 do
10321   IFS=$as_save_IFS
10322   test -z "$as_dir" && as_dir=.
10323     for ac_exec_ext in '' $ac_executable_extensions; do
10324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327     break 2
10328   fi
10329 done
10330   done
10331 IFS=$as_save_IFS
10332
10333 fi
10334 fi
10335 OTOOL64=$ac_cv_prog_OTOOL64
10336 if test -n "$OTOOL64"; then
10337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10338 $as_echo "$OTOOL64" >&6; }
10339 else
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10342 fi
10343
10344
10345 fi
10346 if test -z "$ac_cv_prog_OTOOL64"; then
10347   ac_ct_OTOOL64=$OTOOL64
10348   # Extract the first word of "otool64", so it can be a program name with args.
10349 set dummy otool64; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   if test -n "$ac_ct_OTOOL64"; then
10356   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10357 else
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361   IFS=$as_save_IFS
10362   test -z "$as_dir" && as_dir=.
10363     for ac_exec_ext in '' $ac_executable_extensions; do
10364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365     ac_cv_prog_ac_ct_OTOOL64="otool64"
10366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367     break 2
10368   fi
10369 done
10370   done
10371 IFS=$as_save_IFS
10372
10373 fi
10374 fi
10375 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10376 if test -n "$ac_ct_OTOOL64"; then
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10378 $as_echo "$ac_ct_OTOOL64" >&6; }
10379 else
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 fi
10383
10384   if test "x$ac_ct_OTOOL64" = x; then
10385     OTOOL64=":"
10386   else
10387     case $cross_compiling:$ac_tool_warned in
10388 yes:)
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10391 ac_tool_warned=yes ;;
10392 esac
10393     OTOOL64=$ac_ct_OTOOL64
10394   fi
10395 else
10396   OTOOL64="$ac_cv_prog_OTOOL64"
10397 fi
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10426 $as_echo_n "checking for -single_module linker flag... " >&6; }
10427 if ${lt_cv_apple_cc_single_mod+:} false; then :
10428   $as_echo_n "(cached) " >&6
10429 else
10430   lt_cv_apple_cc_single_mod=no
10431       if test -z "$LT_MULTI_MODULE"; then
10432         # By default we will add the -single_module flag. You can override
10433         # by either setting the environment variable LT_MULTI_MODULE
10434         # non-empty at configure time, or by adding -multi_module to the
10435         # link flags.
10436         rm -rf libconftest.dylib*
10437         echo "int foo(void){return 1;}" > conftest.c
10438         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10439 -dynamiclib -Wl,-single_module conftest.c" >&5
10440         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10441           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10442         _lt_result=$?
10443         # If there is a non-empty error log, and "single_module"
10444         # appears in it, assume the flag caused a linker warning
10445         if test -s conftest.err && $GREP single_module conftest.err; then
10446           cat conftest.err >&5
10447         # Otherwise, if the output was created with a 0 exit code from
10448         # the compiler, it worked.
10449         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10450           lt_cv_apple_cc_single_mod=yes
10451         else
10452           cat conftest.err >&5
10453         fi
10454         rm -rf libconftest.dylib*
10455         rm -f conftest.*
10456       fi
10457 fi
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10459 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10460
10461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10462 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10463 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10464   $as_echo_n "(cached) " >&6
10465 else
10466   lt_cv_ld_exported_symbols_list=no
10467       save_LDFLAGS=$LDFLAGS
10468       echo "_main" > conftest.sym
10469       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10470       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h.  */
10472
10473 int
10474 main ()
10475 {
10476
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482   lt_cv_ld_exported_symbols_list=yes
10483 else
10484   lt_cv_ld_exported_symbols_list=no
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext \
10487     conftest$ac_exeext conftest.$ac_ext
10488         LDFLAGS=$save_LDFLAGS
10489
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10492 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10493
10494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10495 $as_echo_n "checking for -force_load linker flag... " >&6; }
10496 if ${lt_cv_ld_force_load+:} false; then :
10497   $as_echo_n "(cached) " >&6
10498 else
10499   lt_cv_ld_force_load=no
10500       cat > conftest.c << _LT_EOF
10501 int forced_loaded() { return 2;}
10502 _LT_EOF
10503       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10504       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10505       echo "$AR cr libconftest.a conftest.o" >&5
10506       $AR cr libconftest.a conftest.o 2>&5
10507       echo "$RANLIB libconftest.a" >&5
10508       $RANLIB libconftest.a 2>&5
10509       cat > conftest.c << _LT_EOF
10510 int main() { return 0;}
10511 _LT_EOF
10512       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10513       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10514       _lt_result=$?
10515       if test -s conftest.err && $GREP force_load conftest.err; then
10516         cat conftest.err >&5
10517       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10518         lt_cv_ld_force_load=yes
10519       else
10520         cat conftest.err >&5
10521       fi
10522         rm -f conftest.err libconftest.a conftest conftest.c
10523         rm -rf conftest.dSYM
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10527 $as_echo "$lt_cv_ld_force_load" >&6; }
10528     case $host_os in
10529     rhapsody* | darwin1.[012])
10530       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10531     darwin1.*)
10532       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10533     darwin*) # darwin 5.x on
10534       # if running on 10.5 or later, the deployment target defaults
10535       # to the OS version, if on x86, and 10.4, the deployment
10536       # target defaults to 10.4. Don't you love it?
10537       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10538         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10539           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10540         10.[012][,.]*)
10541           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10542         10.*)
10543           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10544       esac
10545     ;;
10546   esac
10547     if test yes = "$lt_cv_apple_cc_single_mod"; then
10548       _lt_dar_single_mod='$single_module'
10549     fi
10550     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10551       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10552     else
10553       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10554     fi
10555     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10556       _lt_dsymutil='~$DSYMUTIL $lib || :'
10557     else
10558       _lt_dsymutil=
10559     fi
10560     ;;
10561   esac
10562
10563 # func_munge_path_list VARIABLE PATH
10564 # -----------------------------------
10565 # VARIABLE is name of variable containing _space_ separated list of
10566 # directories to be munged by the contents of PATH, which is string
10567 # having a format:
10568 # "DIR[:DIR]:"
10569 #       string "DIR[ DIR]" will be prepended to VARIABLE
10570 # ":DIR[:DIR]"
10571 #       string "DIR[ DIR]" will be appended to VARIABLE
10572 # "DIRP[:DIRP]::[DIRA:]DIRA"
10573 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10574 #       "DIRA[ DIRA]" will be appended to VARIABLE
10575 # "DIR[:DIR]"
10576 #       VARIABLE will be replaced by "DIR[ DIR]"
10577 func_munge_path_list ()
10578 {
10579     case x$2 in
10580     x)
10581         ;;
10582     *:)
10583         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10584         ;;
10585     x:*)
10586         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10587         ;;
10588     *::*)
10589         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10590         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10591         ;;
10592     *)
10593         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10594         ;;
10595     esac
10596 }
10597
10598 for ac_header in dlfcn.h
10599 do :
10600   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10601 "
10602 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10603   cat >>confdefs.h <<_ACEOF
10604 #define HAVE_DLFCN_H 1
10605 _ACEOF
10606
10607 fi
10608
10609 done
10610
10611
10612
10613
10614
10615 # Set options
10616
10617
10618
10619         enable_dlopen=no
10620
10621
10622   enable_win32_dll=no
10623
10624
10625             # Check whether --enable-shared was given.
10626 if test "${enable_shared+set}" = set; then :
10627   enableval=$enable_shared; p=${PACKAGE-default}
10628     case $enableval in
10629     yes) enable_shared=yes ;;
10630     no) enable_shared=no ;;
10631     *)
10632       enable_shared=no
10633       # Look at the argument we got.  We use all the common list separators.
10634       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10635       for pkg in $enableval; do
10636         IFS=$lt_save_ifs
10637         if test "X$pkg" = "X$p"; then
10638           enable_shared=yes
10639         fi
10640       done
10641       IFS=$lt_save_ifs
10642       ;;
10643     esac
10644 else
10645   enable_shared=yes
10646 fi
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658 # Check whether --with-pic was given.
10659 if test "${with_pic+set}" = set; then :
10660   withval=$with_pic; lt_p=${PACKAGE-default}
10661     case $withval in
10662     yes|no) pic_mode=$withval ;;
10663     *)
10664       pic_mode=default
10665       # Look at the argument we got.  We use all the common list separators.
10666       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10667       for lt_pkg in $withval; do
10668         IFS=$lt_save_ifs
10669         if test "X$lt_pkg" = "X$lt_p"; then
10670           pic_mode=yes
10671         fi
10672       done
10673       IFS=$lt_save_ifs
10674       ;;
10675     esac
10676 else
10677   pic_mode=default
10678 fi
10679
10680
10681
10682
10683
10684
10685
10686
10687   # Check whether --enable-fast-install was given.
10688 if test "${enable_fast_install+set}" = set; then :
10689   enableval=$enable_fast_install; p=${PACKAGE-default}
10690     case $enableval in
10691     yes) enable_fast_install=yes ;;
10692     no) enable_fast_install=no ;;
10693     *)
10694       enable_fast_install=no
10695       # Look at the argument we got.  We use all the common list separators.
10696       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10697       for pkg in $enableval; do
10698         IFS=$lt_save_ifs
10699         if test "X$pkg" = "X$p"; then
10700           enable_fast_install=yes
10701         fi
10702       done
10703       IFS=$lt_save_ifs
10704       ;;
10705     esac
10706 else
10707   enable_fast_install=yes
10708 fi
10709
10710
10711
10712
10713
10714
10715
10716
10717   shared_archive_member_spec=
10718 case $host,$enable_shared in
10719 power*-*-aix[5-9]*,yes)
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10721 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10722
10723 # Check whether --with-aix-soname was given.
10724 if test "${with_aix_soname+set}" = set; then :
10725   withval=$with_aix_soname; case $withval in
10726     aix|svr4|both)
10727       ;;
10728     *)
10729       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10730       ;;
10731     esac
10732     lt_cv_with_aix_soname=$with_aix_soname
10733 else
10734   if ${lt_cv_with_aix_soname+:} false; then :
10735   $as_echo_n "(cached) " >&6
10736 else
10737   lt_cv_with_aix_soname=aix
10738 fi
10739
10740     with_aix_soname=$lt_cv_with_aix_soname
10741 fi
10742
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10744 $as_echo "$with_aix_soname" >&6; }
10745   if test aix != "$with_aix_soname"; then
10746     # For the AIX way of multilib, we name the shared archive member
10747     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10748     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10749     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10750     # the AIX toolchain works better with OBJECT_MODE set (default 32).
10751     if test 64 = "${OBJECT_MODE-32}"; then
10752       shared_archive_member_spec=shr_64
10753     else
10754       shared_archive_member_spec=shr
10755     fi
10756   fi
10757   ;;
10758 *)
10759   with_aix_soname=aix
10760   ;;
10761 esac
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772 # This can be used to rebuild libtool when needed
10773 LIBTOOL_DEPS=$ltmain
10774
10775 # Always use our own libtool.
10776 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807 test -z "$LN_S" && LN_S="ln -s"
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 if test -n "${ZSH_VERSION+set}"; then
10823    setopt NO_GLOB_SUBST
10824 fi
10825
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10827 $as_echo_n "checking for objdir... " >&6; }
10828 if ${lt_cv_objdir+:} false; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   rm -f .libs 2>/dev/null
10832 mkdir .libs 2>/dev/null
10833 if test -d .libs; then
10834   lt_cv_objdir=.libs
10835 else
10836   # MS-DOS does not allow filenames that begin with a dot.
10837   lt_cv_objdir=_libs
10838 fi
10839 rmdir .libs 2>/dev/null
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10842 $as_echo "$lt_cv_objdir" >&6; }
10843 objdir=$lt_cv_objdir
10844
10845
10846
10847
10848
10849 cat >>confdefs.h <<_ACEOF
10850 #define LT_OBJDIR "$lt_cv_objdir/"
10851 _ACEOF
10852
10853
10854
10855
10856 case $host_os in
10857 aix3*)
10858   # AIX sometimes has problems with the GCC collect2 program.  For some
10859   # reason, if we set the COLLECT_NAMES environment variable, the problems
10860   # vanish in a puff of smoke.
10861   if test set != "${COLLECT_NAMES+set}"; then
10862     COLLECT_NAMES=
10863     export COLLECT_NAMES
10864   fi
10865   ;;
10866 esac
10867
10868 # Global variables:
10869 ofile=libtool
10870 can_build_shared=yes
10871
10872 # All known linkers require a '.a' archive for static linking (except MSVC,
10873 # which needs '.lib').
10874 libext=a
10875
10876 with_gnu_ld=$lt_cv_prog_gnu_ld
10877
10878 old_CC=$CC
10879 old_CFLAGS=$CFLAGS
10880
10881 # Set sane defaults for various variables
10882 test -z "$CC" && CC=cc
10883 test -z "$LTCC" && LTCC=$CC
10884 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10885 test -z "$LD" && LD=ld
10886 test -z "$ac_objext" && ac_objext=o
10887
10888 func_cc_basename $compiler
10889 cc_basename=$func_cc_basename_result
10890
10891
10892 # Only perform the check for file, if the check method requires it
10893 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10894 case $deplibs_check_method in
10895 file_magic*)
10896   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10898 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10899 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10900   $as_echo_n "(cached) " >&6
10901 else
10902   case $MAGIC_CMD in
10903 [\\/*] |  ?:[\\/]*)
10904   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10905   ;;
10906 *)
10907   lt_save_MAGIC_CMD=$MAGIC_CMD
10908   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10909   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10910   for ac_dir in $ac_dummy; do
10911     IFS=$lt_save_ifs
10912     test -z "$ac_dir" && ac_dir=.
10913     if test -f "$ac_dir/${ac_tool_prefix}file"; then
10914       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10915       if test -n "$file_magic_test_file"; then
10916         case $deplibs_check_method in
10917         "file_magic "*)
10918           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10919           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10920           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10921             $EGREP "$file_magic_regex" > /dev/null; then
10922             :
10923           else
10924             cat <<_LT_EOF 1>&2
10925
10926 *** Warning: the command libtool uses to detect shared libraries,
10927 *** $file_magic_cmd, produces output that libtool cannot recognize.
10928 *** The result is that libtool may fail to recognize shared libraries
10929 *** as such.  This will affect the creation of libtool libraries that
10930 *** depend on shared libraries, but programs linked with such libtool
10931 *** libraries will work regardless of this problem.  Nevertheless, you
10932 *** may want to report the problem to your system manager and/or to
10933 *** bug-libtool@gnu.org
10934
10935 _LT_EOF
10936           fi ;;
10937         esac
10938       fi
10939       break
10940     fi
10941   done
10942   IFS=$lt_save_ifs
10943   MAGIC_CMD=$lt_save_MAGIC_CMD
10944   ;;
10945 esac
10946 fi
10947
10948 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10949 if test -n "$MAGIC_CMD"; then
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10951 $as_echo "$MAGIC_CMD" >&6; }
10952 else
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10955 fi
10956
10957
10958
10959
10960
10961 if test -z "$lt_cv_path_MAGIC_CMD"; then
10962   if test -n "$ac_tool_prefix"; then
10963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10964 $as_echo_n "checking for file... " >&6; }
10965 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10966   $as_echo_n "(cached) " >&6
10967 else
10968   case $MAGIC_CMD in
10969 [\\/*] |  ?:[\\/]*)
10970   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10971   ;;
10972 *)
10973   lt_save_MAGIC_CMD=$MAGIC_CMD
10974   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10975   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10976   for ac_dir in $ac_dummy; do
10977     IFS=$lt_save_ifs
10978     test -z "$ac_dir" && ac_dir=.
10979     if test -f "$ac_dir/file"; then
10980       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10981       if test -n "$file_magic_test_file"; then
10982         case $deplibs_check_method in
10983         "file_magic "*)
10984           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10985           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10986           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10987             $EGREP "$file_magic_regex" > /dev/null; then
10988             :
10989           else
10990             cat <<_LT_EOF 1>&2
10991
10992 *** Warning: the command libtool uses to detect shared libraries,
10993 *** $file_magic_cmd, produces output that libtool cannot recognize.
10994 *** The result is that libtool may fail to recognize shared libraries
10995 *** as such.  This will affect the creation of libtool libraries that
10996 *** depend on shared libraries, but programs linked with such libtool
10997 *** libraries will work regardless of this problem.  Nevertheless, you
10998 *** may want to report the problem to your system manager and/or to
10999 *** bug-libtool@gnu.org
11000
11001 _LT_EOF
11002           fi ;;
11003         esac
11004       fi
11005       break
11006     fi
11007   done
11008   IFS=$lt_save_ifs
11009   MAGIC_CMD=$lt_save_MAGIC_CMD
11010   ;;
11011 esac
11012 fi
11013
11014 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11015 if test -n "$MAGIC_CMD"; then
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11017 $as_echo "$MAGIC_CMD" >&6; }
11018 else
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11021 fi
11022
11023
11024   else
11025     MAGIC_CMD=:
11026   fi
11027 fi
11028
11029   fi
11030   ;;
11031 esac
11032
11033 # Use C for the default configuration in the libtool script
11034
11035 lt_save_CC=$CC
11036 ac_ext=c
11037 ac_cpp='$CPP $CPPFLAGS'
11038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11041
11042
11043 # Source file extension for C test sources.
11044 ac_ext=c
11045
11046 # Object file extension for compiled C test sources.
11047 objext=o
11048 objext=$objext
11049
11050 # Code to be used in simple compile tests
11051 lt_simple_compile_test_code="int some_variable = 0;"
11052
11053 # Code to be used in simple link tests
11054 lt_simple_link_test_code='int main(){return(0);}'
11055
11056
11057
11058
11059
11060
11061
11062 # If no C compiler was specified, use CC.
11063 LTCC=${LTCC-"$CC"}
11064
11065 # If no C compiler flags were specified, use CFLAGS.
11066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11067
11068 # Allow CC to be a program name with arguments.
11069 compiler=$CC
11070
11071 # Save the default compiler, since it gets overwritten when the other
11072 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11073 compiler_DEFAULT=$CC
11074
11075 # save warnings/boilerplate of simple test code
11076 ac_outfile=conftest.$ac_objext
11077 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11079 _lt_compiler_boilerplate=`cat conftest.err`
11080 $RM conftest*
11081
11082 ac_outfile=conftest.$ac_objext
11083 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11085 _lt_linker_boilerplate=`cat conftest.err`
11086 $RM -r conftest*
11087
11088
11089 ## CAVEAT EMPTOR:
11090 ## There is no encapsulation within the following macros, do not change
11091 ## the running order or otherwise move them around unless you know exactly
11092 ## what you are doing...
11093 if test -n "$compiler"; then
11094
11095 lt_prog_compiler_no_builtin_flag=
11096
11097 if test yes = "$GCC"; then
11098   case $cc_basename in
11099   nvcc*)
11100     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11101   *)
11102     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11103   esac
11104
11105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11106 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11107 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11108   $as_echo_n "(cached) " >&6
11109 else
11110   lt_cv_prog_compiler_rtti_exceptions=no
11111    ac_outfile=conftest.$ac_objext
11112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11113    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11114    # Insert the option either (1) after the last *FLAGS variable, or
11115    # (2) before a word containing "conftest.", or (3) at the end.
11116    # Note that $ac_compile itself does not contain backslashes and begins
11117    # with a dollar sign (not a hyphen), so the echo should work correctly.
11118    # The option is referenced via a variable to avoid confusing sed.
11119    lt_compile=`echo "$ac_compile" | $SED \
11120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11122    -e 's:$: $lt_compiler_flag:'`
11123    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11124    (eval "$lt_compile" 2>conftest.err)
11125    ac_status=$?
11126    cat conftest.err >&5
11127    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128    if (exit $ac_status) && test -s "$ac_outfile"; then
11129      # The compiler can only warn and ignore the option if not recognized
11130      # So say no if there are warnings other than the usual output.
11131      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11132      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11133      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11134        lt_cv_prog_compiler_rtti_exceptions=yes
11135      fi
11136    fi
11137    $RM conftest*
11138
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11141 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11142
11143 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11144     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11145 else
11146     :
11147 fi
11148
11149 fi
11150
11151
11152
11153
11154
11155
11156   lt_prog_compiler_wl=
11157 lt_prog_compiler_pic=
11158 lt_prog_compiler_static=
11159
11160
11161   if test yes = "$GCC"; then
11162     lt_prog_compiler_wl='-Wl,'
11163     lt_prog_compiler_static='-static'
11164
11165     case $host_os in
11166       aix*)
11167       # All AIX code is PIC.
11168       if test ia64 = "$host_cpu"; then
11169         # AIX 5 now supports IA64 processor
11170         lt_prog_compiler_static='-Bstatic'
11171       fi
11172       lt_prog_compiler_pic='-fPIC'
11173       ;;
11174
11175     amigaos*)
11176       case $host_cpu in
11177       powerpc)
11178             # see comment about AmigaOS4 .so support
11179             lt_prog_compiler_pic='-fPIC'
11180         ;;
11181       m68k)
11182             # FIXME: we need at least 68020 code to build shared libraries, but
11183             # adding the '-m68020' flag to GCC prevents building anything better,
11184             # like '-m68040'.
11185             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11186         ;;
11187       esac
11188       ;;
11189
11190     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11191       # PIC is the default for these OSes.
11192       ;;
11193
11194     mingw* | cygwin* | pw32* | os2* | cegcc*)
11195       # This hack is so that the source file can tell whether it is being
11196       # built for inclusion in a dll (and should export symbols for example).
11197       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11198       # (--disable-auto-import) libraries
11199       lt_prog_compiler_pic='-DDLL_EXPORT'
11200       case $host_os in
11201       os2*)
11202         lt_prog_compiler_static='$wl-static'
11203         ;;
11204       esac
11205       ;;
11206
11207     darwin* | rhapsody*)
11208       # PIC is the default on this platform
11209       # Common symbols not allowed in MH_DYLIB files
11210       lt_prog_compiler_pic='-fno-common'
11211       ;;
11212
11213     haiku*)
11214       # PIC is the default for Haiku.
11215       # The "-static" flag exists, but is broken.
11216       lt_prog_compiler_static=
11217       ;;
11218
11219     hpux*)
11220       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11221       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11222       # sets the default TLS model and affects inlining.
11223       case $host_cpu in
11224       hppa*64*)
11225         # +Z the default
11226         ;;
11227       *)
11228         lt_prog_compiler_pic='-fPIC'
11229         ;;
11230       esac
11231       ;;
11232
11233     interix[3-9]*)
11234       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11235       # Instead, we relocate shared libraries at runtime.
11236       ;;
11237
11238     msdosdjgpp*)
11239       # Just because we use GCC doesn't mean we suddenly get shared libraries
11240       # on systems that don't support them.
11241       lt_prog_compiler_can_build_shared=no
11242       enable_shared=no
11243       ;;
11244
11245     *nto* | *qnx*)
11246       # QNX uses GNU C++, but need to define -shared option too, otherwise
11247       # it will coredump.
11248       lt_prog_compiler_pic='-fPIC -shared'
11249       ;;
11250
11251     sysv4*MP*)
11252       if test -d /usr/nec; then
11253         lt_prog_compiler_pic=-Kconform_pic
11254       fi
11255       ;;
11256
11257     *)
11258       lt_prog_compiler_pic='-fPIC'
11259       ;;
11260     esac
11261
11262     case $cc_basename in
11263     nvcc*) # Cuda Compiler Driver 2.2
11264       lt_prog_compiler_wl='-Xlinker '
11265       if test -n "$lt_prog_compiler_pic"; then
11266         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11267       fi
11268       ;;
11269     esac
11270   else
11271     # PORTME Check for flag to pass linker flags through the system compiler.
11272     case $host_os in
11273     aix*)
11274       lt_prog_compiler_wl='-Wl,'
11275       if test ia64 = "$host_cpu"; then
11276         # AIX 5 now supports IA64 processor
11277         lt_prog_compiler_static='-Bstatic'
11278       else
11279         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11280       fi
11281       ;;
11282
11283     darwin* | rhapsody*)
11284       # PIC is the default on this platform
11285       # Common symbols not allowed in MH_DYLIB files
11286       lt_prog_compiler_pic='-fno-common'
11287       case $cc_basename in
11288       nagfor*)
11289         # NAG Fortran compiler
11290         lt_prog_compiler_wl='-Wl,-Wl,,'
11291         lt_prog_compiler_pic='-PIC'
11292         lt_prog_compiler_static='-Bstatic'
11293         ;;
11294       esac
11295       ;;
11296
11297     mingw* | cygwin* | pw32* | os2* | cegcc*)
11298       # This hack is so that the source file can tell whether it is being
11299       # built for inclusion in a dll (and should export symbols for example).
11300       lt_prog_compiler_pic='-DDLL_EXPORT'
11301       case $host_os in
11302       os2*)
11303         lt_prog_compiler_static='$wl-static'
11304         ;;
11305       esac
11306       ;;
11307
11308     hpux9* | hpux10* | hpux11*)
11309       lt_prog_compiler_wl='-Wl,'
11310       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11311       # not for PA HP-UX.
11312       case $host_cpu in
11313       hppa*64*|ia64*)
11314         # +Z the default
11315         ;;
11316       *)
11317         lt_prog_compiler_pic='+Z'
11318         ;;
11319       esac
11320       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11321       lt_prog_compiler_static='$wl-a ${wl}archive'
11322       ;;
11323
11324     irix5* | irix6* | nonstopux*)
11325       lt_prog_compiler_wl='-Wl,'
11326       # PIC (with -KPIC) is the default.
11327       lt_prog_compiler_static='-non_shared'
11328       ;;
11329
11330     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11331       case $cc_basename in
11332       # old Intel for x86_64, which still supported -KPIC.
11333       ecc*)
11334         lt_prog_compiler_wl='-Wl,'
11335         lt_prog_compiler_pic='-KPIC'
11336         lt_prog_compiler_static='-static'
11337         ;;
11338       # flang / f18. f95 an alias for gfortran or flang on Debian
11339       flang* | f18* | f95*)
11340         lt_prog_compiler_wl='-Wl,'
11341         lt_prog_compiler_pic='-fPIC'
11342         lt_prog_compiler_static='-static'
11343         ;;
11344       # icc used to be incompatible with GCC.
11345       # ICC 10 doesn't accept -KPIC any more.
11346       icc* | ifort*)
11347         lt_prog_compiler_wl='-Wl,'
11348         lt_prog_compiler_pic='-fPIC'
11349         lt_prog_compiler_static='-static'
11350         ;;
11351       # Lahey Fortran 8.1.
11352       lf95*)
11353         lt_prog_compiler_wl='-Wl,'
11354         lt_prog_compiler_pic='--shared'
11355         lt_prog_compiler_static='--static'
11356         ;;
11357       nagfor*)
11358         # NAG Fortran compiler
11359         lt_prog_compiler_wl='-Wl,-Wl,,'
11360         lt_prog_compiler_pic='-PIC'
11361         lt_prog_compiler_static='-Bstatic'
11362         ;;
11363       tcc*)
11364         # Fabrice Bellard et al's Tiny C Compiler
11365         lt_prog_compiler_wl='-Wl,'
11366         lt_prog_compiler_pic='-fPIC'
11367         lt_prog_compiler_static='-static'
11368         ;;
11369       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11370         # Portland Group compilers (*not* the Pentium gcc compiler,
11371         # which looks to be a dead project)
11372         lt_prog_compiler_wl='-Wl,'
11373         lt_prog_compiler_pic='-fpic'
11374         lt_prog_compiler_static='-Bstatic'
11375         ;;
11376       ccc*)
11377         lt_prog_compiler_wl='-Wl,'
11378         # All Alpha code is PIC.
11379         lt_prog_compiler_static='-non_shared'
11380         ;;
11381       xl* | bgxl* | bgf* | mpixl*)
11382         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11383         lt_prog_compiler_wl='-Wl,'
11384         lt_prog_compiler_pic='-qpic'
11385         lt_prog_compiler_static='-qstaticlink'
11386         ;;
11387       *)
11388         case `$CC -V 2>&1 | sed 5q` in
11389         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11390           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11391           lt_prog_compiler_pic='-KPIC'
11392           lt_prog_compiler_static='-Bstatic'
11393           lt_prog_compiler_wl=''
11394           ;;
11395         *Sun\ F* | *Sun*Fortran*)
11396           lt_prog_compiler_pic='-KPIC'
11397           lt_prog_compiler_static='-Bstatic'
11398           lt_prog_compiler_wl='-Qoption ld '
11399           ;;
11400         *Sun\ C*)
11401           # Sun C 5.9
11402           lt_prog_compiler_pic='-KPIC'
11403           lt_prog_compiler_static='-Bstatic'
11404           lt_prog_compiler_wl='-Wl,'
11405           ;;
11406         *Intel*\ [CF]*Compiler*)
11407           lt_prog_compiler_wl='-Wl,'
11408           lt_prog_compiler_pic='-fPIC'
11409           lt_prog_compiler_static='-static'
11410           ;;
11411         *Portland\ Group*)
11412           lt_prog_compiler_wl='-Wl,'
11413           lt_prog_compiler_pic='-fpic'
11414           lt_prog_compiler_static='-Bstatic'
11415           ;;
11416         esac
11417         ;;
11418       esac
11419       ;;
11420
11421     newsos6)
11422       lt_prog_compiler_pic='-KPIC'
11423       lt_prog_compiler_static='-Bstatic'
11424       ;;
11425
11426     *nto* | *qnx*)
11427       # QNX uses GNU C++, but need to define -shared option too, otherwise
11428       # it will coredump.
11429       lt_prog_compiler_pic='-fPIC -shared'
11430       ;;
11431
11432     osf3* | osf4* | osf5*)
11433       lt_prog_compiler_wl='-Wl,'
11434       # All OSF/1 code is PIC.
11435       lt_prog_compiler_static='-non_shared'
11436       ;;
11437
11438     rdos*)
11439       lt_prog_compiler_static='-non_shared'
11440       ;;
11441
11442     solaris*)
11443       lt_prog_compiler_pic='-KPIC'
11444       lt_prog_compiler_static='-Bstatic'
11445       case $cc_basename in
11446       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11447         lt_prog_compiler_wl='-Qoption ld ';;
11448       *)
11449         lt_prog_compiler_wl='-Wl,';;
11450       esac
11451       ;;
11452
11453     sunos4*)
11454       lt_prog_compiler_wl='-Qoption ld '
11455       lt_prog_compiler_pic='-PIC'
11456       lt_prog_compiler_static='-Bstatic'
11457       ;;
11458
11459     sysv4 | sysv4.2uw2* | sysv4.3*)
11460       lt_prog_compiler_wl='-Wl,'
11461       lt_prog_compiler_pic='-KPIC'
11462       lt_prog_compiler_static='-Bstatic'
11463       ;;
11464
11465     sysv4*MP*)
11466       if test -d /usr/nec; then
11467         lt_prog_compiler_pic='-Kconform_pic'
11468         lt_prog_compiler_static='-Bstatic'
11469       fi
11470       ;;
11471
11472     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11473       lt_prog_compiler_wl='-Wl,'
11474       lt_prog_compiler_pic='-KPIC'
11475       lt_prog_compiler_static='-Bstatic'
11476       ;;
11477
11478     unicos*)
11479       lt_prog_compiler_wl='-Wl,'
11480       lt_prog_compiler_can_build_shared=no
11481       ;;
11482
11483     uts4*)
11484       lt_prog_compiler_pic='-pic'
11485       lt_prog_compiler_static='-Bstatic'
11486       ;;
11487
11488     *)
11489       lt_prog_compiler_can_build_shared=no
11490       ;;
11491     esac
11492   fi
11493
11494 case $host_os in
11495   # For platforms that do not support PIC, -DPIC is meaningless:
11496   *djgpp*)
11497     lt_prog_compiler_pic=
11498     ;;
11499   *)
11500     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11501     ;;
11502 esac
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11505 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11506 if ${lt_cv_prog_compiler_pic+:} false; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11512 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11513 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11514
11515 #
11516 # Check to make sure the PIC flag actually works.
11517 #
11518 if test -n "$lt_prog_compiler_pic"; then
11519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11520 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11521 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11522   $as_echo_n "(cached) " >&6
11523 else
11524   lt_cv_prog_compiler_pic_works=no
11525    ac_outfile=conftest.$ac_objext
11526    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11527    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11528    # Insert the option either (1) after the last *FLAGS variable, or
11529    # (2) before a word containing "conftest.", or (3) at the end.
11530    # Note that $ac_compile itself does not contain backslashes and begins
11531    # with a dollar sign (not a hyphen), so the echo should work correctly.
11532    # The option is referenced via a variable to avoid confusing sed.
11533    lt_compile=`echo "$ac_compile" | $SED \
11534    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11535    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11536    -e 's:$: $lt_compiler_flag:'`
11537    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11538    (eval "$lt_compile" 2>conftest.err)
11539    ac_status=$?
11540    cat conftest.err >&5
11541    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542    if (exit $ac_status) && test -s "$ac_outfile"; then
11543      # The compiler can only warn and ignore the option if not recognized
11544      # So say no if there are warnings other than the usual output.
11545      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11546      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11547      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11548        lt_cv_prog_compiler_pic_works=yes
11549      fi
11550    fi
11551    $RM conftest*
11552
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11555 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11556
11557 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11558     case $lt_prog_compiler_pic in
11559      "" | " "*) ;;
11560      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11561      esac
11562 else
11563     lt_prog_compiler_pic=
11564      lt_prog_compiler_can_build_shared=no
11565 fi
11566
11567 fi
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579 #
11580 # Check to make sure the static flag actually works.
11581 #
11582 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11584 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11585 if ${lt_cv_prog_compiler_static_works+:} false; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588   lt_cv_prog_compiler_static_works=no
11589    save_LDFLAGS=$LDFLAGS
11590    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11591    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11592    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11593      # The linker can only warn and ignore the option if not recognized
11594      # So say no if there are warnings
11595      if test -s conftest.err; then
11596        # Append any errors to the config.log.
11597        cat conftest.err 1>&5
11598        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11599        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11600        if diff conftest.exp conftest.er2 >/dev/null; then
11601          lt_cv_prog_compiler_static_works=yes
11602        fi
11603      else
11604        lt_cv_prog_compiler_static_works=yes
11605      fi
11606    fi
11607    $RM -r conftest*
11608    LDFLAGS=$save_LDFLAGS
11609
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11612 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11613
11614 if test yes = "$lt_cv_prog_compiler_static_works"; then
11615     :
11616 else
11617     lt_prog_compiler_static=
11618 fi
11619
11620
11621
11622
11623
11624
11625
11626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11627 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11628 if ${lt_cv_prog_compiler_c_o+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   lt_cv_prog_compiler_c_o=no
11632    $RM -r conftest 2>/dev/null
11633    mkdir conftest
11634    cd conftest
11635    mkdir out
11636    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11637
11638    lt_compiler_flag="-o out/conftest2.$ac_objext"
11639    # Insert the option either (1) after the last *FLAGS variable, or
11640    # (2) before a word containing "conftest.", or (3) at the end.
11641    # Note that $ac_compile itself does not contain backslashes and begins
11642    # with a dollar sign (not a hyphen), so the echo should work correctly.
11643    lt_compile=`echo "$ac_compile" | $SED \
11644    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11645    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11646    -e 's:$: $lt_compiler_flag:'`
11647    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11648    (eval "$lt_compile" 2>out/conftest.err)
11649    ac_status=$?
11650    cat out/conftest.err >&5
11651    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11653    then
11654      # The compiler can only warn and ignore the option if not recognized
11655      # So say no if there are warnings
11656      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11657      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11658      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11659        lt_cv_prog_compiler_c_o=yes
11660      fi
11661    fi
11662    chmod u+w . 2>&5
11663    $RM conftest*
11664    # SGI C++ compiler will create directory out/ii_files/ for
11665    # template instantiation
11666    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11667    $RM out/* && rmdir out
11668    cd ..
11669    $RM -r conftest
11670    $RM conftest*
11671
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11674 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11675
11676
11677
11678
11679
11680
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11683 if ${lt_cv_prog_compiler_c_o+:} false; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   lt_cv_prog_compiler_c_o=no
11687    $RM -r conftest 2>/dev/null
11688    mkdir conftest
11689    cd conftest
11690    mkdir out
11691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11692
11693    lt_compiler_flag="-o out/conftest2.$ac_objext"
11694    # Insert the option either (1) after the last *FLAGS variable, or
11695    # (2) before a word containing "conftest.", or (3) at the end.
11696    # Note that $ac_compile itself does not contain backslashes and begins
11697    # with a dollar sign (not a hyphen), so the echo should work correctly.
11698    lt_compile=`echo "$ac_compile" | $SED \
11699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11701    -e 's:$: $lt_compiler_flag:'`
11702    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11703    (eval "$lt_compile" 2>out/conftest.err)
11704    ac_status=$?
11705    cat out/conftest.err >&5
11706    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11708    then
11709      # The compiler can only warn and ignore the option if not recognized
11710      # So say no if there are warnings
11711      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11712      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11713      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11714        lt_cv_prog_compiler_c_o=yes
11715      fi
11716    fi
11717    chmod u+w . 2>&5
11718    $RM conftest*
11719    # SGI C++ compiler will create directory out/ii_files/ for
11720    # template instantiation
11721    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11722    $RM out/* && rmdir out
11723    cd ..
11724    $RM -r conftest
11725    $RM conftest*
11726
11727 fi
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11730
11731
11732
11733
11734 hard_links=nottested
11735 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11736   # do not overwrite the value of need_locks provided by the user
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11738 $as_echo_n "checking if we can lock with hard links... " >&6; }
11739   hard_links=yes
11740   $RM conftest*
11741   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11742   touch conftest.a
11743   ln conftest.a conftest.b 2>&5 || hard_links=no
11744   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11746 $as_echo "$hard_links" >&6; }
11747   if test no = "$hard_links"; then
11748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11749 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11750     need_locks=warn
11751   fi
11752 else
11753   need_locks=no
11754 fi
11755
11756
11757
11758
11759
11760
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11762 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11763
11764   runpath_var=
11765   allow_undefined_flag=
11766   always_export_symbols=no
11767   archive_cmds=
11768   archive_expsym_cmds=
11769   compiler_needs_object=no
11770   enable_shared_with_static_runtimes=no
11771   export_dynamic_flag_spec=
11772   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11773   hardcode_automatic=no
11774   hardcode_direct=no
11775   hardcode_direct_absolute=no
11776   hardcode_libdir_flag_spec=
11777   hardcode_libdir_separator=
11778   hardcode_minus_L=no
11779   hardcode_shlibpath_var=unsupported
11780   inherit_rpath=no
11781   link_all_deplibs=unknown
11782   module_cmds=
11783   module_expsym_cmds=
11784   old_archive_from_new_cmds=
11785   old_archive_from_expsyms_cmds=
11786   thread_safe_flag_spec=
11787   whole_archive_flag_spec=
11788   # include_expsyms should be a list of space-separated symbols to be *always*
11789   # included in the symbol list
11790   include_expsyms=
11791   # exclude_expsyms can be an extended regexp of symbols to exclude
11792   # it will be wrapped by ' (' and ')$', so one must not match beginning or
11793   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11794   # as well as any symbol that contains 'd'.
11795   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11796   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11797   # platforms (ab)use it in PIC code, but their linkers get confused if
11798   # the symbol is explicitly referenced.  Since portable code cannot
11799   # rely on this symbol name, it's probably fine to never include it in
11800   # preloaded symbol tables.
11801   # Exclude shared library initialization/finalization symbols.
11802   extract_expsyms_cmds=
11803
11804   case $host_os in
11805   cygwin* | mingw* | pw32* | cegcc*)
11806     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11807     # When not using gcc, we currently assume that we are using
11808     # Microsoft Visual C++.
11809     if test yes != "$GCC"; then
11810       with_gnu_ld=no
11811     fi
11812     ;;
11813   interix*)
11814     # we just hope/assume this is gcc and not c89 (= MSVC++)
11815     with_gnu_ld=yes
11816     ;;
11817   openbsd* | bitrig*)
11818     with_gnu_ld=no
11819     ;;
11820   linux* | k*bsd*-gnu | gnu*)
11821     link_all_deplibs=no
11822     ;;
11823   esac
11824
11825   ld_shlibs=yes
11826
11827   # On some targets, GNU ld is compatible enough with the native linker
11828   # that we're better off using the native interface for both.
11829   lt_use_gnu_ld_interface=no
11830   if test yes = "$with_gnu_ld"; then
11831     case $host_os in
11832       aix*)
11833         # The AIX port of GNU ld has always aspired to compatibility
11834         # with the native linker.  However, as the warning in the GNU ld
11835         # block says, versions before 2.19.5* couldn't really create working
11836         # shared libraries, regardless of the interface used.
11837         case `$LD -v 2>&1` in
11838           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11839           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11840           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11841           *)
11842             lt_use_gnu_ld_interface=yes
11843             ;;
11844         esac
11845         ;;
11846       *)
11847         lt_use_gnu_ld_interface=yes
11848         ;;
11849     esac
11850   fi
11851
11852   if test yes = "$lt_use_gnu_ld_interface"; then
11853     # If archive_cmds runs LD, not CC, wlarc should be empty
11854     wlarc='$wl'
11855
11856     # Set some defaults for GNU ld with shared library support. These
11857     # are reset later if shared libraries are not supported. Putting them
11858     # here allows them to be overridden if necessary.
11859     runpath_var=LD_RUN_PATH
11860     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11861     export_dynamic_flag_spec='$wl--export-dynamic'
11862     # ancient GNU ld didn't support --whole-archive et. al.
11863     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11864       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11865     else
11866       whole_archive_flag_spec=
11867     fi
11868     supports_anon_versioning=no
11869     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11870       *GNU\ gold*) supports_anon_versioning=yes ;;
11871       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11872       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11873       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11874       *\ 2.11.*) ;; # other 2.11 versions
11875       *) supports_anon_versioning=yes ;;
11876     esac
11877
11878     # See if GNU ld supports shared libraries.
11879     case $host_os in
11880     aix[3-9]*)
11881       # On AIX/PPC, the GNU linker is very broken
11882       if test ia64 != "$host_cpu"; then
11883         ld_shlibs=no
11884         cat <<_LT_EOF 1>&2
11885
11886 *** Warning: the GNU linker, at least up to release 2.19, is reported
11887 *** to be unable to reliably create shared libraries on AIX.
11888 *** Therefore, libtool is disabling shared libraries support.  If you
11889 *** really care for shared libraries, you may want to install binutils
11890 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11891 *** You will then need to restart the configuration process.
11892
11893 _LT_EOF
11894       fi
11895       ;;
11896
11897     amigaos*)
11898       case $host_cpu in
11899       powerpc)
11900             # see comment about AmigaOS4 .so support
11901             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11902             archive_expsym_cmds=''
11903         ;;
11904       m68k)
11905             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)'
11906             hardcode_libdir_flag_spec='-L$libdir'
11907             hardcode_minus_L=yes
11908         ;;
11909       esac
11910       ;;
11911
11912     beos*)
11913       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11914         allow_undefined_flag=unsupported
11915         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11916         # support --undefined.  This deserves some investigation.  FIXME
11917         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11918       else
11919         ld_shlibs=no
11920       fi
11921       ;;
11922
11923     cygwin* | mingw* | pw32* | cegcc*)
11924       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11925       # as there is no search path for DLLs.
11926       hardcode_libdir_flag_spec='-L$libdir'
11927       export_dynamic_flag_spec='$wl--export-all-symbols'
11928       allow_undefined_flag=unsupported
11929       always_export_symbols=no
11930       enable_shared_with_static_runtimes=yes
11931       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'
11932       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11933
11934       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11935         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11936         # If the export-symbols file already is a .def file, use it as
11937         # is; otherwise, prepend EXPORTS...
11938         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11939           cp $export_symbols $output_objdir/$soname.def;
11940         else
11941           echo EXPORTS > $output_objdir/$soname.def;
11942           cat $export_symbols >> $output_objdir/$soname.def;
11943         fi~
11944         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11945       else
11946         ld_shlibs=no
11947       fi
11948       ;;
11949
11950     haiku*)
11951       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11952       link_all_deplibs=yes
11953       ;;
11954
11955     os2*)
11956       hardcode_libdir_flag_spec='-L$libdir'
11957       hardcode_minus_L=yes
11958       allow_undefined_flag=unsupported
11959       shrext_cmds=.dll
11960       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11961         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11962         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11963         $ECHO EXPORTS >> $output_objdir/$libname.def~
11964         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11965         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11966         emximp -o $lib $output_objdir/$libname.def'
11967       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11968         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11969         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11970         $ECHO EXPORTS >> $output_objdir/$libname.def~
11971         prefix_cmds="$SED"~
11972         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11973           prefix_cmds="$prefix_cmds -e 1d";
11974         fi~
11975         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11976         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11977         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11978         emximp -o $lib $output_objdir/$libname.def'
11979       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11980       enable_shared_with_static_runtimes=yes
11981       ;;
11982
11983     interix[3-9]*)
11984       hardcode_direct=no
11985       hardcode_shlibpath_var=no
11986       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11987       export_dynamic_flag_spec='$wl-E'
11988       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11989       # Instead, shared libraries are loaded at an image base (0x10000000 by
11990       # default) and relocated if they conflict, which is a slow very memory
11991       # consuming and fragmenting process.  To avoid this, we pick a random,
11992       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11993       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11994       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11995       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'
11996       ;;
11997
11998     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11999       tmp_diet=no
12000       if test linux-dietlibc = "$host_os"; then
12001         case $cc_basename in
12002           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12003         esac
12004       fi
12005       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12006          && test no = "$tmp_diet"
12007       then
12008         tmp_addflag=' $pic_flag'
12009         tmp_sharedflag='-shared'
12010         case $cc_basename,$host_cpu in
12011         pgcc*)                          # Portland Group C compiler
12012           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'
12013           tmp_addflag=' $pic_flag'
12014           ;;
12015         pgf77* | pgf90* | pgf95* | pgfortran*)
12016                                         # Portland Group f77 and f90 compilers
12017           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'
12018           tmp_addflag=' $pic_flag -Mnomain' ;;
12019         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12020           tmp_addflag=' -i_dynamic' ;;
12021         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12022           tmp_addflag=' -i_dynamic -nofor_main' ;;
12023         ifc* | ifort*)                  # Intel Fortran compiler
12024           tmp_addflag=' -nofor_main' ;;
12025         lf95*)                          # Lahey Fortran 8.1
12026           whole_archive_flag_spec=
12027           tmp_sharedflag='--shared' ;;
12028         nagfor*)                        # NAGFOR 5.3
12029           tmp_sharedflag='-Wl,-shared' ;;
12030         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12031           tmp_sharedflag='-qmkshrobj'
12032           tmp_addflag= ;;
12033         nvcc*)  # Cuda Compiler Driver 2.2
12034           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'
12035           compiler_needs_object=yes
12036           ;;
12037         esac
12038         case `$CC -V 2>&1 | sed 5q` in
12039         *Sun\ C*)                       # Sun C 5.9
12040           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'
12041           compiler_needs_object=yes
12042           tmp_sharedflag='-G' ;;
12043         *Sun\ F*)                       # Sun Fortran 8.3
12044           tmp_sharedflag='-G' ;;
12045         esac
12046         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12047
12048         if test yes = "$supports_anon_versioning"; then
12049           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12050             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12051             echo "local: *; };" >> $output_objdir/$libname.ver~
12052             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12053         fi
12054
12055         case $cc_basename in
12056         tcc*)
12057           export_dynamic_flag_spec='-rdynamic'
12058           ;;
12059         xlf* | bgf* | bgxlf* | mpixlf*)
12060           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12061           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12062           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12063           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12064           if test yes = "$supports_anon_versioning"; then
12065             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12066               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12067               echo "local: *; };" >> $output_objdir/$libname.ver~
12068               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12069           fi
12070           ;;
12071         esac
12072       else
12073         ld_shlibs=no
12074       fi
12075       ;;
12076
12077     netbsd* | netbsdelf*-gnu)
12078       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12079         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12080         wlarc=
12081       else
12082         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12083         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12084       fi
12085       ;;
12086
12087     solaris*)
12088       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12089         ld_shlibs=no
12090         cat <<_LT_EOF 1>&2
12091
12092 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12093 *** create shared libraries on Solaris systems.  Therefore, libtool
12094 *** is disabling shared libraries support.  We urge you to upgrade GNU
12095 *** binutils to release 2.9.1 or newer.  Another option is to modify
12096 *** your PATH or compiler configuration so that the native linker is
12097 *** used, and then restart.
12098
12099 _LT_EOF
12100       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12101         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12102         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12103       else
12104         ld_shlibs=no
12105       fi
12106       ;;
12107
12108     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12109       case `$LD -v 2>&1` in
12110         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12111         ld_shlibs=no
12112         cat <<_LT_EOF 1>&2
12113
12114 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12115 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12116 *** is disabling shared libraries support.  We urge you to upgrade GNU
12117 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12118 *** your PATH or compiler configuration so that the native linker is
12119 *** used, and then restart.
12120
12121 _LT_EOF
12122         ;;
12123         *)
12124           # For security reasons, it is highly recommended that you always
12125           # use absolute paths for naming shared libraries, and exclude the
12126           # DT_RUNPATH tag from executables and libraries.  But doing so
12127           # requires that you compile everything twice, which is a pain.
12128           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12129             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12130             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12131             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12132           else
12133             ld_shlibs=no
12134           fi
12135         ;;
12136       esac
12137       ;;
12138
12139     sunos4*)
12140       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12141       wlarc=
12142       hardcode_direct=yes
12143       hardcode_shlibpath_var=no
12144       ;;
12145
12146     *)
12147       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12148         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12149         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12150       else
12151         ld_shlibs=no
12152       fi
12153       ;;
12154     esac
12155
12156     if test no = "$ld_shlibs"; then
12157       runpath_var=
12158       hardcode_libdir_flag_spec=
12159       export_dynamic_flag_spec=
12160       whole_archive_flag_spec=
12161     fi
12162   else
12163     # PORTME fill in a description of your system's linker (not GNU ld)
12164     case $host_os in
12165     aix3*)
12166       allow_undefined_flag=unsupported
12167       always_export_symbols=yes
12168       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'
12169       # Note: this linker hardcodes the directories in LIBPATH if there
12170       # are no directories specified by -L.
12171       hardcode_minus_L=yes
12172       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12173         # Neither direct hardcoding nor static linking is supported with a
12174         # broken collect2.
12175         hardcode_direct=unsupported
12176       fi
12177       ;;
12178
12179     aix[4-9]*)
12180       if test ia64 = "$host_cpu"; then
12181         # On IA64, the linker does run time linking by default, so we don't
12182         # have to do anything special.
12183         aix_use_runtimelinking=no
12184         exp_sym_flag='-Bexport'
12185         no_entry_flag=
12186       else
12187         # If we're using GNU nm, then we don't want the "-C" option.
12188         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12189         # Without the "-l" option, or with the "-B" option, AIX nm treats
12190         # weak defined symbols like other global defined symbols, whereas
12191         # GNU nm marks them as "W".
12192         # While the 'weak' keyword is ignored in the Export File, we need
12193         # it in the Import File for the 'aix-soname' feature, so we have
12194         # to replace the "-B" option with "-P" for AIX nm.
12195         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12196           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12197         else
12198           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12199         fi
12200         aix_use_runtimelinking=no
12201
12202         # Test if we are trying to use run time linking or normal
12203         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12204         # have runtime linking enabled, and use it for executables.
12205         # For shared libraries, we enable/disable runtime linking
12206         # depending on the kind of the shared library created -
12207         # when "with_aix_soname,aix_use_runtimelinking" is:
12208         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12209         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12210         #            lib.a           static archive
12211         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12212         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12213         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12214         #            lib.a(lib.so.V) shared, rtl:no
12215         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12216         #            lib.a           static archive
12217         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12218           for ld_flag in $LDFLAGS; do
12219           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12220             aix_use_runtimelinking=yes
12221             break
12222           fi
12223           done
12224           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12225             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12226             # so we don't have lib.a shared libs to link our executables.
12227             # We have to force runtime linking in this case.
12228             aix_use_runtimelinking=yes
12229             LDFLAGS="$LDFLAGS -Wl,-brtl"
12230           fi
12231           ;;
12232         esac
12233
12234         exp_sym_flag='-bexport'
12235         no_entry_flag='-bnoentry'
12236       fi
12237
12238       # When large executables or shared objects are built, AIX ld can
12239       # have problems creating the table of contents.  If linking a library
12240       # or program results in "error TOC overflow" add -mminimal-toc to
12241       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12242       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12243
12244       archive_cmds=''
12245       hardcode_direct=yes
12246       hardcode_direct_absolute=yes
12247       hardcode_libdir_separator=':'
12248       link_all_deplibs=yes
12249       file_list_spec='$wl-f,'
12250       case $with_aix_soname,$aix_use_runtimelinking in
12251       aix,*) ;; # traditional, no import file
12252       svr4,* | *,yes) # use import file
12253         # The Import File defines what to hardcode.
12254         hardcode_direct=no
12255         hardcode_direct_absolute=no
12256         ;;
12257       esac
12258
12259       if test yes = "$GCC"; then
12260         case $host_os in aix4.[012]|aix4.[012].*)
12261         # We only want to do this on AIX 4.2 and lower, the check
12262         # below for broken collect2 doesn't work under 4.3+
12263           collect2name=`$CC -print-prog-name=collect2`
12264           if test -f "$collect2name" &&
12265            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12266           then
12267           # We have reworked collect2
12268           :
12269           else
12270           # We have old collect2
12271           hardcode_direct=unsupported
12272           # It fails to find uninstalled libraries when the uninstalled
12273           # path is not listed in the libpath.  Setting hardcode_minus_L
12274           # to unsupported forces relinking
12275           hardcode_minus_L=yes
12276           hardcode_libdir_flag_spec='-L$libdir'
12277           hardcode_libdir_separator=
12278           fi
12279           ;;
12280         esac
12281         shared_flag='-shared'
12282         if test yes = "$aix_use_runtimelinking"; then
12283           shared_flag="$shared_flag "'$wl-G'
12284         fi
12285         # Need to ensure runtime linking is disabled for the traditional
12286         # shared library, or the linker may eventually find shared libraries
12287         # /with/ Import File - we do not want to mix them.
12288         shared_flag_aix='-shared'
12289         shared_flag_svr4='-shared $wl-G'
12290       else
12291         # not using gcc
12292         if test ia64 = "$host_cpu"; then
12293         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12294         # chokes on -Wl,-G. The following line is correct:
12295           shared_flag='-G'
12296         else
12297           if test yes = "$aix_use_runtimelinking"; then
12298             shared_flag='$wl-G'
12299           else
12300             shared_flag='$wl-bM:SRE'
12301           fi
12302           shared_flag_aix='$wl-bM:SRE'
12303           shared_flag_svr4='$wl-G'
12304         fi
12305       fi
12306
12307       export_dynamic_flag_spec='$wl-bexpall'
12308       # It seems that -bexpall does not export symbols beginning with
12309       # underscore (_), so it is better to generate a list of symbols to export.
12310       always_export_symbols=yes
12311       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12312         # Warning - without using the other runtime loading flags (-brtl),
12313         # -berok will link without error, but may produce a broken library.
12314         allow_undefined_flag='-berok'
12315         # Determine the default libpath from the value encoded in an
12316         # empty executable.
12317         if test set = "${lt_cv_aix_libpath+set}"; then
12318   aix_libpath=$lt_cv_aix_libpath
12319 else
12320   if ${lt_cv_aix_libpath_+:} false; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h.  */
12325
12326 int
12327 main ()
12328 {
12329
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 if ac_fn_c_try_link "$LINENO"; then :
12335
12336   lt_aix_libpath_sed='
12337       /Import File Strings/,/^$/ {
12338           /^0/ {
12339               s/^0  *\([^ ]*\) *$/\1/
12340               p
12341           }
12342       }'
12343   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12344   # Check for a 64-bit object if we didn't find anything.
12345   if test -z "$lt_cv_aix_libpath_"; then
12346     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12347   fi
12348 fi
12349 rm -f core conftest.err conftest.$ac_objext \
12350     conftest$ac_exeext conftest.$ac_ext
12351   if test -z "$lt_cv_aix_libpath_"; then
12352     lt_cv_aix_libpath_=/usr/lib:/lib
12353   fi
12354
12355 fi
12356
12357   aix_libpath=$lt_cv_aix_libpath_
12358 fi
12359
12360         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12361         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12362       else
12363         if test ia64 = "$host_cpu"; then
12364           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12365           allow_undefined_flag="-z nodefs"
12366           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"
12367         else
12368          # Determine the default libpath from the value encoded in an
12369          # empty executable.
12370          if test set = "${lt_cv_aix_libpath+set}"; then
12371   aix_libpath=$lt_cv_aix_libpath
12372 else
12373   if ${lt_cv_aix_libpath_+:} false; then :
12374   $as_echo_n "(cached) " >&6
12375 else
12376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h.  */
12378
12379 int
12380 main ()
12381 {
12382
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 if ac_fn_c_try_link "$LINENO"; then :
12388
12389   lt_aix_libpath_sed='
12390       /Import File Strings/,/^$/ {
12391           /^0/ {
12392               s/^0  *\([^ ]*\) *$/\1/
12393               p
12394           }
12395       }'
12396   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12397   # Check for a 64-bit object if we didn't find anything.
12398   if test -z "$lt_cv_aix_libpath_"; then
12399     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12400   fi
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext \
12403     conftest$ac_exeext conftest.$ac_ext
12404   if test -z "$lt_cv_aix_libpath_"; then
12405     lt_cv_aix_libpath_=/usr/lib:/lib
12406   fi
12407
12408 fi
12409
12410   aix_libpath=$lt_cv_aix_libpath_
12411 fi
12412
12413          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12414           # Warning - without using the other run time loading flags,
12415           # -berok will link without error, but may produce a broken library.
12416           no_undefined_flag=' $wl-bernotok'
12417           allow_undefined_flag=' $wl-berok'
12418           if test yes = "$with_gnu_ld"; then
12419             # We only use this code for GNU lds that support --whole-archive.
12420             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12421           else
12422             # Exported symbols can be pulled into shared objects from archives
12423             whole_archive_flag_spec='$convenience'
12424           fi
12425           archive_cmds_need_lc=yes
12426           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12427           # -brtl affects multiple linker settings, -berok does not and is overridden later
12428           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12429           if test svr4 != "$with_aix_soname"; then
12430             # This is similar to how AIX traditionally builds its shared libraries.
12431             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12432           fi
12433           if test aix != "$with_aix_soname"; then
12434             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12435           else
12436             # used by -dlpreopen to get the symbols
12437             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12438           fi
12439           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12440         fi
12441       fi
12442       ;;
12443
12444     amigaos*)
12445       case $host_cpu in
12446       powerpc)
12447             # see comment about AmigaOS4 .so support
12448             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12449             archive_expsym_cmds=''
12450         ;;
12451       m68k)
12452             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)'
12453             hardcode_libdir_flag_spec='-L$libdir'
12454             hardcode_minus_L=yes
12455         ;;
12456       esac
12457       ;;
12458
12459     bsdi[45]*)
12460       export_dynamic_flag_spec=-rdynamic
12461       ;;
12462
12463     cygwin* | mingw* | pw32* | cegcc*)
12464       # When not using gcc, we currently assume that we are using
12465       # Microsoft Visual C++.
12466       # hardcode_libdir_flag_spec is actually meaningless, as there is
12467       # no search path for DLLs.
12468       case $cc_basename in
12469       cl*)
12470         # Native MSVC
12471         hardcode_libdir_flag_spec=' '
12472         allow_undefined_flag=unsupported
12473         always_export_symbols=yes
12474         file_list_spec='@'
12475         # Tell ltmain to make .lib files, not .a files.
12476         libext=lib
12477         # Tell ltmain to make .dll files, not .so files.
12478         shrext_cmds=.dll
12479         # FIXME: Setting linknames here is a bad hack.
12480         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12481         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12482             cp "$export_symbols" "$output_objdir/$soname.def";
12483             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12484           else
12485             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12486           fi~
12487           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12488           linknames='
12489         # The linker will not automatically build a static lib if we build a DLL.
12490         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12491         enable_shared_with_static_runtimes=yes
12492         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12493         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12494         # Don't use ranlib
12495         old_postinstall_cmds='chmod 644 $oldlib'
12496         postlink_cmds='lt_outputfile="@OUTPUT@"~
12497           lt_tool_outputfile="@TOOL_OUTPUT@"~
12498           case $lt_outputfile in
12499             *.exe|*.EXE) ;;
12500             *)
12501               lt_outputfile=$lt_outputfile.exe
12502               lt_tool_outputfile=$lt_tool_outputfile.exe
12503               ;;
12504           esac~
12505           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12506             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12507             $RM "$lt_outputfile.manifest";
12508           fi'
12509         ;;
12510       *)
12511         # Assume MSVC wrapper
12512         hardcode_libdir_flag_spec=' '
12513         allow_undefined_flag=unsupported
12514         # Tell ltmain to make .lib files, not .a files.
12515         libext=lib
12516         # Tell ltmain to make .dll files, not .so files.
12517         shrext_cmds=.dll
12518         # FIXME: Setting linknames here is a bad hack.
12519         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12520         # The linker will automatically build a .lib file if we build a DLL.
12521         old_archive_from_new_cmds='true'
12522         # FIXME: Should let the user specify the lib program.
12523         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12524         enable_shared_with_static_runtimes=yes
12525         ;;
12526       esac
12527       ;;
12528
12529     darwin* | rhapsody*)
12530
12531
12532   archive_cmds_need_lc=no
12533   hardcode_direct=no
12534   hardcode_automatic=yes
12535   hardcode_shlibpath_var=unsupported
12536   if test yes = "$lt_cv_ld_force_load"; then
12537     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\"`'
12538
12539   else
12540     whole_archive_flag_spec=''
12541   fi
12542   link_all_deplibs=yes
12543   allow_undefined_flag=$_lt_dar_allow_undefined
12544   case $cc_basename in
12545      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12546      *) _lt_dar_can_shared=$GCC ;;
12547   esac
12548   if test yes = "$_lt_dar_can_shared"; then
12549     output_verbose_link_cmd=func_echo_all
12550     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12551     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12552     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"
12553     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"
12554
12555   else
12556   ld_shlibs=no
12557   fi
12558
12559       ;;
12560
12561     dgux*)
12562       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12563       hardcode_libdir_flag_spec='-L$libdir'
12564       hardcode_shlibpath_var=no
12565       ;;
12566
12567     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12568     # support.  Future versions do this automatically, but an explicit c++rt0.o
12569     # does not break anything, and helps significantly (at the cost of a little
12570     # extra space).
12571     freebsd2.2*)
12572       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12573       hardcode_libdir_flag_spec='-R$libdir'
12574       hardcode_direct=yes
12575       hardcode_shlibpath_var=no
12576       ;;
12577
12578     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12579     freebsd2.*)
12580       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12581       hardcode_direct=yes
12582       hardcode_minus_L=yes
12583       hardcode_shlibpath_var=no
12584       ;;
12585
12586     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12587     freebsd* | dragonfly*)
12588       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12589       hardcode_libdir_flag_spec='-R$libdir'
12590       hardcode_direct=yes
12591       hardcode_shlibpath_var=no
12592       ;;
12593
12594     hpux9*)
12595       if test yes = "$GCC"; then
12596         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12597       else
12598         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12599       fi
12600       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12601       hardcode_libdir_separator=:
12602       hardcode_direct=yes
12603
12604       # hardcode_minus_L: Not really in the search PATH,
12605       # but as the default location of the library.
12606       hardcode_minus_L=yes
12607       export_dynamic_flag_spec='$wl-E'
12608       ;;
12609
12610     hpux10*)
12611       if test yes,no = "$GCC,$with_gnu_ld"; then
12612         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12613       else
12614         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12615       fi
12616       if test no = "$with_gnu_ld"; then
12617         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12618         hardcode_libdir_separator=:
12619         hardcode_direct=yes
12620         hardcode_direct_absolute=yes
12621         export_dynamic_flag_spec='$wl-E'
12622         # hardcode_minus_L: Not really in the search PATH,
12623         # but as the default location of the library.
12624         hardcode_minus_L=yes
12625       fi
12626       ;;
12627
12628     hpux11*)
12629       if test yes,no = "$GCC,$with_gnu_ld"; then
12630         case $host_cpu in
12631         hppa*64*)
12632           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12633           ;;
12634         ia64*)
12635           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12636           ;;
12637         *)
12638           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12639           ;;
12640         esac
12641       else
12642         case $host_cpu in
12643         hppa*64*)
12644           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12645           ;;
12646         ia64*)
12647           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12648           ;;
12649         *)
12650
12651           # Older versions of the 11.00 compiler do not understand -b yet
12652           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12653           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12654 $as_echo_n "checking if $CC understands -b... " >&6; }
12655 if ${lt_cv_prog_compiler__b+:} false; then :
12656   $as_echo_n "(cached) " >&6
12657 else
12658   lt_cv_prog_compiler__b=no
12659    save_LDFLAGS=$LDFLAGS
12660    LDFLAGS="$LDFLAGS -b"
12661    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12662    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12663      # The linker can only warn and ignore the option if not recognized
12664      # So say no if there are warnings
12665      if test -s conftest.err; then
12666        # Append any errors to the config.log.
12667        cat conftest.err 1>&5
12668        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12669        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12670        if diff conftest.exp conftest.er2 >/dev/null; then
12671          lt_cv_prog_compiler__b=yes
12672        fi
12673      else
12674        lt_cv_prog_compiler__b=yes
12675      fi
12676    fi
12677    $RM -r conftest*
12678    LDFLAGS=$save_LDFLAGS
12679
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12682 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12683
12684 if test yes = "$lt_cv_prog_compiler__b"; then
12685     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12686 else
12687     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12688 fi
12689
12690           ;;
12691         esac
12692       fi
12693       if test no = "$with_gnu_ld"; then
12694         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12695         hardcode_libdir_separator=:
12696
12697         case $host_cpu in
12698         hppa*64*|ia64*)
12699           hardcode_direct=no
12700           hardcode_shlibpath_var=no
12701           ;;
12702         *)
12703           hardcode_direct=yes
12704           hardcode_direct_absolute=yes
12705           export_dynamic_flag_spec='$wl-E'
12706
12707           # hardcode_minus_L: Not really in the search PATH,
12708           # but as the default location of the library.
12709           hardcode_minus_L=yes
12710           ;;
12711         esac
12712       fi
12713       ;;
12714
12715     irix5* | irix6* | nonstopux*)
12716       if test yes = "$GCC"; then
12717         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'
12718         # Try to use the -exported_symbol ld option, if it does not
12719         # work, assume that -exports_file does not work either and
12720         # implicitly export all symbols.
12721         # This should be the same for all languages, so no per-tag cache variable.
12722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12723 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12724 if ${lt_cv_irix_exported_symbol+:} false; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727   save_LDFLAGS=$LDFLAGS
12728            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12729            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h.  */
12731 int foo (void) { return 0; }
12732 _ACEOF
12733 if ac_fn_c_try_link "$LINENO"; then :
12734   lt_cv_irix_exported_symbol=yes
12735 else
12736   lt_cv_irix_exported_symbol=no
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext \
12739     conftest$ac_exeext conftest.$ac_ext
12740            LDFLAGS=$save_LDFLAGS
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12743 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12744         if test yes = "$lt_cv_irix_exported_symbol"; then
12745           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'
12746         fi
12747         link_all_deplibs=no
12748       else
12749         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'
12750         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'
12751       fi
12752       archive_cmds_need_lc='no'
12753       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12754       hardcode_libdir_separator=:
12755       inherit_rpath=yes
12756       link_all_deplibs=yes
12757       ;;
12758
12759     linux*)
12760       case $cc_basename in
12761       tcc*)
12762         # Fabrice Bellard et al's Tiny C Compiler
12763         ld_shlibs=yes
12764         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12765         ;;
12766       esac
12767       ;;
12768
12769     netbsd* | netbsdelf*-gnu)
12770       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12771         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12772       else
12773         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12774       fi
12775       hardcode_libdir_flag_spec='-R$libdir'
12776       hardcode_direct=yes
12777       hardcode_shlibpath_var=no
12778       ;;
12779
12780     newsos6)
12781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12782       hardcode_direct=yes
12783       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12784       hardcode_libdir_separator=:
12785       hardcode_shlibpath_var=no
12786       ;;
12787
12788     *nto* | *qnx*)
12789       ;;
12790
12791     openbsd* | bitrig*)
12792       if test -f /usr/libexec/ld.so; then
12793         hardcode_direct=yes
12794         hardcode_shlibpath_var=no
12795         hardcode_direct_absolute=yes
12796         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12797           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12798           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12799           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12800           export_dynamic_flag_spec='$wl-E'
12801         else
12802           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12803           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12804         fi
12805       else
12806         ld_shlibs=no
12807       fi
12808       ;;
12809
12810     os2*)
12811       hardcode_libdir_flag_spec='-L$libdir'
12812       hardcode_minus_L=yes
12813       allow_undefined_flag=unsupported
12814       shrext_cmds=.dll
12815       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12816         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12817         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12818         $ECHO EXPORTS >> $output_objdir/$libname.def~
12819         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12820         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12821         emximp -o $lib $output_objdir/$libname.def'
12822       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12823         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12824         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12825         $ECHO EXPORTS >> $output_objdir/$libname.def~
12826         prefix_cmds="$SED"~
12827         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12828           prefix_cmds="$prefix_cmds -e 1d";
12829         fi~
12830         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12831         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12832         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12833         emximp -o $lib $output_objdir/$libname.def'
12834       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12835       enable_shared_with_static_runtimes=yes
12836       ;;
12837
12838     osf3*)
12839       if test yes = "$GCC"; then
12840         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12841         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'
12842       else
12843         allow_undefined_flag=' -expect_unresolved \*'
12844         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'
12845       fi
12846       archive_cmds_need_lc='no'
12847       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12848       hardcode_libdir_separator=:
12849       ;;
12850
12851     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12852       if test yes = "$GCC"; then
12853         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12854         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'
12855         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12856       else
12857         allow_undefined_flag=' -expect_unresolved \*'
12858         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'
12859         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~
12860           $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'
12861
12862         # Both c and cxx compiler support -rpath directly
12863         hardcode_libdir_flag_spec='-rpath $libdir'
12864       fi
12865       archive_cmds_need_lc='no'
12866       hardcode_libdir_separator=:
12867       ;;
12868
12869     solaris*)
12870       no_undefined_flag=' -z defs'
12871       if test yes = "$GCC"; then
12872         wlarc='$wl'
12873         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12874         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12875           $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'
12876       else
12877         case `$CC -V 2>&1` in
12878         *"Compilers 5.0"*)
12879           wlarc=''
12880           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12881           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12882             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12883           ;;
12884         *)
12885           wlarc='$wl'
12886           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12887           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12888             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12889           ;;
12890         esac
12891       fi
12892       hardcode_libdir_flag_spec='-R$libdir'
12893       hardcode_shlibpath_var=no
12894       case $host_os in
12895       solaris2.[0-5] | solaris2.[0-5].*) ;;
12896       *)
12897         # The compiler driver will combine and reorder linker options,
12898         # but understands '-z linker_flag'.  GCC discards it without '$wl',
12899         # but is careful enough not to reorder.
12900         # Supported since Solaris 2.6 (maybe 2.5.1?)
12901         if test yes = "$GCC"; then
12902           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12903         else
12904           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12905         fi
12906         ;;
12907       esac
12908       link_all_deplibs=yes
12909       ;;
12910
12911     sunos4*)
12912       if test sequent = "$host_vendor"; then
12913         # Use $CC to link under sequent, because it throws in some extra .o
12914         # files that make .init and .fini sections work.
12915         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12916       else
12917         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12918       fi
12919       hardcode_libdir_flag_spec='-L$libdir'
12920       hardcode_direct=yes
12921       hardcode_minus_L=yes
12922       hardcode_shlibpath_var=no
12923       ;;
12924
12925     sysv4)
12926       case $host_vendor in
12927         sni)
12928           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12929           hardcode_direct=yes # is this really true???
12930         ;;
12931         siemens)
12932           ## LD is ld it makes a PLAMLIB
12933           ## CC just makes a GrossModule.
12934           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12935           reload_cmds='$CC -r -o $output$reload_objs'
12936           hardcode_direct=no
12937         ;;
12938         motorola)
12939           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12940           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12941         ;;
12942       esac
12943       runpath_var='LD_RUN_PATH'
12944       hardcode_shlibpath_var=no
12945       ;;
12946
12947     sysv4.3*)
12948       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12949       hardcode_shlibpath_var=no
12950       export_dynamic_flag_spec='-Bexport'
12951       ;;
12952
12953     sysv4*MP*)
12954       if test -d /usr/nec; then
12955         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12956         hardcode_shlibpath_var=no
12957         runpath_var=LD_RUN_PATH
12958         hardcode_runpath_var=yes
12959         ld_shlibs=yes
12960       fi
12961       ;;
12962
12963     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12964       no_undefined_flag='$wl-z,text'
12965       archive_cmds_need_lc=no
12966       hardcode_shlibpath_var=no
12967       runpath_var='LD_RUN_PATH'
12968
12969       if test yes = "$GCC"; then
12970         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12972       else
12973         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12974         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12975       fi
12976       ;;
12977
12978     sysv5* | sco3.2v5* | sco5v6*)
12979       # Note: We CANNOT use -z defs as we might desire, because we do not
12980       # link with -lc, and that would cause any symbols used from libc to
12981       # always be unresolved, which means just about no library would
12982       # ever link correctly.  If we're not using GNU ld we use -z text
12983       # though, which does catch some bad symbols but isn't as heavy-handed
12984       # as -z defs.
12985       no_undefined_flag='$wl-z,text'
12986       allow_undefined_flag='$wl-z,nodefs'
12987       archive_cmds_need_lc=no
12988       hardcode_shlibpath_var=no
12989       hardcode_libdir_flag_spec='$wl-R,$libdir'
12990       hardcode_libdir_separator=':'
12991       link_all_deplibs=yes
12992       export_dynamic_flag_spec='$wl-Bexport'
12993       runpath_var='LD_RUN_PATH'
12994
12995       if test yes = "$GCC"; then
12996         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12997         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12998       else
12999         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13000         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13001       fi
13002       ;;
13003
13004     uts4*)
13005       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13006       hardcode_libdir_flag_spec='-L$libdir'
13007       hardcode_shlibpath_var=no
13008       ;;
13009
13010     *)
13011       ld_shlibs=no
13012       ;;
13013     esac
13014
13015     if test sni = "$host_vendor"; then
13016       case $host in
13017       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13018         export_dynamic_flag_spec='$wl-Blargedynsym'
13019         ;;
13020       esac
13021     fi
13022   fi
13023
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13025 $as_echo "$ld_shlibs" >&6; }
13026 test no = "$ld_shlibs" && can_build_shared=no
13027
13028 with_gnu_ld=$with_gnu_ld
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044 #
13045 # Do we need to explicitly link libc?
13046 #
13047 case "x$archive_cmds_need_lc" in
13048 x|xyes)
13049   # Assume -lc should be added
13050   archive_cmds_need_lc=yes
13051
13052   if test yes,yes = "$GCC,$enable_shared"; then
13053     case $archive_cmds in
13054     *'~'*)
13055       # FIXME: we may have to deal with multi-command sequences.
13056       ;;
13057     '$CC '*)
13058       # Test whether the compiler implicitly links with -lc since on some
13059       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13060       # to ld, don't add -lc before -lgcc.
13061       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13063 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13064   $as_echo_n "(cached) " >&6
13065 else
13066   $RM conftest*
13067         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068
13069         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13070   (eval $ac_compile) 2>&5
13071   ac_status=$?
13072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13073   test $ac_status = 0; } 2>conftest.err; then
13074           soname=conftest
13075           lib=conftest
13076           libobjs=conftest.$ac_objext
13077           deplibs=
13078           wl=$lt_prog_compiler_wl
13079           pic_flag=$lt_prog_compiler_pic
13080           compiler_flags=-v
13081           linker_flags=-v
13082           verstring=
13083           output_objdir=.
13084           libname=conftest
13085           lt_save_allow_undefined_flag=$allow_undefined_flag
13086           allow_undefined_flag=
13087           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13088   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13089   ac_status=$?
13090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091   test $ac_status = 0; }
13092           then
13093             lt_cv_archive_cmds_need_lc=no
13094           else
13095             lt_cv_archive_cmds_need_lc=yes
13096           fi
13097           allow_undefined_flag=$lt_save_allow_undefined_flag
13098         else
13099           cat conftest.err 1>&5
13100         fi
13101         $RM conftest*
13102
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13105 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13106       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13107       ;;
13108     esac
13109   fi
13110   ;;
13111 esac
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13265 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13266
13267 if test yes = "$GCC"; then
13268   case $host_os in
13269     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13270     *) lt_awk_arg='/^libraries:/' ;;
13271   esac
13272   case $host_os in
13273     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13274     *) lt_sed_strip_eq='s|=/|/|g' ;;
13275   esac
13276   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13277   case $lt_search_path_spec in
13278   *\;*)
13279     # if the path contains ";" then we assume it to be the separator
13280     # otherwise default to the standard path separator (i.e. ":") - it is
13281     # assumed that no part of a normal pathname contains ";" but that should
13282     # okay in the real world where ";" in dirpaths is itself problematic.
13283     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13284     ;;
13285   *)
13286     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13287     ;;
13288   esac
13289   # Ok, now we have the path, separated by spaces, we can step through it
13290   # and add multilib dir if necessary...
13291   lt_tmp_lt_search_path_spec=
13292   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13293   # ...but if some path component already ends with the multilib dir we assume
13294   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13295   case "$lt_multi_os_dir; $lt_search_path_spec " in
13296   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13297     lt_multi_os_dir=
13298     ;;
13299   esac
13300   for lt_sys_path in $lt_search_path_spec; do
13301     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13302       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13303     elif test -n "$lt_multi_os_dir"; then
13304       test -d "$lt_sys_path" && \
13305         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13306     fi
13307   done
13308   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13309 BEGIN {RS = " "; FS = "/|\n";} {
13310   lt_foo = "";
13311   lt_count = 0;
13312   for (lt_i = NF; lt_i > 0; lt_i--) {
13313     if ($lt_i != "" && $lt_i != ".") {
13314       if ($lt_i == "..") {
13315         lt_count++;
13316       } else {
13317         if (lt_count == 0) {
13318           lt_foo = "/" $lt_i lt_foo;
13319         } else {
13320           lt_count--;
13321         }
13322       }
13323     }
13324   }
13325   if (lt_foo != "") { lt_freq[lt_foo]++; }
13326   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13327 }'`
13328   # AWK program above erroneously prepends '/' to C:/dos/paths
13329   # for these hosts.
13330   case $host_os in
13331     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13332       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13333   esac
13334   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13335 else
13336   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13337 fi
13338 library_names_spec=
13339 libname_spec='lib$name'
13340 soname_spec=
13341 shrext_cmds=.so
13342 postinstall_cmds=
13343 postuninstall_cmds=
13344 finish_cmds=
13345 finish_eval=
13346 shlibpath_var=
13347 shlibpath_overrides_runpath=unknown
13348 version_type=none
13349 dynamic_linker="$host_os ld.so"
13350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13351 need_lib_prefix=unknown
13352 hardcode_into_libs=no
13353
13354 # when you set need_version to no, make sure it does not cause -set_version
13355 # flags to be left without arguments
13356 need_version=unknown
13357
13358
13359
13360 case $host_os in
13361 aix3*)
13362   version_type=linux # correct to gnu/linux during the next big refactor
13363   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13364   shlibpath_var=LIBPATH
13365
13366   # AIX 3 has no versioning support, so we append a major version to the name.
13367   soname_spec='$libname$release$shared_ext$major'
13368   ;;
13369
13370 aix[4-9]*)
13371   version_type=linux # correct to gnu/linux during the next big refactor
13372   need_lib_prefix=no
13373   need_version=no
13374   hardcode_into_libs=yes
13375   if test ia64 = "$host_cpu"; then
13376     # AIX 5 supports IA64
13377     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13378     shlibpath_var=LD_LIBRARY_PATH
13379   else
13380     # With GCC up to 2.95.x, collect2 would create an import file
13381     # for dependence libraries.  The import file would start with
13382     # the line '#! .'.  This would cause the generated library to
13383     # depend on '.', always an invalid library.  This was fixed in
13384     # development snapshots of GCC prior to 3.0.
13385     case $host_os in
13386       aix4 | aix4.[01] | aix4.[01].*)
13387       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13388            echo ' yes '
13389            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13390         :
13391       else
13392         can_build_shared=no
13393       fi
13394       ;;
13395     esac
13396     # Using Import Files as archive members, it is possible to support
13397     # filename-based versioning of shared library archives on AIX. While
13398     # this would work for both with and without runtime linking, it will
13399     # prevent static linking of such archives. So we do filename-based
13400     # shared library versioning with .so extension only, which is used
13401     # when both runtime linking and shared linking is enabled.
13402     # Unfortunately, runtime linking may impact performance, so we do
13403     # not want this to be the default eventually. Also, we use the
13404     # versioned .so libs for executables only if there is the -brtl
13405     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13406     # To allow for filename-based versioning support, we need to create
13407     # libNAME.so.V as an archive file, containing:
13408     # *) an Import File, referring to the versioned filename of the
13409     #    archive as well as the shared archive member, telling the
13410     #    bitwidth (32 or 64) of that shared object, and providing the
13411     #    list of exported symbols of that shared object, eventually
13412     #    decorated with the 'weak' keyword
13413     # *) the shared object with the F_LOADONLY flag set, to really avoid
13414     #    it being seen by the linker.
13415     # At run time we better use the real file rather than another symlink,
13416     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13417
13418     case $with_aix_soname,$aix_use_runtimelinking in
13419     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13420     # soname into executable. Probably we can add versioning support to
13421     # collect2, so additional links can be useful in future.
13422     aix,yes) # traditional libtool
13423       dynamic_linker='AIX unversionable lib.so'
13424       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13425       # instead of lib<name>.a to let people know that these are not
13426       # typical AIX shared libraries.
13427       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13428       ;;
13429     aix,no) # traditional AIX only
13430       dynamic_linker='AIX lib.a(lib.so.V)'
13431       # We preserve .a as extension for shared libraries through AIX4.2
13432       # and later when we are not doing run time linking.
13433       library_names_spec='$libname$release.a $libname.a'
13434       soname_spec='$libname$release$shared_ext$major'
13435       ;;
13436     svr4,*) # full svr4 only
13437       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13438       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13439       # We do not specify a path in Import Files, so LIBPATH fires.
13440       shlibpath_overrides_runpath=yes
13441       ;;
13442     *,yes) # both, prefer svr4
13443       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13444       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13445       # unpreferred sharedlib libNAME.a needs extra handling
13446       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13447       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13448       # We do not specify a path in Import Files, so LIBPATH fires.
13449       shlibpath_overrides_runpath=yes
13450       ;;
13451     *,no) # both, prefer aix
13452       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13453       library_names_spec='$libname$release.a $libname.a'
13454       soname_spec='$libname$release$shared_ext$major'
13455       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13456       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13457       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13458       ;;
13459     esac
13460     shlibpath_var=LIBPATH
13461   fi
13462   ;;
13463
13464 amigaos*)
13465   case $host_cpu in
13466   powerpc)
13467     # Since July 2007 AmigaOS4 officially supports .so libraries.
13468     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13469     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13470     ;;
13471   m68k)
13472     library_names_spec='$libname.ixlibrary $libname.a'
13473     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13474     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13475     ;;
13476   esac
13477   ;;
13478
13479 beos*)
13480   library_names_spec='$libname$shared_ext'
13481   dynamic_linker="$host_os ld.so"
13482   shlibpath_var=LIBRARY_PATH
13483   ;;
13484
13485 bsdi[45]*)
13486   version_type=linux # correct to gnu/linux during the next big refactor
13487   need_version=no
13488   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13489   soname_spec='$libname$release$shared_ext$major'
13490   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13491   shlibpath_var=LD_LIBRARY_PATH
13492   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13493   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13494   # the default ld.so.conf also contains /usr/contrib/lib and
13495   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13496   # libtool to hard-code these into programs
13497   ;;
13498
13499 cygwin* | mingw* | pw32* | cegcc*)
13500   version_type=windows
13501   shrext_cmds=.dll
13502   need_version=no
13503   need_lib_prefix=no
13504
13505   case $GCC,$cc_basename in
13506   yes,*)
13507     # gcc
13508     library_names_spec='$libname.dll.a'
13509     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13510     postinstall_cmds='base_file=`basename \$file`~
13511       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13512       dldir=$destdir/`dirname \$dlpath`~
13513       test -d \$dldir || mkdir -p \$dldir~
13514       $install_prog $dir/$dlname \$dldir/$dlname~
13515       chmod a+x \$dldir/$dlname~
13516       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13517         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13518       fi'
13519     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13520       dlpath=$dir/\$dldll~
13521        $RM \$dlpath'
13522     shlibpath_overrides_runpath=yes
13523
13524     case $host_os in
13525     cygwin*)
13526       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13527       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13528
13529       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13530       ;;
13531     mingw* | cegcc*)
13532       # MinGW DLLs use traditional 'lib' prefix
13533       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13534       ;;
13535     pw32*)
13536       # pw32 DLLs use 'pw' prefix rather than 'lib'
13537       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13538       ;;
13539     esac
13540     dynamic_linker='Win32 ld.exe'
13541     ;;
13542
13543   *,cl*)
13544     # Native MSVC
13545     libname_spec='$name'
13546     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13547     library_names_spec='$libname.dll.lib'
13548
13549     case $build_os in
13550     mingw*)
13551       sys_lib_search_path_spec=
13552       lt_save_ifs=$IFS
13553       IFS=';'
13554       for lt_path in $LIB
13555       do
13556         IFS=$lt_save_ifs
13557         # Let DOS variable expansion print the short 8.3 style file name.
13558         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13559         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13560       done
13561       IFS=$lt_save_ifs
13562       # Convert to MSYS style.
13563       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13564       ;;
13565     cygwin*)
13566       # Convert to unix form, then to dos form, then back to unix form
13567       # but this time dos style (no spaces!) so that the unix form looks
13568       # like /cygdrive/c/PROGRA~1:/cygdr...
13569       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13570       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13571       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13572       ;;
13573     *)
13574       sys_lib_search_path_spec=$LIB
13575       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13576         # It is most probably a Windows format PATH.
13577         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13578       else
13579         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13580       fi
13581       # FIXME: find the short name or the path components, as spaces are
13582       # common. (e.g. "Program Files" -> "PROGRA~1")
13583       ;;
13584     esac
13585
13586     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13587     postinstall_cmds='base_file=`basename \$file`~
13588       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13589       dldir=$destdir/`dirname \$dlpath`~
13590       test -d \$dldir || mkdir -p \$dldir~
13591       $install_prog $dir/$dlname \$dldir/$dlname'
13592     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13593       dlpath=$dir/\$dldll~
13594        $RM \$dlpath'
13595     shlibpath_overrides_runpath=yes
13596     dynamic_linker='Win32 link.exe'
13597     ;;
13598
13599   *)
13600     # Assume MSVC wrapper
13601     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13602     dynamic_linker='Win32 ld.exe'
13603     ;;
13604   esac
13605   # FIXME: first we should search . and the directory the executable is in
13606   shlibpath_var=PATH
13607   ;;
13608
13609 darwin* | rhapsody*)
13610   dynamic_linker="$host_os dyld"
13611   version_type=darwin
13612   need_lib_prefix=no
13613   need_version=no
13614   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13615   soname_spec='$libname$release$major$shared_ext'
13616   shlibpath_overrides_runpath=yes
13617   shlibpath_var=DYLD_LIBRARY_PATH
13618   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13619
13620   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13621   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13622   ;;
13623
13624 dgux*)
13625   version_type=linux # correct to gnu/linux during the next big refactor
13626   need_lib_prefix=no
13627   need_version=no
13628   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13629   soname_spec='$libname$release$shared_ext$major'
13630   shlibpath_var=LD_LIBRARY_PATH
13631   ;;
13632
13633 freebsd* | dragonfly*)
13634   # DragonFly does not have aout.  When/if they implement a new
13635   # versioning mechanism, adjust this.
13636   if test -x /usr/bin/objformat; then
13637     objformat=`/usr/bin/objformat`
13638   else
13639     case $host_os in
13640     freebsd[23].*) objformat=aout ;;
13641     *) objformat=elf ;;
13642     esac
13643   fi
13644   version_type=freebsd-$objformat
13645   case $version_type in
13646     freebsd-elf*)
13647       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13648       soname_spec='$libname$release$shared_ext$major'
13649       need_version=no
13650       need_lib_prefix=no
13651       ;;
13652     freebsd-*)
13653       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13654       need_version=yes
13655       ;;
13656   esac
13657   shlibpath_var=LD_LIBRARY_PATH
13658   case $host_os in
13659   freebsd2.*)
13660     shlibpath_overrides_runpath=yes
13661     ;;
13662   freebsd3.[01]* | freebsdelf3.[01]*)
13663     shlibpath_overrides_runpath=yes
13664     hardcode_into_libs=yes
13665     ;;
13666   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13667   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13668     shlibpath_overrides_runpath=no
13669     hardcode_into_libs=yes
13670     ;;
13671   *) # from 4.6 on, and DragonFly
13672     shlibpath_overrides_runpath=yes
13673     hardcode_into_libs=yes
13674     ;;
13675   esac
13676   ;;
13677
13678 haiku*)
13679   version_type=linux # correct to gnu/linux during the next big refactor
13680   need_lib_prefix=no
13681   need_version=no
13682   dynamic_linker="$host_os runtime_loader"
13683   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13684   soname_spec='$libname$release$shared_ext$major'
13685   shlibpath_var=LIBRARY_PATH
13686   shlibpath_overrides_runpath=no
13687   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13688   hardcode_into_libs=yes
13689   ;;
13690
13691 hpux9* | hpux10* | hpux11*)
13692   # Give a soname corresponding to the major version so that dld.sl refuses to
13693   # link against other versions.
13694   version_type=sunos
13695   need_lib_prefix=no
13696   need_version=no
13697   case $host_cpu in
13698   ia64*)
13699     shrext_cmds='.so'
13700     hardcode_into_libs=yes
13701     dynamic_linker="$host_os dld.so"
13702     shlibpath_var=LD_LIBRARY_PATH
13703     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13704     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13705     soname_spec='$libname$release$shared_ext$major'
13706     if test 32 = "$HPUX_IA64_MODE"; then
13707       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13708       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13709     else
13710       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13711       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13712     fi
13713     ;;
13714   hppa*64*)
13715     shrext_cmds='.sl'
13716     hardcode_into_libs=yes
13717     dynamic_linker="$host_os dld.sl"
13718     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13719     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13720     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13721     soname_spec='$libname$release$shared_ext$major'
13722     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13723     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13724     ;;
13725   *)
13726     shrext_cmds='.sl'
13727     dynamic_linker="$host_os dld.sl"
13728     shlibpath_var=SHLIB_PATH
13729     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13730     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731     soname_spec='$libname$release$shared_ext$major'
13732     ;;
13733   esac
13734   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13735   postinstall_cmds='chmod 555 $lib'
13736   # or fails outright, so override atomically:
13737   install_override_mode=555
13738   ;;
13739
13740 interix[3-9]*)
13741   version_type=linux # correct to gnu/linux during the next big refactor
13742   need_lib_prefix=no
13743   need_version=no
13744   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13745   soname_spec='$libname$release$shared_ext$major'
13746   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13747   shlibpath_var=LD_LIBRARY_PATH
13748   shlibpath_overrides_runpath=no
13749   hardcode_into_libs=yes
13750   ;;
13751
13752 irix5* | irix6* | nonstopux*)
13753   case $host_os in
13754     nonstopux*) version_type=nonstopux ;;
13755     *)
13756         if test yes = "$lt_cv_prog_gnu_ld"; then
13757                 version_type=linux # correct to gnu/linux during the next big refactor
13758         else
13759                 version_type=irix
13760         fi ;;
13761   esac
13762   need_lib_prefix=no
13763   need_version=no
13764   soname_spec='$libname$release$shared_ext$major'
13765   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13766   case $host_os in
13767   irix5* | nonstopux*)
13768     libsuff= shlibsuff=
13769     ;;
13770   *)
13771     case $LD in # libtool.m4 will add one of these switches to LD
13772     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13773       libsuff= shlibsuff= libmagic=32-bit;;
13774     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13775       libsuff=32 shlibsuff=N32 libmagic=N32;;
13776     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13777       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13778     *) libsuff= shlibsuff= libmagic=never-match;;
13779     esac
13780     ;;
13781   esac
13782   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13783   shlibpath_overrides_runpath=no
13784   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13785   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13786   hardcode_into_libs=yes
13787   ;;
13788
13789 # No shared lib support for Linux oldld, aout, or coff.
13790 linux*oldld* | linux*aout* | linux*coff*)
13791   dynamic_linker=no
13792   ;;
13793
13794 linux*android*)
13795   version_type=none # Android doesn't support versioned libraries.
13796   need_lib_prefix=no
13797   need_version=no
13798   library_names_spec='$libname$release$shared_ext'
13799   soname_spec='$libname$release$shared_ext'
13800   finish_cmds=
13801   shlibpath_var=LD_LIBRARY_PATH
13802   shlibpath_overrides_runpath=yes
13803
13804   # This implies no fast_install, which is unacceptable.
13805   # Some rework will be needed to allow for fast_install
13806   # before this can be enabled.
13807   hardcode_into_libs=yes
13808
13809   dynamic_linker='Android linker'
13810   # Don't embed -rpath directories since the linker doesn't support them.
13811   hardcode_libdir_flag_spec='-L$libdir'
13812   ;;
13813
13814 # This must be glibc/ELF.
13815 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13816   version_type=linux # correct to gnu/linux during the next big refactor
13817   need_lib_prefix=no
13818   need_version=no
13819   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13820   soname_spec='$libname$release$shared_ext$major'
13821   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13822   shlibpath_var=LD_LIBRARY_PATH
13823   shlibpath_overrides_runpath=no
13824
13825   # Some binutils ld are patched to set DT_RUNPATH
13826   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   lt_cv_shlibpath_overrides_runpath=no
13830     save_LDFLAGS=$LDFLAGS
13831     save_libdir=$libdir
13832     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13833          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h.  */
13836
13837 int
13838 main ()
13839 {
13840
13841   ;
13842   return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13847   lt_cv_shlibpath_overrides_runpath=yes
13848 fi
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851     conftest$ac_exeext conftest.$ac_ext
13852     LDFLAGS=$save_LDFLAGS
13853     libdir=$save_libdir
13854
13855 fi
13856
13857   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13858
13859   # This implies no fast_install, which is unacceptable.
13860   # Some rework will be needed to allow for fast_install
13861   # before this can be enabled.
13862   hardcode_into_libs=yes
13863
13864   # Ideally, we could use ldconfig to report *all* directores which are
13865   # searched for libraries, however this is still not possible.  Aside from not
13866   # being certain /sbin/ldconfig is available, command
13867   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13868   # even though it is searched at run-time.  Try to do the best guess by
13869   # appending ld.so.conf contents (and includes) to the search path.
13870   if test -f /etc/ld.so.conf; then
13871     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' ' '`
13872     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13873   fi
13874
13875   # We used to test for /lib/ld.so.1 and disable shared libraries on
13876   # powerpc, because MkLinux only supported shared libraries with the
13877   # GNU dynamic linker.  Since this was broken with cross compilers,
13878   # most powerpc-linux boxes support dynamic linking these days and
13879   # people can always --disable-shared, the test was removed, and we
13880   # assume the GNU/Linux dynamic linker is in use.
13881   dynamic_linker='GNU/Linux ld.so'
13882   ;;
13883
13884 netbsdelf*-gnu)
13885   version_type=linux
13886   need_lib_prefix=no
13887   need_version=no
13888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13889   soname_spec='${libname}${release}${shared_ext}$major'
13890   shlibpath_var=LD_LIBRARY_PATH
13891   shlibpath_overrides_runpath=no
13892   hardcode_into_libs=yes
13893   dynamic_linker='NetBSD ld.elf_so'
13894   ;;
13895
13896 netbsd*)
13897   version_type=sunos
13898   need_lib_prefix=no
13899   need_version=no
13900   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13901     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13902     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903     dynamic_linker='NetBSD (a.out) ld.so'
13904   else
13905     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13906     soname_spec='$libname$release$shared_ext$major'
13907     dynamic_linker='NetBSD ld.elf_so'
13908   fi
13909   shlibpath_var=LD_LIBRARY_PATH
13910   shlibpath_overrides_runpath=yes
13911   hardcode_into_libs=yes
13912   ;;
13913
13914 newsos6)
13915   version_type=linux # correct to gnu/linux during the next big refactor
13916   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13917   shlibpath_var=LD_LIBRARY_PATH
13918   shlibpath_overrides_runpath=yes
13919   ;;
13920
13921 *nto* | *qnx*)
13922   version_type=qnx
13923   need_lib_prefix=no
13924   need_version=no
13925   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13926   soname_spec='$libname$release$shared_ext$major'
13927   shlibpath_var=LD_LIBRARY_PATH
13928   shlibpath_overrides_runpath=no
13929   hardcode_into_libs=yes
13930   dynamic_linker='ldqnx.so'
13931   ;;
13932
13933 openbsd* | bitrig*)
13934   version_type=sunos
13935   sys_lib_dlsearch_path_spec=/usr/lib
13936   need_lib_prefix=no
13937   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13938     need_version=no
13939   else
13940     need_version=yes
13941   fi
13942   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13944   shlibpath_var=LD_LIBRARY_PATH
13945   shlibpath_overrides_runpath=yes
13946   ;;
13947
13948 os2*)
13949   libname_spec='$name'
13950   version_type=windows
13951   shrext_cmds=.dll
13952   need_version=no
13953   need_lib_prefix=no
13954   # OS/2 can only load a DLL with a base name of 8 characters or less.
13955   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13956     v=$($ECHO $release$versuffix | tr -d .-);
13957     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13958     $ECHO $n$v`$shared_ext'
13959   library_names_spec='${libname}_dll.$libext'
13960   dynamic_linker='OS/2 ld.exe'
13961   shlibpath_var=BEGINLIBPATH
13962   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13963   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13964   postinstall_cmds='base_file=`basename \$file`~
13965     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13966     dldir=$destdir/`dirname \$dlpath`~
13967     test -d \$dldir || mkdir -p \$dldir~
13968     $install_prog $dir/$dlname \$dldir/$dlname~
13969     chmod a+x \$dldir/$dlname~
13970     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13971       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13972     fi'
13973   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13974     dlpath=$dir/\$dldll~
13975     $RM \$dlpath'
13976   ;;
13977
13978 osf3* | osf4* | osf5*)
13979   version_type=osf
13980   need_lib_prefix=no
13981   need_version=no
13982   soname_spec='$libname$release$shared_ext$major'
13983   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13984   shlibpath_var=LD_LIBRARY_PATH
13985   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13986   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13987   ;;
13988
13989 rdos*)
13990   dynamic_linker=no
13991   ;;
13992
13993 solaris*)
13994   version_type=linux # correct to gnu/linux during the next big refactor
13995   need_lib_prefix=no
13996   need_version=no
13997   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13998   soname_spec='$libname$release$shared_ext$major'
13999   shlibpath_var=LD_LIBRARY_PATH
14000   shlibpath_overrides_runpath=yes
14001   hardcode_into_libs=yes
14002   # ldd complains unless libraries are executable
14003   postinstall_cmds='chmod +x $lib'
14004   ;;
14005
14006 sunos4*)
14007   version_type=sunos
14008   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14009   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14010   shlibpath_var=LD_LIBRARY_PATH
14011   shlibpath_overrides_runpath=yes
14012   if test yes = "$with_gnu_ld"; then
14013     need_lib_prefix=no
14014   fi
14015   need_version=yes
14016   ;;
14017
14018 sysv4 | sysv4.3*)
14019   version_type=linux # correct to gnu/linux during the next big refactor
14020   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14021   soname_spec='$libname$release$shared_ext$major'
14022   shlibpath_var=LD_LIBRARY_PATH
14023   case $host_vendor in
14024     sni)
14025       shlibpath_overrides_runpath=no
14026       need_lib_prefix=no
14027       runpath_var=LD_RUN_PATH
14028       ;;
14029     siemens)
14030       need_lib_prefix=no
14031       ;;
14032     motorola)
14033       need_lib_prefix=no
14034       need_version=no
14035       shlibpath_overrides_runpath=no
14036       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14037       ;;
14038   esac
14039   ;;
14040
14041 sysv4*MP*)
14042   if test -d /usr/nec; then
14043     version_type=linux # correct to gnu/linux during the next big refactor
14044     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14045     soname_spec='$libname$shared_ext.$major'
14046     shlibpath_var=LD_LIBRARY_PATH
14047   fi
14048   ;;
14049
14050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14051   version_type=sco
14052   need_lib_prefix=no
14053   need_version=no
14054   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14055   soname_spec='$libname$release$shared_ext$major'
14056   shlibpath_var=LD_LIBRARY_PATH
14057   shlibpath_overrides_runpath=yes
14058   hardcode_into_libs=yes
14059   if test yes = "$with_gnu_ld"; then
14060     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14061   else
14062     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14063     case $host_os in
14064       sco3.2v5*)
14065         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14066         ;;
14067     esac
14068   fi
14069   sys_lib_dlsearch_path_spec='/usr/lib'
14070   ;;
14071
14072 tpf*)
14073   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14074   version_type=linux # correct to gnu/linux during the next big refactor
14075   need_lib_prefix=no
14076   need_version=no
14077   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14078   shlibpath_var=LD_LIBRARY_PATH
14079   shlibpath_overrides_runpath=no
14080   hardcode_into_libs=yes
14081   ;;
14082
14083 uts4*)
14084   version_type=linux # correct to gnu/linux during the next big refactor
14085   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14086   soname_spec='$libname$release$shared_ext$major'
14087   shlibpath_var=LD_LIBRARY_PATH
14088   ;;
14089
14090 *)
14091   dynamic_linker=no
14092   ;;
14093 esac
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14095 $as_echo "$dynamic_linker" >&6; }
14096 test no = "$dynamic_linker" && can_build_shared=no
14097
14098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14099 if test yes = "$GCC"; then
14100   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14101 fi
14102
14103 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14104   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14105 fi
14106
14107 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14108   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14109 fi
14110
14111 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14112 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14113
14114 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14115 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14116
14117 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14118 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14217 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14218 hardcode_action=
14219 if test -n "$hardcode_libdir_flag_spec" ||
14220    test -n "$runpath_var" ||
14221    test yes = "$hardcode_automatic"; then
14222
14223   # We can hardcode non-existent directories.
14224   if test no != "$hardcode_direct" &&
14225      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14226      # have to relink, otherwise we might link with an installed library
14227      # when we should be linking with a yet-to-be-installed one
14228      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14229      test no != "$hardcode_minus_L"; then
14230     # Linking always hardcodes the temporary library directory.
14231     hardcode_action=relink
14232   else
14233     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14234     hardcode_action=immediate
14235   fi
14236 else
14237   # We cannot hardcode anything, or else we can only hardcode existing
14238   # directories.
14239   hardcode_action=unsupported
14240 fi
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14242 $as_echo "$hardcode_action" >&6; }
14243
14244 if test relink = "$hardcode_action" ||
14245    test yes = "$inherit_rpath"; then
14246   # Fast installation is not supported
14247   enable_fast_install=no
14248 elif test yes = "$shlibpath_overrides_runpath" ||
14249      test no = "$enable_shared"; then
14250   # Fast installation is not necessary
14251   enable_fast_install=needless
14252 fi
14253
14254
14255
14256
14257
14258
14259   if test yes != "$enable_dlopen"; then
14260   enable_dlopen=unknown
14261   enable_dlopen_self=unknown
14262   enable_dlopen_self_static=unknown
14263 else
14264   lt_cv_dlopen=no
14265   lt_cv_dlopen_libs=
14266
14267   case $host_os in
14268   beos*)
14269     lt_cv_dlopen=load_add_on
14270     lt_cv_dlopen_libs=
14271     lt_cv_dlopen_self=yes
14272     ;;
14273
14274   mingw* | pw32* | cegcc*)
14275     lt_cv_dlopen=LoadLibrary
14276     lt_cv_dlopen_libs=
14277     ;;
14278
14279   cygwin*)
14280     lt_cv_dlopen=dlopen
14281     lt_cv_dlopen_libs=
14282     ;;
14283
14284   darwin*)
14285     # if libdl is installed we need to link against it
14286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14287 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14288 if ${ac_cv_lib_dl_dlopen+:} false; then :
14289   $as_echo_n "(cached) " >&6
14290 else
14291   ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-ldl  $LIBS"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h.  */
14295
14296 /* Override any GCC internal prototype to avoid an error.
14297    Use char because int might match the return type of a GCC
14298    builtin and then its argument prototype would still apply.  */
14299 #ifdef __cplusplus
14300 extern "C"
14301 #endif
14302 char dlopen ();
14303 int
14304 main ()
14305 {
14306 return dlopen ();
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312   ac_cv_lib_dl_dlopen=yes
14313 else
14314   ac_cv_lib_dl_dlopen=no
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext \
14317     conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14321 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14322 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14323   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14324 else
14325
14326     lt_cv_dlopen=dyld
14327     lt_cv_dlopen_libs=
14328     lt_cv_dlopen_self=yes
14329
14330 fi
14331
14332     ;;
14333
14334   tpf*)
14335     # Don't try to run any link tests for TPF.  We know it's impossible
14336     # because TPF is a cross-compiler, and we know how we open DSOs.
14337     lt_cv_dlopen=dlopen
14338     lt_cv_dlopen_libs=
14339     lt_cv_dlopen_self=no
14340     ;;
14341
14342   *)
14343     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14344 if test "x$ac_cv_func_shl_load" = xyes; then :
14345   lt_cv_dlopen=shl_load
14346 else
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14348 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14349 if ${ac_cv_lib_dld_shl_load+:} false; then :
14350   $as_echo_n "(cached) " >&6
14351 else
14352   ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-ldld  $LIBS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h.  */
14356
14357 /* Override any GCC internal prototype to avoid an error.
14358    Use char because int might match the return type of a GCC
14359    builtin and then its argument prototype would still apply.  */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char shl_load ();
14364 int
14365 main ()
14366 {
14367 return shl_load ();
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373   ac_cv_lib_dld_shl_load=yes
14374 else
14375   ac_cv_lib_dld_shl_load=no
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext \
14378     conftest$ac_exeext conftest.$ac_ext
14379 LIBS=$ac_check_lib_save_LIBS
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14382 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14383 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14384   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14385 else
14386   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14387 if test "x$ac_cv_func_dlopen" = xyes; then :
14388   lt_cv_dlopen=dlopen
14389 else
14390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14391 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14392 if ${ac_cv_lib_dl_dlopen+:} false; then :
14393   $as_echo_n "(cached) " >&6
14394 else
14395   ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-ldl  $LIBS"
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h.  */
14399
14400 /* Override any GCC internal prototype to avoid an error.
14401    Use char because int might match the return type of a GCC
14402    builtin and then its argument prototype would still apply.  */
14403 #ifdef __cplusplus
14404 extern "C"
14405 #endif
14406 char dlopen ();
14407 int
14408 main ()
14409 {
14410 return dlopen ();
14411   ;
14412   return 0;
14413 }
14414 _ACEOF
14415 if ac_fn_c_try_link "$LINENO"; then :
14416   ac_cv_lib_dl_dlopen=yes
14417 else
14418   ac_cv_lib_dl_dlopen=no
14419 fi
14420 rm -f core conftest.err conftest.$ac_objext \
14421     conftest$ac_exeext conftest.$ac_ext
14422 LIBS=$ac_check_lib_save_LIBS
14423 fi
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14425 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14426 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14427   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14428 else
14429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14430 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14431 if ${ac_cv_lib_svld_dlopen+:} false; then :
14432   $as_echo_n "(cached) " >&6
14433 else
14434   ac_check_lib_save_LIBS=$LIBS
14435 LIBS="-lsvld  $LIBS"
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h.  */
14438
14439 /* Override any GCC internal prototype to avoid an error.
14440    Use char because int might match the return type of a GCC
14441    builtin and then its argument prototype would still apply.  */
14442 #ifdef __cplusplus
14443 extern "C"
14444 #endif
14445 char dlopen ();
14446 int
14447 main ()
14448 {
14449 return dlopen ();
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_link "$LINENO"; then :
14455   ac_cv_lib_svld_dlopen=yes
14456 else
14457   ac_cv_lib_svld_dlopen=no
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext \
14460     conftest$ac_exeext conftest.$ac_ext
14461 LIBS=$ac_check_lib_save_LIBS
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14464 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14465 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14466   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14467 else
14468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14469 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14470 if ${ac_cv_lib_dld_dld_link+:} false; then :
14471   $as_echo_n "(cached) " >&6
14472 else
14473   ac_check_lib_save_LIBS=$LIBS
14474 LIBS="-ldld  $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 dld_link ();
14485 int
14486 main ()
14487 {
14488 return dld_link ();
14489   ;
14490   return 0;
14491 }
14492 _ACEOF
14493 if ac_fn_c_try_link "$LINENO"; then :
14494   ac_cv_lib_dld_dld_link=yes
14495 else
14496   ac_cv_lib_dld_dld_link=no
14497 fi
14498 rm -f core conftest.err conftest.$ac_objext \
14499     conftest$ac_exeext conftest.$ac_ext
14500 LIBS=$ac_check_lib_save_LIBS
14501 fi
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14503 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14504 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14505   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14506 fi
14507
14508
14509 fi
14510
14511
14512 fi
14513
14514
14515 fi
14516
14517
14518 fi
14519
14520
14521 fi
14522
14523     ;;
14524   esac
14525
14526   if test no = "$lt_cv_dlopen"; then
14527     enable_dlopen=no
14528   else
14529     enable_dlopen=yes
14530   fi
14531
14532   case $lt_cv_dlopen in
14533   dlopen)
14534     save_CPPFLAGS=$CPPFLAGS
14535     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14536
14537     save_LDFLAGS=$LDFLAGS
14538     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14539
14540     save_LIBS=$LIBS
14541     LIBS="$lt_cv_dlopen_libs $LIBS"
14542
14543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14544 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14545 if ${lt_cv_dlopen_self+:} false; then :
14546   $as_echo_n "(cached) " >&6
14547 else
14548           if test yes = "$cross_compiling"; then :
14549   lt_cv_dlopen_self=cross
14550 else
14551   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14552   lt_status=$lt_dlunknown
14553   cat > conftest.$ac_ext <<_LT_EOF
14554 #line $LINENO "configure"
14555 #include "confdefs.h"
14556
14557 #if HAVE_DLFCN_H
14558 #include <dlfcn.h>
14559 #endif
14560
14561 #include <stdio.h>
14562
14563 #ifdef RTLD_GLOBAL
14564 #  define LT_DLGLOBAL           RTLD_GLOBAL
14565 #else
14566 #  ifdef DL_GLOBAL
14567 #    define LT_DLGLOBAL         DL_GLOBAL
14568 #  else
14569 #    define LT_DLGLOBAL         0
14570 #  endif
14571 #endif
14572
14573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14574    find out it does not work in some platform. */
14575 #ifndef LT_DLLAZY_OR_NOW
14576 #  ifdef RTLD_LAZY
14577 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14578 #  else
14579 #    ifdef DL_LAZY
14580 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14581 #    else
14582 #      ifdef RTLD_NOW
14583 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14584 #      else
14585 #        ifdef DL_NOW
14586 #          define LT_DLLAZY_OR_NOW      DL_NOW
14587 #        else
14588 #          define LT_DLLAZY_OR_NOW      0
14589 #        endif
14590 #      endif
14591 #    endif
14592 #  endif
14593 #endif
14594
14595 /* When -fvisibility=hidden is used, assume the code has been annotated
14596    correspondingly for the symbols needed.  */
14597 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14598 int fnord () __attribute__((visibility("default")));
14599 #endif
14600
14601 int fnord () { return 42; }
14602 int main ()
14603 {
14604   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14605   int status = $lt_dlunknown;
14606
14607   if (self)
14608     {
14609       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14610       else
14611         {
14612           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14613           else puts (dlerror ());
14614         }
14615       /* dlclose (self); */
14616     }
14617   else
14618     puts (dlerror ());
14619
14620   return status;
14621 }
14622 _LT_EOF
14623   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14624   (eval $ac_link) 2>&5
14625   ac_status=$?
14626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14627   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14628     (./conftest; exit; ) >&5 2>/dev/null
14629     lt_status=$?
14630     case x$lt_status in
14631       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14632       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14633       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14634     esac
14635   else :
14636     # compilation failed
14637     lt_cv_dlopen_self=no
14638   fi
14639 fi
14640 rm -fr conftest*
14641
14642
14643 fi
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14645 $as_echo "$lt_cv_dlopen_self" >&6; }
14646
14647     if test yes = "$lt_cv_dlopen_self"; then
14648       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14649       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14650 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14651 if ${lt_cv_dlopen_self_static+:} false; then :
14652   $as_echo_n "(cached) " >&6
14653 else
14654           if test yes = "$cross_compiling"; then :
14655   lt_cv_dlopen_self_static=cross
14656 else
14657   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14658   lt_status=$lt_dlunknown
14659   cat > conftest.$ac_ext <<_LT_EOF
14660 #line $LINENO "configure"
14661 #include "confdefs.h"
14662
14663 #if HAVE_DLFCN_H
14664 #include <dlfcn.h>
14665 #endif
14666
14667 #include <stdio.h>
14668
14669 #ifdef RTLD_GLOBAL
14670 #  define LT_DLGLOBAL           RTLD_GLOBAL
14671 #else
14672 #  ifdef DL_GLOBAL
14673 #    define LT_DLGLOBAL         DL_GLOBAL
14674 #  else
14675 #    define LT_DLGLOBAL         0
14676 #  endif
14677 #endif
14678
14679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14680    find out it does not work in some platform. */
14681 #ifndef LT_DLLAZY_OR_NOW
14682 #  ifdef RTLD_LAZY
14683 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14684 #  else
14685 #    ifdef DL_LAZY
14686 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14687 #    else
14688 #      ifdef RTLD_NOW
14689 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14690 #      else
14691 #        ifdef DL_NOW
14692 #          define LT_DLLAZY_OR_NOW      DL_NOW
14693 #        else
14694 #          define LT_DLLAZY_OR_NOW      0
14695 #        endif
14696 #      endif
14697 #    endif
14698 #  endif
14699 #endif
14700
14701 /* When -fvisibility=hidden is used, assume the code has been annotated
14702    correspondingly for the symbols needed.  */
14703 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14704 int fnord () __attribute__((visibility("default")));
14705 #endif
14706
14707 int fnord () { return 42; }
14708 int main ()
14709 {
14710   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14711   int status = $lt_dlunknown;
14712
14713   if (self)
14714     {
14715       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14716       else
14717         {
14718           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14719           else puts (dlerror ());
14720         }
14721       /* dlclose (self); */
14722     }
14723   else
14724     puts (dlerror ());
14725
14726   return status;
14727 }
14728 _LT_EOF
14729   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14730   (eval $ac_link) 2>&5
14731   ac_status=$?
14732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14733   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14734     (./conftest; exit; ) >&5 2>/dev/null
14735     lt_status=$?
14736     case x$lt_status in
14737       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14738       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14739       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14740     esac
14741   else :
14742     # compilation failed
14743     lt_cv_dlopen_self_static=no
14744   fi
14745 fi
14746 rm -fr conftest*
14747
14748
14749 fi
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14751 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14752     fi
14753
14754     CPPFLAGS=$save_CPPFLAGS
14755     LDFLAGS=$save_LDFLAGS
14756     LIBS=$save_LIBS
14757     ;;
14758   esac
14759
14760   case $lt_cv_dlopen_self in
14761   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14762   *) enable_dlopen_self=unknown ;;
14763   esac
14764
14765   case $lt_cv_dlopen_self_static in
14766   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14767   *) enable_dlopen_self_static=unknown ;;
14768   esac
14769 fi
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787 striplib=
14788 old_striplib=
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14790 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14791 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14792   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14793   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14795 $as_echo "yes" >&6; }
14796 else
14797 # FIXME - insert some real tests, host_os isn't really good enough
14798   case $host_os in
14799   darwin*)
14800     if test -n "$STRIP"; then
14801       striplib="$STRIP -x"
14802       old_striplib="$STRIP -S"
14803       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14804 $as_echo "yes" >&6; }
14805     else
14806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14808     fi
14809     ;;
14810   *)
14811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812 $as_echo "no" >&6; }
14813     ;;
14814   esac
14815 fi
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828   # Report what library types will actually be built
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14830 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14832 $as_echo "$can_build_shared" >&6; }
14833
14834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14835 $as_echo_n "checking whether to build shared libraries... " >&6; }
14836   test no = "$can_build_shared" && enable_shared=no
14837
14838   # On AIX, shared libraries and static libraries use the same namespace, and
14839   # are all built from PIC.
14840   case $host_os in
14841   aix3*)
14842     test yes = "$enable_shared" && enable_static=no
14843     if test -n "$RANLIB"; then
14844       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14845       postinstall_cmds='$RANLIB $lib'
14846     fi
14847     ;;
14848
14849   aix[4-9]*)
14850     if test ia64 != "$host_cpu"; then
14851       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14852       yes,aix,yes) ;;                   # shared object as lib.so file only
14853       yes,svr4,*) ;;                    # shared object as lib.so archive member only
14854       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
14855       esac
14856     fi
14857     ;;
14858   esac
14859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14860 $as_echo "$enable_shared" >&6; }
14861
14862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14863 $as_echo_n "checking whether to build static libraries... " >&6; }
14864   # Make sure either enable_shared or enable_static is yes.
14865   test yes = "$enable_shared" || enable_static=yes
14866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14867 $as_echo "$enable_static" >&6; }
14868
14869
14870
14871
14872 fi
14873 ac_ext=c
14874 ac_cpp='$CPP $CPPFLAGS'
14875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14878
14879 CC=$lt_save_CC
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895         ac_config_commands="$ac_config_commands libtool"
14896
14897
14898
14899
14900 # Only expand once:
14901
14902
14903
14904 # Extract the first word of "valgrind", so it can be a program name with args.
14905 set dummy valgrind; ac_word=$2
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14907 $as_echo_n "checking for $ac_word... " >&6; }
14908 if ${ac_cv_path_PATH_VALGRIND+:} false; then :
14909   $as_echo_n "(cached) " >&6
14910 else
14911   case $PATH_VALGRIND in
14912   [\\/]* | ?:[\\/]*)
14913   ac_cv_path_PATH_VALGRIND="$PATH_VALGRIND" # Let the user override the test with a path.
14914   ;;
14915   *)
14916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14918 do
14919   IFS=$as_save_IFS
14920   test -z "$as_dir" && as_dir=.
14921     for ac_exec_ext in '' $ac_executable_extensions; do
14922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14923     ac_cv_path_PATH_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14925     break 2
14926   fi
14927 done
14928   done
14929 IFS=$as_save_IFS
14930
14931   ;;
14932 esac
14933 fi
14934 PATH_VALGRIND=$ac_cv_path_PATH_VALGRIND
14935 if test -n "$PATH_VALGRIND"; then
14936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_VALGRIND" >&5
14937 $as_echo "$PATH_VALGRIND" >&6; }
14938 else
14939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14940 $as_echo "no" >&6; }
14941 fi
14942
14943
14944
14945 rra_lib_arch_name=lib
14946  # The cast to long int works around a bug in the HP C Compiler
14947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14949 # This bug is HP SR number 8606223364.
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14951 $as_echo_n "checking size of long... " >&6; }
14952 if ${ac_cv_sizeof_long+:} false; then :
14953   $as_echo_n "(cached) " >&6
14954 else
14955   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14956
14957 else
14958   if test "$ac_cv_type_long" = yes; then
14959      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14961 as_fn_error 77 "cannot compute sizeof (long)
14962 See \`config.log' for more details" "$LINENO" 5; }
14963    else
14964      ac_cv_sizeof_long=0
14965    fi
14966 fi
14967
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14970 $as_echo "$ac_cv_sizeof_long" >&6; }
14971
14972
14973
14974 cat >>confdefs.h <<_ACEOF
14975 #define SIZEOF_LONG $ac_cv_sizeof_long
14976 _ACEOF
14977
14978
14979  if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then :
14980   rra_lib_arch_name=lib32
14981 else
14982   if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then :
14983   rra_lib_arch_name=lib64
14984 fi
14985 fi
14986 rra_CDB_root=
14987  rra_CDB_libdir=
14988  rra_CDB_includedir=
14989  rra_use_CDB=
14990  CDB_CPPFLAGS=
14991  CDB_LDFLAGS=
14992  CDB_LIBS=
14993
14994
14995
14996
14997 # Check whether --with-tinycdb was given.
14998 if test "${with_tinycdb+set}" = set; then :
14999   withval=$with_tinycdb; if test x"$withval" = xno; then :
15000   rra_use_CDB=false
15001 else
15002   if test x"$withval" != xyes; then :
15003   rra_CDB_root="$withval"
15004 fi
15005          rra_use_CDB=true
15006 fi
15007 fi
15008
15009
15010 # Check whether --with-tinycdb-include was given.
15011 if test "${with_tinycdb_include+set}" = set; then :
15012   withval=$with_tinycdb_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
15013   rra_CDB_includedir="$withval"
15014 fi
15015 fi
15016
15017
15018 # Check whether --with-tinycdb-lib was given.
15019 if test "${with_tinycdb_lib+set}" = set; then :
15020   withval=$with_tinycdb_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
15021   rra_CDB_libdir="$withval"
15022 fi
15023 fi
15024
15025  if test x"$rra_use_CDB" != xfalse; then :
15026   if test x"$rra_use_CDB" = xtrue; then :
15027   if test x"$rra_CDB_libdir" != x; then :
15028   CDB_LDFLAGS="-L$rra_CDB_libdir"
15029 else
15030   if test x"$rra_CDB_root" != x; then :
15031
15032  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
15033   if test x"" = x; then :
15034   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
15035 else
15036   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
15037 fi
15038 else
15039   if test x"" = x; then :
15040   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
15041 else
15042   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
15043 fi
15044 fi
15045  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
15046 fi
15047 fi
15048  if test x"$rra_CDB_includedir" != x; then :
15049   CDB_CPPFLAGS="-I$rra_CDB_includedir"
15050 else
15051   if test x"$rra_CDB_root" != x; then :
15052   if test x"$rra_CDB_root" != x/usr; then :
15053   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
15054 fi
15055 fi
15056 fi
15057  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
15058  rra_CDB_save_LDFLAGS="$LDFLAGS"
15059  rra_CDB_save_LIBS="$LIBS"
15060  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
15061  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
15062  LIBS="$CDB_LIBS $LIBS"
15063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
15064 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
15065 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
15066   $as_echo_n "(cached) " >&6
15067 else
15068   ac_check_lib_save_LIBS=$LIBS
15069 LIBS="-lcdb  $LIBS"
15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h.  */
15072
15073 /* Override any GCC internal prototype to avoid an error.
15074    Use char because int might match the return type of a GCC
15075    builtin and then its argument prototype would still apply.  */
15076 #ifdef __cplusplus
15077 extern "C"
15078 #endif
15079 char cdb_init ();
15080 int
15081 main ()
15082 {
15083 return cdb_init ();
15084   ;
15085   return 0;
15086 }
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089   ac_cv_lib_cdb_cdb_init=yes
15090 else
15091   ac_cv_lib_cdb_cdb_init=no
15092 fi
15093 rm -f core conftest.err conftest.$ac_objext \
15094     conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15096 fi
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
15098 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
15099 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
15100   CDB_LIBS=-lcdb
15101 else
15102   if test x"true" = xtrue; then :
15103   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
15104 fi
15105 fi
15106
15107  for ac_header in cdb.h
15108 do :
15109   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
15110 if test "x$ac_cv_header_cdb_h" = xyes; then :
15111   cat >>confdefs.h <<_ACEOF
15112 #define HAVE_CDB_H 1
15113 _ACEOF
15114
15115 fi
15116
15117 done
15118
15119  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
15120  LDFLAGS="$rra_CDB_save_LDFLAGS"
15121  LIBS="$rra_CDB_save_LIBS"
15122 else
15123   if test x"$rra_CDB_libdir" != x; then :
15124   CDB_LDFLAGS="-L$rra_CDB_libdir"
15125 else
15126   if test x"$rra_CDB_root" != x; then :
15127
15128  if test -d "${rra_CDB_root}/$rra_lib_arch_name"; then :
15129   if test x"" = x; then :
15130   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
15131 else
15132   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
15133 fi
15134 else
15135   if test x"" = x; then :
15136   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
15137 else
15138   CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
15139 fi
15140 fi
15141  CDB_LDFLAGS=`echo "$CDB_LDFLAGS" | sed -e 's/^ *//'`
15142 fi
15143 fi
15144  if test x"$rra_CDB_includedir" != x; then :
15145   CDB_CPPFLAGS="-I$rra_CDB_includedir"
15146 else
15147   if test x"$rra_CDB_root" != x; then :
15148   if test x"$rra_CDB_root" != x/usr; then :
15149   CDB_CPPFLAGS="-I${rra_CDB_root}/include"
15150 fi
15151 fi
15152 fi
15153  rra_CDB_save_CPPFLAGS="$CPPFLAGS"
15154  rra_CDB_save_LDFLAGS="$LDFLAGS"
15155  rra_CDB_save_LIBS="$LIBS"
15156  CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
15157  LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
15158  LIBS="$CDB_LIBS $LIBS"
15159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
15160 $as_echo_n "checking for cdb_init in -lcdb... " >&6; }
15161 if ${ac_cv_lib_cdb_cdb_init+:} false; then :
15162   $as_echo_n "(cached) " >&6
15163 else
15164   ac_check_lib_save_LIBS=$LIBS
15165 LIBS="-lcdb  $LIBS"
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h.  */
15168
15169 /* Override any GCC internal prototype to avoid an error.
15170    Use char because int might match the return type of a GCC
15171    builtin and then its argument prototype would still apply.  */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 char cdb_init ();
15176 int
15177 main ()
15178 {
15179 return cdb_init ();
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"; then :
15185   ac_cv_lib_cdb_cdb_init=yes
15186 else
15187   ac_cv_lib_cdb_cdb_init=no
15188 fi
15189 rm -f core conftest.err conftest.$ac_objext \
15190     conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15192 fi
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
15194 $as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
15195 if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
15196   CDB_LIBS=-lcdb
15197 else
15198   if test x"false" = xtrue; then :
15199   as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
15200 fi
15201 fi
15202
15203  for ac_header in cdb.h
15204 do :
15205   ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
15206 if test "x$ac_cv_header_cdb_h" = xyes; then :
15207   cat >>confdefs.h <<_ACEOF
15208 #define HAVE_CDB_H 1
15209 _ACEOF
15210
15211 fi
15212
15213 done
15214
15215  CPPFLAGS="$rra_CDB_save_CPPFLAGS"
15216  LDFLAGS="$rra_CDB_save_LDFLAGS"
15217  LIBS="$rra_CDB_save_LIBS"
15218 fi
15219 fi
15220  if test x"$CDB_LIBS" != x; then :
15221   rra_use_CDB=true
15222
15223 $as_echo "#define HAVE_CDB 1" >>confdefs.h
15224
15225 fi
15226 rra_CRACKLIB_root=
15227  rra_CRACKLIB_libdir=
15228  rra_CRACKLIB_includedir=
15229  rra_use_CRACKLIB=
15230  CRACKLIB_CPPFLAGS=
15231  CRACKLIB_LDFLAGS=
15232  CRACKLIB_LIBS=
15233
15234
15235
15236
15237
15238 # Check whether --with-cracklib was given.
15239 if test "${with_cracklib+set}" = set; then :
15240   withval=$with_cracklib; if test x"$withval" = xno; then :
15241   rra_use_CRACKLIB=false
15242 else
15243   rra_use_CRACKLIB=true
15244          if test x"$withval" != xyes; then :
15245   rra_CRACKLIB_root="$withval"
15246 fi
15247 fi
15248 fi
15249
15250
15251 # Check whether --with-cracklib-include was given.
15252 if test "${with_cracklib_include+set}" = set; then :
15253   withval=$with_cracklib_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
15254   rra_CRACKLIB_includedir="$withval"
15255 fi
15256 fi
15257
15258
15259 # Check whether --with-cracklib-lib was given.
15260 if test "${with_cracklib_lib+set}" = set; then :
15261   withval=$with_cracklib_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
15262   rra_CRACKLIB_libdir="$withval"
15263 fi
15264 fi
15265
15266
15267   if test x"$rra_use_CRACKLIB" != xfalse; then :
15268   if test x"$rra_use_CRACKLIB" != x; then :
15269   if test x"$rra_CRACKLIB_libdir" != x; then :
15270   CRACKLIB_LDFLAGS="-L$rra_CRACKLIB_libdir"
15271 else
15272   if test x"$rra_CRACKLIB_root" != x; then :
15273
15274  if test -d "${rra_CRACKLIB_root}/$rra_lib_arch_name"; then :
15275   if test x"" = x; then :
15276   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/${rra_lib_arch_name}"
15277 else
15278   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/${rra_lib_arch_name}/"
15279 fi
15280 else
15281   if test x"" = x; then :
15282   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/lib"
15283 else
15284   CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/lib/"
15285 fi
15286 fi
15287  CRACKLIB_LDFLAGS=`echo "$CRACKLIB_LDFLAGS" | sed -e 's/^ *//'`
15288 fi
15289 fi
15290  if test x"$rra_CRACKLIB_includedir" != x; then :
15291   CRACKLIB_CPPFLAGS="-I$rra_CRACKLIB_includedir"
15292 else
15293   if test x"$rra_CRACKLIB_root" != x; then :
15294   if test x"$rra_CRACKLIB_root" != x/usr; then :
15295   CRACKLIB_CPPFLAGS="-I${rra_CRACKLIB_root}/include"
15296 fi
15297 fi
15298 fi
15299  rra_CRACKLIB_save_CPPFLAGS="$CPPFLAGS"
15300  rra_CRACKLIB_save_LDFLAGS="$LDFLAGS"
15301  rra_CRACKLIB_save_LIBS="$LIBS"
15302  CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
15303  LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
15304  LIBS="$CRACKLIB_LIBS $LIBS"
15305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistCheck in -lcrack" >&5
15306 $as_echo_n "checking for FascistCheck in -lcrack... " >&6; }
15307 if ${ac_cv_lib_crack_FascistCheck+:} false; then :
15308   $as_echo_n "(cached) " >&6
15309 else
15310   ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-lcrack  $LIBS"
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h.  */
15314
15315 /* Override any GCC internal prototype to avoid an error.
15316    Use char because int might match the return type of a GCC
15317    builtin and then its argument prototype would still apply.  */
15318 #ifdef __cplusplus
15319 extern "C"
15320 #endif
15321 char FascistCheck ();
15322 int
15323 main ()
15324 {
15325 return FascistCheck ();
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 if ac_fn_c_try_link "$LINENO"; then :
15331   ac_cv_lib_crack_FascistCheck=yes
15332 else
15333   ac_cv_lib_crack_FascistCheck=no
15334 fi
15335 rm -f core conftest.err conftest.$ac_objext \
15336     conftest$ac_exeext conftest.$ac_ext
15337 LIBS=$ac_check_lib_save_LIBS
15338 fi
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistCheck" >&5
15340 $as_echo "$ac_cv_lib_crack_FascistCheck" >&6; }
15341 if test "x$ac_cv_lib_crack_FascistCheck" = xyes; then :
15342   CRACKLIB_LIBS=-lcrack
15343 else
15344   as_fn_error $? "cannot find usable CrackLib library" "$LINENO" 5
15345 fi
15346
15347  for ac_header in crack.h
15348 do :
15349   ac_fn_c_check_header_mongrel "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
15350 if test "x$ac_cv_header_crack_h" = xyes; then :
15351   cat >>confdefs.h <<_ACEOF
15352 #define HAVE_CRACK_H 1
15353 _ACEOF
15354
15355 fi
15356
15357 done
15358
15359
15360 $as_echo "#define HAVE_SYSTEM_CRACKLIB 1" >>confdefs.h
15361
15362  CPPFLAGS="$rra_CRACKLIB_save_CPPFLAGS"
15363  LDFLAGS="$rra_CRACKLIB_save_LDFLAGS"
15364  LIBS="$rra_CRACKLIB_save_LIBS"
15365 fi
15366
15367 $as_echo "#define HAVE_CRACKLIB 1" >>confdefs.h
15368
15369 fi
15370   if test x"$rra_use_CRACKLIB" = x; then
15371   EMBEDDED_CRACKLIB_TRUE=
15372   EMBEDDED_CRACKLIB_FALSE='#'
15373 else
15374   EMBEDDED_CRACKLIB_TRUE='#'
15375   EMBEDDED_CRACKLIB_FALSE=
15376 fi
15377
15378 rra_reduced_depends=false
15379 # Check whether --enable-reduced-depends was given.
15380 if test "${enable_reduced_depends+set}" = set; then :
15381   enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then :
15382   rra_reduced_depends=true
15383 fi
15384 fi
15385
15386 rra_krb5_root=
15387  rra_krb5_libdir=
15388  rra_krb5_includedir=
15389  rra_use_KRB5=true
15390
15391
15392 # Check whether --with-krb5 was given.
15393 if test "${with_krb5+set}" = set; then :
15394   withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then :
15395   rra_krb5_root="$withval"
15396 fi
15397 fi
15398
15399
15400 # Check whether --with-krb5-include was given.
15401 if test "${with_krb5_include+set}" = set; then :
15402   withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
15403   rra_krb5_includedir="$withval"
15404 fi
15405 fi
15406
15407
15408 # Check whether --with-krb5-lib was given.
15409 if test "${with_krb5_lib+set}" = set; then :
15410   withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
15411   rra_krb5_libdir="$withval"
15412 fi
15413 fi
15414
15415
15416  rra_krb5_incroot=
15417
15418
15419
15420
15421  if test x"$rra_krb5_includedir" != x; then :
15422   rra_krb5_incroot="$rra_krb5_includedir"
15423 else
15424   if test x"$rra_krb5_root" != x; then :
15425   rra_krb5_incroot="${rra_krb5_root}/include"
15426 fi
15427 fi
15428  if test x"$rra_reduced_depends" = xtrue; then :
15429   if test x"$rra_krb5_libdir" != x; then :
15430   KRB5_LDFLAGS="-L$rra_krb5_libdir"
15431 else
15432   if test x"$rra_krb5_root" != x; then :
15433
15434  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15435   if test x"" = x; then :
15436   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15437 else
15438   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15439 fi
15440 else
15441   if test x"" = x; then :
15442   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15443 else
15444   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15445 fi
15446 fi
15447  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15448 fi
15449 fi
15450  if test x"$rra_krb5_includedir" != x; then :
15451   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15452 else
15453   if test x"$rra_krb5_root" != x; then :
15454   if test x"$rra_krb5_root" != x/usr; then :
15455   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15456 fi
15457 fi
15458 fi
15459      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15460  rra_krb5_save_LDFLAGS="$LDFLAGS"
15461  rra_krb5_save_LIBS="$LIBS"
15462  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15463  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15464  LIBS="$KRB5_LIBS $LIBS"
15465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15466 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15467 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15468   $as_echo_n "(cached) " >&6
15469 else
15470   ac_check_lib_save_LIBS=$LIBS
15471 LIBS="-lkrb5  $LIBS"
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h.  */
15474
15475 /* Override any GCC internal prototype to avoid an error.
15476    Use char because int might match the return type of a GCC
15477    builtin and then its argument prototype would still apply.  */
15478 #ifdef __cplusplus
15479 extern "C"
15480 #endif
15481 char krb5_init_context ();
15482 int
15483 main ()
15484 {
15485 return krb5_init_context ();
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 if ac_fn_c_try_link "$LINENO"; then :
15491   ac_cv_lib_krb5_krb5_init_context=yes
15492 else
15493   ac_cv_lib_krb5_krb5_init_context=no
15494 fi
15495 rm -f core conftest.err conftest.$ac_objext \
15496     conftest$ac_exeext conftest.$ac_ext
15497 LIBS=$ac_check_lib_save_LIBS
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15500 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15501 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15502   KRB5_LIBS="-lkrb5"
15503      LIBS="$KRB5_LIBS $LIBS"
15504      if test x"$rra_krb5_incroot" = x; then :
15505   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
15506 do :
15507   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15508 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15509 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15510   cat >>confdefs.h <<_ACEOF
15511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512 _ACEOF
15513
15514 fi
15515
15516 done
15517
15518 else
15519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
15520 $as_echo_n "checking for krb5.h... " >&6; }
15521  if test -f "${rra_krb5_incroot}/krb5.h"; then :
15522
15523 cat >>confdefs.h <<_ACEOF
15524 #define HAVE_KRB5_H 1
15525 _ACEOF
15526
15527      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15528 $as_echo "yes" >&6; }
15529 else
15530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15531 $as_echo "no" >&6; }
15532 fi
15533       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
15534 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
15535  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
15536
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_KERBEROSV5_KRB5_H 1
15539 _ACEOF
15540
15541      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15542 $as_echo "yes" >&6; }
15543 else
15544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545 $as_echo "no" >&6; }
15546 fi
15547       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
15548 $as_echo_n "checking for krb5/krb5.h... " >&6; }
15549  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
15550
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_KRB5_KRB5_H 1
15553 _ACEOF
15554
15555      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15556 $as_echo "yes" >&6; }
15557 else
15558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15559 $as_echo "no" >&6; }
15560 fi
15561 fi
15562      for ac_func in krb5_get_error_message
15563 do :
15564   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
15565 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
15566   cat >>confdefs.h <<_ACEOF
15567 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
15568 _ACEOF
15569  for ac_func in krb5_free_error_message
15570 do :
15571   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
15572 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
15573   cat >>confdefs.h <<_ACEOF
15574 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
15575 _ACEOF
15576
15577 fi
15578 done
15579
15580 else
15581   for ac_func in krb5_get_error_string
15582 do :
15583   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
15584 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
15585   cat >>confdefs.h <<_ACEOF
15586 #define HAVE_KRB5_GET_ERROR_STRING 1
15587 _ACEOF
15588
15589 else
15590   for ac_func in krb5_get_err_txt
15591 do :
15592   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
15593 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
15594   cat >>confdefs.h <<_ACEOF
15595 #define HAVE_KRB5_GET_ERR_TXT 1
15596 _ACEOF
15597
15598 else
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15600 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15601 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15602   $as_echo_n "(cached) " >&6
15603 else
15604   ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-lksvc  $LIBS"
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h.  */
15608
15609 /* Override any GCC internal prototype to avoid an error.
15610    Use char because int might match the return type of a GCC
15611    builtin and then its argument prototype would still apply.  */
15612 #ifdef __cplusplus
15613 extern "C"
15614 #endif
15615 char krb5_svc_get_msg ();
15616 int
15617 main ()
15618 {
15619 return krb5_svc_get_msg ();
15620   ;
15621   return 0;
15622 }
15623 _ACEOF
15624 if ac_fn_c_try_link "$LINENO"; then :
15625   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15626 else
15627   ac_cv_lib_ksvc_krb5_svc_get_msg=no
15628 fi
15629 rm -f core conftest.err conftest.$ac_objext \
15630     conftest$ac_exeext conftest.$ac_ext
15631 LIBS=$ac_check_lib_save_LIBS
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15634 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15635 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15636   KRB5_LIBS="$KRB5_LIBS -lksvc"
15637                      $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
15638
15639                      for ac_header in ibm_svc/krb5_svc.h
15640 do :
15641   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
15642 #if HAVE_KRB5_H
15643 # include <krb5.h>
15644 #elif HAVE_KERBEROSV5_KRB5_H
15645 # include <kerberosv5/krb5.h>
15646 #else
15647 # include <krb5/krb5.h>
15648 #endif
15649
15650 "
15651 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
15652   cat >>confdefs.h <<_ACEOF
15653 #define HAVE_IBM_SVC_KRB5_SVC_H 1
15654 _ACEOF
15655
15656 fi
15657
15658 done
15659
15660 else
15661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15662 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15663 if ${ac_cv_lib_com_err_com_err+:} false; then :
15664   $as_echo_n "(cached) " >&6
15665 else
15666   ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lcom_err  $LIBS"
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h.  */
15670
15671 /* Override any GCC internal prototype to avoid an error.
15672    Use char because int might match the return type of a GCC
15673    builtin and then its argument prototype would still apply.  */
15674 #ifdef __cplusplus
15675 extern "C"
15676 #endif
15677 char com_err ();
15678 int
15679 main ()
15680 {
15681 return com_err ();
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 if ac_fn_c_try_link "$LINENO"; then :
15687   ac_cv_lib_com_err_com_err=yes
15688 else
15689   ac_cv_lib_com_err_com_err=no
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext \
15692     conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_check_lib_save_LIBS
15694 fi
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15696 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15697 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
15698   KRB5_LIBS="$KRB5_LIBS -lcom_err"
15699 else
15700   if test x"true" = xtrue; then :
15701   as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
15702 else
15703   KRB5_LIBS=""
15704 fi
15705 fi
15706
15707                      if test x"$rra_krb5_incroot" = x; then :
15708   for ac_header in et/com_err.h kerberosv5/com_err.h
15709 do :
15710   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15713   cat >>confdefs.h <<_ACEOF
15714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15715 _ACEOF
15716
15717 fi
15718
15719 done
15720
15721 else
15722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
15723 $as_echo_n "checking for et/com_err.h... " >&6; }
15724  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
15725
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_ET_COM_ERR_H 1
15728 _ACEOF
15729
15730      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15731 $as_echo "yes" >&6; }
15732 else
15733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734 $as_echo "no" >&6; }
15735 fi
15736          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
15737 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
15738  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
15739
15740 cat >>confdefs.h <<_ACEOF
15741 #define HAVE_KERBEROSV5_COM_ERR_H 1
15742 _ACEOF
15743
15744      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15745 $as_echo "yes" >&6; }
15746 else
15747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748 $as_echo "no" >&6; }
15749 fi
15750 fi
15751 fi
15752
15753 fi
15754 done
15755
15756 fi
15757 done
15758
15759 fi
15760 done
15761
15762 else
15763   if test x"true" = xtrue; then :
15764   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
15765 fi
15766 fi
15767
15768  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15769  LDFLAGS="$rra_krb5_save_LDFLAGS"
15770  LIBS="$rra_krb5_save_LIBS"
15771 else
15772   if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
15773   rra_krb5_config_KRB5=
15774  rra_krb5_config_KRB5_ok=
15775  if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
15776   rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
15777 else
15778
15779  # Extract the first word of "krb5-config", so it can be a program name with args.
15780 set dummy krb5-config; ac_word=$2
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15782 $as_echo_n "checking for $ac_word... " >&6; }
15783 if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then :
15784   $as_echo_n "(cached) " >&6
15785 else
15786   case $PATH_KRB5_CONFIG in
15787   [\\/]* | ?:[\\/]*)
15788   ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
15789   ;;
15790   *)
15791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 as_dummy="${PATH}:/usr/kerberos/bin"
15793 for as_dir in $as_dummy
15794 do
15795   IFS=$as_save_IFS
15796   test -z "$as_dir" && as_dir=.
15797     for ac_exec_ext in '' $ac_executable_extensions; do
15798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799     ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801     break 2
15802   fi
15803 done
15804   done
15805 IFS=$as_save_IFS
15806
15807   ;;
15808 esac
15809 fi
15810 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
15811 if test -n "$PATH_KRB5_CONFIG"; then
15812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
15813 $as_echo "$PATH_KRB5_CONFIG" >&6; }
15814 else
15815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15817 fi
15818
15819
15820      rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
15821 fi
15822  if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
15823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
15824 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
15825 if ${rra_cv_lib_KRB5_config+:} false; then :
15826   $as_echo_n "(cached) " >&6
15827 else
15828   if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
15829   rra_cv_lib_KRB5_config=yes
15830 else
15831   rra_cv_lib_KRB5_config=no
15832 fi
15833 fi
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
15835 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
15836      if test "$rra_cv_lib_KRB5_config" = yes; then :
15837   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
15838
15839
15840
15841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
15842 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
15843 if ${rra_cv_krb5_config_deps+:} false; then :
15844   $as_echo_n "(cached) " >&6
15845 else
15846   if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
15847   rra_cv_krb5_config_deps=yes
15848 else
15849   rra_cv_krb5_config_deps=no
15850 fi
15851 fi
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
15853 $as_echo "$rra_cv_krb5_config_deps" >&6; }
15854  if test x"$rra_reduced_depends" = xfalse \
15855         && test x"$rra_cv_krb5_config_deps" = xyes; then :
15856   KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
15857 else
15858   KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
15859 fi
15860          rra_krb5_config_KRB5_ok=yes
15861 else
15862   if test x"krb5" = xkrb5; then :
15863   KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
15864              KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
15865              rra_krb5_config_KRB5_ok=yes
15866 fi
15867 fi
15868 fi
15869  if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
15870   KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
15871      KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
15872      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15873  rra_krb5_save_LDFLAGS="$LDFLAGS"
15874  rra_krb5_save_LIBS="$LIBS"
15875  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15876  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15877  LIBS="$KRB5_LIBS $LIBS"
15878  ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
15879 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
15880   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15881  LDFLAGS="$rra_krb5_save_LDFLAGS"
15882  LIBS="$rra_krb5_save_LIBS"
15883 else
15884   CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15885  LDFLAGS="$rra_krb5_save_LDFLAGS"
15886  LIBS="$rra_krb5_save_LIBS"
15887      KRB5_CPPFLAGS=
15888      KRB5_LIBS=
15889      if test x"$rra_krb5_libdir" != x; then :
15890   KRB5_LDFLAGS="-L$rra_krb5_libdir"
15891 else
15892   if test x"$rra_krb5_root" != x; then :
15893
15894  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15895   if test x"" = x; then :
15896   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15897 else
15898   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15899 fi
15900 else
15901   if test x"" = x; then :
15902   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15903 else
15904   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15905 fi
15906 fi
15907  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15908 fi
15909 fi
15910  if test x"$rra_krb5_includedir" != x; then :
15911   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15912 else
15913   if test x"$rra_krb5_root" != x; then :
15914   if test x"$rra_krb5_root" != x/usr; then :
15915   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15916 fi
15917 fi
15918 fi
15919      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15920  rra_krb5_save_LDFLAGS="$LDFLAGS"
15921  rra_krb5_save_LIBS="$LIBS"
15922  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15923  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15924  LIBS="$KRB5_LIBS $LIBS"
15925  rra_krb5_extra=
15926  LIBS=
15927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
15928 $as_echo_n "checking for library containing res_search... " >&6; }
15929 if ${ac_cv_search_res_search+:} false; then :
15930   $as_echo_n "(cached) " >&6
15931 else
15932   ac_func_search_save_LIBS=$LIBS
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h.  */
15935
15936 /* Override any GCC internal prototype to avoid an error.
15937    Use char because int might match the return type of a GCC
15938    builtin and then its argument prototype would still apply.  */
15939 #ifdef __cplusplus
15940 extern "C"
15941 #endif
15942 char res_search ();
15943 int
15944 main ()
15945 {
15946 return res_search ();
15947   ;
15948   return 0;
15949 }
15950 _ACEOF
15951 for ac_lib in '' resolv; do
15952   if test -z "$ac_lib"; then
15953     ac_res="none required"
15954   else
15955     ac_res=-l$ac_lib
15956     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15957   fi
15958   if ac_fn_c_try_link "$LINENO"; then :
15959   ac_cv_search_res_search=$ac_res
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext \
15962     conftest$ac_exeext
15963   if ${ac_cv_search_res_search+:} false; then :
15964   break
15965 fi
15966 done
15967 if ${ac_cv_search_res_search+:} false; then :
15968
15969 else
15970   ac_cv_search_res_search=no
15971 fi
15972 rm conftest.$ac_ext
15973 LIBS=$ac_func_search_save_LIBS
15974 fi
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
15976 $as_echo "$ac_cv_search_res_search" >&6; }
15977 ac_res=$ac_cv_search_res_search
15978 if test "$ac_res" != no; then :
15979   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15980
15981 else
15982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
15983 $as_echo_n "checking for library containing __res_search... " >&6; }
15984 if ${ac_cv_search___res_search+:} false; then :
15985   $as_echo_n "(cached) " >&6
15986 else
15987   ac_func_search_save_LIBS=$LIBS
15988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h.  */
15990
15991 /* Override any GCC internal prototype to avoid an error.
15992    Use char because int might match the return type of a GCC
15993    builtin and then its argument prototype would still apply.  */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 char __res_search ();
15998 int
15999 main ()
16000 {
16001 return __res_search ();
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 for ac_lib in '' resolv; do
16007   if test -z "$ac_lib"; then
16008     ac_res="none required"
16009   else
16010     ac_res=-l$ac_lib
16011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16012   fi
16013   if ac_fn_c_try_link "$LINENO"; then :
16014   ac_cv_search___res_search=$ac_res
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext \
16017     conftest$ac_exeext
16018   if ${ac_cv_search___res_search+:} false; then :
16019   break
16020 fi
16021 done
16022 if ${ac_cv_search___res_search+:} false; then :
16023
16024 else
16025   ac_cv_search___res_search=no
16026 fi
16027 rm conftest.$ac_ext
16028 LIBS=$ac_func_search_save_LIBS
16029 fi
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
16031 $as_echo "$ac_cv_search___res_search" >&6; }
16032 ac_res=$ac_cv_search___res_search
16033 if test "$ac_res" != no; then :
16034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16035
16036 fi
16037
16038 fi
16039
16040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16041 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16042 if ${ac_cv_search_gethostbyname+:} false; then :
16043   $as_echo_n "(cached) " >&6
16044 else
16045   ac_func_search_save_LIBS=$LIBS
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h.  */
16048
16049 /* Override any GCC internal prototype to avoid an error.
16050    Use char because int might match the return type of a GCC
16051    builtin and then its argument prototype would still apply.  */
16052 #ifdef __cplusplus
16053 extern "C"
16054 #endif
16055 char gethostbyname ();
16056 int
16057 main ()
16058 {
16059 return gethostbyname ();
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 for ac_lib in '' nsl; do
16065   if test -z "$ac_lib"; then
16066     ac_res="none required"
16067   else
16068     ac_res=-l$ac_lib
16069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16070   fi
16071   if ac_fn_c_try_link "$LINENO"; then :
16072   ac_cv_search_gethostbyname=$ac_res
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext \
16075     conftest$ac_exeext
16076   if ${ac_cv_search_gethostbyname+:} false; then :
16077   break
16078 fi
16079 done
16080 if ${ac_cv_search_gethostbyname+:} false; then :
16081
16082 else
16083   ac_cv_search_gethostbyname=no
16084 fi
16085 rm conftest.$ac_ext
16086 LIBS=$ac_func_search_save_LIBS
16087 fi
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16089 $as_echo "$ac_cv_search_gethostbyname" >&6; }
16090 ac_res=$ac_cv_search_gethostbyname
16091 if test "$ac_res" != no; then :
16092   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16093
16094 fi
16095
16096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16097 $as_echo_n "checking for library containing socket... " >&6; }
16098 if ${ac_cv_search_socket+:} false; then :
16099   $as_echo_n "(cached) " >&6
16100 else
16101   ac_func_search_save_LIBS=$LIBS
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h.  */
16104
16105 /* Override any GCC internal prototype to avoid an error.
16106    Use char because int might match the return type of a GCC
16107    builtin and then its argument prototype would still apply.  */
16108 #ifdef __cplusplus
16109 extern "C"
16110 #endif
16111 char socket ();
16112 int
16113 main ()
16114 {
16115 return socket ();
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 for ac_lib in '' socket; do
16121   if test -z "$ac_lib"; then
16122     ac_res="none required"
16123   else
16124     ac_res=-l$ac_lib
16125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16126   fi
16127   if ac_fn_c_try_link "$LINENO"; then :
16128   ac_cv_search_socket=$ac_res
16129 fi
16130 rm -f core conftest.err conftest.$ac_objext \
16131     conftest$ac_exeext
16132   if ${ac_cv_search_socket+:} false; then :
16133   break
16134 fi
16135 done
16136 if ${ac_cv_search_socket+:} false; then :
16137
16138 else
16139   ac_cv_search_socket=no
16140 fi
16141 rm conftest.$ac_ext
16142 LIBS=$ac_func_search_save_LIBS
16143 fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16145 $as_echo "$ac_cv_search_socket" >&6; }
16146 ac_res=$ac_cv_search_socket
16147 if test "$ac_res" != no; then :
16148   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16149
16150 else
16151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
16152 $as_echo_n "checking for socket in -lnsl... " >&6; }
16153 if ${ac_cv_lib_nsl_socket+:} false; then :
16154   $as_echo_n "(cached) " >&6
16155 else
16156   ac_check_lib_save_LIBS=$LIBS
16157 LIBS="-lnsl -lsocket $LIBS"
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h.  */
16160
16161 /* Override any GCC internal prototype to avoid an error.
16162    Use char because int might match the return type of a GCC
16163    builtin and then its argument prototype would still apply.  */
16164 #ifdef __cplusplus
16165 extern "C"
16166 #endif
16167 char socket ();
16168 int
16169 main ()
16170 {
16171 return socket ();
16172   ;
16173   return 0;
16174 }
16175 _ACEOF
16176 if ac_fn_c_try_link "$LINENO"; then :
16177   ac_cv_lib_nsl_socket=yes
16178 else
16179   ac_cv_lib_nsl_socket=no
16180 fi
16181 rm -f core conftest.err conftest.$ac_objext \
16182     conftest$ac_exeext conftest.$ac_ext
16183 LIBS=$ac_check_lib_save_LIBS
16184 fi
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
16186 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
16187 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
16188   LIBS="-lnsl -lsocket $LIBS"
16189 fi
16190
16191 fi
16192
16193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
16194 $as_echo_n "checking for library containing crypt... " >&6; }
16195 if ${ac_cv_search_crypt+:} false; then :
16196   $as_echo_n "(cached) " >&6
16197 else
16198   ac_func_search_save_LIBS=$LIBS
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h.  */
16201
16202 /* Override any GCC internal prototype to avoid an error.
16203    Use char because int might match the return type of a GCC
16204    builtin and then its argument prototype would still apply.  */
16205 #ifdef __cplusplus
16206 extern "C"
16207 #endif
16208 char crypt ();
16209 int
16210 main ()
16211 {
16212 return crypt ();
16213   ;
16214   return 0;
16215 }
16216 _ACEOF
16217 for ac_lib in '' crypt; do
16218   if test -z "$ac_lib"; then
16219     ac_res="none required"
16220   else
16221     ac_res=-l$ac_lib
16222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16223   fi
16224   if ac_fn_c_try_link "$LINENO"; then :
16225   ac_cv_search_crypt=$ac_res
16226 fi
16227 rm -f core conftest.err conftest.$ac_objext \
16228     conftest$ac_exeext
16229   if ${ac_cv_search_crypt+:} false; then :
16230   break
16231 fi
16232 done
16233 if ${ac_cv_search_crypt+:} false; then :
16234
16235 else
16236   ac_cv_search_crypt=no
16237 fi
16238 rm conftest.$ac_ext
16239 LIBS=$ac_func_search_save_LIBS
16240 fi
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
16242 $as_echo "$ac_cv_search_crypt" >&6; }
16243 ac_res=$ac_cv_search_crypt
16244 if test "$ac_res" != no; then :
16245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16246
16247 fi
16248
16249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
16250 $as_echo_n "checking for library containing roken_concat... " >&6; }
16251 if ${ac_cv_search_roken_concat+:} false; then :
16252   $as_echo_n "(cached) " >&6
16253 else
16254   ac_func_search_save_LIBS=$LIBS
16255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h.  */
16257
16258 /* Override any GCC internal prototype to avoid an error.
16259    Use char because int might match the return type of a GCC
16260    builtin and then its argument prototype would still apply.  */
16261 #ifdef __cplusplus
16262 extern "C"
16263 #endif
16264 char roken_concat ();
16265 int
16266 main ()
16267 {
16268 return roken_concat ();
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 for ac_lib in '' roken; do
16274   if test -z "$ac_lib"; then
16275     ac_res="none required"
16276   else
16277     ac_res=-l$ac_lib
16278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16279   fi
16280   if ac_fn_c_try_link "$LINENO"; then :
16281   ac_cv_search_roken_concat=$ac_res
16282 fi
16283 rm -f core conftest.err conftest.$ac_objext \
16284     conftest$ac_exeext
16285   if ${ac_cv_search_roken_concat+:} false; then :
16286   break
16287 fi
16288 done
16289 if ${ac_cv_search_roken_concat+:} false; then :
16290
16291 else
16292   ac_cv_search_roken_concat=no
16293 fi
16294 rm conftest.$ac_ext
16295 LIBS=$ac_func_search_save_LIBS
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
16298 $as_echo "$ac_cv_search_roken_concat" >&6; }
16299 ac_res=$ac_cv_search_roken_concat
16300 if test "$ac_res" != no; then :
16301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16302
16303 fi
16304
16305  rra_krb5_extra="$LIBS"
16306  LIBS="$rra_krb5_save_LIBS"
16307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16308 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16309 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
16310   $as_echo_n "(cached) " >&6
16311 else
16312   ac_check_lib_save_LIBS=$LIBS
16313 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h.  */
16316
16317 /* Override any GCC internal prototype to avoid an error.
16318    Use char because int might match the return type of a GCC
16319    builtin and then its argument prototype would still apply.  */
16320 #ifdef __cplusplus
16321 extern "C"
16322 #endif
16323 char krb5_init_context ();
16324 int
16325 main ()
16326 {
16327 return krb5_init_context ();
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 if ac_fn_c_try_link "$LINENO"; then :
16333   ac_cv_lib_krb5_krb5_init_context=yes
16334 else
16335   ac_cv_lib_krb5_krb5_init_context=no
16336 fi
16337 rm -f core conftest.err conftest.$ac_objext \
16338     conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16340 fi
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16342 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16343 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
16344   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
16345 else
16346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
16347 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
16348 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
16349   $as_echo_n "(cached) " >&6
16350 else
16351   ac_check_lib_save_LIBS=$LIBS
16352 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h.  */
16355
16356 /* Override any GCC internal prototype to avoid an error.
16357    Use char because int might match the return type of a GCC
16358    builtin and then its argument prototype would still apply.  */
16359 #ifdef __cplusplus
16360 extern "C"
16361 #endif
16362 char krb5int_getspecific ();
16363 int
16364 main ()
16365 {
16366 return krb5int_getspecific ();
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 if ac_fn_c_try_link "$LINENO"; then :
16372   ac_cv_lib_krb5support_krb5int_getspecific=yes
16373 else
16374   ac_cv_lib_krb5support_krb5int_getspecific=no
16375 fi
16376 rm -f core conftest.err conftest.$ac_objext \
16377     conftest$ac_exeext conftest.$ac_ext
16378 LIBS=$ac_check_lib_save_LIBS
16379 fi
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
16381 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
16382 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
16383   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
16384 else
16385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
16386 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
16387 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
16388   $as_echo_n "(cached) " >&6
16389 else
16390   ac_check_lib_save_LIBS=$LIBS
16391 LIBS="-lpthreads  $LIBS"
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h.  */
16394
16395 /* Override any GCC internal prototype to avoid an error.
16396    Use char because int might match the return type of a GCC
16397    builtin and then its argument prototype would still apply.  */
16398 #ifdef __cplusplus
16399 extern "C"
16400 #endif
16401 char pthread_setspecific ();
16402 int
16403 main ()
16404 {
16405 return pthread_setspecific ();
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 if ac_fn_c_try_link "$LINENO"; then :
16411   ac_cv_lib_pthreads_pthread_setspecific=yes
16412 else
16413   ac_cv_lib_pthreads_pthread_setspecific=no
16414 fi
16415 rm -f core conftest.err conftest.$ac_objext \
16416     conftest$ac_exeext conftest.$ac_ext
16417 LIBS=$ac_check_lib_save_LIBS
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
16420 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
16421 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
16422   rra_krb5_pthread="-lpthreads"
16423 else
16424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
16425 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
16426 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
16427   $as_echo_n "(cached) " >&6
16428 else
16429   ac_check_lib_save_LIBS=$LIBS
16430 LIBS="-lpthread  $LIBS"
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h.  */
16433
16434 /* Override any GCC internal prototype to avoid an error.
16435    Use char because int might match the return type of a GCC
16436    builtin and then its argument prototype would still apply.  */
16437 #ifdef __cplusplus
16438 extern "C"
16439 #endif
16440 char pthread_setspecific ();
16441 int
16442 main ()
16443 {
16444 return pthread_setspecific ();
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 if ac_fn_c_try_link "$LINENO"; then :
16450   ac_cv_lib_pthread_pthread_setspecific=yes
16451 else
16452   ac_cv_lib_pthread_pthread_setspecific=no
16453 fi
16454 rm -f core conftest.err conftest.$ac_objext \
16455     conftest$ac_exeext conftest.$ac_ext
16456 LIBS=$ac_check_lib_save_LIBS
16457 fi
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
16459 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
16460 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
16461   rra_krb5_pthread="-lpthread"
16462 fi
16463
16464 fi
16465
16466          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
16467 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
16468 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
16469   $as_echo_n "(cached) " >&6
16470 else
16471   ac_check_lib_save_LIBS=$LIBS
16472 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h.  */
16475
16476 /* Override any GCC internal prototype to avoid an error.
16477    Use char because int might match the return type of a GCC
16478    builtin and then its argument prototype would still apply.  */
16479 #ifdef __cplusplus
16480 extern "C"
16481 #endif
16482 char krb5int_setspecific ();
16483 int
16484 main ()
16485 {
16486 return krb5int_setspecific ();
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 if ac_fn_c_try_link "$LINENO"; then :
16492   ac_cv_lib_krb5support_krb5int_setspecific=yes
16493 else
16494   ac_cv_lib_krb5support_krb5int_setspecific=no
16495 fi
16496 rm -f core conftest.err conftest.$ac_objext \
16497     conftest$ac_exeext conftest.$ac_ext
16498 LIBS=$ac_check_lib_save_LIBS
16499 fi
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
16501 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
16502 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
16503   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
16504 fi
16505
16506 fi
16507
16508      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
16509 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
16510 if ${ac_cv_lib_com_err_error_message+:} false; then :
16511   $as_echo_n "(cached) " >&6
16512 else
16513   ac_check_lib_save_LIBS=$LIBS
16514 LIBS="-lcom_err $rra_krb5_extra $LIBS"
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h.  */
16517
16518 /* Override any GCC internal prototype to avoid an error.
16519    Use char because int might match the return type of a GCC
16520    builtin and then its argument prototype would still apply.  */
16521 #ifdef __cplusplus
16522 extern "C"
16523 #endif
16524 char error_message ();
16525 int
16526 main ()
16527 {
16528 return error_message ();
16529   ;
16530   return 0;
16531 }
16532 _ACEOF
16533 if ac_fn_c_try_link "$LINENO"; then :
16534   ac_cv_lib_com_err_error_message=yes
16535 else
16536   ac_cv_lib_com_err_error_message=no
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext \
16539     conftest$ac_exeext conftest.$ac_ext
16540 LIBS=$ac_check_lib_save_LIBS
16541 fi
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
16543 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
16544 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
16545   rra_krb5_extra="-lcom_err $rra_krb5_extra"
16546 fi
16547
16548      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
16549 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
16550 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
16551   $as_echo_n "(cached) " >&6
16552 else
16553   ac_check_lib_save_LIBS=$LIBS
16554 LIBS="-lksvc $rra_krb5_extra $LIBS"
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h.  */
16557
16558 /* Override any GCC internal prototype to avoid an error.
16559    Use char because int might match the return type of a GCC
16560    builtin and then its argument prototype would still apply.  */
16561 #ifdef __cplusplus
16562 extern "C"
16563 #endif
16564 char krb5_svc_get_msg ();
16565 int
16566 main ()
16567 {
16568 return krb5_svc_get_msg ();
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 if ac_fn_c_try_link "$LINENO"; then :
16574   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
16575 else
16576   ac_cv_lib_ksvc_krb5_svc_get_msg=no
16577 fi
16578 rm -f core conftest.err conftest.$ac_objext \
16579     conftest$ac_exeext conftest.$ac_ext
16580 LIBS=$ac_check_lib_save_LIBS
16581 fi
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
16583 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
16584 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
16585   rra_krb5_extra="-lksvc $rra_krb5_extra"
16586 fi
16587
16588      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
16589 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
16590 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
16591   $as_echo_n "(cached) " >&6
16592 else
16593   ac_check_lib_save_LIBS=$LIBS
16594 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h.  */
16597
16598 /* Override any GCC internal prototype to avoid an error.
16599    Use char because int might match the return type of a GCC
16600    builtin and then its argument prototype would still apply.  */
16601 #ifdef __cplusplus
16602 extern "C"
16603 #endif
16604 char krb5int_hash_md5 ();
16605 int
16606 main ()
16607 {
16608 return krb5int_hash_md5 ();
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 if ac_fn_c_try_link "$LINENO"; then :
16614   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
16615 else
16616   ac_cv_lib_k5crypto_krb5int_hash_md5=no
16617 fi
16618 rm -f core conftest.err conftest.$ac_objext \
16619     conftest$ac_exeext conftest.$ac_ext
16620 LIBS=$ac_check_lib_save_LIBS
16621 fi
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
16623 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
16624 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
16625   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
16626 fi
16627
16628      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
16629 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
16630 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
16631   $as_echo_n "(cached) " >&6
16632 else
16633   ac_check_lib_save_LIBS=$LIBS
16634 LIBS="-lk5profile $rra_krb5_extra $LIBS"
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h.  */
16637
16638 /* Override any GCC internal prototype to avoid an error.
16639    Use char because int might match the return type of a GCC
16640    builtin and then its argument prototype would still apply.  */
16641 #ifdef __cplusplus
16642 extern "C"
16643 #endif
16644 char profile_get_values ();
16645 int
16646 main ()
16647 {
16648 return profile_get_values ();
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 if ac_fn_c_try_link "$LINENO"; then :
16654   ac_cv_lib_k5profile_profile_get_values=yes
16655 else
16656   ac_cv_lib_k5profile_profile_get_values=no
16657 fi
16658 rm -f core conftest.err conftest.$ac_objext \
16659     conftest$ac_exeext conftest.$ac_ext
16660 LIBS=$ac_check_lib_save_LIBS
16661 fi
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
16663 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
16664 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
16665   rra_krb5_extra="-lk5profile $rra_krb5_extra"
16666 fi
16667
16668      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
16669 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
16670 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
16671   $as_echo_n "(cached) " >&6
16672 else
16673   ac_check_lib_save_LIBS=$LIBS
16674 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h.  */
16677
16678 /* Override any GCC internal prototype to avoid an error.
16679    Use char because int might match the return type of a GCC
16680    builtin and then its argument prototype would still apply.  */
16681 #ifdef __cplusplus
16682 extern "C"
16683 #endif
16684 char krb5_cc_default ();
16685 int
16686 main ()
16687 {
16688 return krb5_cc_default ();
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 if ac_fn_c_try_link "$LINENO"; then :
16694   ac_cv_lib_krb5_krb5_cc_default=yes
16695 else
16696   ac_cv_lib_krb5_krb5_cc_default=no
16697 fi
16698 rm -f core conftest.err conftest.$ac_objext \
16699     conftest$ac_exeext conftest.$ac_ext
16700 LIBS=$ac_check_lib_save_LIBS
16701 fi
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
16703 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
16704 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
16705   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
16706 else
16707   if test x"true" = xtrue; then :
16708   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16709 fi
16710 fi
16711
16712 fi
16713
16714  LIBS="$KRB5_LIBS $LIBS"
16715  if test x"$rra_krb5_incroot" = x; then :
16716   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16717 do :
16718   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16719 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16721   cat >>confdefs.h <<_ACEOF
16722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16723 _ACEOF
16724
16725 fi
16726
16727 done
16728
16729 else
16730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16731 $as_echo_n "checking for krb5.h... " >&6; }
16732  if test -f "${rra_krb5_incroot}/krb5.h"; then :
16733
16734 cat >>confdefs.h <<_ACEOF
16735 #define HAVE_KRB5_H 1
16736 _ACEOF
16737
16738      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16739 $as_echo "yes" >&6; }
16740 else
16741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742 $as_echo "no" >&6; }
16743 fi
16744       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16745 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
16746  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
16747
16748 cat >>confdefs.h <<_ACEOF
16749 #define HAVE_KERBEROSV5_KRB5_H 1
16750 _ACEOF
16751
16752      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16753 $as_echo "yes" >&6; }
16754 else
16755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16756 $as_echo "no" >&6; }
16757 fi
16758       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16759 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16760  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16761
16762 cat >>confdefs.h <<_ACEOF
16763 #define HAVE_KRB5_KRB5_H 1
16764 _ACEOF
16765
16766      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16767 $as_echo "yes" >&6; }
16768 else
16769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16770 $as_echo "no" >&6; }
16771 fi
16772 fi
16773  for ac_func in krb5_get_error_message
16774 do :
16775   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16776 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16777   cat >>confdefs.h <<_ACEOF
16778 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16779 _ACEOF
16780  for ac_func in krb5_free_error_message
16781 do :
16782   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16783 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16784   cat >>confdefs.h <<_ACEOF
16785 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16786 _ACEOF
16787
16788 fi
16789 done
16790
16791 else
16792   for ac_func in krb5_get_error_string
16793 do :
16794   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16795 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16796   cat >>confdefs.h <<_ACEOF
16797 #define HAVE_KRB5_GET_ERROR_STRING 1
16798 _ACEOF
16799
16800 else
16801   for ac_func in krb5_get_err_txt
16802 do :
16803   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16804 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16805   cat >>confdefs.h <<_ACEOF
16806 #define HAVE_KRB5_GET_ERR_TXT 1
16807 _ACEOF
16808
16809 else
16810   for ac_func in krb5_svc_get_msg
16811 do :
16812   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
16813 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
16814   cat >>confdefs.h <<_ACEOF
16815 #define HAVE_KRB5_SVC_GET_MSG 1
16816 _ACEOF
16817  for ac_header in ibm_svc/krb5_svc.h
16818 do :
16819   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16820 #if HAVE_KRB5_H
16821 # include <krb5.h>
16822 #elif HAVE_KERBEROSV5_KRB5_H
16823 # include <kerberosv5/krb5.h>
16824 #else
16825 # include <krb5/krb5.h>
16826 #endif
16827
16828 "
16829 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16830   cat >>confdefs.h <<_ACEOF
16831 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16832 _ACEOF
16833
16834 fi
16835
16836 done
16837
16838 else
16839   if test x"$rra_krb5_incroot" = x; then :
16840   for ac_header in et/com_err.h kerberosv5/com_err.h
16841 do :
16842   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16843 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16845   cat >>confdefs.h <<_ACEOF
16846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16847 _ACEOF
16848
16849 fi
16850
16851 done
16852
16853 else
16854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
16855 $as_echo_n "checking for et/com_err.h... " >&6; }
16856  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
16857
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_ET_COM_ERR_H 1
16860 _ACEOF
16861
16862      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16863 $as_echo "yes" >&6; }
16864 else
16865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866 $as_echo "no" >&6; }
16867 fi
16868          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
16869 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
16870  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
16871
16872 cat >>confdefs.h <<_ACEOF
16873 #define HAVE_KERBEROSV5_COM_ERR_H 1
16874 _ACEOF
16875
16876      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16877 $as_echo "yes" >&6; }
16878 else
16879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880 $as_echo "no" >&6; }
16881 fi
16882 fi
16883 fi
16884 done
16885
16886 fi
16887 done
16888
16889 fi
16890 done
16891
16892 fi
16893 done
16894
16895  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16896  LDFLAGS="$rra_krb5_save_LDFLAGS"
16897  LIBS="$rra_krb5_save_LIBS"
16898 fi
16899
16900      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16901  rra_krb5_save_LDFLAGS="$LDFLAGS"
16902  rra_krb5_save_LIBS="$LIBS"
16903  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16904  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16905  LIBS="$KRB5_LIBS $LIBS"
16906      if test x"$rra_krb5_incroot" = x; then :
16907   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16908 do :
16909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16912   cat >>confdefs.h <<_ACEOF
16913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16914 _ACEOF
16915
16916 fi
16917
16918 done
16919
16920 else
16921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16922 $as_echo_n "checking for krb5.h... " >&6; }
16923  if test -f "${rra_krb5_incroot}/krb5.h"; then :
16924
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_KRB5_H 1
16927 _ACEOF
16928
16929      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16930 $as_echo "yes" >&6; }
16931 else
16932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933 $as_echo "no" >&6; }
16934 fi
16935       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16936 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
16937  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
16938
16939 cat >>confdefs.h <<_ACEOF
16940 #define HAVE_KERBEROSV5_KRB5_H 1
16941 _ACEOF
16942
16943      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16944 $as_echo "yes" >&6; }
16945 else
16946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16948 fi
16949       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16950 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16951  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16952
16953 cat >>confdefs.h <<_ACEOF
16954 #define HAVE_KRB5_KRB5_H 1
16955 _ACEOF
16956
16957      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16958 $as_echo "yes" >&6; }
16959 else
16960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16961 $as_echo "no" >&6; }
16962 fi
16963 fi
16964      for ac_func in krb5_get_error_message
16965 do :
16966   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16967 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16968   cat >>confdefs.h <<_ACEOF
16969 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16970 _ACEOF
16971  for ac_func in krb5_free_error_message
16972 do :
16973   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16974 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16975   cat >>confdefs.h <<_ACEOF
16976 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16977 _ACEOF
16978
16979 fi
16980 done
16981
16982 else
16983   for ac_func in krb5_get_error_string
16984 do :
16985   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16986 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16987   cat >>confdefs.h <<_ACEOF
16988 #define HAVE_KRB5_GET_ERROR_STRING 1
16989 _ACEOF
16990
16991 else
16992   for ac_func in krb5_get_err_txt
16993 do :
16994   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16995 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16996   cat >>confdefs.h <<_ACEOF
16997 #define HAVE_KRB5_GET_ERR_TXT 1
16998 _ACEOF
16999
17000 else
17001   for ac_func in krb5_svc_get_msg
17002 do :
17003   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
17004 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
17005   cat >>confdefs.h <<_ACEOF
17006 #define HAVE_KRB5_SVC_GET_MSG 1
17007 _ACEOF
17008  for ac_header in ibm_svc/krb5_svc.h
17009 do :
17010   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
17011 #if HAVE_KRB5_H
17012 # include <krb5.h>
17013 #elif HAVE_KERBEROSV5_KRB5_H
17014 # include <kerberosv5/krb5.h>
17015 #else
17016 # include <krb5/krb5.h>
17017 #endif
17018
17019 "
17020 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
17021   cat >>confdefs.h <<_ACEOF
17022 #define HAVE_IBM_SVC_KRB5_SVC_H 1
17023 _ACEOF
17024
17025 fi
17026
17027 done
17028
17029 else
17030   if test x"$rra_krb5_incroot" = x; then :
17031   for ac_header in et/com_err.h kerberosv5/com_err.h
17032 do :
17033   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17034 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17036   cat >>confdefs.h <<_ACEOF
17037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17038 _ACEOF
17039
17040 fi
17041
17042 done
17043
17044 else
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
17046 $as_echo_n "checking for et/com_err.h... " >&6; }
17047  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
17048
17049 cat >>confdefs.h <<_ACEOF
17050 #define HAVE_ET_COM_ERR_H 1
17051 _ACEOF
17052
17053      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054 $as_echo "yes" >&6; }
17055 else
17056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057 $as_echo "no" >&6; }
17058 fi
17059          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
17060 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
17061  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
17062
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_KERBEROSV5_COM_ERR_H 1
17065 _ACEOF
17066
17067      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17068 $as_echo "yes" >&6; }
17069 else
17070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071 $as_echo "no" >&6; }
17072 fi
17073 fi
17074 fi
17075 done
17076
17077 fi
17078 done
17079
17080 fi
17081 done
17082
17083 fi
17084 done
17085
17086      CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17087  LDFLAGS="$rra_krb5_save_LDFLAGS"
17088  LIBS="$rra_krb5_save_LIBS"
17089 else
17090   if test x"$rra_krb5_libdir" != x; then :
17091   KRB5_LDFLAGS="-L$rra_krb5_libdir"
17092 else
17093   if test x"$rra_krb5_root" != x; then :
17094
17095  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
17096   if test x"" = x; then :
17097   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
17098 else
17099   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
17100 fi
17101 else
17102   if test x"" = x; then :
17103   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
17104 else
17105   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
17106 fi
17107 fi
17108  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
17109 fi
17110 fi
17111  if test x"$rra_krb5_includedir" != x; then :
17112   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
17113 else
17114   if test x"$rra_krb5_root" != x; then :
17115   if test x"$rra_krb5_root" != x/usr; then :
17116   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
17117 fi
17118 fi
17119 fi
17120      rra_krb5_save_CPPFLAGS="$CPPFLAGS"
17121  rra_krb5_save_LDFLAGS="$LDFLAGS"
17122  rra_krb5_save_LIBS="$LIBS"
17123  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
17124  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
17125  LIBS="$KRB5_LIBS $LIBS"
17126  rra_krb5_extra=
17127  LIBS=
17128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
17129 $as_echo_n "checking for library containing res_search... " >&6; }
17130 if ${ac_cv_search_res_search+:} false; then :
17131   $as_echo_n "(cached) " >&6
17132 else
17133   ac_func_search_save_LIBS=$LIBS
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h.  */
17136
17137 /* Override any GCC internal prototype to avoid an error.
17138    Use char because int might match the return type of a GCC
17139    builtin and then its argument prototype would still apply.  */
17140 #ifdef __cplusplus
17141 extern "C"
17142 #endif
17143 char res_search ();
17144 int
17145 main ()
17146 {
17147 return res_search ();
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 for ac_lib in '' resolv; do
17153   if test -z "$ac_lib"; then
17154     ac_res="none required"
17155   else
17156     ac_res=-l$ac_lib
17157     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17158   fi
17159   if ac_fn_c_try_link "$LINENO"; then :
17160   ac_cv_search_res_search=$ac_res
17161 fi
17162 rm -f core conftest.err conftest.$ac_objext \
17163     conftest$ac_exeext
17164   if ${ac_cv_search_res_search+:} false; then :
17165   break
17166 fi
17167 done
17168 if ${ac_cv_search_res_search+:} false; then :
17169
17170 else
17171   ac_cv_search_res_search=no
17172 fi
17173 rm conftest.$ac_ext
17174 LIBS=$ac_func_search_save_LIBS
17175 fi
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
17177 $as_echo "$ac_cv_search_res_search" >&6; }
17178 ac_res=$ac_cv_search_res_search
17179 if test "$ac_res" != no; then :
17180   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17181
17182 else
17183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
17184 $as_echo_n "checking for library containing __res_search... " >&6; }
17185 if ${ac_cv_search___res_search+:} false; then :
17186   $as_echo_n "(cached) " >&6
17187 else
17188   ac_func_search_save_LIBS=$LIBS
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h.  */
17191
17192 /* Override any GCC internal prototype to avoid an error.
17193    Use char because int might match the return type of a GCC
17194    builtin and then its argument prototype would still apply.  */
17195 #ifdef __cplusplus
17196 extern "C"
17197 #endif
17198 char __res_search ();
17199 int
17200 main ()
17201 {
17202 return __res_search ();
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 for ac_lib in '' resolv; do
17208   if test -z "$ac_lib"; then
17209     ac_res="none required"
17210   else
17211     ac_res=-l$ac_lib
17212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17213   fi
17214   if ac_fn_c_try_link "$LINENO"; then :
17215   ac_cv_search___res_search=$ac_res
17216 fi
17217 rm -f core conftest.err conftest.$ac_objext \
17218     conftest$ac_exeext
17219   if ${ac_cv_search___res_search+:} false; then :
17220   break
17221 fi
17222 done
17223 if ${ac_cv_search___res_search+:} false; then :
17224
17225 else
17226   ac_cv_search___res_search=no
17227 fi
17228 rm conftest.$ac_ext
17229 LIBS=$ac_func_search_save_LIBS
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
17232 $as_echo "$ac_cv_search___res_search" >&6; }
17233 ac_res=$ac_cv_search___res_search
17234 if test "$ac_res" != no; then :
17235   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17236
17237 fi
17238
17239 fi
17240
17241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
17242 $as_echo_n "checking for library containing gethostbyname... " >&6; }
17243 if ${ac_cv_search_gethostbyname+:} false; then :
17244   $as_echo_n "(cached) " >&6
17245 else
17246   ac_func_search_save_LIBS=$LIBS
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h.  */
17249
17250 /* Override any GCC internal prototype to avoid an error.
17251    Use char because int might match the return type of a GCC
17252    builtin and then its argument prototype would still apply.  */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 char gethostbyname ();
17257 int
17258 main ()
17259 {
17260 return gethostbyname ();
17261   ;
17262   return 0;
17263 }
17264 _ACEOF
17265 for ac_lib in '' nsl; do
17266   if test -z "$ac_lib"; then
17267     ac_res="none required"
17268   else
17269     ac_res=-l$ac_lib
17270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17271   fi
17272   if ac_fn_c_try_link "$LINENO"; then :
17273   ac_cv_search_gethostbyname=$ac_res
17274 fi
17275 rm -f core conftest.err conftest.$ac_objext \
17276     conftest$ac_exeext
17277   if ${ac_cv_search_gethostbyname+:} false; then :
17278   break
17279 fi
17280 done
17281 if ${ac_cv_search_gethostbyname+:} false; then :
17282
17283 else
17284   ac_cv_search_gethostbyname=no
17285 fi
17286 rm conftest.$ac_ext
17287 LIBS=$ac_func_search_save_LIBS
17288 fi
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
17290 $as_echo "$ac_cv_search_gethostbyname" >&6; }
17291 ac_res=$ac_cv_search_gethostbyname
17292 if test "$ac_res" != no; then :
17293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17294
17295 fi
17296
17297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17298 $as_echo_n "checking for library containing socket... " >&6; }
17299 if ${ac_cv_search_socket+:} false; then :
17300   $as_echo_n "(cached) " >&6
17301 else
17302   ac_func_search_save_LIBS=$LIBS
17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h.  */
17305
17306 /* Override any GCC internal prototype to avoid an error.
17307    Use char because int might match the return type of a GCC
17308    builtin and then its argument prototype would still apply.  */
17309 #ifdef __cplusplus
17310 extern "C"
17311 #endif
17312 char socket ();
17313 int
17314 main ()
17315 {
17316 return socket ();
17317   ;
17318   return 0;
17319 }
17320 _ACEOF
17321 for ac_lib in '' socket; do
17322   if test -z "$ac_lib"; then
17323     ac_res="none required"
17324   else
17325     ac_res=-l$ac_lib
17326     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17327   fi
17328   if ac_fn_c_try_link "$LINENO"; then :
17329   ac_cv_search_socket=$ac_res
17330 fi
17331 rm -f core conftest.err conftest.$ac_objext \
17332     conftest$ac_exeext
17333   if ${ac_cv_search_socket+:} false; then :
17334   break
17335 fi
17336 done
17337 if ${ac_cv_search_socket+:} false; then :
17338
17339 else
17340   ac_cv_search_socket=no
17341 fi
17342 rm conftest.$ac_ext
17343 LIBS=$ac_func_search_save_LIBS
17344 fi
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17346 $as_echo "$ac_cv_search_socket" >&6; }
17347 ac_res=$ac_cv_search_socket
17348 if test "$ac_res" != no; then :
17349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17350
17351 else
17352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
17353 $as_echo_n "checking for socket in -lnsl... " >&6; }
17354 if ${ac_cv_lib_nsl_socket+:} false; then :
17355   $as_echo_n "(cached) " >&6
17356 else
17357   ac_check_lib_save_LIBS=$LIBS
17358 LIBS="-lnsl -lsocket $LIBS"
17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h.  */
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363    Use char because int might match the return type of a GCC
17364    builtin and then its argument prototype would still apply.  */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char socket ();
17369 int
17370 main ()
17371 {
17372 return socket ();
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 if ac_fn_c_try_link "$LINENO"; then :
17378   ac_cv_lib_nsl_socket=yes
17379 else
17380   ac_cv_lib_nsl_socket=no
17381 fi
17382 rm -f core conftest.err conftest.$ac_objext \
17383     conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17385 fi
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
17387 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
17388 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
17389   LIBS="-lnsl -lsocket $LIBS"
17390 fi
17391
17392 fi
17393
17394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17395 $as_echo_n "checking for library containing crypt... " >&6; }
17396 if ${ac_cv_search_crypt+:} false; then :
17397   $as_echo_n "(cached) " >&6
17398 else
17399   ac_func_search_save_LIBS=$LIBS
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h.  */
17402
17403 /* Override any GCC internal prototype to avoid an error.
17404    Use char because int might match the return type of a GCC
17405    builtin and then its argument prototype would still apply.  */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char crypt ();
17410 int
17411 main ()
17412 {
17413 return crypt ();
17414   ;
17415   return 0;
17416 }
17417 _ACEOF
17418 for ac_lib in '' crypt; do
17419   if test -z "$ac_lib"; then
17420     ac_res="none required"
17421   else
17422     ac_res=-l$ac_lib
17423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17424   fi
17425   if ac_fn_c_try_link "$LINENO"; then :
17426   ac_cv_search_crypt=$ac_res
17427 fi
17428 rm -f core conftest.err conftest.$ac_objext \
17429     conftest$ac_exeext
17430   if ${ac_cv_search_crypt+:} false; then :
17431   break
17432 fi
17433 done
17434 if ${ac_cv_search_crypt+:} false; then :
17435
17436 else
17437   ac_cv_search_crypt=no
17438 fi
17439 rm conftest.$ac_ext
17440 LIBS=$ac_func_search_save_LIBS
17441 fi
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17443 $as_echo "$ac_cv_search_crypt" >&6; }
17444 ac_res=$ac_cv_search_crypt
17445 if test "$ac_res" != no; then :
17446   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17447
17448 fi
17449
17450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
17451 $as_echo_n "checking for library containing roken_concat... " >&6; }
17452 if ${ac_cv_search_roken_concat+:} false; then :
17453   $as_echo_n "(cached) " >&6
17454 else
17455   ac_func_search_save_LIBS=$LIBS
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457 /* end confdefs.h.  */
17458
17459 /* Override any GCC internal prototype to avoid an error.
17460    Use char because int might match the return type of a GCC
17461    builtin and then its argument prototype would still apply.  */
17462 #ifdef __cplusplus
17463 extern "C"
17464 #endif
17465 char roken_concat ();
17466 int
17467 main ()
17468 {
17469 return roken_concat ();
17470   ;
17471   return 0;
17472 }
17473 _ACEOF
17474 for ac_lib in '' roken; do
17475   if test -z "$ac_lib"; then
17476     ac_res="none required"
17477   else
17478     ac_res=-l$ac_lib
17479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17480   fi
17481   if ac_fn_c_try_link "$LINENO"; then :
17482   ac_cv_search_roken_concat=$ac_res
17483 fi
17484 rm -f core conftest.err conftest.$ac_objext \
17485     conftest$ac_exeext
17486   if ${ac_cv_search_roken_concat+:} false; then :
17487   break
17488 fi
17489 done
17490 if ${ac_cv_search_roken_concat+:} false; then :
17491
17492 else
17493   ac_cv_search_roken_concat=no
17494 fi
17495 rm conftest.$ac_ext
17496 LIBS=$ac_func_search_save_LIBS
17497 fi
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
17499 $as_echo "$ac_cv_search_roken_concat" >&6; }
17500 ac_res=$ac_cv_search_roken_concat
17501 if test "$ac_res" != no; then :
17502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17503
17504 fi
17505
17506  rra_krb5_extra="$LIBS"
17507  LIBS="$rra_krb5_save_LIBS"
17508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17509 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17510 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
17511   $as_echo_n "(cached) " >&6
17512 else
17513   ac_check_lib_save_LIBS=$LIBS
17514 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h.  */
17517
17518 /* Override any GCC internal prototype to avoid an error.
17519    Use char because int might match the return type of a GCC
17520    builtin and then its argument prototype would still apply.  */
17521 #ifdef __cplusplus
17522 extern "C"
17523 #endif
17524 char krb5_init_context ();
17525 int
17526 main ()
17527 {
17528 return krb5_init_context ();
17529   ;
17530   return 0;
17531 }
17532 _ACEOF
17533 if ac_fn_c_try_link "$LINENO"; then :
17534   ac_cv_lib_krb5_krb5_init_context=yes
17535 else
17536   ac_cv_lib_krb5_krb5_init_context=no
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext \
17539     conftest$ac_exeext conftest.$ac_ext
17540 LIBS=$ac_check_lib_save_LIBS
17541 fi
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17543 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17544 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
17545   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
17546 else
17547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
17548 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
17549 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
17550   $as_echo_n "(cached) " >&6
17551 else
17552   ac_check_lib_save_LIBS=$LIBS
17553 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h.  */
17556
17557 /* Override any GCC internal prototype to avoid an error.
17558    Use char because int might match the return type of a GCC
17559    builtin and then its argument prototype would still apply.  */
17560 #ifdef __cplusplus
17561 extern "C"
17562 #endif
17563 char krb5int_getspecific ();
17564 int
17565 main ()
17566 {
17567 return krb5int_getspecific ();
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 if ac_fn_c_try_link "$LINENO"; then :
17573   ac_cv_lib_krb5support_krb5int_getspecific=yes
17574 else
17575   ac_cv_lib_krb5support_krb5int_getspecific=no
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext \
17578     conftest$ac_exeext conftest.$ac_ext
17579 LIBS=$ac_check_lib_save_LIBS
17580 fi
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
17582 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
17583 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
17584   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
17585 else
17586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
17587 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
17588 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
17589   $as_echo_n "(cached) " >&6
17590 else
17591   ac_check_lib_save_LIBS=$LIBS
17592 LIBS="-lpthreads  $LIBS"
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h.  */
17595
17596 /* Override any GCC internal prototype to avoid an error.
17597    Use char because int might match the return type of a GCC
17598    builtin and then its argument prototype would still apply.  */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 char pthread_setspecific ();
17603 int
17604 main ()
17605 {
17606 return pthread_setspecific ();
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 if ac_fn_c_try_link "$LINENO"; then :
17612   ac_cv_lib_pthreads_pthread_setspecific=yes
17613 else
17614   ac_cv_lib_pthreads_pthread_setspecific=no
17615 fi
17616 rm -f core conftest.err conftest.$ac_objext \
17617     conftest$ac_exeext conftest.$ac_ext
17618 LIBS=$ac_check_lib_save_LIBS
17619 fi
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
17621 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
17622 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
17623   rra_krb5_pthread="-lpthreads"
17624 else
17625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
17626 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
17627 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
17628   $as_echo_n "(cached) " >&6
17629 else
17630   ac_check_lib_save_LIBS=$LIBS
17631 LIBS="-lpthread  $LIBS"
17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h.  */
17634
17635 /* Override any GCC internal prototype to avoid an error.
17636    Use char because int might match the return type of a GCC
17637    builtin and then its argument prototype would still apply.  */
17638 #ifdef __cplusplus
17639 extern "C"
17640 #endif
17641 char pthread_setspecific ();
17642 int
17643 main ()
17644 {
17645 return pthread_setspecific ();
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 if ac_fn_c_try_link "$LINENO"; then :
17651   ac_cv_lib_pthread_pthread_setspecific=yes
17652 else
17653   ac_cv_lib_pthread_pthread_setspecific=no
17654 fi
17655 rm -f core conftest.err conftest.$ac_objext \
17656     conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17658 fi
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
17660 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
17661 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
17662   rra_krb5_pthread="-lpthread"
17663 fi
17664
17665 fi
17666
17667          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
17668 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
17669 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
17670   $as_echo_n "(cached) " >&6
17671 else
17672   ac_check_lib_save_LIBS=$LIBS
17673 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h.  */
17676
17677 /* Override any GCC internal prototype to avoid an error.
17678    Use char because int might match the return type of a GCC
17679    builtin and then its argument prototype would still apply.  */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 char krb5int_setspecific ();
17684 int
17685 main ()
17686 {
17687 return krb5int_setspecific ();
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 if ac_fn_c_try_link "$LINENO"; then :
17693   ac_cv_lib_krb5support_krb5int_setspecific=yes
17694 else
17695   ac_cv_lib_krb5support_krb5int_setspecific=no
17696 fi
17697 rm -f core conftest.err conftest.$ac_objext \
17698     conftest$ac_exeext conftest.$ac_ext
17699 LIBS=$ac_check_lib_save_LIBS
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
17702 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
17703 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
17704   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
17705 fi
17706
17707 fi
17708
17709      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
17710 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
17711 if ${ac_cv_lib_com_err_error_message+:} false; then :
17712   $as_echo_n "(cached) " >&6
17713 else
17714   ac_check_lib_save_LIBS=$LIBS
17715 LIBS="-lcom_err $rra_krb5_extra $LIBS"
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h.  */
17718
17719 /* Override any GCC internal prototype to avoid an error.
17720    Use char because int might match the return type of a GCC
17721    builtin and then its argument prototype would still apply.  */
17722 #ifdef __cplusplus
17723 extern "C"
17724 #endif
17725 char error_message ();
17726 int
17727 main ()
17728 {
17729 return error_message ();
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 if ac_fn_c_try_link "$LINENO"; then :
17735   ac_cv_lib_com_err_error_message=yes
17736 else
17737   ac_cv_lib_com_err_error_message=no
17738 fi
17739 rm -f core conftest.err conftest.$ac_objext \
17740     conftest$ac_exeext conftest.$ac_ext
17741 LIBS=$ac_check_lib_save_LIBS
17742 fi
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
17744 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
17745 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
17746   rra_krb5_extra="-lcom_err $rra_krb5_extra"
17747 fi
17748
17749      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
17750 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
17751 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
17752   $as_echo_n "(cached) " >&6
17753 else
17754   ac_check_lib_save_LIBS=$LIBS
17755 LIBS="-lksvc $rra_krb5_extra $LIBS"
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h.  */
17758
17759 /* Override any GCC internal prototype to avoid an error.
17760    Use char because int might match the return type of a GCC
17761    builtin and then its argument prototype would still apply.  */
17762 #ifdef __cplusplus
17763 extern "C"
17764 #endif
17765 char krb5_svc_get_msg ();
17766 int
17767 main ()
17768 {
17769 return krb5_svc_get_msg ();
17770   ;
17771   return 0;
17772 }
17773 _ACEOF
17774 if ac_fn_c_try_link "$LINENO"; then :
17775   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
17776 else
17777   ac_cv_lib_ksvc_krb5_svc_get_msg=no
17778 fi
17779 rm -f core conftest.err conftest.$ac_objext \
17780     conftest$ac_exeext conftest.$ac_ext
17781 LIBS=$ac_check_lib_save_LIBS
17782 fi
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
17784 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
17785 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
17786   rra_krb5_extra="-lksvc $rra_krb5_extra"
17787 fi
17788
17789      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
17790 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
17791 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
17792   $as_echo_n "(cached) " >&6
17793 else
17794   ac_check_lib_save_LIBS=$LIBS
17795 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h.  */
17798
17799 /* Override any GCC internal prototype to avoid an error.
17800    Use char because int might match the return type of a GCC
17801    builtin and then its argument prototype would still apply.  */
17802 #ifdef __cplusplus
17803 extern "C"
17804 #endif
17805 char krb5int_hash_md5 ();
17806 int
17807 main ()
17808 {
17809 return krb5int_hash_md5 ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 if ac_fn_c_try_link "$LINENO"; then :
17815   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
17816 else
17817   ac_cv_lib_k5crypto_krb5int_hash_md5=no
17818 fi
17819 rm -f core conftest.err conftest.$ac_objext \
17820     conftest$ac_exeext conftest.$ac_ext
17821 LIBS=$ac_check_lib_save_LIBS
17822 fi
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
17824 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
17825 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
17826   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
17827 fi
17828
17829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
17830 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
17831 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
17832   $as_echo_n "(cached) " >&6
17833 else
17834   ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-lk5profile $rra_krb5_extra $LIBS"
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h.  */
17838
17839 /* Override any GCC internal prototype to avoid an error.
17840    Use char because int might match the return type of a GCC
17841    builtin and then its argument prototype would still apply.  */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char profile_get_values ();
17846 int
17847 main ()
17848 {
17849 return profile_get_values ();
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 if ac_fn_c_try_link "$LINENO"; then :
17855   ac_cv_lib_k5profile_profile_get_values=yes
17856 else
17857   ac_cv_lib_k5profile_profile_get_values=no
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext \
17860     conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17862 fi
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
17864 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
17865 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
17866   rra_krb5_extra="-lk5profile $rra_krb5_extra"
17867 fi
17868
17869      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
17870 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
17871 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
17872   $as_echo_n "(cached) " >&6
17873 else
17874   ac_check_lib_save_LIBS=$LIBS
17875 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h.  */
17878
17879 /* Override any GCC internal prototype to avoid an error.
17880    Use char because int might match the return type of a GCC
17881    builtin and then its argument prototype would still apply.  */
17882 #ifdef __cplusplus
17883 extern "C"
17884 #endif
17885 char krb5_cc_default ();
17886 int
17887 main ()
17888 {
17889 return krb5_cc_default ();
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 if ac_fn_c_try_link "$LINENO"; then :
17895   ac_cv_lib_krb5_krb5_cc_default=yes
17896 else
17897   ac_cv_lib_krb5_krb5_cc_default=no
17898 fi
17899 rm -f core conftest.err conftest.$ac_objext \
17900     conftest$ac_exeext conftest.$ac_ext
17901 LIBS=$ac_check_lib_save_LIBS
17902 fi
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
17904 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
17905 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
17906   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
17907 else
17908   if test x"true" = xtrue; then :
17909   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
17910 fi
17911 fi
17912
17913 fi
17914
17915  LIBS="$KRB5_LIBS $LIBS"
17916  if test x"$rra_krb5_incroot" = x; then :
17917   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
17918 do :
17919   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17920 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17922   cat >>confdefs.h <<_ACEOF
17923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924 _ACEOF
17925
17926 fi
17927
17928 done
17929
17930 else
17931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
17932 $as_echo_n "checking for krb5.h... " >&6; }
17933  if test -f "${rra_krb5_incroot}/krb5.h"; then :
17934
17935 cat >>confdefs.h <<_ACEOF
17936 #define HAVE_KRB5_H 1
17937 _ACEOF
17938
17939      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17940 $as_echo "yes" >&6; }
17941 else
17942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17943 $as_echo "no" >&6; }
17944 fi
17945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
17946 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
17947  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
17948
17949 cat >>confdefs.h <<_ACEOF
17950 #define HAVE_KERBEROSV5_KRB5_H 1
17951 _ACEOF
17952
17953      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17954 $as_echo "yes" >&6; }
17955 else
17956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17957 $as_echo "no" >&6; }
17958 fi
17959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
17960 $as_echo_n "checking for krb5/krb5.h... " >&6; }
17961  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
17962
17963 cat >>confdefs.h <<_ACEOF
17964 #define HAVE_KRB5_KRB5_H 1
17965 _ACEOF
17966
17967      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17968 $as_echo "yes" >&6; }
17969 else
17970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17971 $as_echo "no" >&6; }
17972 fi
17973 fi
17974  for ac_func in krb5_get_error_message
17975 do :
17976   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
17977 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
17978   cat >>confdefs.h <<_ACEOF
17979 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
17980 _ACEOF
17981  for ac_func in krb5_free_error_message
17982 do :
17983   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
17984 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
17985   cat >>confdefs.h <<_ACEOF
17986 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
17987 _ACEOF
17988
17989 fi
17990 done
17991
17992 else
17993   for ac_func in krb5_get_error_string
17994 do :
17995   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
17996 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
17997   cat >>confdefs.h <<_ACEOF
17998 #define HAVE_KRB5_GET_ERROR_STRING 1
17999 _ACEOF
18000
18001 else
18002   for ac_func in krb5_get_err_txt
18003 do :
18004   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
18005 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
18006   cat >>confdefs.h <<_ACEOF
18007 #define HAVE_KRB5_GET_ERR_TXT 1
18008 _ACEOF
18009
18010 else
18011   for ac_func in krb5_svc_get_msg
18012 do :
18013   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
18014 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
18015   cat >>confdefs.h <<_ACEOF
18016 #define HAVE_KRB5_SVC_GET_MSG 1
18017 _ACEOF
18018  for ac_header in ibm_svc/krb5_svc.h
18019 do :
18020   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
18021 #if HAVE_KRB5_H
18022 # include <krb5.h>
18023 #elif HAVE_KERBEROSV5_KRB5_H
18024 # include <kerberosv5/krb5.h>
18025 #else
18026 # include <krb5/krb5.h>
18027 #endif
18028
18029 "
18030 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
18031   cat >>confdefs.h <<_ACEOF
18032 #define HAVE_IBM_SVC_KRB5_SVC_H 1
18033 _ACEOF
18034
18035 fi
18036
18037 done
18038
18039 else
18040   if test x"$rra_krb5_incroot" = x; then :
18041   for ac_header in et/com_err.h kerberosv5/com_err.h
18042 do :
18043   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18044 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18045 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18046   cat >>confdefs.h <<_ACEOF
18047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18048 _ACEOF
18049
18050 fi
18051
18052 done
18053
18054 else
18055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
18056 $as_echo_n "checking for et/com_err.h... " >&6; }
18057  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
18058
18059 cat >>confdefs.h <<_ACEOF
18060 #define HAVE_ET_COM_ERR_H 1
18061 _ACEOF
18062
18063      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18064 $as_echo "yes" >&6; }
18065 else
18066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18067 $as_echo "no" >&6; }
18068 fi
18069          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
18070 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
18071  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
18072
18073 cat >>confdefs.h <<_ACEOF
18074 #define HAVE_KERBEROSV5_COM_ERR_H 1
18075 _ACEOF
18076
18077      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18078 $as_echo "yes" >&6; }
18079 else
18080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18081 $as_echo "no" >&6; }
18082 fi
18083 fi
18084 fi
18085 done
18086
18087 fi
18088 done
18089
18090 fi
18091 done
18092
18093 fi
18094 done
18095
18096  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
18097  LDFLAGS="$rra_krb5_save_LDFLAGS"
18098  LIBS="$rra_krb5_save_LIBS"
18099 fi
18100 else
18101   if test x"$rra_krb5_libdir" != x; then :
18102   KRB5_LDFLAGS="-L$rra_krb5_libdir"
18103 else
18104   if test x"$rra_krb5_root" != x; then :
18105
18106  if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
18107   if test x"" = x; then :
18108   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
18109 else
18110   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
18111 fi
18112 else
18113   if test x"" = x; then :
18114   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
18115 else
18116   KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
18117 fi
18118 fi
18119  KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
18120 fi
18121 fi
18122  if test x"$rra_krb5_includedir" != x; then :
18123   KRB5_CPPFLAGS="-I$rra_krb5_includedir"
18124 else
18125   if test x"$rra_krb5_root" != x; then :
18126   if test x"$rra_krb5_root" != x/usr; then :
18127   KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
18128 fi
18129 fi
18130 fi
18131          rra_krb5_save_CPPFLAGS="$CPPFLAGS"
18132  rra_krb5_save_LDFLAGS="$LDFLAGS"
18133  rra_krb5_save_LIBS="$LIBS"
18134  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
18135  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
18136  LIBS="$KRB5_LIBS $LIBS"
18137  rra_krb5_extra=
18138  LIBS=
18139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
18140 $as_echo_n "checking for library containing res_search... " >&6; }
18141 if ${ac_cv_search_res_search+:} false; then :
18142   $as_echo_n "(cached) " >&6
18143 else
18144   ac_func_search_save_LIBS=$LIBS
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h.  */
18147
18148 /* Override any GCC internal prototype to avoid an error.
18149    Use char because int might match the return type of a GCC
18150    builtin and then its argument prototype would still apply.  */
18151 #ifdef __cplusplus
18152 extern "C"
18153 #endif
18154 char res_search ();
18155 int
18156 main ()
18157 {
18158 return res_search ();
18159   ;
18160   return 0;
18161 }
18162 _ACEOF
18163 for ac_lib in '' resolv; do
18164   if test -z "$ac_lib"; then
18165     ac_res="none required"
18166   else
18167     ac_res=-l$ac_lib
18168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18169   fi
18170   if ac_fn_c_try_link "$LINENO"; then :
18171   ac_cv_search_res_search=$ac_res
18172 fi
18173 rm -f core conftest.err conftest.$ac_objext \
18174     conftest$ac_exeext
18175   if ${ac_cv_search_res_search+:} false; then :
18176   break
18177 fi
18178 done
18179 if ${ac_cv_search_res_search+:} false; then :
18180
18181 else
18182   ac_cv_search_res_search=no
18183 fi
18184 rm conftest.$ac_ext
18185 LIBS=$ac_func_search_save_LIBS
18186 fi
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
18188 $as_echo "$ac_cv_search_res_search" >&6; }
18189 ac_res=$ac_cv_search_res_search
18190 if test "$ac_res" != no; then :
18191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18192
18193 else
18194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
18195 $as_echo_n "checking for library containing __res_search... " >&6; }
18196 if ${ac_cv_search___res_search+:} false; then :
18197   $as_echo_n "(cached) " >&6
18198 else
18199   ac_func_search_save_LIBS=$LIBS
18200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h.  */
18202
18203 /* Override any GCC internal prototype to avoid an error.
18204    Use char because int might match the return type of a GCC
18205    builtin and then its argument prototype would still apply.  */
18206 #ifdef __cplusplus
18207 extern "C"
18208 #endif
18209 char __res_search ();
18210 int
18211 main ()
18212 {
18213 return __res_search ();
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 for ac_lib in '' resolv; do
18219   if test -z "$ac_lib"; then
18220     ac_res="none required"
18221   else
18222     ac_res=-l$ac_lib
18223     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18224   fi
18225   if ac_fn_c_try_link "$LINENO"; then :
18226   ac_cv_search___res_search=$ac_res
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext \
18229     conftest$ac_exeext
18230   if ${ac_cv_search___res_search+:} false; then :
18231   break
18232 fi
18233 done
18234 if ${ac_cv_search___res_search+:} false; then :
18235
18236 else
18237   ac_cv_search___res_search=no
18238 fi
18239 rm conftest.$ac_ext
18240 LIBS=$ac_func_search_save_LIBS
18241 fi
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
18243 $as_echo "$ac_cv_search___res_search" >&6; }
18244 ac_res=$ac_cv_search___res_search
18245 if test "$ac_res" != no; then :
18246   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18247
18248 fi
18249
18250 fi
18251
18252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18253 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18254 if ${ac_cv_search_gethostbyname+:} false; then :
18255   $as_echo_n "(cached) " >&6
18256 else
18257   ac_func_search_save_LIBS=$LIBS
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h.  */
18260
18261 /* Override any GCC internal prototype to avoid an error.
18262    Use char because int might match the return type of a GCC
18263    builtin and then its argument prototype would still apply.  */
18264 #ifdef __cplusplus
18265 extern "C"
18266 #endif
18267 char gethostbyname ();
18268 int
18269 main ()
18270 {
18271 return gethostbyname ();
18272   ;
18273   return 0;
18274 }
18275 _ACEOF
18276 for ac_lib in '' nsl; do
18277   if test -z "$ac_lib"; then
18278     ac_res="none required"
18279   else
18280     ac_res=-l$ac_lib
18281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18282   fi
18283   if ac_fn_c_try_link "$LINENO"; then :
18284   ac_cv_search_gethostbyname=$ac_res
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext \
18287     conftest$ac_exeext
18288   if ${ac_cv_search_gethostbyname+:} false; then :
18289   break
18290 fi
18291 done
18292 if ${ac_cv_search_gethostbyname+:} false; then :
18293
18294 else
18295   ac_cv_search_gethostbyname=no
18296 fi
18297 rm conftest.$ac_ext
18298 LIBS=$ac_func_search_save_LIBS
18299 fi
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18301 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18302 ac_res=$ac_cv_search_gethostbyname
18303 if test "$ac_res" != no; then :
18304   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18305
18306 fi
18307
18308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18309 $as_echo_n "checking for library containing socket... " >&6; }
18310 if ${ac_cv_search_socket+:} false; then :
18311   $as_echo_n "(cached) " >&6
18312 else
18313   ac_func_search_save_LIBS=$LIBS
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h.  */
18316
18317 /* Override any GCC internal prototype to avoid an error.
18318    Use char because int might match the return type of a GCC
18319    builtin and then its argument prototype would still apply.  */
18320 #ifdef __cplusplus
18321 extern "C"
18322 #endif
18323 char socket ();
18324 int
18325 main ()
18326 {
18327 return socket ();
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 for ac_lib in '' socket; do
18333   if test -z "$ac_lib"; then
18334     ac_res="none required"
18335   else
18336     ac_res=-l$ac_lib
18337     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18338   fi
18339   if ac_fn_c_try_link "$LINENO"; then :
18340   ac_cv_search_socket=$ac_res
18341 fi
18342 rm -f core conftest.err conftest.$ac_objext \
18343     conftest$ac_exeext
18344   if ${ac_cv_search_socket+:} false; then :
18345   break
18346 fi
18347 done
18348 if ${ac_cv_search_socket+:} false; then :
18349
18350 else
18351   ac_cv_search_socket=no
18352 fi
18353 rm conftest.$ac_ext
18354 LIBS=$ac_func_search_save_LIBS
18355 fi
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18357 $as_echo "$ac_cv_search_socket" >&6; }
18358 ac_res=$ac_cv_search_socket
18359 if test "$ac_res" != no; then :
18360   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18361
18362 else
18363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
18364 $as_echo_n "checking for socket in -lnsl... " >&6; }
18365 if ${ac_cv_lib_nsl_socket+:} false; then :
18366   $as_echo_n "(cached) " >&6
18367 else
18368   ac_check_lib_save_LIBS=$LIBS
18369 LIBS="-lnsl -lsocket $LIBS"
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h.  */
18372
18373 /* Override any GCC internal prototype to avoid an error.
18374    Use char because int might match the return type of a GCC
18375    builtin and then its argument prototype would still apply.  */
18376 #ifdef __cplusplus
18377 extern "C"
18378 #endif
18379 char socket ();
18380 int
18381 main ()
18382 {
18383 return socket ();
18384   ;
18385   return 0;
18386 }
18387 _ACEOF
18388 if ac_fn_c_try_link "$LINENO"; then :
18389   ac_cv_lib_nsl_socket=yes
18390 else
18391   ac_cv_lib_nsl_socket=no
18392 fi
18393 rm -f core conftest.err conftest.$ac_objext \
18394     conftest$ac_exeext conftest.$ac_ext
18395 LIBS=$ac_check_lib_save_LIBS
18396 fi
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
18398 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
18399 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
18400   LIBS="-lnsl -lsocket $LIBS"
18401 fi
18402
18403 fi
18404
18405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18406 $as_echo_n "checking for library containing crypt... " >&6; }
18407 if ${ac_cv_search_crypt+:} false; then :
18408   $as_echo_n "(cached) " >&6
18409 else
18410   ac_func_search_save_LIBS=$LIBS
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h.  */
18413
18414 /* Override any GCC internal prototype to avoid an error.
18415    Use char because int might match the return type of a GCC
18416    builtin and then its argument prototype would still apply.  */
18417 #ifdef __cplusplus
18418 extern "C"
18419 #endif
18420 char crypt ();
18421 int
18422 main ()
18423 {
18424 return crypt ();
18425   ;
18426   return 0;
18427 }
18428 _ACEOF
18429 for ac_lib in '' crypt; do
18430   if test -z "$ac_lib"; then
18431     ac_res="none required"
18432   else
18433     ac_res=-l$ac_lib
18434     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18435   fi
18436   if ac_fn_c_try_link "$LINENO"; then :
18437   ac_cv_search_crypt=$ac_res
18438 fi
18439 rm -f core conftest.err conftest.$ac_objext \
18440     conftest$ac_exeext
18441   if ${ac_cv_search_crypt+:} false; then :
18442   break
18443 fi
18444 done
18445 if ${ac_cv_search_crypt+:} false; then :
18446
18447 else
18448   ac_cv_search_crypt=no
18449 fi
18450 rm conftest.$ac_ext
18451 LIBS=$ac_func_search_save_LIBS
18452 fi
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
18454 $as_echo "$ac_cv_search_crypt" >&6; }
18455 ac_res=$ac_cv_search_crypt
18456 if test "$ac_res" != no; then :
18457   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18458
18459 fi
18460
18461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
18462 $as_echo_n "checking for library containing roken_concat... " >&6; }
18463 if ${ac_cv_search_roken_concat+:} false; then :
18464   $as_echo_n "(cached) " >&6
18465 else
18466   ac_func_search_save_LIBS=$LIBS
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h.  */
18469
18470 /* Override any GCC internal prototype to avoid an error.
18471    Use char because int might match the return type of a GCC
18472    builtin and then its argument prototype would still apply.  */
18473 #ifdef __cplusplus
18474 extern "C"
18475 #endif
18476 char roken_concat ();
18477 int
18478 main ()
18479 {
18480 return roken_concat ();
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 for ac_lib in '' roken; do
18486   if test -z "$ac_lib"; then
18487     ac_res="none required"
18488   else
18489     ac_res=-l$ac_lib
18490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18491   fi
18492   if ac_fn_c_try_link "$LINENO"; then :
18493   ac_cv_search_roken_concat=$ac_res
18494 fi
18495 rm -f core conftest.err conftest.$ac_objext \
18496     conftest$ac_exeext
18497   if ${ac_cv_search_roken_concat+:} false; then :
18498   break
18499 fi
18500 done
18501 if ${ac_cv_search_roken_concat+:} false; then :
18502
18503 else
18504   ac_cv_search_roken_concat=no
18505 fi
18506 rm conftest.$ac_ext
18507 LIBS=$ac_func_search_save_LIBS
18508 fi
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
18510 $as_echo "$ac_cv_search_roken_concat" >&6; }
18511 ac_res=$ac_cv_search_roken_concat
18512 if test "$ac_res" != no; then :
18513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18514
18515 fi
18516
18517  rra_krb5_extra="$LIBS"
18518  LIBS="$rra_krb5_save_LIBS"
18519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18520 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18521 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
18522   $as_echo_n "(cached) " >&6
18523 else
18524   ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h.  */
18528
18529 /* Override any GCC internal prototype to avoid an error.
18530    Use char because int might match the return type of a GCC
18531    builtin and then its argument prototype would still apply.  */
18532 #ifdef __cplusplus
18533 extern "C"
18534 #endif
18535 char krb5_init_context ();
18536 int
18537 main ()
18538 {
18539 return krb5_init_context ();
18540   ;
18541   return 0;
18542 }
18543 _ACEOF
18544 if ac_fn_c_try_link "$LINENO"; then :
18545   ac_cv_lib_krb5_krb5_init_context=yes
18546 else
18547   ac_cv_lib_krb5_krb5_init_context=no
18548 fi
18549 rm -f core conftest.err conftest.$ac_objext \
18550     conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18552 fi
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18554 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18555 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
18556   KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
18557 else
18558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
18559 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
18560 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
18561   $as_echo_n "(cached) " >&6
18562 else
18563   ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566 /* end confdefs.h.  */
18567
18568 /* Override any GCC internal prototype to avoid an error.
18569    Use char because int might match the return type of a GCC
18570    builtin and then its argument prototype would still apply.  */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char krb5int_getspecific ();
18575 int
18576 main ()
18577 {
18578 return krb5int_getspecific ();
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 if ac_fn_c_try_link "$LINENO"; then :
18584   ac_cv_lib_krb5support_krb5int_getspecific=yes
18585 else
18586   ac_cv_lib_krb5support_krb5int_getspecific=no
18587 fi
18588 rm -f core conftest.err conftest.$ac_objext \
18589     conftest$ac_exeext conftest.$ac_ext
18590 LIBS=$ac_check_lib_save_LIBS
18591 fi
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18593 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18594 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
18595   rra_krb5_extra="-lkrb5support $rra_krb5_extra"
18596 else
18597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
18598 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
18599 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
18600   $as_echo_n "(cached) " >&6
18601 else
18602   ac_check_lib_save_LIBS=$LIBS
18603 LIBS="-lpthreads  $LIBS"
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h.  */
18606
18607 /* Override any GCC internal prototype to avoid an error.
18608    Use char because int might match the return type of a GCC
18609    builtin and then its argument prototype would still apply.  */
18610 #ifdef __cplusplus
18611 extern "C"
18612 #endif
18613 char pthread_setspecific ();
18614 int
18615 main ()
18616 {
18617 return pthread_setspecific ();
18618   ;
18619   return 0;
18620 }
18621 _ACEOF
18622 if ac_fn_c_try_link "$LINENO"; then :
18623   ac_cv_lib_pthreads_pthread_setspecific=yes
18624 else
18625   ac_cv_lib_pthreads_pthread_setspecific=no
18626 fi
18627 rm -f core conftest.err conftest.$ac_objext \
18628     conftest$ac_exeext conftest.$ac_ext
18629 LIBS=$ac_check_lib_save_LIBS
18630 fi
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
18632 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
18633 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
18634   rra_krb5_pthread="-lpthreads"
18635 else
18636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
18637 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
18638 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
18639   $as_echo_n "(cached) " >&6
18640 else
18641   ac_check_lib_save_LIBS=$LIBS
18642 LIBS="-lpthread  $LIBS"
18643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18644 /* end confdefs.h.  */
18645
18646 /* Override any GCC internal prototype to avoid an error.
18647    Use char because int might match the return type of a GCC
18648    builtin and then its argument prototype would still apply.  */
18649 #ifdef __cplusplus
18650 extern "C"
18651 #endif
18652 char pthread_setspecific ();
18653 int
18654 main ()
18655 {
18656 return pthread_setspecific ();
18657   ;
18658   return 0;
18659 }
18660 _ACEOF
18661 if ac_fn_c_try_link "$LINENO"; then :
18662   ac_cv_lib_pthread_pthread_setspecific=yes
18663 else
18664   ac_cv_lib_pthread_pthread_setspecific=no
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext \
18667     conftest$ac_exeext conftest.$ac_ext
18668 LIBS=$ac_check_lib_save_LIBS
18669 fi
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
18671 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
18672 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
18673   rra_krb5_pthread="-lpthread"
18674 fi
18675
18676 fi
18677
18678          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
18679 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
18680 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
18681   $as_echo_n "(cached) " >&6
18682 else
18683   ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h.  */
18687
18688 /* Override any GCC internal prototype to avoid an error.
18689    Use char because int might match the return type of a GCC
18690    builtin and then its argument prototype would still apply.  */
18691 #ifdef __cplusplus
18692 extern "C"
18693 #endif
18694 char krb5int_setspecific ();
18695 int
18696 main ()
18697 {
18698 return krb5int_setspecific ();
18699   ;
18700   return 0;
18701 }
18702 _ACEOF
18703 if ac_fn_c_try_link "$LINENO"; then :
18704   ac_cv_lib_krb5support_krb5int_setspecific=yes
18705 else
18706   ac_cv_lib_krb5support_krb5int_setspecific=no
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext \
18709     conftest$ac_exeext conftest.$ac_ext
18710 LIBS=$ac_check_lib_save_LIBS
18711 fi
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
18713 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
18714 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
18715   rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
18716 fi
18717
18718 fi
18719
18720      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
18721 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
18722 if ${ac_cv_lib_com_err_error_message+:} false; then :
18723   $as_echo_n "(cached) " >&6
18724 else
18725   ac_check_lib_save_LIBS=$LIBS
18726 LIBS="-lcom_err $rra_krb5_extra $LIBS"
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h.  */
18729
18730 /* Override any GCC internal prototype to avoid an error.
18731    Use char because int might match the return type of a GCC
18732    builtin and then its argument prototype would still apply.  */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 char error_message ();
18737 int
18738 main ()
18739 {
18740 return error_message ();
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 if ac_fn_c_try_link "$LINENO"; then :
18746   ac_cv_lib_com_err_error_message=yes
18747 else
18748   ac_cv_lib_com_err_error_message=no
18749 fi
18750 rm -f core conftest.err conftest.$ac_objext \
18751     conftest$ac_exeext conftest.$ac_ext
18752 LIBS=$ac_check_lib_save_LIBS
18753 fi
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
18755 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
18756 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
18757   rra_krb5_extra="-lcom_err $rra_krb5_extra"
18758 fi
18759
18760      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
18761 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
18762 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
18763   $as_echo_n "(cached) " >&6
18764 else
18765   ac_check_lib_save_LIBS=$LIBS
18766 LIBS="-lksvc $rra_krb5_extra $LIBS"
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768 /* end confdefs.h.  */
18769
18770 /* Override any GCC internal prototype to avoid an error.
18771    Use char because int might match the return type of a GCC
18772    builtin and then its argument prototype would still apply.  */
18773 #ifdef __cplusplus
18774 extern "C"
18775 #endif
18776 char krb5_svc_get_msg ();
18777 int
18778 main ()
18779 {
18780 return krb5_svc_get_msg ();
18781   ;
18782   return 0;
18783 }
18784 _ACEOF
18785 if ac_fn_c_try_link "$LINENO"; then :
18786   ac_cv_lib_ksvc_krb5_svc_get_msg=yes
18787 else
18788   ac_cv_lib_ksvc_krb5_svc_get_msg=no
18789 fi
18790 rm -f core conftest.err conftest.$ac_objext \
18791     conftest$ac_exeext conftest.$ac_ext
18792 LIBS=$ac_check_lib_save_LIBS
18793 fi
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
18795 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
18796 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
18797   rra_krb5_extra="-lksvc $rra_krb5_extra"
18798 fi
18799
18800      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
18801 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
18802 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
18803   $as_echo_n "(cached) " >&6
18804 else
18805   ac_check_lib_save_LIBS=$LIBS
18806 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h.  */
18809
18810 /* Override any GCC internal prototype to avoid an error.
18811    Use char because int might match the return type of a GCC
18812    builtin and then its argument prototype would still apply.  */
18813 #ifdef __cplusplus
18814 extern "C"
18815 #endif
18816 char krb5int_hash_md5 ();
18817 int
18818 main ()
18819 {
18820 return krb5int_hash_md5 ();
18821   ;
18822   return 0;
18823 }
18824 _ACEOF
18825 if ac_fn_c_try_link "$LINENO"; then :
18826   ac_cv_lib_k5crypto_krb5int_hash_md5=yes
18827 else
18828   ac_cv_lib_k5crypto_krb5int_hash_md5=no
18829 fi
18830 rm -f core conftest.err conftest.$ac_objext \
18831     conftest$ac_exeext conftest.$ac_ext
18832 LIBS=$ac_check_lib_save_LIBS
18833 fi
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
18835 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
18836 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
18837   rra_krb5_extra="-lk5crypto $rra_krb5_extra"
18838 fi
18839
18840      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
18841 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
18842 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
18843   $as_echo_n "(cached) " >&6
18844 else
18845   ac_check_lib_save_LIBS=$LIBS
18846 LIBS="-lk5profile $rra_krb5_extra $LIBS"
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h.  */
18849
18850 /* Override any GCC internal prototype to avoid an error.
18851    Use char because int might match the return type of a GCC
18852    builtin and then its argument prototype would still apply.  */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 char profile_get_values ();
18857 int
18858 main ()
18859 {
18860 return profile_get_values ();
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 if ac_fn_c_try_link "$LINENO"; then :
18866   ac_cv_lib_k5profile_profile_get_values=yes
18867 else
18868   ac_cv_lib_k5profile_profile_get_values=no
18869 fi
18870 rm -f core conftest.err conftest.$ac_objext \
18871     conftest$ac_exeext conftest.$ac_ext
18872 LIBS=$ac_check_lib_save_LIBS
18873 fi
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
18875 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
18876 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
18877   rra_krb5_extra="-lk5profile $rra_krb5_extra"
18878 fi
18879
18880      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
18881 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
18882 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
18883   $as_echo_n "(cached) " >&6
18884 else
18885   ac_check_lib_save_LIBS=$LIBS
18886 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
18887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h.  */
18889
18890 /* Override any GCC internal prototype to avoid an error.
18891    Use char because int might match the return type of a GCC
18892    builtin and then its argument prototype would still apply.  */
18893 #ifdef __cplusplus
18894 extern "C"
18895 #endif
18896 char krb5_cc_default ();
18897 int
18898 main ()
18899 {
18900 return krb5_cc_default ();
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 if ac_fn_c_try_link "$LINENO"; then :
18906   ac_cv_lib_krb5_krb5_cc_default=yes
18907 else
18908   ac_cv_lib_krb5_krb5_cc_default=no
18909 fi
18910 rm -f core conftest.err conftest.$ac_objext \
18911     conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18913 fi
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
18915 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
18916 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
18917   KRB5_LIBS="-lkrb5 $rra_krb5_extra"
18918 else
18919   if test x"true" = xtrue; then :
18920   as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
18921 fi
18922 fi
18923
18924 fi
18925
18926  LIBS="$KRB5_LIBS $LIBS"
18927  if test x"$rra_krb5_incroot" = x; then :
18928   for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
18929 do :
18930   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18933   cat >>confdefs.h <<_ACEOF
18934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18935 _ACEOF
18936
18937 fi
18938
18939 done
18940
18941 else
18942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
18943 $as_echo_n "checking for krb5.h... " >&6; }
18944  if test -f "${rra_krb5_incroot}/krb5.h"; then :
18945
18946 cat >>confdefs.h <<_ACEOF
18947 #define HAVE_KRB5_H 1
18948 _ACEOF
18949
18950      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18951 $as_echo "yes" >&6; }
18952 else
18953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18954 $as_echo "no" >&6; }
18955 fi
18956       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
18957 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
18958  if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
18959
18960 cat >>confdefs.h <<_ACEOF
18961 #define HAVE_KERBEROSV5_KRB5_H 1
18962 _ACEOF
18963
18964      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18965 $as_echo "yes" >&6; }
18966 else
18967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968 $as_echo "no" >&6; }
18969 fi
18970       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
18971 $as_echo_n "checking for krb5/krb5.h... " >&6; }
18972  if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
18973
18974 cat >>confdefs.h <<_ACEOF
18975 #define HAVE_KRB5_KRB5_H 1
18976 _ACEOF
18977
18978      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18979 $as_echo "yes" >&6; }
18980 else
18981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18982 $as_echo "no" >&6; }
18983 fi
18984 fi
18985  for ac_func in krb5_get_error_message
18986 do :
18987   ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
18988 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
18989   cat >>confdefs.h <<_ACEOF
18990 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
18991 _ACEOF
18992  for ac_func in krb5_free_error_message
18993 do :
18994   ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
18995 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
18996   cat >>confdefs.h <<_ACEOF
18997 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
18998 _ACEOF
18999
19000 fi
19001 done
19002
19003 else
19004   for ac_func in krb5_get_error_string
19005 do :
19006   ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
19007 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
19008   cat >>confdefs.h <<_ACEOF
19009 #define HAVE_KRB5_GET_ERROR_STRING 1
19010 _ACEOF
19011
19012 else
19013   for ac_func in krb5_get_err_txt
19014 do :
19015   ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
19016 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
19017   cat >>confdefs.h <<_ACEOF
19018 #define HAVE_KRB5_GET_ERR_TXT 1
19019 _ACEOF
19020
19021 else
19022   for ac_func in krb5_svc_get_msg
19023 do :
19024   ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
19025 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
19026   cat >>confdefs.h <<_ACEOF
19027 #define HAVE_KRB5_SVC_GET_MSG 1
19028 _ACEOF
19029  for ac_header in ibm_svc/krb5_svc.h
19030 do :
19031   ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
19032 #if HAVE_KRB5_H
19033 # include <krb5.h>
19034 #elif HAVE_KERBEROSV5_KRB5_H
19035 # include <kerberosv5/krb5.h>
19036 #else
19037 # include <krb5/krb5.h>
19038 #endif
19039
19040 "
19041 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
19042   cat >>confdefs.h <<_ACEOF
19043 #define HAVE_IBM_SVC_KRB5_SVC_H 1
19044 _ACEOF
19045
19046 fi
19047
19048 done
19049
19050 else
19051   if test x"$rra_krb5_incroot" = x; then :
19052   for ac_header in et/com_err.h kerberosv5/com_err.h
19053 do :
19054   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19055 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19056 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19057   cat >>confdefs.h <<_ACEOF
19058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19059 _ACEOF
19060
19061 fi
19062
19063 done
19064
19065 else
19066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
19067 $as_echo_n "checking for et/com_err.h... " >&6; }
19068  if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
19069
19070 cat >>confdefs.h <<_ACEOF
19071 #define HAVE_ET_COM_ERR_H 1
19072 _ACEOF
19073
19074      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19075 $as_echo "yes" >&6; }
19076 else
19077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19078 $as_echo "no" >&6; }
19079 fi
19080          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
19081 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
19082  if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
19083
19084 cat >>confdefs.h <<_ACEOF
19085 #define HAVE_KERBEROSV5_COM_ERR_H 1
19086 _ACEOF
19087
19088      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19089 $as_echo "yes" >&6; }
19090 else
19091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19092 $as_echo "no" >&6; }
19093 fi
19094 fi
19095 fi
19096 done
19097
19098 fi
19099 done
19100
19101 fi
19102 done
19103
19104 fi
19105 done
19106
19107  CPPFLAGS="$rra_krb5_save_CPPFLAGS"
19108  LDFLAGS="$rra_krb5_save_LDFLAGS"
19109  LIBS="$rra_krb5_save_LIBS"
19110 fi
19111 fi
19112  rra_krb5_uses_com_err=false
19113  case $KRB5_LIBS in #(
19114   *-lcom_err*) :
19115     rra_krb5_uses_com_err=true ;; #(
19116   *) :
19117      ;;
19118 esac
19119   if test x"$rra_krb5_uses_com_err" = xtrue; then
19120   KRB5_USES_COM_ERR_TRUE=
19121   KRB5_USES_COM_ERR_FALSE='#'
19122 else
19123   KRB5_USES_COM_ERR_TRUE='#'
19124   KRB5_USES_COM_ERR_FALSE=
19125 fi
19126
19127  KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'`
19128
19129 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
19130
19131 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
19132  rra_krb5_save_LDFLAGS="$LDFLAGS"
19133  rra_krb5_save_LIBS="$LIBS"
19134  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
19135  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
19136  LIBS="$KRB5_LIBS $LIBS"
19137 for ac_header in krb5/pwqual_plugin.h
19138 do :
19139   ac_fn_c_check_header_compile "$LINENO" "krb5/pwqual_plugin.h" "ac_cv_header_krb5_pwqual_plugin_h" "
19140 #if HAVE_KRB5_H
19141 # include <krb5.h>
19142 #elif HAVE_KERBEROSV5_KRB5_H
19143 # include <kerberosv5/krb5.h>
19144 #else
19145 # include <krb5/krb5.h>
19146 #endif
19147
19148 "
19149 if test "x$ac_cv_header_krb5_pwqual_plugin_h" = xyes; then :
19150   cat >>confdefs.h <<_ACEOF
19151 #define HAVE_KRB5_PWQUAL_PLUGIN_H 1
19152 _ACEOF
19153
19154 fi
19155
19156 done
19157
19158 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
19159 #if HAVE_KRB5_H
19160 # include <krb5.h>
19161 #elif HAVE_KERBEROSV5_KRB5_H
19162 # include <kerberosv5/krb5.h>
19163 #else
19164 # include <krb5/krb5.h>
19165 #endif
19166
19167 "
19168 if test "x$ac_cv_type_krb5_realm" = xyes; then :
19169
19170 cat >>confdefs.h <<_ACEOF
19171 #define HAVE_KRB5_REALM 1
19172 _ACEOF
19173
19174
19175 fi
19176
19177 for ac_func in krb5_free_default_realm \
19178     krb5_free_string \
19179     krb5_get_init_creds_opt_alloc \
19180     krb5_get_init_creds_opt_set_default_flags \
19181     krb5_principal_get_realm \
19182     krb5_xfree
19183 do :
19184   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19186 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19187   cat >>confdefs.h <<_ACEOF
19188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19189 _ACEOF
19190
19191 fi
19192 done
19193
19194 for ac_func in krb5_get_init_creds_opt_free
19195 do :
19196   ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
19197 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then :
19198   cat >>confdefs.h <<_ACEOF
19199 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
19200 _ACEOF
19201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
19202 $as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
19203 if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then :
19204   $as_echo_n "(cached) " >&6
19205 else
19206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h.  */
19208
19209 #if HAVE_KRB5_H
19210 # include <krb5.h>
19211 #elif HAVE_KERBEROSV5_KRB5_H
19212 # include <kerberosv5/krb5.h>
19213 #else
19214 # include <krb5/krb5.h>
19215 #endif
19216
19217 int
19218 main(void)
19219 {
19220     krb5_get_init_creds_opt *opts;
19221     krb5_context c;
19222     krb5_get_init_creds_opt_free(c, opts);
19223 }
19224
19225 _ACEOF
19226 if ac_fn_c_try_compile "$LINENO"; then :
19227   rra_cv_func_krb5_get_init_creds_opt_free_args=yes
19228 else
19229   rra_cv_func_krb5_get_init_creds_opt_free_args=no
19230 fi
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 fi
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
19234 $as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
19235  if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then :
19236
19237 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
19238
19239 fi
19240 fi
19241 done
19242
19243 ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "
19244 #if HAVE_KRB5_H
19245 # include <krb5.h>
19246 #elif HAVE_KERBEROSV5_KRB5_H
19247 # include <kerberosv5/krb5.h>
19248 #else
19249 # include <krb5/krb5.h>
19250 #endif
19251
19252 "
19253 if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then :
19254   ac_have_decl=1
19255 else
19256   ac_have_decl=0
19257 fi
19258
19259 cat >>confdefs.h <<_ACEOF
19260 #define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl
19261 _ACEOF
19262
19263 for ac_func in krb5_appdefault_string
19264 do :
19265   ac_fn_c_check_func "$LINENO" "krb5_appdefault_string" "ac_cv_func_krb5_appdefault_string"
19266 if test "x$ac_cv_func_krb5_appdefault_string" = xyes; then :
19267   cat >>confdefs.h <<_ACEOF
19268 #define HAVE_KRB5_APPDEFAULT_STRING 1
19269 _ACEOF
19270
19271 else
19272   for ac_func in krb5_get_profile
19273 do :
19274   ac_fn_c_check_func "$LINENO" "krb5_get_profile" "ac_cv_func_krb5_get_profile"
19275 if test "x$ac_cv_func_krb5_get_profile" = xyes; then :
19276   cat >>confdefs.h <<_ACEOF
19277 #define HAVE_KRB5_GET_PROFILE 1
19278 _ACEOF
19279
19280 fi
19281 done
19282
19283      for ac_header in k5profile.h profile.h
19284 do :
19285   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19288   cat >>confdefs.h <<_ACEOF
19289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19290 _ACEOF
19291
19292 fi
19293
19294 done
19295
19296      case " $LIBOBJS " in
19297   *" krb5-profile.$ac_objext "* ) ;;
19298   *) LIBOBJS="$LIBOBJS krb5-profile.$ac_objext"
19299  ;;
19300 esac
19301
19302 fi
19303 done
19304
19305 case " $LIBOBJS " in
19306   *" krb5-extra.$ac_objext "* ) ;;
19307   *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
19308  ;;
19309 esac
19310
19311 for ac_header in kadm5/kadm5-pwcheck.h kadm5/kadm5_err.h
19312 do :
19313   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19314 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19315 #if HAVE_KRB5_H
19316 # include <krb5.h>
19317 #elif HAVE_KERBEROSV5_KRB5_H
19318 # include <kerberosv5/krb5.h>
19319 #else
19320 # include <krb5/krb5.h>
19321 #endif
19322
19323 "
19324 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19325   cat >>confdefs.h <<_ACEOF
19326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19327 _ACEOF
19328
19329 fi
19330
19331 done
19332
19333 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
19334  LDFLAGS="$rra_krb5_save_LDFLAGS"
19335  LIBS="$rra_krb5_save_LIBS"
19336
19337
19338
19339
19340
19341
19342
19343 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19344         if test -n "$ac_tool_prefix"; then
19345   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19346 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19348 $as_echo_n "checking for $ac_word... " >&6; }
19349 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19350   $as_echo_n "(cached) " >&6
19351 else
19352   case $PKG_CONFIG in
19353   [\\/]* | ?:[\\/]*)
19354   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19355   ;;
19356   *)
19357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19358 for as_dir in $PATH
19359 do
19360   IFS=$as_save_IFS
19361   test -z "$as_dir" && as_dir=.
19362     for ac_exec_ext in '' $ac_executable_extensions; do
19363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19364     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19366     break 2
19367   fi
19368 done
19369   done
19370 IFS=$as_save_IFS
19371
19372   ;;
19373 esac
19374 fi
19375 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19376 if test -n "$PKG_CONFIG"; then
19377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19378 $as_echo "$PKG_CONFIG" >&6; }
19379 else
19380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19381 $as_echo "no" >&6; }
19382 fi
19383
19384
19385 fi
19386 if test -z "$ac_cv_path_PKG_CONFIG"; then
19387   ac_pt_PKG_CONFIG=$PKG_CONFIG
19388   # Extract the first word of "pkg-config", so it can be a program name with args.
19389 set dummy pkg-config; ac_word=$2
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19391 $as_echo_n "checking for $ac_word... " >&6; }
19392 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19393   $as_echo_n "(cached) " >&6
19394 else
19395   case $ac_pt_PKG_CONFIG in
19396   [\\/]* | ?:[\\/]*)
19397   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19398   ;;
19399   *)
19400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19401 for as_dir in $PATH
19402 do
19403   IFS=$as_save_IFS
19404   test -z "$as_dir" && as_dir=.
19405     for ac_exec_ext in '' $ac_executable_extensions; do
19406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19407     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19409     break 2
19410   fi
19411 done
19412   done
19413 IFS=$as_save_IFS
19414
19415   ;;
19416 esac
19417 fi
19418 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19419 if test -n "$ac_pt_PKG_CONFIG"; then
19420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19421 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19422 else
19423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19424 $as_echo "no" >&6; }
19425 fi
19426
19427   if test "x$ac_pt_PKG_CONFIG" = x; then
19428     PKG_CONFIG=""
19429   else
19430     case $cross_compiling:$ac_tool_warned in
19431 yes:)
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19434 ac_tool_warned=yes ;;
19435 esac
19436     PKG_CONFIG=$ac_pt_PKG_CONFIG
19437   fi
19438 else
19439   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19440 fi
19441
19442 fi
19443 if test -n "$PKG_CONFIG"; then
19444         _pkg_min_version=0.9.0
19445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19446 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19447         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19448                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19449 $as_echo "yes" >&6; }
19450         else
19451                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19452 $as_echo "no" >&6; }
19453                 PKG_CONFIG=""
19454         fi
19455 fi
19456 rra_SQLITE_root=
19457  rra_SQLITE_libdir=
19458  rra_SQLITE_includedir=
19459  rra_use_SQLITE=
19460  SQLITE_CPPFLAGS=
19461  SQLITE_LDFLAGS=
19462  SQLITE_LIBS=
19463
19464
19465
19466
19467 # Check whether --with-sqlite was given.
19468 if test "${with_sqlite+set}" = set; then :
19469   withval=$with_sqlite; if test x"$withval" = xno; then :
19470   rra_use_SQLITE=false
19471 else
19472   if test x"$withval" != xyes; then :
19473   rra_SQLITE_root="$withval"
19474 fi
19475          rra_use_SQLITE=true
19476 fi
19477 fi
19478
19479
19480 # Check whether --with-sqlite-include was given.
19481 if test "${with_sqlite_include+set}" = set; then :
19482   withval=$with_sqlite_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
19483   rra_SQLITE_includedir="$withval"
19484 fi
19485 fi
19486
19487
19488 # Check whether --with-sqlite-lib was given.
19489 if test "${with_sqlite_lib+set}" = set; then :
19490   withval=$with_sqlite_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
19491   rra_SQLITE_libdir="$withval"
19492 fi
19493 fi
19494
19495  if test x"$rra_use_SQLITE" != xfalse; then :
19496   if test x"$rra_use_SQLITE" = xtrue; then :
19497   if test x"$rra_SQLITE_libdir" != x; then :
19498   SQLITE_LDFLAGS="-L$rra_SQLITE_libdir"
19499 else
19500   if test x"$rra_SQLITE_root" != x; then :
19501
19502  if test -d "${rra_SQLITE_root}/$rra_lib_arch_name"; then :
19503   if test x"" = x; then :
19504   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}"
19505 else
19506   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}/"
19507 fi
19508 else
19509   if test x"" = x; then :
19510   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib"
19511 else
19512   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib/"
19513 fi
19514 fi
19515  SQLITE_LDFLAGS=`echo "$SQLITE_LDFLAGS" | sed -e 's/^ *//'`
19516 fi
19517 fi
19518  if test x"$rra_SQLITE_includedir" != x; then :
19519   SQLITE_CPPFLAGS="-I$rra_SQLITE_includedir"
19520 else
19521   if test x"$rra_SQLITE_root" != x; then :
19522   if test x"$rra_SQLITE_root" != x/usr; then :
19523   SQLITE_CPPFLAGS="-I${rra_SQLITE_root}/include"
19524 fi
19525 fi
19526 fi
19527  if test x"$SQLITE_CPPFLAGS" = x && test x"$SQLITE_LDFLAGS" = x; then :
19528   if test -n "$PKG_CONFIG" && \
19529     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19530   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19531   ac_status=$?
19532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19533   test $ac_status = 0; }; then
19534
19535 pkg_failed=no
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
19537 $as_echo_n "checking for sqlite3... " >&6; }
19538
19539 if test -n "$SQLITE_CFLAGS"; then
19540     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
19541  elif test -n "$PKG_CONFIG"; then
19542     if test -n "$PKG_CONFIG" && \
19543     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19544   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19545   ac_status=$?
19546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19547   test $ac_status = 0; }; then
19548   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
19549                       test "x$?" != "x0" && pkg_failed=yes
19550 else
19551   pkg_failed=yes
19552 fi
19553  else
19554     pkg_failed=untried
19555 fi
19556 if test -n "$SQLITE_LIBS"; then
19557     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
19558  elif test -n "$PKG_CONFIG"; then
19559     if test -n "$PKG_CONFIG" && \
19560     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19561   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19562   ac_status=$?
19563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19564   test $ac_status = 0; }; then
19565   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
19566                       test "x$?" != "x0" && pkg_failed=yes
19567 else
19568   pkg_failed=yes
19569 fi
19570  else
19571     pkg_failed=untried
19572 fi
19573
19574
19575
19576 if test $pkg_failed = yes; then
19577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19579
19580 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19581         _pkg_short_errors_supported=yes
19582 else
19583         _pkg_short_errors_supported=no
19584 fi
19585         if test $_pkg_short_errors_supported = yes; then
19586                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
19587         else
19588                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
19589         fi
19590         # Put the nasty error message in config.log where it belongs
19591         echo "$SQLITE_PKG_ERRORS" >&5
19592
19593         as_fn_error $? "Package requirements (sqlite3) were not met:
19594
19595 $SQLITE_PKG_ERRORS
19596
19597 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19598 installed software in a non-standard prefix.
19599
19600 Alternatively, you may set the environment variables SQLITE_CFLAGS
19601 and SQLITE_LIBS to avoid the need to call pkg-config.
19602 See the pkg-config man page for more details." "$LINENO" 5
19603 elif test $pkg_failed = untried; then
19604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19605 $as_echo "no" >&6; }
19606         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19608 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19609 is in your PATH or set the PKG_CONFIG environment variable to the full
19610 path to pkg-config.
19611
19612 Alternatively, you may set the environment variables SQLITE_CFLAGS
19613 and SQLITE_LIBS to avoid the need to call pkg-config.
19614 See the pkg-config man page for more details.
19615
19616 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19617 See \`config.log' for more details" "$LINENO" 5; }
19618 else
19619         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
19620         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
19621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19622 $as_echo "yes" >&6; }
19623
19624 fi
19625          SQLITE_CPPFLAGS="$SQLITE_CFLAGS"
19626 fi
19627 fi
19628  if test x"$SQLITE_LIBS" = x; then :
19629   rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
19630  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
19631  rra_SQLITE_save_LIBS="$LIBS"
19632  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
19633  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
19634  LIBS="$SQLITE_LIBS $LIBS"
19635      LIBS=
19636      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
19637 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
19638 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19639   $as_echo_n "(cached) " >&6
19640 else
19641   ac_func_search_save_LIBS=$LIBS
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h.  */
19644
19645 /* Override any GCC internal prototype to avoid an error.
19646    Use char because int might match the return type of a GCC
19647    builtin and then its argument prototype would still apply.  */
19648 #ifdef __cplusplus
19649 extern "C"
19650 #endif
19651 char sqlite3_open_v2 ();
19652 int
19653 main ()
19654 {
19655 return sqlite3_open_v2 ();
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 for ac_lib in '' sqlite3; do
19661   if test -z "$ac_lib"; then
19662     ac_res="none required"
19663   else
19664     ac_res=-l$ac_lib
19665     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19666   fi
19667   if ac_fn_c_try_link "$LINENO"; then :
19668   ac_cv_search_sqlite3_open_v2=$ac_res
19669 fi
19670 rm -f core conftest.err conftest.$ac_objext \
19671     conftest$ac_exeext
19672   if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19673   break
19674 fi
19675 done
19676 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19677
19678 else
19679   ac_cv_search_sqlite3_open_v2=no
19680 fi
19681 rm conftest.$ac_ext
19682 LIBS=$ac_func_search_save_LIBS
19683 fi
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
19685 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
19686 ac_res=$ac_cv_search_sqlite3_open_v2
19687 if test "$ac_res" != no; then :
19688   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19689   SQLITE_LIBS="$LIBS"
19690 else
19691   if test x"true" = xtrue; then :
19692   as_fn_error $? "cannot find usable SQLite library" "$LINENO" 5
19693 fi
19694 fi
19695
19696      CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19697  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19698  LIBS="$rra_SQLITE_save_LIBS"
19699 fi
19700  rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
19701  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
19702  rra_SQLITE_save_LIBS="$LIBS"
19703  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
19704  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
19705  LIBS="$SQLITE_LIBS $LIBS"
19706  for ac_header in sqlite3.h
19707 do :
19708   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
19709 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
19710   cat >>confdefs.h <<_ACEOF
19711 #define HAVE_SQLITE3_H 1
19712 _ACEOF
19713
19714 fi
19715
19716 done
19717
19718  CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19719  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19720  LIBS="$rra_SQLITE_save_LIBS"
19721 else
19722   if test x"$rra_SQLITE_libdir" != x; then :
19723   SQLITE_LDFLAGS="-L$rra_SQLITE_libdir"
19724 else
19725   if test x"$rra_SQLITE_root" != x; then :
19726
19727  if test -d "${rra_SQLITE_root}/$rra_lib_arch_name"; then :
19728   if test x"" = x; then :
19729   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}"
19730 else
19731   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/${rra_lib_arch_name}/"
19732 fi
19733 else
19734   if test x"" = x; then :
19735   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib"
19736 else
19737   SQLITE_LDFLAGS="$SQLITE_LDFLAGS -L${rra_SQLITE_root}/lib/"
19738 fi
19739 fi
19740  SQLITE_LDFLAGS=`echo "$SQLITE_LDFLAGS" | sed -e 's/^ *//'`
19741 fi
19742 fi
19743  if test x"$rra_SQLITE_includedir" != x; then :
19744   SQLITE_CPPFLAGS="-I$rra_SQLITE_includedir"
19745 else
19746   if test x"$rra_SQLITE_root" != x; then :
19747   if test x"$rra_SQLITE_root" != x/usr; then :
19748   SQLITE_CPPFLAGS="-I${rra_SQLITE_root}/include"
19749 fi
19750 fi
19751 fi
19752  if test x"$SQLITE_CPPFLAGS" = x && test x"$SQLITE_LDFLAGS" = x; then :
19753   if test -n "$PKG_CONFIG" && \
19754     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19755   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19756   ac_status=$?
19757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19758   test $ac_status = 0; }; then
19759
19760 pkg_failed=no
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
19762 $as_echo_n "checking for sqlite3... " >&6; }
19763
19764 if test -n "$SQLITE_CFLAGS"; then
19765     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
19766  elif test -n "$PKG_CONFIG"; then
19767     if test -n "$PKG_CONFIG" && \
19768     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19769   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19770   ac_status=$?
19771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19772   test $ac_status = 0; }; then
19773   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
19774                       test "x$?" != "x0" && pkg_failed=yes
19775 else
19776   pkg_failed=yes
19777 fi
19778  else
19779     pkg_failed=untried
19780 fi
19781 if test -n "$SQLITE_LIBS"; then
19782     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
19783  elif test -n "$PKG_CONFIG"; then
19784     if test -n "$PKG_CONFIG" && \
19785     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
19786   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
19787   ac_status=$?
19788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19789   test $ac_status = 0; }; then
19790   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
19791                       test "x$?" != "x0" && pkg_failed=yes
19792 else
19793   pkg_failed=yes
19794 fi
19795  else
19796     pkg_failed=untried
19797 fi
19798
19799
19800
19801 if test $pkg_failed = yes; then
19802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19803 $as_echo "no" >&6; }
19804
19805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19806         _pkg_short_errors_supported=yes
19807 else
19808         _pkg_short_errors_supported=no
19809 fi
19810         if test $_pkg_short_errors_supported = yes; then
19811                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
19812         else
19813                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
19814         fi
19815         # Put the nasty error message in config.log where it belongs
19816         echo "$SQLITE_PKG_ERRORS" >&5
19817
19818         as_fn_error $? "Package requirements (sqlite3) were not met:
19819
19820 $SQLITE_PKG_ERRORS
19821
19822 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19823 installed software in a non-standard prefix.
19824
19825 Alternatively, you may set the environment variables SQLITE_CFLAGS
19826 and SQLITE_LIBS to avoid the need to call pkg-config.
19827 See the pkg-config man page for more details." "$LINENO" 5
19828 elif test $pkg_failed = untried; then
19829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19830 $as_echo "no" >&6; }
19831         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19833 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19834 is in your PATH or set the PKG_CONFIG environment variable to the full
19835 path to pkg-config.
19836
19837 Alternatively, you may set the environment variables SQLITE_CFLAGS
19838 and SQLITE_LIBS to avoid the need to call pkg-config.
19839 See the pkg-config man page for more details.
19840
19841 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19842 See \`config.log' for more details" "$LINENO" 5; }
19843 else
19844         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
19845         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
19846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19847 $as_echo "yes" >&6; }
19848
19849 fi
19850          SQLITE_CPPFLAGS="$SQLITE_CFLAGS"
19851 fi
19852 fi
19853  if test x"$SQLITE_LIBS" = x; then :
19854   rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
19855  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
19856  rra_SQLITE_save_LIBS="$LIBS"
19857  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
19858  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
19859  LIBS="$SQLITE_LIBS $LIBS"
19860      LIBS=
19861      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
19862 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
19863 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19864   $as_echo_n "(cached) " >&6
19865 else
19866   ac_func_search_save_LIBS=$LIBS
19867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19868 /* end confdefs.h.  */
19869
19870 /* Override any GCC internal prototype to avoid an error.
19871    Use char because int might match the return type of a GCC
19872    builtin and then its argument prototype would still apply.  */
19873 #ifdef __cplusplus
19874 extern "C"
19875 #endif
19876 char sqlite3_open_v2 ();
19877 int
19878 main ()
19879 {
19880 return sqlite3_open_v2 ();
19881   ;
19882   return 0;
19883 }
19884 _ACEOF
19885 for ac_lib in '' sqlite3; do
19886   if test -z "$ac_lib"; then
19887     ac_res="none required"
19888   else
19889     ac_res=-l$ac_lib
19890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19891   fi
19892   if ac_fn_c_try_link "$LINENO"; then :
19893   ac_cv_search_sqlite3_open_v2=$ac_res
19894 fi
19895 rm -f core conftest.err conftest.$ac_objext \
19896     conftest$ac_exeext
19897   if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19898   break
19899 fi
19900 done
19901 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
19902
19903 else
19904   ac_cv_search_sqlite3_open_v2=no
19905 fi
19906 rm conftest.$ac_ext
19907 LIBS=$ac_func_search_save_LIBS
19908 fi
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
19910 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
19911 ac_res=$ac_cv_search_sqlite3_open_v2
19912 if test "$ac_res" != no; then :
19913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19914   SQLITE_LIBS="$LIBS"
19915 else
19916   if test x"false" = xtrue; then :
19917   as_fn_error $? "cannot find usable SQLite library" "$LINENO" 5
19918 fi
19919 fi
19920
19921      CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19922  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19923  LIBS="$rra_SQLITE_save_LIBS"
19924 fi
19925  rra_SQLITE_save_CPPFLAGS="$CPPFLAGS"
19926  rra_SQLITE_save_LDFLAGS="$LDFLAGS"
19927  rra_SQLITE_save_LIBS="$LIBS"
19928  CPPFLAGS="$SQLITE_CPPFLAGS $CPPFLAGS"
19929  LDFLAGS="$SQLITE_LDFLAGS $LDFLAGS"
19930  LIBS="$SQLITE_LIBS $LIBS"
19931  for ac_header in sqlite3.h
19932 do :
19933   ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
19934 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
19935   cat >>confdefs.h <<_ACEOF
19936 #define HAVE_SQLITE3_H 1
19937 _ACEOF
19938
19939 fi
19940
19941 done
19942
19943  CPPFLAGS="$rra_SQLITE_save_CPPFLAGS"
19944  LDFLAGS="$rra_SQLITE_save_LDFLAGS"
19945  LIBS="$rra_SQLITE_save_LIBS"
19946 fi
19947 fi
19948  if test x"$SQLITE_LIBS" != x; then :
19949   rra_use_SQLITE=true
19950
19951 $as_echo "#define HAVE_SQLITE 1" >>confdefs.h
19952
19953 fi
19954
19955 save_LIBS="$LIBS"
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19957 $as_echo_n "checking for library containing dlopen... " >&6; }
19958 if ${ac_cv_search_dlopen+:} false; then :
19959   $as_echo_n "(cached) " >&6
19960 else
19961   ac_func_search_save_LIBS=$LIBS
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h.  */
19964
19965 /* Override any GCC internal prototype to avoid an error.
19966    Use char because int might match the return type of a GCC
19967    builtin and then its argument prototype would still apply.  */
19968 #ifdef __cplusplus
19969 extern "C"
19970 #endif
19971 char dlopen ();
19972 int
19973 main ()
19974 {
19975 return dlopen ();
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 for ac_lib in '' dl; do
19981   if test -z "$ac_lib"; then
19982     ac_res="none required"
19983   else
19984     ac_res=-l$ac_lib
19985     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19986   fi
19987   if ac_fn_c_try_link "$LINENO"; then :
19988   ac_cv_search_dlopen=$ac_res
19989 fi
19990 rm -f core conftest.err conftest.$ac_objext \
19991     conftest$ac_exeext
19992   if ${ac_cv_search_dlopen+:} false; then :
19993   break
19994 fi
19995 done
19996 if ${ac_cv_search_dlopen+:} false; then :
19997
19998 else
19999   ac_cv_search_dlopen=no
20000 fi
20001 rm conftest.$ac_ext
20002 LIBS=$ac_func_search_save_LIBS
20003 fi
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20005 $as_echo "$ac_cv_search_dlopen" >&6; }
20006 ac_res=$ac_cv_search_dlopen
20007 if test "$ac_res" != no; then :
20008   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20009   DL_LIBS="$LIBS"
20010 fi
20011
20012 LIBS="$save_LIBS"
20013
20014
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20016 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20017 if ${ac_cv_header_stdbool_h+:} false; then :
20018   $as_echo_n "(cached) " >&6
20019 else
20020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20021 /* end confdefs.h.  */
20022
20023              #include <stdbool.h>
20024              #ifndef bool
20025               "error: bool is not defined"
20026              #endif
20027              #ifndef false
20028               "error: false is not defined"
20029              #endif
20030              #if false
20031               "error: false is not 0"
20032              #endif
20033              #ifndef true
20034               "error: true is not defined"
20035              #endif
20036              #if true != 1
20037               "error: true is not 1"
20038              #endif
20039              #ifndef __bool_true_false_are_defined
20040               "error: __bool_true_false_are_defined is not defined"
20041              #endif
20042
20043              struct s { _Bool s: 1; _Bool t; } s;
20044
20045              char a[true == 1 ? 1 : -1];
20046              char b[false == 0 ? 1 : -1];
20047              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20048              char d[(bool) 0.5 == true ? 1 : -1];
20049              /* See body of main program for 'e'.  */
20050              char f[(_Bool) 0.0 == false ? 1 : -1];
20051              char g[true];
20052              char h[sizeof (_Bool)];
20053              char i[sizeof s.t];
20054              enum { j = false, k = true, l = false * true, m = true * 256 };
20055              /* The following fails for
20056                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20057              _Bool n[m];
20058              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20059              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20060              /* Catch a bug in an HP-UX C compiler.  See
20061                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20062                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20063               */
20064              _Bool q = true;
20065              _Bool *pq = &q;
20066
20067 int
20068 main ()
20069 {
20070
20071              bool e = &s;
20072              *pq |= q;
20073              *pq |= ! q;
20074              /* Refer to every declared value, to avoid compiler optimizations.  */
20075              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20076                      + !m + !n + !o + !p + !q + !pq);
20077
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 if ac_fn_c_try_compile "$LINENO"; then :
20083   ac_cv_header_stdbool_h=yes
20084 else
20085   ac_cv_header_stdbool_h=no
20086 fi
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088 fi
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20090 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20091    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20092 if test "x$ac_cv_type__Bool" = xyes; then :
20093
20094 cat >>confdefs.h <<_ACEOF
20095 #define HAVE__BOOL 1
20096 _ACEOF
20097
20098
20099 fi
20100
20101
20102 if test $ac_cv_header_stdbool_h = yes; then
20103
20104 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20105
20106 fi
20107
20108 for ac_header in strings.h sys/bittypes.h sys/select.h sys/time.h syslog.h
20109 do :
20110   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20113   cat >>confdefs.h <<_ACEOF
20114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20115 _ACEOF
20116
20117 fi
20118
20119 done
20120
20121 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
20122 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
20123   ac_have_decl=1
20124 else
20125   ac_have_decl=0
20126 fi
20127
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_DECL_SNPRINTF $ac_have_decl
20130 _ACEOF
20131 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
20132 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
20133   ac_have_decl=1
20134 else
20135   ac_have_decl=0
20136 fi
20137
20138 cat >>confdefs.h <<_ACEOF
20139 #define HAVE_DECL_VSNPRINTF $ac_have_decl
20140 _ACEOF
20141
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
20143 $as_echo_n "checking for C99 variadic macros... " >&6; }
20144 if ${rra_cv_c_c99_vamacros+:} false; then :
20145   $as_echo_n "(cached) " >&6
20146 else
20147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h.  */
20149
20150 #include <stdio.h>
20151 #define error(...) fprintf(stderr, __VA_ARGS__)
20152
20153 int
20154 main(void) {
20155     error("foo");
20156     error("foo %d", 0);
20157     return 0;
20158 }
20159
20160 _ACEOF
20161 if ac_fn_c_try_compile "$LINENO"; then :
20162   rra_cv_c_c99_vamacros=yes
20163 else
20164   rra_cv_c_c99_vamacros=no
20165 fi
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 fi
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5
20169 $as_echo "$rra_cv_c_c99_vamacros" >&6; }
20170  if test x"$rra_cv_c_c99_vamacros" = xyes; then :
20171
20172 $as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h
20173
20174 fi
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5
20176 $as_echo_n "checking for GNU-style variadic macros... " >&6; }
20177 if ${rra_cv_c_gnu_vamacros+:} false; then :
20178   $as_echo_n "(cached) " >&6
20179 else
20180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181 /* end confdefs.h.  */
20182
20183 #include <stdio.h>
20184 #define error(args...) fprintf(stderr, args)
20185
20186 int
20187 main(void) {
20188     error("foo");
20189     error("foo %d", 0);
20190     return 0;
20191 }
20192
20193 _ACEOF
20194 if ac_fn_c_try_compile "$LINENO"; then :
20195   rra_cv_c_gnu_vamacros=yes
20196 else
20197   rra_cv_c_gnu_vamacros=no
20198 fi
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 fi
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5
20202 $as_echo "$rra_cv_c_gnu_vamacros" >&6; }
20203  if test x"$rra_cv_c_gnu_vamacros" = xyes; then :
20204
20205 $as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h
20206
20207 fi
20208
20209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
20210 $as_echo_n "checking for unsigned long long int... " >&6; }
20211 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
20212   $as_echo_n "(cached) " >&6
20213 else
20214   ac_cv_type_unsigned_long_long_int=yes
20215      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20216        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h.  */
20218
20219   /* For now, do not test the preprocessor; as of 2007 there are too many
20220          implementations with broken preprocessors.  Perhaps this can
20221          be revisited in 2012.  In the meantime, code should not expect
20222          #if to work with literals wider than 32 bits.  */
20223       /* Test literals.  */
20224       long long int ll = 9223372036854775807ll;
20225       long long int nll = -9223372036854775807LL;
20226       unsigned long long int ull = 18446744073709551615ULL;
20227       /* Test constant expressions.   */
20228       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20229                      ? 1 : -1)];
20230       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20231                      ? 1 : -1)];
20232       int i = 63;
20233 int
20234 main ()
20235 {
20236 /* Test availability of runtime routines for shift and division.  */
20237       long long int llmax = 9223372036854775807ll;
20238       unsigned long long int ullmax = 18446744073709551615ull;
20239       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20240               | (llmax / ll) | (llmax % ll)
20241               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20242               | (ullmax / ull) | (ullmax % ull));
20243   ;
20244   return 0;
20245 }
20246
20247 _ACEOF
20248 if ac_fn_c_try_link "$LINENO"; then :
20249
20250 else
20251   ac_cv_type_unsigned_long_long_int=no
20252 fi
20253 rm -f core conftest.err conftest.$ac_objext \
20254     conftest$ac_exeext conftest.$ac_ext
20255      fi
20256 fi
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20258 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20259   if test $ac_cv_type_unsigned_long_long_int = yes; then
20260
20261 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20262
20263   fi
20264
20265
20266
20267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20268 $as_echo_n "checking for long long int... " >&6; }
20269 if ${ac_cv_type_long_long_int+:} false; then :
20270   $as_echo_n "(cached) " >&6
20271 else
20272   ac_cv_type_long_long_int=yes
20273       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20274         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20275         if test $ac_cv_type_long_long_int = yes; then
20276                                         if test "$cross_compiling" = yes; then :
20277   :
20278 else
20279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h.  */
20281 #include <limits.h>
20282                  #ifndef LLONG_MAX
20283                  # define HALF \
20284                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20285                  # define LLONG_MAX (HALF - 1 + HALF)
20286                  #endif
20287 int
20288 main ()
20289 {
20290 long long int n = 1;
20291                  int i;
20292                  for (i = 0; ; i++)
20293                    {
20294                      long long int m = n << i;
20295                      if (m >> i != n)
20296                        return 1;
20297                      if (LLONG_MAX / 2 < m)
20298                        break;
20299                    }
20300                  return 0;
20301   ;
20302   return 0;
20303 }
20304 _ACEOF
20305 if ac_fn_c_try_run "$LINENO"; then :
20306
20307 else
20308   ac_cv_type_long_long_int=no
20309 fi
20310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20311   conftest.$ac_objext conftest.beam conftest.$ac_ext
20312 fi
20313
20314         fi
20315       fi
20316 fi
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20318 $as_echo "$ac_cv_type_long_long_int" >&6; }
20319   if test $ac_cv_type_long_long_int = yes; then
20320
20321 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20322
20323   fi
20324
20325 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
20326 case $ac_cv_c_uint8_t in #(
20327   no|yes) ;; #(
20328   *)
20329
20330 $as_echo "#define _UINT8_T 1" >>confdefs.h
20331
20332
20333 cat >>confdefs.h <<_ACEOF
20334 #define uint8_t $ac_cv_c_uint8_t
20335 _ACEOF
20336 ;;
20337   esac
20338
20339 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
20340 case $ac_cv_c_uint16_t in #(
20341   no|yes) ;; #(
20342   *)
20343
20344
20345 cat >>confdefs.h <<_ACEOF
20346 #define uint16_t $ac_cv_c_uint16_t
20347 _ACEOF
20348 ;;
20349   esac
20350
20351 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
20352 case $ac_cv_c_uint32_t in #(
20353   no|yes) ;; #(
20354   *)
20355
20356 $as_echo "#define _UINT32_T 1" >>confdefs.h
20357
20358
20359 cat >>confdefs.h <<_ACEOF
20360 #define uint32_t $ac_cv_c_uint32_t
20361 _ACEOF
20362 ;;
20363   esac
20364
20365 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
20366 "
20367 if test "x$ac_cv_type_ssize_t" = xyes; then :
20368
20369 cat >>confdefs.h <<_ACEOF
20370 #define HAVE_SSIZE_T 1
20371 _ACEOF
20372
20373
20374 fi
20375
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
20377 $as_echo_n "checking for working snprintf... " >&6; }
20378 if ${rra_cv_func_snprintf_works+:} false; then :
20379   $as_echo_n "(cached) " >&6
20380 else
20381   if test "$cross_compiling" = yes; then :
20382   rra_cv_func_snprintf_works=no
20383 else
20384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20385 /* end confdefs.h.  */
20386
20387 #include <stdio.h>
20388 #include <stdarg.h>
20389
20390 char buf[2];
20391
20392 int
20393 test(char *format, ...)
20394 {
20395     va_list args;
20396     int count;
20397
20398     va_start(args, format);
20399     count = vsnprintf(buf, sizeof buf, format, args);
20400     va_end(args);
20401     return count;
20402 }
20403
20404 int
20405 main()
20406 {
20407     return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
20408              && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
20409 }
20410
20411 _ACEOF
20412 if ac_fn_c_try_run "$LINENO"; then :
20413   rra_cv_func_snprintf_works=yes
20414 else
20415   rra_cv_func_snprintf_works=no
20416 fi
20417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20418   conftest.$ac_objext conftest.beam conftest.$ac_ext
20419 fi
20420
20421 fi
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5
20423 $as_echo "$rra_cv_func_snprintf_works" >&6; }
20424  if test x"$rra_cv_func_snprintf_works" = xyes; then :
20425
20426 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20427
20428 else
20429   case " $LIBOBJS " in
20430   *" snprintf.$ac_objext "* ) ;;
20431   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20432  ;;
20433 esac
20434
20435 fi
20436 for ac_func in explicit_bzero setrlimit
20437 do :
20438   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20441   cat >>confdefs.h <<_ACEOF
20442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20443 _ACEOF
20444
20445 fi
20446 done
20447
20448 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
20449 if test "x$ac_cv_func_asprintf" = xyes; then :
20450   $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
20451
20452 else
20453   case " $LIBOBJS " in
20454   *" asprintf.$ac_objext "* ) ;;
20455   *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
20456  ;;
20457 esac
20458
20459 fi
20460
20461 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
20462 if test "x$ac_cv_func_mkstemp" = xyes; then :
20463   $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
20464
20465 else
20466   case " $LIBOBJS " in
20467   *" mkstemp.$ac_objext "* ) ;;
20468   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
20469  ;;
20470 esac
20471
20472 fi
20473
20474 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20475 if test "x$ac_cv_func_reallocarray" = xyes; then :
20476   $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20477
20478 else
20479   case " $LIBOBJS " in
20480   *" reallocarray.$ac_objext "* ) ;;
20481   *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20482  ;;
20483 esac
20484
20485 fi
20486
20487 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
20488 if test "x$ac_cv_func_strndup" = xyes; then :
20489   $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
20490
20491 else
20492   case " $LIBOBJS " in
20493   *" strndup.$ac_objext "* ) ;;
20494   *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
20495  ;;
20496 esac
20497
20498 fi
20499
20500
20501
20502 ac_config_files="$ac_config_files Makefile"
20503
20504 ac_config_headers="$ac_config_headers config.h"
20505
20506 cat >confcache <<\_ACEOF
20507 # This file is a shell script that caches the results of configure
20508 # tests run on this system so they can be shared between configure
20509 # scripts and configure runs, see configure's option --config-cache.
20510 # It is not useful on other systems.  If it contains results you don't
20511 # want to keep, you may remove or edit it.
20512 #
20513 # config.status only pays attention to the cache file if you give it
20514 # the --recheck option to rerun configure.
20515 #
20516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20518 # following values.
20519
20520 _ACEOF
20521
20522 # The following way of writing the cache mishandles newlines in values,
20523 # but we know of no workaround that is simple, portable, and efficient.
20524 # So, we kill variables containing newlines.
20525 # Ultrix sh set writes to stderr and can't be redirected directly,
20526 # and sets the high bit in the cache file unless we assign to the vars.
20527 (
20528   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20529     eval ac_val=\$$ac_var
20530     case $ac_val in #(
20531     *${as_nl}*)
20532       case $ac_var in #(
20533       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20535       esac
20536       case $ac_var in #(
20537       _ | IFS | as_nl) ;; #(
20538       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20539       *) { eval $ac_var=; unset $ac_var;} ;;
20540       esac ;;
20541     esac
20542   done
20543
20544   (set) 2>&1 |
20545     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20546     *${as_nl}ac_space=\ *)
20547       # `set' does not quote correctly, so add quotes: double-quote
20548       # substitution turns \\\\ into \\, and sed turns \\ into \.
20549       sed -n \
20550         "s/'/'\\\\''/g;
20551           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20552       ;; #(
20553     *)
20554       # `set' quotes correctly as required by POSIX, so do not add quotes.
20555       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20556       ;;
20557     esac |
20558     sort
20559 ) |
20560   sed '
20561      /^ac_cv_env_/b end
20562      t clear
20563      :clear
20564      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20565      t end
20566      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20567      :end' >>confcache
20568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20569   if test -w "$cache_file"; then
20570     if test "x$cache_file" != "x/dev/null"; then
20571       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20572 $as_echo "$as_me: updating cache $cache_file" >&6;}
20573       if test ! -f "$cache_file" || test -h "$cache_file"; then
20574         cat confcache >"$cache_file"
20575       else
20576         case $cache_file in #(
20577         */* | ?:*)
20578           mv -f confcache "$cache_file"$$ &&
20579           mv -f "$cache_file"$$ "$cache_file" ;; #(
20580         *)
20581           mv -f confcache "$cache_file" ;;
20582         esac
20583       fi
20584     fi
20585   else
20586     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20588   fi
20589 fi
20590 rm -f confcache
20591
20592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20593 # Let make expand exec_prefix.
20594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20595
20596 DEFS=-DHAVE_CONFIG_H
20597
20598 ac_libobjs=
20599 ac_ltlibobjs=
20600 U=
20601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20602   # 1. Remove the extension, and $U if already installed.
20603   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20604   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20605   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20606   #    will be set to the directory where LIBOBJS objects are built.
20607   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20608   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20609 done
20610 LIBOBJS=$ac_libobjs
20611
20612 LTLIBOBJS=$ac_ltlibobjs
20613
20614
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20616 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20617    if test -n "$am_sleep_pid"; then
20618      # Hide warnings about reused PIDs.
20619      wait $am_sleep_pid 2>/dev/null
20620    fi
20621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20622 $as_echo "done" >&6; }
20623  if test -n "$EXEEXT"; then
20624   am__EXEEXT_TRUE=
20625   am__EXEEXT_FALSE='#'
20626 else
20627   am__EXEEXT_TRUE='#'
20628   am__EXEEXT_FALSE=
20629 fi
20630
20631 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20632   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20634 fi
20635 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20636   as_fn_error $? "conditional \"AMDEP\" was never defined.
20637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20638 fi
20639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20640   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20642 fi
20643 if test -z "${EMBEDDED_CRACKLIB_TRUE}" && test -z "${EMBEDDED_CRACKLIB_FALSE}"; then
20644   as_fn_error $? "conditional \"EMBEDDED_CRACKLIB\" was never defined.
20645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20646 fi
20647 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
20648   as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
20649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20650 fi
20651
20652 : "${CONFIG_STATUS=./config.status}"
20653 ac_write_fail=0
20654 ac_clean_files_save=$ac_clean_files
20655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20657 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20658 as_write_fail=0
20659 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20660 #! $SHELL
20661 # Generated by $as_me.
20662 # Run this file to recreate the current configuration.
20663 # Compiler output produced by configure, useful for debugging
20664 # configure, is in config.log if it exists.
20665
20666 debug=false
20667 ac_cs_recheck=false
20668 ac_cs_silent=false
20669
20670 SHELL=\${CONFIG_SHELL-$SHELL}
20671 export SHELL
20672 _ASEOF
20673 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20674 ## -------------------- ##
20675 ## M4sh Initialization. ##
20676 ## -------------------- ##
20677
20678 # Be more Bourne compatible
20679 DUALCASE=1; export DUALCASE # for MKS sh
20680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20681   emulate sh
20682   NULLCMD=:
20683   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20684   # is contrary to our usage.  Disable this feature.
20685   alias -g '${1+"$@"}'='"$@"'
20686   setopt NO_GLOB_SUBST
20687 else
20688   case `(set -o) 2>/dev/null` in #(
20689   *posix*) :
20690     set -o posix ;; #(
20691   *) :
20692      ;;
20693 esac
20694 fi
20695
20696
20697 as_nl='
20698 '
20699 export as_nl
20700 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20701 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20704 # Prefer a ksh shell builtin over an external printf program on Solaris,
20705 # but without wasting forks for bash or zsh.
20706 if test -z "$BASH_VERSION$ZSH_VERSION" \
20707     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20708   as_echo='print -r --'
20709   as_echo_n='print -rn --'
20710 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20711   as_echo='printf %s\n'
20712   as_echo_n='printf %s'
20713 else
20714   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20715     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20716     as_echo_n='/usr/ucb/echo -n'
20717   else
20718     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20719     as_echo_n_body='eval
20720       arg=$1;
20721       case $arg in #(
20722       *"$as_nl"*)
20723         expr "X$arg" : "X\\(.*\\)$as_nl";
20724         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20725       esac;
20726       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20727     '
20728     export as_echo_n_body
20729     as_echo_n='sh -c $as_echo_n_body as_echo'
20730   fi
20731   export as_echo_body
20732   as_echo='sh -c $as_echo_body as_echo'
20733 fi
20734
20735 # The user is always right.
20736 if test "${PATH_SEPARATOR+set}" != set; then
20737   PATH_SEPARATOR=:
20738   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20739     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20740       PATH_SEPARATOR=';'
20741   }
20742 fi
20743
20744
20745 # IFS
20746 # We need space, tab and new line, in precisely that order.  Quoting is
20747 # there to prevent editors from complaining about space-tab.
20748 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20749 # splitting by setting IFS to empty value.)
20750 IFS=" ""        $as_nl"
20751
20752 # Find who we are.  Look in the path if we contain no directory separator.
20753 as_myself=
20754 case $0 in #((
20755   *[\\/]* ) as_myself=$0 ;;
20756   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20757 for as_dir in $PATH
20758 do
20759   IFS=$as_save_IFS
20760   test -z "$as_dir" && as_dir=.
20761     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20762   done
20763 IFS=$as_save_IFS
20764
20765      ;;
20766 esac
20767 # We did not find ourselves, most probably we were run as `sh COMMAND'
20768 # in which case we are not to be found in the path.
20769 if test "x$as_myself" = x; then
20770   as_myself=$0
20771 fi
20772 if test ! -f "$as_myself"; then
20773   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20774   exit 1
20775 fi
20776
20777 # Unset variables that we do not need and which cause bugs (e.g. in
20778 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20779 # suppresses any "Segmentation fault" message there.  '((' could
20780 # trigger a bug in pdksh 5.2.14.
20781 for as_var in BASH_ENV ENV MAIL MAILPATH
20782 do eval test x\${$as_var+set} = xset \
20783   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20784 done
20785 PS1='$ '
20786 PS2='> '
20787 PS4='+ '
20788
20789 # NLS nuisances.
20790 LC_ALL=C
20791 export LC_ALL
20792 LANGUAGE=C
20793 export LANGUAGE
20794
20795 # CDPATH.
20796 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20797
20798
20799 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20800 # ----------------------------------------
20801 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20802 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20803 # script with STATUS, using 1 if that was 0.
20804 as_fn_error ()
20805 {
20806   as_status=$1; test $as_status -eq 0 && as_status=1
20807   if test "$4"; then
20808     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20809     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20810   fi
20811   $as_echo "$as_me: error: $2" >&2
20812   as_fn_exit $as_status
20813 } # as_fn_error
20814
20815
20816 # as_fn_set_status STATUS
20817 # -----------------------
20818 # Set $? to STATUS, without forking.
20819 as_fn_set_status ()
20820 {
20821   return $1
20822 } # as_fn_set_status
20823
20824 # as_fn_exit STATUS
20825 # -----------------
20826 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20827 as_fn_exit ()
20828 {
20829   set +e
20830   as_fn_set_status $1
20831   exit $1
20832 } # as_fn_exit
20833
20834 # as_fn_unset VAR
20835 # ---------------
20836 # Portably unset VAR.
20837 as_fn_unset ()
20838 {
20839   { eval $1=; unset $1;}
20840 }
20841 as_unset=as_fn_unset
20842 # as_fn_append VAR VALUE
20843 # ----------------------
20844 # Append the text in VALUE to the end of the definition contained in VAR. Take
20845 # advantage of any shell optimizations that allow amortized linear growth over
20846 # repeated appends, instead of the typical quadratic growth present in naive
20847 # implementations.
20848 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20849   eval 'as_fn_append ()
20850   {
20851     eval $1+=\$2
20852   }'
20853 else
20854   as_fn_append ()
20855   {
20856     eval $1=\$$1\$2
20857   }
20858 fi # as_fn_append
20859
20860 # as_fn_arith ARG...
20861 # ------------------
20862 # Perform arithmetic evaluation on the ARGs, and store the result in the
20863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20864 # must be portable across $(()) and expr.
20865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20866   eval 'as_fn_arith ()
20867   {
20868     as_val=$(( $* ))
20869   }'
20870 else
20871   as_fn_arith ()
20872   {
20873     as_val=`expr "$@" || test $? -eq 1`
20874   }
20875 fi # as_fn_arith
20876
20877
20878 if expr a : '\(a\)' >/dev/null 2>&1 &&
20879    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20880   as_expr=expr
20881 else
20882   as_expr=false
20883 fi
20884
20885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20886   as_basename=basename
20887 else
20888   as_basename=false
20889 fi
20890
20891 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20892   as_dirname=dirname
20893 else
20894   as_dirname=false
20895 fi
20896
20897 as_me=`$as_basename -- "$0" ||
20898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20899          X"$0" : 'X\(//\)$' \| \
20900          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20901 $as_echo X/"$0" |
20902     sed '/^.*\/\([^/][^/]*\)\/*$/{
20903             s//\1/
20904             q
20905           }
20906           /^X\/\(\/\/\)$/{
20907             s//\1/
20908             q
20909           }
20910           /^X\/\(\/\).*/{
20911             s//\1/
20912             q
20913           }
20914           s/.*/./; q'`
20915
20916 # Avoid depending upon Character Ranges.
20917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20920 as_cr_digits='0123456789'
20921 as_cr_alnum=$as_cr_Letters$as_cr_digits
20922
20923 ECHO_C= ECHO_N= ECHO_T=
20924 case `echo -n x` in #(((((
20925 -n*)
20926   case `echo 'xy\c'` in
20927   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20928   xy)  ECHO_C='\c';;
20929   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20930        ECHO_T=' ';;
20931   esac;;
20932 *)
20933   ECHO_N='-n';;
20934 esac
20935
20936 rm -f conf$$ conf$$.exe conf$$.file
20937 if test -d conf$$.dir; then
20938   rm -f conf$$.dir/conf$$.file
20939 else
20940   rm -f conf$$.dir
20941   mkdir conf$$.dir 2>/dev/null
20942 fi
20943 if (echo >conf$$.file) 2>/dev/null; then
20944   if ln -s conf$$.file conf$$ 2>/dev/null; then
20945     as_ln_s='ln -s'
20946     # ... but there are two gotchas:
20947     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20948     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20949     # In both cases, we have to default to `cp -pR'.
20950     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20951       as_ln_s='cp -pR'
20952   elif ln conf$$.file conf$$ 2>/dev/null; then
20953     as_ln_s=ln
20954   else
20955     as_ln_s='cp -pR'
20956   fi
20957 else
20958   as_ln_s='cp -pR'
20959 fi
20960 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20961 rmdir conf$$.dir 2>/dev/null
20962
20963
20964 # as_fn_mkdir_p
20965 # -------------
20966 # Create "$as_dir" as a directory, including parents if necessary.
20967 as_fn_mkdir_p ()
20968 {
20969
20970   case $as_dir in #(
20971   -*) as_dir=./$as_dir;;
20972   esac
20973   test -d "$as_dir" || eval $as_mkdir_p || {
20974     as_dirs=
20975     while :; do
20976       case $as_dir in #(
20977       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20978       *) as_qdir=$as_dir;;
20979       esac
20980       as_dirs="'$as_qdir' $as_dirs"
20981       as_dir=`$as_dirname -- "$as_dir" ||
20982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20983          X"$as_dir" : 'X\(//\)[^/]' \| \
20984          X"$as_dir" : 'X\(//\)$' \| \
20985          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20986 $as_echo X"$as_dir" |
20987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20988             s//\1/
20989             q
20990           }
20991           /^X\(\/\/\)[^/].*/{
20992             s//\1/
20993             q
20994           }
20995           /^X\(\/\/\)$/{
20996             s//\1/
20997             q
20998           }
20999           /^X\(\/\).*/{
21000             s//\1/
21001             q
21002           }
21003           s/.*/./; q'`
21004       test -d "$as_dir" && break
21005     done
21006     test -z "$as_dirs" || eval "mkdir $as_dirs"
21007   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21008
21009
21010 } # as_fn_mkdir_p
21011 if mkdir -p . 2>/dev/null; then
21012   as_mkdir_p='mkdir -p "$as_dir"'
21013 else
21014   test -d ./-p && rmdir ./-p
21015   as_mkdir_p=false
21016 fi
21017
21018
21019 # as_fn_executable_p FILE
21020 # -----------------------
21021 # Test if FILE is an executable regular file.
21022 as_fn_executable_p ()
21023 {
21024   test -f "$1" && test -x "$1"
21025 } # as_fn_executable_p
21026 as_test_x='test -x'
21027 as_executable_p=as_fn_executable_p
21028
21029 # Sed expression to map a string onto a valid CPP name.
21030 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21031
21032 # Sed expression to map a string onto a valid variable name.
21033 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21034
21035
21036 exec 6>&1
21037 ## ----------------------------------- ##
21038 ## Main body of $CONFIG_STATUS script. ##
21039 ## ----------------------------------- ##
21040 _ASEOF
21041 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21042
21043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21044 # Save the log message, to keep $0 and so on meaningful, and to
21045 # report actual input values of CONFIG_FILES etc. instead of their
21046 # values after options handling.
21047 ac_log="
21048 This file was extended by krb5-strength $as_me 3.2, which was
21049 generated by GNU Autoconf 2.69.  Invocation command line was
21050
21051   CONFIG_FILES    = $CONFIG_FILES
21052   CONFIG_HEADERS  = $CONFIG_HEADERS
21053   CONFIG_LINKS    = $CONFIG_LINKS
21054   CONFIG_COMMANDS = $CONFIG_COMMANDS
21055   $ $0 $@
21056
21057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21058 "
21059
21060 _ACEOF
21061
21062 case $ac_config_files in *"
21063 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21064 esac
21065
21066 case $ac_config_headers in *"
21067 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21068 esac
21069
21070
21071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21072 # Files that config.status was made for.
21073 config_files="$ac_config_files"
21074 config_headers="$ac_config_headers"
21075 config_commands="$ac_config_commands"
21076
21077 _ACEOF
21078
21079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21080 ac_cs_usage="\
21081 \`$as_me' instantiates files and other configuration actions
21082 from templates according to the current configuration.  Unless the files
21083 and actions are specified as TAGs, all are instantiated by default.
21084
21085 Usage: $0 [OPTION]... [TAG]...
21086
21087   -h, --help       print this help, then exit
21088   -V, --version    print version number and configuration settings, then exit
21089       --config     print configuration, then exit
21090   -q, --quiet, --silent
21091                    do not print progress messages
21092   -d, --debug      don't remove temporary files
21093       --recheck    update $as_me by reconfiguring in the same conditions
21094       --file=FILE[:TEMPLATE]
21095                    instantiate the configuration file FILE
21096       --header=FILE[:TEMPLATE]
21097                    instantiate the configuration header FILE
21098
21099 Configuration files:
21100 $config_files
21101
21102 Configuration headers:
21103 $config_headers
21104
21105 Configuration commands:
21106 $config_commands
21107
21108 Report bugs to <eagle@eyrie.org>."
21109
21110 _ACEOF
21111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21112 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21113 ac_cs_version="\\
21114 krb5-strength config.status 3.2
21115 configured by $0, generated by GNU Autoconf 2.69,
21116   with options \\"\$ac_cs_config\\"
21117
21118 Copyright (C) 2012 Free Software Foundation, Inc.
21119 This config.status script is free software; the Free Software Foundation
21120 gives unlimited permission to copy, distribute and modify it."
21121
21122 ac_pwd='$ac_pwd'
21123 srcdir='$srcdir'
21124 INSTALL='$INSTALL'
21125 MKDIR_P='$MKDIR_P'
21126 AWK='$AWK'
21127 test -n "\$AWK" || AWK=awk
21128 _ACEOF
21129
21130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21131 # The default lists apply if the user does not specify any file.
21132 ac_need_defaults=:
21133 while test $# != 0
21134 do
21135   case $1 in
21136   --*=?*)
21137     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21138     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21139     ac_shift=:
21140     ;;
21141   --*=)
21142     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21143     ac_optarg=
21144     ac_shift=:
21145     ;;
21146   *)
21147     ac_option=$1
21148     ac_optarg=$2
21149     ac_shift=shift
21150     ;;
21151   esac
21152
21153   case $ac_option in
21154   # Handling of the options.
21155   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21156     ac_cs_recheck=: ;;
21157   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21158     $as_echo "$ac_cs_version"; exit ;;
21159   --config | --confi | --conf | --con | --co | --c )
21160     $as_echo "$ac_cs_config"; exit ;;
21161   --debug | --debu | --deb | --de | --d | -d )
21162     debug=: ;;
21163   --file | --fil | --fi | --f )
21164     $ac_shift
21165     case $ac_optarg in
21166     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21167     '') as_fn_error $? "missing file argument" ;;
21168     esac
21169     as_fn_append CONFIG_FILES " '$ac_optarg'"
21170     ac_need_defaults=false;;
21171   --header | --heade | --head | --hea )
21172     $ac_shift
21173     case $ac_optarg in
21174     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21175     esac
21176     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21177     ac_need_defaults=false;;
21178   --he | --h)
21179     # Conflict between --help and --header
21180     as_fn_error $? "ambiguous option: \`$1'
21181 Try \`$0 --help' for more information.";;
21182   --help | --hel | -h )
21183     $as_echo "$ac_cs_usage"; exit ;;
21184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21185   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21186     ac_cs_silent=: ;;
21187
21188   # This is an error.
21189   -*) as_fn_error $? "unrecognized option: \`$1'
21190 Try \`$0 --help' for more information." ;;
21191
21192   *) as_fn_append ac_config_targets " $1"
21193      ac_need_defaults=false ;;
21194
21195   esac
21196   shift
21197 done
21198
21199 ac_configure_extra_args=
21200
21201 if $ac_cs_silent; then
21202   exec 6>/dev/null
21203   ac_configure_extra_args="$ac_configure_extra_args --silent"
21204 fi
21205
21206 _ACEOF
21207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21208 if \$ac_cs_recheck; then
21209   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21210   shift
21211   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21212   CONFIG_SHELL='$SHELL'
21213   export CONFIG_SHELL
21214   exec "\$@"
21215 fi
21216
21217 _ACEOF
21218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21219 exec 5>>config.log
21220 {
21221   echo
21222   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21223 ## Running $as_me. ##
21224 _ASBOX
21225   $as_echo "$ac_log"
21226 } >&5
21227
21228 _ACEOF
21229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21230 #
21231 # INIT-COMMANDS
21232 #
21233 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21234
21235
21236 # The HP-UX ksh and POSIX shell print the target directory to stdout
21237 # if CDPATH is set.
21238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21239
21240 sed_quote_subst='$sed_quote_subst'
21241 double_quote_subst='$double_quote_subst'
21242 delay_variable_subst='$delay_variable_subst'
21243 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21244 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21245 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21246 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21247 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21248 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21249 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21250 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21251 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21252 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21253 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21254 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21255 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21256 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21257 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21258 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21259 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21260 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21261 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21262 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21263 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21264 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21265 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21266 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21267 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21268 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21269 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21270 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21271 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21272 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21273 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21274 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21275 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21276 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21277 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21278 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21279 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21280 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21281 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21282 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21283 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21284 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21285 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21286 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21287 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21288 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21289 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21290 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21291 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21292 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21293 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21294 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21295 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21296 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21297 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21298 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21299 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21300 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21301 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"`'
21302 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21303 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21304 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21305 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21306 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21307 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21308 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21309 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21310 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21311 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21312 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21313 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21314 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21315 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21316 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21317 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21318 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21319 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21320 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21321 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21322 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21323 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21324 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21325 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21326 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21327 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21328 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21329 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21330 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21331 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21332 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21333 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21334 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21335 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21336 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21337 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21338 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21339 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21340 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21341 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21342 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21343 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21344 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21345 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21346 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21347 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21348 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21349 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21350 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21351 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21352 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21353 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21354 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21355 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21356 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21357 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21358 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21359 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21360 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21361 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21362 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21363 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21364 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21365 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21366 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21367 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21368 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21369 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21370 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21371 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21372 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21373 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21374 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21375 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21376 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21377 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21378
21379 LTCC='$LTCC'
21380 LTCFLAGS='$LTCFLAGS'
21381 compiler='$compiler_DEFAULT'
21382
21383 # A function that is used when there is no print builtin or printf.
21384 func_fallback_echo ()
21385 {
21386   eval 'cat <<_LTECHO_EOF
21387 \$1
21388 _LTECHO_EOF'
21389 }
21390
21391 # Quote evaled strings.
21392 for var in SHELL \
21393 ECHO \
21394 PATH_SEPARATOR \
21395 SED \
21396 GREP \
21397 EGREP \
21398 FGREP \
21399 LD \
21400 NM \
21401 LN_S \
21402 lt_SP2NL \
21403 lt_NL2SP \
21404 reload_flag \
21405 OBJDUMP \
21406 deplibs_check_method \
21407 file_magic_cmd \
21408 file_magic_glob \
21409 want_nocaseglob \
21410 DLLTOOL \
21411 sharedlib_from_linklib_cmd \
21412 AR \
21413 AR_FLAGS \
21414 archiver_list_spec \
21415 STRIP \
21416 RANLIB \
21417 CC \
21418 CFLAGS \
21419 compiler \
21420 lt_cv_sys_global_symbol_pipe \
21421 lt_cv_sys_global_symbol_to_cdecl \
21422 lt_cv_sys_global_symbol_to_import \
21423 lt_cv_sys_global_symbol_to_c_name_address \
21424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21425 lt_cv_nm_interface \
21426 nm_file_list_spec \
21427 lt_cv_truncate_bin \
21428 lt_prog_compiler_no_builtin_flag \
21429 lt_prog_compiler_pic \
21430 lt_prog_compiler_wl \
21431 lt_prog_compiler_static \
21432 lt_cv_prog_compiler_c_o \
21433 need_locks \
21434 MANIFEST_TOOL \
21435 DSYMUTIL \
21436 NMEDIT \
21437 LIPO \
21438 OTOOL \
21439 OTOOL64 \
21440 shrext_cmds \
21441 export_dynamic_flag_spec \
21442 whole_archive_flag_spec \
21443 compiler_needs_object \
21444 with_gnu_ld \
21445 allow_undefined_flag \
21446 no_undefined_flag \
21447 hardcode_libdir_flag_spec \
21448 hardcode_libdir_separator \
21449 exclude_expsyms \
21450 include_expsyms \
21451 file_list_spec \
21452 variables_saved_for_relink \
21453 libname_spec \
21454 library_names_spec \
21455 soname_spec \
21456 install_override_mode \
21457 finish_eval \
21458 old_striplib \
21459 striplib; do
21460     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21461     *[\\\\\\\`\\"\\\$]*)
21462       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21463       ;;
21464     *)
21465       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21466       ;;
21467     esac
21468 done
21469
21470 # Double-quote double-evaled strings.
21471 for var in reload_cmds \
21472 old_postinstall_cmds \
21473 old_postuninstall_cmds \
21474 old_archive_cmds \
21475 extract_expsyms_cmds \
21476 old_archive_from_new_cmds \
21477 old_archive_from_expsyms_cmds \
21478 archive_cmds \
21479 archive_expsym_cmds \
21480 module_cmds \
21481 module_expsym_cmds \
21482 export_symbols_cmds \
21483 prelink_cmds \
21484 postlink_cmds \
21485 postinstall_cmds \
21486 postuninstall_cmds \
21487 finish_cmds \
21488 sys_lib_search_path_spec \
21489 configure_time_dlsearch_path \
21490 configure_time_lt_sys_library_path; do
21491     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21492     *[\\\\\\\`\\"\\\$]*)
21493       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21494       ;;
21495     *)
21496       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21497       ;;
21498     esac
21499 done
21500
21501 ac_aux_dir='$ac_aux_dir'
21502
21503 # See if we are running on zsh, and set the options that allow our
21504 # commands through without removal of \ escapes INIT.
21505 if test -n "\${ZSH_VERSION+set}"; then
21506    setopt NO_GLOB_SUBST
21507 fi
21508
21509
21510     PACKAGE='$PACKAGE'
21511     VERSION='$VERSION'
21512     RM='$RM'
21513     ofile='$ofile'
21514
21515
21516
21517
21518 _ACEOF
21519
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21521
21522 # Handling of arguments.
21523 for ac_config_target in $ac_config_targets
21524 do
21525   case $ac_config_target in
21526     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21527     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21528     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21529     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21530
21531   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21532   esac
21533 done
21534
21535
21536 # If the user did not use the arguments to specify the items to instantiate,
21537 # then the envvar interface is used.  Set only those that are not.
21538 # We use the long form for the default assignment because of an extremely
21539 # bizarre bug on SunOS 4.1.3.
21540 if $ac_need_defaults; then
21541   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21542   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21543   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21544 fi
21545
21546 # Have a temporary directory for convenience.  Make it in the build tree
21547 # simply because there is no reason against having it here, and in addition,
21548 # creating and moving files from /tmp can sometimes cause problems.
21549 # Hook for its removal unless debugging.
21550 # Note that there is a small window in which the directory will not be cleaned:
21551 # after its creation but before its name has been assigned to `$tmp'.
21552 $debug ||
21553 {
21554   tmp= ac_tmp=
21555   trap 'exit_status=$?
21556   : "${ac_tmp:=$tmp}"
21557   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21558 ' 0
21559   trap 'as_fn_exit 1' 1 2 13 15
21560 }
21561 # Create a (secure) tmp directory for tmp files.
21562
21563 {
21564   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21565   test -d "$tmp"
21566 }  ||
21567 {
21568   tmp=./conf$$-$RANDOM
21569   (umask 077 && mkdir "$tmp")
21570 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21571 ac_tmp=$tmp
21572
21573 # Set up the scripts for CONFIG_FILES section.
21574 # No need to generate them if there are no CONFIG_FILES.
21575 # This happens for instance with `./config.status config.h'.
21576 if test -n "$CONFIG_FILES"; then
21577
21578
21579 ac_cr=`echo X | tr X '\015'`
21580 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21581 # But we know of no other shell where ac_cr would be empty at this
21582 # point, so we can use a bashism as a fallback.
21583 if test "x$ac_cr" = x; then
21584   eval ac_cr=\$\'\\r\'
21585 fi
21586 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21587 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21588   ac_cs_awk_cr='\\r'
21589 else
21590   ac_cs_awk_cr=$ac_cr
21591 fi
21592
21593 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21594 _ACEOF
21595
21596
21597 {
21598   echo "cat >conf$$subs.awk <<_ACEOF" &&
21599   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21600   echo "_ACEOF"
21601 } >conf$$subs.sh ||
21602   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21604 ac_delim='%!_!# '
21605 for ac_last_try in false false false false false :; do
21606   . ./conf$$subs.sh ||
21607     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21608
21609   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21610   if test $ac_delim_n = $ac_delim_num; then
21611     break
21612   elif $ac_last_try; then
21613     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21614   else
21615     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21616   fi
21617 done
21618 rm -f conf$$subs.sh
21619
21620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21621 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21622 _ACEOF
21623 sed -n '
21624 h
21625 s/^/S["/; s/!.*/"]=/
21626 p
21627 g
21628 s/^[^!]*!//
21629 :repl
21630 t repl
21631 s/'"$ac_delim"'$//
21632 t delim
21633 :nl
21634 h
21635 s/\(.\{148\}\)..*/\1/
21636 t more1
21637 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21638 p
21639 n
21640 b repl
21641 :more1
21642 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21643 p
21644 g
21645 s/.\{148\}//
21646 t nl
21647 :delim
21648 h
21649 s/\(.\{148\}\)..*/\1/
21650 t more2
21651 s/["\\]/\\&/g; s/^/"/; s/$/"/
21652 p
21653 b
21654 :more2
21655 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21656 p
21657 g
21658 s/.\{148\}//
21659 t delim
21660 ' <conf$$subs.awk | sed '
21661 /^[^""]/{
21662   N
21663   s/\n//
21664 }
21665 ' >>$CONFIG_STATUS || ac_write_fail=1
21666 rm -f conf$$subs.awk
21667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21668 _ACAWK
21669 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21670   for (key in S) S_is_set[key] = 1
21671   FS = "\a"
21672
21673 }
21674 {
21675   line = $ 0
21676   nfields = split(line, field, "@")
21677   substed = 0
21678   len = length(field[1])
21679   for (i = 2; i < nfields; i++) {
21680     key = field[i]
21681     keylen = length(key)
21682     if (S_is_set[key]) {
21683       value = S[key]
21684       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21685       len += length(value) + length(field[++i])
21686       substed = 1
21687     } else
21688       len += 1 + keylen
21689   }
21690
21691   print line
21692 }
21693
21694 _ACAWK
21695 _ACEOF
21696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21697 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21698   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21699 else
21700   cat
21701 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21702   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21703 _ACEOF
21704
21705 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21706 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21707 # trailing colons and then remove the whole line if VPATH becomes empty
21708 # (actually we leave an empty line to preserve line numbers).
21709 if test "x$srcdir" = x.; then
21710   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21711 h
21712 s///
21713 s/^/:/
21714 s/[      ]*$/:/
21715 s/:\$(srcdir):/:/g
21716 s/:\${srcdir}:/:/g
21717 s/:@srcdir@:/:/g
21718 s/^:*//
21719 s/:*$//
21720 x
21721 s/\(=[   ]*\).*/\1/
21722 G
21723 s/\n//
21724 s/^[^=]*=[       ]*$//
21725 }'
21726 fi
21727
21728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21729 fi # test -n "$CONFIG_FILES"
21730
21731 # Set up the scripts for CONFIG_HEADERS section.
21732 # No need to generate them if there are no CONFIG_HEADERS.
21733 # This happens for instance with `./config.status Makefile'.
21734 if test -n "$CONFIG_HEADERS"; then
21735 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21736 BEGIN {
21737 _ACEOF
21738
21739 # Transform confdefs.h into an awk script `defines.awk', embedded as
21740 # here-document in config.status, that substitutes the proper values into
21741 # config.h.in to produce config.h.
21742
21743 # Create a delimiter string that does not exist in confdefs.h, to ease
21744 # handling of long lines.
21745 ac_delim='%!_!# '
21746 for ac_last_try in false false :; do
21747   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21748   if test -z "$ac_tt"; then
21749     break
21750   elif $ac_last_try; then
21751     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21752   else
21753     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21754   fi
21755 done
21756
21757 # For the awk script, D is an array of macro values keyed by name,
21758 # likewise P contains macro parameters if any.  Preserve backslash
21759 # newline sequences.
21760
21761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21762 sed -n '
21763 s/.\{148\}/&'"$ac_delim"'/g
21764 t rset
21765 :rset
21766 s/^[     ]*#[    ]*define[       ][      ]*/ /
21767 t def
21768 d
21769 :def
21770 s/\\$//
21771 t bsnl
21772 s/["\\]/\\&/g
21773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21774 D["\1"]=" \3"/p
21775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21776 d
21777 :bsnl
21778 s/["\\]/\\&/g
21779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21780 D["\1"]=" \3\\\\\\n"\\/p
21781 t cont
21782 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21783 t cont
21784 d
21785 :cont
21786 n
21787 s/.\{148\}/&'"$ac_delim"'/g
21788 t clear
21789 :clear
21790 s/\\$//
21791 t bsnlc
21792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21793 d
21794 :bsnlc
21795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21796 b cont
21797 ' <confdefs.h | sed '
21798 s/'"$ac_delim"'/"\\\
21799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21800
21801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21802   for (key in D) D_is_set[key] = 1
21803   FS = "\a"
21804 }
21805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21806   line = \$ 0
21807   split(line, arg, " ")
21808   if (arg[1] == "#") {
21809     defundef = arg[2]
21810     mac1 = arg[3]
21811   } else {
21812     defundef = substr(arg[1], 2)
21813     mac1 = arg[2]
21814   }
21815   split(mac1, mac2, "(") #)
21816   macro = mac2[1]
21817   prefix = substr(line, 1, index(line, defundef) - 1)
21818   if (D_is_set[macro]) {
21819     # Preserve the white space surrounding the "#".
21820     print prefix "define", macro P[macro] D[macro]
21821     next
21822   } else {
21823     # Replace #undef with comments.  This is necessary, for example,
21824     # in the case of _POSIX_SOURCE, which is predefined and required
21825     # on some systems where configure will not decide to define it.
21826     if (defundef == "undef") {
21827       print "/*", prefix defundef, macro, "*/"
21828       next
21829     }
21830   }
21831 }
21832 { print }
21833 _ACAWK
21834 _ACEOF
21835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21836   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21837 fi # test -n "$CONFIG_HEADERS"
21838
21839
21840 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21841 shift
21842 for ac_tag
21843 do
21844   case $ac_tag in
21845   :[FHLC]) ac_mode=$ac_tag; continue;;
21846   esac
21847   case $ac_mode$ac_tag in
21848   :[FHL]*:*);;
21849   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21850   :[FH]-) ac_tag=-:-;;
21851   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21852   esac
21853   ac_save_IFS=$IFS
21854   IFS=:
21855   set x $ac_tag
21856   IFS=$ac_save_IFS
21857   shift
21858   ac_file=$1
21859   shift
21860
21861   case $ac_mode in
21862   :L) ac_source=$1;;
21863   :[FH])
21864     ac_file_inputs=
21865     for ac_f
21866     do
21867       case $ac_f in
21868       -) ac_f="$ac_tmp/stdin";;
21869       *) # Look for the file first in the build tree, then in the source tree
21870          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21871          # because $ac_f cannot contain `:'.
21872          test -f "$ac_f" ||
21873            case $ac_f in
21874            [\\/$]*) false;;
21875            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21876            esac ||
21877            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21878       esac
21879       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21880       as_fn_append ac_file_inputs " '$ac_f'"
21881     done
21882
21883     # Let's still pretend it is `configure' which instantiates (i.e., don't
21884     # use $as_me), people would be surprised to read:
21885     #    /* config.h.  Generated by config.status.  */
21886     configure_input='Generated from '`
21887           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21888         `' by configure.'
21889     if test x"$ac_file" != x-; then
21890       configure_input="$ac_file.  $configure_input"
21891       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21892 $as_echo "$as_me: creating $ac_file" >&6;}
21893     fi
21894     # Neutralize special characters interpreted by sed in replacement strings.
21895     case $configure_input in #(
21896     *\&* | *\|* | *\\* )
21897        ac_sed_conf_input=`$as_echo "$configure_input" |
21898        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21899     *) ac_sed_conf_input=$configure_input;;
21900     esac
21901
21902     case $ac_tag in
21903     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21904       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21905     esac
21906     ;;
21907   esac
21908
21909   ac_dir=`$as_dirname -- "$ac_file" ||
21910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21911          X"$ac_file" : 'X\(//\)[^/]' \| \
21912          X"$ac_file" : 'X\(//\)$' \| \
21913          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21914 $as_echo X"$ac_file" |
21915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21916             s//\1/
21917             q
21918           }
21919           /^X\(\/\/\)[^/].*/{
21920             s//\1/
21921             q
21922           }
21923           /^X\(\/\/\)$/{
21924             s//\1/
21925             q
21926           }
21927           /^X\(\/\).*/{
21928             s//\1/
21929             q
21930           }
21931           s/.*/./; q'`
21932   as_dir="$ac_dir"; as_fn_mkdir_p
21933   ac_builddir=.
21934
21935 case "$ac_dir" in
21936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21937 *)
21938   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21939   # A ".." for each directory in $ac_dir_suffix.
21940   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21941   case $ac_top_builddir_sub in
21942   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21943   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21944   esac ;;
21945 esac
21946 ac_abs_top_builddir=$ac_pwd
21947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21948 # for backward compatibility:
21949 ac_top_builddir=$ac_top_build_prefix
21950
21951 case $srcdir in
21952   .)  # We are building in place.
21953     ac_srcdir=.
21954     ac_top_srcdir=$ac_top_builddir_sub
21955     ac_abs_top_srcdir=$ac_pwd ;;
21956   [\\/]* | ?:[\\/]* )  # Absolute name.
21957     ac_srcdir=$srcdir$ac_dir_suffix;
21958     ac_top_srcdir=$srcdir
21959     ac_abs_top_srcdir=$srcdir ;;
21960   *) # Relative name.
21961     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21962     ac_top_srcdir=$ac_top_build_prefix$srcdir
21963     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21964 esac
21965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21966
21967
21968   case $ac_mode in
21969   :F)
21970   #
21971   # CONFIG_FILE
21972   #
21973
21974   case $INSTALL in
21975   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21976   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21977   esac
21978   ac_MKDIR_P=$MKDIR_P
21979   case $MKDIR_P in
21980   [\\/$]* | ?:[\\/]* ) ;;
21981   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21982   esac
21983 _ACEOF
21984
21985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21986 # If the template does not know about datarootdir, expand it.
21987 # FIXME: This hack should be removed a few years after 2.60.
21988 ac_datarootdir_hack=; ac_datarootdir_seen=
21989 ac_sed_dataroot='
21990 /datarootdir/ {
21991   p
21992   q
21993 }
21994 /@datadir@/p
21995 /@docdir@/p
21996 /@infodir@/p
21997 /@localedir@/p
21998 /@mandir@/p'
21999 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22000 *datarootdir*) ac_datarootdir_seen=yes;;
22001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22002   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22003 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22004 _ACEOF
22005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22006   ac_datarootdir_hack='
22007   s&@datadir@&$datadir&g
22008   s&@docdir@&$docdir&g
22009   s&@infodir@&$infodir&g
22010   s&@localedir@&$localedir&g
22011   s&@mandir@&$mandir&g
22012   s&\\\${datarootdir}&$datarootdir&g' ;;
22013 esac
22014 _ACEOF
22015
22016 # Neutralize VPATH when `$srcdir' = `.'.
22017 # Shell code in configure.ac might set extrasub.
22018 # FIXME: do we really want to maintain this feature?
22019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22020 ac_sed_extra="$ac_vpsub
22021 $extrasub
22022 _ACEOF
22023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22024 :t
22025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22026 s|@configure_input@|$ac_sed_conf_input|;t t
22027 s&@top_builddir@&$ac_top_builddir_sub&;t t
22028 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22029 s&@srcdir@&$ac_srcdir&;t t
22030 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22031 s&@top_srcdir@&$ac_top_srcdir&;t t
22032 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22033 s&@builddir@&$ac_builddir&;t t
22034 s&@abs_builddir@&$ac_abs_builddir&;t t
22035 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22036 s&@INSTALL@&$ac_INSTALL&;t t
22037 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22038 $ac_datarootdir_hack
22039 "
22040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22041   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22042
22043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22044   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22045   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22046       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22047   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22048 which seems to be undefined.  Please make sure it is defined" >&5
22049 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22050 which seems to be undefined.  Please make sure it is defined" >&2;}
22051
22052   rm -f "$ac_tmp/stdin"
22053   case $ac_file in
22054   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22055   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22056   esac \
22057   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22058  ;;
22059   :H)
22060   #
22061   # CONFIG_HEADER
22062   #
22063   if test x"$ac_file" != x-; then
22064     {
22065       $as_echo "/* $configure_input  */" \
22066       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22067     } >"$ac_tmp/config.h" \
22068       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22069     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22070       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22071 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22072     else
22073       rm -f "$ac_file"
22074       mv "$ac_tmp/config.h" "$ac_file" \
22075         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22076     fi
22077   else
22078     $as_echo "/* $configure_input  */" \
22079       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22080       || as_fn_error $? "could not create -" "$LINENO" 5
22081   fi
22082 # Compute "$ac_file"'s index in $config_headers.
22083 _am_arg="$ac_file"
22084 _am_stamp_count=1
22085 for _am_header in $config_headers :; do
22086   case $_am_header in
22087     $_am_arg | $_am_arg:* )
22088       break ;;
22089     * )
22090       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22091   esac
22092 done
22093 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22094 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22095          X"$_am_arg" : 'X\(//\)[^/]' \| \
22096          X"$_am_arg" : 'X\(//\)$' \| \
22097          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22098 $as_echo X"$_am_arg" |
22099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22100             s//\1/
22101             q
22102           }
22103           /^X\(\/\/\)[^/].*/{
22104             s//\1/
22105             q
22106           }
22107           /^X\(\/\/\)$/{
22108             s//\1/
22109             q
22110           }
22111           /^X\(\/\).*/{
22112             s//\1/
22113             q
22114           }
22115           s/.*/./; q'`/stamp-h$_am_stamp_count
22116  ;;
22117
22118   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22119 $as_echo "$as_me: executing $ac_file commands" >&6;}
22120  ;;
22121   esac
22122
22123
22124   case $ac_file$ac_mode in
22125     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22126   # Older Autoconf quotes --file arguments for eval, but not when files
22127   # are listed without --file.  Let's play safe and only enable the eval
22128   # if we detect the quoting.
22129   # TODO: see whether this extra hack can be removed once we start
22130   # requiring Autoconf 2.70 or later.
22131   case $CONFIG_FILES in #(
22132   *\'*) :
22133     eval set x "$CONFIG_FILES" ;; #(
22134   *) :
22135     set x $CONFIG_FILES ;; #(
22136   *) :
22137      ;;
22138 esac
22139   shift
22140   # Used to flag and report bootstrapping failures.
22141   am_rc=0
22142   for am_mf
22143   do
22144     # Strip MF so we end up with the name of the file.
22145     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22146     # Check whether this is an Automake generated Makefile which includes
22147     # dependency-tracking related rules and includes.
22148     # Grep'ing the whole file directly is not great: AIX grep has a line
22149     # limit of 2048, but all sed's we know have understand at least 4000.
22150     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22151       || continue
22152     am_dirpart=`$as_dirname -- "$am_mf" ||
22153 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22154          X"$am_mf" : 'X\(//\)[^/]' \| \
22155          X"$am_mf" : 'X\(//\)$' \| \
22156          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22157 $as_echo X"$am_mf" |
22158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22159             s//\1/
22160             q
22161           }
22162           /^X\(\/\/\)[^/].*/{
22163             s//\1/
22164             q
22165           }
22166           /^X\(\/\/\)$/{
22167             s//\1/
22168             q
22169           }
22170           /^X\(\/\).*/{
22171             s//\1/
22172             q
22173           }
22174           s/.*/./; q'`
22175     am_filepart=`$as_basename -- "$am_mf" ||
22176 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22177          X"$am_mf" : 'X\(//\)$' \| \
22178          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22179 $as_echo X/"$am_mf" |
22180     sed '/^.*\/\([^/][^/]*\)\/*$/{
22181             s//\1/
22182             q
22183           }
22184           /^X\/\(\/\/\)$/{
22185             s//\1/
22186             q
22187           }
22188           /^X\/\(\/\).*/{
22189             s//\1/
22190             q
22191           }
22192           s/.*/./; q'`
22193     { echo "$as_me:$LINENO: cd "$am_dirpart" \
22194       && sed -e '/# am--include-marker/d' "$am_filepart" \
22195         | $MAKE -f - am--depfiles" >&5
22196    (cd "$am_dirpart" \
22197       && sed -e '/# am--include-marker/d' "$am_filepart" \
22198         | $MAKE -f - am--depfiles) >&5 2>&5
22199    ac_status=$?
22200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201    (exit $ac_status); } || am_rc=$?
22202   done
22203   if test $am_rc -ne 0; then
22204     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22206 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22207     for automatic dependency tracking.  If GNU make was not used, consider
22208     re-running the configure script with MAKE=\"gmake\" (or whatever is
22209     necessary).  You can also try re-running configure with the
22210     '--disable-dependency-tracking' option to at least be able to build
22211     the package (albeit without support for automatic dependency tracking).
22212 See \`config.log' for more details" "$LINENO" 5; }
22213   fi
22214   { am_dirpart=; unset am_dirpart;}
22215   { am_filepart=; unset am_filepart;}
22216   { am_mf=; unset am_mf;}
22217   { am_rc=; unset am_rc;}
22218   rm -f conftest-deps.mk
22219 }
22220  ;;
22221     "libtool":C)
22222
22223     # See if we are running on zsh, and set the options that allow our
22224     # commands through without removal of \ escapes.
22225     if test -n "${ZSH_VERSION+set}"; then
22226       setopt NO_GLOB_SUBST
22227     fi
22228
22229     cfgfile=${ofile}T
22230     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22231     $RM "$cfgfile"
22232
22233     cat <<_LT_EOF >> "$cfgfile"
22234 #! $SHELL
22235 # Generated automatically by $as_me ($PACKAGE) $VERSION
22236 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22237
22238 # Provide generalized library-building support services.
22239 # Written by Gordon Matzigkeit, 1996
22240
22241 # Copyright (C) 2014 Free Software Foundation, Inc.
22242 # This is free software; see the source for copying conditions.  There is NO
22243 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22244
22245 # GNU Libtool is free software; you can redistribute it and/or modify
22246 # it under the terms of the GNU General Public License as published by
22247 # the Free Software Foundation; either version 2 of of the License, or
22248 # (at your option) any later version.
22249 #
22250 # As a special exception to the GNU General Public License, if you
22251 # distribute this file as part of a program or library that is built
22252 # using GNU Libtool, you may include this file under the  same
22253 # distribution terms that you use for the rest of that program.
22254 #
22255 # GNU Libtool is distributed in the hope that it will be useful, but
22256 # WITHOUT ANY WARRANTY; without even the implied warranty of
22257 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22258 # GNU General Public License for more details.
22259 #
22260 # You should have received a copy of the GNU General Public License
22261 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22262
22263
22264 # The names of the tagged configurations supported by this script.
22265 available_tags=''
22266
22267 # Configured defaults for sys_lib_dlsearch_path munging.
22268 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22269
22270 # ### BEGIN LIBTOOL CONFIG
22271
22272 # Whether or not to build static libraries.
22273 build_old_libs=$enable_static
22274
22275 # Which release of libtool.m4 was used?
22276 macro_version=$macro_version
22277 macro_revision=$macro_revision
22278
22279 # Whether or not to build shared libraries.
22280 build_libtool_libs=$enable_shared
22281
22282 # What type of objects to build.
22283 pic_mode=$pic_mode
22284
22285 # Whether or not to optimize for fast installation.
22286 fast_install=$enable_fast_install
22287
22288 # Shared archive member basename,for filename based shared library versioning on AIX.
22289 shared_archive_member_spec=$shared_archive_member_spec
22290
22291 # Shell to use when invoking shell scripts.
22292 SHELL=$lt_SHELL
22293
22294 # An echo program that protects backslashes.
22295 ECHO=$lt_ECHO
22296
22297 # The PATH separator for the build system.
22298 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22299
22300 # The host system.
22301 host_alias=$host_alias
22302 host=$host
22303 host_os=$host_os
22304
22305 # The build system.
22306 build_alias=$build_alias
22307 build=$build
22308 build_os=$build_os
22309
22310 # A sed program that does not truncate output.
22311 SED=$lt_SED
22312
22313 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22314 Xsed="\$SED -e 1s/^X//"
22315
22316 # A grep program that handles long lines.
22317 GREP=$lt_GREP
22318
22319 # An ERE matcher.
22320 EGREP=$lt_EGREP
22321
22322 # A literal string matcher.
22323 FGREP=$lt_FGREP
22324
22325 # A BSD- or MS-compatible name lister.
22326 NM=$lt_NM
22327
22328 # Whether we need soft or hard links.
22329 LN_S=$lt_LN_S
22330
22331 # What is the maximum length of a command?
22332 max_cmd_len=$max_cmd_len
22333
22334 # Object file suffix (normally "o").
22335 objext=$ac_objext
22336
22337 # Executable file suffix (normally "").
22338 exeext=$exeext
22339
22340 # whether the shell understands "unset".
22341 lt_unset=$lt_unset
22342
22343 # turn spaces into newlines.
22344 SP2NL=$lt_lt_SP2NL
22345
22346 # turn newlines into spaces.
22347 NL2SP=$lt_lt_NL2SP
22348
22349 # convert \$build file names to \$host format.
22350 to_host_file_cmd=$lt_cv_to_host_file_cmd
22351
22352 # convert \$build files to toolchain format.
22353 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22354
22355 # An object symbol dumper.
22356 OBJDUMP=$lt_OBJDUMP
22357
22358 # Method to check whether dependent libraries are shared objects.
22359 deplibs_check_method=$lt_deplibs_check_method
22360
22361 # Command to use when deplibs_check_method = "file_magic".
22362 file_magic_cmd=$lt_file_magic_cmd
22363
22364 # How to find potential files when deplibs_check_method = "file_magic".
22365 file_magic_glob=$lt_file_magic_glob
22366
22367 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22368 want_nocaseglob=$lt_want_nocaseglob
22369
22370 # DLL creation program.
22371 DLLTOOL=$lt_DLLTOOL
22372
22373 # Command to associate shared and link libraries.
22374 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22375
22376 # The archiver.
22377 AR=$lt_AR
22378
22379 # Flags to create an archive.
22380 AR_FLAGS=$lt_AR_FLAGS
22381
22382 # How to feed a file listing to the archiver.
22383 archiver_list_spec=$lt_archiver_list_spec
22384
22385 # A symbol stripping program.
22386 STRIP=$lt_STRIP
22387
22388 # Commands used to install an old-style archive.
22389 RANLIB=$lt_RANLIB
22390 old_postinstall_cmds=$lt_old_postinstall_cmds
22391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22392
22393 # Whether to use a lock for old archive extraction.
22394 lock_old_archive_extraction=$lock_old_archive_extraction
22395
22396 # A C compiler.
22397 LTCC=$lt_CC
22398
22399 # LTCC compiler flags.
22400 LTCFLAGS=$lt_CFLAGS
22401
22402 # Take the output of nm and produce a listing of raw symbols and C names.
22403 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22404
22405 # Transform the output of nm in a proper C declaration.
22406 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22407
22408 # Transform the output of nm into a list of symbols to manually relocate.
22409 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22410
22411 # Transform the output of nm in a C name address pair.
22412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22413
22414 # Transform the output of nm in a C name address pair when lib prefix is needed.
22415 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22416
22417 # The name lister interface.
22418 nm_interface=$lt_lt_cv_nm_interface
22419
22420 # Specify filename containing input files for \$NM.
22421 nm_file_list_spec=$lt_nm_file_list_spec
22422
22423 # The root where to search for dependent libraries,and where our libraries should be installed.
22424 lt_sysroot=$lt_sysroot
22425
22426 # Command to truncate a binary pipe.
22427 lt_truncate_bin=$lt_lt_cv_truncate_bin
22428
22429 # The name of the directory that contains temporary libtool files.
22430 objdir=$objdir
22431
22432 # Used to examine libraries when file_magic_cmd begins with "file".
22433 MAGIC_CMD=$MAGIC_CMD
22434
22435 # Must we lock files when doing compilation?
22436 need_locks=$lt_need_locks
22437
22438 # Manifest tool.
22439 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22440
22441 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22442 DSYMUTIL=$lt_DSYMUTIL
22443
22444 # Tool to change global to local symbols on Mac OS X.
22445 NMEDIT=$lt_NMEDIT
22446
22447 # Tool to manipulate fat objects and archives on Mac OS X.
22448 LIPO=$lt_LIPO
22449
22450 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22451 OTOOL=$lt_OTOOL
22452
22453 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22454 OTOOL64=$lt_OTOOL64
22455
22456 # Old archive suffix (normally "a").
22457 libext=$libext
22458
22459 # Shared library suffix (normally ".so").
22460 shrext_cmds=$lt_shrext_cmds
22461
22462 # The commands to extract the exported symbol list from a shared archive.
22463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22464
22465 # Variables whose values should be saved in libtool wrapper scripts and
22466 # restored at link time.
22467 variables_saved_for_relink=$lt_variables_saved_for_relink
22468
22469 # Do we need the "lib" prefix for modules?
22470 need_lib_prefix=$need_lib_prefix
22471
22472 # Do we need a version for libraries?
22473 need_version=$need_version
22474
22475 # Library versioning type.
22476 version_type=$version_type
22477
22478 # Shared library runtime path variable.
22479 runpath_var=$runpath_var
22480
22481 # Shared library path variable.
22482 shlibpath_var=$shlibpath_var
22483
22484 # Is shlibpath searched before the hard-coded library search path?
22485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22486
22487 # Format of library name prefix.
22488 libname_spec=$lt_libname_spec
22489
22490 # List of archive names.  First name is the real one, the rest are links.
22491 # The last name is the one that the linker finds with -lNAME
22492 library_names_spec=$lt_library_names_spec
22493
22494 # The coded name of the library, if different from the real name.
22495 soname_spec=$lt_soname_spec
22496
22497 # Permission mode override for installation of shared libraries.
22498 install_override_mode=$lt_install_override_mode
22499
22500 # Command to use after installation of a shared archive.
22501 postinstall_cmds=$lt_postinstall_cmds
22502
22503 # Command to use after uninstallation of a shared archive.
22504 postuninstall_cmds=$lt_postuninstall_cmds
22505
22506 # Commands used to finish a libtool library installation in a directory.
22507 finish_cmds=$lt_finish_cmds
22508
22509 # As "finish_cmds", except a single script fragment to be evaled but
22510 # not shown.
22511 finish_eval=$lt_finish_eval
22512
22513 # Whether we should hardcode library paths into libraries.
22514 hardcode_into_libs=$hardcode_into_libs
22515
22516 # Compile-time system search path for libraries.
22517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22518
22519 # Detected run-time system search path for libraries.
22520 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22521
22522 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22523 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22524
22525 # Whether dlopen is supported.
22526 dlopen_support=$enable_dlopen
22527
22528 # Whether dlopen of programs is supported.
22529 dlopen_self=$enable_dlopen_self
22530
22531 # Whether dlopen of statically linked programs is supported.
22532 dlopen_self_static=$enable_dlopen_self_static
22533
22534 # Commands to strip libraries.
22535 old_striplib=$lt_old_striplib
22536 striplib=$lt_striplib
22537
22538
22539 # The linker used to build libraries.
22540 LD=$lt_LD
22541
22542 # How to create reloadable object files.
22543 reload_flag=$lt_reload_flag
22544 reload_cmds=$lt_reload_cmds
22545
22546 # Commands used to build an old-style archive.
22547 old_archive_cmds=$lt_old_archive_cmds
22548
22549 # A language specific compiler.
22550 CC=$lt_compiler
22551
22552 # Is the compiler the GNU compiler?
22553 with_gcc=$GCC
22554
22555 # Compiler flag to turn off builtin functions.
22556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22557
22558 # Additional compiler flags for building library objects.
22559 pic_flag=$lt_lt_prog_compiler_pic
22560
22561 # How to pass a linker flag through the compiler.
22562 wl=$lt_lt_prog_compiler_wl
22563
22564 # Compiler flag to prevent dynamic linking.
22565 link_static_flag=$lt_lt_prog_compiler_static
22566
22567 # Does compiler simultaneously support -c and -o options?
22568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22569
22570 # Whether or not to add -lc for building shared libraries.
22571 build_libtool_need_lc=$archive_cmds_need_lc
22572
22573 # Whether or not to disallow shared libs when runtime libs are static.
22574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22575
22576 # Compiler flag to allow reflexive dlopens.
22577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22578
22579 # Compiler flag to generate shared objects directly from archives.
22580 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22581
22582 # Whether the compiler copes with passing no objects directly.
22583 compiler_needs_object=$lt_compiler_needs_object
22584
22585 # Create an old-style archive from a shared archive.
22586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22587
22588 # Create a temporary old-style archive to link instead of a shared archive.
22589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22590
22591 # Commands used to build a shared archive.
22592 archive_cmds=$lt_archive_cmds
22593 archive_expsym_cmds=$lt_archive_expsym_cmds
22594
22595 # Commands used to build a loadable module if different from building
22596 # a shared archive.
22597 module_cmds=$lt_module_cmds
22598 module_expsym_cmds=$lt_module_expsym_cmds
22599
22600 # Whether we are building with GNU ld or not.
22601 with_gnu_ld=$lt_with_gnu_ld
22602
22603 # Flag that allows shared libraries with undefined symbols to be built.
22604 allow_undefined_flag=$lt_allow_undefined_flag
22605
22606 # Flag that enforces no undefined symbols.
22607 no_undefined_flag=$lt_no_undefined_flag
22608
22609 # Flag to hardcode \$libdir into a binary during linking.
22610 # This must work even if \$libdir does not exist
22611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22612
22613 # Whether we need a single "-rpath" flag with a separated argument.
22614 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22615
22616 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22617 # DIR into the resulting binary.
22618 hardcode_direct=$hardcode_direct
22619
22620 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22621 # DIR into the resulting binary and the resulting library dependency is
22622 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22623 # library is relocated.
22624 hardcode_direct_absolute=$hardcode_direct_absolute
22625
22626 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22627 # into the resulting binary.
22628 hardcode_minus_L=$hardcode_minus_L
22629
22630 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22631 # into the resulting binary.
22632 hardcode_shlibpath_var=$hardcode_shlibpath_var
22633
22634 # Set to "yes" if building a shared library automatically hardcodes DIR
22635 # into the library and all subsequent libraries and executables linked
22636 # against it.
22637 hardcode_automatic=$hardcode_automatic
22638
22639 # Set to yes if linker adds runtime paths of dependent libraries
22640 # to runtime path list.
22641 inherit_rpath=$inherit_rpath
22642
22643 # Whether libtool must link a program against all its dependency libraries.
22644 link_all_deplibs=$link_all_deplibs
22645
22646 # Set to "yes" if exported symbols are required.
22647 always_export_symbols=$always_export_symbols
22648
22649 # The commands to list exported symbols.
22650 export_symbols_cmds=$lt_export_symbols_cmds
22651
22652 # Symbols that should not be listed in the preloaded symbols.
22653 exclude_expsyms=$lt_exclude_expsyms
22654
22655 # Symbols that must always be exported.
22656 include_expsyms=$lt_include_expsyms
22657
22658 # Commands necessary for linking programs (against libraries) with templates.
22659 prelink_cmds=$lt_prelink_cmds
22660
22661 # Commands necessary for finishing linking programs.
22662 postlink_cmds=$lt_postlink_cmds
22663
22664 # Specify filename containing input files.
22665 file_list_spec=$lt_file_list_spec
22666
22667 # How to hardcode a shared library path into an executable.
22668 hardcode_action=$hardcode_action
22669
22670 # ### END LIBTOOL CONFIG
22671
22672 _LT_EOF
22673
22674     cat <<'_LT_EOF' >> "$cfgfile"
22675
22676 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22677
22678 # func_munge_path_list VARIABLE PATH
22679 # -----------------------------------
22680 # VARIABLE is name of variable containing _space_ separated list of
22681 # directories to be munged by the contents of PATH, which is string
22682 # having a format:
22683 # "DIR[:DIR]:"
22684 #       string "DIR[ DIR]" will be prepended to VARIABLE
22685 # ":DIR[:DIR]"
22686 #       string "DIR[ DIR]" will be appended to VARIABLE
22687 # "DIRP[:DIRP]::[DIRA:]DIRA"
22688 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22689 #       "DIRA[ DIRA]" will be appended to VARIABLE
22690 # "DIR[:DIR]"
22691 #       VARIABLE will be replaced by "DIR[ DIR]"
22692 func_munge_path_list ()
22693 {
22694     case x$2 in
22695     x)
22696         ;;
22697     *:)
22698         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22699         ;;
22700     x:*)
22701         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22702         ;;
22703     *::*)
22704         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22705         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22706         ;;
22707     *)
22708         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22709         ;;
22710     esac
22711 }
22712
22713
22714 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22715 func_cc_basename ()
22716 {
22717     for cc_temp in $*""; do
22718       case $cc_temp in
22719         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22720         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22721         \-*) ;;
22722         *) break;;
22723       esac
22724     done
22725     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22726 }
22727
22728
22729 # ### END FUNCTIONS SHARED WITH CONFIGURE
22730
22731 _LT_EOF
22732
22733   case $host_os in
22734   aix3*)
22735     cat <<\_LT_EOF >> "$cfgfile"
22736 # AIX sometimes has problems with the GCC collect2 program.  For some
22737 # reason, if we set the COLLECT_NAMES environment variable, the problems
22738 # vanish in a puff of smoke.
22739 if test set != "${COLLECT_NAMES+set}"; then
22740   COLLECT_NAMES=
22741   export COLLECT_NAMES
22742 fi
22743 _LT_EOF
22744     ;;
22745   esac
22746
22747
22748 ltmain=$ac_aux_dir/ltmain.sh
22749
22750
22751   # We use sed instead of cat because bash on DJGPP gets confused if
22752   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22753   # text mode, it properly converts lines to CR/LF.  This bash problem
22754   # is reportedly fixed, but why not run on old versions too?
22755   sed '$q' "$ltmain" >> "$cfgfile" \
22756      || (rm -f "$cfgfile"; exit 1)
22757
22758    mv -f "$cfgfile" "$ofile" ||
22759     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22760   chmod +x "$ofile"
22761
22762  ;;
22763
22764   esac
22765 done # for ac_tag
22766
22767
22768 as_fn_exit 0
22769 _ACEOF
22770 ac_clean_files=$ac_clean_files_save
22771
22772 test $ac_write_fail = 0 ||
22773   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22774
22775
22776 # configure is writing to config.log, and then calls config.status.
22777 # config.status does its own redirection, appending to config.log.
22778 # Unfortunately, on DOS this fails, as config.log is still kept open
22779 # by configure, so config.status won't be able to write to it; its
22780 # output is simply discarded.  So we exec the FD to /dev/null,
22781 # effectively closing config.log, so it can be properly (re)opened and
22782 # appended to by config.status.  When coming back to configure, we
22783 # need to make the FD available again.
22784 if test "$no_create" != yes; then
22785   ac_cs_success=:
22786   ac_config_status_args=
22787   test "$silent" = yes &&
22788     ac_config_status_args="$ac_config_status_args --quiet"
22789   exec 5>/dev/null
22790   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22791   exec 5>>config.log
22792   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22793   # would make configure fail if this is the last instruction.
22794   $ac_cs_success || as_fn_exit 1
22795 fi
22796 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22797   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22798 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22799 fi
22800