Merge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/cyrus-sasl
[cyrus-sasl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="lib/saslint.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 enable_option_checking=no
613 ac_subst_vars='subdirs
614 DIRS
615 LTLIBOBJS
616 LTGETNAMEINFOOBJS
617 GETNAMEINFOOBJS
618 LTGETADDRINFOOBJS
619 GETADDRINFOOBJS
620 LTSNPRINTFOBJS
621 SNPRINTFOBJS
622 GETSUBOPT
623 LIBOBJS
624 SASL_UTIL_HEADERS_EXTRA
625 SASL_UTIL_LIBS_EXTRA
626 SMTPTEST_PROGRAM
627 SFIO_LIB_FLAGS
628 SFIO_INC_FLAGS
629 DMALLOC_LIBS
630 MACOSX_FALSE
631 MACOSX_TRUE
632 configdir
633 plugindir
634 SASL_STATIC_LIBS
635 SASL_STATIC_OBJS
636 SASL_STATIC_SRCS
637 SASL_MECHS
638 LIB_LDAP
639 LIB_SQLITE
640 LIB_PGSQL
641 LIB_MYSQL
642 PASSDSS_LIBS
643 NTLM_LIBS
644 PLAIN_LIBS
645 GSSAPIBASE_LIBS
646 GSSAPI_LIBS
647 LIB_CRYPT
648 SASL_KRB_LIB
649 SRP_LIBS
650 OTP_LIBS
651 LIB_DES
652 CMU_LIB_SUBDIR
653 LIB_DOOR
654 IPCTYPE
655 PWCHECK_FALSE
656 PWCHECK_TRUE
657 PWCHECKMETH
658 SASLAUTHD_FALSE
659 SASLAUTHD_TRUE
660 SASL_DL_LIB
661 NO_SASL_DB_MANS_FALSE
662 NO_SASL_DB_MANS_TRUE
663 SASL_DB_LIB
664 SASL_DB_INC
665 SASL_DB_BACKEND_STATIC
666 SASL_DB_BACKEND
667 SASL_DB_MANS
668 SASL_DB_UTILS
669 LIB_SOCKET
670 SAMPLE_FALSE
671 SAMPLE_TRUE
672 JAVAROOT
673 JAVA_INCLUDES
674 JAVA_FALSE
675 JAVA_TRUE
676 JAVADOC
677 JAVAH
678 JAVAC
679 PURIFY
680 PURECOV
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 RANLIB
687 AR
688 OBJDUMP
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 EGREP
695 GREP
696 SED
697 LIBTOOL
698 LN_S
699 CPP
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_os
740 target_vendor
741 target_cpu
742 target
743 host_os
744 host_vendor
745 host_cpu
746 host
747 build_os
748 build_vendor
749 build_cpu
750 build
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_cmulocal
793 enable_sample
794 enable_dependency_tracking
795 with_staticsasl
796 enable_static
797 enable_shared
798 with_pic
799 enable_fast_install
800 with_gnu_ld
801 enable_libtool_lock
802 enable_staticdlopen
803 with_purecov
804 with_purify
805 enable_java
806 with_javabase
807 with_dbpath
808 with_dblib
809 with_bdb_libdir
810 with_bdb_incdir
811 with_gdbm
812 enable_keep_db_open
813 with_devrandom
814 with_pam
815 with_saslauthd
816 with_authdaemond
817 with_pwcheck
818 with_ipctype
819 enable_alwaystrue
820 enable_checkapop
821 enable_cram
822 with_lib_subdir
823 with_openssl
824 with_des
825 enable_digest
826 enable_otp
827 with_with_opie
828 enable_srp
829 enable_srp_setpass
830 enable_krb4
831 enable_gssapi
832 with_gss_impl
833 enable_gss_mutexes
834 enable_plain
835 enable_anon
836 enable_login
837 enable_ntlm
838 enable_passdss
839 with_ldap
840 enable_sql
841 with_mysql
842 with_pgsql
843 with_sqlite
844 enable_ldapdb
845 with_plugindir
846 with_configdir
847 with_rc4
848 enable_macos_framework
849 with_dmalloc
850 with_sfio
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP'
861 ac_subdirs_all='saslauthd'
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *=)   ac_optarg= ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error $? "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010   | --exec | --exe | --ex)
1011     ac_prev=exec_prefix ;;
1012   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014   | --exec=* | --exe=* | --ex=*)
1015     exec_prefix=$ac_optarg ;;
1016
1017   -gas | --gas | --ga | --g)
1018     # Obsolete; use --with-gas.
1019     with_gas=yes ;;
1020
1021   -help | --help | --hel | --he | -h)
1022     ac_init_help=long ;;
1023   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024     ac_init_help=recursive ;;
1025   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026     ac_init_help=short ;;
1027
1028   -host | --host | --hos | --ho)
1029     ac_prev=host_alias ;;
1030   -host=* | --host=* | --hos=* | --ho=*)
1031     host_alias=$ac_optarg ;;
1032
1033   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034     ac_prev=htmldir ;;
1035   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036   | --ht=*)
1037     htmldir=$ac_optarg ;;
1038
1039   -includedir | --includedir | --includedi | --included | --include \
1040   | --includ | --inclu | --incl | --inc)
1041     ac_prev=includedir ;;
1042   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043   | --includ=* | --inclu=* | --incl=* | --inc=*)
1044     includedir=$ac_optarg ;;
1045
1046   -infodir | --infodir | --infodi | --infod | --info | --inf)
1047     ac_prev=infodir ;;
1048   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049     infodir=$ac_optarg ;;
1050
1051   -libdir | --libdir | --libdi | --libd)
1052     ac_prev=libdir ;;
1053   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054     libdir=$ac_optarg ;;
1055
1056   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057   | --libexe | --libex | --libe)
1058     ac_prev=libexecdir ;;
1059   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060   | --libexe=* | --libex=* | --libe=*)
1061     libexecdir=$ac_optarg ;;
1062
1063   -localedir | --localedir | --localedi | --localed | --locale)
1064     ac_prev=localedir ;;
1065   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066     localedir=$ac_optarg ;;
1067
1068   -localstatedir | --localstatedir | --localstatedi | --localstated \
1069   | --localstate | --localstat | --localsta | --localst | --locals)
1070     ac_prev=localstatedir ;;
1071   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073     localstatedir=$ac_optarg ;;
1074
1075   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076     ac_prev=mandir ;;
1077   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078     mandir=$ac_optarg ;;
1079
1080   -nfp | --nfp | --nf)
1081     # Obsolete; use --without-fp.
1082     with_fp=no ;;
1083
1084   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085   | --no-cr | --no-c | -n)
1086     no_create=yes ;;
1087
1088   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090     no_recursion=yes ;;
1091
1092   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094   | --oldin | --oldi | --old | --ol | --o)
1095     ac_prev=oldincludedir ;;
1096   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099     oldincludedir=$ac_optarg ;;
1100
1101   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102     ac_prev=prefix ;;
1103   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104     prefix=$ac_optarg ;;
1105
1106   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107   | --program-pre | --program-pr | --program-p)
1108     ac_prev=program_prefix ;;
1109   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111     program_prefix=$ac_optarg ;;
1112
1113   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114   | --program-suf | --program-su | --program-s)
1115     ac_prev=program_suffix ;;
1116   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118     program_suffix=$ac_optarg ;;
1119
1120   -program-transform-name | --program-transform-name \
1121   | --program-transform-nam | --program-transform-na \
1122   | --program-transform-n | --program-transform- \
1123   | --program-transform | --program-transfor \
1124   | --program-transfo | --program-transf \
1125   | --program-trans | --program-tran \
1126   | --progr-tra | --program-tr | --program-t)
1127     ac_prev=program_transform_name ;;
1128   -program-transform-name=* | --program-transform-name=* \
1129   | --program-transform-nam=* | --program-transform-na=* \
1130   | --program-transform-n=* | --program-transform-=* \
1131   | --program-transform=* | --program-transfor=* \
1132   | --program-transfo=* | --program-transf=* \
1133   | --program-trans=* | --program-tran=* \
1134   | --progr-tra=* | --program-tr=* | --program-t=*)
1135     program_transform_name=$ac_optarg ;;
1136
1137   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138     ac_prev=pdfdir ;;
1139   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140     pdfdir=$ac_optarg ;;
1141
1142   -psdir | --psdir | --psdi | --psd | --ps)
1143     ac_prev=psdir ;;
1144   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145     psdir=$ac_optarg ;;
1146
1147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148   | -silent | --silent | --silen | --sile | --sil)
1149     silent=yes ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error $? "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=\$ac_optarg ;;
1211
1212   -without-* | --without-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     case $ac_envvar in #(
1254       '' | [0-9]* | *[!_$as_cr_alnum]* )
1255       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256     esac
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277   case $enable_option_checking in
1278     no) ;;
1279     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281   esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286                 datadir sysconfdir sharedstatedir localstatedir includedir \
1287                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288                 libdir localedir mandir
1289 do
1290   eval ac_val=\$$ac_var
1291   # Remove trailing slashes.
1292   case $ac_val in
1293     */ )
1294       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295       eval $ac_var=\$ac_val;;
1296   esac
1297   # Be sure to have absolute directory names.
1298   case $ac_val in
1299     [\\/$]* | ?:[\\/]* )  continue;;
1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301   esac
1302   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1317     If a cross compiler is detected then cross compile mode will be used" >&2
1318   elif test "x$build_alias" != "x$host_alias"; then
1319     cross_compiling=yes
1320   fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332   as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334   as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339   ac_srcdir_defaulted=yes
1340   # Try the directory containing this script, then the parent directory.
1341   ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343          X"$as_myself" : 'X\(//\)[^/]' \| \
1344          X"$as_myself" : 'X\(//\)$' \| \
1345          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)[^/].*/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\/\)$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\).*/{
1360             s//\1/
1361             q
1362           }
1363           s/.*/./; q'`
1364   srcdir=$ac_confdir
1365   if test ! -r "$srcdir/$ac_unique_file"; then
1366     srcdir=..
1367   fi
1368 else
1369   ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378         pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381   srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_env_${ac_var}_value=\$${ac_var}
1392   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400   # Omit some internal or obsolete options to make the list less imposing.
1401   # This message is too long to be a string in the A/UX 3.1 sh.
1402   cat <<_ACEOF
1403 \`configure' configures this package to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413   -h, --help              display this help and exit
1414       --help=short        display options specific to this package
1415       --help=recursive    display the short help of all the included packages
1416   -V, --version           display version information and exit
1417   -q, --quiet, --silent   do not print \`checking ...' messages
1418       --cache-file=FILE   cache test results in FILE [disabled]
1419   -C, --config-cache      alias for \`--cache-file=config.cache'
1420   -n, --no-create         do not create output files
1421       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424   --prefix=PREFIX         install architecture-independent files in PREFIX
1425                           [$ac_default_prefix]
1426   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                           [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437   --bindir=DIR            user executables [EPREFIX/bin]
1438   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1439   --libexecdir=DIR        program executables [EPREFIX/libexec]
1440   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1441   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1442   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1443   --libdir=DIR            object code libraries [EPREFIX/lib]
1444   --includedir=DIR        C header files [PREFIX/include]
1445   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1446   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1447   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1448   --infodir=DIR           info documentation [DATAROOTDIR/info]
1449   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1450   --mandir=DIR            man documentation [DATAROOTDIR/man]
1451   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1452   --htmldir=DIR           html documentation [DOCDIR]
1453   --dvidir=DIR            dvi documentation [DOCDIR]
1454   --pdfdir=DIR            pdf documentation [DOCDIR]
1455   --psdir=DIR             ps documentation [DOCDIR]
1456 _ACEOF
1457
1458   cat <<\_ACEOF
1459
1460 Program names:
1461   --program-prefix=PREFIX            prepend PREFIX to installed program names
1462   --program-suffix=SUFFIX            append SUFFIX to installed program names
1463   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464
1465 System types:
1466   --build=BUILD     configure for building on BUILD [guessed]
1467   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1468   --target=TARGET   configure for building compilers for TARGET [HOST]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473
1474   cat <<\_ACEOF
1475
1476 Optional Features:
1477   --disable-option-checking  ignore unrecognized --enable/--with options
1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480   --enable-cmulocal       enable local mods for CMU [[no]]
1481   --enable-sample         compile sample code [[yes]]
1482   --disable-dependency-tracking  speeds up one-time build
1483   --enable-dependency-tracking   do not reject slow dependency extractors
1484   --enable-static[=PKGS]  build static libraries [default=no]
1485   --enable-shared[=PKGS]  build shared libraries [default=yes]
1486   --enable-fast-install[=PKGS]
1487                           optimize for fast installation [default=yes]
1488   --disable-libtool-lock  avoid locking (might break parallel builds)
1489   --enable-staticdlopen   try dynamic plugins when we are a static libsasl [no]
1490   --enable-java           compile Java support [no]
1491   --enable-keep-db-open   keep handle to Berkeley DB open for improved performance [no]
1492   --enable-alwaystrue     enable the alwaystrue password verifier (discouraged)
1493   --enable-checkapop      enable use of sasl_checkapop [yes]
1494   --enable-cram           enable CRAM-MD5 authentication [yes]
1495   --enable-digest         enable DIGEST-MD5 authentication [yes]
1496   --enable-otp            enable OTP authentication [yes]
1497   --enable-srp            enable SRP authentication [no]
1498   --enable-srp-setpass    enable setting SRP secrets with saslpasswd [no]
1499   --enable-krb4           enable KERBEROS_V4 authentication [no]
1500   --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1501   --enable-gss_mutexes     use mutexes around calls to the GSS library
1502   --enable-plain          enable PLAIN authentication yes
1503   --enable-anon           enable ANONYMOUS authentication [yes]
1504   --enable-login          enable unsupported LOGIN authentication [no]
1505   --enable-ntlm           enable unsupported NTLM authentication [no]
1506   --enable-passdss        enable PASSDSS authentication (experimental) [no]
1507   --enable-sql            enable SQL auxprop [no]
1508   --enable-ldapdb         enable LDAPDB plugin no
1509   --disable-macos-framework       disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1510
1511 Optional Packages:
1512   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1513   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1514
1515   --with-pic              try to use only PIC/non-PIC objects [default=use
1516                           both]
1517   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518   --with-purecov          link with purecov
1519   --with-purify           link with purify
1520   --with-javabase=PATH    set path to find jni.h in /usr/java/include
1521   --with-dbpath=PATH      set the DB path to use /etc/sasldb2
1522   --with-dblib=DBLIB      set the DB library to use berkeley
1523   --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
1524   --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
1525   --with-gdbm=PATH        use gdbm from PATH
1526   --with-devrandom=PATH   set the path to /dev/random [/dev/random]
1527   --with-pam=DIR          use PAM (rooted in DIR) [yes]
1528   --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
1529   --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1530   --with-pwcheck=DIR     enable deprecated pwcheck daemon using statedir DIR
1531   --with-ipctype={unix,doors}    use ipctype [unix]
1532   --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1533   --with-openssl=PATH     use OpenSSL from PATH
1534   --with-des=DIR          with DES (look in DIR) yes
1535   --with-opie=PATH        use OPIE (One Time Passwords in Everything) from PATH
1536   --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1537                           choose specific GSSAPI implementation [[auto]]
1538   --with-ldap=DIR         use LDAP (in DIR) for saslauthd no
1539   --with-mysql=PATH       use MySQL from PATH
1540   --with-pgsql=PATH       use PostgreSQL from PATH
1541   --with-sqlite=PATH       use SQLite from PATH
1542   --with-plugindir=DIR    set the directory where plugins will
1543                           be found [/usr/lib/sasl2]
1544    --with-configdir=DIR    set the directory where config files will
1545                           be found /usr/lib/sasl2
1546   --with-rc4              use internal rc4 routines [yes]
1547   --with-dmalloc=DIR      with DMALLOC support (for test applications) [no]
1548   --with-sfio=DIR         with SFIO support (for smtptest/libsfsasl) [no]
1549
1550 Some influential environment variables:
1551   CC          C compiler command
1552   CFLAGS      C compiler flags
1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1554               nonstandard directory <lib dir>
1555   LIBS        libraries to pass to the linker, e.g. -l<library>
1556   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557               you have headers in a nonstandard directory <include dir>
1558   CPP         C preprocessor
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to the package provider.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569   # If there are subdirs, report their specific --help.
1570   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571     test -d "$ac_dir" ||
1572       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573       continue
1574     ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580   # A ".." for each directory in $ac_dir_suffix.
1581   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582   case $ac_top_builddir_sub in
1583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585   esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593   .)  # We are building in place.
1594     ac_srcdir=.
1595     ac_top_srcdir=$ac_top_builddir_sub
1596     ac_abs_top_srcdir=$ac_pwd ;;
1597   [\\/]* | ?:[\\/]* )  # Absolute name.
1598     ac_srcdir=$srcdir$ac_dir_suffix;
1599     ac_top_srcdir=$srcdir
1600     ac_abs_top_srcdir=$srcdir ;;
1601   *) # Relative name.
1602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603     ac_top_srcdir=$ac_top_build_prefix$srcdir
1604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608     cd "$ac_dir" || { ac_status=$?; continue; }
1609     # Check for guested configure.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 configure
1627 generated by GNU Autoconf 2.68
1628
1629 Copyright (C) 2010 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632 _ACEOF
1633   exit
1634 fi
1635
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1639
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   rm -f conftest.$ac_objext
1647   if { { ac_try="$ac_compile"
1648 case "(($ac_try" in
1649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650   *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654   (eval "$ac_compile") 2>conftest.err
1655   ac_status=$?
1656   if test -s conftest.err; then
1657     grep -v '^ *+' conftest.err >conftest.er1
1658     cat conftest.er1 >&5
1659     mv -f conftest.er1 conftest.err
1660   fi
1661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662   test $ac_status = 0; } && {
1663          test -z "$ac_c_werror_flag" ||
1664          test ! -s conftest.err
1665        } && test -s conftest.$ac_objext; then :
1666   ac_retval=0
1667 else
1668   $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671         ac_retval=1
1672 fi
1673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674   as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_compile
1677
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } > conftest.i && {
1700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708     ac_retval=1
1709 fi
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_cpp
1714
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_link ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   rm -f conftest.$ac_objext conftest$ac_exeext
1722   if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_link") 2>conftest.err
1730   ac_status=$?
1731   if test -s conftest.err; then
1732     grep -v '^ *+' conftest.err >conftest.er1
1733     cat conftest.er1 >&5
1734     mv -f conftest.er1 conftest.err
1735   fi
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; } && {
1738          test -z "$ac_c_werror_flag" ||
1739          test ! -s conftest.err
1740        } && test -s conftest$ac_exeext && {
1741          test "$cross_compiling" = yes ||
1742          $as_test_x conftest$ac_exeext
1743        }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749         ac_retval=1
1750 fi
1751   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753   # interfere with the next link command; also delete a directory that is
1754   # left behind by Apple's compiler.  We do this before executing the actions.
1755   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_link
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771   $as_echo_n "(cached) " >&6
1772 else
1773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779   eval "$3=yes"
1780 else
1781   eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_c_try_run ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_link") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810   { { case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_try") 2>&5
1817   ac_status=$?
1818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819   test $ac_status = 0; }; }; then :
1820   ac_retval=0
1821 else
1822   $as_echo "$as_me: program exited with status $ac_status" >&5
1823        $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826        ac_retval=$ac_status
1827 fi
1828   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830   as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_run
1833
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843   $as_echo_n "(cached) " >&6
1844 else
1845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1849 #define $2 innocuous_$2
1850
1851 /* System header to define __stub macros and hopefully few prototypes,
1852     which can conflict with char $2 (); below.
1853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854     <limits.h> exists even on freestanding compilers.  */
1855
1856 #ifdef __STDC__
1857 # include <limits.h>
1858 #else
1859 # include <assert.h>
1860 #endif
1861
1862 #undef $2
1863
1864 /* Override any GCC internal prototype to avoid an error.
1865    Use char because int might match the return type of a GCC
1866    builtin and then its argument prototype would still apply.  */
1867 #ifdef __cplusplus
1868 extern "C"
1869 #endif
1870 char $2 ();
1871 /* The GNU C library defines this for functions which it implements
1872     to always fail with ENOSYS.  Some functions are actually named
1873     something starting with __ and the normal name is an alias.  */
1874 #if defined __stub_$2 || defined __stub___$2
1875 choke me
1876 #endif
1877
1878 int
1879 main ()
1880 {
1881 return $2 ();
1882   ;
1883   return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_link "$LINENO"; then :
1887   eval "$3=yes"
1888 else
1889   eval "$3=no"
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext \
1892     conftest$ac_exeext conftest.$ac_ext
1893 fi
1894 eval ac_res=\$$3
1895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899 } # ac_fn_c_check_func
1900
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1905 # accordingly.
1906 ac_fn_c_check_header_mongrel ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   if eval \${$3+:} false; then :
1910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913   $as_echo_n "(cached) " >&6
1914 fi
1915 eval ac_res=\$$3
1916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 else
1919   # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 #include <$2>
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928   ac_header_compiler=yes
1929 else
1930   ac_header_compiler=no
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1935
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944   ac_header_preproc=yes
1945 else
1946   ac_header_preproc=no
1947 fi
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1951
1952 # So?  What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1954   yes:no: )
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959     ;;
1960   no:yes:* )
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971     ;;
1972 esac
1973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976   $as_echo_n "(cached) " >&6
1977 else
1978   eval "$3=\$ac_header_compiler"
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 fi
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_header_mongrel
1987
1988 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1989 # --------------------------------------------
1990 # Tries to find the compile-time value of EXPR in a program that includes
1991 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1992 # computed
1993 ac_fn_c_compute_int ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   if test "$cross_compiling" = yes; then
1997     # Depending upon the size, compute the lo and hi bounds.
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h.  */
2000 $4
2001 int
2002 main ()
2003 {
2004 static int test_array [1 - 2 * !(($2) >= 0)];
2005 test_array [0] = 0
2006
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012   ac_lo=0 ac_mid=0
2013   while :; do
2014     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 int
2018 main ()
2019 {
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 test_array [0] = 0
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   ac_hi=$ac_mid; break
2029 else
2030   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031                         if test $ac_lo -le $ac_mid; then
2032                           ac_lo= ac_hi=
2033                           break
2034                         fi
2035                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038   done
2039 else
2040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) < 0)];
2047 test_array [0] = 0
2048
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054   ac_hi=-1 ac_mid=-1
2055   while :; do
2056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2063 test_array [0] = 0
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_lo=$ac_mid; break
2071 else
2072   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2073                         if test $ac_mid -le $ac_hi; then
2074                           ac_lo= ac_hi=
2075                           break
2076                         fi
2077                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080   done
2081 else
2082   ac_lo= ac_hi=
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 # Binary search between lo and hi bounds.
2088 while test "x$ac_lo" != "x$ac_hi"; do
2089   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 $4
2093 int
2094 main ()
2095 {
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097 test_array [0] = 0
2098
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104   ac_hi=$ac_mid
2105 else
2106   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 case $ac_lo in #((
2111 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2112 '') ac_retval=1 ;;
2113 esac
2114   else
2115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h.  */
2117 $4
2118 static long int longval () { return $2; }
2119 static unsigned long int ulongval () { return $2; }
2120 #include <stdio.h>
2121 #include <stdlib.h>
2122 int
2123 main ()
2124 {
2125
2126   FILE *f = fopen ("conftest.val", "w");
2127   if (! f)
2128     return 1;
2129   if (($2) < 0)
2130     {
2131       long int i = longval ();
2132       if (i != ($2))
2133         return 1;
2134       fprintf (f, "%ld", i);
2135     }
2136   else
2137     {
2138       unsigned long int i = ulongval ();
2139       if (i != ($2))
2140         return 1;
2141       fprintf (f, "%lu", i);
2142     }
2143   /* Do not output a trailing newline, as this causes \r\n confusion
2144      on some platforms.  */
2145   return ferror (f) || fclose (f) != 0;
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_run "$LINENO"; then :
2152   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2153 else
2154   ac_retval=1
2155 fi
2156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2157   conftest.$ac_objext conftest.beam conftest.$ac_ext
2158 rm -f conftest.val
2159
2160   fi
2161   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162   as_fn_set_status $ac_retval
2163
2164 } # ac_fn_c_compute_int
2165
2166 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2167 # -------------------------------------------
2168 # Tests whether TYPE exists after having included INCLUDES, setting cache
2169 # variable VAR accordingly.
2170 ac_fn_c_check_type ()
2171 {
2172   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176   $as_echo_n "(cached) " >&6
2177 else
2178   eval "$3=no"
2179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 int
2183 main ()
2184 {
2185 if (sizeof ($2))
2186          return 0;
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h.  */
2194 $4
2195 int
2196 main ()
2197 {
2198 if (sizeof (($2)))
2199             return 0;
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205
2206 else
2207   eval "$3=yes"
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 fi
2213 eval ac_res=\$$3
2214                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218 } # ac_fn_c_check_type
2219 cat >config.log <<_ACEOF
2220 This file contains any messages produced by compilers while
2221 running configure, to aid debugging if configure makes a mistake.
2222
2223 It was created by $as_me, which was
2224 generated by GNU Autoconf 2.68.  Invocation command line was
2225
2226   $ $0 $@
2227
2228 _ACEOF
2229 exec 5>>config.log
2230 {
2231 cat <<_ASUNAME
2232 ## --------- ##
2233 ## Platform. ##
2234 ## --------- ##
2235
2236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2241
2242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2244
2245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2248 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2252
2253 _ASUNAME
2254
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260     $as_echo "PATH: $as_dir"
2261   done
2262 IFS=$as_save_IFS
2263
2264 } >&5
2265
2266 cat >&5 <<_ACEOF
2267
2268
2269 ## ----------- ##
2270 ## Core tests. ##
2271 ## ----------- ##
2272
2273 _ACEOF
2274
2275
2276 # Keep a trace of the command line.
2277 # Strip out --no-create and --no-recursion so they do not pile up.
2278 # Strip out --silent because we don't want to record it for future runs.
2279 # Also quote any args containing shell meta-characters.
2280 # Make two passes to allow for proper duplicate-argument suppression.
2281 ac_configure_args=
2282 ac_configure_args0=
2283 ac_configure_args1=
2284 ac_must_keep_next=false
2285 for ac_pass in 1 2
2286 do
2287   for ac_arg
2288   do
2289     case $ac_arg in
2290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2292     | -silent | --silent | --silen | --sile | --sil)
2293       continue ;;
2294     *\'*)
2295       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2296     esac
2297     case $ac_pass in
2298     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2299     2)
2300       as_fn_append ac_configure_args1 " '$ac_arg'"
2301       if test $ac_must_keep_next = true; then
2302         ac_must_keep_next=false # Got value, back to normal.
2303       else
2304         case $ac_arg in
2305           *=* | --config-cache | -C | -disable-* | --disable-* \
2306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2308           | -with-* | --with-* | -without-* | --without-* | --x)
2309             case "$ac_configure_args0 " in
2310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2311             esac
2312             ;;
2313           -* ) ac_must_keep_next=true ;;
2314         esac
2315       fi
2316       as_fn_append ac_configure_args " '$ac_arg'"
2317       ;;
2318     esac
2319   done
2320 done
2321 { ac_configure_args0=; unset ac_configure_args0;}
2322 { ac_configure_args1=; unset ac_configure_args1;}
2323
2324 # When interrupted or exit'd, cleanup temporary files, and complete
2325 # config.log.  We remove comments because anyway the quotes in there
2326 # would cause problems or look ugly.
2327 # WARNING: Use '\'' to represent an apostrophe within the trap.
2328 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2329 trap 'exit_status=$?
2330   # Save into config.log some information that might help in debugging.
2331   {
2332     echo
2333
2334     $as_echo "## ---------------- ##
2335 ## Cache variables. ##
2336 ## ---------------- ##"
2337     echo
2338     # The following way of writing the cache mishandles newlines in values,
2339 (
2340   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2341     eval ac_val=\$$ac_var
2342     case $ac_val in #(
2343     *${as_nl}*)
2344       case $ac_var in #(
2345       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2347       esac
2348       case $ac_var in #(
2349       _ | IFS | as_nl) ;; #(
2350       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2351       *) { eval $ac_var=; unset $ac_var;} ;;
2352       esac ;;
2353     esac
2354   done
2355   (set) 2>&1 |
2356     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2357     *${as_nl}ac_space=\ *)
2358       sed -n \
2359         "s/'\''/'\''\\\\'\'''\''/g;
2360           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2361       ;; #(
2362     *)
2363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2364       ;;
2365     esac |
2366     sort
2367 )
2368     echo
2369
2370     $as_echo "## ----------------- ##
2371 ## Output variables. ##
2372 ## ----------------- ##"
2373     echo
2374     for ac_var in $ac_subst_vars
2375     do
2376       eval ac_val=\$$ac_var
2377       case $ac_val in
2378       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379       esac
2380       $as_echo "$ac_var='\''$ac_val'\''"
2381     done | sort
2382     echo
2383
2384     if test -n "$ac_subst_files"; then
2385       $as_echo "## ------------------- ##
2386 ## File substitutions. ##
2387 ## ------------------- ##"
2388       echo
2389       for ac_var in $ac_subst_files
2390       do
2391         eval ac_val=\$$ac_var
2392         case $ac_val in
2393         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394         esac
2395         $as_echo "$ac_var='\''$ac_val'\''"
2396       done | sort
2397       echo
2398     fi
2399
2400     if test -s confdefs.h; then
2401       $as_echo "## ----------- ##
2402 ## confdefs.h. ##
2403 ## ----------- ##"
2404       echo
2405       cat confdefs.h
2406       echo
2407     fi
2408     test "$ac_signal" != 0 &&
2409       $as_echo "$as_me: caught signal $ac_signal"
2410     $as_echo "$as_me: exit $exit_status"
2411   } >&5
2412   rm -f core *.core core.conftest.* &&
2413     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2414     exit $exit_status
2415 ' 0
2416 for ac_signal in 1 2 13 15; do
2417   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2418 done
2419 ac_signal=0
2420
2421 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2422 rm -f -r conftest* confdefs.h
2423
2424 $as_echo "/* confdefs.h */" > confdefs.h
2425
2426 # Predefined preprocessor variables.
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_NAME "$PACKAGE_NAME"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_STRING "$PACKAGE_STRING"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2446 _ACEOF
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_URL "$PACKAGE_URL"
2450 _ACEOF
2451
2452
2453 # Let the site file select an alternate cache file if it wants to.
2454 # Prefer an explicitly selected file to automatically selected ones.
2455 ac_site_file1=NONE
2456 ac_site_file2=NONE
2457 if test -n "$CONFIG_SITE"; then
2458   # We do not want a PATH search for config.site.
2459   case $CONFIG_SITE in #((
2460     -*)  ac_site_file1=./$CONFIG_SITE;;
2461     */*) ac_site_file1=$CONFIG_SITE;;
2462     *)   ac_site_file1=./$CONFIG_SITE;;
2463   esac
2464 elif test "x$prefix" != xNONE; then
2465   ac_site_file1=$prefix/share/config.site
2466   ac_site_file2=$prefix/etc/config.site
2467 else
2468   ac_site_file1=$ac_default_prefix/share/config.site
2469   ac_site_file2=$ac_default_prefix/etc/config.site
2470 fi
2471 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2472 do
2473   test "x$ac_site_file" = xNONE && continue
2474   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2475     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2476 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2477     sed 's/^/| /' "$ac_site_file" >&5
2478     . "$ac_site_file" \
2479       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 as_fn_error $? "failed to load site script $ac_site_file
2482 See \`config.log' for more details" "$LINENO" 5; }
2483   fi
2484 done
2485
2486 if test -r "$cache_file"; then
2487   # Some versions of bash will fail to source /dev/null (special files
2488   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2489   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492     case $cache_file in
2493       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494       *)                      . "./$cache_file";;
2495     esac
2496   fi
2497 else
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2500   >$cache_file
2501 fi
2502
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508   eval ac_new_set=\$ac_env_${ac_var}_set
2509   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510   eval ac_new_val=\$ac_env_${ac_var}_value
2511   case $ac_old_set,$ac_new_set in
2512     set,)
2513       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515       ac_cache_corrupted=: ;;
2516     ,set)
2517       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519       ac_cache_corrupted=: ;;
2520     ,);;
2521     *)
2522       if test "x$ac_old_val" != "x$ac_new_val"; then
2523         # differences in whitespace do not lead to failure.
2524         ac_old_val_w=`echo x $ac_old_val`
2525         ac_new_val_w=`echo x $ac_new_val`
2526         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529           ac_cache_corrupted=:
2530         else
2531           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533           eval $ac_var=\$ac_old_val
2534         fi
2535         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2536 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2537         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2539       fi;;
2540   esac
2541   # Pass precious variables to config.status.
2542   if test "$ac_new_set" = set; then
2543     case $ac_new_val in
2544     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545     *) ac_arg=$ac_var=$ac_new_val ;;
2546     esac
2547     case " $ac_configure_args " in
2548       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2549       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550     esac
2551   fi
2552 done
2553 if $ac_cache_corrupted; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 fi
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571
2572
2573
2574 if test $cache_file = "/dev/null"; then
2575 cache_file="./config.cache"
2576 if test -r "$cache_file"; then
2577   # Some versions of bash will fail to source /dev/null (special files
2578   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2579   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2580     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581 $as_echo "$as_me: loading cache $cache_file" >&6;}
2582     case $cache_file in
2583       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584       *)                      . "./$cache_file";;
2585     esac
2586   fi
2587 else
2588   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589 $as_echo "$as_me: creating cache $cache_file" >&6;}
2590   >$cache_file
2591 fi
2592
2593 fi
2594
2595 ac_aux_dir=
2596 for ac_dir in config "$srcdir"/config; do
2597   if test -f "$ac_dir/install-sh"; then
2598     ac_aux_dir=$ac_dir
2599     ac_install_sh="$ac_aux_dir/install-sh -c"
2600     break
2601   elif test -f "$ac_dir/install.sh"; then
2602     ac_aux_dir=$ac_dir
2603     ac_install_sh="$ac_aux_dir/install.sh -c"
2604     break
2605   elif test -f "$ac_dir/shtool"; then
2606     ac_aux_dir=$ac_dir
2607     ac_install_sh="$ac_aux_dir/shtool install -c"
2608     break
2609   fi
2610 done
2611 if test -z "$ac_aux_dir"; then
2612   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2613 fi
2614
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2622
2623
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if ${ac_cv_build+:} false; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2640
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2645 *-*-*) ;;
2646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2647 esac
2648 build=$ac_cv_build
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_build
2651 shift
2652 build_cpu=$1
2653 build_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 build_os=$*
2658 IFS=$ac_save_IFS
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if ${ac_cv_host+:} false; then :
2665   $as_echo_n "(cached) " >&6
2666 else
2667   if test "x$host_alias" = x; then
2668   ac_cv_host=$ac_cv_build
2669 else
2670   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2672 fi
2673
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2677 case $ac_cv_host in
2678 *-*-*) ;;
2679 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2680 esac
2681 host=$ac_cv_host
2682 ac_save_IFS=$IFS; IFS='-'
2683 set x $ac_cv_host
2684 shift
2685 host_cpu=$1
2686 host_vendor=$2
2687 shift; shift
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2690 host_os=$*
2691 IFS=$ac_save_IFS
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2696 $as_echo_n "checking target system type... " >&6; }
2697 if ${ac_cv_target+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   if test "x$target_alias" = x; then
2701   ac_cv_target=$ac_cv_host
2702 else
2703   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2704     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2705 fi
2706
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2709 $as_echo "$ac_cv_target" >&6; }
2710 case $ac_cv_target in
2711 *-*-*) ;;
2712 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2713 esac
2714 target=$ac_cv_target
2715 ac_save_IFS=$IFS; IFS='-'
2716 set x $ac_cv_target
2717 shift
2718 target_cpu=$1
2719 target_vendor=$2
2720 shift; shift
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2723 target_os=$*
2724 IFS=$ac_save_IFS
2725 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2726
2727
2728 # The aliases save the names the user supplied, while $host etc.
2729 # will get canonicalized.
2730 test -n "$target_alias" &&
2731   test "$program_prefix$program_suffix$program_transform_name" = \
2732     NONENONEs,x,x, &&
2733   program_prefix=${target_alias}-
2734
2735 am__api_version='1.10'
2736
2737 # Find a good install program.  We prefer a C program (faster),
2738 # so one script is as good as another.  But avoid the broken or
2739 # incompatible versions:
2740 # SysV /etc/install, /usr/sbin/install
2741 # SunOS /usr/etc/install
2742 # IRIX /sbin/install
2743 # AIX /bin/install
2744 # AmigaOS /C/install, which installs bootblocks on floppy discs
2745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748 # OS/2's system install, which has a completely different semantic
2749 # ./install, which can be erroneously created by make from ./install.sh.
2750 # Reject install programs that cannot install multiple files.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2753 if test -z "$INSTALL"; then
2754 if ${ac_cv_path_install+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762     # Account for people who put trailing slashes in PATH elements.
2763 case $as_dir/ in #((
2764   ./ | .// | /[cC]/* | \
2765   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2766   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2767   /usr/ucb/* ) ;;
2768   *)
2769     # OSF1 and SCO ODT 3.0 have their own names for install.
2770     # Don't use installbsd from OSF since it installs stuff as root
2771     # by default.
2772     for ac_prog in ginstall scoinst install; do
2773       for ac_exec_ext in '' $ac_executable_extensions; do
2774         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2775           if test $ac_prog = install &&
2776             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777             # AIX install.  It has an incompatible calling convention.
2778             :
2779           elif test $ac_prog = install &&
2780             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781             # program-specific install script used by HP pwplus--don't use.
2782             :
2783           else
2784             rm -rf conftest.one conftest.two conftest.dir
2785             echo one > conftest.one
2786             echo two > conftest.two
2787             mkdir conftest.dir
2788             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2789               test -s conftest.one && test -s conftest.two &&
2790               test -s conftest.dir/conftest.one &&
2791               test -s conftest.dir/conftest.two
2792             then
2793               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2794               break 3
2795             fi
2796           fi
2797         fi
2798       done
2799     done
2800     ;;
2801 esac
2802
2803   done
2804 IFS=$as_save_IFS
2805
2806 rm -rf conftest.one conftest.two conftest.dir
2807
2808 fi
2809   if test "${ac_cv_path_install+set}" = set; then
2810     INSTALL=$ac_cv_path_install
2811   else
2812     # As a last resort, use the slow shell script.  Don't cache a
2813     # value for INSTALL within a source directory, because that will
2814     # break other packages using the cache if that directory is
2815     # removed, or if the value is a relative name.
2816     INSTALL=$ac_install_sh
2817   fi
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820 $as_echo "$INSTALL" >&6; }
2821
2822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823 # It thinks the first close brace ends the variable substitution.
2824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2825
2826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2827
2828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831 $as_echo_n "checking whether build environment is sane... " >&6; }
2832 # Just in case
2833 sleep 1
2834 echo timestamp > conftest.file
2835 # Do `set' in a subshell so we don't clobber the current shell's
2836 # arguments.  Must try -L first in case configure is actually a
2837 # symlink; some systems play weird games with the mod time of symlinks
2838 # (eg FreeBSD returns the mod time of the symlink's containing
2839 # directory).
2840 if (
2841    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2842    if test "$*" = "X"; then
2843       # -L didn't work.
2844       set X `ls -t $srcdir/configure conftest.file`
2845    fi
2846    rm -f conftest.file
2847    if test "$*" != "X $srcdir/configure conftest.file" \
2848       && test "$*" != "X conftest.file $srcdir/configure"; then
2849
2850       # If neither matched, then we have a broken ls.  This can happen
2851       # if, for instance, CONFIG_SHELL is bash and it inherits a
2852       # broken ls alias from the environment.  This has actually
2853       # happened.  Such a system could not be considered "sane".
2854       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2855 alias in your environment" "$LINENO" 5
2856    fi
2857
2858    test "$2" = conftest.file
2859    )
2860 then
2861    # Ok.
2862    :
2863 else
2864    as_fn_error $? "newly created file is older than distributed files!
2865 Check your system clock" "$LINENO" 5
2866 fi
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 test "$program_prefix" != NONE &&
2870   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2871 # Use a double $ so make ignores it.
2872 test "$program_suffix" != NONE &&
2873   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2874 # Double any \ or $.
2875 # By default was `s,x,x', remove it if useless.
2876 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2877 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2878
2879 # expand $ac_aux_dir to an absolute path
2880 am_aux_dir=`cd $ac_aux_dir && pwd`
2881
2882 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2883 # Use eval to expand $SHELL
2884 if eval "$MISSING --run true"; then
2885   am_missing_run="$MISSING --run "
2886 else
2887   am_missing_run=
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2889 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2890 fi
2891
2892 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2893
2894 # Installed binaries are usually stripped using `strip' when the user
2895 # run `make install-strip'.  However `strip' might not be the right
2896 # tool to use in cross-compilation environments, therefore Automake
2897 # will honor the `STRIP' environment variable to overrule this program.
2898 if test "$cross_compiling" != no; then
2899   if test -n "$ac_tool_prefix"; then
2900   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_STRIP+:} false; then :
2905   $as_echo_n "(cached) " >&6
2906 else
2907   if test -n "$STRIP"; then
2908   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913   IFS=$as_save_IFS
2914   test -z "$as_dir" && as_dir=.
2915     for ac_exec_ext in '' $ac_executable_extensions; do
2916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919     break 2
2920   fi
2921 done
2922   done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 STRIP=$ac_cv_prog_STRIP
2928 if test -n "$STRIP"; then
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2930 $as_echo "$STRIP" >&6; }
2931 else
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$ac_cv_prog_STRIP"; then
2939   ac_ct_STRIP=$STRIP
2940   # Extract the first word of "strip", so it can be a program name with args.
2941 set dummy strip; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$ac_ct_STRIP"; then
2948   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957     ac_cv_prog_ac_ct_STRIP="strip"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2968 if test -n "$ac_ct_STRIP"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2970 $as_echo "$ac_ct_STRIP" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976   if test "x$ac_ct_STRIP" = x; then
2977     STRIP=":"
2978   else
2979     case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985     STRIP=$ac_ct_STRIP
2986   fi
2987 else
2988   STRIP="$ac_cv_prog_STRIP"
2989 fi
2990
2991 fi
2992 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2995 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2996 if test -z "$MKDIR_P"; then
2997   if ${ac_cv_path_mkdir+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005     for ac_prog in mkdir gmkdir; do
3006          for ac_exec_ext in '' $ac_executable_extensions; do
3007            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3008            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3009              'mkdir (GNU coreutils) '* | \
3010              'mkdir (coreutils) '* | \
3011              'mkdir (fileutils) '4.1*)
3012                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3013                break 3;;
3014            esac
3015          done
3016        done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021
3022   test -d ./--version && rmdir ./--version
3023   if test "${ac_cv_path_mkdir+set}" = set; then
3024     MKDIR_P="$ac_cv_path_mkdir -p"
3025   else
3026     # As a last resort, use the slow shell script.  Don't cache a
3027     # value for MKDIR_P within a source directory, because that will
3028     # break other packages using the cache if that directory is
3029     # removed, or if the value is a relative name.
3030     MKDIR_P="$ac_install_sh -d"
3031   fi
3032 fi
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3034 $as_echo "$MKDIR_P" >&6; }
3035
3036 mkdir_p="$MKDIR_P"
3037 case $mkdir_p in
3038   [\\/$]* | ?:[\\/]*) ;;
3039   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3040 esac
3041
3042 for ac_prog in gawk mawk nawk awk
3043 do
3044   # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_AWK+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   if test -n "$AWK"; then
3052   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061     ac_cv_prog_AWK="$ac_prog"
3062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063     break 2
3064   fi
3065 done
3066   done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 AWK=$ac_cv_prog_AWK
3072 if test -n "$AWK"; then
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074 $as_echo "$AWK" >&6; }
3075 else
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081   test -n "$AWK" && break
3082 done
3083
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3085 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3086 set x ${MAKE-make}
3087 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3088 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   cat >conftest.make <<\_ACEOF
3092 SHELL = /bin/sh
3093 all:
3094         @echo '@@@%%%=$(MAKE)=@@@%%%'
3095 _ACEOF
3096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3098   *@@@%%%=?*=@@@%%%*)
3099     eval ac_cv_prog_make_${ac_make}_set=yes;;
3100   *)
3101     eval ac_cv_prog_make_${ac_make}_set=no;;
3102 esac
3103 rm -f conftest.make
3104 fi
3105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3108   SET_MAKE=
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112   SET_MAKE="MAKE=${MAKE-make}"
3113 fi
3114
3115 rm -rf .tst 2>/dev/null
3116 mkdir .tst 2>/dev/null
3117 if test -d .tst; then
3118   am__leading_dot=.
3119 else
3120   am__leading_dot=_
3121 fi
3122 rmdir .tst 2>/dev/null
3123
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126   # is not polluted with repeated "-I."
3127   am__isrc=' -I$(srcdir)'
3128   # test to see if srcdir already configured
3129   if test -f $srcdir/config.status; then
3130     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131   fi
3132 fi
3133
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136   if (cygpath --version) >/dev/null 2>/dev/null; then
3137     CYGPATH_W='cygpath -w'
3138   else
3139     CYGPATH_W=echo
3140   fi
3141 fi
3142
3143
3144 # Define the identity of the package.
3145  PACKAGE=cyrus-sasl
3146  VERSION=2.1.23
3147
3148
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3151 _ACEOF
3152
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3156 _ACEOF
3157
3158 # Some tools Automake needs.
3159
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
3174 # We need awk for the "check" target.  The system "awk" is bad on
3175 # some platforms.
3176 # Always define AMTAR for backward compatibility.
3177
3178 AMTAR=${AMTAR-"${am_missing_run}tar"}
3179
3180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3181
3182
3183
3184
3185
3186
3187
3188         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
3189
3190
3191 # and include our config dir scripts
3192 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
3193
3194 DIRS=""
3195
3196 # Check whether --enable-cmulocal was given.
3197 if test "${enable_cmulocal+set}" = set; then :
3198   enableval=$enable_cmulocal;
3199 else
3200   enable_cmulocal=no
3201 fi
3202
3203
3204 # Check whether --enable-sample was given.
3205 if test "${enable_sample+set}" = set; then :
3206   enableval=$enable_sample; enable_sample=yes
3207 fi
3208
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   if test -n "$CC"; then
3224   ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231     for ac_exec_ext in '' $ac_executable_extensions; do
3232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238   done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 fi
3254 if test -z "$ac_cv_prog_CC"; then
3255   ac_ct_CC=$CC
3256   # Extract the first word of "gcc", so it can be a program name with args.
3257 set dummy gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$ac_ct_CC"; then
3264   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273     ac_cv_prog_ac_ct_CC="gcc"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292   if test "x$ac_ct_CC" = x; then
3293     CC=""
3294   else
3295     case $cross_compiling:$ac_tool_warned in
3296 yes:)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3300 esac
3301     CC=$ac_ct_CC
3302   fi
3303 else
3304   CC="$ac_cv_prog_CC"
3305 fi
3306
3307 if test -z "$CC"; then
3308           if test -n "$ac_tool_prefix"; then
3309     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if test -n "$CC"; then
3317   ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324     for ac_exec_ext in '' $ac_executable_extensions; do
3325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326     ac_cv_prog_CC="${ac_tool_prefix}cc"
3327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331   done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346   fi
3347 fi
3348 if test -z "$CC"; then
3349   # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$CC"; then
3357   ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359   ac_prog_rejected=no
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365     for ac_exec_ext in '' $ac_executable_extensions; do
3366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368        ac_prog_rejected=yes
3369        continue
3370      fi
3371     ac_cv_prog_CC="cc"
3372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373     break 2
3374   fi
3375 done
3376   done
3377 IFS=$as_save_IFS
3378
3379 if test $ac_prog_rejected = yes; then
3380   # We found a bogon in the path, so make sure we never use it.
3381   set dummy $ac_cv_prog_CC
3382   shift
3383   if test $# != 0; then
3384     # We chose a different compiler from the bogus one.
3385     # However, it has the same basename, so the bogon will be chosen
3386     # first if we set CC to just the basename; use the full file name.
3387     shift
3388     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3389   fi
3390 fi
3391 fi
3392 fi
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402
3403 fi
3404 if test -z "$CC"; then
3405   if test -n "$ac_tool_prefix"; then
3406   for ac_prog in cl.exe
3407   do
3408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$CC"; then
3416   ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445     test -n "$CC" && break
3446   done
3447 fi
3448 if test -z "$CC"; then
3449   ac_ct_CC=$CC
3450   for ac_prog in cl.exe
3451 do
3452   # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   if test -n "$ac_ct_CC"; then
3460   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465   IFS=$as_save_IFS
3466   test -z "$as_dir" && as_dir=.
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469     ac_cv_prog_ac_ct_CC="$ac_prog"
3470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471     break 2
3472   fi
3473 done
3474   done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3483 else
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489   test -n "$ac_ct_CC" && break
3490 done
3491
3492   if test "x$ac_ct_CC" = x; then
3493     CC=""
3494   else
3495     case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501     CC=$ac_ct_CC
3502   fi
3503 fi
3504
3505 fi
3506
3507
3508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details" "$LINENO" 5; }
3512
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3515 set X $ac_compile
3516 ac_compiler=$2
3517 for ac_option in --version -v -V -qversion; do
3518   { { ac_try="$ac_compiler $ac_option >&5"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3526   ac_status=$?
3527   if test -s conftest.err; then
3528     sed '10a\
3529 ... rest of stderr output deleted ...
3530          10q' conftest.err >conftest.er1
3531     cat conftest.er1 >&5
3532   fi
3533   rm -f conftest.er1 conftest.err
3534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535   test $ac_status = 0; }
3536 done
3537
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 ac_clean_files_save=$ac_clean_files
3550 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3551 # Try to create an executable without -o first, disregard a.out.
3552 # It will help us diagnose broken compilers, and finding out an intuition
3553 # of exeext.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3555 $as_echo_n "checking whether the C compiler works... " >&6; }
3556 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3557
3558 # The possible output files:
3559 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3560
3561 ac_rmfiles=
3562 for ac_file in $ac_files
3563 do
3564   case $ac_file in
3565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3567   esac
3568 done
3569 rm -f $ac_rmfiles
3570
3571 if { { ac_try="$ac_link_default"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_link_default") 2>&5
3579   ac_status=$?
3580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581   test $ac_status = 0; }; then :
3582   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3585 # so that the user can short-circuit this test for compilers unknown to
3586 # Autoconf.
3587 for ac_file in $ac_files ''
3588 do
3589   test -f "$ac_file" || continue
3590   case $ac_file in
3591     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3592         ;;
3593     [ab].out )
3594         # We found the default executable, but exeext='' is most
3595         # certainly right.
3596         break;;
3597     *.* )
3598         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3599         then :; else
3600            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601         fi
3602         # We set ac_cv_exeext here because the later test for it is not
3603         # safe: cross compilers may not add the suffix if given an `-o'
3604         # argument, so we may need to know it at that point already.
3605         # Even if this section looks crufty: it has the advantage of
3606         # actually working.
3607         break;;
3608     * )
3609         break;;
3610   esac
3611 done
3612 test "$ac_cv_exeext" = no && ac_cv_exeext=
3613
3614 else
3615   ac_file=''
3616 fi
3617 if test -z "$ac_file"; then :
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error 77 "C compiler cannot create executables
3626 See \`config.log' for more details" "$LINENO" 5; }
3627 else
3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3632 $as_echo_n "checking for C compiler default output file name... " >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3635 ac_exeext=$ac_cv_exeext
3636
3637 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3638 ac_clean_files=$ac_clean_files_save
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3640 $as_echo_n "checking for suffix of executables... " >&6; }
3641 if { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644   *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648   (eval "$ac_link") 2>&5
3649   ac_status=$?
3650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651   test $ac_status = 0; }; then :
3652   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3654 # work properly (i.e., refer to `conftest.exe'), while it won't with
3655 # `rm'.
3656 for ac_file in conftest.exe conftest conftest.*; do
3657   test -f "$ac_file" || continue
3658   case $ac_file in
3659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3660     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661           break;;
3662     * ) break;;
3663   esac
3664 done
3665 else
3666   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details" "$LINENO" 5; }
3670 fi
3671 rm -f conftest conftest$ac_cv_exeext
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3673 $as_echo "$ac_cv_exeext" >&6; }
3674
3675 rm -f conftest.$ac_ext
3676 EXEEXT=$ac_cv_exeext
3677 ac_exeext=$EXEEXT
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h.  */
3680 #include <stdio.h>
3681 int
3682 main ()
3683 {
3684 FILE *f = fopen ("conftest.out", "w");
3685  return ferror (f) || fclose (f) != 0;
3686
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 ac_clean_files="$ac_clean_files conftest.out"
3692 # Check that the compiler produces executables we can run.  If not, either
3693 # the compiler is broken, or we cross compile.
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3695 $as_echo_n "checking whether we are cross compiling... " >&6; }
3696 if test "$cross_compiling" != yes; then
3697   { { ac_try="$ac_link"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704   (eval "$ac_link") 2>&5
3705   ac_status=$?
3706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707   test $ac_status = 0; }
3708   if { ac_try='./conftest$ac_cv_exeext'
3709   { { case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715   (eval "$ac_try") 2>&5
3716   ac_status=$?
3717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718   test $ac_status = 0; }; }; then
3719     cross_compiling=no
3720   else
3721     if test "$cross_compiling" = maybe; then
3722         cross_compiling=yes
3723     else
3724         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot run C compiled programs.
3727 If you meant to cross compile, use \`--host'.
3728 See \`config.log' for more details" "$LINENO" 5; }
3729     fi
3730   fi
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3733 $as_echo "$cross_compiling" >&6; }
3734
3735 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3736 ac_clean_files=$ac_clean_files_save
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3738 $as_echo_n "checking for suffix of object files... " >&6; }
3739 if ${ac_cv_objext+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744
3745 int
3746 main ()
3747 {
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.o conftest.obj
3754 if { { ac_try="$ac_compile"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_compile") 2>&5
3762   ac_status=$?
3763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764   test $ac_status = 0; }; then :
3765   for ac_file in conftest.o conftest.obj conftest.*; do
3766   test -f "$ac_file" || continue;
3767   case $ac_file in
3768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3769     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3770        break;;
3771   esac
3772 done
3773 else
3774   $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 fi
3782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3785 $as_echo "$ac_cv_objext" >&6; }
3786 OBJEXT=$ac_cv_objext
3787 ac_objext=$OBJEXT
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3789 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3790 if ${ac_cv_c_compiler_gnu+:} false; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799 #ifndef __GNUC__
3800        choke me
3801 #endif
3802
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808   ac_compiler_gnu=yes
3809 else
3810   ac_compiler_gnu=no
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3814
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3817 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3818 if test $ac_compiler_gnu = yes; then
3819   GCC=yes
3820 else
3821   GCC=
3822 fi
3823 ac_test_CFLAGS=${CFLAGS+set}
3824 ac_save_CFLAGS=$CFLAGS
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3826 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3827 if ${ac_cv_prog_cc_g+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   ac_save_c_werror_flag=$ac_c_werror_flag
3831    ac_c_werror_flag=yes
3832    ac_cv_prog_cc_g=no
3833    CFLAGS="-g"
3834    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846   ac_cv_prog_cc_g=yes
3847 else
3848   CFLAGS=""
3849       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h.  */
3851
3852 int
3853 main ()
3854 {
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861
3862 else
3863   ac_c_werror_flag=$ac_save_c_werror_flag
3864          CFLAGS="-g"
3865          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h.  */
3867
3868 int
3869 main ()
3870 {
3871
3872   ;
3873   return 0;
3874 }
3875 _ACEOF
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877   ac_cv_prog_cc_g=yes
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884    ac_c_werror_flag=$ac_save_c_werror_flag
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3887 $as_echo "$ac_cv_prog_cc_g" >&6; }
3888 if test "$ac_test_CFLAGS" = set; then
3889   CFLAGS=$ac_save_CFLAGS
3890 elif test $ac_cv_prog_cc_g = yes; then
3891   if test "$GCC" = yes; then
3892     CFLAGS="-g -O2"
3893   else
3894     CFLAGS="-g"
3895   fi
3896 else
3897   if test "$GCC" = yes; then
3898     CFLAGS="-O2"
3899   else
3900     CFLAGS=
3901   fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3904 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3905 if ${ac_cv_prog_cc_c89+:} false; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   ac_cv_prog_cc_c89=no
3909 ac_save_CC=$CC
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h.  */
3912 #include <stdarg.h>
3913 #include <stdio.h>
3914 #include <sys/types.h>
3915 #include <sys/stat.h>
3916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3917 struct buf { int x; };
3918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3919 static char *e (p, i)
3920      char **p;
3921      int i;
3922 {
3923   return p[i];
3924 }
3925 static char *f (char * (*g) (char **, int), char **p, ...)
3926 {
3927   char *s;
3928   va_list v;
3929   va_start (v,p);
3930   s = g (p, va_arg (v,int));
3931   va_end (v);
3932   return s;
3933 }
3934
3935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3936    function prototypes and stuff, but not '\xHH' hex character constants.
3937    These don't provoke an error unfortunately, instead are silently treated
3938    as 'x'.  The following induces an error, until -std is added to get
3939    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3940    array size at least.  It's necessary to write '\x00'==0 to get something
3941    that's true only with -std.  */
3942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3943
3944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3945    inside strings and character constants.  */
3946 #define FOO(x) 'x'
3947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3948
3949 int test (int i, double x);
3950 struct s1 {int (*f) (int a);};
3951 struct s2 {int (*f) (double a);};
3952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3953 int argc;
3954 char **argv;
3955 int
3956 main ()
3957 {
3958 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3964         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3965 do
3966   CC="$ac_save_CC $ac_arg"
3967   if ac_fn_c_try_compile "$LINENO"; then :
3968   ac_cv_prog_cc_c89=$ac_arg
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext
3971   test "x$ac_cv_prog_cc_c89" != "xno" && break
3972 done
3973 rm -f conftest.$ac_ext
3974 CC=$ac_save_CC
3975
3976 fi
3977 # AC_CACHE_VAL
3978 case "x$ac_cv_prog_cc_c89" in
3979   x)
3980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3981 $as_echo "none needed" >&6; } ;;
3982   xno)
3983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3984 $as_echo "unsupported" >&6; } ;;
3985   *)
3986     CC="$CC $ac_cv_prog_cc_c89"
3987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3988 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3989 esac
3990 if test "x$ac_cv_prog_cc_c89" != xno; then :
3991
3992 fi
3993
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 DEPDIR="${am__leading_dot}deps"
4000
4001 ac_config_commands="$ac_config_commands depfiles"
4002
4003
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4006 am__doit:
4007         @echo done
4008 .PHONY: am__doit
4009 END
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4013 am__include="#"
4014 am__quote=
4015 _am_result=none
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # We grep out `Entering directory' and `Leaving directory'
4019 # messages which can occur if `w' ends up in MAKEFLAGS.
4020 # In particular we don't look at `^make:' because GNU make might
4021 # be invoked under some other name (usually "gmake"), in which
4022 # case it prints its new name instead of `make'.
4023 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4024    am__include=include
4025    am__quote=
4026    _am_result=GNU
4027 fi
4028 # Now try BSD make style include.
4029 if test "$am__include" = "#"; then
4030    echo '.include "confinc"' > confmf
4031    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4032       am__include=.include
4033       am__quote="\""
4034       _am_result=BSD
4035    fi
4036 fi
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4042
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045   enableval=$enable_dependency_tracking;
4046 fi
4047
4048 if test "x$enable_dependency_tracking" != xno; then
4049   am_depcomp="$ac_aux_dir/depcomp"
4050   AMDEPBACKSLASH='\'
4051 fi
4052  if test "x$enable_dependency_tracking" != xno; then
4053   AMDEP_TRUE=
4054   AMDEP_FALSE='#'
4055 else
4056   AMDEP_TRUE='#'
4057   AMDEP_FALSE=
4058 fi
4059
4060
4061
4062 depcc="$CC"   am_compiler_list=
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4065 $as_echo_n "checking dependency style of $depcc... " >&6; }
4066 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4070   # We make a subdir and do the tests there.  Otherwise we can end up
4071   # making bogus files that we don't know about and never remove.  For
4072   # instance it was reported that on HP-UX the gcc test will end up
4073   # making a dummy file named `D' -- because `-MD' means `put the output
4074   # in D'.
4075   mkdir conftest.dir
4076   # Copy depcomp to subdir because otherwise we won't find it if we're
4077   # using a relative directory.
4078   cp "$am_depcomp" conftest.dir
4079   cd conftest.dir
4080   # We will build objects and dependencies in a subdirectory because
4081   # it helps to detect inapplicable dependency modes.  For instance
4082   # both Tru64's cc and ICC support -MD to output dependencies as a
4083   # side effect of compilation, but ICC will put the dependencies in
4084   # the current directory while Tru64 will put them in the object
4085   # directory.
4086   mkdir sub
4087
4088   am_cv_CC_dependencies_compiler_type=none
4089   if test "$am_compiler_list" = ""; then
4090      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4091   fi
4092   am__universal=false
4093   case " $depcc " in #(
4094      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4095      esac
4096
4097   for depmode in $am_compiler_list; do
4098     # Setup a source with many dependencies, because some compilers
4099     # like to wrap large dependency lists on column 80 (with \), and
4100     # we should not choose a depcomp mode which is confused by this.
4101     #
4102     # We need to recreate these files for each test, as the compiler may
4103     # overwrite some of them when testing with obscure command lines.
4104     # This happens at least with the AIX C compiler.
4105     : > sub/conftest.c
4106     for i in 1 2 3 4 5 6; do
4107       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4108       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4109       # Solaris 8's {/usr,}/bin/sh.
4110       touch sub/conftst$i.h
4111     done
4112     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4113
4114     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4115     # mode.  It turns out that the SunPro C++ compiler does not properly
4116     # handle `-M -o', and we need to detect this.  Also, some Intel
4117     # versions had trouble with output in subdirs
4118     am__obj=sub/conftest.${OBJEXT-o}
4119     am__minus_obj="-o $am__obj"
4120     case $depmode in
4121     gcc)
4122       # This depmode causes a compiler race in universal mode.
4123       test "$am__universal" = false || continue
4124       ;;
4125     nosideeffect)
4126       # after this tag, mechanisms are not by side-effect, so they'll
4127       # only be used when explicitly requested
4128       if test "x$enable_dependency_tracking" = xyes; then
4129         continue
4130       else
4131         break
4132       fi
4133       ;;
4134     msvisualcpp | msvcmsys)
4135       # This compiler won't grok `-c -o', but also, the minuso test has
4136       # not run yet.  These depmodes are late enough in the game, and
4137       # so weak that their functioning should not be impacted.
4138       am__obj=conftest.${OBJEXT-o}
4139       am__minus_obj=
4140       ;;
4141     none) break ;;
4142     esac
4143     if depmode=$depmode \
4144        source=sub/conftest.c object=$am__obj \
4145        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4146        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4147          >/dev/null 2>conftest.err &&
4148        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4149        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4151        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152       # icc doesn't choke on unknown options, it will just issue warnings
4153       # or remarks (even with -Werror).  So we grep stderr for any message
4154       # that says an option was ignored or not supported.
4155       # When given -MP, icc 7.0 and 7.1 complain thusly:
4156       #   icc: Command line warning: ignoring option '-M'; no argument required
4157       # The diagnosis changed in icc 8.0:
4158       #   icc: Command line remark: option '-MP' not supported
4159       if (grep 'ignoring option' conftest.err ||
4160           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4161         am_cv_CC_dependencies_compiler_type=$depmode
4162         break
4163       fi
4164     fi
4165   done
4166
4167   cd ..
4168   rm -rf conftest.dir
4169 else
4170   am_cv_CC_dependencies_compiler_type=none
4171 fi
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4175 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4176 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4177
4178  if
4179   test "x$enable_dependency_tracking" != xno \
4180   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4181   am__fastdepCC_TRUE=
4182   am__fastdepCC_FALSE='#'
4183 else
4184   am__fastdepCC_TRUE='#'
4185   am__fastdepCC_FALSE=
4186 fi
4187
4188
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4195 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4196 # On Suns, sometimes $CPP names a directory.
4197 if test -n "$CPP" && test -d "$CPP"; then
4198   CPP=
4199 fi
4200 if test -z "$CPP"; then
4201   if ${ac_cv_prog_CPP+:} false; then :
4202   $as_echo_n "(cached) " >&6
4203 else
4204       # Double quotes because CPP needs to be expanded
4205     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4206     do
4207       ac_preproc_ok=false
4208 for ac_c_preproc_warn_flag in '' yes
4209 do
4210   # Use a header file that comes with gcc, so configuring glibc
4211   # with a fresh cross-compiler works.
4212   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213   # <limits.h> exists even on freestanding compilers.
4214   # On the NeXT, cc -E runs the code through the compiler's parser,
4215   # not just through cpp. "Syntax error" is here to catch this case.
4216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218 #ifdef __STDC__
4219 # include <limits.h>
4220 #else
4221 # include <assert.h>
4222 #endif
4223                      Syntax error
4224 _ACEOF
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4226
4227 else
4228   # Broken: fails on valid input.
4229 continue
4230 fi
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4232
4233   # OK, works on sane cases.  Now check whether nonexistent headers
4234   # can be detected and how.
4235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h.  */
4237 #include <ac_nonexistent.h>
4238 _ACEOF
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4240   # Broken: success on invalid input.
4241 continue
4242 else
4243   # Passes both tests.
4244 ac_preproc_ok=:
4245 break
4246 fi
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4248
4249 done
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.i conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then :
4253   break
4254 fi
4255
4256     done
4257     ac_cv_prog_CPP=$CPP
4258
4259 fi
4260   CPP=$ac_cv_prog_CPP
4261 else
4262   ac_cv_prog_CPP=$CPP
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4265 $as_echo "$CPP" >&6; }
4266 ac_preproc_ok=false
4267 for ac_c_preproc_warn_flag in '' yes
4268 do
4269   # Use a header file that comes with gcc, so configuring glibc
4270   # with a fresh cross-compiler works.
4271   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272   # <limits.h> exists even on freestanding compilers.
4273   # On the NeXT, cc -E runs the code through the compiler's parser,
4274   # not just through cpp. "Syntax error" is here to catch this case.
4275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h.  */
4277 #ifdef __STDC__
4278 # include <limits.h>
4279 #else
4280 # include <assert.h>
4281 #endif
4282                      Syntax error
4283 _ACEOF
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285
4286 else
4287   # Broken: fails on valid input.
4288 continue
4289 fi
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4291
4292   # OK, works on sane cases.  Now check whether nonexistent headers
4293   # can be detected and how.
4294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296 #include <ac_nonexistent.h>
4297 _ACEOF
4298 if ac_fn_c_try_cpp "$LINENO"; then :
4299   # Broken: success on invalid input.
4300 continue
4301 else
4302   # Passes both tests.
4303 ac_preproc_ok=:
4304 break
4305 fi
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4307
4308 done
4309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310 rm -f conftest.i conftest.err conftest.$ac_ext
4311 if $ac_preproc_ok; then :
4312
4313 else
4314   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4317 See \`config.log' for more details" "$LINENO" 5; }
4318 fi
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326 for ac_prog in gawk mawk nawk awk
4327 do
4328   # Extract the first word of "$ac_prog", so it can be a program name with args.
4329 set dummy $ac_prog; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_AWK+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$AWK"; then
4336   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345     ac_cv_prog_AWK="$ac_prog"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352
4353 fi
4354 fi
4355 AWK=$ac_cv_prog_AWK
4356 if test -n "$AWK"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4358 $as_echo "$AWK" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364
4365   test -n "$AWK" && break
4366 done
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4369 $as_echo_n "checking whether ln -s works... " >&6; }
4370 LN_S=$as_ln_s
4371 if test "$LN_S" = "ln -s"; then
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4374 else
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4376 $as_echo "no, using $LN_S" >&6; }
4377 fi
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4380 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4381 set x ${MAKE-make}
4382 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4383 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   cat >conftest.make <<\_ACEOF
4387 SHELL = /bin/sh
4388 all:
4389         @echo '@@@%%%=$(MAKE)=@@@%%%'
4390 _ACEOF
4391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4393   *@@@%%%=?*=@@@%%%*)
4394     eval ac_cv_prog_make_${ac_make}_set=yes;;
4395   *)
4396     eval ac_cv_prog_make_${ac_make}_set=no;;
4397 esac
4398 rm -f conftest.make
4399 fi
4400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4403   SET_MAKE=
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407   SET_MAKE="MAKE=${MAKE-make}"
4408 fi
4409
4410
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4414 $as_echo_n "checking for __attribute__... " >&6; }
4415 if ${ac_cv___attribute__+:} false; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421
4422 #include <stdlib.h>
4423
4424 int
4425 main ()
4426 {
4427
4428 static void foo(void) __attribute__ ((noreturn));
4429
4430 static void
4431 foo(void)
4432 {
4433   exit(1);
4434 }
4435
4436   ;
4437   return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441   ac_cv___attribute__=yes
4442 else
4443   ac_cv___attribute__=no
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 fi
4447
4448 if test "$ac_cv___attribute__" = "yes"; then
4449
4450 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4454 $as_echo "$ac_cv___attribute__" >&6; }
4455
4456
4457
4458    # CMU GUESS RUNPATH SWITCH
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
4460 $as_echo_n "checking for runpath switch... " >&6; }
4461 if ${andrew_runpath_switch+:} false; then :
4462   $as_echo_n "(cached) " >&6
4463 else
4464
4465     # first, try -R
4466     SAVE_LDFLAGS="${LDFLAGS}"
4467     LDFLAGS="-R /usr/lib"
4468     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470
4471 int
4472 main ()
4473 {
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_c_try_link "$LINENO"; then :
4480   andrew_runpath_switch="-R"
4481 else
4482
4483         LDFLAGS="-Wl,-rpath,/usr/lib"
4484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h.  */
4486
4487 int
4488 main ()
4489 {
4490
4491   ;
4492   return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_link "$LINENO"; then :
4496   andrew_runpath_switch="-Wl,-rpath,"
4497 else
4498   andrew_runpath_switch="none"
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext \
4501     conftest$ac_exeext conftest.$ac_ext
4502
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext \
4505     conftest$ac_exeext conftest.$ac_ext
4506   LDFLAGS="${SAVE_LDFLAGS}"
4507
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_runpath_switch" >&5
4510 $as_echo "$andrew_runpath_switch" >&6; }
4511
4512
4513 # Check whether --with-staticsasl was given.
4514 if test "${with_staticsasl+set}" = set; then :
4515   withval=$with_staticsasl;
4516 fi
4517
4518 if test "$with_staticsasl" = yes; then
4519         enable_shared=yes
4520         enable_static=yes
4521 fi
4522
4523 save_target=$target
4524 if test -z "$target"; then
4525         target="NONE"
4526 fi
4527
4528 # new libtool
4529 # Check whether --enable-static was given.
4530 if test "${enable_static+set}" = set; then :
4531   enableval=$enable_static; p=${PACKAGE-default}
4532     case $enableval in
4533     yes) enable_static=yes ;;
4534     no) enable_static=no ;;
4535     *)
4536      enable_static=no
4537       # Look at the argument we got.  We use all the common list separators.
4538       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4539       for pkg in $enableval; do
4540         IFS="$lt_save_ifs"
4541         if test "X$pkg" = "X$p"; then
4542           enable_static=yes
4543         fi
4544       done
4545       IFS="$lt_save_ifs"
4546       ;;
4547     esac
4548 else
4549   enable_static=no
4550 fi
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560 case `pwd` in
4561   *\ * | *\     *)
4562     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4563 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4564 esac
4565
4566
4567
4568 macro_version='2.2.10'
4569 macro_revision='1.3175'
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583 ltmain="$ac_aux_dir/ltmain.sh"
4584
4585 # Backslashify metacharacters that are still active within
4586 # double-quoted strings.
4587 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4588
4589 # Same as above, but do not quote variable references.
4590 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4591
4592 # Sed substitution to delay expansion of an escaped shell variable in a
4593 # double_quote_subst'ed string.
4594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4595
4596 # Sed substitution to delay expansion of an escaped single quote.
4597 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4598
4599 # Sed substitution to avoid accidental globbing in evaled expressions
4600 no_glob_subst='s/\*/\\\*/g'
4601
4602 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4603 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4604 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4607 $as_echo_n "checking how to print strings... " >&6; }
4608 # Test print first, because it will be a builtin if present.
4609 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4610    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4611   ECHO='print -r --'
4612 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4613   ECHO='printf %s\n'
4614 else
4615   # Use this function as a fallback that always works.
4616   func_fallback_echo ()
4617   {
4618     eval 'cat <<_LTECHO_EOF
4619 $1
4620 _LTECHO_EOF'
4621   }
4622   ECHO='func_fallback_echo'
4623 fi
4624
4625 # func_echo_all arg...
4626 # Invoke $ECHO with all args, space-separated.
4627 func_echo_all ()
4628 {
4629     $ECHO ""
4630 }
4631
4632 case "$ECHO" in
4633   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4634 $as_echo "printf" >&6; } ;;
4635   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4636 $as_echo "print -r" >&6; } ;;
4637   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4638 $as_echo "cat" >&6; } ;;
4639 esac
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4655 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4656 if ${ac_cv_path_SED+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4660      for ac_i in 1 2 3 4 5 6 7; do
4661        ac_script="$ac_script$as_nl$ac_script"
4662      done
4663      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4664      { ac_script=; unset ac_script;}
4665      if test -z "$SED"; then
4666   ac_path_SED_found=false
4667   # Loop through the user's path and test for each of PROGNAME-LIST
4668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673     for ac_prog in sed gsed; do
4674     for ac_exec_ext in '' $ac_executable_extensions; do
4675       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4676       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4677 # Check for GNU ac_path_SED and select it if it is found.
4678   # Check for GNU $ac_path_SED
4679 case `"$ac_path_SED" --version 2>&1` in
4680 *GNU*)
4681   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4682 *)
4683   ac_count=0
4684   $as_echo_n 0123456789 >"conftest.in"
4685   while :
4686   do
4687     cat "conftest.in" "conftest.in" >"conftest.tmp"
4688     mv "conftest.tmp" "conftest.in"
4689     cp "conftest.in" "conftest.nl"
4690     $as_echo '' >> "conftest.nl"
4691     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693     as_fn_arith $ac_count + 1 && ac_count=$as_val
4694     if test $ac_count -gt ${ac_path_SED_max-0}; then
4695       # Best one so far, save it but keep looking for a better one
4696       ac_cv_path_SED="$ac_path_SED"
4697       ac_path_SED_max=$ac_count
4698     fi
4699     # 10*(2^10) chars as input seems more than enough
4700     test $ac_count -gt 10 && break
4701   done
4702   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 esac
4704
4705       $ac_path_SED_found && break 3
4706     done
4707   done
4708   done
4709 IFS=$as_save_IFS
4710   if test -z "$ac_cv_path_SED"; then
4711     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4712   fi
4713 else
4714   ac_cv_path_SED=$SED
4715 fi
4716
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4719 $as_echo "$ac_cv_path_SED" >&6; }
4720  SED="$ac_cv_path_SED"
4721   rm -f conftest.sed
4722
4723 test -z "$SED" && SED=sed
4724 Xsed="$SED -e 1s/^X//"
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4737 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4738 if ${ac_cv_path_GREP+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -z "$GREP"; then
4742   ac_path_GREP_found=false
4743   # Loop through the user's path and test for each of PROGNAME-LIST
4744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_prog in grep ggrep; do
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4752       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4753 # Check for GNU ac_path_GREP and select it if it is found.
4754   # Check for GNU $ac_path_GREP
4755 case `"$ac_path_GREP" --version 2>&1` in
4756 *GNU*)
4757   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4758 *)
4759   ac_count=0
4760   $as_echo_n 0123456789 >"conftest.in"
4761   while :
4762   do
4763     cat "conftest.in" "conftest.in" >"conftest.tmp"
4764     mv "conftest.tmp" "conftest.in"
4765     cp "conftest.in" "conftest.nl"
4766     $as_echo 'GREP' >> "conftest.nl"
4767     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769     as_fn_arith $ac_count + 1 && ac_count=$as_val
4770     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4771       # Best one so far, save it but keep looking for a better one
4772       ac_cv_path_GREP="$ac_path_GREP"
4773       ac_path_GREP_max=$ac_count
4774     fi
4775     # 10*(2^10) chars as input seems more than enough
4776     test $ac_count -gt 10 && break
4777   done
4778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 esac
4780
4781       $ac_path_GREP_found && break 3
4782     done
4783   done
4784   done
4785 IFS=$as_save_IFS
4786   if test -z "$ac_cv_path_GREP"; then
4787     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788   fi
4789 else
4790   ac_cv_path_GREP=$GREP
4791 fi
4792
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4795 $as_echo "$ac_cv_path_GREP" >&6; }
4796  GREP="$ac_cv_path_GREP"
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4800 $as_echo_n "checking for egrep... " >&6; }
4801 if ${ac_cv_path_EGREP+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4805    then ac_cv_path_EGREP="$GREP -E"
4806    else
4807      if test -z "$EGREP"; then
4808   ac_path_EGREP_found=false
4809   # Loop through the user's path and test for each of PROGNAME-LIST
4810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815     for ac_prog in egrep; do
4816     for ac_exec_ext in '' $ac_executable_extensions; do
4817       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4818       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4819 # Check for GNU ac_path_EGREP and select it if it is found.
4820   # Check for GNU $ac_path_EGREP
4821 case `"$ac_path_EGREP" --version 2>&1` in
4822 *GNU*)
4823   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4824 *)
4825   ac_count=0
4826   $as_echo_n 0123456789 >"conftest.in"
4827   while :
4828   do
4829     cat "conftest.in" "conftest.in" >"conftest.tmp"
4830     mv "conftest.tmp" "conftest.in"
4831     cp "conftest.in" "conftest.nl"
4832     $as_echo 'EGREP' >> "conftest.nl"
4833     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835     as_fn_arith $ac_count + 1 && ac_count=$as_val
4836     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4837       # Best one so far, save it but keep looking for a better one
4838       ac_cv_path_EGREP="$ac_path_EGREP"
4839       ac_path_EGREP_max=$ac_count
4840     fi
4841     # 10*(2^10) chars as input seems more than enough
4842     test $ac_count -gt 10 && break
4843   done
4844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847       $ac_path_EGREP_found && break 3
4848     done
4849   done
4850   done
4851 IFS=$as_save_IFS
4852   if test -z "$ac_cv_path_EGREP"; then
4853     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854   fi
4855 else
4856   ac_cv_path_EGREP=$EGREP
4857 fi
4858
4859    fi
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4862 $as_echo "$ac_cv_path_EGREP" >&6; }
4863  EGREP="$ac_cv_path_EGREP"
4864
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4867 $as_echo_n "checking for fgrep... " >&6; }
4868 if ${ac_cv_path_FGREP+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4872    then ac_cv_path_FGREP="$GREP -F"
4873    else
4874      if test -z "$FGREP"; then
4875   ac_path_FGREP_found=false
4876   # Loop through the user's path and test for each of PROGNAME-LIST
4877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_prog in fgrep; do
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4885       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4886 # Check for GNU ac_path_FGREP and select it if it is found.
4887   # Check for GNU $ac_path_FGREP
4888 case `"$ac_path_FGREP" --version 2>&1` in
4889 *GNU*)
4890   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4891 *)
4892   ac_count=0
4893   $as_echo_n 0123456789 >"conftest.in"
4894   while :
4895   do
4896     cat "conftest.in" "conftest.in" >"conftest.tmp"
4897     mv "conftest.tmp" "conftest.in"
4898     cp "conftest.in" "conftest.nl"
4899     $as_echo 'FGREP' >> "conftest.nl"
4900     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902     as_fn_arith $ac_count + 1 && ac_count=$as_val
4903     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4904       # Best one so far, save it but keep looking for a better one
4905       ac_cv_path_FGREP="$ac_path_FGREP"
4906       ac_path_FGREP_max=$ac_count
4907     fi
4908     # 10*(2^10) chars as input seems more than enough
4909     test $ac_count -gt 10 && break
4910   done
4911   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4912 esac
4913
4914       $ac_path_FGREP_found && break 3
4915     done
4916   done
4917   done
4918 IFS=$as_save_IFS
4919   if test -z "$ac_cv_path_FGREP"; then
4920     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921   fi
4922 else
4923   ac_cv_path_FGREP=$FGREP
4924 fi
4925
4926    fi
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4929 $as_echo "$ac_cv_path_FGREP" >&6; }
4930  FGREP="$ac_cv_path_FGREP"
4931
4932
4933 test -z "$GREP" && GREP=grep
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 # Check whether --with-gnu-ld was given.
4954 if test "${with_gnu_ld+set}" = set; then :
4955   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4956 else
4957   with_gnu_ld=no
4958 fi
4959
4960 ac_prog=ld
4961 if test "$GCC" = yes; then
4962   # Check if gcc -print-prog-name=ld gives a path.
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4964 $as_echo_n "checking for ld used by $CC... " >&6; }
4965   case $host in
4966   *-*-mingw*)
4967     # gcc leaves a trailing carriage return which upsets mingw
4968     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4969   *)
4970     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4971   esac
4972   case $ac_prog in
4973     # Accept absolute paths.
4974     [\\/]* | ?:[\\/]*)
4975       re_direlt='/[^/][^/]*/\.\./'
4976       # Canonicalize the pathname of ld
4977       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4978       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4979         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4980       done
4981       test -z "$LD" && LD="$ac_prog"
4982       ;;
4983   "")
4984     # If it fails, then pretend we aren't using GCC.
4985     ac_prog=ld
4986     ;;
4987   *)
4988     # If it is relative, then search for the first ld in PATH.
4989     with_gnu_ld=unknown
4990     ;;
4991   esac
4992 elif test "$with_gnu_ld" = yes; then
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4994 $as_echo_n "checking for GNU ld... " >&6; }
4995 else
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4997 $as_echo_n "checking for non-GNU ld... " >&6; }
4998 fi
4999 if ${lt_cv_path_LD+:} false; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   if test -z "$LD"; then
5003   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5004   for ac_dir in $PATH; do
5005     IFS="$lt_save_ifs"
5006     test -z "$ac_dir" && ac_dir=.
5007     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5008       lt_cv_path_LD="$ac_dir/$ac_prog"
5009       # Check to see if the program is GNU ld.  I'd rather use --version,
5010       # but apparently some variants of GNU ld only accept -v.
5011       # Break only if it was the GNU/non-GNU ld that we prefer.
5012       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5013       *GNU* | *'with BFD'*)
5014         test "$with_gnu_ld" != no && break
5015         ;;
5016       *)
5017         test "$with_gnu_ld" != yes && break
5018         ;;
5019       esac
5020     fi
5021   done
5022   IFS="$lt_save_ifs"
5023 else
5024   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5025 fi
5026 fi
5027
5028 LD="$lt_cv_path_LD"
5029 if test -n "$LD"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5031 $as_echo "$LD" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5039 if ${lt_cv_prog_gnu_ld+:} false; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5043 case `$LD -v 2>&1 </dev/null` in
5044 *GNU* | *'with BFD'*)
5045   lt_cv_prog_gnu_ld=yes
5046   ;;
5047 *)
5048   lt_cv_prog_gnu_ld=no
5049   ;;
5050 esac
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5053 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5054 with_gnu_ld=$lt_cv_prog_gnu_ld
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5065 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5066 if ${lt_cv_path_NM+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   if test -n "$NM"; then
5070   # Let the user override the test.
5071   lt_cv_path_NM="$NM"
5072 else
5073   lt_nm_to_check="${ac_tool_prefix}nm"
5074   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5075     lt_nm_to_check="$lt_nm_to_check nm"
5076   fi
5077   for lt_tmp_nm in $lt_nm_to_check; do
5078     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5079     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5080       IFS="$lt_save_ifs"
5081       test -z "$ac_dir" && ac_dir=.
5082       tmp_nm="$ac_dir/$lt_tmp_nm"
5083       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5084         # Check to see if the nm accepts a BSD-compat flag.
5085         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5086         #   nm: unknown option "B" ignored
5087         # Tru64's nm complains that /dev/null is an invalid object file
5088         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5089         */dev/null* | *'Invalid file or object type'*)
5090           lt_cv_path_NM="$tmp_nm -B"
5091           break
5092           ;;
5093         *)
5094           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5095           */dev/null*)
5096             lt_cv_path_NM="$tmp_nm -p"
5097             break
5098             ;;
5099           *)
5100             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5101             continue # so that we can try to find one that supports BSD flags
5102             ;;
5103           esac
5104           ;;
5105         esac
5106       fi
5107     done
5108     IFS="$lt_save_ifs"
5109   done
5110   : ${lt_cv_path_NM=no}
5111 fi
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5114 $as_echo "$lt_cv_path_NM" >&6; }
5115 if test "$lt_cv_path_NM" != "no"; then
5116   NM="$lt_cv_path_NM"
5117 else
5118   # Didn't find any BSD compatible name lister, look for dumpbin.
5119   if test -n "$DUMPBIN"; then :
5120     # Let the user override the test.
5121   else
5122     if test -n "$ac_tool_prefix"; then
5123   for ac_prog in dumpbin "link -dump"
5124   do
5125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_DUMPBIN+:} false; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   if test -n "$DUMPBIN"; then
5133   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 DUMPBIN=$ac_cv_prog_DUMPBIN
5153 if test -n "$DUMPBIN"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5155 $as_echo "$DUMPBIN" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162     test -n "$DUMPBIN" && break
5163   done
5164 fi
5165 if test -z "$DUMPBIN"; then
5166   ac_ct_DUMPBIN=$DUMPBIN
5167   for ac_prog in dumpbin "link -dump"
5168 do
5169   # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if test -n "$ac_ct_DUMPBIN"; then
5177   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191   done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5197 if test -n "$ac_ct_DUMPBIN"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5199 $as_echo "$ac_ct_DUMPBIN" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206   test -n "$ac_ct_DUMPBIN" && break
5207 done
5208
5209   if test "x$ac_ct_DUMPBIN" = x; then
5210     DUMPBIN=":"
5211   else
5212     case $cross_compiling:$ac_tool_warned in
5213 yes:)
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5217 esac
5218     DUMPBIN=$ac_ct_DUMPBIN
5219   fi
5220 fi
5221
5222     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5223     *COFF*)
5224       DUMPBIN="$DUMPBIN -symbols"
5225       ;;
5226     *)
5227       DUMPBIN=:
5228       ;;
5229     esac
5230   fi
5231
5232   if test "$DUMPBIN" != ":"; then
5233     NM="$DUMPBIN"
5234   fi
5235 fi
5236 test -z "$NM" && NM=nm
5237
5238
5239
5240
5241
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5244 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5245 if ${lt_cv_nm_interface+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   lt_cv_nm_interface="BSD nm"
5249   echo "int some_variable = 0;" > conftest.$ac_ext
5250   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5251   (eval "$ac_compile" 2>conftest.err)
5252   cat conftest.err >&5
5253   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5254   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5255   cat conftest.err >&5
5256   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5257   cat conftest.out >&5
5258   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5259     lt_cv_nm_interface="MS dumpbin"
5260   fi
5261   rm -f conftest*
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5264 $as_echo "$lt_cv_nm_interface" >&6; }
5265
5266 # find the maximum length of command line arguments
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5269 if ${lt_cv_sys_max_cmd_len+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272     i=0
5273   teststring="ABCD"
5274
5275   case $build_os in
5276   msdosdjgpp*)
5277     # On DJGPP, this test can blow up pretty badly due to problems in libc
5278     # (any single argument exceeding 2000 bytes causes a buffer overrun
5279     # during glob expansion).  Even if it were fixed, the result of this
5280     # check would be larger than it should be.
5281     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5282     ;;
5283
5284   gnu*)
5285     # Under GNU Hurd, this test is not required because there is
5286     # no limit to the length of command line arguments.
5287     # Libtool will interpret -1 as no limit whatsoever
5288     lt_cv_sys_max_cmd_len=-1;
5289     ;;
5290
5291   cygwin* | mingw* | cegcc*)
5292     # On Win9x/ME, this test blows up -- it succeeds, but takes
5293     # about 5 minutes as the teststring grows exponentially.
5294     # Worse, since 9x/ME are not pre-emptively multitasking,
5295     # you end up with a "frozen" computer, even though with patience
5296     # the test eventually succeeds (with a max line length of 256k).
5297     # Instead, let's just punt: use the minimum linelength reported by
5298     # all of the supported platforms: 8192 (on NT/2K/XP).
5299     lt_cv_sys_max_cmd_len=8192;
5300     ;;
5301
5302   mint*)
5303     # On MiNT this can take a long time and run out of memory.
5304     lt_cv_sys_max_cmd_len=8192;
5305     ;;
5306
5307   amigaos*)
5308     # On AmigaOS with pdksh, this test takes hours, literally.
5309     # So we just punt and use a minimum line length of 8192.
5310     lt_cv_sys_max_cmd_len=8192;
5311     ;;
5312
5313   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5314     # This has been around since 386BSD, at least.  Likely further.
5315     if test -x /sbin/sysctl; then
5316       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5317     elif test -x /usr/sbin/sysctl; then
5318       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5319     else
5320       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5321     fi
5322     # And add a safety zone
5323     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5324     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5325     ;;
5326
5327   interix*)
5328     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5329     lt_cv_sys_max_cmd_len=196608
5330     ;;
5331
5332   osf*)
5333     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5334     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5335     # nice to cause kernel panics so lets avoid the loop below.
5336     # First set a reasonable default.
5337     lt_cv_sys_max_cmd_len=16384
5338     #
5339     if test -x /sbin/sysconfig; then
5340       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5341         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5342       esac
5343     fi
5344     ;;
5345   sco3.2v5*)
5346     lt_cv_sys_max_cmd_len=102400
5347     ;;
5348   sysv5* | sco5v6* | sysv4.2uw2*)
5349     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5350     if test -n "$kargmax"; then
5351       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5352     else
5353       lt_cv_sys_max_cmd_len=32768
5354     fi
5355     ;;
5356   *)
5357     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5358     if test -n "$lt_cv_sys_max_cmd_len"; then
5359       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5360       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5361     else
5362       # Make teststring a little bigger before we do anything with it.
5363       # a 1K string should be a reasonable start.
5364       for i in 1 2 3 4 5 6 7 8 ; do
5365         teststring=$teststring$teststring
5366       done
5367       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5368       # If test is not a shell built-in, we'll probably end up computing a
5369       # maximum length that is only half of the actual maximum length, but
5370       # we can't tell.
5371       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5372                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5373               test $i != 17 # 1/2 MB should be enough
5374       do
5375         i=`expr $i + 1`
5376         teststring=$teststring$teststring
5377       done
5378       # Only check the string length outside the loop.
5379       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5380       teststring=
5381       # Add a significant safety factor because C++ compilers can tack on
5382       # massive amounts of additional arguments before passing them to the
5383       # linker.  It appears as though 1/2 is a usable value.
5384       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5385     fi
5386     ;;
5387   esac
5388
5389 fi
5390
5391 if test -n $lt_cv_sys_max_cmd_len ; then
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5396 $as_echo "none" >&6; }
5397 fi
5398 max_cmd_len=$lt_cv_sys_max_cmd_len
5399
5400
5401
5402
5403
5404
5405 : ${CP="cp -f"}
5406 : ${MV="mv -f"}
5407 : ${RM="rm -f"}
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5411 # Try some XSI features
5412 xsi_shell=no
5413 ( _lt_dummy="a/b/c"
5414   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5415       = c,a/b,, \
5416     && eval 'test $(( 1 + 1 )) -eq 2 \
5417     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5418   && xsi_shell=yes
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5420 $as_echo "$xsi_shell" >&6; }
5421
5422
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5424 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5425 lt_shell_append=no
5426 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5427     >/dev/null 2>&1 \
5428   && lt_shell_append=yes
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5430 $as_echo "$lt_shell_append" >&6; }
5431
5432
5433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5434   lt_unset=unset
5435 else
5436   lt_unset=false
5437 fi
5438
5439
5440
5441
5442
5443 # test EBCDIC or ASCII
5444 case `echo X|tr X '\101'` in
5445  A) # ASCII based system
5446     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5447   lt_SP2NL='tr \040 \012'
5448   lt_NL2SP='tr \015\012 \040\040'
5449   ;;
5450  *) # EBCDIC based system
5451   lt_SP2NL='tr \100 \n'
5452   lt_NL2SP='tr \r\n \100\100'
5453   ;;
5454 esac
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5465 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5466 if ${lt_cv_ld_reload_flag+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   lt_cv_ld_reload_flag='-r'
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5473 reload_flag=$lt_cv_ld_reload_flag
5474 case $reload_flag in
5475 "" | " "*) ;;
5476 *) reload_flag=" $reload_flag" ;;
5477 esac
5478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5479 case $host_os in
5480   darwin*)
5481     if test "$GCC" = yes; then
5482       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5483     else
5484       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5485     fi
5486     ;;
5487 esac
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 if test -n "$ac_tool_prefix"; then
5498   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_OBJDUMP+:} false; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   if test -n "$OBJDUMP"; then
5506   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513     for ac_exec_ext in '' $ac_executable_extensions; do
5514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520   done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 OBJDUMP=$ac_cv_prog_OBJDUMP
5526 if test -n "$OBJDUMP"; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5528 $as_echo "$OBJDUMP" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 fi
5536 if test -z "$ac_cv_prog_OBJDUMP"; then
5537   ac_ct_OBJDUMP=$OBJDUMP
5538   # Extract the first word of "objdump", so it can be a program name with args.
5539 set dummy objdump; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$ac_ct_OBJDUMP"; then
5546   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5566 if test -n "$ac_ct_OBJDUMP"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5568 $as_echo "$ac_ct_OBJDUMP" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574   if test "x$ac_ct_OBJDUMP" = x; then
5575     OBJDUMP="false"
5576   else
5577     case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583     OBJDUMP=$ac_ct_OBJDUMP
5584   fi
5585 else
5586   OBJDUMP="$ac_cv_prog_OBJDUMP"
5587 fi
5588
5589 test -z "$OBJDUMP" && OBJDUMP=objdump
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5601 if ${lt_cv_deplibs_check_method+:} false; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   lt_cv_file_magic_cmd='$MAGIC_CMD'
5605 lt_cv_file_magic_test_file=
5606 lt_cv_deplibs_check_method='unknown'
5607 # Need to set the preceding variable on all platforms that support
5608 # interlibrary dependencies.
5609 # 'none' -- dependencies not supported.
5610 # `unknown' -- same as none, but documents that we really don't know.
5611 # 'pass_all' -- all dependencies passed with no checks.
5612 # 'test_compile' -- check by making test program.
5613 # 'file_magic [[regex]]' -- check by looking for files in library path
5614 # which responds to the $file_magic_cmd with a given extended regex.
5615 # If you have `file' or equivalent on your system and you're not sure
5616 # whether `pass_all' will *always* work, you probably want this one.
5617
5618 case $host_os in
5619 aix[4-9]*)
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 beos*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 bsdi[45]*)
5628   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5629   lt_cv_file_magic_cmd='/usr/bin/file -L'
5630   lt_cv_file_magic_test_file=/shlib/libc.so
5631   ;;
5632
5633 cygwin*)
5634   # func_win32_libid is a shell function defined in ltmain.sh
5635   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636   lt_cv_file_magic_cmd='func_win32_libid'
5637   ;;
5638
5639 mingw* | pw32*)
5640   # Base MSYS/MinGW do not provide the 'file' command needed by
5641   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5642   # unless we find 'file', for example because we are cross-compiling.
5643   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5644   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5645     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5646     lt_cv_file_magic_cmd='func_win32_libid'
5647   else
5648     # Keep this pattern in sync with the one in func_win32_libid.
5649     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5650     lt_cv_file_magic_cmd='$OBJDUMP -f'
5651   fi
5652   ;;
5653
5654 cegcc*)
5655   # use the weaker test based on 'objdump'. See mingw*.
5656   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5657   lt_cv_file_magic_cmd='$OBJDUMP -f'
5658   ;;
5659
5660 darwin* | rhapsody*)
5661   lt_cv_deplibs_check_method=pass_all
5662   ;;
5663
5664 freebsd* | dragonfly*)
5665   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5666     case $host_cpu in
5667     i*86 )
5668       # Not sure whether the presence of OpenBSD here was a mistake.
5669       # Let's accept both of them until this is cleared up.
5670       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5671       lt_cv_file_magic_cmd=/usr/bin/file
5672       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5673       ;;
5674     esac
5675   else
5676     lt_cv_deplibs_check_method=pass_all
5677   fi
5678   ;;
5679
5680 gnu*)
5681   lt_cv_deplibs_check_method=pass_all
5682   ;;
5683
5684 haiku*)
5685   lt_cv_deplibs_check_method=pass_all
5686   ;;
5687
5688 hpux10.20* | hpux11*)
5689   lt_cv_file_magic_cmd=/usr/bin/file
5690   case $host_cpu in
5691   ia64*)
5692     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5693     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5694     ;;
5695   hppa*64*)
5696     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]'
5697     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5698     ;;
5699   *)
5700     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5701     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5702     ;;
5703   esac
5704   ;;
5705
5706 interix[3-9]*)
5707   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5708   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5709   ;;
5710
5711 irix5* | irix6* | nonstopux*)
5712   case $LD in
5713   *-32|*"-32 ") libmagic=32-bit;;
5714   *-n32|*"-n32 ") libmagic=N32;;
5715   *-64|*"-64 ") libmagic=64-bit;;
5716   *) libmagic=never-match;;
5717   esac
5718   lt_cv_deplibs_check_method=pass_all
5719   ;;
5720
5721 # This must be Linux ELF.
5722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5723   lt_cv_deplibs_check_method=pass_all
5724   ;;
5725
5726 netbsd*)
5727   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5728     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5729   else
5730     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5731   fi
5732   ;;
5733
5734 newos6*)
5735   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5736   lt_cv_file_magic_cmd=/usr/bin/file
5737   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5738   ;;
5739
5740 *nto* | *qnx*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 openbsd*)
5745   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5746     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5747   else
5748     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5749   fi
5750   ;;
5751
5752 osf3* | osf4* | osf5*)
5753   lt_cv_deplibs_check_method=pass_all
5754   ;;
5755
5756 rdos*)
5757   lt_cv_deplibs_check_method=pass_all
5758   ;;
5759
5760 solaris*)
5761   lt_cv_deplibs_check_method=pass_all
5762   ;;
5763
5764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5765   lt_cv_deplibs_check_method=pass_all
5766   ;;
5767
5768 sysv4 | sysv4.3*)
5769   case $host_vendor in
5770   motorola)
5771     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]'
5772     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5773     ;;
5774   ncr)
5775     lt_cv_deplibs_check_method=pass_all
5776     ;;
5777   sequent)
5778     lt_cv_file_magic_cmd='/bin/file'
5779     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5780     ;;
5781   sni)
5782     lt_cv_file_magic_cmd='/bin/file'
5783     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5784     lt_cv_file_magic_test_file=/lib/libc.so
5785     ;;
5786   siemens)
5787     lt_cv_deplibs_check_method=pass_all
5788     ;;
5789   pc)
5790     lt_cv_deplibs_check_method=pass_all
5791     ;;
5792   esac
5793   ;;
5794
5795 tpf*)
5796   lt_cv_deplibs_check_method=pass_all
5797   ;;
5798 esac
5799
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5802 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5803 file_magic_cmd=$lt_cv_file_magic_cmd
5804 deplibs_check_method=$lt_cv_deplibs_check_method
5805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818 if test -n "$ac_tool_prefix"; then
5819   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}ar; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_AR+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   if test -n "$AR"; then
5827   ac_cv_prog_AR="$AR" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834     for ac_exec_ext in '' $ac_executable_extensions; do
5835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836     ac_cv_prog_AR="${ac_tool_prefix}ar"
5837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841   done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 AR=$ac_cv_prog_AR
5847 if test -n "$AR"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5849 $as_echo "$AR" >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 fi
5854
5855
5856 fi
5857 if test -z "$ac_cv_prog_AR"; then
5858   ac_ct_AR=$AR
5859   # Extract the first word of "ar", so it can be a program name with args.
5860 set dummy ar; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   if test -n "$ac_ct_AR"; then
5867   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874     for ac_exec_ext in '' $ac_executable_extensions; do
5875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876     ac_cv_prog_ac_ct_AR="ar"
5877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881   done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5887 if test -n "$ac_ct_AR"; then
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5889 $as_echo "$ac_ct_AR" >&6; }
5890 else
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895   if test "x$ac_ct_AR" = x; then
5896     AR="false"
5897   else
5898     case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904     AR=$ac_ct_AR
5905   fi
5906 else
5907   AR="$ac_cv_prog_AR"
5908 fi
5909
5910 test -z "$AR" && AR=ar
5911 test -z "$AR_FLAGS" && AR_FLAGS=cru
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923 if test -n "$ac_tool_prefix"; then
5924   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_STRIP+:} false; then :
5929   $as_echo_n "(cached) " >&6
5930 else
5931   if test -n "$STRIP"; then
5932   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946   done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 STRIP=$ac_cv_prog_STRIP
5952 if test -n "$STRIP"; then
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5954 $as_echo "$STRIP" >&6; }
5955 else
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960
5961 fi
5962 if test -z "$ac_cv_prog_STRIP"; then
5963   ac_ct_STRIP=$STRIP
5964   # Extract the first word of "strip", so it can be a program name with args.
5965 set dummy strip; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   if test -n "$ac_ct_STRIP"; then
5972   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979     for ac_exec_ext in '' $ac_executable_extensions; do
5980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981     ac_cv_prog_ac_ct_STRIP="strip"
5982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986   done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5992 if test -n "$ac_ct_STRIP"; then
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5994 $as_echo "$ac_ct_STRIP" >&6; }
5995 else
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999
6000   if test "x$ac_ct_STRIP" = x; then
6001     STRIP=":"
6002   else
6003     case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009     STRIP=$ac_ct_STRIP
6010   fi
6011 else
6012   STRIP="$ac_cv_prog_STRIP"
6013 fi
6014
6015 test -z "$STRIP" && STRIP=:
6016
6017
6018
6019
6020
6021
6022 if test -n "$ac_tool_prefix"; then
6023   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_RANLIB+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$RANLIB"; then
6031   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 RANLIB=$ac_cv_prog_RANLIB
6051 if test -n "$RANLIB"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6053 $as_echo "$RANLIB" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060 fi
6061 if test -z "$ac_cv_prog_RANLIB"; then
6062   ac_ct_RANLIB=$RANLIB
6063   # Extract the first word of "ranlib", so it can be a program name with args.
6064 set dummy ranlib; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6068   $as_echo_n "(cached) " >&6
6069 else
6070   if test -n "$ac_ct_RANLIB"; then
6071   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078     for ac_exec_ext in '' $ac_executable_extensions; do
6079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080     ac_cv_prog_ac_ct_RANLIB="ranlib"
6081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082     break 2
6083   fi
6084 done
6085   done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6091 if test -n "$ac_ct_RANLIB"; then
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6093 $as_echo "$ac_ct_RANLIB" >&6; }
6094 else
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099   if test "x$ac_ct_RANLIB" = x; then
6100     RANLIB=":"
6101   else
6102     case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108     RANLIB=$ac_ct_RANLIB
6109   fi
6110 else
6111   RANLIB="$ac_cv_prog_RANLIB"
6112 fi
6113
6114 test -z "$RANLIB" && RANLIB=:
6115
6116
6117
6118
6119
6120
6121 # Determine commands to create old-style static archives.
6122 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6123 old_postinstall_cmds='chmod 644 $oldlib'
6124 old_postuninstall_cmds=
6125
6126 if test -n "$RANLIB"; then
6127   case $host_os in
6128   openbsd*)
6129     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6130     ;;
6131   *)
6132     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6133     ;;
6134   esac
6135   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6136 fi
6137
6138 case $host_os in
6139   darwin*)
6140     lock_old_archive_extraction=yes ;;
6141   *)
6142     lock_old_archive_extraction=no ;;
6143 esac
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 # If no C compiler was specified, use CC.
6184 LTCC=${LTCC-"$CC"}
6185
6186 # If no C compiler flags were specified, use CFLAGS.
6187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6188
6189 # Allow CC to be a program name with arguments.
6190 compiler=$CC
6191
6192
6193 # Check for command to grab the raw symbol name followed by C symbol from nm.
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6195 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6196 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199
6200 # These are sane defaults that work on at least a few old systems.
6201 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6202
6203 # Character class describing NM global symbol codes.
6204 symcode='[BCDEGRST]'
6205
6206 # Regexp to match symbols that can be accessed directly from C.
6207 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6208
6209 # Define system-specific variables.
6210 case $host_os in
6211 aix*)
6212   symcode='[BCDT]'
6213   ;;
6214 cygwin* | mingw* | pw32* | cegcc*)
6215   symcode='[ABCDGISTW]'
6216   ;;
6217 hpux*)
6218   if test "$host_cpu" = ia64; then
6219     symcode='[ABCDEGRST]'
6220   fi
6221   ;;
6222 irix* | nonstopux*)
6223   symcode='[BCDEGRST]'
6224   ;;
6225 osf*)
6226   symcode='[BCDEGQRST]'
6227   ;;
6228 solaris*)
6229   symcode='[BDRT]'
6230   ;;
6231 sco3.2v5*)
6232   symcode='[DT]'
6233   ;;
6234 sysv4.2uw2*)
6235   symcode='[DT]'
6236   ;;
6237 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6238   symcode='[ABDT]'
6239   ;;
6240 sysv4)
6241   symcode='[DFNSTU]'
6242   ;;
6243 esac
6244
6245 # If we're using GNU nm, then use its standard symbol codes.
6246 case `$NM -V 2>&1` in
6247 *GNU* | *'with BFD'*)
6248   symcode='[ABCDGIRSTW]' ;;
6249 esac
6250
6251 # Transform an extracted symbol line into a proper C declaration.
6252 # Some systems (esp. on ia64) link data and code symbols differently,
6253 # so use this general approach.
6254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6255
6256 # Transform an extracted symbol line into symbol name and symbol address
6257 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6259
6260 # Handle CRLF in mingw tool chain
6261 opt_cr=
6262 case $build_os in
6263 mingw*)
6264   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6265   ;;
6266 esac
6267
6268 # Try without a prefix underscore, then with it.
6269 for ac_symprfx in "" "_"; do
6270
6271   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6272   symxfrm="\\1 $ac_symprfx\\2 \\2"
6273
6274   # Write the raw and C identifiers.
6275   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6276     # Fake it for dumpbin and say T for any non-static function
6277     # and D for any global variable.
6278     # Also find C++ and __fastcall symbols from MSVC++,
6279     # which start with @ or ?.
6280     lt_cv_sys_global_symbol_pipe="$AWK '"\
6281 "     {last_section=section; section=\$ 3};"\
6282 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6283 "     \$ 0!~/External *\|/{next};"\
6284 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6285 "     {if(hide[section]) next};"\
6286 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6287 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6288 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6289 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6290 "     ' prfx=^$ac_symprfx"
6291   else
6292     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6293   fi
6294
6295   # Check to see that the pipe works correctly.
6296   pipe_works=no
6297
6298   rm -f conftest*
6299   cat > conftest.$ac_ext <<_LT_EOF
6300 #ifdef __cplusplus
6301 extern "C" {
6302 #endif
6303 char nm_test_var;
6304 void nm_test_func(void);
6305 void nm_test_func(void){}
6306 #ifdef __cplusplus
6307 }
6308 #endif
6309 int main(){nm_test_var='a';nm_test_func();return(0);}
6310 _LT_EOF
6311
6312   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313   (eval $ac_compile) 2>&5
6314   ac_status=$?
6315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316   test $ac_status = 0; }; then
6317     # Now try to grab the symbols.
6318     nlist=conftest.nm
6319     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6320   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6321   ac_status=$?
6322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323   test $ac_status = 0; } && test -s "$nlist"; then
6324       # Try sorting and uniquifying the output.
6325       if sort "$nlist" | uniq > "$nlist"T; then
6326         mv -f "$nlist"T "$nlist"
6327       else
6328         rm -f "$nlist"T
6329       fi
6330
6331       # Make sure that we snagged all the symbols we need.
6332       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6333         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6334           cat <<_LT_EOF > conftest.$ac_ext
6335 #ifdef __cplusplus
6336 extern "C" {
6337 #endif
6338
6339 _LT_EOF
6340           # Now generate the symbol file.
6341           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6342
6343           cat <<_LT_EOF >> conftest.$ac_ext
6344
6345 /* The mapping between symbol names and symbols.  */
6346 const struct {
6347   const char *name;
6348   void       *address;
6349 }
6350 lt__PROGRAM__LTX_preloaded_symbols[] =
6351 {
6352   { "@PROGRAM@", (void *) 0 },
6353 _LT_EOF
6354           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6355           cat <<\_LT_EOF >> conftest.$ac_ext
6356   {0, (void *) 0}
6357 };
6358
6359 /* This works around a problem in FreeBSD linker */
6360 #ifdef FREEBSD_WORKAROUND
6361 static const void *lt_preloaded_setup() {
6362   return lt__PROGRAM__LTX_preloaded_symbols;
6363 }
6364 #endif
6365
6366 #ifdef __cplusplus
6367 }
6368 #endif
6369 _LT_EOF
6370           # Now try linking the two files.
6371           mv conftest.$ac_objext conftstm.$ac_objext
6372           lt_save_LIBS="$LIBS"
6373           lt_save_CFLAGS="$CFLAGS"
6374           LIBS="conftstm.$ac_objext"
6375           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6376           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6377   (eval $ac_link) 2>&5
6378   ac_status=$?
6379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6381             pipe_works=yes
6382           fi
6383           LIBS="$lt_save_LIBS"
6384           CFLAGS="$lt_save_CFLAGS"
6385         else
6386           echo "cannot find nm_test_func in $nlist" >&5
6387         fi
6388       else
6389         echo "cannot find nm_test_var in $nlist" >&5
6390       fi
6391     else
6392       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6393     fi
6394   else
6395     echo "$progname: failed program was:" >&5
6396     cat conftest.$ac_ext >&5
6397   fi
6398   rm -rf conftest* conftst*
6399
6400   # Do not use the global_symbol_pipe unless it works.
6401   if test "$pipe_works" = yes; then
6402     break
6403   else
6404     lt_cv_sys_global_symbol_pipe=
6405   fi
6406 done
6407
6408 fi
6409
6410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6411   lt_cv_sys_global_symbol_to_cdecl=
6412 fi
6413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6415 $as_echo "failed" >&6; }
6416 else
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6418 $as_echo "ok" >&6; }
6419 fi
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then :
6444   enableval=$enable_libtool_lock;
6445 fi
6446
6447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6448
6449 # Some flags need to be propagated to the compiler or linker for good
6450 # libtool support.
6451 case $host in
6452 ia64-*-hpux*)
6453   # Find out which ABI we are using.
6454   echo 'int i;' > conftest.$ac_ext
6455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6456   (eval $ac_compile) 2>&5
6457   ac_status=$?
6458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459   test $ac_status = 0; }; then
6460     case `/usr/bin/file conftest.$ac_objext` in
6461       *ELF-32*)
6462         HPUX_IA64_MODE="32"
6463         ;;
6464       *ELF-64*)
6465         HPUX_IA64_MODE="64"
6466         ;;
6467     esac
6468   fi
6469   rm -rf conftest*
6470   ;;
6471 *-*-irix6*)
6472   # Find out which ABI we are using.
6473   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6474   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475   (eval $ac_compile) 2>&5
6476   ac_status=$?
6477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478   test $ac_status = 0; }; then
6479     if test "$lt_cv_prog_gnu_ld" = yes; then
6480       case `/usr/bin/file conftest.$ac_objext` in
6481         *32-bit*)
6482           LD="${LD-ld} -melf32bsmip"
6483           ;;
6484         *N32*)
6485           LD="${LD-ld} -melf32bmipn32"
6486           ;;
6487         *64-bit*)
6488           LD="${LD-ld} -melf64bmip"
6489         ;;
6490       esac
6491     else
6492       case `/usr/bin/file conftest.$ac_objext` in
6493         *32-bit*)
6494           LD="${LD-ld} -32"
6495           ;;
6496         *N32*)
6497           LD="${LD-ld} -n32"
6498           ;;
6499         *64-bit*)
6500           LD="${LD-ld} -64"
6501           ;;
6502       esac
6503     fi
6504   fi
6505   rm -rf conftest*
6506   ;;
6507
6508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6510   # Find out which ABI we are using.
6511   echo 'int i;' > conftest.$ac_ext
6512   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513   (eval $ac_compile) 2>&5
6514   ac_status=$?
6515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516   test $ac_status = 0; }; then
6517     case `/usr/bin/file conftest.o` in
6518       *32-bit*)
6519         case $host in
6520           x86_64-*kfreebsd*-gnu)
6521             LD="${LD-ld} -m elf_i386_fbsd"
6522             ;;
6523           x86_64-*linux*)
6524             LD="${LD-ld} -m elf_i386"
6525             ;;
6526           ppc64-*linux*|powerpc64-*linux*)
6527             LD="${LD-ld} -m elf32ppclinux"
6528             ;;
6529           s390x-*linux*)
6530             LD="${LD-ld} -m elf_s390"
6531             ;;
6532           sparc64-*linux*)
6533             LD="${LD-ld} -m elf32_sparc"
6534             ;;
6535         esac
6536         ;;
6537       *64-bit*)
6538         case $host in
6539           x86_64-*kfreebsd*-gnu)
6540             LD="${LD-ld} -m elf_x86_64_fbsd"
6541             ;;
6542           x86_64-*linux*)
6543             LD="${LD-ld} -m elf_x86_64"
6544             ;;
6545           ppc*-*linux*|powerpc*-*linux*)
6546             LD="${LD-ld} -m elf64ppc"
6547             ;;
6548           s390*-*linux*|s390*-*tpf*)
6549             LD="${LD-ld} -m elf64_s390"
6550             ;;
6551           sparc*-*linux*)
6552             LD="${LD-ld} -m elf64_sparc"
6553             ;;
6554         esac
6555         ;;
6556     esac
6557   fi
6558   rm -rf conftest*
6559   ;;
6560
6561 *-*-sco3.2v5*)
6562   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6563   SAVE_CFLAGS="$CFLAGS"
6564   CFLAGS="$CFLAGS -belf"
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6566 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6567 if ${lt_cv_cc_needs_belf+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   ac_ext=c
6571 ac_cpp='$CPP $CPPFLAGS'
6572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6575
6576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h.  */
6578
6579 int
6580 main ()
6581 {
6582
6583   ;
6584   return 0;
6585 }
6586 _ACEOF
6587 if ac_fn_c_try_link "$LINENO"; then :
6588   lt_cv_cc_needs_belf=yes
6589 else
6590   lt_cv_cc_needs_belf=no
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext \
6593     conftest$ac_exeext conftest.$ac_ext
6594      ac_ext=c
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6602 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6603   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6604     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6605     CFLAGS="$SAVE_CFLAGS"
6606   fi
6607   ;;
6608 sparc*-*solaris*)
6609   # Find out which ABI we are using.
6610   echo 'int i;' > conftest.$ac_ext
6611   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612   (eval $ac_compile) 2>&5
6613   ac_status=$?
6614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615   test $ac_status = 0; }; then
6616     case `/usr/bin/file conftest.o` in
6617     *64-bit*)
6618       case $lt_cv_prog_gnu_ld in
6619       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6620       *)
6621         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6622           LD="${LD-ld} -64"
6623         fi
6624         ;;
6625       esac
6626       ;;
6627     esac
6628   fi
6629   rm -rf conftest*
6630   ;;
6631 esac
6632
6633 need_locks="$enable_libtool_lock"
6634
6635
6636   case $host_os in
6637     rhapsody* | darwin*)
6638     if test -n "$ac_tool_prefix"; then
6639   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$DSYMUTIL"; then
6647   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654     for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661   done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6667 if test -n "$DSYMUTIL"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6669 $as_echo "$DSYMUTIL" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_DSYMUTIL"; then
6678   ac_ct_DSYMUTIL=$DSYMUTIL
6679   # Extract the first word of "dsymutil", so it can be a program name with args.
6680 set dummy dsymutil; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   if test -n "$ac_ct_DSYMUTIL"; then
6687   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694     for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701   done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715   if test "x$ac_ct_DSYMUTIL" = x; then
6716     DSYMUTIL=":"
6717   else
6718     case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6723 esac
6724     DSYMUTIL=$ac_ct_DSYMUTIL
6725   fi
6726 else
6727   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6728 fi
6729
6730     if test -n "$ac_tool_prefix"; then
6731   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_NMEDIT+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   if test -n "$NMEDIT"; then
6739   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746     for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753   done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 NMEDIT=$ac_cv_prog_NMEDIT
6759 if test -n "$NMEDIT"; then
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6761 $as_echo "$NMEDIT" >&6; }
6762 else
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767
6768 fi
6769 if test -z "$ac_cv_prog_NMEDIT"; then
6770   ac_ct_NMEDIT=$NMEDIT
6771   # Extract the first word of "nmedit", so it can be a program name with args.
6772 set dummy nmedit; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   if test -n "$ac_ct_NMEDIT"; then
6779   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786     for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793   done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6799 if test -n "$ac_ct_NMEDIT"; then
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6801 $as_echo "$ac_ct_NMEDIT" >&6; }
6802 else
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6805 fi
6806
6807   if test "x$ac_ct_NMEDIT" = x; then
6808     NMEDIT=":"
6809   else
6810     case $cross_compiling:$ac_tool_warned in
6811 yes:)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6815 esac
6816     NMEDIT=$ac_ct_NMEDIT
6817   fi
6818 else
6819   NMEDIT="$ac_cv_prog_NMEDIT"
6820 fi
6821
6822     if test -n "$ac_tool_prefix"; then
6823   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_LIPO+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$LIPO"; then
6831   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 LIPO=$ac_cv_prog_LIPO
6851 if test -n "$LIPO"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6853 $as_echo "$LIPO" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_LIPO"; then
6862   ac_ct_LIPO=$LIPO
6863   # Extract the first word of "lipo", so it can be a program name with args.
6864 set dummy lipo; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   if test -n "$ac_ct_LIPO"; then
6871   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878     for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_LIPO="lipo"
6881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885   done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6891 if test -n "$ac_ct_LIPO"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6893 $as_echo "$ac_ct_LIPO" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899   if test "x$ac_ct_LIPO" = x; then
6900     LIPO=":"
6901   else
6902     case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908     LIPO=$ac_ct_LIPO
6909   fi
6910 else
6911   LIPO="$ac_cv_prog_LIPO"
6912 fi
6913
6914     if test -n "$ac_tool_prefix"; then
6915   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}otool; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_OTOOL+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   if test -n "$OTOOL"; then
6923   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930     for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937   done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 OTOOL=$ac_cv_prog_OTOOL
6943 if test -n "$OTOOL"; then
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6945 $as_echo "$OTOOL" >&6; }
6946 else
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_OTOOL"; then
6954   ac_ct_OTOOL=$OTOOL
6955   # Extract the first word of "otool", so it can be a program name with args.
6956 set dummy otool; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   if test -n "$ac_ct_OTOOL"; then
6963   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970     for ac_exec_ext in '' $ac_executable_extensions; do
6971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972     ac_cv_prog_ac_ct_OTOOL="otool"
6973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974     break 2
6975   fi
6976 done
6977   done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6983 if test -n "$ac_ct_OTOOL"; then
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6985 $as_echo "$ac_ct_OTOOL" >&6; }
6986 else
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991   if test "x$ac_ct_OTOOL" = x; then
6992     OTOOL=":"
6993   else
6994     case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000     OTOOL=$ac_ct_OTOOL
7001   fi
7002 else
7003   OTOOL="$ac_cv_prog_OTOOL"
7004 fi
7005
7006     if test -n "$ac_tool_prefix"; then
7007   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_OTOOL64+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   if test -n "$OTOOL64"; then
7015   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022     for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029   done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 OTOOL64=$ac_cv_prog_OTOOL64
7035 if test -n "$OTOOL64"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7037 $as_echo "$OTOOL64" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_OTOOL64"; then
7046   ac_ct_OTOOL64=$OTOOL64
7047   # Extract the first word of "otool64", so it can be a program name with args.
7048 set dummy otool64; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   if test -n "$ac_ct_OTOOL64"; then
7055   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062     for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_prog_ac_ct_OTOOL64="otool64"
7065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069   done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7075 if test -n "$ac_ct_OTOOL64"; then
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7077 $as_echo "$ac_ct_OTOOL64" >&6; }
7078 else
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083   if test "x$ac_ct_OTOOL64" = x; then
7084     OTOOL64=":"
7085   else
7086     case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7091 esac
7092     OTOOL64=$ac_ct_OTOOL64
7093   fi
7094 else
7095   OTOOL64="$ac_cv_prog_OTOOL64"
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7125 $as_echo_n "checking for -single_module linker flag... " >&6; }
7126 if ${lt_cv_apple_cc_single_mod+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   lt_cv_apple_cc_single_mod=no
7130       if test -z "${LT_MULTI_MODULE}"; then
7131         # By default we will add the -single_module flag. You can override
7132         # by either setting the environment variable LT_MULTI_MODULE
7133         # non-empty at configure time, or by adding -multi_module to the
7134         # link flags.
7135         rm -rf libconftest.dylib*
7136         echo "int foo(void){return 1;}" > conftest.c
7137         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7138 -dynamiclib -Wl,-single_module conftest.c" >&5
7139         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7141         _lt_result=$?
7142         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7143           lt_cv_apple_cc_single_mod=yes
7144         else
7145           cat conftest.err >&5
7146         fi
7147         rm -rf libconftest.dylib*
7148         rm -f conftest.*
7149       fi
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7154 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7155 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   lt_cv_ld_exported_symbols_list=no
7159       save_LDFLAGS=$LDFLAGS
7160       echo "_main" > conftest.sym
7161       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7162       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h.  */
7164
7165 int
7166 main ()
7167 {
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_link "$LINENO"; then :
7174   lt_cv_ld_exported_symbols_list=yes
7175 else
7176   lt_cv_ld_exported_symbols_list=no
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext \
7179     conftest$ac_exeext conftest.$ac_ext
7180         LDFLAGS="$save_LDFLAGS"
7181
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7184 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7186 $as_echo_n "checking for -force_load linker flag... " >&6; }
7187 if ${lt_cv_ld_force_load+:} false; then :
7188   $as_echo_n "(cached) " >&6
7189 else
7190   lt_cv_ld_force_load=no
7191       cat > conftest.c << _LT_EOF
7192 int forced_loaded() { return 2;}
7193 _LT_EOF
7194       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7195       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7196       echo "$AR cru libconftest.a conftest.o" >&5
7197       $AR cru libconftest.a conftest.o 2>&5
7198       echo "$RANLIB libconftest.a" >&5
7199       $RANLIB libconftest.a 2>&5
7200       cat > conftest.c << _LT_EOF
7201 int main() { return 0;}
7202 _LT_EOF
7203       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7204       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7205       _lt_result=$?
7206       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7207         lt_cv_ld_force_load=yes
7208       else
7209         cat conftest.err >&5
7210       fi
7211         rm -f conftest.err libconftest.a conftest conftest.c
7212         rm -rf conftest.dSYM
7213
7214 fi
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7216 $as_echo "$lt_cv_ld_force_load" >&6; }
7217     case $host_os in
7218     rhapsody* | darwin1.[012])
7219       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7220     darwin1.*)
7221       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222     darwin*) # darwin 5.x on
7223       # if running on 10.5 or later, the deployment target defaults
7224       # to the OS version, if on x86, and 10.4, the deployment
7225       # target defaults to 10.4. Don't you love it?
7226       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7227         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7228           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7229         10.[012]*)
7230           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7231         10.*)
7232           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7233       esac
7234     ;;
7235   esac
7236     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7237       _lt_dar_single_mod='$single_module'
7238     fi
7239     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7240       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7241     else
7242       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7243     fi
7244     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7245       _lt_dsymutil='~$DSYMUTIL $lib || :'
7246     else
7247       _lt_dsymutil=
7248     fi
7249     ;;
7250   esac
7251
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7254 $as_echo_n "checking for ANSI C header files... " >&6; }
7255 if ${ac_cv_header_stdc+:} false; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h.  */
7260 #include <stdlib.h>
7261 #include <stdarg.h>
7262 #include <string.h>
7263 #include <float.h>
7264
7265 int
7266 main ()
7267 {
7268
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274   ac_cv_header_stdc=yes
7275 else
7276   ac_cv_header_stdc=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279
7280 if test $ac_cv_header_stdc = yes; then
7281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h.  */
7284 #include <string.h>
7285
7286 _ACEOF
7287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288   $EGREP "memchr" >/dev/null 2>&1; then :
7289
7290 else
7291   ac_cv_header_stdc=no
7292 fi
7293 rm -f conftest*
7294
7295 fi
7296
7297 if test $ac_cv_header_stdc = yes; then
7298   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301 #include <stdlib.h>
7302
7303 _ACEOF
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305   $EGREP "free" >/dev/null 2>&1; then :
7306
7307 else
7308   ac_cv_header_stdc=no
7309 fi
7310 rm -f conftest*
7311
7312 fi
7313
7314 if test $ac_cv_header_stdc = yes; then
7315   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7316   if test "$cross_compiling" = yes; then :
7317   :
7318 else
7319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h.  */
7321 #include <ctype.h>
7322 #include <stdlib.h>
7323 #if ((' ' & 0x0FF) == 0x020)
7324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7326 #else
7327 # define ISLOWER(c) \
7328                    (('a' <= (c) && (c) <= 'i') \
7329                      || ('j' <= (c) && (c) <= 'r') \
7330                      || ('s' <= (c) && (c) <= 'z'))
7331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7332 #endif
7333
7334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7335 int
7336 main ()
7337 {
7338   int i;
7339   for (i = 0; i < 256; i++)
7340     if (XOR (islower (i), ISLOWER (i))
7341         || toupper (i) != TOUPPER (i))
7342       return 2;
7343   return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_run "$LINENO"; then :
7347
7348 else
7349   ac_cv_header_stdc=no
7350 fi
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352   conftest.$ac_objext conftest.beam conftest.$ac_ext
7353 fi
7354
7355 fi
7356 fi
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7358 $as_echo "$ac_cv_header_stdc" >&6; }
7359 if test $ac_cv_header_stdc = yes; then
7360
7361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7362
7363 fi
7364
7365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7367                   inttypes.h stdint.h unistd.h
7368 do :
7369   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7371 "
7372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7373   cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7376
7377 fi
7378
7379 done
7380
7381
7382 for ac_header in dlfcn.h
7383 do :
7384   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7385 "
7386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7387   cat >>confdefs.h <<_ACEOF
7388 #define HAVE_DLFCN_H 1
7389 _ACEOF
7390
7391 fi
7392
7393 done
7394
7395
7396
7397
7398
7399 # Set options
7400
7401
7402
7403         enable_dlopen=no
7404
7405
7406   enable_win32_dll=no
7407
7408
7409             # Check whether --enable-shared was given.
7410 if test "${enable_shared+set}" = set; then :
7411   enableval=$enable_shared; p=${PACKAGE-default}
7412     case $enableval in
7413     yes) enable_shared=yes ;;
7414     no) enable_shared=no ;;
7415     *)
7416       enable_shared=no
7417       # Look at the argument we got.  We use all the common list separators.
7418       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7419       for pkg in $enableval; do
7420         IFS="$lt_save_ifs"
7421         if test "X$pkg" = "X$p"; then
7422           enable_shared=yes
7423         fi
7424       done
7425       IFS="$lt_save_ifs"
7426       ;;
7427     esac
7428 else
7429   enable_shared=yes
7430 fi
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442 # Check whether --with-pic was given.
7443 if test "${with_pic+set}" = set; then :
7444   withval=$with_pic; pic_mode="$withval"
7445 else
7446   pic_mode=default
7447 fi
7448
7449
7450 test -z "$pic_mode" && pic_mode=default
7451
7452
7453
7454
7455
7456
7457
7458   # Check whether --enable-fast-install was given.
7459 if test "${enable_fast_install+set}" = set; then :
7460   enableval=$enable_fast_install; p=${PACKAGE-default}
7461     case $enableval in
7462     yes) enable_fast_install=yes ;;
7463     no) enable_fast_install=no ;;
7464     *)
7465       enable_fast_install=no
7466       # Look at the argument we got.  We use all the common list separators.
7467       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468       for pkg in $enableval; do
7469         IFS="$lt_save_ifs"
7470         if test "X$pkg" = "X$p"; then
7471           enable_fast_install=yes
7472         fi
7473       done
7474       IFS="$lt_save_ifs"
7475       ;;
7476     esac
7477 else
7478   enable_fast_install=yes
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 # This can be used to rebuild libtool when needed
7492 LIBTOOL_DEPS="$ltmain"
7493
7494 # Always use our own libtool.
7495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522 test -z "$LN_S" && LN_S="ln -s"
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 if test -n "${ZSH_VERSION+set}" ; then
7538    setopt NO_GLOB_SUBST
7539 fi
7540
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7542 $as_echo_n "checking for objdir... " >&6; }
7543 if ${lt_cv_objdir+:} false; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   rm -f .libs 2>/dev/null
7547 mkdir .libs 2>/dev/null
7548 if test -d .libs; then
7549   lt_cv_objdir=.libs
7550 else
7551   # MS-DOS does not allow filenames that begin with a dot.
7552   lt_cv_objdir=_libs
7553 fi
7554 rmdir .libs 2>/dev/null
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7557 $as_echo "$lt_cv_objdir" >&6; }
7558 objdir=$lt_cv_objdir
7559
7560
7561
7562
7563
7564 cat >>confdefs.h <<_ACEOF
7565 #define LT_OBJDIR "$lt_cv_objdir/"
7566 _ACEOF
7567
7568
7569
7570
7571 case $host_os in
7572 aix3*)
7573   # AIX sometimes has problems with the GCC collect2 program.  For some
7574   # reason, if we set the COLLECT_NAMES environment variable, the problems
7575   # vanish in a puff of smoke.
7576   if test "X${COLLECT_NAMES+set}" != Xset; then
7577     COLLECT_NAMES=
7578     export COLLECT_NAMES
7579   fi
7580   ;;
7581 esac
7582
7583 # Global variables:
7584 ofile=libtool
7585 can_build_shared=yes
7586
7587 # All known linkers require a `.a' archive for static linking (except MSVC,
7588 # which needs '.lib').
7589 libext=a
7590
7591 with_gnu_ld="$lt_cv_prog_gnu_ld"
7592
7593 old_CC="$CC"
7594 old_CFLAGS="$CFLAGS"
7595
7596 # Set sane defaults for various variables
7597 test -z "$CC" && CC=cc
7598 test -z "$LTCC" && LTCC=$CC
7599 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7600 test -z "$LD" && LD=ld
7601 test -z "$ac_objext" && ac_objext=o
7602
7603 for cc_temp in $compiler""; do
7604   case $cc_temp in
7605     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7606     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7607     \-*) ;;
7608     *) break;;
7609   esac
7610 done
7611 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7612
7613
7614 # Only perform the check for file, if the check method requires it
7615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7616 case $deplibs_check_method in
7617 file_magic*)
7618   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7620 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7621 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7622   $as_echo_n "(cached) " >&6
7623 else
7624   case $MAGIC_CMD in
7625 [\\/*] |  ?:[\\/]*)
7626   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7627   ;;
7628 *)
7629   lt_save_MAGIC_CMD="$MAGIC_CMD"
7630   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632   for ac_dir in $ac_dummy; do
7633     IFS="$lt_save_ifs"
7634     test -z "$ac_dir" && ac_dir=.
7635     if test -f $ac_dir/${ac_tool_prefix}file; then
7636       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7637       if test -n "$file_magic_test_file"; then
7638         case $deplibs_check_method in
7639         "file_magic "*)
7640           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643             $EGREP "$file_magic_regex" > /dev/null; then
7644             :
7645           else
7646             cat <<_LT_EOF 1>&2
7647
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such.  This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem.  Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7656
7657 _LT_EOF
7658           fi ;;
7659         esac
7660       fi
7661       break
7662     fi
7663   done
7664   IFS="$lt_save_ifs"
7665   MAGIC_CMD="$lt_save_MAGIC_CMD"
7666   ;;
7667 esac
7668 fi
7669
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679
7680
7681
7682
7683 if test -z "$lt_cv_path_MAGIC_CMD"; then
7684   if test -n "$ac_tool_prefix"; then
7685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7686 $as_echo_n "checking for file... " >&6; }
7687 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   case $MAGIC_CMD in
7691 [\\/*] |  ?:[\\/]*)
7692   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7693   ;;
7694 *)
7695   lt_save_MAGIC_CMD="$MAGIC_CMD"
7696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698   for ac_dir in $ac_dummy; do
7699     IFS="$lt_save_ifs"
7700     test -z "$ac_dir" && ac_dir=.
7701     if test -f $ac_dir/file; then
7702       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7703       if test -n "$file_magic_test_file"; then
7704         case $deplibs_check_method in
7705         "file_magic "*)
7706           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709             $EGREP "$file_magic_regex" > /dev/null; then
7710             :
7711           else
7712             cat <<_LT_EOF 1>&2
7713
7714 *** Warning: the command libtool uses to detect shared libraries,
7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
7716 *** The result is that libtool may fail to recognize shared libraries
7717 *** as such.  This will affect the creation of libtool libraries that
7718 *** depend on shared libraries, but programs linked with such libtool
7719 *** libraries will work regardless of this problem.  Nevertheless, you
7720 *** may want to report the problem to your system manager and/or to
7721 *** bug-libtool@gnu.org
7722
7723 _LT_EOF
7724           fi ;;
7725         esac
7726       fi
7727       break
7728     fi
7729   done
7730   IFS="$lt_save_ifs"
7731   MAGIC_CMD="$lt_save_MAGIC_CMD"
7732   ;;
7733 esac
7734 fi
7735
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737 if test -n "$MAGIC_CMD"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739 $as_echo "$MAGIC_CMD" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746   else
7747     MAGIC_CMD=:
7748   fi
7749 fi
7750
7751   fi
7752   ;;
7753 esac
7754
7755 # Use C for the default configuration in the libtool script
7756
7757 lt_save_CC="$CC"
7758 ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765 # Source file extension for C test sources.
7766 ac_ext=c
7767
7768 # Object file extension for compiled C test sources.
7769 objext=o
7770 objext=$objext
7771
7772 # Code to be used in simple compile tests
7773 lt_simple_compile_test_code="int some_variable = 0;"
7774
7775 # Code to be used in simple link tests
7776 lt_simple_link_test_code='int main(){return(0);}'
7777
7778
7779
7780
7781
7782
7783
7784 # If no C compiler was specified, use CC.
7785 LTCC=${LTCC-"$CC"}
7786
7787 # If no C compiler flags were specified, use CFLAGS.
7788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7789
7790 # Allow CC to be a program name with arguments.
7791 compiler=$CC
7792
7793 # Save the default compiler, since it gets overwritten when the other
7794 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7795 compiler_DEFAULT=$CC
7796
7797 # save warnings/boilerplate of simple test code
7798 ac_outfile=conftest.$ac_objext
7799 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801 _lt_compiler_boilerplate=`cat conftest.err`
7802 $RM conftest*
7803
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7807 _lt_linker_boilerplate=`cat conftest.err`
7808 $RM -r conftest*
7809
7810
7811 ## CAVEAT EMPTOR:
7812 ## There is no encapsulation within the following macros, do not change
7813 ## the running order or otherwise move them around unless you know exactly
7814 ## what you are doing...
7815 if test -n "$compiler"; then
7816
7817 lt_prog_compiler_no_builtin_flag=
7818
7819 if test "$GCC" = yes; then
7820   case $cc_basename in
7821   nvcc*)
7822     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7823   *)
7824     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7825   esac
7826
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7828 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7829 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   lt_cv_prog_compiler_rtti_exceptions=no
7833    ac_outfile=conftest.$ac_objext
7834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835    lt_compiler_flag="-fno-rtti -fno-exceptions"
7836    # Insert the option either (1) after the last *FLAGS variable, or
7837    # (2) before a word containing "conftest.", or (3) at the end.
7838    # Note that $ac_compile itself does not contain backslashes and begins
7839    # with a dollar sign (not a hyphen), so the echo should work correctly.
7840    # The option is referenced via a variable to avoid confusing sed.
7841    lt_compile=`echo "$ac_compile" | $SED \
7842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844    -e 's:$: $lt_compiler_flag:'`
7845    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7846    (eval "$lt_compile" 2>conftest.err)
7847    ac_status=$?
7848    cat conftest.err >&5
7849    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850    if (exit $ac_status) && test -s "$ac_outfile"; then
7851      # The compiler can only warn and ignore the option if not recognized
7852      # So say no if there are warnings other than the usual output.
7853      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7854      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856        lt_cv_prog_compiler_rtti_exceptions=yes
7857      fi
7858    fi
7859    $RM conftest*
7860
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7863 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7864
7865 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7866     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7867 else
7868     :
7869 fi
7870
7871 fi
7872
7873
7874
7875
7876
7877
7878   lt_prog_compiler_wl=
7879 lt_prog_compiler_pic=
7880 lt_prog_compiler_static=
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7884
7885   if test "$GCC" = yes; then
7886     lt_prog_compiler_wl='-Wl,'
7887     lt_prog_compiler_static='-static'
7888
7889     case $host_os in
7890       aix*)
7891       # All AIX code is PIC.
7892       if test "$host_cpu" = ia64; then
7893         # AIX 5 now supports IA64 processor
7894         lt_prog_compiler_static='-Bstatic'
7895       fi
7896       ;;
7897
7898     amigaos*)
7899       case $host_cpu in
7900       powerpc)
7901             # see comment about AmigaOS4 .so support
7902             lt_prog_compiler_pic='-fPIC'
7903         ;;
7904       m68k)
7905             # FIXME: we need at least 68020 code to build shared libraries, but
7906             # adding the `-m68020' flag to GCC prevents building anything better,
7907             # like `-m68040'.
7908             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7909         ;;
7910       esac
7911       ;;
7912
7913     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7914       # PIC is the default for these OSes.
7915       ;;
7916
7917     mingw* | cygwin* | pw32* | os2* | cegcc*)
7918       # This hack is so that the source file can tell whether it is being
7919       # built for inclusion in a dll (and should export symbols for example).
7920       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921       # (--disable-auto-import) libraries
7922       lt_prog_compiler_pic='-DDLL_EXPORT'
7923       ;;
7924
7925     darwin* | rhapsody*)
7926       # PIC is the default on this platform
7927       # Common symbols not allowed in MH_DYLIB files
7928       lt_prog_compiler_pic='-fno-common'
7929       ;;
7930
7931     haiku*)
7932       # PIC is the default for Haiku.
7933       # The "-static" flag exists, but is broken.
7934       lt_prog_compiler_static=
7935       ;;
7936
7937     hpux*)
7938       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7940       # sets the default TLS model and affects inlining.
7941       case $host_cpu in
7942       hppa*64*)
7943         # +Z the default
7944         ;;
7945       *)
7946         lt_prog_compiler_pic='-fPIC'
7947         ;;
7948       esac
7949       ;;
7950
7951     interix[3-9]*)
7952       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953       # Instead, we relocate shared libraries at runtime.
7954       ;;
7955
7956     msdosdjgpp*)
7957       # Just because we use GCC doesn't mean we suddenly get shared libraries
7958       # on systems that don't support them.
7959       lt_prog_compiler_can_build_shared=no
7960       enable_shared=no
7961       ;;
7962
7963     *nto* | *qnx*)
7964       # QNX uses GNU C++, but need to define -shared option too, otherwise
7965       # it will coredump.
7966       lt_prog_compiler_pic='-fPIC -shared'
7967       ;;
7968
7969     sysv4*MP*)
7970       if test -d /usr/nec; then
7971         lt_prog_compiler_pic=-Kconform_pic
7972       fi
7973       ;;
7974
7975     *)
7976       lt_prog_compiler_pic='-fPIC'
7977       ;;
7978     esac
7979
7980     case $cc_basename in
7981     nvcc*) # Cuda Compiler Driver 2.2
7982       lt_prog_compiler_wl='-Xlinker '
7983       lt_prog_compiler_pic='-Xcompiler -fPIC'
7984       ;;
7985     esac
7986   else
7987     # PORTME Check for flag to pass linker flags through the system compiler.
7988     case $host_os in
7989     aix*)
7990       lt_prog_compiler_wl='-Wl,'
7991       if test "$host_cpu" = ia64; then
7992         # AIX 5 now supports IA64 processor
7993         lt_prog_compiler_static='-Bstatic'
7994       else
7995         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7996       fi
7997       ;;
7998
7999     mingw* | cygwin* | pw32* | os2* | cegcc*)
8000       # This hack is so that the source file can tell whether it is being
8001       # built for inclusion in a dll (and should export symbols for example).
8002       lt_prog_compiler_pic='-DDLL_EXPORT'
8003       ;;
8004
8005     hpux9* | hpux10* | hpux11*)
8006       lt_prog_compiler_wl='-Wl,'
8007       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8008       # not for PA HP-UX.
8009       case $host_cpu in
8010       hppa*64*|ia64*)
8011         # +Z the default
8012         ;;
8013       *)
8014         lt_prog_compiler_pic='+Z'
8015         ;;
8016       esac
8017       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018       lt_prog_compiler_static='${wl}-a ${wl}archive'
8019       ;;
8020
8021     irix5* | irix6* | nonstopux*)
8022       lt_prog_compiler_wl='-Wl,'
8023       # PIC (with -KPIC) is the default.
8024       lt_prog_compiler_static='-non_shared'
8025       ;;
8026
8027     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8028       case $cc_basename in
8029       # old Intel for x86_64 which still supported -KPIC.
8030       ecc*)
8031         lt_prog_compiler_wl='-Wl,'
8032         lt_prog_compiler_pic='-KPIC'
8033         lt_prog_compiler_static='-static'
8034         ;;
8035       # icc used to be incompatible with GCC.
8036       # ICC 10 doesn't accept -KPIC any more.
8037       icc* | ifort*)
8038         lt_prog_compiler_wl='-Wl,'
8039         lt_prog_compiler_pic='-fPIC'
8040         lt_prog_compiler_static='-static'
8041         ;;
8042       # Lahey Fortran 8.1.
8043       lf95*)
8044         lt_prog_compiler_wl='-Wl,'
8045         lt_prog_compiler_pic='--shared'
8046         lt_prog_compiler_static='--static'
8047         ;;
8048       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8049         # Portland Group compilers (*not* the Pentium gcc compiler,
8050         # which looks to be a dead project)
8051         lt_prog_compiler_wl='-Wl,'
8052         lt_prog_compiler_pic='-fpic'
8053         lt_prog_compiler_static='-Bstatic'
8054         ;;
8055       ccc*)
8056         lt_prog_compiler_wl='-Wl,'
8057         # All Alpha code is PIC.
8058         lt_prog_compiler_static='-non_shared'
8059         ;;
8060       xl* | bgxl* | bgf* | mpixl*)
8061         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='-qpic'
8064         lt_prog_compiler_static='-qstaticlink'
8065         ;;
8066       *)
8067         case `$CC -V 2>&1 | sed 5q` in
8068         *Sun\ F* | *Sun*Fortran*)
8069           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8070           lt_prog_compiler_pic='-KPIC'
8071           lt_prog_compiler_static='-Bstatic'
8072           lt_prog_compiler_wl=''
8073           ;;
8074         *Sun\ C*)
8075           # Sun C 5.9
8076           lt_prog_compiler_pic='-KPIC'
8077           lt_prog_compiler_static='-Bstatic'
8078           lt_prog_compiler_wl='-Wl,'
8079           ;;
8080         esac
8081         ;;
8082       esac
8083       ;;
8084
8085     newsos6)
8086       lt_prog_compiler_pic='-KPIC'
8087       lt_prog_compiler_static='-Bstatic'
8088       ;;
8089
8090     *nto* | *qnx*)
8091       # QNX uses GNU C++, but need to define -shared option too, otherwise
8092       # it will coredump.
8093       lt_prog_compiler_pic='-fPIC -shared'
8094       ;;
8095
8096     osf3* | osf4* | osf5*)
8097       lt_prog_compiler_wl='-Wl,'
8098       # All OSF/1 code is PIC.
8099       lt_prog_compiler_static='-non_shared'
8100       ;;
8101
8102     rdos*)
8103       lt_prog_compiler_static='-non_shared'
8104       ;;
8105
8106     solaris*)
8107       lt_prog_compiler_pic='-KPIC'
8108       lt_prog_compiler_static='-Bstatic'
8109       case $cc_basename in
8110       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8111         lt_prog_compiler_wl='-Qoption ld ';;
8112       *)
8113         lt_prog_compiler_wl='-Wl,';;
8114       esac
8115       ;;
8116
8117     sunos4*)
8118       lt_prog_compiler_wl='-Qoption ld '
8119       lt_prog_compiler_pic='-PIC'
8120       lt_prog_compiler_static='-Bstatic'
8121       ;;
8122
8123     sysv4 | sysv4.2uw2* | sysv4.3*)
8124       lt_prog_compiler_wl='-Wl,'
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       ;;
8128
8129     sysv4*MP*)
8130       if test -d /usr/nec ;then
8131         lt_prog_compiler_pic='-Kconform_pic'
8132         lt_prog_compiler_static='-Bstatic'
8133       fi
8134       ;;
8135
8136     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137       lt_prog_compiler_wl='-Wl,'
8138       lt_prog_compiler_pic='-KPIC'
8139       lt_prog_compiler_static='-Bstatic'
8140       ;;
8141
8142     unicos*)
8143       lt_prog_compiler_wl='-Wl,'
8144       lt_prog_compiler_can_build_shared=no
8145       ;;
8146
8147     uts4*)
8148       lt_prog_compiler_pic='-pic'
8149       lt_prog_compiler_static='-Bstatic'
8150       ;;
8151
8152     *)
8153       lt_prog_compiler_can_build_shared=no
8154       ;;
8155     esac
8156   fi
8157
8158 case $host_os in
8159   # For platforms which do not support PIC, -DPIC is meaningless:
8160   *djgpp*)
8161     lt_prog_compiler_pic=
8162     ;;
8163   *)
8164     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8165     ;;
8166 esac
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8168 $as_echo "$lt_prog_compiler_pic" >&6; }
8169
8170
8171
8172
8173
8174
8175 #
8176 # Check to make sure the PIC flag actually works.
8177 #
8178 if test -n "$lt_prog_compiler_pic"; then
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   lt_cv_prog_compiler_pic_works=no
8185    ac_outfile=conftest.$ac_objext
8186    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188    # Insert the option either (1) after the last *FLAGS variable, or
8189    # (2) before a word containing "conftest.", or (3) at the end.
8190    # Note that $ac_compile itself does not contain backslashes and begins
8191    # with a dollar sign (not a hyphen), so the echo should work correctly.
8192    # The option is referenced via a variable to avoid confusing sed.
8193    lt_compile=`echo "$ac_compile" | $SED \
8194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196    -e 's:$: $lt_compiler_flag:'`
8197    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8198    (eval "$lt_compile" 2>conftest.err)
8199    ac_status=$?
8200    cat conftest.err >&5
8201    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202    if (exit $ac_status) && test -s "$ac_outfile"; then
8203      # The compiler can only warn and ignore the option if not recognized
8204      # So say no if there are warnings other than the usual output.
8205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8206      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208        lt_cv_prog_compiler_pic_works=yes
8209      fi
8210    fi
8211    $RM conftest*
8212
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8216
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218     case $lt_prog_compiler_pic in
8219      "" | " "*) ;;
8220      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8221      esac
8222 else
8223     lt_prog_compiler_pic=
8224      lt_prog_compiler_can_build_shared=no
8225 fi
8226
8227 fi
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the static flag actually works.
8236 #
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if ${lt_cv_prog_compiler_static_works+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   lt_cv_prog_compiler_static_works=no
8244    save_LDFLAGS="$LDFLAGS"
8245    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248      # The linker can only warn and ignore the option if not recognized
8249      # So say no if there are warnings
8250      if test -s conftest.err; then
8251        # Append any errors to the config.log.
8252        cat conftest.err 1>&5
8253        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8254        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255        if diff conftest.exp conftest.er2 >/dev/null; then
8256          lt_cv_prog_compiler_static_works=yes
8257        fi
8258      else
8259        lt_cv_prog_compiler_static_works=yes
8260      fi
8261    fi
8262    $RM -r conftest*
8263    LDFLAGS="$save_LDFLAGS"
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8268
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8270     :
8271 else
8272     lt_prog_compiler_static=
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if ${lt_cv_prog_compiler_c_o+:} false; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   lt_cv_prog_compiler_c_o=no
8287    $RM -r conftest 2>/dev/null
8288    mkdir conftest
8289    cd conftest
8290    mkdir out
8291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8292
8293    lt_compiler_flag="-o out/conftest2.$ac_objext"
8294    # Insert the option either (1) after the last *FLAGS variable, or
8295    # (2) before a word containing "conftest.", or (3) at the end.
8296    # Note that $ac_compile itself does not contain backslashes and begins
8297    # with a dollar sign (not a hyphen), so the echo should work correctly.
8298    lt_compile=`echo "$ac_compile" | $SED \
8299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301    -e 's:$: $lt_compiler_flag:'`
8302    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8303    (eval "$lt_compile" 2>out/conftest.err)
8304    ac_status=$?
8305    cat out/conftest.err >&5
8306    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8308    then
8309      # The compiler can only warn and ignore the option if not recognized
8310      # So say no if there are warnings
8311      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8312      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314        lt_cv_prog_compiler_c_o=yes
8315      fi
8316    fi
8317    chmod u+w . 2>&5
8318    $RM conftest*
8319    # SGI C++ compiler will create directory out/ii_files/ for
8320    # template instantiation
8321    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322    $RM out/* && rmdir out
8323    cd ..
8324    $RM -r conftest
8325    $RM conftest*
8326
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8330
8331
8332
8333
8334
8335
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if ${lt_cv_prog_compiler_c_o+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   lt_cv_prog_compiler_c_o=no
8342    $RM -r conftest 2>/dev/null
8343    mkdir conftest
8344    cd conftest
8345    mkdir out
8346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347
8348    lt_compiler_flag="-o out/conftest2.$ac_objext"
8349    # Insert the option either (1) after the last *FLAGS variable, or
8350    # (2) before a word containing "conftest.", or (3) at the end.
8351    # Note that $ac_compile itself does not contain backslashes and begins
8352    # with a dollar sign (not a hyphen), so the echo should work correctly.
8353    lt_compile=`echo "$ac_compile" | $SED \
8354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356    -e 's:$: $lt_compiler_flag:'`
8357    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8358    (eval "$lt_compile" 2>out/conftest.err)
8359    ac_status=$?
8360    cat out/conftest.err >&5
8361    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8363    then
8364      # The compiler can only warn and ignore the option if not recognized
8365      # So say no if there are warnings
8366      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8367      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369        lt_cv_prog_compiler_c_o=yes
8370      fi
8371    fi
8372    chmod u+w . 2>&5
8373    $RM conftest*
8374    # SGI C++ compiler will create directory out/ii_files/ for
8375    # template instantiation
8376    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377    $RM out/* && rmdir out
8378    cd ..
8379    $RM -r conftest
8380    $RM conftest*
8381
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8385
8386
8387
8388
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391   # do not overwrite the value of need_locks provided by the user
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8394   hard_links=yes
8395   $RM conftest*
8396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8397   touch conftest.a
8398   ln conftest.a conftest.b 2>&5 || hard_links=no
8399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402   if test "$hard_links" = no; then
8403     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8405     need_locks=warn
8406   fi
8407 else
8408   need_locks=no
8409 fi
8410
8411
8412
8413
8414
8415
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8418
8419   runpath_var=
8420   allow_undefined_flag=
8421   always_export_symbols=no
8422   archive_cmds=
8423   archive_expsym_cmds=
8424   compiler_needs_object=no
8425   enable_shared_with_static_runtimes=no
8426   export_dynamic_flag_spec=
8427   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428   hardcode_automatic=no
8429   hardcode_direct=no
8430   hardcode_direct_absolute=no
8431   hardcode_libdir_flag_spec=
8432   hardcode_libdir_flag_spec_ld=
8433   hardcode_libdir_separator=
8434   hardcode_minus_L=no
8435   hardcode_shlibpath_var=unsupported
8436   inherit_rpath=no
8437   link_all_deplibs=unknown
8438   module_cmds=
8439   module_expsym_cmds=
8440   old_archive_from_new_cmds=
8441   old_archive_from_expsyms_cmds=
8442   thread_safe_flag_spec=
8443   whole_archive_flag_spec=
8444   # include_expsyms should be a list of space-separated symbols to be *always*
8445   # included in the symbol list
8446   include_expsyms=
8447   # exclude_expsyms can be an extended regexp of symbols to exclude
8448   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450   # as well as any symbol that contains `d'.
8451   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453   # platforms (ab)use it in PIC code, but their linkers get confused if
8454   # the symbol is explicitly referenced.  Since portable code cannot
8455   # rely on this symbol name, it's probably fine to never include it in
8456   # preloaded symbol tables.
8457   # Exclude shared library initialization/finalization symbols.
8458   extract_expsyms_cmds=
8459
8460   case $host_os in
8461   cygwin* | mingw* | pw32* | cegcc*)
8462     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463     # When not using gcc, we currently assume that we are using
8464     # Microsoft Visual C++.
8465     if test "$GCC" != yes; then
8466       with_gnu_ld=no
8467     fi
8468     ;;
8469   interix*)
8470     # we just hope/assume this is gcc and not c89 (= MSVC++)
8471     with_gnu_ld=yes
8472     ;;
8473   openbsd*)
8474     with_gnu_ld=no
8475     ;;
8476   esac
8477
8478   ld_shlibs=yes
8479
8480   # On some targets, GNU ld is compatible enough with the native linker
8481   # that we're better off using the native interface for both.
8482   lt_use_gnu_ld_interface=no
8483   if test "$with_gnu_ld" = yes; then
8484     case $host_os in
8485       aix*)
8486         # The AIX port of GNU ld has always aspired to compatibility
8487         # with the native linker.  However, as the warning in the GNU ld
8488         # block says, versions before 2.19.5* couldn't really create working
8489         # shared libraries, regardless of the interface used.
8490         case `$LD -v 2>&1` in
8491           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8492           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8493           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8494           *)
8495             lt_use_gnu_ld_interface=yes
8496             ;;
8497         esac
8498         ;;
8499       *)
8500         lt_use_gnu_ld_interface=yes
8501         ;;
8502     esac
8503   fi
8504
8505   if test "$lt_use_gnu_ld_interface" = yes; then
8506     # If archive_cmds runs LD, not CC, wlarc should be empty
8507     wlarc='${wl}'
8508
8509     # Set some defaults for GNU ld with shared library support. These
8510     # are reset later if shared libraries are not supported. Putting them
8511     # here allows them to be overridden if necessary.
8512     runpath_var=LD_RUN_PATH
8513     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514     export_dynamic_flag_spec='${wl}--export-dynamic'
8515     # ancient GNU ld didn't support --whole-archive et. al.
8516     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8517       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8518     else
8519       whole_archive_flag_spec=
8520     fi
8521     supports_anon_versioning=no
8522     case `$LD -v 2>&1` in
8523       *GNU\ gold*) supports_anon_versioning=yes ;;
8524       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527       *\ 2.11.*) ;; # other 2.11 versions
8528       *) supports_anon_versioning=yes ;;
8529     esac
8530
8531     # See if GNU ld supports shared libraries.
8532     case $host_os in
8533     aix[3-9]*)
8534       # On AIX/PPC, the GNU linker is very broken
8535       if test "$host_cpu" != ia64; then
8536         ld_shlibs=no
8537         cat <<_LT_EOF 1>&2
8538
8539 *** Warning: the GNU linker, at least up to release 2.19, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support.  If you
8542 *** really care for shared libraries, you may want to install binutils
8543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8544 *** You will then need to restart the configuration process.
8545
8546 _LT_EOF
8547       fi
8548       ;;
8549
8550     amigaos*)
8551       case $host_cpu in
8552       powerpc)
8553             # see comment about AmigaOS4 .so support
8554             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555             archive_expsym_cmds=''
8556         ;;
8557       m68k)
8558             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)'
8559             hardcode_libdir_flag_spec='-L$libdir'
8560             hardcode_minus_L=yes
8561         ;;
8562       esac
8563       ;;
8564
8565     beos*)
8566       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567         allow_undefined_flag=unsupported
8568         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8569         # support --undefined.  This deserves some investigation.  FIXME
8570         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571       else
8572         ld_shlibs=no
8573       fi
8574       ;;
8575
8576     cygwin* | mingw* | pw32* | cegcc*)
8577       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8578       # as there is no search path for DLLs.
8579       hardcode_libdir_flag_spec='-L$libdir'
8580       export_dynamic_flag_spec='${wl}--export-all-symbols'
8581       allow_undefined_flag=unsupported
8582       always_export_symbols=no
8583       enable_shared_with_static_runtimes=yes
8584       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8585
8586       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8587         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8588         # If the export-symbols file already is a .def file (1st line
8589         # is EXPORTS), use it as is; otherwise, prepend...
8590         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8591           cp $export_symbols $output_objdir/$soname.def;
8592         else
8593           echo EXPORTS > $output_objdir/$soname.def;
8594           cat $export_symbols >> $output_objdir/$soname.def;
8595         fi~
8596         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8597       else
8598         ld_shlibs=no
8599       fi
8600       ;;
8601
8602     haiku*)
8603       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604       link_all_deplibs=yes
8605       ;;
8606
8607     interix[3-9]*)
8608       hardcode_direct=no
8609       hardcode_shlibpath_var=no
8610       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8611       export_dynamic_flag_spec='${wl}-E'
8612       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8613       # Instead, shared libraries are loaded at an image base (0x10000000 by
8614       # default) and relocated if they conflict, which is a slow very memory
8615       # consuming and fragmenting process.  To avoid this, we pick a random,
8616       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8617       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8618       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8619       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'
8620       ;;
8621
8622     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8623       tmp_diet=no
8624       if test "$host_os" = linux-dietlibc; then
8625         case $cc_basename in
8626           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8627         esac
8628       fi
8629       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8630          && test "$tmp_diet" = no
8631       then
8632         tmp_addflag=
8633         tmp_sharedflag='-shared'
8634         case $cc_basename,$host_cpu in
8635         pgcc*)                          # Portland Group C compiler
8636           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'
8637           tmp_addflag=' $pic_flag'
8638           ;;
8639         pgf77* | pgf90* | pgf95* | pgfortran*)
8640                                         # Portland Group f77 and f90 compilers
8641           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'
8642           tmp_addflag=' $pic_flag -Mnomain' ;;
8643         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8644           tmp_addflag=' -i_dynamic' ;;
8645         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8646           tmp_addflag=' -i_dynamic -nofor_main' ;;
8647         ifc* | ifort*)                  # Intel Fortran compiler
8648           tmp_addflag=' -nofor_main' ;;
8649         lf95*)                          # Lahey Fortran 8.1
8650           whole_archive_flag_spec=
8651           tmp_sharedflag='--shared' ;;
8652         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8653           tmp_sharedflag='-qmkshrobj'
8654           tmp_addflag= ;;
8655         nvcc*)  # Cuda Compiler Driver 2.2
8656           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'
8657           compiler_needs_object=yes
8658           ;;
8659         esac
8660         case `$CC -V 2>&1 | sed 5q` in
8661         *Sun\ C*)                       # Sun C 5.9
8662           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'
8663           compiler_needs_object=yes
8664           tmp_sharedflag='-G' ;;
8665         *Sun\ F*)                       # Sun Fortran 8.3
8666           tmp_sharedflag='-G' ;;
8667         esac
8668         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669
8670         if test "x$supports_anon_versioning" = xyes; then
8671           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8672             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673             echo "local: *; };" >> $output_objdir/$libname.ver~
8674             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8675         fi
8676
8677         case $cc_basename in
8678         xlf* | bgf* | bgxlf* | mpixlf*)
8679           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8681           hardcode_libdir_flag_spec=
8682           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8683           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8684           if test "x$supports_anon_versioning" = xyes; then
8685             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687               echo "local: *; };" >> $output_objdir/$libname.ver~
8688               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8689           fi
8690           ;;
8691         esac
8692       else
8693         ld_shlibs=no
8694       fi
8695       ;;
8696
8697     netbsd*)
8698       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8700         wlarc=
8701       else
8702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8704       fi
8705       ;;
8706
8707     solaris*)
8708       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8709         ld_shlibs=no
8710         cat <<_LT_EOF 1>&2
8711
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems.  Therefore, libtool
8714 *** is disabling shared libraries support.  We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer.  Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8718
8719 _LT_EOF
8720       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       else
8724         ld_shlibs=no
8725       fi
8726       ;;
8727
8728     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729       case `$LD -v 2>&1` in
8730         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8731         ld_shlibs=no
8732         cat <<_LT_EOF 1>&2
8733
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8736 *** is disabling shared libraries support.  We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8740
8741 _LT_EOF
8742         ;;
8743         *)
8744           # For security reasons, it is highly recommended that you always
8745           # use absolute paths for naming shared libraries, and exclude the
8746           # DT_RUNPATH tag from executables and libraries.  But doing so
8747           # requires that you compile everything twice, which is a pain.
8748           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752           else
8753             ld_shlibs=no
8754           fi
8755         ;;
8756       esac
8757       ;;
8758
8759     sunos4*)
8760       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8761       wlarc=
8762       hardcode_direct=yes
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     *)
8767       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770       else
8771         ld_shlibs=no
8772       fi
8773       ;;
8774     esac
8775
8776     if test "$ld_shlibs" = no; then
8777       runpath_var=
8778       hardcode_libdir_flag_spec=
8779       export_dynamic_flag_spec=
8780       whole_archive_flag_spec=
8781     fi
8782   else
8783     # PORTME fill in a description of your system's linker (not GNU ld)
8784     case $host_os in
8785     aix3*)
8786       allow_undefined_flag=unsupported
8787       always_export_symbols=yes
8788       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'
8789       # Note: this linker hardcodes the directories in LIBPATH if there
8790       # are no directories specified by -L.
8791       hardcode_minus_L=yes
8792       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793         # Neither direct hardcoding nor static linking is supported with a
8794         # broken collect2.
8795         hardcode_direct=unsupported
8796       fi
8797       ;;
8798
8799     aix[4-9]*)
8800       if test "$host_cpu" = ia64; then
8801         # On IA64, the linker does run time linking by default, so we don't
8802         # have to do anything special.
8803         aix_use_runtimelinking=no
8804         exp_sym_flag='-Bexport'
8805         no_entry_flag=""
8806       else
8807         # If we're using GNU nm, then we don't want the "-C" option.
8808         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809         # Also, AIX nm treats weak defined symbols like other global
8810         # defined symbols, whereas GNU nm marks them as "W".
8811         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8812           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8813         else
8814           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8815         fi
8816         aix_use_runtimelinking=no
8817
8818         # Test if we are trying to use run time linking or normal
8819         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820         # need to do runtime linking.
8821         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8822           for ld_flag in $LDFLAGS; do
8823           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824             aix_use_runtimelinking=yes
8825             break
8826           fi
8827           done
8828           ;;
8829         esac
8830
8831         exp_sym_flag='-bexport'
8832         no_entry_flag='-bnoentry'
8833       fi
8834
8835       # When large executables or shared objects are built, AIX ld can
8836       # have problems creating the table of contents.  If linking a library
8837       # or program results in "error TOC overflow" add -mminimal-toc to
8838       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8839       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8840
8841       archive_cmds=''
8842       hardcode_direct=yes
8843       hardcode_direct_absolute=yes
8844       hardcode_libdir_separator=':'
8845       link_all_deplibs=yes
8846       file_list_spec='${wl}-f,'
8847
8848       if test "$GCC" = yes; then
8849         case $host_os in aix4.[012]|aix4.[012].*)
8850         # We only want to do this on AIX 4.2 and lower, the check
8851         # below for broken collect2 doesn't work under 4.3+
8852           collect2name=`${CC} -print-prog-name=collect2`
8853           if test -f "$collect2name" &&
8854            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8855           then
8856           # We have reworked collect2
8857           :
8858           else
8859           # We have old collect2
8860           hardcode_direct=unsupported
8861           # It fails to find uninstalled libraries when the uninstalled
8862           # path is not listed in the libpath.  Setting hardcode_minus_L
8863           # to unsupported forces relinking
8864           hardcode_minus_L=yes
8865           hardcode_libdir_flag_spec='-L$libdir'
8866           hardcode_libdir_separator=
8867           fi
8868           ;;
8869         esac
8870         shared_flag='-shared'
8871         if test "$aix_use_runtimelinking" = yes; then
8872           shared_flag="$shared_flag "'${wl}-G'
8873         fi
8874       else
8875         # not using gcc
8876         if test "$host_cpu" = ia64; then
8877         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878         # chokes on -Wl,-G. The following line is correct:
8879           shared_flag='-G'
8880         else
8881           if test "$aix_use_runtimelinking" = yes; then
8882             shared_flag='${wl}-G'
8883           else
8884             shared_flag='${wl}-bM:SRE'
8885           fi
8886         fi
8887       fi
8888
8889       export_dynamic_flag_spec='${wl}-bexpall'
8890       # It seems that -bexpall does not export symbols beginning with
8891       # underscore (_), so it is better to generate a list of symbols to export.
8892       always_export_symbols=yes
8893       if test "$aix_use_runtimelinking" = yes; then
8894         # Warning - without using the other runtime loading flags (-brtl),
8895         # -berok will link without error, but may produce a broken library.
8896         allow_undefined_flag='-berok'
8897         # Determine the default libpath from the value encoded in an
8898         # empty executable.
8899         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901
8902 int
8903 main ()
8904 {
8905
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 if ac_fn_c_try_link "$LINENO"; then :
8911
8912 lt_aix_libpath_sed='
8913     /Import File Strings/,/^$/ {
8914         /^0/ {
8915             s/^0  *\(.*\)$/\1/
8916             p
8917         }
8918     }'
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 # Check for a 64-bit object if we didn't find anything.
8921 if test -z "$aix_libpath"; then
8922   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923 fi
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext \
8926     conftest$ac_exeext conftest.$ac_ext
8927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8928
8929         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8931       else
8932         if test "$host_cpu" = ia64; then
8933           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8934           allow_undefined_flag="-z nodefs"
8935           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"
8936         else
8937          # Determine the default libpath from the value encoded in an
8938          # empty executable.
8939          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h.  */
8941
8942 int
8943 main ()
8944 {
8945
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_link "$LINENO"; then :
8951
8952 lt_aix_libpath_sed='
8953     /Import File Strings/,/^$/ {
8954         /^0/ {
8955             s/^0  *\(.*\)$/\1/
8956             p
8957         }
8958     }'
8959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 # Check for a 64-bit object if we didn't find anything.
8961 if test -z "$aix_libpath"; then
8962   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963 fi
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext \
8966     conftest$ac_exeext conftest.$ac_ext
8967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8968
8969          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8970           # Warning - without using the other run time loading flags,
8971           # -berok will link without error, but may produce a broken library.
8972           no_undefined_flag=' ${wl}-bernotok'
8973           allow_undefined_flag=' ${wl}-berok'
8974           if test "$with_gnu_ld" = yes; then
8975             # We only use this code for GNU lds that support --whole-archive.
8976             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8977           else
8978             # Exported symbols can be pulled into shared objects from archives
8979             whole_archive_flag_spec='$convenience'
8980           fi
8981           archive_cmds_need_lc=yes
8982           # This is similar to how AIX traditionally builds its shared libraries.
8983           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8984         fi
8985       fi
8986       ;;
8987
8988     amigaos*)
8989       case $host_cpu in
8990       powerpc)
8991             # see comment about AmigaOS4 .so support
8992             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993             archive_expsym_cmds=''
8994         ;;
8995       m68k)
8996             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)'
8997             hardcode_libdir_flag_spec='-L$libdir'
8998             hardcode_minus_L=yes
8999         ;;
9000       esac
9001       ;;
9002
9003     bsdi[45]*)
9004       export_dynamic_flag_spec=-rdynamic
9005       ;;
9006
9007     cygwin* | mingw* | pw32* | cegcc*)
9008       # When not using gcc, we currently assume that we are using
9009       # Microsoft Visual C++.
9010       # hardcode_libdir_flag_spec is actually meaningless, as there is
9011       # no search path for DLLs.
9012       hardcode_libdir_flag_spec=' '
9013       allow_undefined_flag=unsupported
9014       # Tell ltmain to make .lib files, not .a files.
9015       libext=lib
9016       # Tell ltmain to make .dll files, not .so files.
9017       shrext_cmds=".dll"
9018       # FIXME: Setting linknames here is a bad hack.
9019       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9020       # The linker will automatically build a .lib file if we build a DLL.
9021       old_archive_from_new_cmds='true'
9022       # FIXME: Should let the user specify the lib program.
9023       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9024       fix_srcfile_path='`cygpath -w "$srcfile"`'
9025       enable_shared_with_static_runtimes=yes
9026       ;;
9027
9028     darwin* | rhapsody*)
9029
9030
9031   archive_cmds_need_lc=no
9032   hardcode_direct=no
9033   hardcode_automatic=yes
9034   hardcode_shlibpath_var=unsupported
9035   if test "$lt_cv_ld_force_load" = "yes"; then
9036     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\"`'
9037   else
9038     whole_archive_flag_spec=''
9039   fi
9040   link_all_deplibs=yes
9041   allow_undefined_flag="$_lt_dar_allow_undefined"
9042   case $cc_basename in
9043      ifort*) _lt_dar_can_shared=yes ;;
9044      *) _lt_dar_can_shared=$GCC ;;
9045   esac
9046   if test "$_lt_dar_can_shared" = "yes"; then
9047     output_verbose_link_cmd=func_echo_all
9048     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9049     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9050     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}"
9051     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}"
9052
9053   else
9054   ld_shlibs=no
9055   fi
9056
9057       ;;
9058
9059     dgux*)
9060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061       hardcode_libdir_flag_spec='-L$libdir'
9062       hardcode_shlibpath_var=no
9063       ;;
9064
9065     freebsd1*)
9066       ld_shlibs=no
9067       ;;
9068
9069     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9070     # support.  Future versions do this automatically, but an explicit c++rt0.o
9071     # does not break anything, and helps significantly (at the cost of a little
9072     # extra space).
9073     freebsd2.2*)
9074       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9075       hardcode_libdir_flag_spec='-R$libdir'
9076       hardcode_direct=yes
9077       hardcode_shlibpath_var=no
9078       ;;
9079
9080     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9081     freebsd2*)
9082       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083       hardcode_direct=yes
9084       hardcode_minus_L=yes
9085       hardcode_shlibpath_var=no
9086       ;;
9087
9088     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9089     freebsd* | dragonfly*)
9090       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9091       hardcode_libdir_flag_spec='-R$libdir'
9092       hardcode_direct=yes
9093       hardcode_shlibpath_var=no
9094       ;;
9095
9096     hpux9*)
9097       if test "$GCC" = yes; then
9098         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9099       else
9100         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9101       fi
9102       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103       hardcode_libdir_separator=:
9104       hardcode_direct=yes
9105
9106       # hardcode_minus_L: Not really in the search PATH,
9107       # but as the default location of the library.
9108       hardcode_minus_L=yes
9109       export_dynamic_flag_spec='${wl}-E'
9110       ;;
9111
9112     hpux10*)
9113       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9114         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115       else
9116         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9117       fi
9118       if test "$with_gnu_ld" = no; then
9119         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9120         hardcode_libdir_flag_spec_ld='+b $libdir'
9121         hardcode_libdir_separator=:
9122         hardcode_direct=yes
9123         hardcode_direct_absolute=yes
9124         export_dynamic_flag_spec='${wl}-E'
9125         # hardcode_minus_L: Not really in the search PATH,
9126         # but as the default location of the library.
9127         hardcode_minus_L=yes
9128       fi
9129       ;;
9130
9131     hpux11*)
9132       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9133         case $host_cpu in
9134         hppa*64*)
9135           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136           ;;
9137         ia64*)
9138           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139           ;;
9140         *)
9141           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9142           ;;
9143         esac
9144       else
9145         case $host_cpu in
9146         hppa*64*)
9147           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9148           ;;
9149         ia64*)
9150           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9151           ;;
9152         *)
9153
9154           # Older versions of the 11.00 compiler do not understand -b yet
9155           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9156           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9157 $as_echo_n "checking if $CC understands -b... " >&6; }
9158 if ${lt_cv_prog_compiler__b+:} false; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   lt_cv_prog_compiler__b=no
9162    save_LDFLAGS="$LDFLAGS"
9163    LDFLAGS="$LDFLAGS -b"
9164    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9165    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9166      # The linker can only warn and ignore the option if not recognized
9167      # So say no if there are warnings
9168      if test -s conftest.err; then
9169        # Append any errors to the config.log.
9170        cat conftest.err 1>&5
9171        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9172        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173        if diff conftest.exp conftest.er2 >/dev/null; then
9174          lt_cv_prog_compiler__b=yes
9175        fi
9176      else
9177        lt_cv_prog_compiler__b=yes
9178      fi
9179    fi
9180    $RM -r conftest*
9181    LDFLAGS="$save_LDFLAGS"
9182
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9185 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9186
9187 if test x"$lt_cv_prog_compiler__b" = xyes; then
9188     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 else
9190     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191 fi
9192
9193           ;;
9194         esac
9195       fi
9196       if test "$with_gnu_ld" = no; then
9197         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198         hardcode_libdir_separator=:
9199
9200         case $host_cpu in
9201         hppa*64*|ia64*)
9202           hardcode_direct=no
9203           hardcode_shlibpath_var=no
9204           ;;
9205         *)
9206           hardcode_direct=yes
9207           hardcode_direct_absolute=yes
9208           export_dynamic_flag_spec='${wl}-E'
9209
9210           # hardcode_minus_L: Not really in the search PATH,
9211           # but as the default location of the library.
9212           hardcode_minus_L=yes
9213           ;;
9214         esac
9215       fi
9216       ;;
9217
9218     irix5* | irix6* | nonstopux*)
9219       if test "$GCC" = yes; then
9220         archive_cmds='$CC -shared $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'
9221         # Try to use the -exported_symbol ld option, if it does not
9222         # work, assume that -exports_file does not work either and
9223         # implicitly export all symbols.
9224         save_LDFLAGS="$LDFLAGS"
9225         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9226         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h.  */
9228 int foo(void) {}
9229 _ACEOF
9230 if ac_fn_c_try_link "$LINENO"; then :
9231   archive_expsym_cmds='$CC -shared $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'
9232
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext \
9235     conftest$ac_exeext conftest.$ac_ext
9236         LDFLAGS="$save_LDFLAGS"
9237       else
9238         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'
9239         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'
9240       fi
9241       archive_cmds_need_lc='no'
9242       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243       hardcode_libdir_separator=:
9244       inherit_rpath=yes
9245       link_all_deplibs=yes
9246       ;;
9247
9248     netbsd*)
9249       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9251       else
9252         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9253       fi
9254       hardcode_libdir_flag_spec='-R$libdir'
9255       hardcode_direct=yes
9256       hardcode_shlibpath_var=no
9257       ;;
9258
9259     newsos6)
9260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261       hardcode_direct=yes
9262       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263       hardcode_libdir_separator=:
9264       hardcode_shlibpath_var=no
9265       ;;
9266
9267     *nto* | *qnx*)
9268       ;;
9269
9270     openbsd*)
9271       if test -f /usr/libexec/ld.so; then
9272         hardcode_direct=yes
9273         hardcode_shlibpath_var=no
9274         hardcode_direct_absolute=yes
9275         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9276           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9277           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9278           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9279           export_dynamic_flag_spec='${wl}-E'
9280         else
9281           case $host_os in
9282            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9283              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9284              hardcode_libdir_flag_spec='-R$libdir'
9285              ;;
9286            *)
9287              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9288              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9289              ;;
9290           esac
9291         fi
9292       else
9293         ld_shlibs=no
9294       fi
9295       ;;
9296
9297     os2*)
9298       hardcode_libdir_flag_spec='-L$libdir'
9299       hardcode_minus_L=yes
9300       allow_undefined_flag=unsupported
9301       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9302       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9303       ;;
9304
9305     osf3*)
9306       if test "$GCC" = yes; then
9307         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9308         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'
9309       else
9310         allow_undefined_flag=' -expect_unresolved \*'
9311         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'
9312       fi
9313       archive_cmds_need_lc='no'
9314       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315       hardcode_libdir_separator=:
9316       ;;
9317
9318     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9319       if test "$GCC" = yes; then
9320         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9321         archive_cmds='$CC -shared${allow_undefined_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'
9322         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323       else
9324         allow_undefined_flag=' -expect_unresolved \*'
9325         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'
9326         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~
9327         $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'
9328
9329         # Both c and cxx compiler support -rpath directly
9330         hardcode_libdir_flag_spec='-rpath $libdir'
9331       fi
9332       archive_cmds_need_lc='no'
9333       hardcode_libdir_separator=:
9334       ;;
9335
9336     solaris*)
9337       no_undefined_flag=' -z defs'
9338       if test "$GCC" = yes; then
9339         wlarc='${wl}'
9340         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9342           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9343       else
9344         case `$CC -V 2>&1` in
9345         *"Compilers 5.0"*)
9346           wlarc=''
9347           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9350           ;;
9351         *)
9352           wlarc='${wl}'
9353           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9355           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9356           ;;
9357         esac
9358       fi
9359       hardcode_libdir_flag_spec='-R$libdir'
9360       hardcode_shlibpath_var=no
9361       case $host_os in
9362       solaris2.[0-5] | solaris2.[0-5].*) ;;
9363       *)
9364         # The compiler driver will combine and reorder linker options,
9365         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9366         # but is careful enough not to reorder.
9367         # Supported since Solaris 2.6 (maybe 2.5.1?)
9368         if test "$GCC" = yes; then
9369           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9370         else
9371           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9372         fi
9373         ;;
9374       esac
9375       link_all_deplibs=yes
9376       ;;
9377
9378     sunos4*)
9379       if test "x$host_vendor" = xsequent; then
9380         # Use $CC to link under sequent, because it throws in some extra .o
9381         # files that make .init and .fini sections work.
9382         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9383       else
9384         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9385       fi
9386       hardcode_libdir_flag_spec='-L$libdir'
9387       hardcode_direct=yes
9388       hardcode_minus_L=yes
9389       hardcode_shlibpath_var=no
9390       ;;
9391
9392     sysv4)
9393       case $host_vendor in
9394         sni)
9395           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396           hardcode_direct=yes # is this really true???
9397         ;;
9398         siemens)
9399           ## LD is ld it makes a PLAMLIB
9400           ## CC just makes a GrossModule.
9401           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9402           reload_cmds='$CC -r -o $output$reload_objs'
9403           hardcode_direct=no
9404         ;;
9405         motorola)
9406           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9408         ;;
9409       esac
9410       runpath_var='LD_RUN_PATH'
9411       hardcode_shlibpath_var=no
9412       ;;
9413
9414     sysv4.3*)
9415       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416       hardcode_shlibpath_var=no
9417       export_dynamic_flag_spec='-Bexport'
9418       ;;
9419
9420     sysv4*MP*)
9421       if test -d /usr/nec; then
9422         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423         hardcode_shlibpath_var=no
9424         runpath_var=LD_RUN_PATH
9425         hardcode_runpath_var=yes
9426         ld_shlibs=yes
9427       fi
9428       ;;
9429
9430     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9431       no_undefined_flag='${wl}-z,text'
9432       archive_cmds_need_lc=no
9433       hardcode_shlibpath_var=no
9434       runpath_var='LD_RUN_PATH'
9435
9436       if test "$GCC" = yes; then
9437         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439       else
9440         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442       fi
9443       ;;
9444
9445     sysv5* | sco3.2v5* | sco5v6*)
9446       # Note: We can NOT use -z defs as we might desire, because we do not
9447       # link with -lc, and that would cause any symbols used from libc to
9448       # always be unresolved, which means just about no library would
9449       # ever link correctly.  If we're not using GNU ld we use -z text
9450       # though, which does catch some bad symbols but isn't as heavy-handed
9451       # as -z defs.
9452       no_undefined_flag='${wl}-z,text'
9453       allow_undefined_flag='${wl}-z,nodefs'
9454       archive_cmds_need_lc=no
9455       hardcode_shlibpath_var=no
9456       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9457       hardcode_libdir_separator=':'
9458       link_all_deplibs=yes
9459       export_dynamic_flag_spec='${wl}-Bexport'
9460       runpath_var='LD_RUN_PATH'
9461
9462       if test "$GCC" = yes; then
9463         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465       else
9466         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468       fi
9469       ;;
9470
9471     uts4*)
9472       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473       hardcode_libdir_flag_spec='-L$libdir'
9474       hardcode_shlibpath_var=no
9475       ;;
9476
9477     *)
9478       ld_shlibs=no
9479       ;;
9480     esac
9481
9482     if test x$host_vendor = xsni; then
9483       case $host in
9484       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9485         export_dynamic_flag_spec='${wl}-Blargedynsym'
9486         ;;
9487       esac
9488     fi
9489   fi
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9492 $as_echo "$ld_shlibs" >&6; }
9493 test "$ld_shlibs" = no && can_build_shared=no
9494
9495 with_gnu_ld=$with_gnu_ld
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511 #
9512 # Do we need to explicitly link libc?
9513 #
9514 case "x$archive_cmds_need_lc" in
9515 x|xyes)
9516   # Assume -lc should be added
9517   archive_cmds_need_lc=yes
9518
9519   if test "$enable_shared" = yes && test "$GCC" = yes; then
9520     case $archive_cmds in
9521     *'~'*)
9522       # FIXME: we may have to deal with multi-command sequences.
9523       ;;
9524     '$CC '*)
9525       # Test whether the compiler implicitly links with -lc since on some
9526       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9527       # to ld, don't add -lc before -lgcc.
9528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9530 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9531   $as_echo_n "(cached) " >&6
9532 else
9533   $RM conftest*
9534         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9535
9536         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9537   (eval $ac_compile) 2>&5
9538   ac_status=$?
9539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9540   test $ac_status = 0; } 2>conftest.err; then
9541           soname=conftest
9542           lib=conftest
9543           libobjs=conftest.$ac_objext
9544           deplibs=
9545           wl=$lt_prog_compiler_wl
9546           pic_flag=$lt_prog_compiler_pic
9547           compiler_flags=-v
9548           linker_flags=-v
9549           verstring=
9550           output_objdir=.
9551           libname=conftest
9552           lt_save_allow_undefined_flag=$allow_undefined_flag
9553           allow_undefined_flag=
9554           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9555   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9556   ac_status=$?
9557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9558   test $ac_status = 0; }
9559           then
9560             lt_cv_archive_cmds_need_lc=no
9561           else
9562             lt_cv_archive_cmds_need_lc=yes
9563           fi
9564           allow_undefined_flag=$lt_save_allow_undefined_flag
9565         else
9566           cat conftest.err 1>&5
9567         fi
9568         $RM conftest*
9569
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9572 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9573       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9574       ;;
9575     esac
9576   fi
9577   ;;
9578 esac
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9737 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9738
9739 if test "$GCC" = yes; then
9740   case $host_os in
9741     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9742     *) lt_awk_arg="/^libraries:/" ;;
9743   esac
9744   case $host_os in
9745     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9746     *) lt_sed_strip_eq="s,=/,/,g" ;;
9747   esac
9748   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9749   case $lt_search_path_spec in
9750   *\;*)
9751     # if the path contains ";" then we assume it to be the separator
9752     # otherwise default to the standard path separator (i.e. ":") - it is
9753     # assumed that no part of a normal pathname contains ";" but that should
9754     # okay in the real world where ";" in dirpaths is itself problematic.
9755     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9756     ;;
9757   *)
9758     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9759     ;;
9760   esac
9761   # Ok, now we have the path, separated by spaces, we can step through it
9762   # and add multilib dir if necessary.
9763   lt_tmp_lt_search_path_spec=
9764   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9765   for lt_sys_path in $lt_search_path_spec; do
9766     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9767       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9768     else
9769       test -d "$lt_sys_path" && \
9770         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9771     fi
9772   done
9773   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9774 BEGIN {RS=" "; FS="/|\n";} {
9775   lt_foo="";
9776   lt_count=0;
9777   for (lt_i = NF; lt_i > 0; lt_i--) {
9778     if ($lt_i != "" && $lt_i != ".") {
9779       if ($lt_i == "..") {
9780         lt_count++;
9781       } else {
9782         if (lt_count == 0) {
9783           lt_foo="/" $lt_i lt_foo;
9784         } else {
9785           lt_count--;
9786         }
9787       }
9788     }
9789   }
9790   if (lt_foo != "") { lt_freq[lt_foo]++; }
9791   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9792 }'`
9793   # AWK program above erroneously prepends '/' to C:/dos/paths
9794   # for these hosts.
9795   case $host_os in
9796     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9797       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9798   esac
9799   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9800 else
9801   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9802 fi
9803 library_names_spec=
9804 libname_spec='lib$name'
9805 soname_spec=
9806 shrext_cmds=".so"
9807 postinstall_cmds=
9808 postuninstall_cmds=
9809 finish_cmds=
9810 finish_eval=
9811 shlibpath_var=
9812 shlibpath_overrides_runpath=unknown
9813 version_type=none
9814 dynamic_linker="$host_os ld.so"
9815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9816 need_lib_prefix=unknown
9817 hardcode_into_libs=no
9818
9819 # when you set need_version to no, make sure it does not cause -set_version
9820 # flags to be left without arguments
9821 need_version=unknown
9822
9823 case $host_os in
9824 aix3*)
9825   version_type=linux
9826   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9827   shlibpath_var=LIBPATH
9828
9829   # AIX 3 has no versioning support, so we append a major version to the name.
9830   soname_spec='${libname}${release}${shared_ext}$major'
9831   ;;
9832
9833 aix[4-9]*)
9834   version_type=linux
9835   need_lib_prefix=no
9836   need_version=no
9837   hardcode_into_libs=yes
9838   if test "$host_cpu" = ia64; then
9839     # AIX 5 supports IA64
9840     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9841     shlibpath_var=LD_LIBRARY_PATH
9842   else
9843     # With GCC up to 2.95.x, collect2 would create an import file
9844     # for dependence libraries.  The import file would start with
9845     # the line `#! .'.  This would cause the generated library to
9846     # depend on `.', always an invalid library.  This was fixed in
9847     # development snapshots of GCC prior to 3.0.
9848     case $host_os in
9849       aix4 | aix4.[01] | aix4.[01].*)
9850       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9851            echo ' yes '
9852            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9853         :
9854       else
9855         can_build_shared=no
9856       fi
9857       ;;
9858     esac
9859     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9860     # soname into executable. Probably we can add versioning support to
9861     # collect2, so additional links can be useful in future.
9862     if test "$aix_use_runtimelinking" = yes; then
9863       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9864       # instead of lib<name>.a to let people know that these are not
9865       # typical AIX shared libraries.
9866       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867     else
9868       # We preserve .a as extension for shared libraries through AIX4.2
9869       # and later when we are not doing run time linking.
9870       library_names_spec='${libname}${release}.a $libname.a'
9871       soname_spec='${libname}${release}${shared_ext}$major'
9872     fi
9873     shlibpath_var=LIBPATH
9874   fi
9875   ;;
9876
9877 amigaos*)
9878   case $host_cpu in
9879   powerpc)
9880     # Since July 2007 AmigaOS4 officially supports .so libraries.
9881     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883     ;;
9884   m68k)
9885     library_names_spec='$libname.ixlibrary $libname.a'
9886     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9887     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9888     ;;
9889   esac
9890   ;;
9891
9892 beos*)
9893   library_names_spec='${libname}${shared_ext}'
9894   dynamic_linker="$host_os ld.so"
9895   shlibpath_var=LIBRARY_PATH
9896   ;;
9897
9898 bsdi[45]*)
9899   version_type=linux
9900   need_version=no
9901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902   soname_spec='${libname}${release}${shared_ext}$major'
9903   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9904   shlibpath_var=LD_LIBRARY_PATH
9905   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9906   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9907   # the default ld.so.conf also contains /usr/contrib/lib and
9908   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9909   # libtool to hard-code these into programs
9910   ;;
9911
9912 cygwin* | mingw* | pw32* | cegcc*)
9913   version_type=windows
9914   shrext_cmds=".dll"
9915   need_version=no
9916   need_lib_prefix=no
9917
9918   case $GCC,$host_os in
9919   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9920     library_names_spec='$libname.dll.a'
9921     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9922     postinstall_cmds='base_file=`basename \${file}`~
9923       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9924       dldir=$destdir/`dirname \$dlpath`~
9925       test -d \$dldir || mkdir -p \$dldir~
9926       $install_prog $dir/$dlname \$dldir/$dlname~
9927       chmod a+x \$dldir/$dlname~
9928       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9929         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9930       fi'
9931     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9932       dlpath=$dir/\$dldll~
9933        $RM \$dlpath'
9934     shlibpath_overrides_runpath=yes
9935
9936     case $host_os in
9937     cygwin*)
9938       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9939       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940
9941       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9942       ;;
9943     mingw* | cegcc*)
9944       # MinGW DLLs use traditional 'lib' prefix
9945       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946       ;;
9947     pw32*)
9948       # pw32 DLLs use 'pw' prefix rather than 'lib'
9949       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950       ;;
9951     esac
9952     ;;
9953
9954   *)
9955     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9956     ;;
9957   esac
9958   dynamic_linker='Win32 ld.exe'
9959   # FIXME: first we should search . and the directory the executable is in
9960   shlibpath_var=PATH
9961   ;;
9962
9963 darwin* | rhapsody*)
9964   dynamic_linker="$host_os dyld"
9965   version_type=darwin
9966   need_lib_prefix=no
9967   need_version=no
9968   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9969   soname_spec='${libname}${release}${major}$shared_ext'
9970   shlibpath_overrides_runpath=yes
9971   shlibpath_var=DYLD_LIBRARY_PATH
9972   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9973
9974   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9975   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9976   ;;
9977
9978 dgux*)
9979   version_type=linux
9980   need_lib_prefix=no
9981   need_version=no
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9983   soname_spec='${libname}${release}${shared_ext}$major'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   ;;
9986
9987 freebsd1*)
9988   dynamic_linker=no
9989   ;;
9990
9991 freebsd* | dragonfly*)
9992   # DragonFly does not have aout.  When/if they implement a new
9993   # versioning mechanism, adjust this.
9994   if test -x /usr/bin/objformat; then
9995     objformat=`/usr/bin/objformat`
9996   else
9997     case $host_os in
9998     freebsd[123]*) objformat=aout ;;
9999     *) objformat=elf ;;
10000     esac
10001   fi
10002   version_type=freebsd-$objformat
10003   case $version_type in
10004     freebsd-elf*)
10005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10006       need_version=no
10007       need_lib_prefix=no
10008       ;;
10009     freebsd-*)
10010       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10011       need_version=yes
10012       ;;
10013   esac
10014   shlibpath_var=LD_LIBRARY_PATH
10015   case $host_os in
10016   freebsd2*)
10017     shlibpath_overrides_runpath=yes
10018     ;;
10019   freebsd3.[01]* | freebsdelf3.[01]*)
10020     shlibpath_overrides_runpath=yes
10021     hardcode_into_libs=yes
10022     ;;
10023   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10024   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10025     shlibpath_overrides_runpath=no
10026     hardcode_into_libs=yes
10027     ;;
10028   *) # from 4.6 on, and DragonFly
10029     shlibpath_overrides_runpath=yes
10030     hardcode_into_libs=yes
10031     ;;
10032   esac
10033   ;;
10034
10035 gnu*)
10036   version_type=linux
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   shlibpath_var=LD_LIBRARY_PATH
10042   hardcode_into_libs=yes
10043   ;;
10044
10045 haiku*)
10046   version_type=linux
10047   need_lib_prefix=no
10048   need_version=no
10049   dynamic_linker="$host_os runtime_loader"
10050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10051   soname_spec='${libname}${release}${shared_ext}$major'
10052   shlibpath_var=LIBRARY_PATH
10053   shlibpath_overrides_runpath=yes
10054   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10055   hardcode_into_libs=yes
10056   ;;
10057
10058 hpux9* | hpux10* | hpux11*)
10059   # Give a soname corresponding to the major version so that dld.sl refuses to
10060   # link against other versions.
10061   version_type=sunos
10062   need_lib_prefix=no
10063   need_version=no
10064   case $host_cpu in
10065   ia64*)
10066     shrext_cmds='.so'
10067     hardcode_into_libs=yes
10068     dynamic_linker="$host_os dld.so"
10069     shlibpath_var=LD_LIBRARY_PATH
10070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072     soname_spec='${libname}${release}${shared_ext}$major'
10073     if test "X$HPUX_IA64_MODE" = X32; then
10074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10075     else
10076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10077     fi
10078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10079     ;;
10080   hppa*64*)
10081     shrext_cmds='.sl'
10082     hardcode_into_libs=yes
10083     dynamic_linker="$host_os dld.sl"
10084     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087     soname_spec='${libname}${release}${shared_ext}$major'
10088     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10090     ;;
10091   *)
10092     shrext_cmds='.sl'
10093     dynamic_linker="$host_os dld.sl"
10094     shlibpath_var=SHLIB_PATH
10095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097     soname_spec='${libname}${release}${shared_ext}$major'
10098     ;;
10099   esac
10100   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10101   postinstall_cmds='chmod 555 $lib'
10102   # or fails outright, so override atomically:
10103   install_override_mode=555
10104   ;;
10105
10106 interix[3-9]*)
10107   version_type=linux
10108   need_lib_prefix=no
10109   need_version=no
10110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10111   soname_spec='${libname}${release}${shared_ext}$major'
10112   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10113   shlibpath_var=LD_LIBRARY_PATH
10114   shlibpath_overrides_runpath=no
10115   hardcode_into_libs=yes
10116   ;;
10117
10118 irix5* | irix6* | nonstopux*)
10119   case $host_os in
10120     nonstopux*) version_type=nonstopux ;;
10121     *)
10122         if test "$lt_cv_prog_gnu_ld" = yes; then
10123                 version_type=linux
10124         else
10125                 version_type=irix
10126         fi ;;
10127   esac
10128   need_lib_prefix=no
10129   need_version=no
10130   soname_spec='${libname}${release}${shared_ext}$major'
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10132   case $host_os in
10133   irix5* | nonstopux*)
10134     libsuff= shlibsuff=
10135     ;;
10136   *)
10137     case $LD in # libtool.m4 will add one of these switches to LD
10138     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10139       libsuff= shlibsuff= libmagic=32-bit;;
10140     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10141       libsuff=32 shlibsuff=N32 libmagic=N32;;
10142     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10143       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10144     *) libsuff= shlibsuff= libmagic=never-match;;
10145     esac
10146     ;;
10147   esac
10148   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10149   shlibpath_overrides_runpath=no
10150   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10151   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10152   hardcode_into_libs=yes
10153   ;;
10154
10155 # No shared lib support for Linux oldld, aout, or coff.
10156 linux*oldld* | linux*aout* | linux*coff*)
10157   dynamic_linker=no
10158   ;;
10159
10160 # This must be Linux ELF.
10161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10162   version_type=linux
10163   need_lib_prefix=no
10164   need_version=no
10165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166   soname_spec='${libname}${release}${shared_ext}$major'
10167   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10168   shlibpath_var=LD_LIBRARY_PATH
10169   shlibpath_overrides_runpath=no
10170
10171   # Some binutils ld are patched to set DT_RUNPATH
10172   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   lt_cv_shlibpath_overrides_runpath=no
10176     save_LDFLAGS=$LDFLAGS
10177     save_libdir=$libdir
10178     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10179          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h.  */
10182
10183 int
10184 main ()
10185 {
10186
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10193   lt_cv_shlibpath_overrides_runpath=yes
10194 fi
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197     conftest$ac_exeext conftest.$ac_ext
10198     LDFLAGS=$save_LDFLAGS
10199     libdir=$save_libdir
10200
10201 fi
10202
10203   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10204
10205   # This implies no fast_install, which is unacceptable.
10206   # Some rework will be needed to allow for fast_install
10207   # before this can be enabled.
10208   hardcode_into_libs=yes
10209
10210   # Append ld.so.conf contents to the search path
10211   if test -f /etc/ld.so.conf; then
10212     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' ' '`
10213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10214   fi
10215
10216   # We used to test for /lib/ld.so.1 and disable shared libraries on
10217   # powerpc, because MkLinux only supported shared libraries with the
10218   # GNU dynamic linker.  Since this was broken with cross compilers,
10219   # most powerpc-linux boxes support dynamic linking these days and
10220   # people can always --disable-shared, the test was removed, and we
10221   # assume the GNU/Linux dynamic linker is in use.
10222   dynamic_linker='GNU/Linux ld.so'
10223   ;;
10224
10225 netbsd*)
10226   version_type=sunos
10227   need_lib_prefix=no
10228   need_version=no
10229   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232     dynamic_linker='NetBSD (a.out) ld.so'
10233   else
10234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235     soname_spec='${libname}${release}${shared_ext}$major'
10236     dynamic_linker='NetBSD ld.elf_so'
10237   fi
10238   shlibpath_var=LD_LIBRARY_PATH
10239   shlibpath_overrides_runpath=yes
10240   hardcode_into_libs=yes
10241   ;;
10242
10243 newsos6)
10244   version_type=linux
10245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246   shlibpath_var=LD_LIBRARY_PATH
10247   shlibpath_overrides_runpath=yes
10248   ;;
10249
10250 *nto* | *qnx*)
10251   version_type=qnx
10252   need_lib_prefix=no
10253   need_version=no
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255   soname_spec='${libname}${release}${shared_ext}$major'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   shlibpath_overrides_runpath=no
10258   hardcode_into_libs=yes
10259   dynamic_linker='ldqnx.so'
10260   ;;
10261
10262 openbsd*)
10263   version_type=sunos
10264   sys_lib_dlsearch_path_spec="/usr/lib"
10265   need_lib_prefix=no
10266   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10267   case $host_os in
10268     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10269     *)                          need_version=no  ;;
10270   esac
10271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273   shlibpath_var=LD_LIBRARY_PATH
10274   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10275     case $host_os in
10276       openbsd2.[89] | openbsd2.[89].*)
10277         shlibpath_overrides_runpath=no
10278         ;;
10279       *)
10280         shlibpath_overrides_runpath=yes
10281         ;;
10282       esac
10283   else
10284     shlibpath_overrides_runpath=yes
10285   fi
10286   ;;
10287
10288 os2*)
10289   libname_spec='$name'
10290   shrext_cmds=".dll"
10291   need_lib_prefix=no
10292   library_names_spec='$libname${shared_ext} $libname.a'
10293   dynamic_linker='OS/2 ld.exe'
10294   shlibpath_var=LIBPATH
10295   ;;
10296
10297 osf3* | osf4* | osf5*)
10298   version_type=osf
10299   need_lib_prefix=no
10300   need_version=no
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   shlibpath_var=LD_LIBRARY_PATH
10304   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10306   ;;
10307
10308 rdos*)
10309   dynamic_linker=no
10310   ;;
10311
10312 solaris*)
10313   version_type=linux
10314   need_lib_prefix=no
10315   need_version=no
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317   soname_spec='${libname}${release}${shared_ext}$major'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   shlibpath_overrides_runpath=yes
10320   hardcode_into_libs=yes
10321   # ldd complains unless libraries are executable
10322   postinstall_cmds='chmod +x $lib'
10323   ;;
10324
10325 sunos4*)
10326   version_type=sunos
10327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   shlibpath_overrides_runpath=yes
10331   if test "$with_gnu_ld" = yes; then
10332     need_lib_prefix=no
10333   fi
10334   need_version=yes
10335   ;;
10336
10337 sysv4 | sysv4.3*)
10338   version_type=linux
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340   soname_spec='${libname}${release}${shared_ext}$major'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   case $host_vendor in
10343     sni)
10344       shlibpath_overrides_runpath=no
10345       need_lib_prefix=no
10346       runpath_var=LD_RUN_PATH
10347       ;;
10348     siemens)
10349       need_lib_prefix=no
10350       ;;
10351     motorola)
10352       need_lib_prefix=no
10353       need_version=no
10354       shlibpath_overrides_runpath=no
10355       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10356       ;;
10357   esac
10358   ;;
10359
10360 sysv4*MP*)
10361   if test -d /usr/nec ;then
10362     version_type=linux
10363     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10364     soname_spec='$libname${shared_ext}.$major'
10365     shlibpath_var=LD_LIBRARY_PATH
10366   fi
10367   ;;
10368
10369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10370   version_type=freebsd-elf
10371   need_lib_prefix=no
10372   need_version=no
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374   soname_spec='${libname}${release}${shared_ext}$major'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   shlibpath_overrides_runpath=yes
10377   hardcode_into_libs=yes
10378   if test "$with_gnu_ld" = yes; then
10379     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10380   else
10381     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10382     case $host_os in
10383       sco3.2v5*)
10384         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10385         ;;
10386     esac
10387   fi
10388   sys_lib_dlsearch_path_spec='/usr/lib'
10389   ;;
10390
10391 tpf*)
10392   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10393   version_type=linux
10394   need_lib_prefix=no
10395   need_version=no
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   shlibpath_overrides_runpath=no
10399   hardcode_into_libs=yes
10400   ;;
10401
10402 uts4*)
10403   version_type=linux
10404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405   soname_spec='${libname}${release}${shared_ext}$major'
10406   shlibpath_var=LD_LIBRARY_PATH
10407   ;;
10408
10409 *)
10410   dynamic_linker=no
10411   ;;
10412 esac
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10414 $as_echo "$dynamic_linker" >&6; }
10415 test "$dynamic_linker" = no && can_build_shared=no
10416
10417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10418 if test "$GCC" = yes; then
10419   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10420 fi
10421
10422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10423   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10424 fi
10425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10426   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10427 fi
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10522 hardcode_action=
10523 if test -n "$hardcode_libdir_flag_spec" ||
10524    test -n "$runpath_var" ||
10525    test "X$hardcode_automatic" = "Xyes" ; then
10526
10527   # We can hardcode non-existent directories.
10528   if test "$hardcode_direct" != no &&
10529      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10530      # have to relink, otherwise we might link with an installed library
10531      # when we should be linking with a yet-to-be-installed one
10532      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10533      test "$hardcode_minus_L" != no; then
10534     # Linking always hardcodes the temporary library directory.
10535     hardcode_action=relink
10536   else
10537     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10538     hardcode_action=immediate
10539   fi
10540 else
10541   # We cannot hardcode anything, or else we can only hardcode existing
10542   # directories.
10543   hardcode_action=unsupported
10544 fi
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10546 $as_echo "$hardcode_action" >&6; }
10547
10548 if test "$hardcode_action" = relink ||
10549    test "$inherit_rpath" = yes; then
10550   # Fast installation is not supported
10551   enable_fast_install=no
10552 elif test "$shlibpath_overrides_runpath" = yes ||
10553      test "$enable_shared" = no; then
10554   # Fast installation is not necessary
10555   enable_fast_install=needless
10556 fi
10557
10558
10559
10560
10561
10562
10563   if test "x$enable_dlopen" != xyes; then
10564   enable_dlopen=unknown
10565   enable_dlopen_self=unknown
10566   enable_dlopen_self_static=unknown
10567 else
10568   lt_cv_dlopen=no
10569   lt_cv_dlopen_libs=
10570
10571   case $host_os in
10572   beos*)
10573     lt_cv_dlopen="load_add_on"
10574     lt_cv_dlopen_libs=
10575     lt_cv_dlopen_self=yes
10576     ;;
10577
10578   mingw* | pw32* | cegcc*)
10579     lt_cv_dlopen="LoadLibrary"
10580     lt_cv_dlopen_libs=
10581     ;;
10582
10583   cygwin*)
10584     lt_cv_dlopen="dlopen"
10585     lt_cv_dlopen_libs=
10586     ;;
10587
10588   darwin*)
10589   # if libdl is installed we need to link against it
10590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10592 if ${ac_cv_lib_dl_dlopen+:} false; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   ac_check_lib_save_LIBS=$LIBS
10596 LIBS="-ldl  $LIBS"
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h.  */
10599
10600 /* Override any GCC internal prototype to avoid an error.
10601    Use char because int might match the return type of a GCC
10602    builtin and then its argument prototype would still apply.  */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 char dlopen ();
10607 int
10608 main ()
10609 {
10610 return dlopen ();
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 if ac_fn_c_try_link "$LINENO"; then :
10616   ac_cv_lib_dl_dlopen=yes
10617 else
10618   ac_cv_lib_dl_dlopen=no
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext \
10621     conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10627   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10628 else
10629
10630     lt_cv_dlopen="dyld"
10631     lt_cv_dlopen_libs=
10632     lt_cv_dlopen_self=yes
10633
10634 fi
10635
10636     ;;
10637
10638   *)
10639     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10640 if test "x$ac_cv_func_shl_load" = xyes; then :
10641   lt_cv_dlopen="shl_load"
10642 else
10643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10644 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10645 if ${ac_cv_lib_dld_shl_load+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldld  $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654    Use char because int might match the return type of a GCC
10655    builtin and then its argument prototype would still apply.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char shl_load ();
10660 int
10661 main ()
10662 {
10663 return shl_load ();
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669   ac_cv_lib_dld_shl_load=yes
10670 else
10671   ac_cv_lib_dld_shl_load=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext \
10674     conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10679 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10680   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10681 else
10682   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10683 if test "x$ac_cv_func_dlopen" = xyes; then :
10684   lt_cv_dlopen="dlopen"
10685 else
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10688 if ${ac_cv_lib_dl_dlopen+:} false; then :
10689   $as_echo_n "(cached) " >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldl  $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char dlopen ();
10703 int
10704 main ()
10705 {
10706 return dlopen ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712   ac_cv_lib_dl_dlopen=yes
10713 else
10714   ac_cv_lib_dl_dlopen=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10722 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10723   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10724 else
10725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10727 if ${ac_cv_lib_svld_dlopen+:} false; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-lsvld  $LIBS"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h.  */
10734
10735 /* Override any GCC internal prototype to avoid an error.
10736    Use char because int might match the return type of a GCC
10737    builtin and then its argument prototype would still apply.  */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 char dlopen ();
10742 int
10743 main ()
10744 {
10745 return dlopen ();
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"; then :
10751   ac_cv_lib_svld_dlopen=yes
10752 else
10753   ac_cv_lib_svld_dlopen=no
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext \
10756     conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10761 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10762   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10763 else
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10766 if ${ac_cv_lib_dld_dld_link+:} false; then :
10767   $as_echo_n "(cached) " >&6
10768 else
10769   ac_check_lib_save_LIBS=$LIBS
10770 LIBS="-ldld  $LIBS"
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h.  */
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775    Use char because int might match the return type of a GCC
10776    builtin and then its argument prototype would still apply.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char dld_link ();
10781 int
10782 main ()
10783 {
10784 return dld_link ();
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_c_try_link "$LINENO"; then :
10790   ac_cv_lib_dld_dld_link=yes
10791 else
10792   ac_cv_lib_dld_dld_link=no
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795     conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10800 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10801   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10802 fi
10803
10804
10805 fi
10806
10807
10808 fi
10809
10810
10811 fi
10812
10813
10814 fi
10815
10816
10817 fi
10818
10819     ;;
10820   esac
10821
10822   if test "x$lt_cv_dlopen" != xno; then
10823     enable_dlopen=yes
10824   else
10825     enable_dlopen=no
10826   fi
10827
10828   case $lt_cv_dlopen in
10829   dlopen)
10830     save_CPPFLAGS="$CPPFLAGS"
10831     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10832
10833     save_LDFLAGS="$LDFLAGS"
10834     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10835
10836     save_LIBS="$LIBS"
10837     LIBS="$lt_cv_dlopen_libs $LIBS"
10838
10839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10841 if ${lt_cv_dlopen_self+:} false; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844           if test "$cross_compiling" = yes; then :
10845   lt_cv_dlopen_self=cross
10846 else
10847   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848   lt_status=$lt_dlunknown
10849   cat > conftest.$ac_ext <<_LT_EOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10852
10853 #if HAVE_DLFCN_H
10854 #include <dlfcn.h>
10855 #endif
10856
10857 #include <stdio.h>
10858
10859 #ifdef RTLD_GLOBAL
10860 #  define LT_DLGLOBAL           RTLD_GLOBAL
10861 #else
10862 #  ifdef DL_GLOBAL
10863 #    define LT_DLGLOBAL         DL_GLOBAL
10864 #  else
10865 #    define LT_DLGLOBAL         0
10866 #  endif
10867 #endif
10868
10869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870    find out it does not work in some platform. */
10871 #ifndef LT_DLLAZY_OR_NOW
10872 #  ifdef RTLD_LAZY
10873 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10874 #  else
10875 #    ifdef DL_LAZY
10876 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10877 #    else
10878 #      ifdef RTLD_NOW
10879 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10880 #      else
10881 #        ifdef DL_NOW
10882 #          define LT_DLLAZY_OR_NOW      DL_NOW
10883 #        else
10884 #          define LT_DLLAZY_OR_NOW      0
10885 #        endif
10886 #      endif
10887 #    endif
10888 #  endif
10889 #endif
10890
10891 /* When -fvisbility=hidden is used, assume the code has been annotated
10892    correspondingly for the symbols needed.  */
10893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10894 void fnord () __attribute__((visibility("default")));
10895 #endif
10896
10897 void fnord () { int i=42; }
10898 int main ()
10899 {
10900   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901   int status = $lt_dlunknown;
10902
10903   if (self)
10904     {
10905       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10906       else
10907         {
10908           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10909           else puts (dlerror ());
10910         }
10911       /* dlclose (self); */
10912     }
10913   else
10914     puts (dlerror ());
10915
10916   return status;
10917 }
10918 _LT_EOF
10919   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10920   (eval $ac_link) 2>&5
10921   ac_status=$?
10922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10924     (./conftest; exit; ) >&5 2>/dev/null
10925     lt_status=$?
10926     case x$lt_status in
10927       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10928       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10929       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10930     esac
10931   else :
10932     # compilation failed
10933     lt_cv_dlopen_self=no
10934   fi
10935 fi
10936 rm -fr conftest*
10937
10938
10939 fi
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10941 $as_echo "$lt_cv_dlopen_self" >&6; }
10942
10943     if test "x$lt_cv_dlopen_self" = xyes; then
10944       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10947 if ${lt_cv_dlopen_self_static+:} false; then :
10948   $as_echo_n "(cached) " >&6
10949 else
10950           if test "$cross_compiling" = yes; then :
10951   lt_cv_dlopen_self_static=cross
10952 else
10953   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10954   lt_status=$lt_dlunknown
10955   cat > conftest.$ac_ext <<_LT_EOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10958
10959 #if HAVE_DLFCN_H
10960 #include <dlfcn.h>
10961 #endif
10962
10963 #include <stdio.h>
10964
10965 #ifdef RTLD_GLOBAL
10966 #  define LT_DLGLOBAL           RTLD_GLOBAL
10967 #else
10968 #  ifdef DL_GLOBAL
10969 #    define LT_DLGLOBAL         DL_GLOBAL
10970 #  else
10971 #    define LT_DLGLOBAL         0
10972 #  endif
10973 #endif
10974
10975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10976    find out it does not work in some platform. */
10977 #ifndef LT_DLLAZY_OR_NOW
10978 #  ifdef RTLD_LAZY
10979 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10980 #  else
10981 #    ifdef DL_LAZY
10982 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10983 #    else
10984 #      ifdef RTLD_NOW
10985 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10986 #      else
10987 #        ifdef DL_NOW
10988 #          define LT_DLLAZY_OR_NOW      DL_NOW
10989 #        else
10990 #          define LT_DLLAZY_OR_NOW      0
10991 #        endif
10992 #      endif
10993 #    endif
10994 #  endif
10995 #endif
10996
10997 /* When -fvisbility=hidden is used, assume the code has been annotated
10998    correspondingly for the symbols needed.  */
10999 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11000 void fnord () __attribute__((visibility("default")));
11001 #endif
11002
11003 void fnord () { int i=42; }
11004 int main ()
11005 {
11006   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11007   int status = $lt_dlunknown;
11008
11009   if (self)
11010     {
11011       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11012       else
11013         {
11014           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11015           else puts (dlerror ());
11016         }
11017       /* dlclose (self); */
11018     }
11019   else
11020     puts (dlerror ());
11021
11022   return status;
11023 }
11024 _LT_EOF
11025   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11026   (eval $ac_link) 2>&5
11027   ac_status=$?
11028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11030     (./conftest; exit; ) >&5 2>/dev/null
11031     lt_status=$?
11032     case x$lt_status in
11033       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11034       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11035       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11036     esac
11037   else :
11038     # compilation failed
11039     lt_cv_dlopen_self_static=no
11040   fi
11041 fi
11042 rm -fr conftest*
11043
11044
11045 fi
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11048     fi
11049
11050     CPPFLAGS="$save_CPPFLAGS"
11051     LDFLAGS="$save_LDFLAGS"
11052     LIBS="$save_LIBS"
11053     ;;
11054   esac
11055
11056   case $lt_cv_dlopen_self in
11057   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11058   *) enable_dlopen_self=unknown ;;
11059   esac
11060
11061   case $lt_cv_dlopen_self_static in
11062   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11063   *) enable_dlopen_self_static=unknown ;;
11064   esac
11065 fi
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 striplib=
11084 old_striplib=
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11088   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11089   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11092 else
11093 # FIXME - insert some real tests, host_os isn't really good enough
11094   case $host_os in
11095   darwin*)
11096     if test -n "$STRIP" ; then
11097       striplib="$STRIP -x"
11098       old_striplib="$STRIP -S"
11099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11100 $as_echo "yes" >&6; }
11101     else
11102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104     fi
11105     ;;
11106   *)
11107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109     ;;
11110   esac
11111 fi
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124   # Report which library types will actually be built
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11128 $as_echo "$can_build_shared" >&6; }
11129
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11131 $as_echo_n "checking whether to build shared libraries... " >&6; }
11132   test "$can_build_shared" = "no" && enable_shared=no
11133
11134   # On AIX, shared libraries and static libraries use the same namespace, and
11135   # are all built from PIC.
11136   case $host_os in
11137   aix3*)
11138     test "$enable_shared" = yes && enable_static=no
11139     if test -n "$RANLIB"; then
11140       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11141       postinstall_cmds='$RANLIB $lib'
11142     fi
11143     ;;
11144
11145   aix[4-9]*)
11146     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11147       test "$enable_shared" = yes && enable_static=no
11148     fi
11149     ;;
11150   esac
11151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11152 $as_echo "$enable_shared" >&6; }
11153
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11155 $as_echo_n "checking whether to build static libraries... " >&6; }
11156   # Make sure either enable_shared or enable_static is yes.
11157   test "$enable_shared" = yes || enable_static=yes
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11159 $as_echo "$enable_static" >&6; }
11160
11161
11162
11163
11164 fi
11165 ac_ext=c
11166 ac_cpp='$CPP $CPPFLAGS'
11167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11170
11171 CC="$lt_save_CC"
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185         ac_config_commands="$ac_config_commands libtool"
11186
11187
11188
11189
11190 # Only expand once:
11191
11192
11193
11194 target=$save_target
11195
11196 if test "$enable_static" = yes; then
11197         SASL_STATIC_LIBS=libsasl2.a
11198 else
11199         SASL_STATIC_LIBS=
11200 fi
11201
11202 # Check whether --enable-staticdlopen was given.
11203 if test "${enable_staticdlopen+set}" = set; then :
11204   enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11205 else
11206   enable_staticdlopen=no
11207 fi
11208
11209
11210 if test "$enable_staticdlopen" = yes; then
11211
11212 $as_echo "#define TRY_DLOPEN_WHEN_STATIC /**/" >>confdefs.h
11213
11214 fi
11215
11216 if test "$ac_cv_c_compiler_gnu" = yes; then
11217   CFLAGS="-Wall -W ${CFLAGS}"
11218 fi
11219
11220
11221 # Check whether --with-purecov was given.
11222 if test "${with_purecov+set}" = set; then :
11223   withval=$with_purecov;
11224 fi
11225
11226 if test "$with_purecov" = yes; then
11227   for ac_prog in purecov
11228 do
11229   # Extract the first word of "$ac_prog", so it can be a program name with args.
11230 set dummy $ac_prog; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_prog_PURECOV+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236   if test -n "$PURECOV"; then
11237   ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11238 else
11239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11241 do
11242   IFS=$as_save_IFS
11243   test -z "$as_dir" && as_dir=.
11244     for ac_exec_ext in '' $ac_executable_extensions; do
11245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246     ac_cv_prog_PURECOV="$ac_prog"
11247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248     break 2
11249   fi
11250 done
11251   done
11252 IFS=$as_save_IFS
11253
11254 fi
11255 fi
11256 PURECOV=$ac_cv_prog_PURECOV
11257 if test -n "$PURECOV"; then
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURECOV" >&5
11259 $as_echo "$PURECOV" >&6; }
11260 else
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 fi
11264
11265
11266   test -n "$PURECOV" && break
11267 done
11268
11269 fi
11270
11271 # Check whether --with-purify was given.
11272 if test "${with_purify+set}" = set; then :
11273   withval=$with_purify;
11274 fi
11275
11276 if test "$with_purify" = yes; then
11277   for ac_prog in purify
11278 do
11279   # Extract the first word of "$ac_prog", so it can be a program name with args.
11280 set dummy $ac_prog; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_PURIFY+:} false; then :
11284   $as_echo_n "(cached) " >&6
11285 else
11286   if test -n "$PURIFY"; then
11287   ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292   IFS=$as_save_IFS
11293   test -z "$as_dir" && as_dir=.
11294     for ac_exec_ext in '' $ac_executable_extensions; do
11295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296     ac_cv_prog_PURIFY="$ac_prog"
11297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298     break 2
11299   fi
11300 done
11301   done
11302 IFS=$as_save_IFS
11303
11304 fi
11305 fi
11306 PURIFY=$ac_cv_prog_PURIFY
11307 if test -n "$PURIFY"; then
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURIFY" >&5
11309 $as_echo "$PURIFY" >&6; }
11310 else
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11313 fi
11314
11315
11316   test -n "$PURIFY" && break
11317 done
11318
11319 fi
11320
11321 # Check whether --enable-java was given.
11322 if test "${enable_java+set}" = set; then :
11323   enableval=$enable_java; enable_java=$enableval
11324 else
11325   enable_java=no
11326 fi
11327
11328 if test "$enable_java" = yes; then
11329   # Extract the first word of "javac", so it can be a program name with args.
11330 set dummy javac; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_path_JAVAC+:} false; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336   case $JAVAC in
11337   [\\/]* | ?:[\\/]*)
11338   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11339   ;;
11340   *)
11341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11343 do
11344   IFS=$as_save_IFS
11345   test -z "$as_dir" && as_dir=.
11346     for ac_exec_ext in '' $ac_executable_extensions; do
11347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
11349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350     break 2
11351   fi
11352 done
11353   done
11354 IFS=$as_save_IFS
11355
11356   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
11357   ;;
11358 esac
11359 fi
11360 JAVAC=$ac_cv_path_JAVAC
11361 if test -n "$JAVAC"; then
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
11363 $as_echo "$JAVAC" >&6; }
11364 else
11365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11367 fi
11368
11369
11370   for ac_prog in javah kaffeh
11371 do
11372   # Extract the first word of "$ac_prog", so it can be a program name with args.
11373 set dummy $ac_prog; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_JAVAH+:} false; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   case $JAVAH in
11380   [\\/]* | ?:[\\/]*)
11381   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11382   ;;
11383   *)
11384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11386 do
11387   IFS=$as_save_IFS
11388   test -z "$as_dir" && as_dir=.
11389     for ac_exec_ext in '' $ac_executable_extensions; do
11390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11391     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11393     break 2
11394   fi
11395 done
11396   done
11397 IFS=$as_save_IFS
11398
11399   ;;
11400 esac
11401 fi
11402 JAVAH=$ac_cv_path_JAVAH
11403 if test -n "$JAVAH"; then
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
11405 $as_echo "$JAVAH" >&6; }
11406 else
11407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409 fi
11410
11411
11412   test -n "$JAVAH" && break
11413 done
11414 test -n "$JAVAH" || JAVAH="no"
11415
11416   for ac_prog in javadoc
11417 do
11418   # Extract the first word of "$ac_prog", so it can be a program name with args.
11419 set dummy $ac_prog; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_prog_JAVADOC+:} false; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   if test -n "$JAVADOC"; then
11426   ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11427 else
11428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11430 do
11431   IFS=$as_save_IFS
11432   test -z "$as_dir" && as_dir=.
11433     for ac_exec_ext in '' $ac_executable_extensions; do
11434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435     ac_cv_prog_JAVADOC="$ac_prog"
11436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437     break 2
11438   fi
11439 done
11440   done
11441 IFS=$as_save_IFS
11442
11443 fi
11444 fi
11445 JAVADOC=$ac_cv_prog_JAVADOC
11446 if test -n "$JAVADOC"; then
11447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
11448 $as_echo "$JAVADOC" >&6; }
11449 else
11450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11452 fi
11453
11454
11455   test -n "$JAVADOC" && break
11456 done
11457 test -n "$JAVADOC" || JAVADOC=":"
11458
11459   if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
11460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Java support" >&5
11461 $as_echo "$as_me: WARNING: Disabling Java support" >&2;}
11462     enable_java=no
11463   fi
11464 else
11465 # Make distcheck work
11466   JAVAC="true"
11467   JAVAH="true"
11468   JAVADOC="true"
11469 fi
11470  if test "$enable_java" = yes; then
11471   JAVA_TRUE=
11472   JAVA_FALSE='#'
11473 else
11474   JAVA_TRUE='#'
11475   JAVA_FALSE=
11476 fi
11477
11478
11479 if test "$enable_java" = yes; then
11480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking JNI cpp flags" >&5
11481 $as_echo_n "checking JNI cpp flags... " >&6; }
11482   if ${sasl_cv_java_includes+:} false; then :
11483   $as_echo_n "(cached) " >&6
11484 else
11485
11486   if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11487     sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11488   else
11489     java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11490
11491
11492 # Check whether --with-javabase was given.
11493 if test "${with_javabase+set}" = set; then :
11494   withval=$with_javabase; java_base=$withval
11495 fi
11496
11497
11498
11499     sasl_cv_java_includes=''
11500     for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
11501       sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
11502     done
11503   fi
11504
11505   sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11506 fi
11507
11508
11509   JAVA_INCLUDES=$sasl_cv_java_includes
11510
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11512 $as_echo "ok" >&6; }
11513
11514   JAVAROOT=".."
11515
11516   JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11517   JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11518 fi
11519
11520  if test "$enable_sample" = yes; then
11521   SAMPLE_TRUE=
11522   SAMPLE_FALSE='#'
11523 else
11524   SAMPLE_TRUE='#'
11525   SAMPLE_FALSE=
11526 fi
11527
11528
11529
11530         save_LIBS="$LIBS"
11531         LIB_SOCKET=""
11532         ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11533 if test "x$ac_cv_func_connect" = xyes; then :
11534   :
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11537 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11538 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11539   $as_echo_n "(cached) " >&6
11540 else
11541   ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-lnsl  $LIBS"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h.  */
11545
11546 /* Override any GCC internal prototype to avoid an error.
11547    Use char because int might match the return type of a GCC
11548    builtin and then its argument prototype would still apply.  */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char gethostbyname ();
11553 int
11554 main ()
11555 {
11556 return gethostbyname ();
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562   ac_cv_lib_nsl_gethostbyname=yes
11563 else
11564   ac_cv_lib_nsl_gethostbyname=no
11565 fi
11566 rm -f core conftest.err conftest.$ac_objext \
11567     conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11571 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11572 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11573   LIB_SOCKET="-lnsl $LIB_SOCKET"
11574 fi
11575
11576                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11577 $as_echo_n "checking for connect in -lsocket... " >&6; }
11578 if ${ac_cv_lib_socket_connect+:} false; then :
11579   $as_echo_n "(cached) " >&6
11580 else
11581   ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lsocket  $LIBS"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h.  */
11585
11586 /* Override any GCC internal prototype to avoid an error.
11587    Use char because int might match the return type of a GCC
11588    builtin and then its argument prototype would still apply.  */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 char connect ();
11593 int
11594 main ()
11595 {
11596 return connect ();
11597   ;
11598   return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"; then :
11602   ac_cv_lib_socket_connect=yes
11603 else
11604   ac_cv_lib_socket_connect=no
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607     conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11611 $as_echo "$ac_cv_lib_socket_connect" >&6; }
11612 if test "x$ac_cv_lib_socket_connect" = xyes; then :
11613   LIB_SOCKET="-lsocket $LIB_SOCKET"
11614 fi
11615
11616
11617 fi
11618
11619         LIBS="$LIB_SOCKET $save_LIBS"
11620         ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
11621 if test "x$ac_cv_func_res_search" = xyes; then :
11622   :
11623 else
11624   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
11625                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h.  */
11627
11628 #include <sys/types.h>
11629 #include <netinet/in.h>
11630 #include <arpa/nameser.h>
11631 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
11632 #include <arpa/nameser_compat.h>
11633 #endif
11634 #include <resolv.h>
11635 int
11636 main ()
11637 {
11638
11639 const char host[12]="openafs.org";
11640 u_char ans[1024];
11641 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
11642 return 0;
11643
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649   LIB_SOCKET="-lresolv $LIB_SOCKET"
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext \
11652     conftest$ac_exeext conftest.$ac_ext
11653
11654 fi
11655
11656         LIBS="$LIB_SOCKET $save_LIBS"
11657         for ac_func in dn_expand dns_lookup
11658 do :
11659   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11662   cat >>confdefs.h <<_ACEOF
11663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11664 _ACEOF
11665
11666 fi
11667 done
11668
11669         LIBS="$save_LIBS"
11670
11671
11672
11673
11674
11675 # Check whether --with-dbpath was given.
11676 if test "${with_dbpath+set}" = set; then :
11677   withval=$with_dbpath; dbpath=$withval
11678 else
11679   dbpath=/etc/sasldb2
11680 fi
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5
11683 $as_echo_n "checking DB path to use... " >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5
11685 $as_echo "$dbpath" >&6; }
11686
11687 cat >>confdefs.h <<_ACEOF
11688 #define SASL_DB_PATH "$dbpath"
11689 _ACEOF
11690
11691
11692 cmu_save_LIBS="$LIBS"
11693
11694 # Check whether --with-dblib was given.
11695 if test "${with_dblib+set}" = set; then :
11696   withval=$with_dblib; dblib=$withval
11697 else
11698   dblib=auto_detect
11699 fi
11700
11701
11702
11703
11704 # Check whether --with-bdb-libdir was given.
11705 if test "${with_bdb_libdir+set}" = set; then :
11706   withval=$with_bdb_libdir; with_bdb_lib=$withval
11707 else
11708    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
11709 fi
11710
11711
11712 # Check whether --with-bdb-incdir was given.
11713 if test "${with_bdb_incdir+set}" = set; then :
11714   withval=$with_bdb_incdir; with_bdb_inc=$withval
11715 else
11716    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
11717 fi
11718
11719
11720
11721 SASL_DB_LIB=""
11722
11723 case "$dblib" in
11724   berkeley)
11725
11726
11727
11728         cmu_save_CPPFLAGS=$CPPFLAGS
11729
11730         if test -d $with_bdb_inc; then
11731             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11732             BDB_INCADD="-I$with_bdb_inc"
11733         else
11734             BDB_INCADD=""
11735         fi
11736
11737                         ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11738 if test "x$ac_cv_header_db_h" = xyes; then :
11739
11740         BDB_SAVE_LDFLAGS=$LDFLAGS
11741
11742         if test -d $with_bdb_lib; then
11743
11744   # this is CMU ADD LIBPATH TO
11745   if test "$andrew_runpath_switch" = "none" ; then
11746         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11747   else
11748         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11749   fi
11750
11751
11752   # this is CMU ADD LIBPATH TO
11753   if test "$andrew_runpath_switch" = "none" ; then
11754         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11755   else
11756         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11757   fi
11758
11759         else
11760             BDB_LIBADD=""
11761         fi
11762
11763         saved_LIBS=$LIBS
11764         for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
11765           do
11766             LIBS="$saved_LIBS -l$dbname"
11767             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h.  */
11769 #include <db.h>
11770 int
11771 main ()
11772 {
11773 db_create(NULL, NULL, 0);
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
11780 else
11781   dblib="no"
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext \
11784     conftest$ac_exeext conftest.$ac_ext
11785             if test "$dblib" = "berkeley"; then break; fi
11786           done
11787         if test "$dblib" = "no"; then
11788             LIBS="$saved_LIBS -ldb"
11789             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791 #include <db.h>
11792 int
11793 main ()
11794 {
11795 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 if ac_fn_c_try_link "$LINENO"; then :
11801   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
11802 else
11803   dblib="no"
11804 fi
11805 rm -f core conftest.err conftest.$ac_objext \
11806     conftest$ac_exeext conftest.$ac_ext
11807         fi
11808         LIBS=$saved_LIBS
11809
11810         LDFLAGS=$BDB_SAVE_LDFLAGS
11811
11812 else
11813   dblib="no"
11814 fi
11815
11816
11817
11818         CPPFLAGS=$cmu_save_CPPFLAGS
11819
11820         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
11821         SASL_DB_INC=$BDB_INCADD
11822         SASL_DB_LIB="${BDB_LIBADD}"
11823         ;;
11824   gdbm)
11825
11826 # Check whether --with-gdbm was given.
11827 if test "${with_gdbm+set}" = set; then :
11828   withval=$with_gdbm; with_gdbm="${withval}"
11829 fi
11830
11831
11832         case "$with_gdbm" in
11833            ""|yes)
11834                ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
11835 if test "x$ac_cv_header_gdbm_h" = xyes; then :
11836
11837                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
11838 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
11839 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
11840   $as_echo_n "(cached) " >&6
11841 else
11842   ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-lgdbm  $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h.  */
11846
11847 /* Override any GCC internal prototype to avoid an error.
11848    Use char because int might match the return type of a GCC
11849    builtin and then its argument prototype would still apply.  */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char gdbm_open ();
11854 int
11855 main ()
11856 {
11857 return gdbm_open ();
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863   ac_cv_lib_gdbm_gdbm_open=yes
11864 else
11865   ac_cv_lib_gdbm_gdbm_open=no
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext \
11868     conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
11872 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
11873 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
11874   SASL_DB_LIB="-lgdbm"
11875 else
11876   dblib="no"
11877 fi
11878
11879 else
11880   dblib="no"
11881 fi
11882
11883
11884                ;;
11885            *)
11886                if test -d $with_gdbm; then
11887                  CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
11888                  LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
11889                  SASL_DB_LIB="-lgdbm"
11890                else
11891                  with_gdbm="no"
11892                fi
11893        esac
11894         ;;
11895   ndbm)
11896                         ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_ndbm_h" = xyes; then :
11898
11899                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
11900 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
11901 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
11902   $as_echo_n "(cached) " >&6
11903 else
11904   ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lndbm  $LIBS"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h.  */
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910    Use char because int might match the return type of a GCC
11911    builtin and then its argument prototype would still apply.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char dbm_open ();
11916 int
11917 main ()
11918 {
11919 return dbm_open ();
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"; then :
11925   ac_cv_lib_ndbm_dbm_open=yes
11926 else
11927   ac_cv_lib_ndbm_dbm_open=no
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext \
11930     conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
11934 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
11935 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
11936   SASL_DB_LIB="-lndbm"
11937 else
11938
11939                                 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
11940 if test "x$ac_cv_func_dbm_open" = xyes; then :
11941
11942 else
11943   dblib="no"
11944 fi
11945
11946 fi
11947
11948 else
11949   dblib="no"
11950 fi
11951
11952
11953         ;;
11954   auto_detect)
11955
11956
11957
11958         cmu_save_CPPFLAGS=$CPPFLAGS
11959
11960         if test -d $with_bdb_inc; then
11961             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11962             BDB_INCADD="-I$with_bdb_inc"
11963         else
11964             BDB_INCADD=""
11965         fi
11966
11967                         ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11968 if test "x$ac_cv_header_db_h" = xyes; then :
11969
11970         BDB_SAVE_LDFLAGS=$LDFLAGS
11971
11972         if test -d $with_bdb_lib; then
11973
11974   # this is CMU ADD LIBPATH TO
11975   if test "$andrew_runpath_switch" = "none" ; then
11976         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11977   else
11978         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11979   fi
11980
11981
11982   # this is CMU ADD LIBPATH TO
11983   if test "$andrew_runpath_switch" = "none" ; then
11984         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11985   else
11986         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11987   fi
11988
11989         else
11990             BDB_LIBADD=""
11991         fi
11992
11993         saved_LIBS=$LIBS
11994         for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
11995           do
11996             LIBS="$saved_LIBS -l$dbname"
11997             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h.  */
11999 #include <db.h>
12000 int
12001 main ()
12002 {
12003 db_create(NULL, NULL, 0);
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
12010 else
12011   dblib="no"
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext \
12014     conftest$ac_exeext conftest.$ac_ext
12015             if test "$dblib" = "berkeley"; then break; fi
12016           done
12017         if test "$dblib" = "no"; then
12018             LIBS="$saved_LIBS -ldb"
12019             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h.  */
12021 #include <db.h>
12022 int
12023 main ()
12024 {
12025 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
12032 else
12033   dblib="no"
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext \
12036     conftest$ac_exeext conftest.$ac_ext
12037         fi
12038         LIBS=$saved_LIBS
12039
12040         LDFLAGS=$BDB_SAVE_LDFLAGS
12041
12042 else
12043   dblib="no"
12044 fi
12045
12046
12047
12048         CPPFLAGS=$cmu_save_CPPFLAGS
12049
12050         if test "$dblib" = no; then
12051                   ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_ndbm_h" = xyes; then :
12053
12054                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
12055 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
12056 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
12057   $as_echo_n "(cached) " >&6
12058 else
12059   ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-lndbm  $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h.  */
12063
12064 /* Override any GCC internal prototype to avoid an error.
12065    Use char because int might match the return type of a GCC
12066    builtin and then its argument prototype would still apply.  */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char dbm_open ();
12071 int
12072 main ()
12073 {
12074 return dbm_open ();
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"; then :
12080   ac_cv_lib_ndbm_dbm_open=yes
12081 else
12082   ac_cv_lib_ndbm_dbm_open=no
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext \
12085     conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
12089 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
12090 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
12091   dblib="ndbm"; SASL_DB_LIB="-lndbm"
12092 else
12093   dblib="weird"
12094 fi
12095
12096 else
12097   dblib="no"
12098 fi
12099
12100
12101           if test "$dblib" = "weird"; then
12102                         ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
12103 if test "x$ac_cv_func_dbm_open" = xyes; then :
12104   dblib="ndbm"
12105 else
12106   dblib="no"
12107 fi
12108
12109           fi
12110
12111           if test "$dblib" = no; then
12112                     ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_gdbm_h" = xyes; then :
12114
12115                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
12116 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
12117 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lgdbm  $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h.  */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126    Use char because int might match the return type of a GCC
12127    builtin and then its argument prototype would still apply.  */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char gdbm_open ();
12132 int
12133 main ()
12134 {
12135 return gdbm_open ();
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141   ac_cv_lib_gdbm_gdbm_open=yes
12142 else
12143   ac_cv_lib_gdbm_gdbm_open=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146     conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
12150 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
12151 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
12152   dblib="gdbm";
12153                                              SASL_DB_LIB="-lgdbm"
12154 else
12155   dblib="no"
12156 fi
12157
12158 else
12159   dblib="no"
12160 fi
12161
12162
12163           fi
12164         else
12165                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12166           SASL_DB_INC=$BDB_INCADD
12167           SASL_DB_LIB="${BDB_LIBADD}"
12168         fi
12169         ;;
12170   none)
12171         ;;
12172   no)
12173         ;;
12174   *)
12175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5
12176 $as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
12177         as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" "$LINENO" 5
12178         dblib=no
12179         ;;
12180 esac
12181 LIBS="$cmu_save_LIBS"
12182
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5
12184 $as_echo_n "checking DB library to use... " >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5
12186 $as_echo "$dblib" >&6; }
12187
12188 SASL_DB_BACKEND="db_${dblib}.lo"
12189 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
12190 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
12191 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
12192 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
12193
12194 case "$dblib" in
12195   gdbm)
12196     SASL_MECHS="$SASL_MECHS libsasldb.la"
12197
12198 $as_echo "#define SASL_GDBM /**/" >>confdefs.h
12199
12200     ;;
12201   ndbm)
12202     SASL_MECHS="$SASL_MECHS libsasldb.la"
12203
12204 $as_echo "#define SASL_NDBM /**/" >>confdefs.h
12205
12206     ;;
12207   berkeley)
12208     SASL_MECHS="$SASL_MECHS libsasldb.la"
12209
12210 $as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h
12211
12212     ;;
12213   *)
12214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5
12215 $as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
12216             SASL_DB_BACKEND="db_none.lo"
12217     SASL_DB_BACKEND_STATIC="db_none.o"
12218     SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
12219     SASL_DB_UTILS=""
12220     SASL_DB_MANS=""
12221     SASL_DB_LIB=""
12222     ;;
12223 esac
12224
12225 if test "$enable_static" = yes; then
12226     if test "$dblib" != "none"; then
12227       SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
12228       SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
12229
12230 $as_echo "#define STATIC_SASLDB /**/" >>confdefs.h
12231
12232     else
12233       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
12234       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
12235     fi
12236 fi
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246 # Do we not install the SASL DB man pages?
12247  if test "x$SASL_DB_MANS" = "x"; then
12248   NO_SASL_DB_MANS_TRUE=
12249   NO_SASL_DB_MANS_FALSE='#'
12250 else
12251   NO_SASL_DB_MANS_TRUE='#'
12252   NO_SASL_DB_MANS_FALSE=
12253 fi
12254
12255
12256 # Check whether --enable-keep_db_open was given.
12257 if test "${enable_keep_db_open+set}" = set; then :
12258   enableval=$enable_keep_db_open; keep_db_open=$enableval
12259 else
12260   keep_db_open=no
12261 fi
12262
12263
12264 # Disable if Berkeley DB is not used
12265 if test "$dblib" != berkeley; then
12266   keep_db_open=no
12267 fi
12268
12269 if test "$keep_db_open" = yes; then
12270
12271 $as_echo "#define KEEP_DB_OPEN /**/" >>confdefs.h
12272
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB handle is kept open in SASLDB" >&5
12275 $as_echo_n "checking if Berkeley DB handle is kept open in SASLDB... " >&6; }
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $keep_db_open" >&5
12277 $as_echo "$keep_db_open" >&6; }
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12281 if ${ac_cv_lib_dl_dlopen+:} false; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284   ac_check_lib_save_LIBS=$LIBS
12285 LIBS="-ldl  $LIBS"
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h.  */
12288
12289 /* Override any GCC internal prototype to avoid an error.
12290    Use char because int might match the return type of a GCC
12291    builtin and then its argument prototype would still apply.  */
12292 #ifdef __cplusplus
12293 extern "C"
12294 #endif
12295 char dlopen ();
12296 int
12297 main ()
12298 {
12299 return dlopen ();
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_link "$LINENO"; then :
12305   ac_cv_lib_dl_dlopen=yes
12306 else
12307   ac_cv_lib_dl_dlopen=no
12308 fi
12309 rm -f core conftest.err conftest.$ac_objext \
12310     conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12315 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12316   SASL_DL_LIB="-ldl"
12317 else
12318   SASL_DL_LIB=""
12319 fi
12320
12321
12322
12323
12324
12325 # Check whether --with-devrandom was given.
12326 if test "${with_devrandom+set}" = set; then :
12327   withval=$with_devrandom; devrandom=$withval
12328 else
12329   devrandom=/dev/random
12330 fi
12331
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking /dev/random to use" >&5
12333 $as_echo_n "checking /dev/random to use... " >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
12335 $as_echo "$devrandom" >&6; }
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define SASL_DEV_RANDOM "$devrandom"
12339 _ACEOF
12340
12341
12342
12343 for ac_prog in nm
12344 do
12345   # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_NM+:} false; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352   if test -n "$NM"; then
12353   ac_cv_prog_NM="$NM" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   test -z "$as_dir" && as_dir=.
12360     for ac_exec_ext in '' $ac_executable_extensions; do
12361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362     ac_cv_prog_NM="$ac_prog"
12363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364     break 2
12365   fi
12366 done
12367   done
12368 IFS=$as_save_IFS
12369
12370 fi
12371 fi
12372 NM=$ac_cv_prog_NM
12373 if test -n "$NM"; then
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12375 $as_echo "$NM" >&6; }
12376 else
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379 fi
12380
12381
12382   test -n "$NM" && break
12383 done
12384
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underscore before symbols" >&5
12387 $as_echo_n "checking for underscore before symbols... " >&6; }
12388 if ${sasl_cv_uscore+:} false; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391
12392     echo "main(){int i=1;}
12393     foo(){int i=6;}" > conftest.c
12394     ${CC} -o a.out conftest.c > /dev/null
12395     if (${NM} a.out | grep _foo) > /dev/null; then
12396       sasl_cv_uscore=yes
12397     else
12398       sasl_cv_uscore=no
12399     fi
12400 fi
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_uscore" >&5
12403 $as_echo "$sasl_cv_uscore" >&6; }
12404 rm -f conftest.c a.out
12405
12406 if test $sasl_cv_uscore = yes; then
12407   if test $ac_cv_lib_dl_dlopen = yes ; then
12408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym adds the underscore for us" >&5
12409 $as_echo_n "checking whether dlsym adds the underscore for us... " >&6; }
12410         cmu_save_LIBS="$LIBS"
12411         LIBS="$LIBS $SASL_DL_LIB"
12412         if ${sasl_cv_dlsym_adds_uscore+:} false; then :
12413   $as_echo_n "(cached) " >&6
12414 else
12415   if test "$cross_compiling" = yes; then :
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiler" >&5
12417 $as_echo "$as_me: WARNING: cross-compiler" >&2;}
12418 else
12419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421
12422 #include <dlfcn.h>
12423 #include <stdio.h>
12424 foo() { int i=0;}
12425 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
12426     if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
12427     if(ptr1 && !ptr2) exit(0); } exit(1); }
12428
12429 _ACEOF
12430 if ac_fn_c_try_run "$LINENO"; then :
12431   sasl_cv_dlsym_adds_uscore=yes
12432 else
12433   sasl_cv_dlsym_adds_uscore=no
12434
12435 $as_echo "#define DLSYM_NEEDS_UNDERSCORE /**/" >>confdefs.h
12436
12437 fi
12438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12439   conftest.$ac_objext conftest.beam conftest.$ac_ext
12440 fi
12441
12442 fi
12443
12444         LIBS="$cmu_save_LIBS"
12445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_dlsym_adds_uscore" >&5
12446 $as_echo "$sasl_cv_dlsym_adds_uscore" >&6; }
12447   fi
12448 fi
12449
12450 for ac_func in syslog
12451 do :
12452   ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12453 if test "x$ac_cv_func_syslog" = xyes; then :
12454   cat >>confdefs.h <<_ACEOF
12455 #define HAVE_SYSLOG 1
12456 _ACEOF
12457
12458 fi
12459 done
12460
12461
12462
12463 # Check whether --with-pam was given.
12464 if test "${with_pam+set}" = set; then :
12465   withval=$with_pam; with_pam=$withval
12466 else
12467   with_pam=yes
12468 fi
12469
12470 if test "$with_pam" != no; then
12471   if test -d $with_pam; then
12472     CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
12473     LDFLAGS="$LDFLAGS -L${with_pam}/lib"
12474   fi
12475   for ac_header in security/pam_appl.h pam/pam_appl.h
12476 do :
12477   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12480   cat >>confdefs.h <<_ACEOF
12481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12482 _ACEOF
12483
12484 fi
12485
12486 done
12487
12488   cmu_save_LIBS="$LIBS"
12489   ac_fn_c_check_func "$LINENO" "pam_start" "ac_cv_func_pam_start"
12490 if test "x$ac_cv_func_pam_start" = xyes; then :
12491   :
12492 else
12493   LIBS="-lpam $LIBS"
12494         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h.  */
12496
12497 #include <sys/types.h>
12498 #ifdef HAVE_PAM_PAM_APPL_H
12499 #include <pam/pam_appl.h>
12500 #endif
12501 #ifdef HAVE_SECURITY_PAM_H
12502 #include <security/pam_appl.h>
12503 #endif
12504 int
12505 main ()
12506 {
12507
12508 const char *service="foo";
12509 const char *user="bar";
12510 pam_handle_t *pamh;
12511 struct pam_conv *conv;
12512 int baz;
12513 baz = pam_start(service, user, conv, &pamh);
12514 return 0;
12515
12516   ;
12517   return 0;
12518 }
12519 _ACEOF
12520 if ac_fn_c_try_link "$LINENO"; then :
12521   LIBPAM="-lpam"
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext \
12524     conftest$ac_exeext conftest.$ac_ext
12525
12526 fi
12527
12528   LIBS="$cmu_save_LIBS $LIBPAM"
12529 fi
12530
12531
12532 # Check whether --with-saslauthd was given.
12533 if test "${with_saslauthd+set}" = set; then :
12534   withval=$with_saslauthd; with_saslauthd=$withval
12535 else
12536   with_saslauthd=yes
12537 fi
12538
12539 if test "$with_saslauthd" != no; then
12540   if test "$with_saslauthd" = yes; then
12541     with_saslauthd="/var/state/saslauthd"
12542   fi
12543
12544 $as_echo "#define HAVE_SASLAUTHD /**/" >>confdefs.h
12545
12546
12547 cat >>confdefs.h <<_ACEOF
12548 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
12549 _ACEOF
12550
12551 fi
12552  if test "$with_saslauthd" != no; then
12553   SASLAUTHD_TRUE=
12554   SASLAUTHD_FALSE='#'
12555 else
12556   SASLAUTHD_TRUE='#'
12557   SASLAUTHD_FALSE=
12558 fi
12559
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include saslauthd" >&5
12561 $as_echo_n "checking if I should include saslauthd... " >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_saslauthd" >&5
12563 $as_echo "$with_saslauthd" >&6; }
12564
12565
12566 # Check whether --with-authdaemond was given.
12567 if test "${with_authdaemond+set}" = set; then :
12568   withval=$with_authdaemond; with_authdaemon=$withval
12569 else
12570   with_authdaemon=yes
12571 fi
12572
12573 if test "$with_authdaemon" != no; then
12574   if test "$with_authdaemon" = yes; then
12575     with_authdaemon="/dev/null"
12576   fi
12577
12578 $as_echo "#define HAVE_AUTHDAEMON /**/" >>confdefs.h
12579
12580
12581 cat >>confdefs.h <<_ACEOF
12582 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
12583 _ACEOF
12584
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to include Courier authdaemond support" >&5
12587 $as_echo_n "checking to include Courier authdaemond support... " >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_authdaemon" >&5
12589 $as_echo "$with_authdaemon" >&6; }
12590
12591
12592 # Check whether --with-pwcheck was given.
12593 if test "${with_pwcheck+set}" = set; then :
12594   withval=$with_pwcheck; with_pwcheck=$withval
12595 else
12596   with_pwcheck=no
12597 fi
12598
12599 if test "$with_pwcheck" != no; then
12600    if test "$with_pwcheck" = yes; then
12601      with_pwcheck=/var/pwcheck
12602    fi
12603
12604 $as_echo "#define HAVE_PWCHECK /**/" >>confdefs.h
12605
12606
12607 cat >>confdefs.h <<_ACEOF
12608 #define PWCHECKDIR "$with_pwcheck"
12609 _ACEOF
12610
12611    ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
12612 if test "x$ac_cv_func_getspnam" = xyes; then :
12613   PWCHECKMETH="getspnam"
12614 else
12615   PWCHECKMETH="getpwnam"
12616 fi
12617
12618
12619 fi
12620  if test "$with_pwcheck" != no; then
12621   PWCHECK_TRUE=
12622   PWCHECK_FALSE='#'
12623 else
12624   PWCHECK_TRUE='#'
12625   PWCHECK_FALSE=
12626 fi
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include pwcheck" >&5
12629 $as_echo_n "checking if I should include pwcheck... " >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pwcheck" >&5
12631 $as_echo "$with_pwcheck" >&6; }
12632
12633
12634 # Check whether --with-ipctype was given.
12635 if test "${with_ipctype+set}" = set; then :
12636   withval=$with_ipctype; with_ipctype=$withval
12637 else
12638   with_ipctype="unix"
12639 fi
12640
12641 IPCTYPE=$with_ipctype
12642
12643 LIB_DOOR=
12644 if test "$with_ipctype" = "doors"; then
12645    LIB_DOOR="-ldoor"
12646
12647 $as_echo "#define USE_DOORS /**/" >>confdefs.h
12648
12649 fi
12650
12651
12652 # Check whether --enable-alwaystrue was given.
12653 if test "${enable_alwaystrue+set}" = set; then :
12654   enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
12655 else
12656   enable_alwaystrue=no
12657 fi
12658
12659 if test "$enable_alwaystrue" = yes; then
12660
12661 $as_echo "#define HAVE_ALWAYSTRUE /**/" >>confdefs.h
12662
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include the alwaystrue verifier" >&5
12665 $as_echo_n "checking if I should include the alwaystrue verifier... " >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alwaystrue" >&5
12667 $as_echo "$enable_alwaystrue" >&6; }
12668
12669 # Check whether --enable-checkapop was given.
12670 if test "${enable_checkapop+set}" = set; then :
12671   enableval=$enable_checkapop; checkapop=$enableval
12672 else
12673   checkapop=yes
12674 fi
12675
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable sasl_checkapop" >&5
12678 $as_echo_n "checking if we should enable sasl_checkapop... " >&6; }
12679 if test "$checkapop" != no; then
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12681 $as_echo "enabled" >&6; }
12682
12683 $as_echo "#define DO_SASL_CHECKAPOP /**/" >>confdefs.h
12684
12685 else
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12687 $as_echo "disabled" >&6; }
12688 fi
12689
12690 # Check whether --enable-cram was given.
12691 if test "${enable_cram+set}" = set; then :
12692   enableval=$enable_cram; cram=$enableval
12693 else
12694   cram=yes
12695 fi
12696
12697
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CRAM-MD5" >&5
12699 $as_echo_n "checking CRAM-MD5... " >&6; }
12700 if test "$cram" != no; then
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12702 $as_echo "enabled" >&6; }
12703   SASL_MECHS="$SASL_MECHS libcrammd5.la"
12704   if test "$enable_static" = yes; then
12705     SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
12706     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
12707
12708 $as_echo "#define STATIC_CRAMMD5 /**/" >>confdefs.h
12709
12710   fi
12711 else
12712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12713 $as_echo "disabled" >&6; }
12714 fi
12715
12716
12717 # Check whether --with-lib-subdir was given.
12718 if test "${with_lib_subdir+set}" = set; then :
12719   withval=$with_lib_subdir;
12720 fi
12721
12722 # The cast to long int works around a bug in the HP C Compiler
12723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725 # This bug is HP SR number 8606223364.
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12727 $as_echo_n "checking size of long... " >&6; }
12728 if ${ac_cv_sizeof_long+:} false; then :
12729   $as_echo_n "(cached) " >&6
12730 else
12731   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12732
12733 else
12734   if test "$ac_cv_type_long" = yes; then
12735      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12737 as_fn_error 77 "cannot compute sizeof (long)
12738 See \`config.log' for more details" "$LINENO" 5; }
12739    else
12740      ac_cv_sizeof_long=0
12741    fi
12742 fi
12743
12744 fi
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12746 $as_echo "$ac_cv_sizeof_long" >&6; }
12747
12748
12749
12750 cat >>confdefs.h <<_ACEOF
12751 #define SIZEOF_LONG $ac_cv_sizeof_long
12752 _ACEOF
12753
12754
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
12756 $as_echo_n "checking what directory libraries are found in... " >&6; }
12757 if ${ac_cv_cmu_lib_subdir+:} false; then :
12758   $as_echo_n "(cached) " >&6
12759 else
12760   test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
12761 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
12762 if test "X$with_lib_subdir" = "X" ; then
12763   ac_cv_cmu_lib_subdir=lib
12764   if test $ac_cv_sizeof_long -eq 4 ; then
12765     test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
12766   fi
12767   if test $ac_cv_sizeof_long -eq 8 ; then
12768     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
12769   fi
12770 else
12771   ac_cv_cmu_lib_subdir=$with_lib_subdir
12772 fi
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
12775 $as_echo "$ac_cv_cmu_lib_subdir" >&6; }
12776 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
12777
12778
12779
12780
12781
12782 # Check whether --with-openssl was given.
12783 if test "${with_openssl+set}" = set; then :
12784   withval=$with_openssl; with_openssl=$withval
12785 else
12786   with_openssl="yes"
12787 fi
12788
12789
12790         save_CPPFLAGS=$CPPFLAGS
12791         save_LDFLAGS=$LDFLAGS
12792
12793         if test -d $with_openssl; then
12794           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
12795
12796   # this is CMU ADD LIBPATH
12797   if test "$andrew_runpath_switch" = "none" ; then
12798         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12799   else
12800         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12801   fi
12802
12803         fi
12804
12805 case "$with_openssl" in
12806         no)
12807           with_openssl="no";;
12808         *)
12809                                   LIB_RSAREF=""
12810                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
12811 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
12812 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
12813   $as_echo_n "(cached) " >&6
12814 else
12815   ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-lrsaref  $LIBS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h.  */
12819
12820 /* Override any GCC internal prototype to avoid an error.
12821    Use char because int might match the return type of a GCC
12822    builtin and then its argument prototype would still apply.  */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 char RSAPublicEncrypt ();
12827 int
12828 main ()
12829 {
12830 return RSAPublicEncrypt ();
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 if ac_fn_c_try_link "$LINENO"; then :
12836   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
12837 else
12838   ac_cv_lib_rsaref_RSAPublicEncrypt=no
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext \
12841     conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
12845 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
12846 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
12847   cmu_have_rsaref=yes;
12848                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lRSAglue" >&5
12849 $as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; }
12850 if ${ac_cv_lib_RSAglue_RSAPublicEncrypt+:} false; then :
12851   $as_echo_n "(cached) " >&6
12852 else
12853   ac_check_lib_save_LIBS=$LIBS
12854 LIBS="-lRSAglue  $LIBS"
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h.  */
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859    Use char because int might match the return type of a GCC
12860    builtin and then its argument prototype would still apply.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char RSAPublicEncrypt ();
12865 int
12866 main ()
12867 {
12868 return RSAPublicEncrypt ();
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 if ac_fn_c_try_link "$LINENO"; then :
12874   ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
12875 else
12876   ac_cv_lib_RSAglue_RSAPublicEncrypt=no
12877 fi
12878 rm -f core conftest.err conftest.$ac_objext \
12879     conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
12883 $as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
12884 if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = xyes; then :
12885   LIB_RSAREF="-lRSAglue -lrsaref"
12886 else
12887   LIB_RSAREF="-lrsaref"
12888 fi
12889
12890 else
12891   cmu_have_rsaref=no
12892 fi
12893
12894
12895                 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
12897
12898                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5
12899 $as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; }
12900 if ${ac_cv_lib_crypto_EVP_DigestInit+:} false; then :
12901   $as_echo_n "(cached) " >&6
12902 else
12903   ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h.  */
12907
12908 /* Override any GCC internal prototype to avoid an error.
12909    Use char because int might match the return type of a GCC
12910    builtin and then its argument prototype would still apply.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 char EVP_DigestInit ();
12915 int
12916 main ()
12917 {
12918 return EVP_DigestInit ();
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 if ac_fn_c_try_link "$LINENO"; then :
12924   ac_cv_lib_crypto_EVP_DigestInit=yes
12925 else
12926   ac_cv_lib_crypto_EVP_DigestInit=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext \
12929     conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
12933 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
12934 if test "x$ac_cv_lib_crypto_EVP_DigestInit" = xyes; then :
12935   with_openssl="yes"
12936 else
12937   with_openssl="no"
12938 fi
12939
12940 else
12941   with_openssl=no
12942 fi
12943
12944
12945                 ;;
12946 esac
12947
12948         if test "$with_openssl" != "no"; then
12949
12950 $as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
12951
12952         else
12953                 CPPFLAGS=$save_CPPFLAGS
12954                 LDFLAGS=$save_LDFLAGS
12955         fi
12956
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12958 $as_echo_n "checking for OpenSSL... " >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
12960 $as_echo "$with_openssl" >&6; }
12961
12962
12963
12964 # Check whether --with-des was given.
12965 if test "${with_des+set}" = set; then :
12966   withval=$with_des; with_des=$withval
12967 else
12968   with_des=yes
12969 fi
12970
12971
12972 LIB_DES=""
12973 if test "$with_des" != no; then
12974   if test -d $with_des; then
12975     CPPFLAGS="$CPPFLAGS -I${with_des}/include"
12976     LDFLAGS="$LDFLAGS -L${with_des}/lib"
12977   fi
12978
12979   if test "$with_openssl" != no; then
12980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
12981 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
12982 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h.  */
12989
12990 /* Override any GCC internal prototype to avoid an error.
12991    Use char because int might match the return type of a GCC
12992    builtin and then its argument prototype would still apply.  */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char des_cbc_encrypt ();
12997 int
12998 main ()
12999 {
13000 return des_cbc_encrypt ();
13001   ;
13002   return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_link "$LINENO"; then :
13006   ac_cv_lib_crypto_des_cbc_encrypt=yes
13007 else
13008   ac_cv_lib_crypto_des_cbc_encrypt=no
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext \
13011     conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13015 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13016 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13017
13018         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13019 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13020
13021 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13022
13023                                        LIB_DES="-lcrypto";
13024                                        with_des=yes
13025 else
13026   with_des=no
13027 fi
13028
13029
13030 else
13031   with_des=no
13032 fi
13033
13034
13035         if test "$with_des" = no; then
13036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
13037 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
13038 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   ac_check_lib_save_LIBS=$LIBS
13042 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h.  */
13045
13046 /* Override any GCC internal prototype to avoid an error.
13047    Use char because int might match the return type of a GCC
13048    builtin and then its argument prototype would still apply.  */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char DES_cbc_encrypt ();
13053 int
13054 main ()
13055 {
13056 return DES_cbc_encrypt ();
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_c_try_link "$LINENO"; then :
13062   ac_cv_lib_crypto_DES_cbc_encrypt=yes
13063 else
13064   ac_cv_lib_crypto_DES_cbc_encrypt=no
13065 fi
13066 rm -f core conftest.err conftest.$ac_objext \
13067     conftest$ac_exeext conftest.$ac_ext
13068 LIBS=$ac_check_lib_save_LIBS
13069 fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13071 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13072 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
13073
13074         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13076
13077 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13078
13079                                        LIB_DES="-lcrypto";
13080                                        with_des=yes
13081 else
13082   with_des=no
13083 fi
13084
13085
13086 else
13087   with_des=no
13088 fi
13089
13090     fi
13091   fi
13092
13093   if test "$with_des" = no; then
13094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13095 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13096 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-ldes  $LIBS"
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h.  */
13103
13104 /* Override any GCC internal prototype to avoid an error.
13105    Use char because int might match the return type of a GCC
13106    builtin and then its argument prototype would still apply.  */
13107 #ifdef __cplusplus
13108 extern "C"
13109 #endif
13110 char des_cbc_encrypt ();
13111 int
13112 main ()
13113 {
13114 return des_cbc_encrypt ();
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_c_try_link "$LINENO"; then :
13120   ac_cv_lib_des_des_cbc_encrypt=yes
13121 else
13122   ac_cv_lib_des_des_cbc_encrypt=no
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext \
13125     conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13129 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13130 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13131   LIB_DES="-ldes";
13132                                         with_des=yes
13133 else
13134   with_des=no
13135 fi
13136
13137   fi
13138
13139   if test "$with_des" = no; then
13140      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13141 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13142 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13143   $as_echo_n "(cached) " >&6
13144 else
13145   ac_check_lib_save_LIBS=$LIBS
13146 LIBS="-ldes425  $LIBS"
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h.  */
13149
13150 /* Override any GCC internal prototype to avoid an error.
13151    Use char because int might match the return type of a GCC
13152    builtin and then its argument prototype would still apply.  */
13153 #ifdef __cplusplus
13154 extern "C"
13155 #endif
13156 char des_cbc_encrypt ();
13157 int
13158 main ()
13159 {
13160 return des_cbc_encrypt ();
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166   ac_cv_lib_des425_des_cbc_encrypt=yes
13167 else
13168   ac_cv_lib_des425_des_cbc_encrypt=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171     conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13173 fi
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13175 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13176 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13177   LIB_DES="-ldes425";
13178                                        with_des=yes
13179 else
13180   with_des=no
13181 fi
13182
13183   fi
13184
13185   if test "$with_des" = no; then
13186      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes524" >&5
13187 $as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; }
13188 if ${ac_cv_lib_des524_des_cbc_encrypt+:} false; then :
13189   $as_echo_n "(cached) " >&6
13190 else
13191   ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-ldes524  $LIBS"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h.  */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197    Use char because int might match the return type of a GCC
13198    builtin and then its argument prototype would still apply.  */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char des_cbc_encrypt ();
13203 int
13204 main ()
13205 {
13206 return des_cbc_encrypt ();
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212   ac_cv_lib_des524_des_cbc_encrypt=yes
13213 else
13214   ac_cv_lib_des524_des_cbc_encrypt=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext \
13217     conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
13221 $as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
13222 if test "x$ac_cv_lib_des524_des_cbc_encrypt" = xyes; then :
13223   LIB_DES="-ldes524";
13224                                        with_des=yes
13225 else
13226   with_des=no
13227 fi
13228
13229   fi
13230
13231   if test "$with_des" = no; then
13232
13233             LIB_RSAREF=""
13234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
13235 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
13236 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lrsaref  $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h.  */
13243
13244 /* Override any GCC internal prototype to avoid an error.
13245    Use char because int might match the return type of a GCC
13246    builtin and then its argument prototype would still apply.  */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char RSAPublicEncrypt ();
13251 int
13252 main ()
13253 {
13254 return RSAPublicEncrypt ();
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13260   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
13261 else
13262   ac_cv_lib_rsaref_RSAPublicEncrypt=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext \
13265     conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
13269 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
13270 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
13271   LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
13272 else
13273   cmu_have_rsaref=no
13274 fi
13275
13276
13277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
13278 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
13279 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h.  */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288    Use char because int might match the return type of a GCC
13289    builtin and then its argument prototype would still apply.  */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char des_cbc_encrypt ();
13294 int
13295 main ()
13296 {
13297 return des_cbc_encrypt ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303   ac_cv_lib_crypto_des_cbc_encrypt=yes
13304 else
13305   ac_cv_lib_crypto_des_cbc_encrypt=no
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308     conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13312 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13313 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13314
13315         ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13316 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13317
13318 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13319
13320                                         LIB_DES="-lcrypto";
13321                                         with_des=yes
13322 else
13323   with_des=no
13324 fi
13325
13326
13327 else
13328   with_des=no
13329 fi
13330
13331   fi
13332 fi
13333
13334 if test "$with_des" != no; then
13335
13336 $as_echo "#define WITH_DES /**/" >>confdefs.h
13337
13338 fi
13339
13340
13341
13342
13343 # Check whether --enable-digest was given.
13344 if test "${enable_digest+set}" = set; then :
13345   enableval=$enable_digest; digest=$enableval
13346 else
13347   digest=yes
13348 fi
13349
13350
13351 if test "$digest" != no; then
13352     if test -d $digest; then
13353     CPPFLAGS="$CPPFLAGS -I$digest/include"
13354     LDFLAGS="$LDFLAGS -L$digest/lib"
13355   fi
13356   if test "$with_des" = no; then
13357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES support for DIGEST-MD5" >&5
13358 $as_echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
13359   fi
13360 fi
13361
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DIGEST-MD5" >&5
13363 $as_echo_n "checking DIGEST-MD5... " >&6; }
13364 if test "$digest" != no; then
13365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13366 $as_echo "enabled" >&6; }
13367   SASL_MECHS="$SASL_MECHS libdigestmd5.la"
13368   if test "$enable_static" = yes; then
13369     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
13370     SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
13371
13372 $as_echo "#define STATIC_DIGESTMD5 /**/" >>confdefs.h
13373
13374   fi
13375 else
13376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13377 $as_echo "disabled" >&6; }
13378 fi
13379
13380 # Check whether --enable-otp was given.
13381 if test "${enable_otp+set}" = set; then :
13382   enableval=$enable_otp; otp=$enableval
13383 else
13384   otp=yes
13385 fi
13386
13387
13388 if test "$with_openssl" = no; then
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- OTP will be disabled" >&5
13390 $as_echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
13391   otp=no
13392 fi
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP" >&5
13395 $as_echo_n "checking OTP... " >&6; }
13396 if test "$otp" != no; then
13397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13398 $as_echo "enabled" >&6; }
13399   OTP_LIBS="-lcrypto $LIB_RSAREF"
13400
13401   SASL_MECHS="$SASL_MECHS libotp.la"
13402   if test "$enable_static" = yes; then
13403     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
13404     SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
13405
13406 $as_echo "#define STATIC_OTP /**/" >>confdefs.h
13407
13408   fi
13409
13410
13411 # Check whether --with-with-opie was given.
13412 if test "${with_with_opie+set}" = set; then :
13413   withval=$with_with_opie; with_opie="${withval}"
13414 fi
13415
13416
13417   case "$with_opie" in
13418         ""|yes)
13419                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opiechallenge in -lopie" >&5
13420 $as_echo_n "checking for opiechallenge in -lopie... " >&6; }
13421 if ${ac_cv_lib_opie_opiechallenge+:} false; then :
13422   $as_echo_n "(cached) " >&6
13423 else
13424   ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lopie  $LIBS"
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h.  */
13428
13429 /* Override any GCC internal prototype to avoid an error.
13430    Use char because int might match the return type of a GCC
13431    builtin and then its argument prototype would still apply.  */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 char opiechallenge ();
13436 int
13437 main ()
13438 {
13439 return opiechallenge ();
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_link "$LINENO"; then :
13445   ac_cv_lib_opie_opiechallenge=yes
13446 else
13447   ac_cv_lib_opie_opiechallenge=no
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext \
13450     conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_opiechallenge" >&5
13454 $as_echo "$ac_cv_lib_opie_opiechallenge" >&6; }
13455 if test "x$ac_cv_lib_opie_opiechallenge" = xyes; then :
13456
13457                         ac_fn_c_check_header_mongrel "$LINENO" "opie.h" "ac_cv_header_opie_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_opie_h" = xyes; then :
13459   with_opie="yes"
13460 else
13461   with_opie="no"
13462 fi
13463
13464
13465 else
13466   with_opie="no"
13467 fi
13468
13469                 ;;
13470         *)
13471                 if test -d $with_opie; then
13472                   CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
13473                   LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
13474                 else
13475                   with_opie="no"
13476                 fi
13477                 ;;
13478   esac
13479
13480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPIE" >&5
13481 $as_echo_n "checking for OPIE... " >&6; }
13482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opie" >&5
13483 $as_echo "$with_opie" >&6; }
13484
13485   if test "$with_opie" != no; then
13486
13487 $as_echo "#define HAVE_OPIE /**/" >>confdefs.h
13488
13489     OTP_LIBS="$OTP_LIBS -lopie"
13490   fi
13491
13492
13493
13494 else
13495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13496 $as_echo "disabled" >&6; }
13497 fi
13498
13499 # Check whether --enable-srp was given.
13500 if test "${enable_srp+set}" = set; then :
13501   enableval=$enable_srp; srp=$enableval
13502 else
13503   srp=no
13504 fi
13505
13506
13507 if test "$with_openssl" = no; then
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- SRP will be disabled" >&5
13509 $as_echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
13510   srp=no
13511 fi
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SRP" >&5
13514 $as_echo_n "checking SRP... " >&6; }
13515 if test "$srp" != no; then
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13517 $as_echo "enabled" >&6; }
13518   SRP_LIBS="-lcrypto $LIB_RSAREF"
13519
13520   SASL_MECHS="$SASL_MECHS libsrp.la"
13521   if test "$enable_static" = yes; then
13522     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
13523     SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
13524
13525 $as_echo "#define STATIC_SRP /**/" >>confdefs.h
13526
13527   fi
13528
13529   # Check whether --enable-srp_setpass was given.
13530 if test "${enable_srp_setpass+set}" = set; then :
13531   enableval=$enable_srp_setpass; srp_setpass=$enableval
13532 else
13533   srp_setpass=no
13534 fi
13535
13536
13537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable setting SRP secrets with saslpasswd" >&5
13538 $as_echo_n "checking if we should enable setting SRP secrets with saslpasswd... " >&6; }
13539   if test "$srp_setpass" != no; then
13540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13541 $as_echo "enabled" >&6; }
13542
13543 $as_echo "#define DO_SRP_SETPASS /**/" >>confdefs.h
13544
13545   else
13546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13547 $as_echo "disabled" >&6; }
13548   fi
13549
13550
13551 else
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13553 $as_echo "disabled" >&6; }
13554 fi
13555
13556
13557
13558
13559   # Check whether --enable-krb4 was given.
13560 if test "${enable_krb4+set}" = set; then :
13561   enableval=$enable_krb4; krb4=$enableval
13562 else
13563   krb4=no
13564 fi
13565
13566
13567   if test "$krb4" != no; then
13568                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
13569 $as_echo_n "checking for res_search in -lresolv... " >&6; }
13570 if ${ac_cv_lib_resolv_res_search+:} false; then :
13571   $as_echo_n "(cached) " >&6
13572 else
13573   ac_check_lib_save_LIBS=$LIBS
13574 LIBS="-lresolv  $LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h.  */
13577
13578 /* Override any GCC internal prototype to avoid an error.
13579    Use char because int might match the return type of a GCC
13580    builtin and then its argument prototype would still apply.  */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char res_search ();
13585 int
13586 main ()
13587 {
13588 return res_search ();
13589   ;
13590   return 0;
13591 }
13592 _ACEOF
13593 if ac_fn_c_try_link "$LINENO"; then :
13594   ac_cv_lib_resolv_res_search=yes
13595 else
13596   ac_cv_lib_resolv_res_search=no
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext \
13599     conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13601 fi
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
13603 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
13604 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
13605   cat >>confdefs.h <<_ACEOF
13606 #define HAVE_LIBRESOLV 1
13607 _ACEOF
13608
13609   LIBS="-lresolv $LIBS"
13610
13611 fi
13612
13613
13614             if test -d ${krb4}; then
13615        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
13616 $as_echo_n "checking for Kerberos includes... " >&6; }
13617 if ${cyrus_krbinclude+:} false; then :
13618   $as_echo_n "(cached) " >&6
13619 else
13620
13621          for krbhloc in include/kerberosIV include/kerberos include
13622          do
13623            if test -f ${krb4}/${krbhloc}/krb.h ; then
13624              cyrus_krbinclude=${krb4}/${krbhloc}
13625              break
13626            fi
13627          done
13628
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_krbinclude" >&5
13631 $as_echo "$cyrus_krbinclude" >&6; }
13632
13633        if test -n "${cyrus_krbinclude}"; then
13634          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
13635        fi
13636        LDFLAGS="$LDFLAGS -L$krb4/lib"
13637     fi
13638
13639     if test "$with_des" != no; then
13640       ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13641 if test "x$ac_cv_header_krb_h" = xyes; then :
13642
13643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13644 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13645 if ${ac_cv_lib_com_err_com_err+:} false; then :
13646   $as_echo_n "(cached) " >&6
13647 else
13648   ac_check_lib_save_LIBS=$LIBS
13649 LIBS="-lcom_err  $LIBS"
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h.  */
13652
13653 /* Override any GCC internal prototype to avoid an error.
13654    Use char because int might match the return type of a GCC
13655    builtin and then its argument prototype would still apply.  */
13656 #ifdef __cplusplus
13657 extern "C"
13658 #endif
13659 char com_err ();
13660 int
13661 main ()
13662 {
13663 return com_err ();
13664   ;
13665   return 0;
13666 }
13667 _ACEOF
13668 if ac_fn_c_try_link "$LINENO"; then :
13669   ac_cv_lib_com_err_com_err=yes
13670 else
13671   ac_cv_lib_com_err_com_err=no
13672 fi
13673 rm -f core conftest.err conftest.$ac_objext \
13674     conftest$ac_exeext conftest.$ac_ext
13675 LIBS=$ac_check_lib_save_LIBS
13676 fi
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13678 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13679 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13680
13681           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13682 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13683 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13684   $as_echo_n "(cached) " >&6
13685 else
13686   ac_check_lib_save_LIBS=$LIBS
13687 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h.  */
13690
13691 /* Override any GCC internal prototype to avoid an error.
13692    Use char because int might match the return type of a GCC
13693    builtin and then its argument prototype would still apply.  */
13694 #ifdef __cplusplus
13695 extern "C"
13696 #endif
13697 char krb_mk_priv ();
13698 int
13699 main ()
13700 {
13701 return krb_mk_priv ();
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"; then :
13707   ac_cv_lib_krb_krb_mk_priv=yes
13708 else
13709   ac_cv_lib_krb_krb_mk_priv=no
13710 fi
13711 rm -f core conftest.err conftest.$ac_objext \
13712     conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13714 fi
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13716 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13717 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13718   COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13719 else
13720   krb4lib=no
13721 fi
13722
13723 else
13724
13725           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13726 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13727 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13728   $as_echo_n "(cached) " >&6
13729 else
13730   ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-lkrb $LIB_DES $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h.  */
13734
13735 /* Override any GCC internal prototype to avoid an error.
13736    Use char because int might match the return type of a GCC
13737    builtin and then its argument prototype would still apply.  */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char krb_mk_priv ();
13742 int
13743 main ()
13744 {
13745 return krb_mk_priv ();
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"; then :
13751   ac_cv_lib_krb_krb_mk_priv=yes
13752 else
13753   ac_cv_lib_krb_krb_mk_priv=no
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext \
13756     conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13760 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13761 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13762   COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13763 else
13764   krb4lib=no
13765 fi
13766
13767 fi
13768
13769 else
13770   krb4="no"
13771 fi
13772
13773
13774
13775       if test "$krb4" != "no" -a "$krb4lib" = "no"; then
13776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb4" >&5
13777 $as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; }
13778 if ${ac_cv_lib_krb4_krb_mk_priv+:} false; then :
13779   $as_echo_n "(cached) " >&6
13780 else
13781   ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-lkrb4 $LIB_DES $LIBS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785
13786 /* Override any GCC internal prototype to avoid an error.
13787    Use char because int might match the return type of a GCC
13788    builtin and then its argument prototype would still apply.  */
13789 #ifdef __cplusplus
13790 extern "C"
13791 #endif
13792 char krb_mk_priv ();
13793 int
13794 main ()
13795 {
13796 return krb_mk_priv ();
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 if ac_fn_c_try_link "$LINENO"; then :
13802   ac_cv_lib_krb4_krb_mk_priv=yes
13803 else
13804   ac_cv_lib_krb4_krb_mk_priv=no
13805 fi
13806 rm -f core conftest.err conftest.$ac_objext \
13807     conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13809 fi
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
13811 $as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; }
13812 if test "x$ac_cv_lib_krb4_krb_mk_priv" = xyes; then :
13813   COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
13814 else
13815   krb4=no
13816 fi
13817
13818       fi
13819       if test "$krb4" = no; then
13820           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
13821 $as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
13822       fi
13823     else
13824       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
13825 $as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
13826       krb4=no
13827     fi
13828   fi
13829
13830   if test "$krb4" != no; then
13831     cmu_save_LIBS="$LIBS"
13832     LIBS="$LIBS $SASL_KRB_LIB"
13833     for ac_func in krb_get_err_text
13834 do :
13835   ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
13836 if test "x$ac_cv_func_krb_get_err_text" = xyes; then :
13837   cat >>confdefs.h <<_ACEOF
13838 #define HAVE_KRB_GET_ERR_TEXT 1
13839 _ACEOF
13840
13841 fi
13842 done
13843
13844     LIBS="$cmu_save_LIBS"
13845   fi
13846
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking KERBEROS_V4" >&5
13848 $as_echo_n "checking KERBEROS_V4... " >&6; }
13849   if test "$krb4" != no; then
13850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13851 $as_echo "enabled" >&6; }
13852     SASL_MECHS="$SASL_MECHS libkerberos4.la"
13853     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
13854     SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
13855
13856 $as_echo "#define STATIC_KERBEROS4 /**/" >>confdefs.h
13857
13858
13859 $as_echo "#define HAVE_KRB /**/" >>confdefs.h
13860
13861     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
13862   else
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13864 $as_echo "disabled" >&6; }
13865   fi
13866
13867
13868 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13869 if test "x$ac_cv_func_crypt" = xyes; then :
13870   cmu_have_crypt=yes
13871 else
13872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13873 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13874 if ${ac_cv_lib_crypt_crypt+:} false; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   ac_check_lib_save_LIBS=$LIBS
13878 LIBS="-lcrypt  $LIBS"
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h.  */
13881
13882 /* Override any GCC internal prototype to avoid an error.
13883    Use char because int might match the return type of a GCC
13884    builtin and then its argument prototype would still apply.  */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 char crypt ();
13889 int
13890 main ()
13891 {
13892 return crypt ();
13893   ;
13894   return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898   ac_cv_lib_crypt_crypt=yes
13899 else
13900   ac_cv_lib_crypt_crypt=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext \
13903     conftest$ac_exeext conftest.$ac_ext
13904 LIBS=$ac_check_lib_save_LIBS
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13907 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13908 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13909   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
13910 else
13911   cmu_have_crypt=no
13912 fi
13913
13914 fi
13915
13916
13917
13918
13919
13920 # Check whether --enable-gssapi was given.
13921 if test "${enable_gssapi+set}" = set; then :
13922   enableval=$enable_gssapi; gssapi=$enableval
13923 else
13924   gssapi=yes
13925 fi
13926
13927
13928 # Check whether --with-gss_impl was given.
13929 if test "${with_gss_impl+set}" = set; then :
13930   withval=$with_gss_impl; gss_impl=$withval
13931 else
13932   gss_impl=auto
13933 fi
13934
13935
13936 if test "$gssapi" != no; then
13937   platform=
13938   case "${host}" in
13939     *-*-linux*)
13940       platform=__linux
13941       ;;
13942     *-*-hpux*)
13943       platform=__hpux
13944       ;;
13945     *-*-irix*)
13946       platform=__irix
13947       ;;
13948     *-*-solaris2*)
13949 # When should we use __sunos?
13950       platform=__solaris
13951       ;;
13952     *-*-aix*)
13953 ###_AIX
13954       platform=__aix
13955       ;;
13956     *)
13957       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
13958 $as_echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;}
13959       if test "$gss_impl" = "cybersafe"; then
13960         as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
13961       fi
13962       ;;
13963   esac
13964
13965   cmu_saved_CPPFLAGS=$CPPFLAGS
13966
13967   if test -d ${gssapi}; then
13968     CPPFLAGS="$CPPFLAGS -I$gssapi/include"
13969 # We want to keep -I in our CPPFLAGS, but only if we succeed
13970     cmu_saved_CPPFLAGS=$CPPFLAGS
13971 ### I am not sure how useful is this (and whether this is required at all
13972 ### especially when we have to provide two -L flags for new CyberSafe
13973     LDFLAGS="$LDFLAGS -L$gssapi/lib"
13974
13975     if test -n "$platform"; then
13976       if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
13977         CPPFLAGS="$CPPFLAGS -D$platform"
13978         if test -d "${gssapi}/appsec-sdk/include"; then
13979           CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
13980         fi
13981       fi
13982     fi
13983   fi
13984   ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13985 if test "x$ac_cv_header_gssapi_h" = xyes; then :
13986
13987 $as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
13988
13989 else
13990   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13991 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
13992
13993 else
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no include files found" >&5
13995 $as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
13996 fi
13997
13998
13999 fi
14000
14001
14002   for ac_header in gssapi/gssapi_ext.h
14003 do :
14004   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
14005 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes; then :
14006   cat >>confdefs.h <<_ACEOF
14007 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
14008 _ACEOF
14009
14010 fi
14011
14012 done
14013
14014   CPPFLAGS=$cmu_saved_CPPFLAGS
14015
14016 fi
14017
14018 if test "$gssapi" != no; then
14019   # We need to find out which gssapi implementation we are
14020   # using. Supported alternatives are: MIT Kerberos 5,
14021   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
14022   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
14023   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
14024   #
14025   # The choice is reflected in GSSAPIBASE_LIBS
14026
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14028 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14029 if ${ac_cv_lib_resolv_res_search+:} false; then :
14030   $as_echo_n "(cached) " >&6
14031 else
14032   ac_check_lib_save_LIBS=$LIBS
14033 LIBS="-lresolv  $LIBS"
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h.  */
14036
14037 /* Override any GCC internal prototype to avoid an error.
14038    Use char because int might match the return type of a GCC
14039    builtin and then its argument prototype would still apply.  */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 char res_search ();
14044 int
14045 main ()
14046 {
14047 return res_search ();
14048   ;
14049   return 0;
14050 }
14051 _ACEOF
14052 if ac_fn_c_try_link "$LINENO"; then :
14053   ac_cv_lib_resolv_res_search=yes
14054 else
14055   ac_cv_lib_resolv_res_search=no
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext \
14058     conftest$ac_exeext conftest.$ac_ext
14059 LIBS=$ac_check_lib_save_LIBS
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14062 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14063 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14064   cat >>confdefs.h <<_ACEOF
14065 #define HAVE_LIBRESOLV 1
14066 _ACEOF
14067
14068   LIBS="-lresolv $LIBS"
14069
14070 fi
14071
14072   if test -d ${gssapi}; then
14073      gssapi_dir="${gssapi}/lib"
14074      GSSAPIBASE_LIBS="-L$gssapi_dir"
14075      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
14076   else
14077      # FIXME: This is only used for building cyrus, and then only as
14078      # a real hack.  it needs to be fixed.
14079      gssapi_dir="/usr/local/lib"
14080   fi
14081
14082   # Check a full link against the Heimdal libraries.
14083   # If this fails, check a full link against the MIT libraries.
14084   # If this fails, check a full link against the CyberSafe libraries.
14085   # If this fails, check a full link against the Solaris 8 and up libgss.
14086
14087   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
14088     gss_failed=0
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
14090 $as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
14091 if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
14092   $as_echo_n "(cached) " >&6
14093 else
14094   ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h.  */
14098
14099 /* Override any GCC internal prototype to avoid an error.
14100    Use char because int might match the return type of a GCC
14101    builtin and then its argument prototype would still apply.  */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char gss_unwrap ();
14106 int
14107 main ()
14108 {
14109 return gss_unwrap ();
14110   ;
14111   return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115   ac_cv_lib_gssapi_gss_unwrap=yes
14116 else
14117   ac_cv_lib_gssapi_gss_unwrap=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext \
14120     conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
14124 $as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
14125 if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
14126   gss_impl="heimdal"
14127 else
14128   gss_failed=1
14129 fi
14130
14131     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14132       gss_impl="failed"
14133     fi
14134   fi
14135
14136   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
14137     # check for libkrb5support first
14138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14139 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14140 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14141   $as_echo_n "(cached) " >&6
14142 else
14143   ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h.  */
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149    Use char because int might match the return type of a GCC
14150    builtin and then its argument prototype would still apply.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char krb5int_getspecific ();
14155 int
14156 main ()
14157 {
14158 return krb5int_getspecific ();
14159   ;
14160   return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164   ac_cv_lib_krb5support_krb5int_getspecific=yes
14165 else
14166   ac_cv_lib_krb5support_krb5int_getspecific=no
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext \
14169     conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14173 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14174 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14175   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
14176 fi
14177
14178
14179     gss_failed=0
14180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
14181 $as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
14182 if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
14183   $as_echo_n "(cached) " >&6
14184 else
14185   ac_check_lib_save_LIBS=$LIBS
14186 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h.  */
14189
14190 /* Override any GCC internal prototype to avoid an error.
14191    Use char because int might match the return type of a GCC
14192    builtin and then its argument prototype would still apply.  */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 char gss_unwrap ();
14197 int
14198 main ()
14199 {
14200 return gss_unwrap ();
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 if ac_fn_c_try_link "$LINENO"; then :
14206   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
14207 else
14208   ac_cv_lib_gssapi_krb5_gss_unwrap=no
14209 fi
14210 rm -f core conftest.err conftest.$ac_objext \
14211     conftest$ac_exeext conftest.$ac_ext
14212 LIBS=$ac_check_lib_save_LIBS
14213 fi
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
14215 $as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
14216 if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
14217   gss_impl="mit"
14218 else
14219   gss_failed=1
14220 fi
14221
14222     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14223       gss_impl="failed"
14224     fi
14225   fi
14226
14227   # For Cybersafe one has to set a platform define in order to make compilation work
14228   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
14229
14230     cmu_saved_CPPFLAGS=$CPPFLAGS
14231     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
14232 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
14233     if test -d "${gssapi}/appsec-rt/lib"; then
14234       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
14235     fi
14236     CPPFLAGS="$CPPFLAGS -D$platform"
14237     if test -d "${gssapi}/appsec-sdk/include"; then
14238       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
14239     fi
14240
14241     gss_failed=0
14242
14243 # Check for CyberSafe with two libraries first, than fall back to a single
14244 # library (older CyberSafe)
14245
14246     unset ac_cv_lib_gss_csf_gss_acq_user
14247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14248 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14249 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14250   $as_echo_n "(cached) " >&6
14251 else
14252   ac_check_lib_save_LIBS=$LIBS
14253 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h.  */
14256
14257 /* Override any GCC internal prototype to avoid an error.
14258    Use char because int might match the return type of a GCC
14259    builtin and then its argument prototype would still apply.  */
14260 #ifdef __cplusplus
14261 extern "C"
14262 #endif
14263 char csf_gss_acq_user ();
14264 int
14265 main ()
14266 {
14267 return csf_gss_acq_user ();
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 if ac_fn_c_try_link "$LINENO"; then :
14273   ac_cv_lib_gss_csf_gss_acq_user=yes
14274 else
14275   ac_cv_lib_gss_csf_gss_acq_user=no
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext \
14278     conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14280 fi
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14282 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14283 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14284   gss_impl="cybersafe03"
14285 else
14286   unset ac_cv_lib_gss_csf_gss_acq_user;
14287                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14288 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14289 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14290   $as_echo_n "(cached) " >&6
14291 else
14292   ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h.  */
14296
14297 /* Override any GCC internal prototype to avoid an error.
14298    Use char because int might match the return type of a GCC
14299    builtin and then its argument prototype would still apply.  */
14300 #ifdef __cplusplus
14301 extern "C"
14302 #endif
14303 char csf_gss_acq_user ();
14304 int
14305 main ()
14306 {
14307 return csf_gss_acq_user ();
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 if ac_fn_c_try_link "$LINENO"; then :
14313   ac_cv_lib_gss_csf_gss_acq_user=yes
14314 else
14315   ac_cv_lib_gss_csf_gss_acq_user=no
14316 fi
14317 rm -f core conftest.err conftest.$ac_objext \
14318     conftest$ac_exeext conftest.$ac_ext
14319 LIBS=$ac_check_lib_save_LIBS
14320 fi
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14322 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14323 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14324   gss_impl="cybersafe"
14325 else
14326   gss_failed=1
14327 fi
14328
14329 fi
14330
14331
14332     if test "$gss_failed" = "1"; then
14333 # Restore variables
14334       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
14335       CPPFLAGS=$cmu_saved_CPPFLAGS
14336
14337       if test "$gss_impl" != "auto"; then
14338         gss_impl="failed"
14339       fi
14340     fi
14341   fi
14342
14343   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
14344     gss_failed=0
14345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
14346 $as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
14347 if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
14348   $as_echo_n "(cached) " >&6
14349 else
14350   ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-lgss -lgss $LIBS"
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h.  */
14354
14355 /* Override any GCC internal prototype to avoid an error.
14356    Use char because int might match the return type of a GCC
14357    builtin and then its argument prototype would still apply.  */
14358 #ifdef __cplusplus
14359 extern "C"
14360 #endif
14361 char gss_unwrap ();
14362 int
14363 main ()
14364 {
14365 return gss_unwrap ();
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_link "$LINENO"; then :
14371   ac_cv_lib_gss_gss_unwrap=yes
14372 else
14373   ac_cv_lib_gss_gss_unwrap=no
14374 fi
14375 rm -f core conftest.err conftest.$ac_objext \
14376     conftest$ac_exeext conftest.$ac_ext
14377 LIBS=$ac_check_lib_save_LIBS
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
14380 $as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
14381 if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
14382   gss_impl="seam"
14383 else
14384   gss_failed=1
14385 fi
14386
14387     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14388       gss_impl="failed"
14389     fi
14390   fi
14391
14392   if test "$gss_impl" = "mit"; then
14393     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
14394     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
14395   elif test "$gss_impl" = "heimdal"; then
14396     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
14397     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
14398     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
14399   elif test "$gss_impl" = "cybersafe03"; then
14400 # Version of CyberSafe with two libraries
14401     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14402     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
14403     # there is no static libgss for CyberSafe
14404     GSSAPIBASE_STATIC_LIBS=none
14405   elif test "$gss_impl" = "cybersafe"; then
14406     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14407     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
14408     # there is no static libgss for CyberSafe
14409     GSSAPIBASE_STATIC_LIBS=none
14410   elif test "$gss_impl" = "seam"; then
14411     GSSAPIBASE_LIBS=-lgss
14412     # there is no static libgss on Solaris 8 and up
14413     GSSAPIBASE_STATIC_LIBS=none
14414   elif test "$gss_impl" = "failed"; then
14415     gssapi="no"
14416     GSSAPIBASE_LIBS=
14417     GSSAPIBASE_STATIC_LIBS=
14418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
14419 $as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
14420   else
14421     gssapi="no"
14422     GSSAPIBASE_LIBS=
14423     GSSAPIBASE_STATIC_LIBS=
14424     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
14425 $as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
14426   fi
14427 fi
14428
14429 #
14430 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
14431 # in gssapi\rfckrb5.h
14432 #
14433 if test "$gssapi" != "no"; then
14434   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h.  */
14437 #include <gssapi/gssapi.h>
14438                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
14439                     hostbased_service_gss_nt_yes
14440                   #endif
14441 _ACEOF
14442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14443   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
14444
14445 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14446
14447 else
14448   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14449 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14450 fi
14451 rm -f conftest*
14452
14453
14454   elif test "$ac_cv_header_gssapi_h" = "yes"; then
14455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h.  */
14457 #include <gssapi.h>
14458
14459 _ACEOF
14460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14461   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14462
14463 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14464
14465 fi
14466 rm -f conftest*
14467
14468   elif test "$ac_cv_header_gssapi_gssapi_h"; then
14469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h.  */
14471 #include <gssapi/gssapi.h>
14472
14473 _ACEOF
14474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14475   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14476
14477 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14478
14479 fi
14480 rm -f conftest*
14481
14482   fi
14483
14484   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h.  */
14487 #include <gssapi/gssapi.h>
14488                   #ifdef GSS_C_NT_USER_NAME
14489                    user_name_yes_gss_nt
14490                   #endif
14491 _ACEOF
14492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14493   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
14494
14495 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14496
14497 else
14498   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14499 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14500 fi
14501 rm -f conftest*
14502
14503   elif test "$ac_cv_header_gssapi_h" = "yes"; then
14504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h.  */
14506 #include <gssapi.h>
14507
14508 _ACEOF
14509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14510   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14511
14512 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14513
14514 fi
14515 rm -f conftest*
14516
14517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h.  */
14519 #include <gssapi.h>
14520
14521 _ACEOF
14522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14523   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14524   rfc5587=yes
14525 fi
14526 rm -f conftest*
14527
14528   elif test "$ac_cv_header_gssapi_gssapi_h"; then
14529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h.  */
14531 #include <gssapi/gssapi.h>
14532
14533 _ACEOF
14534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14535   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14536
14537 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14538
14539 fi
14540 rm -f conftest*
14541
14542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544 #include <gssapi/gssapi.h>
14545
14546 _ACEOF
14547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14548   $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14549   rfc5587=yes
14550 fi
14551 rm -f conftest*
14552
14553   fi
14554 fi
14555
14556 GSSAPI_LIBS=""
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
14558 $as_echo_n "checking GSSAPI... " >&6; }
14559 if test "$gssapi" != no; then
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
14561 $as_echo "with implementation ${gss_impl}" >&6; }
14562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14563 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14564 if ${ac_cv_lib_resolv_res_search+:} false; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   ac_check_lib_save_LIBS=$LIBS
14568 LIBS="-lresolv  $LIBS"
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h.  */
14571
14572 /* Override any GCC internal prototype to avoid an error.
14573    Use char because int might match the return type of a GCC
14574    builtin and then its argument prototype would still apply.  */
14575 #ifdef __cplusplus
14576 extern "C"
14577 #endif
14578 char res_search ();
14579 int
14580 main ()
14581 {
14582 return res_search ();
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_link "$LINENO"; then :
14588   ac_cv_lib_resolv_res_search=yes
14589 else
14590   ac_cv_lib_resolv_res_search=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext \
14593     conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14597 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14598 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14599   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
14600 fi
14601
14602   SASL_MECHS="$SASL_MECHS libgssapiv2.la"
14603   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
14604   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
14605   if test "$rfc5587" = "yes"; then
14606     SASL_MECHS="$SASL_MECHS libgs2.la"
14607     SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
14608     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
14609   fi
14610   cmu_save_LIBS="$LIBS"
14611   LIBS="$LIBS $GSSAPIBASE_LIBS"
14612   for ac_func in gsskrb5_register_acceptor_identity
14613 do :
14614   ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
14615 if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
14616   cat >>confdefs.h <<_ACEOF
14617 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
14618 _ACEOF
14619
14620 fi
14621 done
14622
14623   for ac_func in gss_decapsulate_token
14624 do :
14625   ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
14626 if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
14627   cat >>confdefs.h <<_ACEOF
14628 #define HAVE_GSS_DECAPSULATE_TOKEN 1
14629 _ACEOF
14630
14631 fi
14632 done
14633
14634   for ac_func in gss_encapsulate_token
14635 do :
14636   ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
14637 if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
14638   cat >>confdefs.h <<_ACEOF
14639 #define HAVE_GSS_ENCAPSULATE_TOKEN 1
14640 _ACEOF
14641
14642 fi
14643 done
14644
14645   for ac_func in gss_oid_equal
14646 do :
14647   ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
14648 if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
14649   cat >>confdefs.h <<_ACEOF
14650 #define HAVE_GSS_OID_EQUAL 1
14651 _ACEOF
14652
14653 fi
14654 done
14655
14656   LIBS="$cmu_save_LIBS"
14657 else
14658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14659 $as_echo "disabled" >&6; }
14660 fi
14661
14662
14663
14664
14665 if test "$gssapi" != "no"; then
14666
14667 $as_echo "#define STATIC_GSSAPIV2 /**/" >>confdefs.h
14668
14669   mutex_default="no"
14670   if test "$gss_impl" = "mit"; then
14671      mutex_default="yes"
14672   fi
14673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to use mutexes aroung GSS calls" >&5
14674 $as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
14675   # Check whether --enable-gss_mutexes was given.
14676 if test "${enable_gss_mutexes+set}" = set; then :
14677   enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
14678 else
14679   use_gss_mutexes=$mutex_default
14680 fi
14681
14682   if test $use_gss_mutexes = "yes"; then
14683
14684 $as_echo "#define GSS_USE_MUTEXES /**/" >>confdefs.h
14685
14686   fi
14687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gss_mutexes" >&5
14688 $as_echo "$use_gss_mutexes" >&6; }
14689 fi
14690
14691
14692
14693
14694  # Check whether --enable-plain was given.
14695 if test "${enable_plain+set}" = set; then :
14696   enableval=$enable_plain; plain=$enableval
14697 else
14698   plain=yes
14699 fi
14700
14701
14702  PLAIN_LIBS=""
14703  if test "$plain" != no; then
14704     if test "$cmu_have_crypt" = yes; then
14705     PLAIN_LIBS=$LIB_CRYPT
14706   fi
14707  fi
14708
14709
14710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLAIN" >&5
14711 $as_echo_n "checking PLAIN... " >&6; }
14712  if test "$plain" != no; then
14713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14714 $as_echo "enabled" >&6; }
14715   SASL_MECHS="$SASL_MECHS libplain.la"
14716   if test "$enable_static" = yes; then
14717     SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
14718     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
14719
14720 $as_echo "#define STATIC_PLAIN /**/" >>confdefs.h
14721
14722   fi
14723  else
14724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14725 $as_echo "disabled" >&6; }
14726  fi
14727
14728
14729 # Check whether --enable-anon was given.
14730 if test "${enable_anon+set}" = set; then :
14731   enableval=$enable_anon; anon=$enableval
14732 else
14733   anon=yes
14734 fi
14735
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ANONYMOUS" >&5
14738 $as_echo_n "checking ANONYMOUS... " >&6; }
14739 if test "$anon" != no; then
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14741 $as_echo "enabled" >&6; }
14742   SASL_MECHS="$SASL_MECHS libanonymous.la"
14743   if test "$enable_static" = yes; then
14744     SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
14745     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
14746
14747 $as_echo "#define STATIC_ANONYMOUS /**/" >>confdefs.h
14748
14749   fi
14750 else
14751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14752 $as_echo "disabled" >&6; }
14753 fi
14754
14755 # Check whether --enable-login was given.
14756 if test "${enable_login+set}" = set; then :
14757   enableval=$enable_login; login=$enableval
14758 else
14759   login=no
14760 fi
14761
14762
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LOGIN" >&5
14764 $as_echo_n "checking LOGIN... " >&6; }
14765 if test "$login" != no; then
14766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14767 $as_echo "enabled" >&6; }
14768   SASL_MECHS="$SASL_MECHS liblogin.la"
14769   if test "$enable_static" = yes; then
14770     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
14771     SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
14772
14773 $as_echo "#define STATIC_LOGIN /**/" >>confdefs.h
14774
14775   fi
14776 else
14777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14778 $as_echo "disabled" >&6; }
14779 fi
14780
14781 # Check whether --enable-ntlm was given.
14782 if test "${enable_ntlm+set}" = set; then :
14783   enableval=$enable_ntlm; ntlm=$enableval
14784 else
14785   ntlm=no
14786 fi
14787
14788
14789 if test "$with_openssl" = no; then
14790   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
14791 $as_echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
14792   ntlm=no
14793 fi
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTLM" >&5
14796 $as_echo_n "checking NTLM... " >&6; }
14797 if test "$ntlm" != no; then
14798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14799 $as_echo "enabled" >&6; }
14800   NTLM_LIBS="-lcrypto $LIB_RSAREF"
14801
14802
14803   SASL_MECHS="$SASL_MECHS libntlm.la"
14804   if test "$enable_static" = yes; then
14805     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
14806     SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
14807
14808 $as_echo "#define STATIC_NTLM /**/" >>confdefs.h
14809
14810   fi
14811 else
14812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14813 $as_echo "disabled" >&6; }
14814 fi
14815
14816 # Check whether --enable-passdss was given.
14817 if test "${enable_passdss+set}" = set; then :
14818   enableval=$enable_passdss; passdss=$enableval
14819 else
14820   passdss=no
14821 fi
14822
14823
14824 if test "$with_openssl" = no; then
14825   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
14826 $as_echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
14827   passdss=no
14828 fi
14829
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PASSDSS" >&5
14831 $as_echo_n "checking PASSDSS... " >&6; }
14832 if test "$passdss" != no; then
14833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14834 $as_echo "enabled" >&6; }
14835   PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
14836
14837
14838   SASL_MECHS="$SASL_MECHS libpassdss.la"
14839   if test "$enable_static" = yes; then
14840     SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
14841     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
14842
14843 $as_echo "#define STATIC_PASSDSS /**/" >>confdefs.h
14844
14845   fi
14846 else
14847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14848 $as_echo "disabled" >&6; }
14849 fi
14850
14851
14852 # make the option show up so people don't whine that it is only in the
14853 # saslauthd configure script --help
14854
14855 # Check whether --with-ldap was given.
14856 if test "${with_ldap+set}" = set; then :
14857   withval=$with_ldap;
14858 else
14859   with_ldap=no
14860 fi
14861
14862
14863
14864
14865 # Check whether --enable-sql was given.
14866 if test "${enable_sql+set}" = set; then :
14867   enableval=$enable_sql; sql=$enableval
14868 else
14869   sql=no
14870 fi
14871
14872
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL" >&5
14874 $as_echo_n "checking SQL... " >&6; }
14875 if test "$sql" != no; then
14876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14877 $as_echo "enabled" >&6; }
14878   SASL_MECHS="$SASL_MECHS libsql.la"
14879   if test "$enable_static" = yes; then
14880     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
14881     SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
14882
14883 $as_echo "#define STATIC_SQL /**/" >>confdefs.h
14884
14885   fi
14886 else
14887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14888 $as_echo "disabled" >&6; }
14889 fi
14890
14891
14892 # Check whether --with-mysql was given.
14893 if test "${with_mysql+set}" = set; then :
14894   withval=$with_mysql; with_mysql=$withval
14895 else
14896   with_mysql=$sql
14897 fi
14898
14899
14900 # find location of library
14901 # presuming if one given then correct
14902 if test "${with_mysql}" = "yes"; then
14903   with_mysql=notfound
14904   for mysqlloc in lib/mysql lib mysql/lib
14905   do
14906     if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
14907       with_mysql="${prefix}"
14908       break
14909     elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
14910       with_mysql="/usr/local"
14911       break
14912     elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
14913       with_mysql="/usr"
14914       break
14915     fi
14916   done
14917 fi
14918
14919 LIB_MYSQL=""
14920
14921 case "$with_mysql" in
14922     no) true;;
14923     notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL Library not found" >&5
14924 $as_echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
14925     *)
14926      if test -d ${with_mysql}/lib/mysql; then
14927
14928   # this is CMU ADD LIBPATH TO
14929   if test "$andrew_runpath_switch" = "none" ; then
14930         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
14931   else
14932         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
14933   fi
14934
14935      elif test -d ${with_mysql}/mysql/lib; then
14936
14937   # this is CMU ADD LIBPATH TO
14938   if test "$andrew_runpath_switch" = "none" ; then
14939         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
14940   else
14941         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
14942   fi
14943
14944      elif test -d ${with_mysql}/lib; then
14945
14946   # this is CMU ADD LIBPATH TO
14947   if test "$andrew_runpath_switch" = "none" ; then
14948         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
14949   else
14950         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
14951   fi
14952
14953      else
14954
14955   # this is CMU ADD LIBPATH TO
14956   if test "$andrew_runpath_switch" = "none" ; then
14957         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
14958   else
14959         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
14960   fi
14961
14962      fi
14963
14964      LIB_MYSQL_DIR=$LIB_MYSQL
14965      LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
14966
14967      if test -d ${with_mysql}/include/mysql; then
14968          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
14969      elif test -d ${with_mysql}/mysql/include; then
14970          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
14971      elif test -d ${with_mysql}/include; then
14972          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
14973      else
14974          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
14975      fi
14976
14977        save_LDFLAGS=$LDFLAGS
14978        LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
14979        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_select_db in -lmysqlclient" >&5
14980 $as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; }
14981 if ${ac_cv_lib_mysqlclient_mysql_select_db+:} false; then :
14982   $as_echo_n "(cached) " >&6
14983 else
14984   ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lmysqlclient  $LIBS"
14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h.  */
14988
14989 /* Override any GCC internal prototype to avoid an error.
14990    Use char because int might match the return type of a GCC
14991    builtin and then its argument prototype would still apply.  */
14992 #ifdef __cplusplus
14993 extern "C"
14994 #endif
14995 char mysql_select_db ();
14996 int
14997 main ()
14998 {
14999 return mysql_select_db ();
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 if ac_fn_c_try_link "$LINENO"; then :
15005   ac_cv_lib_mysqlclient_mysql_select_db=yes
15006 else
15007   ac_cv_lib_mysqlclient_mysql_select_db=no
15008 fi
15009 rm -f core conftest.err conftest.$ac_objext \
15010     conftest$ac_exeext conftest.$ac_ext
15011 LIBS=$ac_check_lib_save_LIBS
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
15014 $as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
15015 if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = xyes; then :
15016
15017 $as_echo "#define HAVE_MYSQL /**/" >>confdefs.h
15018
15019 else
15020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL library mysqlclient does not work" >&5
15021 $as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
15022             with_mysql=no
15023 fi
15024
15025        LDFLAGS=$save_LDFLAGS;;
15026
15027 esac
15028
15029
15030
15031 # Check whether --with-pgsql was given.
15032 if test "${with_pgsql+set}" = set; then :
15033   withval=$with_pgsql; with_pgsql=$withval
15034 else
15035   with_pgsql=$sql
15036 fi
15037
15038
15039 # find location of library
15040 # presuing if one given then correct
15041 if test "${with_pgsql}" = "yes"; then
15042   with_pgsql=notfound
15043   for pgsqlloc in lib/pgsql lib pgsql/lib
15044   do
15045     if test -f ${prefix}/${pgsqlloc}/libpq.a; then
15046       with_pgsql="${prefix}"
15047       break
15048     elif test -f /usr/local/${pgsqlloc}/libpq.a; then
15049       with_pgsql="/usr/local"
15050       break
15051     elif test -f /usr/${pgsqlloc}/libpq.a; then
15052       with_pgsql="/usr"
15053       break
15054     fi
15055   done
15056 fi
15057
15058 LIB_PGSQL=""
15059
15060 case "$with_pgsql" in
15061     no) true;;
15062     notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library not found" >&5
15063 $as_echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
15064     *)
15065      if test -d ${with_pgsql}/lib/pgsql; then
15066
15067   # this is CMU ADD LIBPATH TO
15068   if test "$andrew_runpath_switch" = "none" ; then
15069         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
15070   else
15071         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
15072   fi
15073
15074      elif test -d ${with_pgsql}/pgsql/lib; then
15075
15076   # this is CMU ADD LIBPATH TO
15077   if test "$andrew_runpath_switch" = "none" ; then
15078         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
15079   else
15080         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
15081   fi
15082
15083      elif test -d ${with_pgsql}/lib; then
15084
15085   # this is CMU ADD LIBPATH TO
15086   if test "$andrew_runpath_switch" = "none" ; then
15087         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
15088   else
15089         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
15090   fi
15091
15092      else
15093
15094   # this is CMU ADD LIBPATH TO
15095   if test "$andrew_runpath_switch" = "none" ; then
15096         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
15097   else
15098         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
15099   fi
15100
15101      fi
15102
15103      LIB_PGSQL_DIR=$LIB_PGSQL
15104      LIB_PGSQL="$LIB_PGSQL -lpq"
15105
15106      if test -d ${with_pgsql}/include/pgsql; then
15107          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
15108      elif test -d ${with_pgsql}/pgsql/include; then
15109          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
15110      elif test -d ${with_pgsql}/include; then
15111          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
15112      else
15113          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
15114      fi
15115
15116
15117        save_LDFLAGS=$LDFLAGS
15118        LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
15119        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
15120 $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
15121 if ${ac_cv_lib_pq_PQsetdbLogin+:} false; then :
15122   $as_echo_n "(cached) " >&6
15123 else
15124   ac_check_lib_save_LIBS=$LIBS
15125 LIBS="-lpq  $LIBS"
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h.  */
15128
15129 /* Override any GCC internal prototype to avoid an error.
15130    Use char because int might match the return type of a GCC
15131    builtin and then its argument prototype would still apply.  */
15132 #ifdef __cplusplus
15133 extern "C"
15134 #endif
15135 char PQsetdbLogin ();
15136 int
15137 main ()
15138 {
15139 return PQsetdbLogin ();
15140   ;
15141   return 0;
15142 }
15143 _ACEOF
15144 if ac_fn_c_try_link "$LINENO"; then :
15145   ac_cv_lib_pq_PQsetdbLogin=yes
15146 else
15147   ac_cv_lib_pq_PQsetdbLogin=no
15148 fi
15149 rm -f core conftest.err conftest.$ac_objext \
15150     conftest$ac_exeext conftest.$ac_ext
15151 LIBS=$ac_check_lib_save_LIBS
15152 fi
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
15154 $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
15155 if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
15156
15157 $as_echo "#define HAVE_PGSQL /**/" >>confdefs.h
15158
15159 else
15160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library pq does not work" >&5
15161 $as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
15162             with_pgsql=no
15163 fi
15164
15165        LDFLAGS=$save_LDFLAGS;;
15166
15167 esac
15168
15169
15170
15171 # Check whether --with-sqlite was given.
15172 if test "${with_sqlite+set}" = set; then :
15173   withval=$with_sqlite; with_sqlite=$withval
15174 else
15175   with_sqlite=$sql
15176 fi
15177
15178
15179 # find location of library
15180 # presuing if one given then correct
15181 if test "${with_sqlite}" = "yes"; then
15182   with_sqlite=notfound
15183   for sqliteloc in lib
15184   do
15185     if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
15186       with_sqlite="${prefix}"
15187       break
15188     elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
15189       with_sqlite="/usr/local"
15190       break
15191     elif test -f /usr/${sqliteloc}/libsqlite.a; then
15192       with_sqlite="/usr"
15193       break
15194     fi
15195   done
15196 fi
15197
15198 LIB_SQLITE=""
15199
15200 case "$with_sqlite" in
15201     no) true;;
15202     notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library not found" >&5
15203 $as_echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
15204     *)
15205      if test -d ${with_sqlite}/lib; then
15206          LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
15207      else
15208          LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
15209      fi
15210
15211      LIB_SQLITE_DIR=$LIB_SQLITE
15212      LIB_SQLITE="$LIB_SQLITE -lsqlite"
15213
15214      if test -d ${with_sqlite}/include; then
15215          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
15216      else
15217          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
15218      fi
15219        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
15220 $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
15221 if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
15222   $as_echo_n "(cached) " >&6
15223 else
15224   ac_check_lib_save_LIBS=$LIBS
15225 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h.  */
15228
15229 /* Override any GCC internal prototype to avoid an error.
15230    Use char because int might match the return type of a GCC
15231    builtin and then its argument prototype would still apply.  */
15232 #ifdef __cplusplus
15233 extern "C"
15234 #endif
15235 char sqlite_open ();
15236 int
15237 main ()
15238 {
15239 return sqlite_open ();
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 if ac_fn_c_try_link "$LINENO"; then :
15245   ac_cv_lib_sqlite_sqlite_open=yes
15246 else
15247   ac_cv_lib_sqlite_sqlite_open=no
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext \
15250     conftest$ac_exeext conftest.$ac_ext
15251 LIBS=$ac_check_lib_save_LIBS
15252 fi
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
15254 $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
15255 if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
15256
15257 $as_echo "#define HAVE_SQLITE /**/" >>confdefs.h
15258
15259 else
15260   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library sqlite does not work" >&5
15261 $as_echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
15262             with_sqlite=no
15263 fi
15264 ;;
15265
15266 esac
15267
15268
15269 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
15270     as_fn_error $? "--enable-sql chosen but neither Postgres nor MySQL nor SQLite found" "$LINENO" 5
15271 fi
15272
15273 if test "$enable_shared" = yes; then
15274
15275 $as_echo "#define DO_DLOPEN /**/" >>confdefs.h
15276
15277 fi
15278
15279 # Check whether --enable-ldapdb was given.
15280 if test "${enable_ldapdb+set}" = set; then :
15281   enableval=$enable_ldapdb; ldapdb=$enableval
15282 else
15283   ldapdb=no
15284 fi
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDAPDB" >&5
15287 $as_echo_n "checking LDAPDB... " >&6; }
15288 if test "$ldapdb" != no; then
15289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
15290 $as_echo "enabled" >&6; }
15291
15292     if test "$with_ldap" = no; then
15293         as_fn_error $? "Cannot enable LDAPDB plugin: You need to specify --with-ldap" "$LINENO" 5
15294     fi
15295
15296     save_CPPFLAGS=$CPPFLAGS
15297     save_LDFLAGS=$LDFLAGS
15298
15299     if test -d $with_ldap; then
15300         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
15301
15302   # this is CMU ADD LIBPATH
15303   if test "$andrew_runpath_switch" = "none" ; then
15304         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
15305   else
15306         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
15307   fi
15308
15309     fi
15310
15311     for ac_header in ldap.h lber.h
15312 do :
15313   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15314 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15316   cat >>confdefs.h <<_ACEOF
15317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15318 _ACEOF
15319
15320 fi
15321
15322 done
15323
15324
15325     if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
15326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP api" >&5
15327 $as_echo_n "checking OpenLDAP api... " >&6; }
15328 if ${cmu_cv_openldap_api+:} false; then :
15329   $as_echo_n "(cached) " >&6
15330 else
15331
15332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h.  */
15334
15335 #include <ldap.h>
15336
15337 #ifdef LDAP_API_FEATURE_X_OPENLDAP
15338 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
15339 #endif
15340
15341 _ACEOF
15342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15343   $EGREP "__openldap_api" >/dev/null 2>&1; then :
15344   cmu_cv_openldap_api=yes
15345 else
15346   cmu_cv_openldap_api=no
15347 fi
15348 rm -f conftest*
15349
15350 fi
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_api" >&5
15352 $as_echo "$cmu_cv_openldap_api" >&6; }
15353
15354
15355         if test "$cmu_cv_openldap_api" = yes; then
15356             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
15357 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
15358 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
15359   $as_echo_n "(cached) " >&6
15360 else
15361   ac_check_lib_save_LIBS=$LIBS
15362 LIBS="-lldap -llber $LIBS"
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h.  */
15365
15366 /* Override any GCC internal prototype to avoid an error.
15367    Use char because int might match the return type of a GCC
15368    builtin and then its argument prototype would still apply.  */
15369 #ifdef __cplusplus
15370 extern "C"
15371 #endif
15372 char ldap_initialize ();
15373 int
15374 main ()
15375 {
15376 return ldap_initialize ();
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 if ac_fn_c_try_link "$LINENO"; then :
15382   ac_cv_lib_ldap_ldap_initialize=yes
15383 else
15384   ac_cv_lib_ldap_ldap_initialize=no
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext \
15387     conftest$ac_exeext conftest.$ac_ext
15388 LIBS=$ac_check_lib_save_LIBS
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
15391 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
15392 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
15393    cmu_link_openldap="-lldap -llber"
15394 else
15395    cmu_link_openldap=no
15396 fi
15397
15398         fi
15399     fi
15400
15401     if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
15402         as_fn_error $? "Cannot enable LDAPDB plugin: Could not locate OpenLDAP" "$LINENO" 5
15403     else
15404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP version" >&5
15405 $as_echo_n "checking OpenLDAP version... " >&6; }
15406 if ${cmu_cv_openldap_compat+:} false; then :
15407   $as_echo_n "(cached) " >&6
15408 else
15409
15410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h.  */
15412
15413 #include <ldap.h>
15414
15415 /* Require 2.1.27+ and 2.2.6+ */
15416 #if LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
15417 char *__openldap_compat = "2.1.27 or better okay";
15418 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
15419 char *__openldap_compat = "2.2.6 or better okay";
15420 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR > 2
15421 char *__openldap_compat = "2.3 or better okay"
15422 #endif
15423
15424 _ACEOF
15425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15426   $EGREP "__openldap_compat" >/dev/null 2>&1; then :
15427   cmu_cv_openldap_compat=yes
15428 else
15429   cmu_cv_openldap_compat=no
15430 fi
15431 rm -f conftest*
15432
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_compat" >&5
15435 $as_echo "$cmu_cv_openldap_compat" >&6; }
15436
15437
15438         if test "$cmu_cv_openldap_compat" = no; then
15439             as_fn_error $? "Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" "$LINENO" 5
15440         else
15441             LIB_LDAP=$cmu_link_openldap
15442
15443
15444             SASL_MECHS="$SASL_MECHS libldapdb.la"
15445             if test "$enable_static" = yes; then
15446                 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
15447                 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
15448
15449 $as_echo "#define STATIC_LDAPDB /**/" >>confdefs.h
15450
15451             fi
15452         fi
15453     fi
15454
15455     if test "$cmu_cv_openldap_compat" != yes; then
15456         CPPFLAGS=$save_CPPFLAGS
15457         LDFLAGS=$save_LDFLAGS
15458     fi
15459 else
15460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15461 $as_echo "disabled" >&6; }
15462 fi
15463
15464
15465
15466
15467
15468
15469
15470 # Check whether --with-plugindir was given.
15471 if test "${with_plugindir+set}" = set; then :
15472   withval=$with_plugindir; plugindir=$withval
15473 else
15474   plugindir=/usr/lib/sasl2
15475 fi
15476
15477
15478 cat >>confdefs.h <<_ACEOF
15479 #define PLUGINDIR "$plugindir"
15480 _ACEOF
15481
15482
15483
15484
15485 # Check whether --with-configdir was given.
15486 if test "${with_configdir+set}" = set; then :
15487   withval=$with_configdir; configdir=$withval
15488 else
15489   configdir=$plugindir:/etc/sasl2
15490 fi
15491
15492
15493 cat >>confdefs.h <<_ACEOF
15494 #define CONFIGDIR "$configdir"
15495 _ACEOF
15496
15497
15498
15499
15500 # Check whether --with-rc4 was given.
15501 if test "${with_rc4+set}" = set; then :
15502   withval=$with_rc4; with_rc4=$withval
15503 else
15504   with_rc4=yes
15505 fi
15506
15507
15508 if test "$with_rc4" != no; then
15509
15510 $as_echo "#define WITH_RC4 /**/" >>confdefs.h
15511
15512 fi
15513
15514 building_for_macosx=no
15515 case "$host_os" in
15516         darwin*)
15517 # Check whether --enable-macos-framework was given.
15518 if test "${enable_macos_framework+set}" = set; then :
15519   enableval=$enable_macos_framework; building_for_macosx=no
15520 else
15521   building_for_macosx=yes
15522 fi
15523
15524         ;;
15525 esac
15526  if test "$building_for_macosx" = yes; then
15527   MACOSX_TRUE=
15528   MACOSX_FALSE='#'
15529 else
15530   MACOSX_TRUE='#'
15531   MACOSX_FALSE=
15532 fi
15533
15534
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc library" >&5
15536 $as_echo_n "checking for dmalloc library... " >&6; }
15537
15538 # Check whether --with-dmalloc was given.
15539 if test "${with_dmalloc+set}" = set; then :
15540   withval=$with_dmalloc; with_dmalloc=$withval
15541 else
15542   with_dmalloc=no
15543 fi
15544
15545
15546 DMALLOC_LIBS=""
15547
15548 if test "$with_dmalloc" != "no"; then
15549    if test "$with_dmalloc" = "yes"; then
15550         with_dmalloc="/usr/local"
15551    fi
15552
15553    if test -r "$with_dmalloc/libdmalloc.a"; then
15554         DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
15555
15556 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15557
15558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15559 $as_echo "yes" >&6; }
15560    elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
15561         DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
15562
15563 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15564
15565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15566 $as_echo "yes" >&6; }
15567    else
15568         as_fn_error please check your installation. "cannot find dmalloc library" "$LINENO" 5
15569    fi
15570 else
15571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15572 $as_echo "no" >&6; }
15573 fi
15574
15575
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sfio library" >&5
15578 $as_echo_n "checking for sfio library... " >&6; }
15579
15580 # Check whether --with-sfio was given.
15581 if test "${with_sfio+set}" = set; then :
15582   withval=$with_sfio; with_sfio=$withval
15583 else
15584   with_sfio=no
15585 fi
15586
15587
15588 if test "$with_sfio" != "no"; then
15589    if test "$with_sfio" = "yes"; then
15590         with_sfio="/usr/local"
15591    fi
15592
15593
15594
15595
15596
15597    if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15598                                               SFIO_INC_DIR=$with_sfio
15599    elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
15600                                               SFIO_INC_DIR=$with_sfio/include
15601    elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15602                                               SFIO_INC_DIR=$with_sfio/include/sfio
15603    fi
15604
15605    if test -z "$SFIO_DIR"; then
15606         as_fn_error Please check your SFIO installation. "Cannot find sfio.h" "$LINENO" 5
15607    fi
15608
15609
15610                 str="$SFIO_DIR/lib/libsfio.*"
15611                 for i in `echo $str`; do
15612                         if test -r $i; then
15613                                 SFIO_LIBDIR=$SFIO_DIR/lib
15614                                 break 2
15615                         fi
15616                 done
15617
15618
15619                 str="$SFIO_DIR/lib/sfio/libsfio.*"
15620                 for i in `echo $str`; do
15621                         if test -r $i; then
15622                                 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
15623                                 break 2
15624                         fi
15625                 done
15626
15627
15628    if test -z "$SFIO_LIBDIR"; then
15629         as_fn_error Please check your SFIO installation. "Cannot find sfio library" "$LINENO" 5
15630    fi
15631
15632    SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
15633    SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
15634    SMTPTEST_PROGRAM="smtptest"
15635    SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
15636    SASL_UTIL_HEADERS_EXTRA=sfsasl.h
15637
15638    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15639 $as_echo "yes" >&6; }
15640 else
15641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15643    SFIO_INC_FLAGS=""
15644    SFIO_LIB_FLAGS=""
15645    SMTPTEST_PROGRAM=""
15646    SASL_UTIL_LIBS_EXTRA=""
15647    SASL_UTIL_HEADERS_EXTRA=""
15648 fi
15649
15650
15651
15652
15653
15654
15655
15656 sasl_cv_getsubopt=no
15657 ac_fn_c_check_func "$LINENO" "getsubopt" "ac_cv_func_getsubopt"
15658 if test "x$ac_cv_func_getsubopt" = xyes; then :
15659
15660 $as_echo "#define HAVE_GETSUBOPT /**/" >>confdefs.h
15661
15662 else
15663   sasl_cv_getsubopt=yes
15664 fi
15665
15666 if test $sasl_cv_getsubopt = yes; then
15667         case " $LIBOBJS " in
15668   *" getsubopt.$ac_objext "* ) ;;
15669   *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
15670  ;;
15671 esac
15672
15673         GETSUBOPT="getsubopt.lo"
15674 fi
15675
15676
15677 sasl_cv_snprintf=no
15678 SNPRINTFOBJS=""
15679 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15680 if test "x$ac_cv_func_snprintf" = xyes; then :
15681
15682 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
15683
15684 else
15685   sasl_cv_snprintf=yes
15686 fi
15687
15688 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
15689 if test "x$ac_cv_func_vsnprintf" = xyes; then :
15690
15691 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
15692
15693 else
15694   sasl_cv_snprintf=yes
15695 fi
15696
15697 if test $sasl_cv_snprintf = yes; then
15698         case " $LIBOBJS " in
15699   *" snprintf.$ac_objext "* ) ;;
15700   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15701  ;;
15702 esac
15703
15704         SNPRINTFOBJS="snprintf.o"
15705         LTSNPRINTFOBJS="snprintf.lo"
15706 fi
15707
15708
15709
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
15711 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
15712 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
15713   $as_echo_n "(cached) " >&6
15714 else
15715   ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lresolv  $LIBS"
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h.  */
15719
15720 /* Override any GCC internal prototype to avoid an error.
15721    Use char because int might match the return type of a GCC
15722    builtin and then its argument prototype would still apply.  */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 char inet_aton ();
15727 int
15728 main ()
15729 {
15730 return inet_aton ();
15731   ;
15732   return 0;
15733 }
15734 _ACEOF
15735 if ac_fn_c_try_link "$LINENO"; then :
15736   ac_cv_lib_resolv_inet_aton=yes
15737 else
15738   ac_cv_lib_resolv_inet_aton=no
15739 fi
15740 rm -f core conftest.err conftest.$ac_objext \
15741     conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_check_lib_save_LIBS
15743 fi
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
15745 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
15746 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
15747   cat >>confdefs.h <<_ACEOF
15748 #define HAVE_LIBRESOLV 1
15749 _ACEOF
15750
15751   LIBS="-lresolv $LIBS"
15752
15753 fi
15754
15755
15756 GETADDRINFOOBJS=""
15757 sasl_cv_getaddrinfo=yes
15758
15759 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15760 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
15761     ac_cv_lib_socket_getaddrinfo=no
15762   ac_cv_lib_inet6_getaddrinfo=no
15763
15764 else
15765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
15766 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
15767 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
15768   $as_echo_n "(cached) " >&6
15769 else
15770   ac_check_lib_save_LIBS=$LIBS
15771 LIBS="-lsocket  $LIBS"
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h.  */
15774
15775 /* Override any GCC internal prototype to avoid an error.
15776    Use char because int might match the return type of a GCC
15777    builtin and then its argument prototype would still apply.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 char getaddrinfo ();
15782 int
15783 main ()
15784 {
15785 return getaddrinfo ();
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 if ac_fn_c_try_link "$LINENO"; then :
15791   ac_cv_lib_socket_getaddrinfo=yes
15792 else
15793   ac_cv_lib_socket_getaddrinfo=no
15794 fi
15795 rm -f core conftest.err conftest.$ac_objext \
15796     conftest$ac_exeext conftest.$ac_ext
15797 LIBS=$ac_check_lib_save_LIBS
15798 fi
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
15800 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
15801 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
15802       LIBS="$LIBS -lsocket"
15803     ac_cv_lib_inet6_getaddrinfo=no
15804
15805 else
15806       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15807 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15808     if ${ipv6_cv_dir+:} false; then :
15809   $as_echo_n "(cached) " >&6
15810 else
15811         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15812         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15813           break
15814         fi
15815       done
15816 fi
15817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15818 $as_echo "$ipv6_cv_dir" >&6; }
15819     if test $ipv6_cv_dir = no; then
15820       ac_cv_lib_inet6_getaddrinfo=no
15821     else
15822       if test x$ipv6_libinet6 = x; then
15823         ipv6_libinet6=no
15824         SAVELDFLAGS="$LDFLAGS"
15825         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15826       fi
15827       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
15828 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
15829 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
15830   $as_echo_n "(cached) " >&6
15831 else
15832   ac_check_lib_save_LIBS=$LIBS
15833 LIBS="-linet6  $LIBS"
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h.  */
15836
15837 /* Override any GCC internal prototype to avoid an error.
15838    Use char because int might match the return type of a GCC
15839    builtin and then its argument prototype would still apply.  */
15840 #ifdef __cplusplus
15841 extern "C"
15842 #endif
15843 char getaddrinfo ();
15844 int
15845 main ()
15846 {
15847 return getaddrinfo ();
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 if ac_fn_c_try_link "$LINENO"; then :
15853   ac_cv_lib_inet6_getaddrinfo=yes
15854 else
15855   ac_cv_lib_inet6_getaddrinfo=no
15856 fi
15857 rm -f core conftest.err conftest.$ac_objext \
15858     conftest$ac_exeext conftest.$ac_ext
15859 LIBS=$ac_check_lib_save_LIBS
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
15862 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
15863 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
15864         if test $ipv6_libinet6 = no; then
15865           ipv6_libinet6=yes
15866           LIBS="$LIBS -linet6"
15867         fi
15868 fi
15869       if test $ipv6_libinet6 = no; then
15870         LDFLAGS="$SAVELDFLAGS"
15871       fi
15872     fi
15873 fi
15874
15875 fi
15876 ipv6_cv_getaddrinfo=no
15877 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
15878      -o $ac_cv_lib_inet6_getaddrinfo = yes
15879 then
15880   ipv6_cv_getaddrinfo=yes
15881 fi
15882 if test $ipv6_cv_getaddrinfo = no; then
15883   if test getaddrinfo = getaddrinfo; then
15884     for ipv6_cv_pfx in o n; do
15885       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h.  */
15887 #include <netdb.h>
15888
15889 _ACEOF
15890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15891   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
15892   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
15893 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
15894 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15895
15896 fi
15897
15898 fi
15899 rm -f conftest*
15900
15901       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
15902
15903 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
15904
15905         ipv6_cv_getaddrinfo=yes
15906         break
15907       fi
15908     done
15909   fi
15910 fi
15911 if test $ipv6_cv_getaddrinfo = yes; then
15912
15913 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
15914 if test "x$ac_cv_func_gai_strerror" = xyes; then :
15915     ac_cv_lib_socket_gai_strerror=no
15916   ac_cv_lib_inet6_gai_strerror=no
15917
15918 else
15919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -lsocket" >&5
15920 $as_echo_n "checking for gai_strerror in -lsocket... " >&6; }
15921 if ${ac_cv_lib_socket_gai_strerror+:} false; then :
15922   $as_echo_n "(cached) " >&6
15923 else
15924   ac_check_lib_save_LIBS=$LIBS
15925 LIBS="-lsocket  $LIBS"
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h.  */
15928
15929 /* Override any GCC internal prototype to avoid an error.
15930    Use char because int might match the return type of a GCC
15931    builtin and then its argument prototype would still apply.  */
15932 #ifdef __cplusplus
15933 extern "C"
15934 #endif
15935 char gai_strerror ();
15936 int
15937 main ()
15938 {
15939 return gai_strerror ();
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 if ac_fn_c_try_link "$LINENO"; then :
15945   ac_cv_lib_socket_gai_strerror=yes
15946 else
15947   ac_cv_lib_socket_gai_strerror=no
15948 fi
15949 rm -f core conftest.err conftest.$ac_objext \
15950     conftest$ac_exeext conftest.$ac_ext
15951 LIBS=$ac_check_lib_save_LIBS
15952 fi
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gai_strerror" >&5
15954 $as_echo "$ac_cv_lib_socket_gai_strerror" >&6; }
15955 if test "x$ac_cv_lib_socket_gai_strerror" = xyes; then :
15956       LIBS="$LIBS -lsocket"
15957     ac_cv_lib_inet6_gai_strerror=no
15958
15959 else
15960       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15961 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15962     if ${ipv6_cv_dir+:} false; then :
15963   $as_echo_n "(cached) " >&6
15964 else
15965         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15966         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15967           break
15968         fi
15969       done
15970 fi
15971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15972 $as_echo "$ipv6_cv_dir" >&6; }
15973     if test $ipv6_cv_dir = no; then
15974       ac_cv_lib_inet6_gai_strerror=no
15975     else
15976       if test x$ipv6_libinet6 = x; then
15977         ipv6_libinet6=no
15978         SAVELDFLAGS="$LDFLAGS"
15979         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15980       fi
15981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -linet6" >&5
15982 $as_echo_n "checking for gai_strerror in -linet6... " >&6; }
15983 if ${ac_cv_lib_inet6_gai_strerror+:} false; then :
15984   $as_echo_n "(cached) " >&6
15985 else
15986   ac_check_lib_save_LIBS=$LIBS
15987 LIBS="-linet6  $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 gai_strerror ();
15998 int
15999 main ()
16000 {
16001 return gai_strerror ();
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 if ac_fn_c_try_link "$LINENO"; then :
16007   ac_cv_lib_inet6_gai_strerror=yes
16008 else
16009   ac_cv_lib_inet6_gai_strerror=no
16010 fi
16011 rm -f core conftest.err conftest.$ac_objext \
16012     conftest$ac_exeext conftest.$ac_ext
16013 LIBS=$ac_check_lib_save_LIBS
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gai_strerror" >&5
16016 $as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; }
16017 if test "x$ac_cv_lib_inet6_gai_strerror" = xyes; then :
16018         if test $ipv6_libinet6 = no; then
16019           ipv6_libinet6=yes
16020           LIBS="$LIBS -linet6"
16021         fi
16022 fi
16023       if test $ipv6_libinet6 = no; then
16024         LDFLAGS="$SAVELDFLAGS"
16025       fi
16026     fi
16027 fi
16028
16029 fi
16030 ipv6_cv_gai_strerror=no
16031 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
16032      -o $ac_cv_lib_inet6_gai_strerror = yes
16033 then
16034   ipv6_cv_gai_strerror=yes
16035 fi
16036 if test $ipv6_cv_gai_strerror = no; then
16037   if test gai_strerror = getaddrinfo; then
16038     for ipv6_cv_pfx in o n; do
16039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h.  */
16041 #include <netdb.h>
16042
16043 _ACEOF
16044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16045   $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then :
16046   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
16047 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gai_strerror" "$as_ac_var"
16048 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16049
16050 fi
16051
16052 fi
16053 rm -f conftest*
16054
16055       if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
16056
16057 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16058
16059         ipv6_cv_gai_strerror=yes
16060         break
16061       fi
16062     done
16063   fi
16064 fi
16065 if test $ipv6_cv_gai_strerror = yes; then
16066
16067 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16068
16069                 sasl_cv_getaddrinfo=no
16070 else
16071   :
16072 fi
16073 else
16074   :
16075 fi
16076 if test $sasl_cv_getaddrinfo = yes; then
16077     case " $LIBOBJS " in
16078   *" getaddrinfo.$ac_objext "* ) ;;
16079   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16080  ;;
16081 esac
16082
16083     GETADDRINFOOBJS="getaddrinfo.o"
16084     LTGETADDRINFOOBJS="getaddrinfo.lo"
16085 fi
16086
16087
16088
16089 GETNAMEINFOOBJS=""
16090 sasl_cv_getnameinfo=no
16091
16092 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
16093 if test "x$ac_cv_func_getnameinfo" = xyes; then :
16094     ac_cv_lib_socket_getnameinfo=no
16095   ac_cv_lib_inet6_getnameinfo=no
16096
16097 else
16098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
16099 $as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
16100 if ${ac_cv_lib_socket_getnameinfo+:} false; then :
16101   $as_echo_n "(cached) " >&6
16102 else
16103   ac_check_lib_save_LIBS=$LIBS
16104 LIBS="-lsocket  $LIBS"
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h.  */
16107
16108 /* Override any GCC internal prototype to avoid an error.
16109    Use char because int might match the return type of a GCC
16110    builtin and then its argument prototype would still apply.  */
16111 #ifdef __cplusplus
16112 extern "C"
16113 #endif
16114 char getnameinfo ();
16115 int
16116 main ()
16117 {
16118 return getnameinfo ();
16119   ;
16120   return 0;
16121 }
16122 _ACEOF
16123 if ac_fn_c_try_link "$LINENO"; then :
16124   ac_cv_lib_socket_getnameinfo=yes
16125 else
16126   ac_cv_lib_socket_getnameinfo=no
16127 fi
16128 rm -f core conftest.err conftest.$ac_objext \
16129     conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16131 fi
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
16133 $as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
16134 if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
16135       LIBS="$LIBS -lsocket"
16136     ac_cv_lib_inet6_getnameinfo=no
16137
16138 else
16139       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
16140 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
16141     if ${ipv6_cv_dir+:} false; then :
16142   $as_echo_n "(cached) " >&6
16143 else
16144         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
16145         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
16146           break
16147         fi
16148       done
16149 fi
16150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
16151 $as_echo "$ipv6_cv_dir" >&6; }
16152     if test $ipv6_cv_dir = no; then
16153       ac_cv_lib_inet6_getnameinfo=no
16154     else
16155       if test x$ipv6_libinet6 = x; then
16156         ipv6_libinet6=no
16157         SAVELDFLAGS="$LDFLAGS"
16158         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
16159       fi
16160       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
16161 $as_echo_n "checking for getnameinfo in -linet6... " >&6; }
16162 if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
16163   $as_echo_n "(cached) " >&6
16164 else
16165   ac_check_lib_save_LIBS=$LIBS
16166 LIBS="-linet6  $LIBS"
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h.  */
16169
16170 /* Override any GCC internal prototype to avoid an error.
16171    Use char because int might match the return type of a GCC
16172    builtin and then its argument prototype would still apply.  */
16173 #ifdef __cplusplus
16174 extern "C"
16175 #endif
16176 char getnameinfo ();
16177 int
16178 main ()
16179 {
16180 return getnameinfo ();
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 if ac_fn_c_try_link "$LINENO"; then :
16186   ac_cv_lib_inet6_getnameinfo=yes
16187 else
16188   ac_cv_lib_inet6_getnameinfo=no
16189 fi
16190 rm -f core conftest.err conftest.$ac_objext \
16191     conftest$ac_exeext conftest.$ac_ext
16192 LIBS=$ac_check_lib_save_LIBS
16193 fi
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
16195 $as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
16196 if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
16197         if test $ipv6_libinet6 = no; then
16198           ipv6_libinet6=yes
16199           LIBS="$LIBS -linet6"
16200         fi
16201 fi
16202       if test $ipv6_libinet6 = no; then
16203         LDFLAGS="$SAVELDFLAGS"
16204       fi
16205     fi
16206 fi
16207
16208 fi
16209 ipv6_cv_getnameinfo=no
16210 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
16211      -o $ac_cv_lib_inet6_getnameinfo = yes
16212 then
16213   ipv6_cv_getnameinfo=yes
16214 fi
16215 if test $ipv6_cv_getnameinfo = no; then
16216   if test getnameinfo = getaddrinfo; then
16217     for ipv6_cv_pfx in o n; do
16218       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h.  */
16220 #include <netdb.h>
16221
16222 _ACEOF
16223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16224   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
16225   as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
16226 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
16227 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16228
16229 fi
16230
16231 fi
16232 rm -f conftest*
16233
16234       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
16235
16236 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16237
16238         ipv6_cv_getnameinfo=yes
16239         break
16240       fi
16241     done
16242   fi
16243 fi
16244 if test $ipv6_cv_getnameinfo = yes; then
16245
16246 $as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
16247
16248 else
16249   sasl_cv_getnameinfo=yes
16250 fi
16251 if test $sasl_cv_getnameinfo = yes; then
16252         case " $LIBOBJS " in
16253   *" getnameinfo.$ac_objext "* ) ;;
16254   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
16255  ;;
16256 esac
16257
16258         GETNAMEINFOOBJS="getnameinfo.o"
16259         LTGETNAMEINFOOBJS="getnameinfo.lo"
16260 fi
16261
16262
16263
16264 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
16265
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16268 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16269 if ${ac_cv_c_const+:} false; then :
16270   $as_echo_n "(cached) " >&6
16271 else
16272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h.  */
16274
16275 int
16276 main ()
16277 {
16278 /* FIXME: Include the comments suggested by Paul. */
16279 #ifndef __cplusplus
16280   /* Ultrix mips cc rejects this.  */
16281   typedef int charset[2];
16282   const charset cs;
16283   /* SunOS 4.1.1 cc rejects this.  */
16284   char const *const *pcpcc;
16285   char **ppc;
16286   /* NEC SVR4.0.2 mips cc rejects this.  */
16287   struct point {int x, y;};
16288   static struct point const zero = {0,0};
16289   /* AIX XL C 1.02.0.0 rejects this.
16290      It does not let you subtract one const X* pointer from another in
16291      an arm of an if-expression whose if-part is not a constant
16292      expression */
16293   const char *g = "string";
16294   pcpcc = &g + (g ? g-g : 0);
16295   /* HPUX 7.0 cc rejects these. */
16296   ++pcpcc;
16297   ppc = (char**) pcpcc;
16298   pcpcc = (char const *const *) ppc;
16299   { /* SCO 3.2v4 cc rejects this.  */
16300     char *t;
16301     char const *s = 0 ? (char *) 0 : (char const *) 0;
16302
16303     *t++ = 0;
16304     if (s) return 0;
16305   }
16306   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16307     int x[] = {25, 17};
16308     const int *foo = &x[0];
16309     ++foo;
16310   }
16311   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16312     typedef const int *iptr;
16313     iptr p = 0;
16314     ++p;
16315   }
16316   { /* AIX XL C 1.02.0.0 rejects this saying
16317        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16318     struct s { int j; const int *ap[3]; };
16319     struct s *b; b->j = 5;
16320   }
16321   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16322     const int foo = 10;
16323     if (!foo) return 0;
16324   }
16325   return !cs[0] && !zero.x;
16326 #endif
16327
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 if ac_fn_c_try_compile "$LINENO"; then :
16333   ac_cv_c_const=yes
16334 else
16335   ac_cv_c_const=no
16336 fi
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 fi
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16340 $as_echo "$ac_cv_c_const" >&6; }
16341 if test $ac_cv_c_const = no; then
16342
16343 $as_echo "#define const /**/" >>confdefs.h
16344
16345 fi
16346
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16348 $as_echo_n "checking for inline... " >&6; }
16349 if ${ac_cv_c_inline+:} false; then :
16350   $as_echo_n "(cached) " >&6
16351 else
16352   ac_cv_c_inline=no
16353 for ac_kw in inline __inline__ __inline; do
16354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h.  */
16356 #ifndef __cplusplus
16357 typedef int foo_t;
16358 static $ac_kw foo_t static_foo () {return 0; }
16359 $ac_kw foo_t foo () {return 0; }
16360 #endif
16361
16362 _ACEOF
16363 if ac_fn_c_try_compile "$LINENO"; then :
16364   ac_cv_c_inline=$ac_kw
16365 fi
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367   test "$ac_cv_c_inline" != no && break
16368 done
16369
16370 fi
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16372 $as_echo "$ac_cv_c_inline" >&6; }
16373
16374 case $ac_cv_c_inline in
16375   inline | yes) ;;
16376   *)
16377     case $ac_cv_c_inline in
16378       no) ac_val=;;
16379       *) ac_val=$ac_cv_c_inline;;
16380     esac
16381     cat >>confdefs.h <<_ACEOF
16382 #ifndef __cplusplus
16383 #define inline $ac_val
16384 #endif
16385 _ACEOF
16386     ;;
16387 esac
16388
16389 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16390 if test "x$ac_cv_type_mode_t" = xyes; then :
16391
16392 else
16393
16394 cat >>confdefs.h <<_ACEOF
16395 #define mode_t int
16396 _ACEOF
16397
16398 fi
16399
16400 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16401 if test "x$ac_cv_type_pid_t" = xyes; then :
16402
16403 else
16404
16405 cat >>confdefs.h <<_ACEOF
16406 #define pid_t int
16407 _ACEOF
16408
16409 fi
16410
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16412 $as_echo_n "checking return type of signal handlers... " >&6; }
16413 if ${ac_cv_type_signal+:} false; then :
16414   $as_echo_n "(cached) " >&6
16415 else
16416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h.  */
16418 #include <sys/types.h>
16419 #include <signal.h>
16420
16421 int
16422 main ()
16423 {
16424 return *(signal (0, 0)) (0) == 1;
16425   ;
16426   return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_compile "$LINENO"; then :
16430   ac_cv_type_signal=int
16431 else
16432   ac_cv_type_signal=void
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 fi
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16437 $as_echo "$ac_cv_type_signal" >&6; }
16438
16439 cat >>confdefs.h <<_ACEOF
16440 #define RETSIGTYPE $ac_cv_type_signal
16441 _ACEOF
16442
16443
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16446 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16447 if ${ac_cv_header_time+:} false; then :
16448   $as_echo_n "(cached) " >&6
16449 else
16450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h.  */
16452 #include <sys/types.h>
16453 #include <sys/time.h>
16454 #include <time.h>
16455
16456 int
16457 main ()
16458 {
16459 if ((struct tm *) 0)
16460 return 0;
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466   ac_cv_header_time=yes
16467 else
16468   ac_cv_header_time=no
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 fi
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16473 $as_echo "$ac_cv_header_time" >&6; }
16474 if test $ac_cv_header_time = yes; then
16475
16476 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16477
16478 fi
16479
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16481 $as_echo_n "checking for ANSI C header files... " >&6; }
16482 if ${ac_cv_header_stdc+:} false; then :
16483   $as_echo_n "(cached) " >&6
16484 else
16485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h.  */
16487 #include <stdlib.h>
16488 #include <stdarg.h>
16489 #include <string.h>
16490 #include <float.h>
16491
16492 int
16493 main ()
16494 {
16495
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 if ac_fn_c_try_compile "$LINENO"; then :
16501   ac_cv_header_stdc=yes
16502 else
16503   ac_cv_header_stdc=no
16504 fi
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506
16507 if test $ac_cv_header_stdc = yes; then
16508   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h.  */
16511 #include <string.h>
16512
16513 _ACEOF
16514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16515   $EGREP "memchr" >/dev/null 2>&1; then :
16516
16517 else
16518   ac_cv_header_stdc=no
16519 fi
16520 rm -f conftest*
16521
16522 fi
16523
16524 if test $ac_cv_header_stdc = yes; then
16525   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h.  */
16528 #include <stdlib.h>
16529
16530 _ACEOF
16531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16532   $EGREP "free" >/dev/null 2>&1; then :
16533
16534 else
16535   ac_cv_header_stdc=no
16536 fi
16537 rm -f conftest*
16538
16539 fi
16540
16541 if test $ac_cv_header_stdc = yes; then
16542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16543   if test "$cross_compiling" = yes; then :
16544   :
16545 else
16546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h.  */
16548 #include <ctype.h>
16549 #include <stdlib.h>
16550 #if ((' ' & 0x0FF) == 0x020)
16551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16553 #else
16554 # define ISLOWER(c) \
16555                    (('a' <= (c) && (c) <= 'i') \
16556                      || ('j' <= (c) && (c) <= 'r') \
16557                      || ('s' <= (c) && (c) <= 'z'))
16558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16559 #endif
16560
16561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16562 int
16563 main ()
16564 {
16565   int i;
16566   for (i = 0; i < 256; i++)
16567     if (XOR (islower (i), ISLOWER (i))
16568         || toupper (i) != TOUPPER (i))
16569       return 2;
16570   return 0;
16571 }
16572 _ACEOF
16573 if ac_fn_c_try_run "$LINENO"; then :
16574
16575 else
16576   ac_cv_header_stdc=no
16577 fi
16578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16579   conftest.$ac_objext conftest.beam conftest.$ac_ext
16580 fi
16581
16582 fi
16583 fi
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16585 $as_echo "$ac_cv_header_stdc" >&6; }
16586 if test $ac_cv_header_stdc = yes; then
16587
16588 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16589
16590 fi
16591
16592 ac_header_dirent=no
16593 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16594   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16596 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16597 if eval \${$as_ac_Header+:} false; then :
16598   $as_echo_n "(cached) " >&6
16599 else
16600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h.  */
16602 #include <sys/types.h>
16603 #include <$ac_hdr>
16604
16605 int
16606 main ()
16607 {
16608 if ((DIR *) 0)
16609 return 0;
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615   eval "$as_ac_Header=yes"
16616 else
16617   eval "$as_ac_Header=no"
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 eval ac_res=\$$as_ac_Header
16622                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16623 $as_echo "$ac_res" >&6; }
16624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16625   cat >>confdefs.h <<_ACEOF
16626 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16627 _ACEOF
16628
16629 ac_header_dirent=$ac_hdr; break
16630 fi
16631
16632 done
16633 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16634 if test $ac_header_dirent = dirent.h; then
16635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16636 $as_echo_n "checking for library containing opendir... " >&6; }
16637 if ${ac_cv_search_opendir+:} false; then :
16638   $as_echo_n "(cached) " >&6
16639 else
16640   ac_func_search_save_LIBS=$LIBS
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h.  */
16643
16644 /* Override any GCC internal prototype to avoid an error.
16645    Use char because int might match the return type of a GCC
16646    builtin and then its argument prototype would still apply.  */
16647 #ifdef __cplusplus
16648 extern "C"
16649 #endif
16650 char opendir ();
16651 int
16652 main ()
16653 {
16654 return opendir ();
16655   ;
16656   return 0;
16657 }
16658 _ACEOF
16659 for ac_lib in '' dir; do
16660   if test -z "$ac_lib"; then
16661     ac_res="none required"
16662   else
16663     ac_res=-l$ac_lib
16664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16665   fi
16666   if ac_fn_c_try_link "$LINENO"; then :
16667   ac_cv_search_opendir=$ac_res
16668 fi
16669 rm -f core conftest.err conftest.$ac_objext \
16670     conftest$ac_exeext
16671   if ${ac_cv_search_opendir+:} false; then :
16672   break
16673 fi
16674 done
16675 if ${ac_cv_search_opendir+:} false; then :
16676
16677 else
16678   ac_cv_search_opendir=no
16679 fi
16680 rm conftest.$ac_ext
16681 LIBS=$ac_func_search_save_LIBS
16682 fi
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16684 $as_echo "$ac_cv_search_opendir" >&6; }
16685 ac_res=$ac_cv_search_opendir
16686 if test "$ac_res" != no; then :
16687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16688
16689 fi
16690
16691 else
16692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16693 $as_echo_n "checking for library containing opendir... " >&6; }
16694 if ${ac_cv_search_opendir+:} false; then :
16695   $as_echo_n "(cached) " >&6
16696 else
16697   ac_func_search_save_LIBS=$LIBS
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h.  */
16700
16701 /* Override any GCC internal prototype to avoid an error.
16702    Use char because int might match the return type of a GCC
16703    builtin and then its argument prototype would still apply.  */
16704 #ifdef __cplusplus
16705 extern "C"
16706 #endif
16707 char opendir ();
16708 int
16709 main ()
16710 {
16711 return opendir ();
16712   ;
16713   return 0;
16714 }
16715 _ACEOF
16716 for ac_lib in '' x; do
16717   if test -z "$ac_lib"; then
16718     ac_res="none required"
16719   else
16720     ac_res=-l$ac_lib
16721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16722   fi
16723   if ac_fn_c_try_link "$LINENO"; then :
16724   ac_cv_search_opendir=$ac_res
16725 fi
16726 rm -f core conftest.err conftest.$ac_objext \
16727     conftest$ac_exeext
16728   if ${ac_cv_search_opendir+:} false; then :
16729   break
16730 fi
16731 done
16732 if ${ac_cv_search_opendir+:} false; then :
16733
16734 else
16735   ac_cv_search_opendir=no
16736 fi
16737 rm conftest.$ac_ext
16738 LIBS=$ac_func_search_save_LIBS
16739 fi
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16741 $as_echo "$ac_cv_search_opendir" >&6; }
16742 ac_res=$ac_cv_search_opendir
16743 if test "$ac_res" != no; then :
16744   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16745
16746 fi
16747
16748 fi
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16751 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16752 if ${ac_cv_header_sys_wait_h+:} false; then :
16753   $as_echo_n "(cached) " >&6
16754 else
16755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h.  */
16757 #include <sys/types.h>
16758 #include <sys/wait.h>
16759 #ifndef WEXITSTATUS
16760 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16761 #endif
16762 #ifndef WIFEXITED
16763 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16764 #endif
16765
16766 int
16767 main ()
16768 {
16769   int s;
16770   wait (&s);
16771   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16772   ;
16773   return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_compile "$LINENO"; then :
16777   ac_cv_header_sys_wait_h=yes
16778 else
16779   ac_cv_header_sys_wait_h=no
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16784 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16785 if test $ac_cv_header_sys_wait_h = yes; then
16786
16787 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16788
16789 fi
16790
16791 for ac_header in des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h
16792 do :
16793   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16794 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16796   cat >>confdefs.h <<_ACEOF
16797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16798 _ACEOF
16799
16800 fi
16801
16802 done
16803
16804
16805
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
16807 $as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
16808 if ${ipv6_cv_ss_family+:} false; then :
16809   $as_echo_n "(cached) " >&6
16810 else
16811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h.  */
16813 #include <sys/types.h>
16814 #include <sys/socket.h>
16815 int
16816 main ()
16817 {
16818 struct sockaddr_storage ss; int i = ss.ss_family;
16819   ;
16820   return 0;
16821 }
16822 _ACEOF
16823 if ac_fn_c_try_compile "$LINENO"; then :
16824   ipv6_cv_ss_family=yes
16825 else
16826   ipv6_cv_ss_family=no
16827 fi
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 fi
16830 if test $ipv6_cv_ss_family = yes; then
16831
16832 $as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
16833
16834 else
16835   :
16836 fi
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
16838 $as_echo "$ipv6_cv_ss_family" >&6; }
16839
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
16841 $as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
16842 if ${ipv6_cv_sa_len+:} false; then :
16843   $as_echo_n "(cached) " >&6
16844 else
16845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h.  */
16847 #include <sys/types.h>
16848 #include <sys/socket.h>
16849 int
16850 main ()
16851 {
16852 struct sockaddr sa; int i = sa.sa_len;
16853   ;
16854   return 0;
16855 }
16856 _ACEOF
16857 if ac_fn_c_try_compile "$LINENO"; then :
16858   ipv6_cv_sa_len=yes
16859 else
16860   ipv6_cv_sa_len=no
16861 fi
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 fi
16864 if test $ipv6_cv_sa_len = yes; then
16865
16866 $as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
16867
16868 else
16869   :
16870 fi
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
16872 $as_echo "$ipv6_cv_sa_len" >&6; }
16873
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
16875 $as_echo_n "checking for socklen_t... " >&6; }
16876 if ${ipv6_cv_socklen_t+:} false; then :
16877   $as_echo_n "(cached) " >&6
16878 else
16879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h.  */
16881 #include <sys/types.h>
16882 #include <sys/socket.h>
16883 int
16884 main ()
16885 {
16886 socklen_t len = 0;
16887   ;
16888   return 0;
16889 }
16890 _ACEOF
16891 if ac_fn_c_try_link "$LINENO"; then :
16892   ipv6_cv_socklen_t=yes
16893 else
16894   ipv6_cv_socklen_t=no
16895 fi
16896 rm -f core conftest.err conftest.$ac_objext \
16897     conftest$ac_exeext conftest.$ac_ext
16898 fi
16899 if test $ipv6_cv_socklen_t = yes; then
16900
16901 $as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
16902
16903 else
16904   :
16905 fi
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_socklen_t" >&5
16907 $as_echo "$ipv6_cv_socklen_t" >&6; }
16908
16909 #AC_FUNC_MEMCMP
16910 #AC_FUNC_VPRINTF
16911 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
16912 do :
16913   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16916   cat >>confdefs.h <<_ACEOF
16917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16918 _ACEOF
16919
16920 fi
16921 done
16922
16923
16924 if test $enable_cmulocal = yes; then
16925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling CMU local kludges" >&5
16926 $as_echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
16927
16928 $as_echo "#define KRB4_IGNORE_IP_ADDRESS /**/" >>confdefs.h
16929
16930
16931 cat >>confdefs.h <<_ACEOF
16932 #define PREFER_MECH "KERBEROS_V4"
16933 _ACEOF
16934
16935 fi
16936
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h.  */
16939 #include <sys/socket.h>
16940
16941 _ACEOF
16942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16943   $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
16944
16945
16946 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
16947
16948 fi
16949 rm -f conftest*
16950
16951
16952
16953
16954
16955
16956 subdirs="$subdirs saslauthd"
16957
16958
16959
16960
16961
16962
16963 ac_config_headers="$ac_config_headers config.h"
16964
16965
16966 ac_config_files="$ac_config_files Makefile include/Makefile sasldb/Makefile plugins/Makefile lib/Makefile utils/Makefile doc/Makefile sample/Makefile java/Makefile java/CyrusSasl/Makefile java/Test/Makefile java/javax/Makefile java/javax/security/Makefile java/javax/security/auth/Makefile java/javax/security/auth/callback/Makefile pwcheck/Makefile man/Makefile"
16967
16968 cat >confcache <<\_ACEOF
16969 # This file is a shell script that caches the results of configure
16970 # tests run on this system so they can be shared between configure
16971 # scripts and configure runs, see configure's option --config-cache.
16972 # It is not useful on other systems.  If it contains results you don't
16973 # want to keep, you may remove or edit it.
16974 #
16975 # config.status only pays attention to the cache file if you give it
16976 # the --recheck option to rerun configure.
16977 #
16978 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16979 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16980 # following values.
16981
16982 _ACEOF
16983
16984 # The following way of writing the cache mishandles newlines in values,
16985 # but we know of no workaround that is simple, portable, and efficient.
16986 # So, we kill variables containing newlines.
16987 # Ultrix sh set writes to stderr and can't be redirected directly,
16988 # and sets the high bit in the cache file unless we assign to the vars.
16989 (
16990   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16991     eval ac_val=\$$ac_var
16992     case $ac_val in #(
16993     *${as_nl}*)
16994       case $ac_var in #(
16995       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16996 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16997       esac
16998       case $ac_var in #(
16999       _ | IFS | as_nl) ;; #(
17000       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17001       *) { eval $ac_var=; unset $ac_var;} ;;
17002       esac ;;
17003     esac
17004   done
17005
17006   (set) 2>&1 |
17007     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17008     *${as_nl}ac_space=\ *)
17009       # `set' does not quote correctly, so add quotes: double-quote
17010       # substitution turns \\\\ into \\, and sed turns \\ into \.
17011       sed -n \
17012         "s/'/'\\\\''/g;
17013           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17014       ;; #(
17015     *)
17016       # `set' quotes correctly as required by POSIX, so do not add quotes.
17017       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17018       ;;
17019     esac |
17020     sort
17021 ) |
17022   sed '
17023      /^ac_cv_env_/b end
17024      t clear
17025      :clear
17026      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17027      t end
17028      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17029      :end' >>confcache
17030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17031   if test -w "$cache_file"; then
17032     if test "x$cache_file" != "x/dev/null"; then
17033       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17034 $as_echo "$as_me: updating cache $cache_file" >&6;}
17035       if test ! -f "$cache_file" || test -h "$cache_file"; then
17036         cat confcache >"$cache_file"
17037       else
17038         case $cache_file in #(
17039         */* | ?:*)
17040           mv -f confcache "$cache_file"$$ &&
17041           mv -f "$cache_file"$$ "$cache_file" ;; #(
17042         *)
17043           mv -f confcache "$cache_file" ;;
17044         esac
17045       fi
17046     fi
17047   else
17048     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17049 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17050   fi
17051 fi
17052 rm -f confcache
17053
17054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17055 # Let make expand exec_prefix.
17056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17057
17058 DEFS=-DHAVE_CONFIG_H
17059
17060 ac_libobjs=
17061 ac_ltlibobjs=
17062 U=
17063 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17064   # 1. Remove the extension, and $U if already installed.
17065   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17066   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17067   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17068   #    will be set to the directory where LIBOBJS objects are built.
17069   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17070   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17071 done
17072 LIBOBJS=$ac_libobjs
17073
17074 LTLIBOBJS=$ac_ltlibobjs
17075
17076
17077 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17078   as_fn_error $? "conditional \"AMDEP\" was never defined.
17079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17080 fi
17081 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17082   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17084 fi
17085 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
17086   as_fn_error $? "conditional \"JAVA\" was never defined.
17087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17088 fi
17089 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
17090   as_fn_error $? "conditional \"SAMPLE\" was never defined.
17091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17092 fi
17093 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
17094   as_fn_error $? "conditional \"NO_SASL_DB_MANS\" was never defined.
17095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17096 fi
17097 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
17098   as_fn_error $? "conditional \"SASLAUTHD\" was never defined.
17099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17100 fi
17101 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
17102   as_fn_error $? "conditional \"PWCHECK\" was never defined.
17103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17104 fi
17105 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
17106   as_fn_error $? "conditional \"MACOSX\" was never defined.
17107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17108 fi
17109
17110 : "${CONFIG_STATUS=./config.status}"
17111 ac_write_fail=0
17112 ac_clean_files_save=$ac_clean_files
17113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17116 as_write_fail=0
17117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17118 #! $SHELL
17119 # Generated by $as_me.
17120 # Run this file to recreate the current configuration.
17121 # Compiler output produced by configure, useful for debugging
17122 # configure, is in config.log if it exists.
17123
17124 debug=false
17125 ac_cs_recheck=false
17126 ac_cs_silent=false
17127
17128 SHELL=\${CONFIG_SHELL-$SHELL}
17129 export SHELL
17130 _ASEOF
17131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17132 ## -------------------- ##
17133 ## M4sh Initialization. ##
17134 ## -------------------- ##
17135
17136 # Be more Bourne compatible
17137 DUALCASE=1; export DUALCASE # for MKS sh
17138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17139   emulate sh
17140   NULLCMD=:
17141   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17142   # is contrary to our usage.  Disable this feature.
17143   alias -g '${1+"$@"}'='"$@"'
17144   setopt NO_GLOB_SUBST
17145 else
17146   case `(set -o) 2>/dev/null` in #(
17147   *posix*) :
17148     set -o posix ;; #(
17149   *) :
17150      ;;
17151 esac
17152 fi
17153
17154
17155 as_nl='
17156 '
17157 export as_nl
17158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17162 # Prefer a ksh shell builtin over an external printf program on Solaris,
17163 # but without wasting forks for bash or zsh.
17164 if test -z "$BASH_VERSION$ZSH_VERSION" \
17165     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17166   as_echo='print -r --'
17167   as_echo_n='print -rn --'
17168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17169   as_echo='printf %s\n'
17170   as_echo_n='printf %s'
17171 else
17172   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17173     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17174     as_echo_n='/usr/ucb/echo -n'
17175   else
17176     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17177     as_echo_n_body='eval
17178       arg=$1;
17179       case $arg in #(
17180       *"$as_nl"*)
17181         expr "X$arg" : "X\\(.*\\)$as_nl";
17182         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17183       esac;
17184       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17185     '
17186     export as_echo_n_body
17187     as_echo_n='sh -c $as_echo_n_body as_echo'
17188   fi
17189   export as_echo_body
17190   as_echo='sh -c $as_echo_body as_echo'
17191 fi
17192
17193 # The user is always right.
17194 if test "${PATH_SEPARATOR+set}" != set; then
17195   PATH_SEPARATOR=:
17196   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17197     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17198       PATH_SEPARATOR=';'
17199   }
17200 fi
17201
17202
17203 # IFS
17204 # We need space, tab and new line, in precisely that order.  Quoting is
17205 # there to prevent editors from complaining about space-tab.
17206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17207 # splitting by setting IFS to empty value.)
17208 IFS=" ""        $as_nl"
17209
17210 # Find who we are.  Look in the path if we contain no directory separator.
17211 as_myself=
17212 case $0 in #((
17213   *[\\/]* ) as_myself=$0 ;;
17214   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17215 for as_dir in $PATH
17216 do
17217   IFS=$as_save_IFS
17218   test -z "$as_dir" && as_dir=.
17219     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17220   done
17221 IFS=$as_save_IFS
17222
17223      ;;
17224 esac
17225 # We did not find ourselves, most probably we were run as `sh COMMAND'
17226 # in which case we are not to be found in the path.
17227 if test "x$as_myself" = x; then
17228   as_myself=$0
17229 fi
17230 if test ! -f "$as_myself"; then
17231   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17232   exit 1
17233 fi
17234
17235 # Unset variables that we do not need and which cause bugs (e.g. in
17236 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17237 # suppresses any "Segmentation fault" message there.  '((' could
17238 # trigger a bug in pdksh 5.2.14.
17239 for as_var in BASH_ENV ENV MAIL MAILPATH
17240 do eval test x\${$as_var+set} = xset \
17241   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17242 done
17243 PS1='$ '
17244 PS2='> '
17245 PS4='+ '
17246
17247 # NLS nuisances.
17248 LC_ALL=C
17249 export LC_ALL
17250 LANGUAGE=C
17251 export LANGUAGE
17252
17253 # CDPATH.
17254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17255
17256
17257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17258 # ----------------------------------------
17259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17261 # script with STATUS, using 1 if that was 0.
17262 as_fn_error ()
17263 {
17264   as_status=$1; test $as_status -eq 0 && as_status=1
17265   if test "$4"; then
17266     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17267     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17268   fi
17269   $as_echo "$as_me: error: $2" >&2
17270   as_fn_exit $as_status
17271 } # as_fn_error
17272
17273
17274 # as_fn_set_status STATUS
17275 # -----------------------
17276 # Set $? to STATUS, without forking.
17277 as_fn_set_status ()
17278 {
17279   return $1
17280 } # as_fn_set_status
17281
17282 # as_fn_exit STATUS
17283 # -----------------
17284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17285 as_fn_exit ()
17286 {
17287   set +e
17288   as_fn_set_status $1
17289   exit $1
17290 } # as_fn_exit
17291
17292 # as_fn_unset VAR
17293 # ---------------
17294 # Portably unset VAR.
17295 as_fn_unset ()
17296 {
17297   { eval $1=; unset $1;}
17298 }
17299 as_unset=as_fn_unset
17300 # as_fn_append VAR VALUE
17301 # ----------------------
17302 # Append the text in VALUE to the end of the definition contained in VAR. Take
17303 # advantage of any shell optimizations that allow amortized linear growth over
17304 # repeated appends, instead of the typical quadratic growth present in naive
17305 # implementations.
17306 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17307   eval 'as_fn_append ()
17308   {
17309     eval $1+=\$2
17310   }'
17311 else
17312   as_fn_append ()
17313   {
17314     eval $1=\$$1\$2
17315   }
17316 fi # as_fn_append
17317
17318 # as_fn_arith ARG...
17319 # ------------------
17320 # Perform arithmetic evaluation on the ARGs, and store the result in the
17321 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17322 # must be portable across $(()) and expr.
17323 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17324   eval 'as_fn_arith ()
17325   {
17326     as_val=$(( $* ))
17327   }'
17328 else
17329   as_fn_arith ()
17330   {
17331     as_val=`expr "$@" || test $? -eq 1`
17332   }
17333 fi # as_fn_arith
17334
17335
17336 if expr a : '\(a\)' >/dev/null 2>&1 &&
17337    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17338   as_expr=expr
17339 else
17340   as_expr=false
17341 fi
17342
17343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17344   as_basename=basename
17345 else
17346   as_basename=false
17347 fi
17348
17349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17350   as_dirname=dirname
17351 else
17352   as_dirname=false
17353 fi
17354
17355 as_me=`$as_basename -- "$0" ||
17356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17357          X"$0" : 'X\(//\)$' \| \
17358          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17359 $as_echo X/"$0" |
17360     sed '/^.*\/\([^/][^/]*\)\/*$/{
17361             s//\1/
17362             q
17363           }
17364           /^X\/\(\/\/\)$/{
17365             s//\1/
17366             q
17367           }
17368           /^X\/\(\/\).*/{
17369             s//\1/
17370             q
17371           }
17372           s/.*/./; q'`
17373
17374 # Avoid depending upon Character Ranges.
17375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17378 as_cr_digits='0123456789'
17379 as_cr_alnum=$as_cr_Letters$as_cr_digits
17380
17381 ECHO_C= ECHO_N= ECHO_T=
17382 case `echo -n x` in #(((((
17383 -n*)
17384   case `echo 'xy\c'` in
17385   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17386   xy)  ECHO_C='\c';;
17387   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17388        ECHO_T=' ';;
17389   esac;;
17390 *)
17391   ECHO_N='-n';;
17392 esac
17393
17394 rm -f conf$$ conf$$.exe conf$$.file
17395 if test -d conf$$.dir; then
17396   rm -f conf$$.dir/conf$$.file
17397 else
17398   rm -f conf$$.dir
17399   mkdir conf$$.dir 2>/dev/null
17400 fi
17401 if (echo >conf$$.file) 2>/dev/null; then
17402   if ln -s conf$$.file conf$$ 2>/dev/null; then
17403     as_ln_s='ln -s'
17404     # ... but there are two gotchas:
17405     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17406     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17407     # In both cases, we have to default to `cp -p'.
17408     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17409       as_ln_s='cp -p'
17410   elif ln conf$$.file conf$$ 2>/dev/null; then
17411     as_ln_s=ln
17412   else
17413     as_ln_s='cp -p'
17414   fi
17415 else
17416   as_ln_s='cp -p'
17417 fi
17418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17419 rmdir conf$$.dir 2>/dev/null
17420
17421
17422 # as_fn_mkdir_p
17423 # -------------
17424 # Create "$as_dir" as a directory, including parents if necessary.
17425 as_fn_mkdir_p ()
17426 {
17427
17428   case $as_dir in #(
17429   -*) as_dir=./$as_dir;;
17430   esac
17431   test -d "$as_dir" || eval $as_mkdir_p || {
17432     as_dirs=
17433     while :; do
17434       case $as_dir in #(
17435       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17436       *) as_qdir=$as_dir;;
17437       esac
17438       as_dirs="'$as_qdir' $as_dirs"
17439       as_dir=`$as_dirname -- "$as_dir" ||
17440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17441          X"$as_dir" : 'X\(//\)[^/]' \| \
17442          X"$as_dir" : 'X\(//\)$' \| \
17443          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17444 $as_echo X"$as_dir" |
17445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17446             s//\1/
17447             q
17448           }
17449           /^X\(\/\/\)[^/].*/{
17450             s//\1/
17451             q
17452           }
17453           /^X\(\/\/\)$/{
17454             s//\1/
17455             q
17456           }
17457           /^X\(\/\).*/{
17458             s//\1/
17459             q
17460           }
17461           s/.*/./; q'`
17462       test -d "$as_dir" && break
17463     done
17464     test -z "$as_dirs" || eval "mkdir $as_dirs"
17465   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17466
17467
17468 } # as_fn_mkdir_p
17469 if mkdir -p . 2>/dev/null; then
17470   as_mkdir_p='mkdir -p "$as_dir"'
17471 else
17472   test -d ./-p && rmdir ./-p
17473   as_mkdir_p=false
17474 fi
17475
17476 if test -x / >/dev/null 2>&1; then
17477   as_test_x='test -x'
17478 else
17479   if ls -dL / >/dev/null 2>&1; then
17480     as_ls_L_option=L
17481   else
17482     as_ls_L_option=
17483   fi
17484   as_test_x='
17485     eval sh -c '\''
17486       if test -d "$1"; then
17487         test -d "$1/.";
17488       else
17489         case $1 in #(
17490         -*)set "./$1";;
17491         esac;
17492         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17493         ???[sx]*):;;*)false;;esac;fi
17494     '\'' sh
17495   '
17496 fi
17497 as_executable_p=$as_test_x
17498
17499 # Sed expression to map a string onto a valid CPP name.
17500 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17501
17502 # Sed expression to map a string onto a valid variable name.
17503 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17504
17505
17506 exec 6>&1
17507 ## ----------------------------------- ##
17508 ## Main body of $CONFIG_STATUS script. ##
17509 ## ----------------------------------- ##
17510 _ASEOF
17511 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17512
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 # Save the log message, to keep $0 and so on meaningful, and to
17515 # report actual input values of CONFIG_FILES etc. instead of their
17516 # values after options handling.
17517 ac_log="
17518 This file was extended by $as_me, which was
17519 generated by GNU Autoconf 2.68.  Invocation command line was
17520
17521   CONFIG_FILES    = $CONFIG_FILES
17522   CONFIG_HEADERS  = $CONFIG_HEADERS
17523   CONFIG_LINKS    = $CONFIG_LINKS
17524   CONFIG_COMMANDS = $CONFIG_COMMANDS
17525   $ $0 $@
17526
17527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17528 "
17529
17530 _ACEOF
17531
17532 case $ac_config_files in *"
17533 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17534 esac
17535
17536 case $ac_config_headers in *"
17537 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17538 esac
17539
17540
17541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 # Files that config.status was made for.
17543 config_files="$ac_config_files"
17544 config_headers="$ac_config_headers"
17545 config_commands="$ac_config_commands"
17546
17547 _ACEOF
17548
17549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17550 ac_cs_usage="\
17551 \`$as_me' instantiates files and other configuration actions
17552 from templates according to the current configuration.  Unless the files
17553 and actions are specified as TAGs, all are instantiated by default.
17554
17555 Usage: $0 [OPTION]... [TAG]...
17556
17557   -h, --help       print this help, then exit
17558   -V, --version    print version number and configuration settings, then exit
17559       --config     print configuration, then exit
17560   -q, --quiet, --silent
17561                    do not print progress messages
17562   -d, --debug      don't remove temporary files
17563       --recheck    update $as_me by reconfiguring in the same conditions
17564       --file=FILE[:TEMPLATE]
17565                    instantiate the configuration file FILE
17566       --header=FILE[:TEMPLATE]
17567                    instantiate the configuration header FILE
17568
17569 Configuration files:
17570 $config_files
17571
17572 Configuration headers:
17573 $config_headers
17574
17575 Configuration commands:
17576 $config_commands
17577
17578 Report bugs to the package provider."
17579
17580 _ACEOF
17581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17582 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17583 ac_cs_version="\\
17584 config.status
17585 configured by $0, generated by GNU Autoconf 2.68,
17586   with options \\"\$ac_cs_config\\"
17587
17588 Copyright (C) 2010 Free Software Foundation, Inc.
17589 This config.status script is free software; the Free Software Foundation
17590 gives unlimited permission to copy, distribute and modify it."
17591
17592 ac_pwd='$ac_pwd'
17593 srcdir='$srcdir'
17594 INSTALL='$INSTALL'
17595 MKDIR_P='$MKDIR_P'
17596 AWK='$AWK'
17597 test -n "\$AWK" || AWK=awk
17598 _ACEOF
17599
17600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17601 # The default lists apply if the user does not specify any file.
17602 ac_need_defaults=:
17603 while test $# != 0
17604 do
17605   case $1 in
17606   --*=?*)
17607     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17608     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17609     ac_shift=:
17610     ;;
17611   --*=)
17612     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17613     ac_optarg=
17614     ac_shift=:
17615     ;;
17616   *)
17617     ac_option=$1
17618     ac_optarg=$2
17619     ac_shift=shift
17620     ;;
17621   esac
17622
17623   case $ac_option in
17624   # Handling of the options.
17625   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17626     ac_cs_recheck=: ;;
17627   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17628     $as_echo "$ac_cs_version"; exit ;;
17629   --config | --confi | --conf | --con | --co | --c )
17630     $as_echo "$ac_cs_config"; exit ;;
17631   --debug | --debu | --deb | --de | --d | -d )
17632     debug=: ;;
17633   --file | --fil | --fi | --f )
17634     $ac_shift
17635     case $ac_optarg in
17636     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17637     '') as_fn_error $? "missing file argument" ;;
17638     esac
17639     as_fn_append CONFIG_FILES " '$ac_optarg'"
17640     ac_need_defaults=false;;
17641   --header | --heade | --head | --hea )
17642     $ac_shift
17643     case $ac_optarg in
17644     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17645     esac
17646     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17647     ac_need_defaults=false;;
17648   --he | --h)
17649     # Conflict between --help and --header
17650     as_fn_error $? "ambiguous option: \`$1'
17651 Try \`$0 --help' for more information.";;
17652   --help | --hel | -h )
17653     $as_echo "$ac_cs_usage"; exit ;;
17654   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17655   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17656     ac_cs_silent=: ;;
17657
17658   # This is an error.
17659   -*) as_fn_error $? "unrecognized option: \`$1'
17660 Try \`$0 --help' for more information." ;;
17661
17662   *) as_fn_append ac_config_targets " $1"
17663      ac_need_defaults=false ;;
17664
17665   esac
17666   shift
17667 done
17668
17669 ac_configure_extra_args=
17670
17671 if $ac_cs_silent; then
17672   exec 6>/dev/null
17673   ac_configure_extra_args="$ac_configure_extra_args --silent"
17674 fi
17675
17676 _ACEOF
17677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17678 if \$ac_cs_recheck; then
17679   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17680   shift
17681   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17682   CONFIG_SHELL='$SHELL'
17683   export CONFIG_SHELL
17684   exec "\$@"
17685 fi
17686
17687 _ACEOF
17688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17689 exec 5>>config.log
17690 {
17691   echo
17692   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17693 ## Running $as_me. ##
17694 _ASBOX
17695   $as_echo "$ac_log"
17696 } >&5
17697
17698 _ACEOF
17699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17700 #
17701 # INIT-COMMANDS
17702 #
17703 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17704
17705
17706 # The HP-UX ksh and POSIX shell print the target directory to stdout
17707 # if CDPATH is set.
17708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17709
17710 sed_quote_subst='$sed_quote_subst'
17711 double_quote_subst='$double_quote_subst'
17712 delay_variable_subst='$delay_variable_subst'
17713 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17714 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17715 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17716 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17717 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17718 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17719 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17720 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17721 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17722 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17723 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17724 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17725 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17726 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17727 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17728 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17729 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17730 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17731 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17732 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17733 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17734 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17735 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17736 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17737 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17738 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17739 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17740 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17741 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17742 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17743 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17744 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17745 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17746 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17747 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17748 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17749 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17750 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17751 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17752 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17753 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17754 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17755 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17756 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17757 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17758 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17759 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17760 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17761 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"`'
17762 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17763 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17764 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17765 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17766 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17767 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17768 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17769 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17770 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17771 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17772 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17773 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17774 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17775 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17776 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17777 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17778 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17779 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17780 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17781 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17782 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17783 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17784 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17785 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17786 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17787 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17788 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17789 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17790 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17791 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17792 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17793 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17794 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17795 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17796 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17797 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17798 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17799 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17800 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17801 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17802 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17803 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17804 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17805 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17806 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17807 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17808 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17809 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17810 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17811 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17812 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17813 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17814 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17815 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17816 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17817 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17818 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17819 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17820 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17821 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17822 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17823 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17824 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17825 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17826 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17827 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17828 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17829 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17830 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17831 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17832 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17833
17834 LTCC='$LTCC'
17835 LTCFLAGS='$LTCFLAGS'
17836 compiler='$compiler_DEFAULT'
17837
17838 # A function that is used when there is no print builtin or printf.
17839 func_fallback_echo ()
17840 {
17841   eval 'cat <<_LTECHO_EOF
17842 \$1
17843 _LTECHO_EOF'
17844 }
17845
17846 # Quote evaled strings.
17847 for var in SHELL \
17848 ECHO \
17849 SED \
17850 GREP \
17851 EGREP \
17852 FGREP \
17853 LD \
17854 NM \
17855 LN_S \
17856 lt_SP2NL \
17857 lt_NL2SP \
17858 reload_flag \
17859 OBJDUMP \
17860 deplibs_check_method \
17861 file_magic_cmd \
17862 AR \
17863 AR_FLAGS \
17864 STRIP \
17865 RANLIB \
17866 CC \
17867 CFLAGS \
17868 compiler \
17869 lt_cv_sys_global_symbol_pipe \
17870 lt_cv_sys_global_symbol_to_cdecl \
17871 lt_cv_sys_global_symbol_to_c_name_address \
17872 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17873 lt_prog_compiler_no_builtin_flag \
17874 lt_prog_compiler_wl \
17875 lt_prog_compiler_pic \
17876 lt_prog_compiler_static \
17877 lt_cv_prog_compiler_c_o \
17878 need_locks \
17879 DSYMUTIL \
17880 NMEDIT \
17881 LIPO \
17882 OTOOL \
17883 OTOOL64 \
17884 shrext_cmds \
17885 export_dynamic_flag_spec \
17886 whole_archive_flag_spec \
17887 compiler_needs_object \
17888 with_gnu_ld \
17889 allow_undefined_flag \
17890 no_undefined_flag \
17891 hardcode_libdir_flag_spec \
17892 hardcode_libdir_flag_spec_ld \
17893 hardcode_libdir_separator \
17894 fix_srcfile_path \
17895 exclude_expsyms \
17896 include_expsyms \
17897 file_list_spec \
17898 variables_saved_for_relink \
17899 libname_spec \
17900 library_names_spec \
17901 soname_spec \
17902 install_override_mode \
17903 finish_eval \
17904 old_striplib \
17905 striplib; do
17906     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17907     *[\\\\\\\`\\"\\\$]*)
17908       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17909       ;;
17910     *)
17911       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17912       ;;
17913     esac
17914 done
17915
17916 # Double-quote double-evaled strings.
17917 for var in reload_cmds \
17918 old_postinstall_cmds \
17919 old_postuninstall_cmds \
17920 old_archive_cmds \
17921 extract_expsyms_cmds \
17922 old_archive_from_new_cmds \
17923 old_archive_from_expsyms_cmds \
17924 archive_cmds \
17925 archive_expsym_cmds \
17926 module_cmds \
17927 module_expsym_cmds \
17928 export_symbols_cmds \
17929 prelink_cmds \
17930 postinstall_cmds \
17931 postuninstall_cmds \
17932 finish_cmds \
17933 sys_lib_search_path_spec \
17934 sys_lib_dlsearch_path_spec; do
17935     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17936     *[\\\\\\\`\\"\\\$]*)
17937       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17938       ;;
17939     *)
17940       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17941       ;;
17942     esac
17943 done
17944
17945 ac_aux_dir='$ac_aux_dir'
17946 xsi_shell='$xsi_shell'
17947 lt_shell_append='$lt_shell_append'
17948
17949 # See if we are running on zsh, and set the options which allow our
17950 # commands through without removal of \ escapes INIT.
17951 if test -n "\${ZSH_VERSION+set}" ; then
17952    setopt NO_GLOB_SUBST
17953 fi
17954
17955
17956     PACKAGE='$PACKAGE'
17957     VERSION='$VERSION'
17958     TIMESTAMP='$TIMESTAMP'
17959     RM='$RM'
17960     ofile='$ofile'
17961
17962
17963
17964
17965 _ACEOF
17966
17967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17968
17969 # Handling of arguments.
17970 for ac_config_target in $ac_config_targets
17971 do
17972   case $ac_config_target in
17973     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17974     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17975     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17976     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17977     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17978     "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
17979     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17980     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17981     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17982     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17983     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
17984     "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
17985     "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
17986     "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
17987     "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
17988     "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
17989     "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
17990     "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
17991     "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
17992     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17993
17994   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17995   esac
17996 done
17997
17998
17999 # If the user did not use the arguments to specify the items to instantiate,
18000 # then the envvar interface is used.  Set only those that are not.
18001 # We use the long form for the default assignment because of an extremely
18002 # bizarre bug on SunOS 4.1.3.
18003 if $ac_need_defaults; then
18004   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18005   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18006   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18007 fi
18008
18009 # Have a temporary directory for convenience.  Make it in the build tree
18010 # simply because there is no reason against having it here, and in addition,
18011 # creating and moving files from /tmp can sometimes cause problems.
18012 # Hook for its removal unless debugging.
18013 # Note that there is a small window in which the directory will not be cleaned:
18014 # after its creation but before its name has been assigned to `$tmp'.
18015 $debug ||
18016 {
18017   tmp= ac_tmp=
18018   trap 'exit_status=$?
18019   : "${ac_tmp:=$tmp}"
18020   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18021 ' 0
18022   trap 'as_fn_exit 1' 1 2 13 15
18023 }
18024 # Create a (secure) tmp directory for tmp files.
18025
18026 {
18027   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18028   test -d "$tmp"
18029 }  ||
18030 {
18031   tmp=./conf$$-$RANDOM
18032   (umask 077 && mkdir "$tmp")
18033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18034 ac_tmp=$tmp
18035
18036 # Set up the scripts for CONFIG_FILES section.
18037 # No need to generate them if there are no CONFIG_FILES.
18038 # This happens for instance with `./config.status config.h'.
18039 if test -n "$CONFIG_FILES"; then
18040
18041
18042 ac_cr=`echo X | tr X '\015'`
18043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18044 # But we know of no other shell where ac_cr would be empty at this
18045 # point, so we can use a bashism as a fallback.
18046 if test "x$ac_cr" = x; then
18047   eval ac_cr=\$\'\\r\'
18048 fi
18049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18051   ac_cs_awk_cr='\\r'
18052 else
18053   ac_cs_awk_cr=$ac_cr
18054 fi
18055
18056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18057 _ACEOF
18058
18059
18060 {
18061   echo "cat >conf$$subs.awk <<_ACEOF" &&
18062   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18063   echo "_ACEOF"
18064 } >conf$$subs.sh ||
18065   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18067 ac_delim='%!_!# '
18068 for ac_last_try in false false false false false :; do
18069   . ./conf$$subs.sh ||
18070     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18071
18072   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18073   if test $ac_delim_n = $ac_delim_num; then
18074     break
18075   elif $ac_last_try; then
18076     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18077   else
18078     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18079   fi
18080 done
18081 rm -f conf$$subs.sh
18082
18083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18085 _ACEOF
18086 sed -n '
18087 h
18088 s/^/S["/; s/!.*/"]=/
18089 p
18090 g
18091 s/^[^!]*!//
18092 :repl
18093 t repl
18094 s/'"$ac_delim"'$//
18095 t delim
18096 :nl
18097 h
18098 s/\(.\{148\}\)..*/\1/
18099 t more1
18100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18101 p
18102 n
18103 b repl
18104 :more1
18105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18106 p
18107 g
18108 s/.\{148\}//
18109 t nl
18110 :delim
18111 h
18112 s/\(.\{148\}\)..*/\1/
18113 t more2
18114 s/["\\]/\\&/g; s/^/"/; s/$/"/
18115 p
18116 b
18117 :more2
18118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18119 p
18120 g
18121 s/.\{148\}//
18122 t delim
18123 ' <conf$$subs.awk | sed '
18124 /^[^""]/{
18125   N
18126   s/\n//
18127 }
18128 ' >>$CONFIG_STATUS || ac_write_fail=1
18129 rm -f conf$$subs.awk
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18131 _ACAWK
18132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18133   for (key in S) S_is_set[key] = 1
18134   FS = "\a"
18135
18136 }
18137 {
18138   line = $ 0
18139   nfields = split(line, field, "@")
18140   substed = 0
18141   len = length(field[1])
18142   for (i = 2; i < nfields; i++) {
18143     key = field[i]
18144     keylen = length(key)
18145     if (S_is_set[key]) {
18146       value = S[key]
18147       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18148       len += length(value) + length(field[++i])
18149       substed = 1
18150     } else
18151       len += 1 + keylen
18152   }
18153
18154   print line
18155 }
18156
18157 _ACAWK
18158 _ACEOF
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18161   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18162 else
18163   cat
18164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18165   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18166 _ACEOF
18167
18168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18170 # trailing colons and then remove the whole line if VPATH becomes empty
18171 # (actually we leave an empty line to preserve line numbers).
18172 if test "x$srcdir" = x.; then
18173   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18174 h
18175 s///
18176 s/^/:/
18177 s/[      ]*$/:/
18178 s/:\$(srcdir):/:/g
18179 s/:\${srcdir}:/:/g
18180 s/:@srcdir@:/:/g
18181 s/^:*//
18182 s/:*$//
18183 x
18184 s/\(=[   ]*\).*/\1/
18185 G
18186 s/\n//
18187 s/^[^=]*=[       ]*$//
18188 }'
18189 fi
18190
18191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18192 fi # test -n "$CONFIG_FILES"
18193
18194 # Set up the scripts for CONFIG_HEADERS section.
18195 # No need to generate them if there are no CONFIG_HEADERS.
18196 # This happens for instance with `./config.status Makefile'.
18197 if test -n "$CONFIG_HEADERS"; then
18198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18199 BEGIN {
18200 _ACEOF
18201
18202 # Transform confdefs.h into an awk script `defines.awk', embedded as
18203 # here-document in config.status, that substitutes the proper values into
18204 # config.h.in to produce config.h.
18205
18206 # Create a delimiter string that does not exist in confdefs.h, to ease
18207 # handling of long lines.
18208 ac_delim='%!_!# '
18209 for ac_last_try in false false :; do
18210   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18211   if test -z "$ac_tt"; then
18212     break
18213   elif $ac_last_try; then
18214     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18215   else
18216     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18217   fi
18218 done
18219
18220 # For the awk script, D is an array of macro values keyed by name,
18221 # likewise P contains macro parameters if any.  Preserve backslash
18222 # newline sequences.
18223
18224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18225 sed -n '
18226 s/.\{148\}/&'"$ac_delim"'/g
18227 t rset
18228 :rset
18229 s/^[     ]*#[    ]*define[       ][      ]*/ /
18230 t def
18231 d
18232 :def
18233 s/\\$//
18234 t bsnl
18235 s/["\\]/\\&/g
18236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18237 D["\1"]=" \3"/p
18238 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18239 d
18240 :bsnl
18241 s/["\\]/\\&/g
18242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18243 D["\1"]=" \3\\\\\\n"\\/p
18244 t cont
18245 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18246 t cont
18247 d
18248 :cont
18249 n
18250 s/.\{148\}/&'"$ac_delim"'/g
18251 t clear
18252 :clear
18253 s/\\$//
18254 t bsnlc
18255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18256 d
18257 :bsnlc
18258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18259 b cont
18260 ' <confdefs.h | sed '
18261 s/'"$ac_delim"'/"\\\
18262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18263
18264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265   for (key in D) D_is_set[key] = 1
18266   FS = "\a"
18267 }
18268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18269   line = \$ 0
18270   split(line, arg, " ")
18271   if (arg[1] == "#") {
18272     defundef = arg[2]
18273     mac1 = arg[3]
18274   } else {
18275     defundef = substr(arg[1], 2)
18276     mac1 = arg[2]
18277   }
18278   split(mac1, mac2, "(") #)
18279   macro = mac2[1]
18280   prefix = substr(line, 1, index(line, defundef) - 1)
18281   if (D_is_set[macro]) {
18282     # Preserve the white space surrounding the "#".
18283     print prefix "define", macro P[macro] D[macro]
18284     next
18285   } else {
18286     # Replace #undef with comments.  This is necessary, for example,
18287     # in the case of _POSIX_SOURCE, which is predefined and required
18288     # on some systems where configure will not decide to define it.
18289     if (defundef == "undef") {
18290       print "/*", prefix defundef, macro, "*/"
18291       next
18292     }
18293   }
18294 }
18295 { print }
18296 _ACAWK
18297 _ACEOF
18298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18300 fi # test -n "$CONFIG_HEADERS"
18301
18302
18303 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18304 shift
18305 for ac_tag
18306 do
18307   case $ac_tag in
18308   :[FHLC]) ac_mode=$ac_tag; continue;;
18309   esac
18310   case $ac_mode$ac_tag in
18311   :[FHL]*:*);;
18312   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18313   :[FH]-) ac_tag=-:-;;
18314   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18315   esac
18316   ac_save_IFS=$IFS
18317   IFS=:
18318   set x $ac_tag
18319   IFS=$ac_save_IFS
18320   shift
18321   ac_file=$1
18322   shift
18323
18324   case $ac_mode in
18325   :L) ac_source=$1;;
18326   :[FH])
18327     ac_file_inputs=
18328     for ac_f
18329     do
18330       case $ac_f in
18331       -) ac_f="$ac_tmp/stdin";;
18332       *) # Look for the file first in the build tree, then in the source tree
18333          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18334          # because $ac_f cannot contain `:'.
18335          test -f "$ac_f" ||
18336            case $ac_f in
18337            [\\/$]*) false;;
18338            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18339            esac ||
18340            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18341       esac
18342       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18343       as_fn_append ac_file_inputs " '$ac_f'"
18344     done
18345
18346     # Let's still pretend it is `configure' which instantiates (i.e., don't
18347     # use $as_me), people would be surprised to read:
18348     #    /* config.h.  Generated by config.status.  */
18349     configure_input='Generated from '`
18350           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18351         `' by configure.'
18352     if test x"$ac_file" != x-; then
18353       configure_input="$ac_file.  $configure_input"
18354       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18355 $as_echo "$as_me: creating $ac_file" >&6;}
18356     fi
18357     # Neutralize special characters interpreted by sed in replacement strings.
18358     case $configure_input in #(
18359     *\&* | *\|* | *\\* )
18360        ac_sed_conf_input=`$as_echo "$configure_input" |
18361        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18362     *) ac_sed_conf_input=$configure_input;;
18363     esac
18364
18365     case $ac_tag in
18366     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18367       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18368     esac
18369     ;;
18370   esac
18371
18372   ac_dir=`$as_dirname -- "$ac_file" ||
18373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18374          X"$ac_file" : 'X\(//\)[^/]' \| \
18375          X"$ac_file" : 'X\(//\)$' \| \
18376          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18377 $as_echo X"$ac_file" |
18378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18379             s//\1/
18380             q
18381           }
18382           /^X\(\/\/\)[^/].*/{
18383             s//\1/
18384             q
18385           }
18386           /^X\(\/\/\)$/{
18387             s//\1/
18388             q
18389           }
18390           /^X\(\/\).*/{
18391             s//\1/
18392             q
18393           }
18394           s/.*/./; q'`
18395   as_dir="$ac_dir"; as_fn_mkdir_p
18396   ac_builddir=.
18397
18398 case "$ac_dir" in
18399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18400 *)
18401   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18402   # A ".." for each directory in $ac_dir_suffix.
18403   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18404   case $ac_top_builddir_sub in
18405   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18406   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18407   esac ;;
18408 esac
18409 ac_abs_top_builddir=$ac_pwd
18410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18411 # for backward compatibility:
18412 ac_top_builddir=$ac_top_build_prefix
18413
18414 case $srcdir in
18415   .)  # We are building in place.
18416     ac_srcdir=.
18417     ac_top_srcdir=$ac_top_builddir_sub
18418     ac_abs_top_srcdir=$ac_pwd ;;
18419   [\\/]* | ?:[\\/]* )  # Absolute name.
18420     ac_srcdir=$srcdir$ac_dir_suffix;
18421     ac_top_srcdir=$srcdir
18422     ac_abs_top_srcdir=$srcdir ;;
18423   *) # Relative name.
18424     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18425     ac_top_srcdir=$ac_top_build_prefix$srcdir
18426     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18427 esac
18428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18429
18430
18431   case $ac_mode in
18432   :F)
18433   #
18434   # CONFIG_FILE
18435   #
18436
18437   case $INSTALL in
18438   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18439   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18440   esac
18441   ac_MKDIR_P=$MKDIR_P
18442   case $MKDIR_P in
18443   [\\/$]* | ?:[\\/]* ) ;;
18444   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18445   esac
18446 _ACEOF
18447
18448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18449 # If the template does not know about datarootdir, expand it.
18450 # FIXME: This hack should be removed a few years after 2.60.
18451 ac_datarootdir_hack=; ac_datarootdir_seen=
18452 ac_sed_dataroot='
18453 /datarootdir/ {
18454   p
18455   q
18456 }
18457 /@datadir@/p
18458 /@docdir@/p
18459 /@infodir@/p
18460 /@localedir@/p
18461 /@mandir@/p'
18462 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18463 *datarootdir*) ac_datarootdir_seen=yes;;
18464 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18465   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18466 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18467 _ACEOF
18468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469   ac_datarootdir_hack='
18470   s&@datadir@&$datadir&g
18471   s&@docdir@&$docdir&g
18472   s&@infodir@&$infodir&g
18473   s&@localedir@&$localedir&g
18474   s&@mandir@&$mandir&g
18475   s&\\\${datarootdir}&$datarootdir&g' ;;
18476 esac
18477 _ACEOF
18478
18479 # Neutralize VPATH when `$srcdir' = `.'.
18480 # Shell code in configure.ac might set extrasub.
18481 # FIXME: do we really want to maintain this feature?
18482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18483 ac_sed_extra="$ac_vpsub
18484 $extrasub
18485 _ACEOF
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18487 :t
18488 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18489 s|@configure_input@|$ac_sed_conf_input|;t t
18490 s&@top_builddir@&$ac_top_builddir_sub&;t t
18491 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18492 s&@srcdir@&$ac_srcdir&;t t
18493 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18494 s&@top_srcdir@&$ac_top_srcdir&;t t
18495 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18496 s&@builddir@&$ac_builddir&;t t
18497 s&@abs_builddir@&$ac_abs_builddir&;t t
18498 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18499 s&@INSTALL@&$ac_INSTALL&;t t
18500 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18501 $ac_datarootdir_hack
18502 "
18503 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18504   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18505
18506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18507   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18508   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18509       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18511 which seems to be undefined.  Please make sure it is defined" >&5
18512 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18513 which seems to be undefined.  Please make sure it is defined" >&2;}
18514
18515   rm -f "$ac_tmp/stdin"
18516   case $ac_file in
18517   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18518   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18519   esac \
18520   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18521  ;;
18522   :H)
18523   #
18524   # CONFIG_HEADER
18525   #
18526   if test x"$ac_file" != x-; then
18527     {
18528       $as_echo "/* $configure_input  */" \
18529       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18530     } >"$ac_tmp/config.h" \
18531       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18532     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18533       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18534 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18535     else
18536       rm -f "$ac_file"
18537       mv "$ac_tmp/config.h" "$ac_file" \
18538         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18539     fi
18540   else
18541     $as_echo "/* $configure_input  */" \
18542       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18543       || as_fn_error $? "could not create -" "$LINENO" 5
18544   fi
18545 # Compute "$ac_file"'s index in $config_headers.
18546 _am_arg="$ac_file"
18547 _am_stamp_count=1
18548 for _am_header in $config_headers :; do
18549   case $_am_header in
18550     $_am_arg | $_am_arg:* )
18551       break ;;
18552     * )
18553       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18554   esac
18555 done
18556 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18557 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18558          X"$_am_arg" : 'X\(//\)[^/]' \| \
18559          X"$_am_arg" : 'X\(//\)$' \| \
18560          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18561 $as_echo X"$_am_arg" |
18562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18563             s//\1/
18564             q
18565           }
18566           /^X\(\/\/\)[^/].*/{
18567             s//\1/
18568             q
18569           }
18570           /^X\(\/\/\)$/{
18571             s//\1/
18572             q
18573           }
18574           /^X\(\/\).*/{
18575             s//\1/
18576             q
18577           }
18578           s/.*/./; q'`/stamp-h$_am_stamp_count
18579  ;;
18580
18581   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18582 $as_echo "$as_me: executing $ac_file commands" >&6;}
18583  ;;
18584   esac
18585
18586
18587   case $ac_file$ac_mode in
18588     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18589   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18590   # are listed without --file.  Let's play safe and only enable the eval
18591   # if we detect the quoting.
18592   case $CONFIG_FILES in
18593   *\'*) eval set x "$CONFIG_FILES" ;;
18594   *)   set x $CONFIG_FILES ;;
18595   esac
18596   shift
18597   for mf
18598   do
18599     # Strip MF so we end up with the name of the file.
18600     mf=`echo "$mf" | sed -e 's/:.*$//'`
18601     # Check whether this is an Automake generated Makefile or not.
18602     # We used to match only the files named `Makefile.in', but
18603     # some people rename them; so instead we look at the file content.
18604     # Grep'ing the first line is not enough: some people post-process
18605     # each Makefile.in and add a new line on top of each file to say so.
18606     # Grep'ing the whole file is not good either: AIX grep has a line
18607     # limit of 2048, but all sed's we know have understand at least 4000.
18608     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18609       dirpart=`$as_dirname -- "$mf" ||
18610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18611          X"$mf" : 'X\(//\)[^/]' \| \
18612          X"$mf" : 'X\(//\)$' \| \
18613          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18614 $as_echo X"$mf" |
18615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18616             s//\1/
18617             q
18618           }
18619           /^X\(\/\/\)[^/].*/{
18620             s//\1/
18621             q
18622           }
18623           /^X\(\/\/\)$/{
18624             s//\1/
18625             q
18626           }
18627           /^X\(\/\).*/{
18628             s//\1/
18629             q
18630           }
18631           s/.*/./; q'`
18632     else
18633       continue
18634     fi
18635     # Extract the definition of DEPDIR, am__include, and am__quote
18636     # from the Makefile without running `make'.
18637     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18638     test -z "$DEPDIR" && continue
18639     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18640     test -z "am__include" && continue
18641     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18642     # When using ansi2knr, U may be empty or an underscore; expand it
18643     U=`sed -n 's/^U = //p' < "$mf"`
18644     # Find all dependency output files, they are included files with
18645     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18646     # simplest approach to changing $(DEPDIR) to its actual value in the
18647     # expansion.
18648     for file in `sed -n "
18649       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18650          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18651       # Make sure the directory exists.
18652       test -f "$dirpart/$file" && continue
18653       fdir=`$as_dirname -- "$file" ||
18654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18655          X"$file" : 'X\(//\)[^/]' \| \
18656          X"$file" : 'X\(//\)$' \| \
18657          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18658 $as_echo X"$file" |
18659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18660             s//\1/
18661             q
18662           }
18663           /^X\(\/\/\)[^/].*/{
18664             s//\1/
18665             q
18666           }
18667           /^X\(\/\/\)$/{
18668             s//\1/
18669             q
18670           }
18671           /^X\(\/\).*/{
18672             s//\1/
18673             q
18674           }
18675           s/.*/./; q'`
18676       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18677       # echo "creating $dirpart/$file"
18678       echo '# dummy' > "$dirpart/$file"
18679     done
18680   done
18681 }
18682  ;;
18683     "libtool":C)
18684
18685     # See if we are running on zsh, and set the options which allow our
18686     # commands through without removal of \ escapes.
18687     if test -n "${ZSH_VERSION+set}" ; then
18688       setopt NO_GLOB_SUBST
18689     fi
18690
18691     cfgfile="${ofile}T"
18692     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18693     $RM "$cfgfile"
18694
18695     cat <<_LT_EOF >> "$cfgfile"
18696 #! $SHELL
18697
18698 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18699 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18701 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18702 #
18703 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18704 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18705 #                 Inc.
18706 #   Written by Gordon Matzigkeit, 1996
18707 #
18708 #   This file is part of GNU Libtool.
18709 #
18710 # GNU Libtool is free software; you can redistribute it and/or
18711 # modify it under the terms of the GNU General Public License as
18712 # published by the Free Software Foundation; either version 2 of
18713 # the License, or (at your option) any later version.
18714 #
18715 # As a special exception to the GNU General Public License,
18716 # if you distribute this file as part of a program or library that
18717 # is built using GNU Libtool, you may include this file under the
18718 # same distribution terms that you use for the rest of that program.
18719 #
18720 # GNU Libtool is distributed in the hope that it will be useful,
18721 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18723 # GNU General Public License for more details.
18724 #
18725 # You should have received a copy of the GNU General Public License
18726 # along with GNU Libtool; see the file COPYING.  If not, a copy
18727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18728 # obtained by writing to the Free Software Foundation, Inc.,
18729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18730
18731
18732 # The names of the tagged configurations supported by this script.
18733 available_tags=""
18734
18735 # ### BEGIN LIBTOOL CONFIG
18736
18737 # Whether or not to build static libraries.
18738 build_old_libs=$enable_static
18739
18740 # Which release of libtool.m4 was used?
18741 macro_version=$macro_version
18742 macro_revision=$macro_revision
18743
18744 # Whether or not to build shared libraries.
18745 build_libtool_libs=$enable_shared
18746
18747 # What type of objects to build.
18748 pic_mode=$pic_mode
18749
18750 # Whether or not to optimize for fast installation.
18751 fast_install=$enable_fast_install
18752
18753 # Shell to use when invoking shell scripts.
18754 SHELL=$lt_SHELL
18755
18756 # An echo program that protects backslashes.
18757 ECHO=$lt_ECHO
18758
18759 # The host system.
18760 host_alias=$host_alias
18761 host=$host
18762 host_os=$host_os
18763
18764 # The build system.
18765 build_alias=$build_alias
18766 build=$build
18767 build_os=$build_os
18768
18769 # A sed program that does not truncate output.
18770 SED=$lt_SED
18771
18772 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18773 Xsed="\$SED -e 1s/^X//"
18774
18775 # A grep program that handles long lines.
18776 GREP=$lt_GREP
18777
18778 # An ERE matcher.
18779 EGREP=$lt_EGREP
18780
18781 # A literal string matcher.
18782 FGREP=$lt_FGREP
18783
18784 # A BSD- or MS-compatible name lister.
18785 NM=$lt_NM
18786
18787 # Whether we need soft or hard links.
18788 LN_S=$lt_LN_S
18789
18790 # What is the maximum length of a command?
18791 max_cmd_len=$max_cmd_len
18792
18793 # Object file suffix (normally "o").
18794 objext=$ac_objext
18795
18796 # Executable file suffix (normally "").
18797 exeext=$exeext
18798
18799 # whether the shell understands "unset".
18800 lt_unset=$lt_unset
18801
18802 # turn spaces into newlines.
18803 SP2NL=$lt_lt_SP2NL
18804
18805 # turn newlines into spaces.
18806 NL2SP=$lt_lt_NL2SP
18807
18808 # An object symbol dumper.
18809 OBJDUMP=$lt_OBJDUMP
18810
18811 # Method to check whether dependent libraries are shared objects.
18812 deplibs_check_method=$lt_deplibs_check_method
18813
18814 # Command to use when deplibs_check_method == "file_magic".
18815 file_magic_cmd=$lt_file_magic_cmd
18816
18817 # The archiver.
18818 AR=$lt_AR
18819 AR_FLAGS=$lt_AR_FLAGS
18820
18821 # A symbol stripping program.
18822 STRIP=$lt_STRIP
18823
18824 # Commands used to install an old-style archive.
18825 RANLIB=$lt_RANLIB
18826 old_postinstall_cmds=$lt_old_postinstall_cmds
18827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18828
18829 # Whether to use a lock for old archive extraction.
18830 lock_old_archive_extraction=$lock_old_archive_extraction
18831
18832 # A C compiler.
18833 LTCC=$lt_CC
18834
18835 # LTCC compiler flags.
18836 LTCFLAGS=$lt_CFLAGS
18837
18838 # Take the output of nm and produce a listing of raw symbols and C names.
18839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18840
18841 # Transform the output of nm in a proper C declaration.
18842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18843
18844 # Transform the output of nm in a C name address pair.
18845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18846
18847 # Transform the output of nm in a C name address pair when lib prefix is needed.
18848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18849
18850 # The name of the directory that contains temporary libtool files.
18851 objdir=$objdir
18852
18853 # Used to examine libraries when file_magic_cmd begins with "file".
18854 MAGIC_CMD=$MAGIC_CMD
18855
18856 # Must we lock files when doing compilation?
18857 need_locks=$lt_need_locks
18858
18859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18860 DSYMUTIL=$lt_DSYMUTIL
18861
18862 # Tool to change global to local symbols on Mac OS X.
18863 NMEDIT=$lt_NMEDIT
18864
18865 # Tool to manipulate fat objects and archives on Mac OS X.
18866 LIPO=$lt_LIPO
18867
18868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18869 OTOOL=$lt_OTOOL
18870
18871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18872 OTOOL64=$lt_OTOOL64
18873
18874 # Old archive suffix (normally "a").
18875 libext=$libext
18876
18877 # Shared library suffix (normally ".so").
18878 shrext_cmds=$lt_shrext_cmds
18879
18880 # The commands to extract the exported symbol list from a shared archive.
18881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18882
18883 # Variables whose values should be saved in libtool wrapper scripts and
18884 # restored at link time.
18885 variables_saved_for_relink=$lt_variables_saved_for_relink
18886
18887 # Do we need the "lib" prefix for modules?
18888 need_lib_prefix=$need_lib_prefix
18889
18890 # Do we need a version for libraries?
18891 need_version=$need_version
18892
18893 # Library versioning type.
18894 version_type=$version_type
18895
18896 # Shared library runtime path variable.
18897 runpath_var=$runpath_var
18898
18899 # Shared library path variable.
18900 shlibpath_var=$shlibpath_var
18901
18902 # Is shlibpath searched before the hard-coded library search path?
18903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18904
18905 # Format of library name prefix.
18906 libname_spec=$lt_libname_spec
18907
18908 # List of archive names.  First name is the real one, the rest are links.
18909 # The last name is the one that the linker finds with -lNAME
18910 library_names_spec=$lt_library_names_spec
18911
18912 # The coded name of the library, if different from the real name.
18913 soname_spec=$lt_soname_spec
18914
18915 # Permission mode override for installation of shared libraries.
18916 install_override_mode=$lt_install_override_mode
18917
18918 # Command to use after installation of a shared archive.
18919 postinstall_cmds=$lt_postinstall_cmds
18920
18921 # Command to use after uninstallation of a shared archive.
18922 postuninstall_cmds=$lt_postuninstall_cmds
18923
18924 # Commands used to finish a libtool library installation in a directory.
18925 finish_cmds=$lt_finish_cmds
18926
18927 # As "finish_cmds", except a single script fragment to be evaled but
18928 # not shown.
18929 finish_eval=$lt_finish_eval
18930
18931 # Whether we should hardcode library paths into libraries.
18932 hardcode_into_libs=$hardcode_into_libs
18933
18934 # Compile-time system search path for libraries.
18935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18936
18937 # Run-time system search path for libraries.
18938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18939
18940 # Whether dlopen is supported.
18941 dlopen_support=$enable_dlopen
18942
18943 # Whether dlopen of programs is supported.
18944 dlopen_self=$enable_dlopen_self
18945
18946 # Whether dlopen of statically linked programs is supported.
18947 dlopen_self_static=$enable_dlopen_self_static
18948
18949 # Commands to strip libraries.
18950 old_striplib=$lt_old_striplib
18951 striplib=$lt_striplib
18952
18953
18954 # The linker used to build libraries.
18955 LD=$lt_LD
18956
18957 # How to create reloadable object files.
18958 reload_flag=$lt_reload_flag
18959 reload_cmds=$lt_reload_cmds
18960
18961 # Commands used to build an old-style archive.
18962 old_archive_cmds=$lt_old_archive_cmds
18963
18964 # A language specific compiler.
18965 CC=$lt_compiler
18966
18967 # Is the compiler the GNU compiler?
18968 with_gcc=$GCC
18969
18970 # Compiler flag to turn off builtin functions.
18971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18972
18973 # How to pass a linker flag through the compiler.
18974 wl=$lt_lt_prog_compiler_wl
18975
18976 # Additional compiler flags for building library objects.
18977 pic_flag=$lt_lt_prog_compiler_pic
18978
18979 # Compiler flag to prevent dynamic linking.
18980 link_static_flag=$lt_lt_prog_compiler_static
18981
18982 # Does compiler simultaneously support -c and -o options?
18983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18984
18985 # Whether or not to add -lc for building shared libraries.
18986 build_libtool_need_lc=$archive_cmds_need_lc
18987
18988 # Whether or not to disallow shared libs when runtime libs are static.
18989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18990
18991 # Compiler flag to allow reflexive dlopens.
18992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18993
18994 # Compiler flag to generate shared objects directly from archives.
18995 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18996
18997 # Whether the compiler copes with passing no objects directly.
18998 compiler_needs_object=$lt_compiler_needs_object
18999
19000 # Create an old-style archive from a shared archive.
19001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19002
19003 # Create a temporary old-style archive to link instead of a shared archive.
19004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19005
19006 # Commands used to build a shared archive.
19007 archive_cmds=$lt_archive_cmds
19008 archive_expsym_cmds=$lt_archive_expsym_cmds
19009
19010 # Commands used to build a loadable module if different from building
19011 # a shared archive.
19012 module_cmds=$lt_module_cmds
19013 module_expsym_cmds=$lt_module_expsym_cmds
19014
19015 # Whether we are building with GNU ld or not.
19016 with_gnu_ld=$lt_with_gnu_ld
19017
19018 # Flag that allows shared libraries with undefined symbols to be built.
19019 allow_undefined_flag=$lt_allow_undefined_flag
19020
19021 # Flag that enforces no undefined symbols.
19022 no_undefined_flag=$lt_no_undefined_flag
19023
19024 # Flag to hardcode \$libdir into a binary during linking.
19025 # This must work even if \$libdir does not exist
19026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19027
19028 # If ld is used when linking, flag to hardcode \$libdir into a binary
19029 # during linking.  This must work even if \$libdir does not exist.
19030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19031
19032 # Whether we need a single "-rpath" flag with a separated argument.
19033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19034
19035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19036 # DIR into the resulting binary.
19037 hardcode_direct=$hardcode_direct
19038
19039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19040 # DIR into the resulting binary and the resulting library dependency is
19041 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19042 # library is relocated.
19043 hardcode_direct_absolute=$hardcode_direct_absolute
19044
19045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19046 # into the resulting binary.
19047 hardcode_minus_L=$hardcode_minus_L
19048
19049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19050 # into the resulting binary.
19051 hardcode_shlibpath_var=$hardcode_shlibpath_var
19052
19053 # Set to "yes" if building a shared library automatically hardcodes DIR
19054 # into the library and all subsequent libraries and executables linked
19055 # against it.
19056 hardcode_automatic=$hardcode_automatic
19057
19058 # Set to yes if linker adds runtime paths of dependent libraries
19059 # to runtime path list.
19060 inherit_rpath=$inherit_rpath
19061
19062 # Whether libtool must link a program against all its dependency libraries.
19063 link_all_deplibs=$link_all_deplibs
19064
19065 # Fix the shell variable \$srcfile for the compiler.
19066 fix_srcfile_path=$lt_fix_srcfile_path
19067
19068 # Set to "yes" if exported symbols are required.
19069 always_export_symbols=$always_export_symbols
19070
19071 # The commands to list exported symbols.
19072 export_symbols_cmds=$lt_export_symbols_cmds
19073
19074 # Symbols that should not be listed in the preloaded symbols.
19075 exclude_expsyms=$lt_exclude_expsyms
19076
19077 # Symbols that must always be exported.
19078 include_expsyms=$lt_include_expsyms
19079
19080 # Commands necessary for linking programs (against libraries) with templates.
19081 prelink_cmds=$lt_prelink_cmds
19082
19083 # Specify filename containing input files.
19084 file_list_spec=$lt_file_list_spec
19085
19086 # How to hardcode a shared library path into an executable.
19087 hardcode_action=$hardcode_action
19088
19089 # ### END LIBTOOL CONFIG
19090
19091 _LT_EOF
19092
19093   case $host_os in
19094   aix3*)
19095     cat <<\_LT_EOF >> "$cfgfile"
19096 # AIX sometimes has problems with the GCC collect2 program.  For some
19097 # reason, if we set the COLLECT_NAMES environment variable, the problems
19098 # vanish in a puff of smoke.
19099 if test "X${COLLECT_NAMES+set}" != Xset; then
19100   COLLECT_NAMES=
19101   export COLLECT_NAMES
19102 fi
19103 _LT_EOF
19104     ;;
19105   esac
19106
19107
19108 ltmain="$ac_aux_dir/ltmain.sh"
19109
19110
19111   # We use sed instead of cat because bash on DJGPP gets confused if
19112   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19113   # text mode, it properly converts lines to CR/LF.  This bash problem
19114   # is reportedly fixed, but why not run on old versions too?
19115   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19116     || (rm -f "$cfgfile"; exit 1)
19117
19118   case $xsi_shell in
19119   yes)
19120     cat << \_LT_EOF >> "$cfgfile"
19121
19122 # func_dirname file append nondir_replacement
19123 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19124 # otherwise set result to NONDIR_REPLACEMENT.
19125 func_dirname ()
19126 {
19127   case ${1} in
19128     */*) func_dirname_result="${1%/*}${2}" ;;
19129     *  ) func_dirname_result="${3}" ;;
19130   esac
19131 }
19132
19133 # func_basename file
19134 func_basename ()
19135 {
19136   func_basename_result="${1##*/}"
19137 }
19138
19139 # func_dirname_and_basename file append nondir_replacement
19140 # perform func_basename and func_dirname in a single function
19141 # call:
19142 #   dirname:  Compute the dirname of FILE.  If nonempty,
19143 #             add APPEND to the result, otherwise set result
19144 #             to NONDIR_REPLACEMENT.
19145 #             value returned in "$func_dirname_result"
19146 #   basename: Compute filename of FILE.
19147 #             value retuned in "$func_basename_result"
19148 # Implementation must be kept synchronized with func_dirname
19149 # and func_basename. For efficiency, we do not delegate to
19150 # those functions but instead duplicate the functionality here.
19151 func_dirname_and_basename ()
19152 {
19153   case ${1} in
19154     */*) func_dirname_result="${1%/*}${2}" ;;
19155     *  ) func_dirname_result="${3}" ;;
19156   esac
19157   func_basename_result="${1##*/}"
19158 }
19159
19160 # func_stripname prefix suffix name
19161 # strip PREFIX and SUFFIX off of NAME.
19162 # PREFIX and SUFFIX must not contain globbing or regex special
19163 # characters, hashes, percent signs, but SUFFIX may contain a leading
19164 # dot (in which case that matches only a dot).
19165 func_stripname ()
19166 {
19167   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19168   # positional parameters, so assign one to ordinary parameter first.
19169   func_stripname_result=${3}
19170   func_stripname_result=${func_stripname_result#"${1}"}
19171   func_stripname_result=${func_stripname_result%"${2}"}
19172 }
19173
19174 # func_opt_split
19175 func_opt_split ()
19176 {
19177   func_opt_split_opt=${1%%=*}
19178   func_opt_split_arg=${1#*=}
19179 }
19180
19181 # func_lo2o object
19182 func_lo2o ()
19183 {
19184   case ${1} in
19185     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19186     *)    func_lo2o_result=${1} ;;
19187   esac
19188 }
19189
19190 # func_xform libobj-or-source
19191 func_xform ()
19192 {
19193   func_xform_result=${1%.*}.lo
19194 }
19195
19196 # func_arith arithmetic-term...
19197 func_arith ()
19198 {
19199   func_arith_result=$(( $* ))
19200 }
19201
19202 # func_len string
19203 # STRING may not start with a hyphen.
19204 func_len ()
19205 {
19206   func_len_result=${#1}
19207 }
19208
19209 _LT_EOF
19210     ;;
19211   *) # Bourne compatible functions.
19212     cat << \_LT_EOF >> "$cfgfile"
19213
19214 # func_dirname file append nondir_replacement
19215 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19216 # otherwise set result to NONDIR_REPLACEMENT.
19217 func_dirname ()
19218 {
19219   # Extract subdirectory from the argument.
19220   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19221   if test "X$func_dirname_result" = "X${1}"; then
19222     func_dirname_result="${3}"
19223   else
19224     func_dirname_result="$func_dirname_result${2}"
19225   fi
19226 }
19227
19228 # func_basename file
19229 func_basename ()
19230 {
19231   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19232 }
19233
19234
19235 # func_stripname prefix suffix name
19236 # strip PREFIX and SUFFIX off of NAME.
19237 # PREFIX and SUFFIX must not contain globbing or regex special
19238 # characters, hashes, percent signs, but SUFFIX may contain a leading
19239 # dot (in which case that matches only a dot).
19240 # func_strip_suffix prefix name
19241 func_stripname ()
19242 {
19243   case ${2} in
19244     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19245     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19246   esac
19247 }
19248
19249 # sed scripts:
19250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19251 my_sed_long_arg='1s/^-[^=]*=//'
19252
19253 # func_opt_split
19254 func_opt_split ()
19255 {
19256   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19257   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19258 }
19259
19260 # func_lo2o object
19261 func_lo2o ()
19262 {
19263   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19264 }
19265
19266 # func_xform libobj-or-source
19267 func_xform ()
19268 {
19269   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19270 }
19271
19272 # func_arith arithmetic-term...
19273 func_arith ()
19274 {
19275   func_arith_result=`expr "$@"`
19276 }
19277
19278 # func_len string
19279 # STRING may not start with a hyphen.
19280 func_len ()
19281 {
19282   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19283 }
19284
19285 _LT_EOF
19286 esac
19287
19288 case $lt_shell_append in
19289   yes)
19290     cat << \_LT_EOF >> "$cfgfile"
19291
19292 # func_append var value
19293 # Append VALUE to the end of shell variable VAR.
19294 func_append ()
19295 {
19296   eval "$1+=\$2"
19297 }
19298 _LT_EOF
19299     ;;
19300   *)
19301     cat << \_LT_EOF >> "$cfgfile"
19302
19303 # func_append var value
19304 # Append VALUE to the end of shell variable VAR.
19305 func_append ()
19306 {
19307   eval "$1=\$$1\$2"
19308 }
19309
19310 _LT_EOF
19311     ;;
19312   esac
19313
19314
19315   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19316     || (rm -f "$cfgfile"; exit 1)
19317
19318   mv -f "$cfgfile" "$ofile" ||
19319     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19320   chmod +x "$ofile"
19321
19322  ;;
19323
19324   esac
19325 done # for ac_tag
19326
19327
19328 as_fn_exit 0
19329 _ACEOF
19330 ac_clean_files=$ac_clean_files_save
19331
19332 test $ac_write_fail = 0 ||
19333   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19334
19335
19336 # configure is writing to config.log, and then calls config.status.
19337 # config.status does its own redirection, appending to config.log.
19338 # Unfortunately, on DOS this fails, as config.log is still kept open
19339 # by configure, so config.status won't be able to write to it; its
19340 # output is simply discarded.  So we exec the FD to /dev/null,
19341 # effectively closing config.log, so it can be properly (re)opened and
19342 # appended to by config.status.  When coming back to configure, we
19343 # need to make the FD available again.
19344 if test "$no_create" != yes; then
19345   ac_cs_success=:
19346   ac_config_status_args=
19347   test "$silent" = yes &&
19348     ac_config_status_args="$ac_config_status_args --quiet"
19349   exec 5>/dev/null
19350   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19351   exec 5>>config.log
19352   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19353   # would make configure fail if this is the last instruction.
19354   $ac_cs_success || as_fn_exit 1
19355 fi
19356
19357 #
19358 # CONFIG_SUBDIRS section.
19359 #
19360 if test "$no_recursion" != yes; then
19361
19362   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19363   # so they do not pile up.
19364   ac_sub_configure_args=
19365   ac_prev=
19366   eval "set x $ac_configure_args"
19367   shift
19368   for ac_arg
19369   do
19370     if test -n "$ac_prev"; then
19371       ac_prev=
19372       continue
19373     fi
19374     case $ac_arg in
19375     -cache-file | --cache-file | --cache-fil | --cache-fi \
19376     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19377       ac_prev=cache_file ;;
19378     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19379     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19380     | --c=*)
19381       ;;
19382     --config-cache | -C)
19383       ;;
19384     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19385       ac_prev=srcdir ;;
19386     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19387       ;;
19388     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19389       ac_prev=prefix ;;
19390     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19391       ;;
19392     --disable-option-checking)
19393       ;;
19394     *)
19395       case $ac_arg in
19396       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19397       esac
19398       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19399     esac
19400   done
19401
19402   # Always prepend --prefix to ensure using the same prefix
19403   # in subdir configurations.
19404   ac_arg="--prefix=$prefix"
19405   case $ac_arg in
19406   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19407   esac
19408   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19409
19410   # Pass --silent
19411   if test "$silent" = yes; then
19412     ac_sub_configure_args="--silent $ac_sub_configure_args"
19413   fi
19414
19415   # Always prepend --disable-option-checking to silence warnings, since
19416   # different subdirs can have different --enable and --with options.
19417   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19418
19419   ac_popdir=`pwd`
19420   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19421
19422     # Do not complain, so a configure script can configure whichever
19423     # parts of a large source tree are present.
19424     test -d "$srcdir/$ac_dir" || continue
19425
19426     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19427     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19428     $as_echo "$ac_msg" >&6
19429     as_dir="$ac_dir"; as_fn_mkdir_p
19430     ac_builddir=.
19431
19432 case "$ac_dir" in
19433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19434 *)
19435   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19436   # A ".." for each directory in $ac_dir_suffix.
19437   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19438   case $ac_top_builddir_sub in
19439   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19440   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19441   esac ;;
19442 esac
19443 ac_abs_top_builddir=$ac_pwd
19444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19445 # for backward compatibility:
19446 ac_top_builddir=$ac_top_build_prefix
19447
19448 case $srcdir in
19449   .)  # We are building in place.
19450     ac_srcdir=.
19451     ac_top_srcdir=$ac_top_builddir_sub
19452     ac_abs_top_srcdir=$ac_pwd ;;
19453   [\\/]* | ?:[\\/]* )  # Absolute name.
19454     ac_srcdir=$srcdir$ac_dir_suffix;
19455     ac_top_srcdir=$srcdir
19456     ac_abs_top_srcdir=$srcdir ;;
19457   *) # Relative name.
19458     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19459     ac_top_srcdir=$ac_top_build_prefix$srcdir
19460     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19461 esac
19462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19463
19464
19465     cd "$ac_dir"
19466
19467     # Check for guested configure; otherwise get Cygnus style configure.
19468     if test -f "$ac_srcdir/configure.gnu"; then
19469       ac_sub_configure=$ac_srcdir/configure.gnu
19470     elif test -f "$ac_srcdir/configure"; then
19471       ac_sub_configure=$ac_srcdir/configure
19472     elif test -f "$ac_srcdir/configure.in"; then
19473       # This should be Cygnus configure.
19474       ac_sub_configure=$ac_aux_dir/configure
19475     else
19476       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19478       ac_sub_configure=
19479     fi
19480
19481     # The recursion is here.
19482     if test -n "$ac_sub_configure"; then
19483       # Make the cache file name correct relative to the subdirectory.
19484       case $cache_file in
19485       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19486       *) # Relative name.
19487         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19488       esac
19489
19490       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19491 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19492       # The eval makes quoting arguments work.
19493       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19494            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19495         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19496     fi
19497
19498     cd "$ac_popdir"
19499   done
19500 fi
19501 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19502   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19503 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19504 fi
19505
19506
19507 echo Configuration Complete.  Type \'make\' to build.