cvs updates from Wed Dec 15 17:45:22 EST 2010
[tridge/bind9.git] / configure
1 #! /bin/sh
2 # Copyright (C) 2004-2010  Internet Systems Consortium, Inc. ("ISC")
3 # Copyright (C) 1996-2003  Internet Software Consortium.
4 #
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 # PERFORMANCE OF THIS SOFTWARE.
16 #
17 # $Id: configure,v 1.487 2010/12/03 00:57:57 marka Exp $
18 #
19 # Portions Copyright (C) 1996-2001  Nominum, Inc.
20 #
21 # Permission to use, copy, modify, and distribute this software for any
22 # purpose with or without fee is hereby granted, provided that the above
23 # copyright notice and this permission notice appear in all copies.
24 #
25 # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
26 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
27 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
28 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
29 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
30 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
31 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 # From configure.in Revision: 1.504 .
33 # Guess values for system-dependent variables and create Makefiles.
34 # Generated by GNU Autoconf 2.67.
35 #
36 #
37 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
38 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
39 # Foundation, Inc.
40 #
41 #
42 # This configure script is free software; the Free Software Foundation
43 # gives unlimited permission to copy, distribute and modify it.
44 ## -------------------- ##
45 ## M4sh Initialization. ##
46 ## -------------------- ##
47
48 # Be more Bourne compatible
49 DUALCASE=1; export DUALCASE # for MKS sh
50 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
51   emulate sh
52   NULLCMD=:
53   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
54   # is contrary to our usage.  Disable this feature.
55   alias -g '${1+"$@"}'='"$@"'
56   setopt NO_GLOB_SUBST
57 else
58   case `(set -o) 2>/dev/null` in #(
59   *posix*) :
60     set -o posix ;; #(
61   *) :
62      ;;
63 esac
64 fi
65
66
67 as_nl='
68 '
69 export as_nl
70 # Printing a long string crashes Solaris 7 /usr/bin/printf.
71 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
72 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
73 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
74 # Prefer a ksh shell builtin over an external printf program on Solaris,
75 # but without wasting forks for bash or zsh.
76 if test -z "$BASH_VERSION$ZSH_VERSION" \
77     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
78   as_echo='print -r --'
79   as_echo_n='print -rn --'
80 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
81   as_echo='printf %s\n'
82   as_echo_n='printf %s'
83 else
84   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
85     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
86     as_echo_n='/usr/ucb/echo -n'
87   else
88     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
89     as_echo_n_body='eval
90       arg=$1;
91       case $arg in #(
92       *"$as_nl"*)
93         expr "X$arg" : "X\\(.*\\)$as_nl";
94         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
95       esac;
96       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
97     '
98     export as_echo_n_body
99     as_echo_n='sh -c $as_echo_n_body as_echo'
100   fi
101   export as_echo_body
102   as_echo='sh -c $as_echo_body as_echo'
103 fi
104
105 # The user is always right.
106 if test "${PATH_SEPARATOR+set}" != set; then
107   PATH_SEPARATOR=:
108   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
109     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
110       PATH_SEPARATOR=';'
111   }
112 fi
113
114
115 # IFS
116 # We need space, tab and new line, in precisely that order.  Quoting is
117 # there to prevent editors from complaining about space-tab.
118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
119 # splitting by setting IFS to empty value.)
120 IFS=" ""        $as_nl"
121
122 # Find who we are.  Look in the path if we contain no directory separator.
123 case $0 in #((
124   *[\\/]* ) as_myself=$0 ;;
125   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
126 for as_dir in $PATH
127 do
128   IFS=$as_save_IFS
129   test -z "$as_dir" && as_dir=.
130     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
131   done
132 IFS=$as_save_IFS
133
134      ;;
135 esac
136 # We did not find ourselves, most probably we were run as `sh COMMAND'
137 # in which case we are not to be found in the path.
138 if test "x$as_myself" = x; then
139   as_myself=$0
140 fi
141 if test ! -f "$as_myself"; then
142   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
143   exit 1
144 fi
145
146 # Unset variables that we do not need and which cause bugs (e.g. in
147 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
148 # suppresses any "Segmentation fault" message there.  '((' could
149 # trigger a bug in pdksh 5.2.14.
150 for as_var in BASH_ENV ENV MAIL MAILPATH
151 do eval test x\${$as_var+set} = xset \
152   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
153 done
154 PS1='$ '
155 PS2='> '
156 PS4='+ '
157
158 # NLS nuisances.
159 LC_ALL=C
160 export LC_ALL
161 LANGUAGE=C
162 export LANGUAGE
163
164 # CDPATH.
165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
166
167 if test "x$CONFIG_SHELL" = x; then
168   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
169   emulate sh
170   NULLCMD=:
171   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
172   # is contrary to our usage.  Disable this feature.
173   alias -g '\${1+\"\$@\"}'='\"\$@\"'
174   setopt NO_GLOB_SUBST
175 else
176   case \`(set -o) 2>/dev/null\` in #(
177   *posix*) :
178     set -o posix ;; #(
179   *) :
180      ;;
181 esac
182 fi
183 "
184   as_required="as_fn_return () { (exit \$1); }
185 as_fn_success () { as_fn_return 0; }
186 as_fn_failure () { as_fn_return 1; }
187 as_fn_ret_success () { return 0; }
188 as_fn_ret_failure () { return 1; }
189
190 exitcode=0
191 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
192 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
193 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
194 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
195 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
196
197 else
198   exitcode=1; echo positional parameters were not saved.
199 fi
200 test x\$exitcode = x0 || exit 1"
201   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
202   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
203   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
204   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
205 test \$(( 1 + 1 )) = 2 || exit 1"
206   if (eval "$as_required") 2>/dev/null; then :
207   as_have_required=yes
208 else
209   as_have_required=no
210 fi
211   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
212
213 else
214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
215 as_found=false
216 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217 do
218   IFS=$as_save_IFS
219   test -z "$as_dir" && as_dir=.
220   as_found=:
221   case $as_dir in #(
222          /*)
223            for as_base in sh bash ksh sh5; do
224              # Try only shells that exist, to save several forks.
225              as_shell=$as_dir/$as_base
226              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
227                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
228   CONFIG_SHELL=$as_shell as_have_required=yes
229                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   break 2
231 fi
232 fi
233            done;;
234        esac
235   as_found=false
236 done
237 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
239   CONFIG_SHELL=$SHELL as_have_required=yes
240 fi; }
241 IFS=$as_save_IFS
242
243
244       if test "x$CONFIG_SHELL" != x; then :
245   # We cannot yet assume a decent shell, so we have to provide a
246         # neutralization value for shells without unset; and this also
247         # works around shells that cannot unset nonexistent variables.
248         BASH_ENV=/dev/null
249         ENV=/dev/null
250         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251         export CONFIG_SHELL
252         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
253 fi
254
255     if test x$as_have_required = xno; then :
256   $as_echo "$0: This script requires a shell more modern than all"
257   $as_echo "$0: the shells that I found on your system."
258   if test x${ZSH_VERSION+set} = xset ; then
259     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
260     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
261   else
262     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
263 $0: including any error possibly output before this
264 $0: message. Then install a modern shell, or manually run
265 $0: the script under such a shell if you do have one."
266   fi
267   exit 1
268 fi
269 fi
270 fi
271 SHELL=${CONFIG_SHELL-/bin/sh}
272 export SHELL
273 # Unset more variables known to interfere with behavior of common tools.
274 CLICOLOR_FORCE= GREP_OPTIONS=
275 unset CLICOLOR_FORCE GREP_OPTIONS
276
277 ## --------------------- ##
278 ## M4sh Shell Functions. ##
279 ## --------------------- ##
280 # as_fn_unset VAR
281 # ---------------
282 # Portably unset VAR.
283 as_fn_unset ()
284 {
285   { eval $1=; unset $1;}
286 }
287 as_unset=as_fn_unset
288
289 # as_fn_set_status STATUS
290 # -----------------------
291 # Set $? to STATUS, without forking.
292 as_fn_set_status ()
293 {
294   return $1
295 } # as_fn_set_status
296
297 # as_fn_exit STATUS
298 # -----------------
299 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
300 as_fn_exit ()
301 {
302   set +e
303   as_fn_set_status $1
304   exit $1
305 } # as_fn_exit
306
307 # as_fn_mkdir_p
308 # -------------
309 # Create "$as_dir" as a directory, including parents if necessary.
310 as_fn_mkdir_p ()
311 {
312
313   case $as_dir in #(
314   -*) as_dir=./$as_dir;;
315   esac
316   test -d "$as_dir" || eval $as_mkdir_p || {
317     as_dirs=
318     while :; do
319       case $as_dir in #(
320       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
321       *) as_qdir=$as_dir;;
322       esac
323       as_dirs="'$as_qdir' $as_dirs"
324       as_dir=`$as_dirname -- "$as_dir" ||
325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
326          X"$as_dir" : 'X\(//\)[^/]' \| \
327          X"$as_dir" : 'X\(//\)$' \| \
328          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
329 $as_echo X"$as_dir" |
330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
331             s//\1/
332             q
333           }
334           /^X\(\/\/\)[^/].*/{
335             s//\1/
336             q
337           }
338           /^X\(\/\/\)$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\).*/{
343             s//\1/
344             q
345           }
346           s/.*/./; q'`
347       test -d "$as_dir" && break
348     done
349     test -z "$as_dirs" || eval "mkdir $as_dirs"
350   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
351
352
353 } # as_fn_mkdir_p
354 # as_fn_append VAR VALUE
355 # ----------------------
356 # Append the text in VALUE to the end of the definition contained in VAR. Take
357 # advantage of any shell optimizations that allow amortized linear growth over
358 # repeated appends, instead of the typical quadratic growth present in naive
359 # implementations.
360 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
361   eval 'as_fn_append ()
362   {
363     eval $1+=\$2
364   }'
365 else
366   as_fn_append ()
367   {
368     eval $1=\$$1\$2
369   }
370 fi # as_fn_append
371
372 # as_fn_arith ARG...
373 # ------------------
374 # Perform arithmetic evaluation on the ARGs, and store the result in the
375 # global $as_val. Take advantage of shells that can avoid forks. The arguments
376 # must be portable across $(()) and expr.
377 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
378   eval 'as_fn_arith ()
379   {
380     as_val=$(( $* ))
381   }'
382 else
383   as_fn_arith ()
384   {
385     as_val=`expr "$@" || test $? -eq 1`
386   }
387 fi # as_fn_arith
388
389
390 # as_fn_error STATUS ERROR [LINENO LOG_FD]
391 # ----------------------------------------
392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
394 # script with STATUS, using 1 if that was 0.
395 as_fn_error ()
396 {
397   as_status=$1; test $as_status -eq 0 && as_status=1
398   if test "$4"; then
399     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
400     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
401   fi
402   $as_echo "$as_me: error: $2" >&2
403   as_fn_exit $as_status
404 } # as_fn_error
405
406 if expr a : '\(a\)' >/dev/null 2>&1 &&
407    test "X`expr 00001 : '.*\(...\)'`" = X001; then
408   as_expr=expr
409 else
410   as_expr=false
411 fi
412
413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
414   as_basename=basename
415 else
416   as_basename=false
417 fi
418
419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
420   as_dirname=dirname
421 else
422   as_dirname=false
423 fi
424
425 as_me=`$as_basename -- "$0" ||
426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
427          X"$0" : 'X\(//\)$' \| \
428          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
429 $as_echo X/"$0" |
430     sed '/^.*\/\([^/][^/]*\)\/*$/{
431             s//\1/
432             q
433           }
434           /^X\/\(\/\/\)$/{
435             s//\1/
436             q
437           }
438           /^X\/\(\/\).*/{
439             s//\1/
440             q
441           }
442           s/.*/./; q'`
443
444 # Avoid depending upon Character Ranges.
445 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
446 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
447 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
448 as_cr_digits='0123456789'
449 as_cr_alnum=$as_cr_Letters$as_cr_digits
450
451
452   as_lineno_1=$LINENO as_lineno_1a=$LINENO
453   as_lineno_2=$LINENO as_lineno_2a=$LINENO
454   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
455   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
456   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
457   sed -n '
458     p
459     /[$]LINENO/=
460   ' <$as_myself |
461     sed '
462       s/[$]LINENO.*/&-/
463       t lineno
464       b
465       :lineno
466       N
467       :loop
468       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
469       t loop
470       s/-\n.*//
471     ' >$as_me.lineno &&
472   chmod +x "$as_me.lineno" ||
473     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
474
475   # Don't try to exec as it changes $[0], causing all sort of problems
476   # (the dirname of $[0] is not the place where we might find the
477   # original and so on.  Autoconf is especially sensitive to this).
478   . "./$as_me.lineno"
479   # Exit status is that of the last command.
480   exit
481 }
482
483 ECHO_C= ECHO_N= ECHO_T=
484 case `echo -n x` in #(((((
485 -n*)
486   case `echo 'xy\c'` in
487   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
488   xy)  ECHO_C='\c';;
489   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
490        ECHO_T=' ';;
491   esac;;
492 *)
493   ECHO_N='-n';;
494 esac
495
496 rm -f conf$$ conf$$.exe conf$$.file
497 if test -d conf$$.dir; then
498   rm -f conf$$.dir/conf$$.file
499 else
500   rm -f conf$$.dir
501   mkdir conf$$.dir 2>/dev/null
502 fi
503 if (echo >conf$$.file) 2>/dev/null; then
504   if ln -s conf$$.file conf$$ 2>/dev/null; then
505     as_ln_s='ln -s'
506     # ... but there are two gotchas:
507     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
508     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509     # In both cases, we have to default to `cp -p'.
510     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511       as_ln_s='cp -p'
512   elif ln conf$$.file conf$$ 2>/dev/null; then
513     as_ln_s=ln
514   else
515     as_ln_s='cp -p'
516   fi
517 else
518   as_ln_s='cp -p'
519 fi
520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
521 rmdir conf$$.dir 2>/dev/null
522
523 if mkdir -p . 2>/dev/null; then
524   as_mkdir_p='mkdir -p "$as_dir"'
525 else
526   test -d ./-p && rmdir ./-p
527   as_mkdir_p=false
528 fi
529
530 if test -x / >/dev/null 2>&1; then
531   as_test_x='test -x'
532 else
533   if ls -dL / >/dev/null 2>&1; then
534     as_ls_L_option=L
535   else
536     as_ls_L_option=
537   fi
538   as_test_x='
539     eval sh -c '\''
540       if test -d "$1"; then
541         test -d "$1/.";
542       else
543         case $1 in #(
544         -*)set "./$1";;
545         esac;
546         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
547         ???[sx]*):;;*)false;;esac;fi
548     '\'' sh
549   '
550 fi
551 as_executable_p=$as_test_x
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
563
564 case X$ECHO in
565 X*--fallback-echo)
566   # Remove one level of quotation (which was required for Make).
567   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568   ;;
569 esac
570
571 echo=${ECHO-echo}
572 if test "X$1" = X--no-reexec; then
573   # Discard the --no-reexec flag, and continue.
574   shift
575 elif test "X$1" = X--fallback-echo; then
576   # Avoid inline document here, it may be left over
577   :
578 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579   # Yippee, $echo works!
580   :
581 else
582   # Restart under the correct shell.
583   exec $SHELL "$0" --no-reexec ${1+"$@"}
584 fi
585
586 if test "X$1" = X--fallback-echo; then
587   # used as fallback echo
588   shift
589   cat <<EOF
590 $*
591 EOF
592   exit 0
593 fi
594
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
596 # if CDPATH is set.
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599 if test -z "$ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
605        echo_test_string=`eval $cmd` &&
606        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607     then
608       break
609     fi
610   done
611 fi
612
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615    test "X$echo_testing_string" = "X$echo_test_string"; then
616   :
617 else
618   # The Solaris, AIX, and Digital Unix default echo programs unquote
619   # backslashes.  This makes it impossible to quote backslashes using
620   #   echo "$something" | sed 's/\\/\\\\/g'
621   #
622   # So, first we look for a working echo in the user's PATH.
623
624   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625   for dir in $PATH /usr/ucb; do
626     IFS="$lt_save_ifs"
627     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630        test "X$echo_testing_string" = "X$echo_test_string"; then
631       echo="$dir/echo"
632       break
633     fi
634   done
635   IFS="$lt_save_ifs"
636
637   if test "X$echo" = Xecho; then
638     # We didn't find a better echo, so look for alternatives.
639     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641        test "X$echo_testing_string" = "X$echo_test_string"; then
642       # This shell has a builtin print -r that does the trick.
643       echo='print -r'
644     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645          test "X$CONFIG_SHELL" != X/bin/ksh; then
646       # If we have ksh, try running configure again with it.
647       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648       export ORIGINAL_CONFIG_SHELL
649       CONFIG_SHELL=/bin/ksh
650       export CONFIG_SHELL
651       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652     else
653       # Try using printf.
654       echo='printf %s\n'
655       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657          test "X$echo_testing_string" = "X$echo_test_string"; then
658         # Cool, printf works
659         :
660       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661            test "X$echo_testing_string" = 'X\t' &&
662            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663            test "X$echo_testing_string" = "X$echo_test_string"; then
664         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665         export CONFIG_SHELL
666         SHELL="$CONFIG_SHELL"
667         export SHELL
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670            test "X$echo_testing_string" = 'X\t' &&
671            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673         echo="$CONFIG_SHELL $0 --fallback-echo"
674       else
675         # maybe with a smaller string...
676         prev=:
677
678         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680           then
681             break
682           fi
683           prev="$cmd"
684         done
685
686         if test "$prev" != 'sed 50q "$0"'; then
687           echo_test_string=`eval $prev`
688           export echo_test_string
689           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690         else
691           # Oops.  We lost completely, so just stick with echo.
692           echo=echo
693         fi
694       fi
695     fi
696   fi
697 fi
698 fi
699
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
702 ECHO=$echo
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 fi
706
707
708
709
710 tagnames=${tagnames+${tagnames},}CXX
711
712 tagnames=${tagnames+${tagnames},}F77
713
714 test -n "$DJDIR" || exec 7<&0 </dev/null
715 exec 6>&1
716
717 # Name of the host.
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721
722 #
723 # Initializations.
724 #
725 ac_default_prefix=/usr/local
726 ac_clean_files=
727 ac_config_libobj_dir=.
728 LIBOBJS=
729 cross_compiling=no
730 subdirs=
731 MFLAGS=
732 MAKEFLAGS=
733
734 # Identity of this package.
735 PACKAGE_NAME=
736 PACKAGE_TARNAME=
737 PACKAGE_VERSION=
738 PACKAGE_STRING=
739 PACKAGE_BUGREPORT=
740 PACKAGE_URL=
741
742 ac_unique_file="lib/dns/name.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
745 #include <stdio.h>
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
748 #endif
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
751 #endif
752 #ifdef STDC_HEADERS
753 # include <stdlib.h>
754 # include <stddef.h>
755 #else
756 # ifdef HAVE_STDLIB_H
757 #  include <stdlib.h>
758 # endif
759 #endif
760 #ifdef HAVE_STRING_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762 #  include <memory.h>
763 # endif
764 # include <string.h>
765 #endif
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
768 #endif
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
771 #endif
772 #ifdef HAVE_STDINT_H
773 # include <stdint.h>
774 #endif
775 #ifdef HAVE_UNISTD_H
776 # include <unistd.h>
777 #endif"
778
779 ac_subst_vars='LTLIBOBJS
780 LIBOBJS
781 BUILD_LIBS
782 BUILD_LDFLAGS
783 BUILD_CPPFLAGS
784 BUILD_CFLAGS
785 BUILD_CC
786 DLZ_SYSTEM_TEST
787 DLZ_DRIVER_OBJS
788 DLZ_DRIVER_SRCS
789 DLZ_DRIVER_LIBS
790 DLZ_DRIVER_INCLUDES
791 USE_DLZ
792 PG_CONFIG
793 BIND9_CONFIGARGS
794 BIND9_VERSION
795 BIND9_BIND9_BUILDINCLUDE
796 BIND9_LWRES_BUILDINCLUDE
797 BIND9_DNS_BUILDINCLUDE
798 BIND9_ISCCFG_BUILDINCLUDE
799 BIND9_ISCCC_BUILDINCLUDE
800 BIND9_ISC_BUILDINCLUDE
801 BIND9_TOP_BUILDDIR
802 IDNLIBS
803 XSLT_DB2LATEX_ADMONITIONS
804 XSLT_DB2LATEX_STYLE
805 XSLT_DOCBOOK_MAKETOC_XHTML
806 XSLT_DOCBOOK_MAKETOC_HTML
807 XSLT_DOCBOOK_CHUNKTOC_XHTML
808 XSLT_DOCBOOK_CHUNKTOC_HTML
809 XSLT_DOCBOOK_CHUNK_XHTML
810 XSLT_DOCBOOK_CHUNK_HTML
811 XSLT_DOCBOOK_STYLE_MAN
812 XSLT_DOCBOOK_STYLE_XHTML
813 XSLT_DOCBOOK_STYLE_HTML
814 DOXYGEN
815 XMLLINT
816 XSLTPROC
817 W3M
818 PDFLATEX
819 LATEX
820 ISC_ARCH_DIR
821 ISC_PLATFORM_USEMACASM
822 ISC_PLATFORM_USESTDASM
823 ISC_PLATFORM_USEOSFASM
824 ISC_PLATFORM_USEGCCASM
825 ISC_PLATFORM_HAVEATOMICSTORE
826 ISC_PLATFORM_HAVECMPXCHG
827 ISC_PLATFORM_HAVEXADDQ
828 ISC_PLATFORM_HAVEXADD
829 ISC_PLATFORM_HAVEIFNAMETOINDEX
830 ISC_PLATFORM_HAVESTRINGSH
831 ISC_PLATFORM_BRACEPTHREADONCEINIT
832 IRS_PLATFORM_USEDECLSPEC
833 LWRES_PLATFORM_USEDECLSPEC
834 ISC_PLATFORM_USEDECLSPEC
835 ISC_PLATFORM_RLIMITTYPE
836 ISC_PLATFORM_HAVESYSUNH
837 LWRES_PLATFORM_QUADFORMAT
838 ISC_PLATFORM_QUADFORMAT
839 DST_EXTRA_SRCS
840 DST_EXTRA_OBJS
841 USE_ISC_SPNEGO
842 ISC_EXTRA_SRCS
843 ISC_EXTRA_OBJS
844 LWRES_PLATFORM_NEEDVSNPRINTF
845 ISC_PLATFORM_NEEDVSNPRINTF
846 LWRES_PLATFORM_NEEDSPRINTF
847 ISC_PLATFORM_NEEDSPRINTF
848 ISC_PLATFORM_NEEDSTRLCAT
849 ISC_PLATFORM_NEEDSTRLCPY
850 GENRANDOMLIB
851 LWRES_PLATFORM_NEEDSTRTOUL
852 ISC_PLATFORM_NEEDSTRTOUL
853 ISC_PLATFORM_NEEDMEMMOVE
854 ISC_PLATFORM_NEEDSTRSEP
855 ISC_IRS_GETNAMEINFOSOCKLEN
856 ISC_LWRES_GETNAMEINFOPROTO
857 ISC_LWRES_GETADDRINFOPROTO
858 ISC_LWRES_GETIPNODEPROTO
859 ISC_LWRES_NEEDHERRNO
860 ISC_LWRES_GETHOSTBYADDRVOID
861 ISC_LWRES_ENDNETENTINT
862 ISC_LWRES_SETNETENTINT
863 ISC_LWRES_GETNETBYADDRINADDR
864 ISC_LWRES_ENDHOSTENTINT
865 ISC_LWRES_SETHOSTENTINT
866 ISC_LWRES_NEEDRRSETINFO
867 ISC_IRS_NEEDADDRINFO
868 ISC_LWRES_NEEDADDRINFO
869 ISC_PLATFORM_NEEDPORTT
870 ISC_PLATFORM_MSGHDRFLAVOR
871 LWRES_PLATFORM_HAVESALEN
872 ISC_PLATFORM_HAVESALEN
873 ISC_PLATFORM_NEEDPTON
874 ISC_PLATFORM_NEEDNTOP
875 ISC_PLATFORM_HAVEIF_LADDRCONF
876 ISC_PLATFORM_HAVEIF_LADDRREQ
877 ISC_PLATFORM_HAVESCOPEID
878 LWRES_HAVE_SIN6_SCOPE_ID
879 ISC_IPV6_C
880 ISC_ISCIPV6_O
881 ISC_IPV6_O
882 ISC_IPV6_H
883 ISC_PLATFORM_FIXIN6ISADDR
884 ISC_PLATFORM_HAVEIN6PKTINFO
885 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
886 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
887 LWRES_PLATFORM_NEEDIN6ADDRANY
888 ISC_PLATFORM_NEEDIN6ADDRANY
889 LWRES_PLATFORM_HAVEINADDR6
890 ISC_PLATFORM_HAVEINADDR6
891 LWRES_PLATFORM_NEEDNETINET6IN6H
892 ISC_PLATFORM_NEEDNETINET6IN6H
893 LWRES_PLATFORM_NEEDNETINETIN6H
894 ISC_PLATFORM_NEEDNETINETIN6H
895 LWRES_PLATFORM_HAVEIPV6
896 ISC_PLATFORM_HAVEIPV6
897 export_includedir
898 export_libdir
899 BIND9_CO_RULE
900 LIBEXPORT
901 LIBTOOL_IN_MAIN
902 LIBTOOL_ALLOW_UNDEFINED
903 LIBTOOL_MODE_LINK
904 LIBTOOL_MODE_INSTALL
905 LIBTOOL_MODE_COMPILE
906 LIBTOOL_MKDEP_SED
907 SA
908 A
909 O
910 ALWAYS_MAKE_SYMTABLE
911 MKSYMTBL_PROGRAM
912 ISC_PLATFORM_USEBACKTRACE
913 PURIFY
914 purify_path
915 IRIX_DNSSEC_WARNINGS_HACK
916 MKDEPPROG
917 MKDEPCFLAGS
918 MKDEPCC
919 ISC_THREAD_DIR
920 THREADOPTSRCS
921 THREADOPTOBJS
922 ISC_PLATFORM_USETHREADS
923 ALWAYS_DEFINES
924 DNS_CRYPTO_LIBS
925 DNS_GSSAPI_LIBS
926 DST_GSSAPI_INC
927 USE_GSSAPI
928 ISC_PLATFORM_KRB5HEADER
929 ISC_PLATFORM_GSSAPIHEADER
930 ISC_PLATFORM_HAVEGSSAPI
931 PKCS11_PROVIDER
932 PKCS11_TOOLS
933 USE_PKCS11
934 ISC_OPENSSL_INC
935 ISC_PLATFORM_OPENSSLHASH
936 OPENSSLLINKSRCS
937 OPENSSLLINKOBJS
938 DST_OPENSSL_INC
939 USE_OPENSSL
940 LWRES_PLATFORM_NEEDSYSSELECTH
941 ISC_PLATFORM_NEEDSYSSELECTH
942 ISC_PLATFORM_HAVEDEVPOLL
943 ISC_PLATFORM_HAVEEPOLL
944 ISC_PLATFORM_HAVEKQUEUE
945 ISC_PLATFORM_HAVELIFCONF
946 ISC_PLATFORM_NORETURN_POST
947 ISC_PLATFORM_NORETURN_PRE
948 ISC_PLATFORM_HAVELONGLONG
949 ISC_SOCKADDR_LEN_T
950 PERL
951 ETAGS
952 LN
953 ARFLAGS
954 CCOPT
955 STD_CWARNINGS
956 STD_CDEFINES
957 STD_CINCLUDES
958 INSTALL_DATA
959 INSTALL_SCRIPT
960 INSTALL_PROGRAM
961 LIBTOOL
962 ac_ct_F77
963 FFLAGS
964 F77
965 CXXCPP
966 ac_ct_CXX
967 CXXFLAGS
968 CXX
969 CPP
970 NMEDIT
971 DSYMUTIL
972 STRIP
973 RANLIB
974 AR
975 ECHO
976 LN_S
977 EGREP
978 GREP
979 SED
980 OBJEXT
981 EXEEXT
982 ac_ct_CC
983 CPPFLAGS
984 LDFLAGS
985 CFLAGS
986 CC
987 SET_MAKE
988 host_os
989 host_vendor
990 host_cpu
991 host
992 build_os
993 build_vendor
994 build_cpu
995 build
996 target_alias
997 host_alias
998 build_alias
999 LIBS
1000 ECHO_T
1001 ECHO_N
1002 ECHO_C
1003 DEFS
1004 mandir
1005 localedir
1006 libdir
1007 psdir
1008 pdfdir
1009 dvidir
1010 htmldir
1011 infodir
1012 docdir
1013 oldincludedir
1014 includedir
1015 localstatedir
1016 sharedstatedir
1017 sysconfdir
1018 datadir
1019 datarootdir
1020 libexecdir
1021 sbindir
1022 bindir
1023 program_transform_name
1024 prefix
1025 exec_prefix
1026 PACKAGE_URL
1027 PACKAGE_BUGREPORT
1028 PACKAGE_STRING
1029 PACKAGE_VERSION
1030 PACKAGE_TARNAME
1031 PACKAGE_NAME
1032 PATH_SEPARATOR
1033 SHELL'
1034 ac_subst_files='BIND9_MAKE_INCLUDES
1035 BIND9_MAKE_RULES
1036 LIBISC_API
1037 LIBISCCC_API
1038 LIBISCCFG_API
1039 LIBDNS_API
1040 LIBBIND9_API
1041 LIBLWRES_API
1042 LIBIRS_API
1043 DLZ_DRIVER_RULES'
1044 ac_user_opts='
1045 enable_option_checking
1046 enable_shared
1047 enable_static
1048 enable_fast_install
1049 with_gnu_ld
1050 enable_libtool_lock
1051 with_pic
1052 with_tags
1053 enable_libbind
1054 enable_kqueue
1055 enable_epoll
1056 enable_devpoll
1057 with_openssl
1058 enable_openssl_version_check
1059 enable_openssl_hash
1060 with_pkcs11
1061 with_gssapi
1062 with_randomdev
1063 enable_threads
1064 with_ptl2
1065 with_libxml2
1066 enable_largefile
1067 with_purify
1068 with_libtool
1069 enable_backtrace
1070 enable_symtable
1071 enable_exportlib
1072 with_export_libdir
1073 with_export_includedir
1074 enable_ipv6
1075 with_kame
1076 enable_getifaddrs
1077 enable_isc_spnego
1078 enable_chroot
1079 enable_linux_caps
1080 enable_atomic
1081 enable_fixed_rrset
1082 enable_filter_aaaa
1083 with_docbook_xsl
1084 with_idn
1085 with_libiconv
1086 with_iconv
1087 with_idnlib
1088 with_dlz_postgres
1089 with_dlz_mysql
1090 with_dlz_bdb
1091 with_dlz_filesystem
1092 with_dlz_ldap
1093 with_dlz_odbc
1094 with_dlz_stub
1095 with_make_clean
1096 '
1097       ac_precious_vars='build_alias
1098 host_alias
1099 target_alias
1100 CC
1101 CFLAGS
1102 LDFLAGS
1103 LIBS
1104 CPPFLAGS
1105 CPP
1106 CXX
1107 CXXFLAGS
1108 CCC
1109 CXXCPP
1110 F77
1111 FFLAGS'
1112
1113
1114 # Initialize some variables set by options.
1115 ac_init_help=
1116 ac_init_version=false
1117 ac_unrecognized_opts=
1118 ac_unrecognized_sep=
1119 # The variables have the same names as the options, with
1120 # dashes changed to underlines.
1121 cache_file=/dev/null
1122 exec_prefix=NONE
1123 no_create=
1124 no_recursion=
1125 prefix=NONE
1126 program_prefix=NONE
1127 program_suffix=NONE
1128 program_transform_name=s,x,x,
1129 silent=
1130 site=
1131 srcdir=
1132 verbose=
1133 x_includes=NONE
1134 x_libraries=NONE
1135
1136 # Installation directory options.
1137 # These are left unexpanded so users can "make install exec_prefix=/foo"
1138 # and all the variables that are supposed to be based on exec_prefix
1139 # by default will actually change.
1140 # Use braces instead of parens because sh, perl, etc. also accept them.
1141 # (The list follows the same order as the GNU Coding Standards.)
1142 bindir='${exec_prefix}/bin'
1143 sbindir='${exec_prefix}/sbin'
1144 libexecdir='${exec_prefix}/libexec'
1145 datarootdir='${prefix}/share'
1146 datadir='${datarootdir}'
1147 sysconfdir='${prefix}/etc'
1148 sharedstatedir='${prefix}/com'
1149 localstatedir='${prefix}/var'
1150 includedir='${prefix}/include'
1151 oldincludedir='/usr/include'
1152 docdir='${datarootdir}/doc/${PACKAGE}'
1153 infodir='${datarootdir}/info'
1154 htmldir='${docdir}'
1155 dvidir='${docdir}'
1156 pdfdir='${docdir}'
1157 psdir='${docdir}'
1158 libdir='${exec_prefix}/lib'
1159 localedir='${datarootdir}/locale'
1160 mandir='${datarootdir}/man'
1161
1162 ac_prev=
1163 ac_dashdash=
1164 for ac_option
1165 do
1166   # If the previous option needs an argument, assign it.
1167   if test -n "$ac_prev"; then
1168     eval $ac_prev=\$ac_option
1169     ac_prev=
1170     continue
1171   fi
1172
1173   case $ac_option in
1174   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1175   *=)   ac_optarg= ;;
1176   *)    ac_optarg=yes ;;
1177   esac
1178
1179   # Accept the important Cygnus configure options, so we can diagnose typos.
1180
1181   case $ac_dashdash$ac_option in
1182   --)
1183     ac_dashdash=yes ;;
1184
1185   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1186     ac_prev=bindir ;;
1187   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1188     bindir=$ac_optarg ;;
1189
1190   -build | --build | --buil | --bui | --bu)
1191     ac_prev=build_alias ;;
1192   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1193     build_alias=$ac_optarg ;;
1194
1195   -cache-file | --cache-file | --cache-fil | --cache-fi \
1196   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1197     ac_prev=cache_file ;;
1198   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1199   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1200     cache_file=$ac_optarg ;;
1201
1202   --config-cache | -C)
1203     cache_file=config.cache ;;
1204
1205   -datadir | --datadir | --datadi | --datad)
1206     ac_prev=datadir ;;
1207   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1208     datadir=$ac_optarg ;;
1209
1210   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1211   | --dataroo | --dataro | --datar)
1212     ac_prev=datarootdir ;;
1213   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1214   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1215     datarootdir=$ac_optarg ;;
1216
1217   -disable-* | --disable-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       as_fn_error $? "invalid feature name: $ac_useropt"
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "enable_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval enable_$ac_useropt=no ;;
1232
1233   -docdir | --docdir | --docdi | --doc | --do)
1234     ac_prev=docdir ;;
1235   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1236     docdir=$ac_optarg ;;
1237
1238   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1239     ac_prev=dvidir ;;
1240   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1241     dvidir=$ac_optarg ;;
1242
1243   -enable-* | --enable-*)
1244     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247       as_fn_error $? "invalid feature name: $ac_useropt"
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "enable_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval enable_$ac_useropt=\$ac_optarg ;;
1258
1259   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1260   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1261   | --exec | --exe | --ex)
1262     ac_prev=exec_prefix ;;
1263   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1264   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1265   | --exec=* | --exe=* | --ex=*)
1266     exec_prefix=$ac_optarg ;;
1267
1268   -gas | --gas | --ga | --g)
1269     # Obsolete; use --with-gas.
1270     with_gas=yes ;;
1271
1272   -help | --help | --hel | --he | -h)
1273     ac_init_help=long ;;
1274   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1275     ac_init_help=recursive ;;
1276   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1277     ac_init_help=short ;;
1278
1279   -host | --host | --hos | --ho)
1280     ac_prev=host_alias ;;
1281   -host=* | --host=* | --hos=* | --ho=*)
1282     host_alias=$ac_optarg ;;
1283
1284   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1285     ac_prev=htmldir ;;
1286   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1287   | --ht=*)
1288     htmldir=$ac_optarg ;;
1289
1290   -includedir | --includedir | --includedi | --included | --include \
1291   | --includ | --inclu | --incl | --inc)
1292     ac_prev=includedir ;;
1293   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1294   | --includ=* | --inclu=* | --incl=* | --inc=*)
1295     includedir=$ac_optarg ;;
1296
1297   -infodir | --infodir | --infodi | --infod | --info | --inf)
1298     ac_prev=infodir ;;
1299   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1300     infodir=$ac_optarg ;;
1301
1302   -libdir | --libdir | --libdi | --libd)
1303     ac_prev=libdir ;;
1304   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1305     libdir=$ac_optarg ;;
1306
1307   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1308   | --libexe | --libex | --libe)
1309     ac_prev=libexecdir ;;
1310   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1311   | --libexe=* | --libex=* | --libe=*)
1312     libexecdir=$ac_optarg ;;
1313
1314   -localedir | --localedir | --localedi | --localed | --locale)
1315     ac_prev=localedir ;;
1316   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1317     localedir=$ac_optarg ;;
1318
1319   -localstatedir | --localstatedir | --localstatedi | --localstated \
1320   | --localstate | --localstat | --localsta | --localst | --locals)
1321     ac_prev=localstatedir ;;
1322   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1323   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1324     localstatedir=$ac_optarg ;;
1325
1326   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1327     ac_prev=mandir ;;
1328   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1329     mandir=$ac_optarg ;;
1330
1331   -nfp | --nfp | --nf)
1332     # Obsolete; use --without-fp.
1333     with_fp=no ;;
1334
1335   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1336   | --no-cr | --no-c | -n)
1337     no_create=yes ;;
1338
1339   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1340   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1341     no_recursion=yes ;;
1342
1343   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1344   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1345   | --oldin | --oldi | --old | --ol | --o)
1346     ac_prev=oldincludedir ;;
1347   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1348   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1349   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1350     oldincludedir=$ac_optarg ;;
1351
1352   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1353     ac_prev=prefix ;;
1354   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1355     prefix=$ac_optarg ;;
1356
1357   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1358   | --program-pre | --program-pr | --program-p)
1359     ac_prev=program_prefix ;;
1360   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1361   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1362     program_prefix=$ac_optarg ;;
1363
1364   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1365   | --program-suf | --program-su | --program-s)
1366     ac_prev=program_suffix ;;
1367   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1368   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1369     program_suffix=$ac_optarg ;;
1370
1371   -program-transform-name | --program-transform-name \
1372   | --program-transform-nam | --program-transform-na \
1373   | --program-transform-n | --program-transform- \
1374   | --program-transform | --program-transfor \
1375   | --program-transfo | --program-transf \
1376   | --program-trans | --program-tran \
1377   | --progr-tra | --program-tr | --program-t)
1378     ac_prev=program_transform_name ;;
1379   -program-transform-name=* | --program-transform-name=* \
1380   | --program-transform-nam=* | --program-transform-na=* \
1381   | --program-transform-n=* | --program-transform-=* \
1382   | --program-transform=* | --program-transfor=* \
1383   | --program-transfo=* | --program-transf=* \
1384   | --program-trans=* | --program-tran=* \
1385   | --progr-tra=* | --program-tr=* | --program-t=*)
1386     program_transform_name=$ac_optarg ;;
1387
1388   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1389     ac_prev=pdfdir ;;
1390   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1391     pdfdir=$ac_optarg ;;
1392
1393   -psdir | --psdir | --psdi | --psd | --ps)
1394     ac_prev=psdir ;;
1395   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1396     psdir=$ac_optarg ;;
1397
1398   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399   | -silent | --silent | --silen | --sile | --sil)
1400     silent=yes ;;
1401
1402   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1403     ac_prev=sbindir ;;
1404   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1405   | --sbi=* | --sb=*)
1406     sbindir=$ac_optarg ;;
1407
1408   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410   | --sharedst | --shareds | --shared | --share | --shar \
1411   | --sha | --sh)
1412     ac_prev=sharedstatedir ;;
1413   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1416   | --sha=* | --sh=*)
1417     sharedstatedir=$ac_optarg ;;
1418
1419   -site | --site | --sit)
1420     ac_prev=site ;;
1421   -site=* | --site=* | --sit=*)
1422     site=$ac_optarg ;;
1423
1424   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1425     ac_prev=srcdir ;;
1426   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427     srcdir=$ac_optarg ;;
1428
1429   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430   | --syscon | --sysco | --sysc | --sys | --sy)
1431     ac_prev=sysconfdir ;;
1432   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434     sysconfdir=$ac_optarg ;;
1435
1436   -target | --target | --targe | --targ | --tar | --ta | --t)
1437     ac_prev=target_alias ;;
1438   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439     target_alias=$ac_optarg ;;
1440
1441   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1442     verbose=yes ;;
1443
1444   -version | --version | --versio | --versi | --vers | -V)
1445     ac_init_version=: ;;
1446
1447   -with-* | --with-*)
1448     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449     # Reject names that are not valid shell variable names.
1450     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451       as_fn_error $? "invalid package name: $ac_useropt"
1452     ac_useropt_orig=$ac_useropt
1453     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454     case $ac_user_opts in
1455       *"
1456 "with_$ac_useropt"
1457 "*) ;;
1458       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1459          ac_unrecognized_sep=', ';;
1460     esac
1461     eval with_$ac_useropt=\$ac_optarg ;;
1462
1463   -without-* | --without-*)
1464     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1465     # Reject names that are not valid shell variable names.
1466     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467       as_fn_error $? "invalid package name: $ac_useropt"
1468     ac_useropt_orig=$ac_useropt
1469     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1470     case $ac_user_opts in
1471       *"
1472 "with_$ac_useropt"
1473 "*) ;;
1474       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1475          ac_unrecognized_sep=', ';;
1476     esac
1477     eval with_$ac_useropt=no ;;
1478
1479   --x)
1480     # Obsolete; use --with-x.
1481     with_x=yes ;;
1482
1483   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1484   | --x-incl | --x-inc | --x-in | --x-i)
1485     ac_prev=x_includes ;;
1486   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1487   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1488     x_includes=$ac_optarg ;;
1489
1490   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1491   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1492     ac_prev=x_libraries ;;
1493   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1494   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1495     x_libraries=$ac_optarg ;;
1496
1497   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1498 Try \`$0 --help' for more information"
1499     ;;
1500
1501   *=*)
1502     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1503     # Reject names that are not valid shell variable names.
1504     case $ac_envvar in #(
1505       '' | [0-9]* | *[!_$as_cr_alnum]* )
1506       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1507     esac
1508     eval $ac_envvar=\$ac_optarg
1509     export $ac_envvar ;;
1510
1511   *)
1512     # FIXME: should be removed in autoconf 3.0.
1513     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1514     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1515       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1516     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1517     ;;
1518
1519   esac
1520 done
1521
1522 if test -n "$ac_prev"; then
1523   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1524   as_fn_error $? "missing argument to $ac_option"
1525 fi
1526
1527 if test -n "$ac_unrecognized_opts"; then
1528   case $enable_option_checking in
1529     no) ;;
1530     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1531     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1532   esac
1533 fi
1534
1535 # Check all directory arguments for consistency.
1536 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1537                 datadir sysconfdir sharedstatedir localstatedir includedir \
1538                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1539                 libdir localedir mandir
1540 do
1541   eval ac_val=\$$ac_var
1542   # Remove trailing slashes.
1543   case $ac_val in
1544     */ )
1545       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1546       eval $ac_var=\$ac_val;;
1547   esac
1548   # Be sure to have absolute directory names.
1549   case $ac_val in
1550     [\\/$]* | ?:[\\/]* )  continue;;
1551     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1552   esac
1553   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1554 done
1555
1556 # There might be people who depend on the old broken behavior: `$host'
1557 # used to hold the argument of --host etc.
1558 # FIXME: To remove some day.
1559 build=$build_alias
1560 host=$host_alias
1561 target=$target_alias
1562
1563 # FIXME: To remove some day.
1564 if test "x$host_alias" != x; then
1565   if test "x$build_alias" = x; then
1566     cross_compiling=maybe
1567     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1568     If a cross compiler is detected then cross compile mode will be used" >&2
1569   elif test "x$build_alias" != "x$host_alias"; then
1570     cross_compiling=yes
1571   fi
1572 fi
1573
1574 ac_tool_prefix=
1575 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1576
1577 test "$silent" = yes && exec 6>/dev/null
1578
1579
1580 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581 ac_ls_di=`ls -di .` &&
1582 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583   as_fn_error $? "working directory cannot be determined"
1584 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585   as_fn_error $? "pwd does not report name of working directory"
1586
1587
1588 # Find the source files, if location was not specified.
1589 if test -z "$srcdir"; then
1590   ac_srcdir_defaulted=yes
1591   # Try the directory containing this script, then the parent directory.
1592   ac_confdir=`$as_dirname -- "$as_myself" ||
1593 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594          X"$as_myself" : 'X\(//\)[^/]' \| \
1595          X"$as_myself" : 'X\(//\)$' \| \
1596          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597 $as_echo X"$as_myself" |
1598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1599             s//\1/
1600             q
1601           }
1602           /^X\(\/\/\)[^/].*/{
1603             s//\1/
1604             q
1605           }
1606           /^X\(\/\/\)$/{
1607             s//\1/
1608             q
1609           }
1610           /^X\(\/\).*/{
1611             s//\1/
1612             q
1613           }
1614           s/.*/./; q'`
1615   srcdir=$ac_confdir
1616   if test ! -r "$srcdir/$ac_unique_file"; then
1617     srcdir=..
1618   fi
1619 else
1620   ac_srcdir_defaulted=no
1621 fi
1622 if test ! -r "$srcdir/$ac_unique_file"; then
1623   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1625 fi
1626 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1627 ac_abs_confdir=`(
1628         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1629         pwd)`
1630 # When building in place, set srcdir=.
1631 if test "$ac_abs_confdir" = "$ac_pwd"; then
1632   srcdir=.
1633 fi
1634 # Remove unnecessary trailing slashes from srcdir.
1635 # Double slashes in file names in object file debugging info
1636 # mess up M-x gdb in Emacs.
1637 case $srcdir in
1638 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1639 esac
1640 for ac_var in $ac_precious_vars; do
1641   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642   eval ac_env_${ac_var}_value=\$${ac_var}
1643   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1645 done
1646
1647 #
1648 # Report the --help message.
1649 #
1650 if test "$ac_init_help" = "long"; then
1651   # Omit some internal or obsolete options to make the list less imposing.
1652   # This message is too long to be a string in the A/UX 3.1 sh.
1653   cat <<_ACEOF
1654 \`configure' configures this package to adapt to many kinds of systems.
1655
1656 Usage: $0 [OPTION]... [VAR=VALUE]...
1657
1658 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659 VAR=VALUE.  See below for descriptions of some of the useful variables.
1660
1661 Defaults for the options are specified in brackets.
1662
1663 Configuration:
1664   -h, --help              display this help and exit
1665       --help=short        display options specific to this package
1666       --help=recursive    display the short help of all the included packages
1667   -V, --version           display version information and exit
1668   -q, --quiet, --silent   do not print \`checking ...' messages
1669       --cache-file=FILE   cache test results in FILE [disabled]
1670   -C, --config-cache      alias for \`--cache-file=config.cache'
1671   -n, --no-create         do not create output files
1672       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1673
1674 Installation directories:
1675   --prefix=PREFIX         install architecture-independent files in PREFIX
1676                           [$ac_default_prefix]
1677   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1678                           [PREFIX]
1679
1680 By default, \`make install' will install all the files in
1681 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1682 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1683 for instance \`--prefix=\$HOME'.
1684
1685 For better control, use the options below.
1686
1687 Fine tuning of the installation directories:
1688   --bindir=DIR            user executables [EPREFIX/bin]
1689   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1690   --libexecdir=DIR        program executables [EPREFIX/libexec]
1691   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1692   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1693   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1694   --libdir=DIR            object code libraries [EPREFIX/lib]
1695   --includedir=DIR        C header files [PREFIX/include]
1696   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1697   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1698   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1699   --infodir=DIR           info documentation [DATAROOTDIR/info]
1700   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1701   --mandir=DIR            man documentation [DATAROOTDIR/man]
1702   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1703   --htmldir=DIR           html documentation [DOCDIR]
1704   --dvidir=DIR            dvi documentation [DOCDIR]
1705   --pdfdir=DIR            pdf documentation [DOCDIR]
1706   --psdir=DIR             ps documentation [DOCDIR]
1707 _ACEOF
1708
1709   cat <<\_ACEOF
1710
1711 System types:
1712   --build=BUILD     configure for building on BUILD [guessed]
1713   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1714 _ACEOF
1715 fi
1716
1717 if test -n "$ac_init_help"; then
1718
1719   cat <<\_ACEOF
1720
1721 Optional Features:
1722   --disable-option-checking  ignore unrecognized --enable/--with options
1723   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1724   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1725   --enable-shared[=PKGS]  build shared libraries [default=yes]
1726   --enable-static[=PKGS]  build static libraries [default=yes]
1727   --enable-fast-install[=PKGS]
1728                           optimize for fast installation [default=yes]
1729   --disable-libtool-lock  avoid locking (might break parallel builds)
1730   --enable-libbind        deprecated
1731   --enable-kqueue         use BSD kqueue when available [default=yes]
1732   --enable-epoll          use Linux epoll when available [default=auto]
1733   --enable-devpoll        use /dev/poll when available [default=yes]
1734   --enable-openssl-version-check
1735                           Check OpenSSL Version [default=yes]
1736   --enable-openssl-hash   use OpenSSL for hash functions [default=no]
1737   --enable-threads      enable multithreading
1738   --enable-largefile      64-bit file support
1739   --enable-backtrace      log stack backtrace on abort [default=yes]
1740   --enable-symtable       use internal symbol table for backtrace
1741                           [all|minimal(default)|none]
1742   --enable-exportlib    build exportable library (GNU make required)
1743                         [default=no]
1744   --enable-ipv6           use IPv6 default=autodetect
1745   --enable-getifaddrs     Enable the use of getifaddrs() [yes|no].
1746   --disable-isc-spnego    use SPNEGO from GSSAPI library
1747   --disable-chroot        disable chroot
1748   --disable-linux-caps    disable linux capabilities
1749   --enable-atomic         enable machine specific atomic operations
1750                           [default=autodetect]
1751   --enable-fixed-rrset    enable fixed rrset ordering
1752                           [default=no]
1753   --enable-filter-aaaa    enable filtering of AAAA records over IPv4
1754                           [default=no]
1755
1756 Optional Packages:
1757   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1758   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1759   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1760   --with-pic              try to use only PIC/non-PIC objects [default=use
1761                           both]
1762   --with-tags[=TAGS]      include additional configurations [automatic]
1763   --with-openssl=PATH     Build with OpenSSL yes|no|path.
1764                           (Required for DNSSEC)
1765   --with-pkcs11=PATH      Build with PKCS11 support yes|no|path
1766                           (PATH is for the PKCS11 provider)
1767   --with-gssapi=PATH      Specify path for system-supplied GSSAPI
1768   --with-randomdev=PATH   Specify path for random device
1769   --with-ptl2           on NetBSD, use the ptl2 thread library (experimental)
1770   --with-libxml2=PATH     Build with libxml2 library yes|no|path
1771   --with-purify=PATH      use Rational purify
1772   --with-libtool          use GNU libtool
1773   --with-export-libdir=PATH
1774                         installation directory for the export library
1775                         [EPREFIX/lib/bind9]
1776   --with-export-includedir=PATH
1777                         installation directory for the header files of the
1778                         export library [PREFIX/include/bind9]
1779   --with-kame=PATH        use Kame IPv6 default path /usr/local/v6
1780   --with-docbook-xsl=PATH Specify path for Docbook-XSL stylesheets
1781   --with-idn=MPREFIX      enable IDN support using idnkit default PREFIX
1782   --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX
1783   --with-iconv=LIBSPEC    specify iconv library default -liconv
1784   --with-idnlib=ARG       specify libidnkit
1785   --with-dlz-postgres=PATH   Build with Postgres DLZ driver yes|no|path.
1786                                (Required to use Postgres with DLZ)
1787   --with-dlz-mysql=PATH   Build with MySQL DLZ driver yes|no|path.
1788                                (Required to use MySQL with DLZ)
1789   --with-dlz-bdb=PATH   Build with Berkeley DB DLZ driver yes|no|path.
1790                                (Required to use Berkeley DB with DLZ)
1791   --with-dlz-filesystem=PATH   Build with filesystem DLZ driver yes|no.
1792                                (Required to use file system driver with DLZ)
1793   --with-dlz-ldap=PATH   Build with LDAP DLZ driver yes|no|path.
1794                                (Required to use LDAP with DLZ)
1795   --with-dlz-odbc=PATH   Build with ODBC DLZ driver yes|no|path.
1796                                (Required to use ODBC with DLZ)
1797   --with-dlz-stub=PATH   Build with stub DLZ driver yes|no.
1798                                (Required to use stub driver with DLZ)
1799   --with-make-clean      Run "make clean" at end of configure [yes|no].
1800
1801 Some influential environment variables:
1802   CC          C compiler command
1803   CFLAGS      C compiler flags
1804   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1805               nonstandard directory <lib dir>
1806   LIBS        libraries to pass to the linker, e.g. -l<library>
1807   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1808               you have headers in a nonstandard directory <include dir>
1809   CPP         C preprocessor
1810   CXX         C++ compiler command
1811   CXXFLAGS    C++ compiler flags
1812   CXXCPP      C++ preprocessor
1813   F77         Fortran 77 compiler command
1814   FFLAGS      Fortran 77 compiler flags
1815
1816 Use these variables to override the choices made by `configure' or to help
1817 it to find libraries and programs with nonstandard names/locations.
1818
1819 Report bugs to the package provider.
1820 _ACEOF
1821 ac_status=$?
1822 fi
1823
1824 if test "$ac_init_help" = "recursive"; then
1825   # If there are subdirs, report their specific --help.
1826   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1827     test -d "$ac_dir" ||
1828       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1829       continue
1830     ac_builddir=.
1831
1832 case "$ac_dir" in
1833 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1834 *)
1835   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1836   # A ".." for each directory in $ac_dir_suffix.
1837   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1838   case $ac_top_builddir_sub in
1839   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1840   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1841   esac ;;
1842 esac
1843 ac_abs_top_builddir=$ac_pwd
1844 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1845 # for backward compatibility:
1846 ac_top_builddir=$ac_top_build_prefix
1847
1848 case $srcdir in
1849   .)  # We are building in place.
1850     ac_srcdir=.
1851     ac_top_srcdir=$ac_top_builddir_sub
1852     ac_abs_top_srcdir=$ac_pwd ;;
1853   [\\/]* | ?:[\\/]* )  # Absolute name.
1854     ac_srcdir=$srcdir$ac_dir_suffix;
1855     ac_top_srcdir=$srcdir
1856     ac_abs_top_srcdir=$srcdir ;;
1857   *) # Relative name.
1858     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1859     ac_top_srcdir=$ac_top_build_prefix$srcdir
1860     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1861 esac
1862 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1863
1864     cd "$ac_dir" || { ac_status=$?; continue; }
1865     # Check for guested configure.
1866     if test -f "$ac_srcdir/configure.gnu"; then
1867       echo &&
1868       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1869     elif test -f "$ac_srcdir/configure"; then
1870       echo &&
1871       $SHELL "$ac_srcdir/configure" --help=recursive
1872     else
1873       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1874     fi || ac_status=$?
1875     cd "$ac_pwd" || { ac_status=$?; break; }
1876   done
1877 fi
1878
1879 test -n "$ac_init_help" && exit $ac_status
1880 if $ac_init_version; then
1881   cat <<\_ACEOF
1882 configure
1883 generated by GNU Autoconf 2.67
1884
1885 Copyright (C) 2010 Free Software Foundation, Inc.
1886 This configure script is free software; the Free Software Foundation
1887 gives unlimited permission to copy, distribute and modify it.
1888 _ACEOF
1889   exit
1890 fi
1891
1892 ## ------------------------ ##
1893 ## Autoconf initialization. ##
1894 ## ------------------------ ##
1895
1896 # ac_fn_c_try_compile LINENO
1897 # --------------------------
1898 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_compile ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   rm -f conftest.$ac_objext
1903   if { { ac_try="$ac_compile"
1904 case "(($ac_try" in
1905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906   *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910   (eval "$ac_compile") 2>conftest.err
1911   ac_status=$?
1912   if test -s conftest.err; then
1913     grep -v '^ *+' conftest.err >conftest.er1
1914     cat conftest.er1 >&5
1915     mv -f conftest.er1 conftest.err
1916   fi
1917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918   test $ac_status = 0; } && {
1919          test -z "$ac_c_werror_flag" ||
1920          test ! -s conftest.err
1921        } && test -s conftest.$ac_objext; then :
1922   ac_retval=0
1923 else
1924   $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927         ac_retval=1
1928 fi
1929   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930   as_fn_set_status $ac_retval
1931
1932 } # ac_fn_c_try_compile
1933
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_c_try_link ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   rm -f conftest.$ac_objext conftest$ac_exeext
1941   if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_link") 2>conftest.err
1949   ac_status=$?
1950   if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954   fi
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } && {
1957          test -z "$ac_c_werror_flag" ||
1958          test ! -s conftest.err
1959        } && test -s conftest$ac_exeext && {
1960          test "$cross_compiling" = yes ||
1961          $as_test_x conftest$ac_exeext
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968         ac_retval=1
1969 fi
1970   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972   # interfere with the next link command; also delete a directory that is
1973   # left behind by Apple's compiler.  We do this before executing the actions.
1974   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976   as_fn_set_status $ac_retval
1977
1978 } # ac_fn_c_try_link
1979
1980 # ac_fn_c_try_cpp LINENO
1981 # ----------------------
1982 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_c_try_cpp ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   if { { ac_try="$ac_cpp conftest.$ac_ext"
1987 case "(($ac_try" in
1988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989   *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994   ac_status=$?
1995   if test -s conftest.err; then
1996     grep -v '^ *+' conftest.err >conftest.er1
1997     cat conftest.er1 >&5
1998     mv -f conftest.er1 conftest.err
1999   fi
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; } > conftest.i && {
2002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2003          test ! -s conftest.err
2004        }; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010     ac_retval=1
2011 fi
2012   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013   as_fn_set_status $ac_retval
2014
2015 } # ac_fn_c_try_cpp
2016
2017 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2020 # the include files in INCLUDES and setting the cache variable VAR
2021 # accordingly.
2022 ac_fn_c_check_header_mongrel ()
2023 {
2024   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025   if eval "test \"\${$3+set}\"" = set; then :
2026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval "test \"\${$3+set}\"" = set; then :
2029   $as_echo_n "(cached) " >&6
2030 fi
2031 eval ac_res=\$$3
2032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 else
2035   # Is the header compilable?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2037 $as_echo_n "checking $2 usability... " >&6; }
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 #include <$2>
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044   ac_header_compiler=yes
2045 else
2046   ac_header_compiler=no
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2050 $as_echo "$ac_header_compiler" >&6; }
2051
2052 # Is the header present?
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2054 $as_echo_n "checking $2 presence... " >&6; }
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 #include <$2>
2058 _ACEOF
2059 if ac_fn_c_try_cpp "$LINENO"; then :
2060   ac_header_preproc=yes
2061 else
2062   ac_header_preproc=no
2063 fi
2064 rm -f conftest.err conftest.i conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2066 $as_echo "$ac_header_preproc" >&6; }
2067
2068 # So?  What about this header?
2069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2070   yes:no: )
2071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2072 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2073     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075     ;;
2076   no:yes:* )
2077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2078 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2080 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2082 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2083     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2084 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2085     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087     ;;
2088 esac
2089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval "test \"\${$3+set}\"" = set; then :
2092   $as_echo_n "(cached) " >&6
2093 else
2094   eval "$3=\$ac_header_compiler"
2095 fi
2096 eval ac_res=\$$3
2097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 fi
2100   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101
2102 } # ac_fn_c_check_header_mongrel
2103
2104 # ac_fn_c_try_run LINENO
2105 # ----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2107 # that executables *can* be run.
2108 ac_fn_c_try_run ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   if { { ac_try="$ac_link"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_link") 2>&5
2119   ac_status=$?
2120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2122   { { case "(($ac_try" in
2123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124   *) ac_try_echo=$ac_try;;
2125 esac
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128   (eval "$ac_try") 2>&5
2129   ac_status=$?
2130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131   test $ac_status = 0; }; }; then :
2132   ac_retval=0
2133 else
2134   $as_echo "$as_me: program exited with status $ac_status" >&5
2135        $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138        ac_retval=$ac_status
2139 fi
2140   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2141   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142   as_fn_set_status $ac_retval
2143
2144 } # ac_fn_c_try_run
2145
2146 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists and can be compiled using the include files in
2149 # INCLUDES, setting the cache variable VAR accordingly.
2150 ac_fn_c_check_header_compile ()
2151 {
2152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if eval "test \"\${$3+set}\"" = set; then :
2156   $as_echo_n "(cached) " >&6
2157 else
2158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h.  */
2160 $4
2161 #include <$2>
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164   eval "$3=yes"
2165 else
2166   eval "$3=no"
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 eval ac_res=\$$3
2171                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174
2175 } # ac_fn_c_check_header_compile
2176
2177 # ac_fn_c_check_func LINENO FUNC VAR
2178 # ----------------------------------
2179 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2180 ac_fn_c_check_func ()
2181 {
2182   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if eval "test \"\${$3+set}\"" = set; then :
2186   $as_echo_n "(cached) " >&6
2187 else
2188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2192 #define $2 innocuous_$2
2193
2194 /* System header to define __stub macros and hopefully few prototypes,
2195     which can conflict with char $2 (); below.
2196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2197     <limits.h> exists even on freestanding compilers.  */
2198
2199 #ifdef __STDC__
2200 # include <limits.h>
2201 #else
2202 # include <assert.h>
2203 #endif
2204
2205 #undef $2
2206
2207 /* Override any GCC internal prototype to avoid an error.
2208    Use char because int might match the return type of a GCC
2209    builtin and then its argument prototype would still apply.  */
2210 #ifdef __cplusplus
2211 extern "C"
2212 #endif
2213 char $2 ();
2214 /* The GNU C library defines this for functions which it implements
2215     to always fail with ENOSYS.  Some functions are actually named
2216     something starting with __ and the normal name is an alias.  */
2217 #if defined __stub_$2 || defined __stub___$2
2218 choke me
2219 #endif
2220
2221 int
2222 main ()
2223 {
2224 return $2 ();
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_link "$LINENO"; then :
2230   eval "$3=yes"
2231 else
2232   eval "$3=no"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext \
2235     conftest$ac_exeext conftest.$ac_ext
2236 fi
2237 eval ac_res=\$$3
2238                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239 $as_echo "$ac_res" >&6; }
2240   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241
2242 } # ac_fn_c_check_func
2243
2244 # ac_fn_cxx_try_compile LINENO
2245 # ----------------------------
2246 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2247 ac_fn_cxx_try_compile ()
2248 {
2249   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250   rm -f conftest.$ac_objext
2251   if { { ac_try="$ac_compile"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258   (eval "$ac_compile") 2>conftest.err
2259   ac_status=$?
2260   if test -s conftest.err; then
2261     grep -v '^ *+' conftest.err >conftest.er1
2262     cat conftest.er1 >&5
2263     mv -f conftest.er1 conftest.err
2264   fi
2265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266   test $ac_status = 0; } && {
2267          test -z "$ac_cxx_werror_flag" ||
2268          test ! -s conftest.err
2269        } && test -s conftest.$ac_objext; then :
2270   ac_retval=0
2271 else
2272   $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275         ac_retval=1
2276 fi
2277   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2278   as_fn_set_status $ac_retval
2279
2280 } # ac_fn_cxx_try_compile
2281
2282 # ac_fn_cxx_try_cpp LINENO
2283 # ------------------------
2284 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2285 ac_fn_cxx_try_cpp ()
2286 {
2287   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288   if { { ac_try="$ac_cpp conftest.$ac_ext"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2294 $as_echo "$ac_try_echo"; } >&5
2295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2296   ac_status=$?
2297   if test -s conftest.err; then
2298     grep -v '^ *+' conftest.err >conftest.er1
2299     cat conftest.er1 >&5
2300     mv -f conftest.er1 conftest.err
2301   fi
2302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303   test $ac_status = 0; } > conftest.i && {
2304          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2305          test ! -s conftest.err
2306        }; then :
2307   ac_retval=0
2308 else
2309   $as_echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311
2312     ac_retval=1
2313 fi
2314   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315   as_fn_set_status $ac_retval
2316
2317 } # ac_fn_cxx_try_cpp
2318
2319 # ac_fn_cxx_try_link LINENO
2320 # -------------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2322 ac_fn_cxx_try_link ()
2323 {
2324   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325   rm -f conftest.$ac_objext conftest$ac_exeext
2326   if { { ac_try="$ac_link"
2327 case "(($ac_try" in
2328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329   *) ac_try_echo=$ac_try;;
2330 esac
2331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333   (eval "$ac_link") 2>conftest.err
2334   ac_status=$?
2335   if test -s conftest.err; then
2336     grep -v '^ *+' conftest.err >conftest.er1
2337     cat conftest.er1 >&5
2338     mv -f conftest.er1 conftest.err
2339   fi
2340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341   test $ac_status = 0; } && {
2342          test -z "$ac_cxx_werror_flag" ||
2343          test ! -s conftest.err
2344        } && test -s conftest$ac_exeext && {
2345          test "$cross_compiling" = yes ||
2346          $as_test_x conftest$ac_exeext
2347        }; then :
2348   ac_retval=0
2349 else
2350   $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353         ac_retval=1
2354 fi
2355   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357   # interfere with the next link command; also delete a directory that is
2358   # left behind by Apple's compiler.  We do this before executing the actions.
2359   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361   as_fn_set_status $ac_retval
2362
2363 } # ac_fn_cxx_try_link
2364
2365 # ac_fn_f77_try_compile LINENO
2366 # ----------------------------
2367 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2368 ac_fn_f77_try_compile ()
2369 {
2370   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371   rm -f conftest.$ac_objext
2372   if { { ac_try="$ac_compile"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379   (eval "$ac_compile") 2>conftest.err
2380   ac_status=$?
2381   if test -s conftest.err; then
2382     grep -v '^ *+' conftest.err >conftest.er1
2383     cat conftest.er1 >&5
2384     mv -f conftest.er1 conftest.err
2385   fi
2386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387   test $ac_status = 0; } && {
2388          test -z "$ac_f77_werror_flag" ||
2389          test ! -s conftest.err
2390        } && test -s conftest.$ac_objext; then :
2391   ac_retval=0
2392 else
2393   $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396         ac_retval=1
2397 fi
2398   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399   as_fn_set_status $ac_retval
2400
2401 } # ac_fn_f77_try_compile
2402
2403 # ac_fn_f77_try_link LINENO
2404 # -------------------------
2405 # Try to link conftest.$ac_ext, and return whether this succeeded.
2406 ac_fn_f77_try_link ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   rm -f conftest.$ac_objext conftest$ac_exeext
2410   if { { ac_try="$ac_link"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417   (eval "$ac_link") 2>conftest.err
2418   ac_status=$?
2419   if test -s conftest.err; then
2420     grep -v '^ *+' conftest.err >conftest.er1
2421     cat conftest.er1 >&5
2422     mv -f conftest.er1 conftest.err
2423   fi
2424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425   test $ac_status = 0; } && {
2426          test -z "$ac_f77_werror_flag" ||
2427          test ! -s conftest.err
2428        } && test -s conftest$ac_exeext && {
2429          test "$cross_compiling" = yes ||
2430          $as_test_x conftest$ac_exeext
2431        }; then :
2432   ac_retval=0
2433 else
2434   $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437         ac_retval=1
2438 fi
2439   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2440   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2441   # interfere with the next link command; also delete a directory that is
2442   # left behind by Apple's compiler.  We do this before executing the actions.
2443   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2444   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445   as_fn_set_status $ac_retval
2446
2447 } # ac_fn_f77_try_link
2448
2449 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2450 # -------------------------------------------
2451 # Tests whether TYPE exists after having included INCLUDES, setting cache
2452 # variable VAR accordingly.
2453 ac_fn_c_check_type ()
2454 {
2455   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if eval "test \"\${$3+set}\"" = set; then :
2459   $as_echo_n "(cached) " >&6
2460 else
2461   eval "$3=no"
2462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 $4
2465 int
2466 main ()
2467 {
2468 if (sizeof ($2))
2469          return 0;
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h.  */
2477 $4
2478 int
2479 main ()
2480 {
2481 if (sizeof (($2)))
2482             return 0;
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488
2489 else
2490   eval "$3=yes"
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 fi
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 fi
2496 eval ac_res=\$$3
2497                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498 $as_echo "$ac_res" >&6; }
2499   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500
2501 } # ac_fn_c_check_type
2502 cat >config.log <<_ACEOF
2503 This file contains any messages produced by compilers while
2504 running configure, to aid debugging if configure makes a mistake.
2505
2506 It was created by $as_me, which was
2507 generated by GNU Autoconf 2.67.  Invocation command line was
2508
2509   $ $0 $@
2510
2511 _ACEOF
2512 exec 5>>config.log
2513 {
2514 cat <<_ASUNAME
2515 ## --------- ##
2516 ## Platform. ##
2517 ## --------- ##
2518
2519 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2520 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2521 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2522 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2523 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2524
2525 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2526 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2527
2528 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2529 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2530 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2531 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2532 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2533 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2534 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2535
2536 _ASUNAME
2537
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
2542   test -z "$as_dir" && as_dir=.
2543     $as_echo "PATH: $as_dir"
2544   done
2545 IFS=$as_save_IFS
2546
2547 } >&5
2548
2549 cat >&5 <<_ACEOF
2550
2551
2552 ## ----------- ##
2553 ## Core tests. ##
2554 ## ----------- ##
2555
2556 _ACEOF
2557
2558
2559 # Keep a trace of the command line.
2560 # Strip out --no-create and --no-recursion so they do not pile up.
2561 # Strip out --silent because we don't want to record it for future runs.
2562 # Also quote any args containing shell meta-characters.
2563 # Make two passes to allow for proper duplicate-argument suppression.
2564 ac_configure_args=
2565 ac_configure_args0=
2566 ac_configure_args1=
2567 ac_must_keep_next=false
2568 for ac_pass in 1 2
2569 do
2570   for ac_arg
2571   do
2572     case $ac_arg in
2573     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2574     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2575     | -silent | --silent | --silen | --sile | --sil)
2576       continue ;;
2577     *\'*)
2578       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2579     esac
2580     case $ac_pass in
2581     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2582     2)
2583       as_fn_append ac_configure_args1 " '$ac_arg'"
2584       if test $ac_must_keep_next = true; then
2585         ac_must_keep_next=false # Got value, back to normal.
2586       else
2587         case $ac_arg in
2588           *=* | --config-cache | -C | -disable-* | --disable-* \
2589           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2590           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2591           | -with-* | --with-* | -without-* | --without-* | --x)
2592             case "$ac_configure_args0 " in
2593               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2594             esac
2595             ;;
2596           -* ) ac_must_keep_next=true ;;
2597         esac
2598       fi
2599       as_fn_append ac_configure_args " '$ac_arg'"
2600       ;;
2601     esac
2602   done
2603 done
2604 { ac_configure_args0=; unset ac_configure_args0;}
2605 { ac_configure_args1=; unset ac_configure_args1;}
2606
2607 # When interrupted or exit'd, cleanup temporary files, and complete
2608 # config.log.  We remove comments because anyway the quotes in there
2609 # would cause problems or look ugly.
2610 # WARNING: Use '\'' to represent an apostrophe within the trap.
2611 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2612 trap 'exit_status=$?
2613   # Save into config.log some information that might help in debugging.
2614   {
2615     echo
2616
2617     $as_echo "## ---------------- ##
2618 ## Cache variables. ##
2619 ## ---------------- ##"
2620     echo
2621     # The following way of writing the cache mishandles newlines in values,
2622 (
2623   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2624     eval ac_val=\$$ac_var
2625     case $ac_val in #(
2626     *${as_nl}*)
2627       case $ac_var in #(
2628       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2630       esac
2631       case $ac_var in #(
2632       _ | IFS | as_nl) ;; #(
2633       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2634       *) { eval $ac_var=; unset $ac_var;} ;;
2635       esac ;;
2636     esac
2637   done
2638   (set) 2>&1 |
2639     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2640     *${as_nl}ac_space=\ *)
2641       sed -n \
2642         "s/'\''/'\''\\\\'\'''\''/g;
2643           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2644       ;; #(
2645     *)
2646       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2647       ;;
2648     esac |
2649     sort
2650 )
2651     echo
2652
2653     $as_echo "## ----------------- ##
2654 ## Output variables. ##
2655 ## ----------------- ##"
2656     echo
2657     for ac_var in $ac_subst_vars
2658     do
2659       eval ac_val=\$$ac_var
2660       case $ac_val in
2661       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2662       esac
2663       $as_echo "$ac_var='\''$ac_val'\''"
2664     done | sort
2665     echo
2666
2667     if test -n "$ac_subst_files"; then
2668       $as_echo "## ------------------- ##
2669 ## File substitutions. ##
2670 ## ------------------- ##"
2671       echo
2672       for ac_var in $ac_subst_files
2673       do
2674         eval ac_val=\$$ac_var
2675         case $ac_val in
2676         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2677         esac
2678         $as_echo "$ac_var='\''$ac_val'\''"
2679       done | sort
2680       echo
2681     fi
2682
2683     if test -s confdefs.h; then
2684       $as_echo "## ----------- ##
2685 ## confdefs.h. ##
2686 ## ----------- ##"
2687       echo
2688       cat confdefs.h
2689       echo
2690     fi
2691     test "$ac_signal" != 0 &&
2692       $as_echo "$as_me: caught signal $ac_signal"
2693     $as_echo "$as_me: exit $exit_status"
2694   } >&5
2695   rm -f core *.core core.conftest.* &&
2696     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2697     exit $exit_status
2698 ' 0
2699 for ac_signal in 1 2 13 15; do
2700   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2701 done
2702 ac_signal=0
2703
2704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2705 rm -f -r conftest* confdefs.h
2706
2707 $as_echo "/* confdefs.h */" > confdefs.h
2708
2709 # Predefined preprocessor variables.
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_NAME "$PACKAGE_NAME"
2713 _ACEOF
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2717 _ACEOF
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2721 _ACEOF
2722
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_STRING "$PACKAGE_STRING"
2725 _ACEOF
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2729 _ACEOF
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_URL "$PACKAGE_URL"
2733 _ACEOF
2734
2735
2736 # Let the site file select an alternate cache file if it wants to.
2737 # Prefer an explicitly selected file to automatically selected ones.
2738 ac_site_file1=NONE
2739 ac_site_file2=NONE
2740 if test -n "$CONFIG_SITE"; then
2741   # We do not want a PATH search for config.site.
2742   case $CONFIG_SITE in #((
2743     -*)  ac_site_file1=./$CONFIG_SITE;;
2744     */*) ac_site_file1=$CONFIG_SITE;;
2745     *)   ac_site_file1=./$CONFIG_SITE;;
2746   esac
2747 elif test "x$prefix" != xNONE; then
2748   ac_site_file1=$prefix/share/config.site
2749   ac_site_file2=$prefix/etc/config.site
2750 else
2751   ac_site_file1=$ac_default_prefix/share/config.site
2752   ac_site_file2=$ac_default_prefix/etc/config.site
2753 fi
2754 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2755 do
2756   test "x$ac_site_file" = xNONE && continue
2757   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2758     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2759 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2760     sed 's/^/| /' "$ac_site_file" >&5
2761     . "$ac_site_file" \
2762       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $? "failed to load site script $ac_site_file
2765 See \`config.log' for more details" "$LINENO" 5; }
2766   fi
2767 done
2768
2769 if test -r "$cache_file"; then
2770   # Some versions of bash will fail to source /dev/null (special files
2771   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2772   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2773     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2774 $as_echo "$as_me: loading cache $cache_file" >&6;}
2775     case $cache_file in
2776       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2777       *)                      . "./$cache_file";;
2778     esac
2779   fi
2780 else
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2782 $as_echo "$as_me: creating cache $cache_file" >&6;}
2783   >$cache_file
2784 fi
2785
2786 # Check that the precious variables saved in the cache have kept the same
2787 # value.
2788 ac_cache_corrupted=false
2789 for ac_var in $ac_precious_vars; do
2790   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2791   eval ac_new_set=\$ac_env_${ac_var}_set
2792   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2793   eval ac_new_val=\$ac_env_${ac_var}_value
2794   case $ac_old_set,$ac_new_set in
2795     set,)
2796       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2797 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2798       ac_cache_corrupted=: ;;
2799     ,set)
2800       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2801 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2802       ac_cache_corrupted=: ;;
2803     ,);;
2804     *)
2805       if test "x$ac_old_val" != "x$ac_new_val"; then
2806         # differences in whitespace do not lead to failure.
2807         ac_old_val_w=`echo x $ac_old_val`
2808         ac_new_val_w=`echo x $ac_new_val`
2809         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2810           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2811 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2812           ac_cache_corrupted=:
2813         else
2814           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2815 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2816           eval $ac_var=\$ac_old_val
2817         fi
2818         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2819 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2820         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2821 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2822       fi;;
2823   esac
2824   # Pass precious variables to config.status.
2825   if test "$ac_new_set" = set; then
2826     case $ac_new_val in
2827     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2828     *) ac_arg=$ac_var=$ac_new_val ;;
2829     esac
2830     case " $ac_configure_args " in
2831       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2832       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2833     esac
2834   fi
2835 done
2836 if $ac_cache_corrupted; then
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2840 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2841   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2842 fi
2843 ## -------------------- ##
2844 ## Main body of script. ##
2845 ## -------------------- ##
2846
2847 ac_ext=c
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852
2853
2854
2855
2856 ac_config_headers="$ac_config_headers config.h"
2857
2858
2859 ac_aux_dir=
2860 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2861   if test -f "$ac_dir/install-sh"; then
2862     ac_aux_dir=$ac_dir
2863     ac_install_sh="$ac_aux_dir/install-sh -c"
2864     break
2865   elif test -f "$ac_dir/install.sh"; then
2866     ac_aux_dir=$ac_dir
2867     ac_install_sh="$ac_aux_dir/install.sh -c"
2868     break
2869   elif test -f "$ac_dir/shtool"; then
2870     ac_aux_dir=$ac_dir
2871     ac_install_sh="$ac_aux_dir/shtool install -c"
2872     break
2873   fi
2874 done
2875 if test -z "$ac_aux_dir"; then
2876   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2877 fi
2878
2879 # These three variables are undocumented and unsupported,
2880 # and are intended to be withdrawn in a future Autoconf release.
2881 # They can cause serious problems if a builder's source tree is in a directory
2882 # whose full name contains unusual characters.
2883 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2884 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2885 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2886
2887
2888 # Make sure we can run config.sub.
2889 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2890   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2893 $as_echo_n "checking build system type... " >&6; }
2894 if test "${ac_cv_build+set}" = set; then :
2895   $as_echo_n "(cached) " >&6
2896 else
2897   ac_build_alias=$build_alias
2898 test "x$ac_build_alias" = x &&
2899   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2900 test "x$ac_build_alias" = x &&
2901   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2902 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2903   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2904
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2907 $as_echo "$ac_cv_build" >&6; }
2908 case $ac_cv_build in
2909 *-*-*) ;;
2910 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2911 esac
2912 build=$ac_cv_build
2913 ac_save_IFS=$IFS; IFS='-'
2914 set x $ac_cv_build
2915 shift
2916 build_cpu=$1
2917 build_vendor=$2
2918 shift; shift
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2921 build_os=$*
2922 IFS=$ac_save_IFS
2923 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2924
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2927 $as_echo_n "checking host system type... " >&6; }
2928 if test "${ac_cv_host+set}" = set; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test "x$host_alias" = x; then
2932   ac_cv_host=$ac_cv_build
2933 else
2934   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2935     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2936 fi
2937
2938 fi
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2940 $as_echo "$ac_cv_host" >&6; }
2941 case $ac_cv_host in
2942 *-*-*) ;;
2943 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2944 esac
2945 host=$ac_cv_host
2946 ac_save_IFS=$IFS; IFS='-'
2947 set x $ac_cv_host
2948 shift
2949 host_cpu=$1
2950 host_vendor=$2
2951 shift; shift
2952 # Remember, the first character of IFS is used to create $*,
2953 # except with old shells:
2954 host_os=$*
2955 IFS=$ac_save_IFS
2956 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2957
2958
2959
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2961 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2962 set x ${MAKE-make}
2963 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2964 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   cat >conftest.make <<\_ACEOF
2968 SHELL = /bin/sh
2969 all:
2970         @echo '@@@%%%=$(MAKE)=@@@%%%'
2971 _ACEOF
2972 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2973 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2974   *@@@%%%=?*=@@@%%%*)
2975     eval ac_cv_prog_make_${ac_make}_set=yes;;
2976   *)
2977     eval ac_cv_prog_make_${ac_make}_set=no;;
2978 esac
2979 rm -f conftest.make
2980 fi
2981 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2984   SET_MAKE=
2985 else
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988   SET_MAKE="MAKE=${MAKE-make}"
2989 fi
2990
2991
2992 #
2993 # GNU libtool support
2994 #
2995 case $build_os in
2996 sunos*)
2997     # Just set the maximum command line length for sunos as it otherwise
2998     # takes a exceptionally long time to work it out. Required for libtool.
2999
3000     lt_cv_sys_max_cmd_len=4096;
3001     ;;
3002 esac
3003
3004 # Check whether --enable-shared was given.
3005 if test "${enable_shared+set}" = set; then :
3006   enableval=$enable_shared; p=${PACKAGE-default}
3007     case $enableval in
3008     yes) enable_shared=yes ;;
3009     no) enable_shared=no ;;
3010     *)
3011       enable_shared=no
3012       # Look at the argument we got.  We use all the common list separators.
3013       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3014       for pkg in $enableval; do
3015         IFS="$lt_save_ifs"
3016         if test "X$pkg" = "X$p"; then
3017           enable_shared=yes
3018         fi
3019       done
3020       IFS="$lt_save_ifs"
3021       ;;
3022     esac
3023 else
3024   enable_shared=yes
3025 fi
3026
3027
3028 # Check whether --enable-static was given.
3029 if test "${enable_static+set}" = set; then :
3030   enableval=$enable_static; p=${PACKAGE-default}
3031     case $enableval in
3032     yes) enable_static=yes ;;
3033     no) enable_static=no ;;
3034     *)
3035      enable_static=no
3036       # Look at the argument we got.  We use all the common list separators.
3037       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3038       for pkg in $enableval; do
3039         IFS="$lt_save_ifs"
3040         if test "X$pkg" = "X$p"; then
3041           enable_static=yes
3042         fi
3043       done
3044       IFS="$lt_save_ifs"
3045       ;;
3046     esac
3047 else
3048   enable_static=yes
3049 fi
3050
3051
3052 # Check whether --enable-fast-install was given.
3053 if test "${enable_fast_install+set}" = set; then :
3054   enableval=$enable_fast_install; p=${PACKAGE-default}
3055     case $enableval in
3056     yes) enable_fast_install=yes ;;
3057     no) enable_fast_install=no ;;
3058     *)
3059       enable_fast_install=no
3060       # Look at the argument we got.  We use all the common list separators.
3061       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3062       for pkg in $enableval; do
3063         IFS="$lt_save_ifs"
3064         if test "X$pkg" = "X$p"; then
3065           enable_fast_install=yes
3066         fi
3067       done
3068       IFS="$lt_save_ifs"
3069       ;;
3070     esac
3071 else
3072   enable_fast_install=yes
3073 fi
3074
3075
3076 ac_ext=c
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081 if test -n "$ac_tool_prefix"; then
3082   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3087   $as_echo_n "(cached) " >&6
3088 else
3089   if test -n "$CC"; then
3090   ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095   IFS=$as_save_IFS
3096   test -z "$as_dir" && as_dir=.
3097     for ac_exec_ext in '' $ac_executable_extensions; do
3098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104   done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 fi
3120 if test -z "$ac_cv_prog_CC"; then
3121   ac_ct_CC=$CC
3122   # Extract the first word of "gcc", so it can be a program name with args.
3123 set dummy gcc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   if test -n "$ac_ct_CC"; then
3130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     for ac_exec_ext in '' $ac_executable_extensions; do
3138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139     ac_cv_prog_ac_ct_CC="gcc"
3140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144   done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158   if test "x$ac_ct_CC" = x; then
3159     CC=""
3160   else
3161     case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167     CC=$ac_ct_CC
3168   fi
3169 else
3170   CC="$ac_cv_prog_CC"
3171 fi
3172
3173 if test -z "$CC"; then
3174           if test -n "$ac_tool_prefix"; then
3175     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_CC+set}" = set; then :
3180   $as_echo_n "(cached) " >&6
3181 else
3182   if test -n "$CC"; then
3183   ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190     for ac_exec_ext in '' $ac_executable_extensions; do
3191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192     ac_cv_prog_CC="${ac_tool_prefix}cc"
3193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197   done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212   fi
3213 fi
3214 if test -z "$CC"; then
3215   # Extract the first word of "cc", so it can be a program name with args.
3216 set dummy cc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if test "${ac_cv_prog_CC+set}" = set; then :
3220   $as_echo_n "(cached) " >&6
3221 else
3222   if test -n "$CC"; then
3223   ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225   ac_prog_rejected=no
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     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234        ac_prog_rejected=yes
3235        continue
3236      fi
3237     ac_cv_prog_CC="cc"
3238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242   done
3243 IFS=$as_save_IFS
3244
3245 if test $ac_prog_rejected = yes; then
3246   # We found a bogon in the path, so make sure we never use it.
3247   set dummy $ac_cv_prog_CC
3248   shift
3249   if test $# != 0; then
3250     # We chose a different compiler from the bogus one.
3251     # However, it has the same basename, so the bogon will be chosen
3252     # first if we set CC to just the basename; use the full file name.
3253     shift
3254     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3255   fi
3256 fi
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3263 else
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269 fi
3270 if test -z "$CC"; then
3271   if test -n "$ac_tool_prefix"; then
3272   for ac_prog in cl.exe
3273   do
3274     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   if test -n "$CC"; then
3282   ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311     test -n "$CC" && break
3312   done
3313 fi
3314 if test -z "$CC"; then
3315   ac_ct_CC=$CC
3316   for ac_prog in cl.exe
3317 do
3318   # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 set dummy $ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$ac_ct_CC"; then
3326   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335     ac_cv_prog_ac_ct_CC="$ac_prog"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355   test -n "$ac_ct_CC" && break
3356 done
3357
3358   if test "x$ac_ct_CC" = x; then
3359     CC=""
3360   else
3361     case $cross_compiling:$ac_tool_warned in
3362 yes:)
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365 ac_tool_warned=yes ;;
3366 esac
3367     CC=$ac_ct_CC
3368   fi
3369 fi
3370
3371 fi
3372
3373
3374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "no acceptable C compiler found in \$PATH
3377 See \`config.log' for more details" "$LINENO" 5; }
3378
3379 # Provide some information about the compiler.
3380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3381 set X $ac_compile
3382 ac_compiler=$2
3383 for ac_option in --version -v -V -qversion; do
3384   { { ac_try="$ac_compiler $ac_option >&5"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3392   ac_status=$?
3393   if test -s conftest.err; then
3394     sed '10a\
3395 ... rest of stderr output deleted ...
3396          10q' conftest.err >conftest.er1
3397     cat conftest.er1 >&5
3398   fi
3399   rm -f conftest.er1 conftest.err
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }
3402 done
3403
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h.  */
3406
3407 int
3408 main ()
3409 {
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 ac_clean_files_save=$ac_clean_files
3416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3417 # Try to create an executable without -o first, disregard a.out.
3418 # It will help us diagnose broken compilers, and finding out an intuition
3419 # of exeext.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421 $as_echo_n "checking whether the C compiler works... " >&6; }
3422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423
3424 # The possible output files:
3425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426
3427 ac_rmfiles=
3428 for ac_file in $ac_files
3429 do
3430   case $ac_file in
3431     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433   esac
3434 done
3435 rm -f $ac_rmfiles
3436
3437 if { { ac_try="$ac_link_default"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444   (eval "$ac_link_default") 2>&5
3445   ac_status=$?
3446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447   test $ac_status = 0; }; then :
3448   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3451 # so that the user can short-circuit this test for compilers unknown to
3452 # Autoconf.
3453 for ac_file in $ac_files ''
3454 do
3455   test -f "$ac_file" || continue
3456   case $ac_file in
3457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3458         ;;
3459     [ab].out )
3460         # We found the default executable, but exeext='' is most
3461         # certainly right.
3462         break;;
3463     *.* )
3464         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3465         then :; else
3466            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467         fi
3468         # We set ac_cv_exeext here because the later test for it is not
3469         # safe: cross compilers may not add the suffix if given an `-o'
3470         # argument, so we may need to know it at that point already.
3471         # Even if this section looks crufty: it has the advantage of
3472         # actually working.
3473         break;;
3474     * )
3475         break;;
3476   esac
3477 done
3478 test "$ac_cv_exeext" = no && ac_cv_exeext=
3479
3480 else
3481   ac_file=''
3482 fi
3483 if test -z "$ac_file"; then :
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error 77 "C compiler cannot create executables
3492 See \`config.log' for more details" "$LINENO" 5; }
3493 else
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495 $as_echo "yes" >&6; }
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3498 $as_echo_n "checking for C compiler default output file name... " >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3500 $as_echo "$ac_file" >&6; }
3501 ac_exeext=$ac_cv_exeext
3502
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3506 $as_echo_n "checking for suffix of executables... " >&6; }
3507 if { { ac_try="$ac_link"
3508 case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514   (eval "$ac_link") 2>&5
3515   ac_status=$?
3516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517   test $ac_status = 0; }; then :
3518   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3520 # work properly (i.e., refer to `conftest.exe'), while it won't with
3521 # `rm'.
3522 for ac_file in conftest.exe conftest conftest.*; do
3523   test -f "$ac_file" || continue
3524   case $ac_file in
3525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527           break;;
3528     * ) break;;
3529   esac
3530 done
3531 else
3532   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3535 See \`config.log' for more details" "$LINENO" 5; }
3536 fi
3537 rm -f conftest conftest$ac_cv_exeext
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3539 $as_echo "$ac_cv_exeext" >&6; }
3540
3541 rm -f conftest.$ac_ext
3542 EXEEXT=$ac_cv_exeext
3543 ac_exeext=$EXEEXT
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h.  */
3546 #include <stdio.h>
3547 int
3548 main ()
3549 {
3550 FILE *f = fopen ("conftest.out", "w");
3551  return ferror (f) || fclose (f) != 0;
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 ac_clean_files="$ac_clean_files conftest.out"
3558 # Check that the compiler produces executables we can run.  If not, either
3559 # the compiler is broken, or we cross compile.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3561 $as_echo_n "checking whether we are cross compiling... " >&6; }
3562 if test "$cross_compiling" != yes; then
3563   { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_link") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }
3574   if { ac_try='./conftest$ac_cv_exeext'
3575   { { case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581   (eval "$ac_try") 2>&5
3582   ac_status=$?
3583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584   test $ac_status = 0; }; }; then
3585     cross_compiling=no
3586   else
3587     if test "$cross_compiling" = maybe; then
3588         cross_compiling=yes
3589     else
3590         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot run C compiled programs.
3593 If you meant to cross compile, use \`--host'.
3594 See \`config.log' for more details" "$LINENO" 5; }
3595     fi
3596   fi
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599 $as_echo "$cross_compiling" >&6; }
3600
3601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3602 ac_clean_files=$ac_clean_files_save
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3604 $as_echo_n "checking for suffix of object files... " >&6; }
3605 if test "${ac_cv_objext+set}" = set; then :
3606   $as_echo_n "(cached) " >&6
3607 else
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610
3611 int
3612 main ()
3613 {
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.o conftest.obj
3620 if { { ac_try="$ac_compile"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627   (eval "$ac_compile") 2>&5
3628   ac_status=$?
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; }; then :
3631   for ac_file in conftest.o conftest.obj conftest.*; do
3632   test -f "$ac_file" || continue;
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3635     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3636        break;;
3637   esac
3638 done
3639 else
3640   $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error $? "cannot compute suffix of object files: cannot compile
3646 See \`config.log' for more details" "$LINENO" 5; }
3647 fi
3648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3651 $as_echo "$ac_cv_objext" >&6; }
3652 OBJEXT=$ac_cv_objext
3653 ac_objext=$OBJEXT
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3656 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3657   $as_echo_n "(cached) " >&6
3658 else
3659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h.  */
3661
3662 int
3663 main ()
3664 {
3665 #ifndef __GNUC__
3666        choke me
3667 #endif
3668
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674   ac_compiler_gnu=yes
3675 else
3676   ac_compiler_gnu=no
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3680
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3684 if test $ac_compiler_gnu = yes; then
3685   GCC=yes
3686 else
3687   GCC=
3688 fi
3689 ac_test_CFLAGS=${CFLAGS+set}
3690 ac_save_CFLAGS=$CFLAGS
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3693 if test "${ac_cv_prog_cc_g+set}" = set; then :
3694   $as_echo_n "(cached) " >&6
3695 else
3696   ac_save_c_werror_flag=$ac_c_werror_flag
3697    ac_c_werror_flag=yes
3698    ac_cv_prog_cc_g=no
3699    CFLAGS="-g"
3700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702
3703 int
3704 main ()
3705 {
3706
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712   ac_cv_prog_cc_g=yes
3713 else
3714   CFLAGS=""
3715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3717
3718 int
3719 main ()
3720 {
3721
3722   ;
3723   return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727
3728 else
3729   ac_c_werror_flag=$ac_save_c_werror_flag
3730          CFLAGS="-g"
3731          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733
3734 int
3735 main ()
3736 {
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743   ac_cv_prog_cc_g=yes
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750    ac_c_werror_flag=$ac_save_c_werror_flag
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755   CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757   if test "$GCC" = yes; then
3758     CFLAGS="-g -O2"
3759   else
3760     CFLAGS="-g"
3761   fi
3762 else
3763   if test "$GCC" = yes; then
3764     CFLAGS="-O2"
3765   else
3766     CFLAGS=
3767   fi
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   ac_cv_prog_cc_c89=no
3775 ac_save_CC=$CC
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778 #include <stdarg.h>
3779 #include <stdio.h>
3780 #include <sys/types.h>
3781 #include <sys/stat.h>
3782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3783 struct buf { int x; };
3784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3785 static char *e (p, i)
3786      char **p;
3787      int i;
3788 {
3789   return p[i];
3790 }
3791 static char *f (char * (*g) (char **, int), char **p, ...)
3792 {
3793   char *s;
3794   va_list v;
3795   va_start (v,p);
3796   s = g (p, va_arg (v,int));
3797   va_end (v);
3798   return s;
3799 }
3800
3801 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3802    function prototypes and stuff, but not '\xHH' hex character constants.
3803    These don't provoke an error unfortunately, instead are silently treated
3804    as 'x'.  The following induces an error, until -std is added to get
3805    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3806    array size at least.  It's necessary to write '\x00'==0 to get something
3807    that's true only with -std.  */
3808 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3809
3810 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3811    inside strings and character constants.  */
3812 #define FOO(x) 'x'
3813 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3814
3815 int test (int i, double x);
3816 struct s1 {int (*f) (int a);};
3817 struct s2 {int (*f) (double a);};
3818 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3819 int argc;
3820 char **argv;
3821 int
3822 main ()
3823 {
3824 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3830         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3831 do
3832   CC="$ac_save_CC $ac_arg"
3833   if ac_fn_c_try_compile "$LINENO"; then :
3834   ac_cv_prog_cc_c89=$ac_arg
3835 fi
3836 rm -f core conftest.err conftest.$ac_objext
3837   test "x$ac_cv_prog_cc_c89" != "xno" && break
3838 done
3839 rm -f conftest.$ac_ext
3840 CC=$ac_save_CC
3841
3842 fi
3843 # AC_CACHE_VAL
3844 case "x$ac_cv_prog_cc_c89" in
3845   x)
3846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3847 $as_echo "none needed" >&6; } ;;
3848   xno)
3849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3850 $as_echo "unsupported" >&6; } ;;
3851   *)
3852     CC="$CC $ac_cv_prog_cc_c89"
3853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3854 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3855 esac
3856 if test "x$ac_cv_prog_cc_c89" != xno; then :
3857
3858 fi
3859
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3867 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3868 if test "${lt_cv_path_SED+set}" = set; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   # Loop through the user's path and test for sed and gsed.
3872 # Then use that list of sed's as ones to test for truncation.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876   IFS=$as_save_IFS
3877   test -z "$as_dir" && as_dir=.
3878   for lt_ac_prog in sed gsed; do
3879     for ac_exec_ext in '' $ac_executable_extensions; do
3880       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3881         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3882       fi
3883     done
3884   done
3885 done
3886 IFS=$as_save_IFS
3887 lt_ac_max=0
3888 lt_ac_count=0
3889 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3890 # along with /bin/sed that truncates output.
3891 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3892   test ! -f $lt_ac_sed && continue
3893   cat /dev/null > conftest.in
3894   lt_ac_count=0
3895   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3896   # Check for GNU sed and select it if it is found.
3897   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3898     lt_cv_path_SED=$lt_ac_sed
3899     break
3900   fi
3901   while true; do
3902     cat conftest.in conftest.in >conftest.tmp
3903     mv conftest.tmp conftest.in
3904     cp conftest.in conftest.nl
3905     echo >>conftest.nl
3906     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3907     cmp -s conftest.out conftest.nl || break
3908     # 10000 chars as input seems more than enough
3909     test $lt_ac_count -gt 10 && break
3910     lt_ac_count=`expr $lt_ac_count + 1`
3911     if test $lt_ac_count -gt $lt_ac_max; then
3912       lt_ac_max=$lt_ac_count
3913       lt_cv_path_SED=$lt_ac_sed
3914     fi
3915   done
3916 done
3917
3918 fi
3919
3920 SED=$lt_cv_path_SED
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3923 $as_echo "$SED" >&6; }
3924
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3927 if test "${ac_cv_path_GREP+set}" = set; then :
3928   $as_echo_n "(cached) " >&6
3929 else
3930   if test -z "$GREP"; then
3931   ac_path_GREP_found=false
3932   # Loop through the user's path and test for each of PROGNAME-LIST
3933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938     for ac_prog in grep ggrep; do
3939     for ac_exec_ext in '' $ac_executable_extensions; do
3940       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3941       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3942 # Check for GNU ac_path_GREP and select it if it is found.
3943   # Check for GNU $ac_path_GREP
3944 case `"$ac_path_GREP" --version 2>&1` in
3945 *GNU*)
3946   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3947 *)
3948   ac_count=0
3949   $as_echo_n 0123456789 >"conftest.in"
3950   while :
3951   do
3952     cat "conftest.in" "conftest.in" >"conftest.tmp"
3953     mv "conftest.tmp" "conftest.in"
3954     cp "conftest.in" "conftest.nl"
3955     $as_echo 'GREP' >> "conftest.nl"
3956     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958     as_fn_arith $ac_count + 1 && ac_count=$as_val
3959     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3960       # Best one so far, save it but keep looking for a better one
3961       ac_cv_path_GREP="$ac_path_GREP"
3962       ac_path_GREP_max=$ac_count
3963     fi
3964     # 10*(2^10) chars as input seems more than enough
3965     test $ac_count -gt 10 && break
3966   done
3967   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968 esac
3969
3970       $ac_path_GREP_found && break 3
3971     done
3972   done
3973   done
3974 IFS=$as_save_IFS
3975   if test -z "$ac_cv_path_GREP"; then
3976     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3977   fi
3978 else
3979   ac_cv_path_GREP=$GREP
3980 fi
3981
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3984 $as_echo "$ac_cv_path_GREP" >&6; }
3985  GREP="$ac_cv_path_GREP"
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3989 $as_echo_n "checking for egrep... " >&6; }
3990 if test "${ac_cv_path_EGREP+set}" = set; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994    then ac_cv_path_EGREP="$GREP -E"
3995    else
3996      if test -z "$EGREP"; then
3997   ac_path_EGREP_found=false
3998   # Loop through the user's path and test for each of PROGNAME-LIST
3999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004     for ac_prog in egrep; do
4005     for ac_exec_ext in '' $ac_executable_extensions; do
4006       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4007       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4008 # Check for GNU ac_path_EGREP and select it if it is found.
4009   # Check for GNU $ac_path_EGREP
4010 case `"$ac_path_EGREP" --version 2>&1` in
4011 *GNU*)
4012   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4013 *)
4014   ac_count=0
4015   $as_echo_n 0123456789 >"conftest.in"
4016   while :
4017   do
4018     cat "conftest.in" "conftest.in" >"conftest.tmp"
4019     mv "conftest.tmp" "conftest.in"
4020     cp "conftest.in" "conftest.nl"
4021     $as_echo 'EGREP' >> "conftest.nl"
4022     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024     as_fn_arith $ac_count + 1 && ac_count=$as_val
4025     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4026       # Best one so far, save it but keep looking for a better one
4027       ac_cv_path_EGREP="$ac_path_EGREP"
4028       ac_path_EGREP_max=$ac_count
4029     fi
4030     # 10*(2^10) chars as input seems more than enough
4031     test $ac_count -gt 10 && break
4032   done
4033   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034 esac
4035
4036       $ac_path_EGREP_found && break 3
4037     done
4038   done
4039   done
4040 IFS=$as_save_IFS
4041   if test -z "$ac_cv_path_EGREP"; then
4042     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4043   fi
4044 else
4045   ac_cv_path_EGREP=$EGREP
4046 fi
4047
4048    fi
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4051 $as_echo "$ac_cv_path_EGREP" >&6; }
4052  EGREP="$ac_cv_path_EGREP"
4053
4054
4055
4056 # Check whether --with-gnu-ld was given.
4057 if test "${with_gnu_ld+set}" = set; then :
4058   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4059 else
4060   with_gnu_ld=no
4061 fi
4062
4063 ac_prog=ld
4064 if test "$GCC" = yes; then
4065   # Check if gcc -print-prog-name=ld gives a path.
4066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4067 $as_echo_n "checking for ld used by $CC... " >&6; }
4068   case $host in
4069   *-*-mingw*)
4070     # gcc leaves a trailing carriage return which upsets mingw
4071     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4072   *)
4073     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4074   esac
4075   case $ac_prog in
4076     # Accept absolute paths.
4077     [\\/]* | ?:[\\/]*)
4078       re_direlt='/[^/][^/]*/\.\./'
4079       # Canonicalize the pathname of ld
4080       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4081       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4082         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4083       done
4084       test -z "$LD" && LD="$ac_prog"
4085       ;;
4086   "")
4087     # If it fails, then pretend we aren't using GCC.
4088     ac_prog=ld
4089     ;;
4090   *)
4091     # If it is relative, then search for the first ld in PATH.
4092     with_gnu_ld=unknown
4093     ;;
4094   esac
4095 elif test "$with_gnu_ld" = yes; then
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4097 $as_echo_n "checking for GNU ld... " >&6; }
4098 else
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4100 $as_echo_n "checking for non-GNU ld... " >&6; }
4101 fi
4102 if test "${lt_cv_path_LD+set}" = set; then :
4103   $as_echo_n "(cached) " >&6
4104 else
4105   if test -z "$LD"; then
4106   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4107   for ac_dir in $PATH; do
4108     IFS="$lt_save_ifs"
4109     test -z "$ac_dir" && ac_dir=.
4110     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4111       lt_cv_path_LD="$ac_dir/$ac_prog"
4112       # Check to see if the program is GNU ld.  I'd rather use --version,
4113       # but apparently some variants of GNU ld only accept -v.
4114       # Break only if it was the GNU/non-GNU ld that we prefer.
4115       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4116       *GNU* | *'with BFD'*)
4117         test "$with_gnu_ld" != no && break
4118         ;;
4119       *)
4120         test "$with_gnu_ld" != yes && break
4121         ;;
4122       esac
4123     fi
4124   done
4125   IFS="$lt_save_ifs"
4126 else
4127   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4128 fi
4129 fi
4130
4131 LD="$lt_cv_path_LD"
4132 if test -n "$LD"; then
4133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4134 $as_echo "$LD" >&6; }
4135 else
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4141 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4142 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4143   $as_echo_n "(cached) " >&6
4144 else
4145   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4146 case `$LD -v 2>&1 </dev/null` in
4147 *GNU* | *'with BFD'*)
4148   lt_cv_prog_gnu_ld=yes
4149   ;;
4150 *)
4151   lt_cv_prog_gnu_ld=no
4152   ;;
4153 esac
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4156 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4157 with_gnu_ld=$lt_cv_prog_gnu_ld
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4161 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4162 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   lt_cv_ld_reload_flag='-r'
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4168 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4169 reload_flag=$lt_cv_ld_reload_flag
4170 case $reload_flag in
4171 "" | " "*) ;;
4172 *) reload_flag=" $reload_flag" ;;
4173 esac
4174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175 case $host_os in
4176   darwin*)
4177     if test "$GCC" = yes; then
4178       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4179     else
4180       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4181     fi
4182     ;;
4183 esac
4184
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4186 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4187 if test "${lt_cv_path_NM+set}" = set; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -n "$NM"; then
4191   # Let the user override the test.
4192   lt_cv_path_NM="$NM"
4193 else
4194   lt_nm_to_check="${ac_tool_prefix}nm"
4195   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4196     lt_nm_to_check="$lt_nm_to_check nm"
4197   fi
4198   for lt_tmp_nm in $lt_nm_to_check; do
4199     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4200     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4201       IFS="$lt_save_ifs"
4202       test -z "$ac_dir" && ac_dir=.
4203       tmp_nm="$ac_dir/$lt_tmp_nm"
4204       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4205         # Check to see if the nm accepts a BSD-compat flag.
4206         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4207         #   nm: unknown option "B" ignored
4208         # Tru64's nm complains that /dev/null is an invalid object file
4209         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4210         */dev/null* | *'Invalid file or object type'*)
4211           lt_cv_path_NM="$tmp_nm -B"
4212           break
4213           ;;
4214         *)
4215           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4216           */dev/null*)
4217             lt_cv_path_NM="$tmp_nm -p"
4218             break
4219             ;;
4220           *)
4221             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4222             continue # so that we can try to find one that supports BSD flags
4223             ;;
4224           esac
4225           ;;
4226         esac
4227       fi
4228     done
4229     IFS="$lt_save_ifs"
4230   done
4231   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4232 fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4235 $as_echo "$lt_cv_path_NM" >&6; }
4236 NM="$lt_cv_path_NM"
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4239 $as_echo_n "checking whether ln -s works... " >&6; }
4240 LN_S=$as_ln_s
4241 if test "$LN_S" = "ln -s"; then
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243 $as_echo "yes" >&6; }
4244 else
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4246 $as_echo "no, using $LN_S" >&6; }
4247 fi
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4250 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4251 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   lt_cv_file_magic_cmd='$MAGIC_CMD'
4255 lt_cv_file_magic_test_file=
4256 lt_cv_deplibs_check_method='unknown'
4257 # Need to set the preceding variable on all platforms that support
4258 # interlibrary dependencies.
4259 # 'none' -- dependencies not supported.
4260 # `unknown' -- same as none, but documents that we really don't know.
4261 # 'pass_all' -- all dependencies passed with no checks.
4262 # 'test_compile' -- check by making test program.
4263 # 'file_magic [[regex]]' -- check by looking for files in library path
4264 # which responds to the $file_magic_cmd with a given extended regex.
4265 # If you have `file' or equivalent on your system and you're not sure
4266 # whether `pass_all' will *always* work, you probably want this one.
4267
4268 case $host_os in
4269 aix[4-9]*)
4270   lt_cv_deplibs_check_method=pass_all
4271   ;;
4272
4273 beos*)
4274   lt_cv_deplibs_check_method=pass_all
4275   ;;
4276
4277 bsdi[45]*)
4278   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4279   lt_cv_file_magic_cmd='/usr/bin/file -L'
4280   lt_cv_file_magic_test_file=/shlib/libc.so
4281   ;;
4282
4283 cygwin*)
4284   # func_win32_libid is a shell function defined in ltmain.sh
4285   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4286   lt_cv_file_magic_cmd='func_win32_libid'
4287   ;;
4288
4289 mingw* | pw32*)
4290   # Base MSYS/MinGW do not provide the 'file' command needed by
4291   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4292   # unless we find 'file', for example because we are cross-compiling.
4293   if ( file / ) >/dev/null 2>&1; then
4294     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4295     lt_cv_file_magic_cmd='func_win32_libid'
4296   else
4297     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4298     lt_cv_file_magic_cmd='$OBJDUMP -f'
4299   fi
4300   ;;
4301
4302 darwin* | rhapsody*)
4303   lt_cv_deplibs_check_method=pass_all
4304   ;;
4305
4306 freebsd* | dragonfly*)
4307   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4308     case $host_cpu in
4309     i*86 )
4310       # Not sure whether the presence of OpenBSD here was a mistake.
4311       # Let's accept both of them until this is cleared up.
4312       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4313       lt_cv_file_magic_cmd=/usr/bin/file
4314       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4315       ;;
4316     esac
4317   else
4318     lt_cv_deplibs_check_method=pass_all
4319   fi
4320   ;;
4321
4322 gnu*)
4323   lt_cv_deplibs_check_method=pass_all
4324   ;;
4325
4326 hpux10.20* | hpux11*)
4327   lt_cv_file_magic_cmd=/usr/bin/file
4328   case $host_cpu in
4329   ia64*)
4330     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4331     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4332     ;;
4333   hppa*64*)
4334     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4335     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4336     ;;
4337   *)
4338     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4339     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4340     ;;
4341   esac
4342   ;;
4343
4344 interix[3-9]*)
4345   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4346   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4347   ;;
4348
4349 irix5* | irix6* | nonstopux*)
4350   case $LD in
4351   *-32|*"-32 ") libmagic=32-bit;;
4352   *-n32|*"-n32 ") libmagic=N32;;
4353   *-64|*"-64 ") libmagic=64-bit;;
4354   *) libmagic=never-match;;
4355   esac
4356   lt_cv_deplibs_check_method=pass_all
4357   ;;
4358
4359 # This must be Linux ELF.
4360 linux* | k*bsd*-gnu)
4361   lt_cv_deplibs_check_method=pass_all
4362   ;;
4363
4364 netbsd*)
4365   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4366     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4367   else
4368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4369   fi
4370   ;;
4371
4372 newos6*)
4373   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4374   lt_cv_file_magic_cmd=/usr/bin/file
4375   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4376   ;;
4377
4378 nto-qnx*)
4379   lt_cv_deplibs_check_method=unknown
4380   ;;
4381
4382 openbsd*)
4383   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4384     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4385   else
4386     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4387   fi
4388   ;;
4389
4390 osf3* | osf4* | osf5*)
4391   lt_cv_deplibs_check_method=pass_all
4392   ;;
4393
4394 rdos*)
4395   lt_cv_deplibs_check_method=pass_all
4396   ;;
4397
4398 solaris*)
4399   lt_cv_deplibs_check_method=pass_all
4400   ;;
4401
4402 sysv4 | sysv4.3*)
4403   case $host_vendor in
4404   motorola)
4405     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]'
4406     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4407     ;;
4408   ncr)
4409     lt_cv_deplibs_check_method=pass_all
4410     ;;
4411   sequent)
4412     lt_cv_file_magic_cmd='/bin/file'
4413     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4414     ;;
4415   sni)
4416     lt_cv_file_magic_cmd='/bin/file'
4417     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4418     lt_cv_file_magic_test_file=/lib/libc.so
4419     ;;
4420   siemens)
4421     lt_cv_deplibs_check_method=pass_all
4422     ;;
4423   pc)
4424     lt_cv_deplibs_check_method=pass_all
4425     ;;
4426   esac
4427   ;;
4428
4429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4430   lt_cv_deplibs_check_method=pass_all
4431   ;;
4432 esac
4433
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4436 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4437 file_magic_cmd=$lt_cv_file_magic_cmd
4438 deplibs_check_method=$lt_cv_deplibs_check_method
4439 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4440
4441
4442
4443
4444 # If no C compiler was specified, use CC.
4445 LTCC=${LTCC-"$CC"}
4446
4447 # If no C compiler flags were specified, use CFLAGS.
4448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4449
4450 # Allow CC to be a program name with arguments.
4451 compiler=$CC
4452
4453
4454 # Check whether --enable-libtool-lock was given.
4455 if test "${enable_libtool_lock+set}" = set; then :
4456   enableval=$enable_libtool_lock;
4457 fi
4458
4459 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4460
4461 # Some flags need to be propagated to the compiler or linker for good
4462 # libtool support.
4463 case $host in
4464 ia64-*-hpux*)
4465   # Find out which ABI we are using.
4466   echo 'int i;' > conftest.$ac_ext
4467   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4468   (eval $ac_compile) 2>&5
4469   ac_status=$?
4470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471   test $ac_status = 0; }; then
4472     case `/usr/bin/file conftest.$ac_objext` in
4473     *ELF-32*)
4474       HPUX_IA64_MODE="32"
4475       ;;
4476     *ELF-64*)
4477       HPUX_IA64_MODE="64"
4478       ;;
4479     esac
4480   fi
4481   rm -rf conftest*
4482   ;;
4483 *-*-irix6*)
4484   # Find out which ABI we are using.
4485   echo '#line 4485 "configure"' > conftest.$ac_ext
4486   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4487   (eval $ac_compile) 2>&5
4488   ac_status=$?
4489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490   test $ac_status = 0; }; then
4491    if test "$lt_cv_prog_gnu_ld" = yes; then
4492     case `/usr/bin/file conftest.$ac_objext` in
4493     *32-bit*)
4494       LD="${LD-ld} -melf32bsmip"
4495       ;;
4496     *N32*)
4497       LD="${LD-ld} -melf32bmipn32"
4498       ;;
4499     *64-bit*)
4500       LD="${LD-ld} -melf64bmip"
4501       ;;
4502     esac
4503    else
4504     case `/usr/bin/file conftest.$ac_objext` in
4505     *32-bit*)
4506       LD="${LD-ld} -32"
4507       ;;
4508     *N32*)
4509       LD="${LD-ld} -n32"
4510       ;;
4511     *64-bit*)
4512       LD="${LD-ld} -64"
4513       ;;
4514     esac
4515    fi
4516   fi
4517   rm -rf conftest*
4518   ;;
4519
4520 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4521 s390*-*linux*|sparc*-*linux*)
4522   # Find out which ABI we are using.
4523   echo 'int i;' > conftest.$ac_ext
4524   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4525   (eval $ac_compile) 2>&5
4526   ac_status=$?
4527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528   test $ac_status = 0; }; then
4529     case `/usr/bin/file conftest.o` in
4530     *32-bit*)
4531       case $host in
4532         x86_64-*kfreebsd*-gnu)
4533           LD="${LD-ld} -m elf_i386_fbsd"
4534           ;;
4535         x86_64-*linux*)
4536           LD="${LD-ld} -m elf_i386"
4537           ;;
4538         ppc64-*linux*|powerpc64-*linux*)
4539           LD="${LD-ld} -m elf32ppclinux"
4540           ;;
4541         s390x-*linux*)
4542           LD="${LD-ld} -m elf_s390"
4543           ;;
4544         sparc64-*linux*)
4545           LD="${LD-ld} -m elf32_sparc"
4546           ;;
4547       esac
4548       ;;
4549     *64-bit*)
4550       case $host in
4551         x86_64-*kfreebsd*-gnu)
4552           LD="${LD-ld} -m elf_x86_64_fbsd"
4553           ;;
4554         x86_64-*linux*)
4555           LD="${LD-ld} -m elf_x86_64"
4556           ;;
4557         ppc*-*linux*|powerpc*-*linux*)
4558           LD="${LD-ld} -m elf64ppc"
4559           ;;
4560         s390*-*linux*)
4561           LD="${LD-ld} -m elf64_s390"
4562           ;;
4563         sparc*-*linux*)
4564           LD="${LD-ld} -m elf64_sparc"
4565           ;;
4566       esac
4567       ;;
4568     esac
4569   fi
4570   rm -rf conftest*
4571   ;;
4572
4573 *-*-sco3.2v5*)
4574   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4575   SAVE_CFLAGS="$CFLAGS"
4576   CFLAGS="$CFLAGS -belf"
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4578 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4579 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4580   $as_echo_n "(cached) " >&6
4581 else
4582   ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_link "$LINENO"; then :
4600   lt_cv_cc_needs_belf=yes
4601 else
4602   lt_cv_cc_needs_belf=no
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext \
4605     conftest$ac_exeext conftest.$ac_ext
4606      ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4614 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4615   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4616     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4617     CFLAGS="$SAVE_CFLAGS"
4618   fi
4619   ;;
4620 sparc*-*solaris*)
4621   # Find out which ABI we are using.
4622   echo 'int i;' > conftest.$ac_ext
4623   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4624   (eval $ac_compile) 2>&5
4625   ac_status=$?
4626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627   test $ac_status = 0; }; then
4628     case `/usr/bin/file conftest.o` in
4629     *64-bit*)
4630       case $lt_cv_prog_gnu_ld in
4631       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4632       *)
4633         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4634           LD="${LD-ld} -64"
4635         fi
4636         ;;
4637       esac
4638       ;;
4639     esac
4640   fi
4641   rm -rf conftest*
4642   ;;
4643
4644
4645 esac
4646
4647 need_locks="$enable_libtool_lock"
4648
4649
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4656 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4657 # On Suns, sometimes $CPP names a directory.
4658 if test -n "$CPP" && test -d "$CPP"; then
4659   CPP=
4660 fi
4661 if test -z "$CPP"; then
4662   if test "${ac_cv_prog_CPP+set}" = set; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665       # Double quotes because CPP needs to be expanded
4666     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4667     do
4668       ac_preproc_ok=false
4669 for ac_c_preproc_warn_flag in '' yes
4670 do
4671   # Use a header file that comes with gcc, so configuring glibc
4672   # with a fresh cross-compiler works.
4673   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674   # <limits.h> exists even on freestanding compilers.
4675   # On the NeXT, cc -E runs the code through the compiler's parser,
4676   # not just through cpp. "Syntax error" is here to catch this case.
4677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679 #ifdef __STDC__
4680 # include <limits.h>
4681 #else
4682 # include <assert.h>
4683 #endif
4684                      Syntax error
4685 _ACEOF
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4687
4688 else
4689   # Broken: fails on valid input.
4690 continue
4691 fi
4692 rm -f conftest.err conftest.i conftest.$ac_ext
4693
4694   # OK, works on sane cases.  Now check whether nonexistent headers
4695   # can be detected and how.
4696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698 #include <ac_nonexistent.h>
4699 _ACEOF
4700 if ac_fn_c_try_cpp "$LINENO"; then :
4701   # Broken: success on invalid input.
4702 continue
4703 else
4704   # Passes both tests.
4705 ac_preproc_ok=:
4706 break
4707 fi
4708 rm -f conftest.err conftest.i conftest.$ac_ext
4709
4710 done
4711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4712 rm -f conftest.i conftest.err conftest.$ac_ext
4713 if $ac_preproc_ok; then :
4714   break
4715 fi
4716
4717     done
4718     ac_cv_prog_CPP=$CPP
4719
4720 fi
4721   CPP=$ac_cv_prog_CPP
4722 else
4723   ac_cv_prog_CPP=$CPP
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4726 $as_echo "$CPP" >&6; }
4727 ac_preproc_ok=false
4728 for ac_c_preproc_warn_flag in '' yes
4729 do
4730   # Use a header file that comes with gcc, so configuring glibc
4731   # with a fresh cross-compiler works.
4732   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4733   # <limits.h> exists even on freestanding compilers.
4734   # On the NeXT, cc -E runs the code through the compiler's parser,
4735   # not just through cpp. "Syntax error" is here to catch this case.
4736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h.  */
4738 #ifdef __STDC__
4739 # include <limits.h>
4740 #else
4741 # include <assert.h>
4742 #endif
4743                      Syntax error
4744 _ACEOF
4745 if ac_fn_c_try_cpp "$LINENO"; then :
4746
4747 else
4748   # Broken: fails on valid input.
4749 continue
4750 fi
4751 rm -f conftest.err conftest.i conftest.$ac_ext
4752
4753   # OK, works on sane cases.  Now check whether nonexistent headers
4754   # can be detected and how.
4755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h.  */
4757 #include <ac_nonexistent.h>
4758 _ACEOF
4759 if ac_fn_c_try_cpp "$LINENO"; then :
4760   # Broken: success on invalid input.
4761 continue
4762 else
4763   # Passes both tests.
4764 ac_preproc_ok=:
4765 break
4766 fi
4767 rm -f conftest.err conftest.i conftest.$ac_ext
4768
4769 done
4770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4771 rm -f conftest.i conftest.err conftest.$ac_ext
4772 if $ac_preproc_ok; then :
4773
4774 else
4775   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4777 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4778 See \`config.log' for more details" "$LINENO" 5; }
4779 fi
4780
4781 ac_ext=c
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4789 $as_echo_n "checking for ANSI C header files... " >&6; }
4790 if test "${ac_cv_header_stdc+set}" = set; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795 #include <stdlib.h>
4796 #include <stdarg.h>
4797 #include <string.h>
4798 #include <float.h>
4799
4800 int
4801 main ()
4802 {
4803
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809   ac_cv_header_stdc=yes
4810 else
4811   ac_cv_header_stdc=no
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814
4815 if test $ac_cv_header_stdc = yes; then
4816   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h.  */
4819 #include <string.h>
4820
4821 _ACEOF
4822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4823   $EGREP "memchr" >/dev/null 2>&1; then :
4824
4825 else
4826   ac_cv_header_stdc=no
4827 fi
4828 rm -f conftest*
4829
4830 fi
4831
4832 if test $ac_cv_header_stdc = yes; then
4833   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h.  */
4836 #include <stdlib.h>
4837
4838 _ACEOF
4839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840   $EGREP "free" >/dev/null 2>&1; then :
4841
4842 else
4843   ac_cv_header_stdc=no
4844 fi
4845 rm -f conftest*
4846
4847 fi
4848
4849 if test $ac_cv_header_stdc = yes; then
4850   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4851   if test "$cross_compiling" = yes; then :
4852   :
4853 else
4854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856 #include <ctype.h>
4857 #include <stdlib.h>
4858 #if ((' ' & 0x0FF) == 0x020)
4859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4861 #else
4862 # define ISLOWER(c) \
4863                    (('a' <= (c) && (c) <= 'i') \
4864                      || ('j' <= (c) && (c) <= 'r') \
4865                      || ('s' <= (c) && (c) <= 'z'))
4866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4867 #endif
4868
4869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4870 int
4871 main ()
4872 {
4873   int i;
4874   for (i = 0; i < 256; i++)
4875     if (XOR (islower (i), ISLOWER (i))
4876         || toupper (i) != TOUPPER (i))
4877       return 2;
4878   return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_c_try_run "$LINENO"; then :
4882
4883 else
4884   ac_cv_header_stdc=no
4885 fi
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4887   conftest.$ac_objext conftest.beam conftest.$ac_ext
4888 fi
4889
4890 fi
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4893 $as_echo "$ac_cv_header_stdc" >&6; }
4894 if test $ac_cv_header_stdc = yes; then
4895
4896 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4897
4898 fi
4899
4900 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4901 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4902                   inttypes.h stdint.h unistd.h
4903 do :
4904   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4905 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4906 "
4907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4908   cat >>confdefs.h <<_ACEOF
4909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910 _ACEOF
4911
4912 fi
4913
4914 done
4915
4916
4917 for ac_header in dlfcn.h
4918 do :
4919   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4920 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4921   cat >>confdefs.h <<_ACEOF
4922 #define HAVE_DLFCN_H 1
4923 _ACEOF
4924
4925 fi
4926
4927 done
4928
4929 ac_ext=cpp
4930 ac_cpp='$CXXCPP $CPPFLAGS'
4931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4934 if test -z "$CXX"; then
4935   if test -n "$CCC"; then
4936     CXX=$CCC
4937   else
4938     if test -n "$ac_tool_prefix"; then
4939   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4940   do
4941     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_CXX+set}" = set; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -n "$CXX"; then
4949   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 CXX=$ac_cv_prog_CXX
4969 if test -n "$CXX"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4971 $as_echo "$CXX" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977
4978     test -n "$CXX" && break
4979   done
4980 fi
4981 if test -z "$CXX"; then
4982   ac_ct_CXX=$CXX
4983   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4984 do
4985   # Extract the first word of "$ac_prog", so it can be a program name with args.
4986 set dummy $ac_prog; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -n "$ac_ct_CXX"; then
4993   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000     for ac_exec_ext in '' $ac_executable_extensions; do
5001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002     ac_cv_prog_ac_ct_CXX="$ac_prog"
5003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007   done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5013 if test -n "$ac_ct_CXX"; then
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5015 $as_echo "$ac_ct_CXX" >&6; }
5016 else
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5019 fi
5020
5021
5022   test -n "$ac_ct_CXX" && break
5023 done
5024
5025   if test "x$ac_ct_CXX" = x; then
5026     CXX="g++"
5027   else
5028     case $cross_compiling:$ac_tool_warned in
5029 yes:)
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032 ac_tool_warned=yes ;;
5033 esac
5034     CXX=$ac_ct_CXX
5035   fi
5036 fi
5037
5038   fi
5039 fi
5040 # Provide some information about the compiler.
5041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5042 set X $ac_compile
5043 ac_compiler=$2
5044 for ac_option in --version -v -V -qversion; do
5045   { { ac_try="$ac_compiler $ac_option >&5"
5046 case "(($ac_try" in
5047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048   *) ac_try_echo=$ac_try;;
5049 esac
5050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5053   ac_status=$?
5054   if test -s conftest.err; then
5055     sed '10a\
5056 ... rest of stderr output deleted ...
5057          10q' conftest.err >conftest.er1
5058     cat conftest.er1 >&5
5059   fi
5060   rm -f conftest.er1 conftest.err
5061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5062   test $ac_status = 0; }
5063 done
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5066 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5067 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h.  */
5072
5073 int
5074 main ()
5075 {
5076 #ifndef __GNUC__
5077        choke me
5078 #endif
5079
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_cxx_try_compile "$LINENO"; then :
5085   ac_compiler_gnu=yes
5086 else
5087   ac_compiler_gnu=no
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5091
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5094 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5095 if test $ac_compiler_gnu = yes; then
5096   GXX=yes
5097 else
5098   GXX=
5099 fi
5100 ac_test_CXXFLAGS=${CXXFLAGS+set}
5101 ac_save_CXXFLAGS=$CXXFLAGS
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5103 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5104 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5108    ac_cxx_werror_flag=yes
5109    ac_cv_prog_cxx_g=no
5110    CXXFLAGS="-g"
5111    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h.  */
5113
5114 int
5115 main ()
5116 {
5117
5118   ;
5119   return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_cxx_try_compile "$LINENO"; then :
5123   ac_cv_prog_cxx_g=yes
5124 else
5125   CXXFLAGS=""
5126       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h.  */
5128
5129 int
5130 main ()
5131 {
5132
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 if ac_fn_cxx_try_compile "$LINENO"; then :
5138
5139 else
5140   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5141          CXXFLAGS="-g"
5142          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144
5145 int
5146 main ()
5147 {
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_cxx_try_compile "$LINENO"; then :
5154   ac_cv_prog_cxx_g=yes
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5162 fi
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5164 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5165 if test "$ac_test_CXXFLAGS" = set; then
5166   CXXFLAGS=$ac_save_CXXFLAGS
5167 elif test $ac_cv_prog_cxx_g = yes; then
5168   if test "$GXX" = yes; then
5169     CXXFLAGS="-g -O2"
5170   else
5171     CXXFLAGS="-g"
5172   fi
5173 else
5174   if test "$GXX" = yes; then
5175     CXXFLAGS="-O2"
5176   else
5177     CXXFLAGS=
5178   fi
5179 fi
5180 ac_ext=cpp
5181 ac_cpp='$CXXCPP $CPPFLAGS'
5182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5185
5186
5187
5188 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5189     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5190     (test "X$CXX" != "Xg++"))) ; then
5191   ac_ext=cpp
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5197 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5198 if test -z "$CXXCPP"; then
5199   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202       # Double quotes because CXXCPP needs to be expanded
5203     for CXXCPP in "$CXX -E" "/lib/cpp"
5204     do
5205       ac_preproc_ok=false
5206 for ac_cxx_preproc_warn_flag in '' yes
5207 do
5208   # Use a header file that comes with gcc, so configuring glibc
5209   # with a fresh cross-compiler works.
5210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211   # <limits.h> exists even on freestanding compilers.
5212   # On the NeXT, cc -E runs the code through the compiler's parser,
5213   # not just through cpp. "Syntax error" is here to catch this case.
5214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h.  */
5216 #ifdef __STDC__
5217 # include <limits.h>
5218 #else
5219 # include <assert.h>
5220 #endif
5221                      Syntax error
5222 _ACEOF
5223 if ac_fn_cxx_try_cpp "$LINENO"; then :
5224
5225 else
5226   # Broken: fails on valid input.
5227 continue
5228 fi
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5230
5231   # OK, works on sane cases.  Now check whether nonexistent headers
5232   # can be detected and how.
5233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h.  */
5235 #include <ac_nonexistent.h>
5236 _ACEOF
5237 if ac_fn_cxx_try_cpp "$LINENO"; then :
5238   # Broken: success on invalid input.
5239 continue
5240 else
5241   # Passes both tests.
5242 ac_preproc_ok=:
5243 break
5244 fi
5245 rm -f conftest.err conftest.i conftest.$ac_ext
5246
5247 done
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.i conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then :
5251   break
5252 fi
5253
5254     done
5255     ac_cv_prog_CXXCPP=$CXXCPP
5256
5257 fi
5258   CXXCPP=$ac_cv_prog_CXXCPP
5259 else
5260   ac_cv_prog_CXXCPP=$CXXCPP
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5263 $as_echo "$CXXCPP" >&6; }
5264 ac_preproc_ok=false
5265 for ac_cxx_preproc_warn_flag in '' yes
5266 do
5267   # Use a header file that comes with gcc, so configuring glibc
5268   # with a fresh cross-compiler works.
5269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270   # <limits.h> exists even on freestanding compilers.
5271   # On the NeXT, cc -E runs the code through the compiler's parser,
5272   # not just through cpp. "Syntax error" is here to catch this case.
5273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h.  */
5275 #ifdef __STDC__
5276 # include <limits.h>
5277 #else
5278 # include <assert.h>
5279 #endif
5280                      Syntax error
5281 _ACEOF
5282 if ac_fn_cxx_try_cpp "$LINENO"; then :
5283
5284 else
5285   # Broken: fails on valid input.
5286 continue
5287 fi
5288 rm -f conftest.err conftest.i conftest.$ac_ext
5289
5290   # OK, works on sane cases.  Now check whether nonexistent headers
5291   # can be detected and how.
5292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h.  */
5294 #include <ac_nonexistent.h>
5295 _ACEOF
5296 if ac_fn_cxx_try_cpp "$LINENO"; then :
5297   # Broken: success on invalid input.
5298 continue
5299 else
5300   # Passes both tests.
5301 ac_preproc_ok=:
5302 break
5303 fi
5304 rm -f conftest.err conftest.i conftest.$ac_ext
5305
5306 done
5307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308 rm -f conftest.i conftest.err conftest.$ac_ext
5309 if $ac_preproc_ok; then :
5310
5311 else
5312   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5314 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5315 See \`config.log' for more details" "$LINENO" 5; }
5316 fi
5317
5318 ac_ext=cpp
5319 ac_cpp='$CXXCPP $CPPFLAGS'
5320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5323
5324 fi
5325
5326
5327 ac_ext=f
5328 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5329 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5331 if test -n "$ac_tool_prefix"; then
5332   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5333   do
5334     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_F77+set}" = set; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   if test -n "$F77"; then
5342   ac_cv_prog_F77="$F77" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347   IFS=$as_save_IFS
5348   test -z "$as_dir" && as_dir=.
5349     for ac_exec_ext in '' $ac_executable_extensions; do
5350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353     break 2
5354   fi
5355 done
5356   done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 F77=$ac_cv_prog_F77
5362 if test -n "$F77"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5364 $as_echo "$F77" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371     test -n "$F77" && break
5372   done
5373 fi
5374 if test -z "$F77"; then
5375   ac_ct_F77=$F77
5376   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5377 do
5378   # Extract the first word of "$ac_prog", so it can be a program name with args.
5379 set dummy $ac_prog; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   if test -n "$ac_ct_F77"; then
5386   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395     ac_cv_prog_ac_ct_F77="$ac_prog"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5406 if test -n "$ac_ct_F77"; then
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5408 $as_echo "$ac_ct_F77" >&6; }
5409 else
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415   test -n "$ac_ct_F77" && break
5416 done
5417
5418   if test "x$ac_ct_F77" = x; then
5419     F77=""
5420   else
5421     case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427     F77=$ac_ct_F77
5428   fi
5429 fi
5430
5431
5432 # Provide some information about the compiler.
5433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5434 set X $ac_compile
5435 ac_compiler=$2
5436 for ac_option in --version -v -V -qversion; do
5437   { { ac_try="$ac_compiler $ac_option >&5"
5438 case "(($ac_try" in
5439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440   *) ac_try_echo=$ac_try;;
5441 esac
5442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5443 $as_echo "$ac_try_echo"; } >&5
5444   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5445   ac_status=$?
5446   if test -s conftest.err; then
5447     sed '10a\
5448 ... rest of stderr output deleted ...
5449          10q' conftest.err >conftest.er1
5450     cat conftest.er1 >&5
5451   fi
5452   rm -f conftest.er1 conftest.err
5453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5454   test $ac_status = 0; }
5455 done
5456 rm -f a.out
5457
5458 # If we don't use `.F' as extension, the preprocessor is not run on the
5459 # input file.  (Note that this only needs to work for GNU compilers.)
5460 ac_save_ext=$ac_ext
5461 ac_ext=F
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5463 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5464 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   cat > conftest.$ac_ext <<_ACEOF
5468       program main
5469 #ifndef __GNUC__
5470        choke me
5471 #endif
5472
5473       end
5474 _ACEOF
5475 if ac_fn_f77_try_compile "$LINENO"; then :
5476   ac_compiler_gnu=yes
5477 else
5478   ac_compiler_gnu=no
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5482
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5485 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5486 ac_ext=$ac_save_ext
5487 ac_test_FFLAGS=${FFLAGS+set}
5488 ac_save_FFLAGS=$FFLAGS
5489 FFLAGS=
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5491 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5492 if test "${ac_cv_prog_f77_g+set}" = set; then :
5493   $as_echo_n "(cached) " >&6
5494 else
5495   FFLAGS=-g
5496 cat > conftest.$ac_ext <<_ACEOF
5497       program main
5498
5499       end
5500 _ACEOF
5501 if ac_fn_f77_try_compile "$LINENO"; then :
5502   ac_cv_prog_f77_g=yes
5503 else
5504   ac_cv_prog_f77_g=no
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5510 $as_echo "$ac_cv_prog_f77_g" >&6; }
5511 if test "$ac_test_FFLAGS" = set; then
5512   FFLAGS=$ac_save_FFLAGS
5513 elif test $ac_cv_prog_f77_g = yes; then
5514   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5515     FFLAGS="-g -O2"
5516   else
5517     FFLAGS="-g"
5518   fi
5519 else
5520   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5521     FFLAGS="-O2"
5522   else
5523     FFLAGS=
5524   fi
5525 fi
5526
5527 if test $ac_compiler_gnu = yes; then
5528   G77=yes
5529 else
5530   G77=
5531 fi
5532 ac_ext=c
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537
5538
5539
5540 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5541 # find the maximum length of command line arguments
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5543 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5544 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547     i=0
5548   teststring="ABCD"
5549
5550   case $build_os in
5551   msdosdjgpp*)
5552     # On DJGPP, this test can blow up pretty badly due to problems in libc
5553     # (any single argument exceeding 2000 bytes causes a buffer overrun
5554     # during glob expansion).  Even if it were fixed, the result of this
5555     # check would be larger than it should be.
5556     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5557     ;;
5558
5559   gnu*)
5560     # Under GNU Hurd, this test is not required because there is
5561     # no limit to the length of command line arguments.
5562     # Libtool will interpret -1 as no limit whatsoever
5563     lt_cv_sys_max_cmd_len=-1;
5564     ;;
5565
5566   cygwin* | mingw*)
5567     # On Win9x/ME, this test blows up -- it succeeds, but takes
5568     # about 5 minutes as the teststring grows exponentially.
5569     # Worse, since 9x/ME are not pre-emptively multitasking,
5570     # you end up with a "frozen" computer, even though with patience
5571     # the test eventually succeeds (with a max line length of 256k).
5572     # Instead, let's just punt: use the minimum linelength reported by
5573     # all of the supported platforms: 8192 (on NT/2K/XP).
5574     lt_cv_sys_max_cmd_len=8192;
5575     ;;
5576
5577   amigaos*)
5578     # On AmigaOS with pdksh, this test takes hours, literally.
5579     # So we just punt and use a minimum line length of 8192.
5580     lt_cv_sys_max_cmd_len=8192;
5581     ;;
5582
5583   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5584     # This has been around since 386BSD, at least.  Likely further.
5585     if test -x /sbin/sysctl; then
5586       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5587     elif test -x /usr/sbin/sysctl; then
5588       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5589     else
5590       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5591     fi
5592     # And add a safety zone
5593     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5594     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5595     ;;
5596
5597   interix*)
5598     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5599     lt_cv_sys_max_cmd_len=196608
5600     ;;
5601
5602   osf*)
5603     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5604     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5605     # nice to cause kernel panics so lets avoid the loop below.
5606     # First set a reasonable default.
5607     lt_cv_sys_max_cmd_len=16384
5608     #
5609     if test -x /sbin/sysconfig; then
5610       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5611         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5612       esac
5613     fi
5614     ;;
5615   sco3.2v5*)
5616     lt_cv_sys_max_cmd_len=102400
5617     ;;
5618   sysv5* | sco5v6* | sysv4.2uw2*)
5619     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5620     if test -n "$kargmax"; then
5621       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5622     else
5623       lt_cv_sys_max_cmd_len=32768
5624     fi
5625     ;;
5626   *)
5627     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5628     if test -n "$lt_cv_sys_max_cmd_len"; then
5629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5630       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5631     else
5632       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5633       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5634                = "XX$teststring") >/dev/null 2>&1 &&
5635               new_result=`expr "X$teststring" : ".*" 2>&1` &&
5636               lt_cv_sys_max_cmd_len=$new_result &&
5637               test $i != 17 # 1/2 MB should be enough
5638       do
5639         i=`expr $i + 1`
5640         teststring=$teststring$teststring
5641       done
5642       teststring=
5643       # Add a significant safety factor because C++ compilers can tack on massive
5644       # amounts of additional arguments before passing them to the linker.
5645       # It appears as though 1/2 is a usable value.
5646       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5647     fi
5648     ;;
5649   esac
5650
5651 fi
5652
5653 if test -n $lt_cv_sys_max_cmd_len ; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5655 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5658 $as_echo "none" >&6; }
5659 fi
5660
5661
5662
5663
5664
5665 # Check for command to grab the raw symbol name followed by C symbol from nm.
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5667 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5668 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671
5672 # These are sane defaults that work on at least a few old systems.
5673 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5674
5675 # Character class describing NM global symbol codes.
5676 symcode='[BCDEGRST]'
5677
5678 # Regexp to match symbols that can be accessed directly from C.
5679 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5680
5681 # Transform an extracted symbol line into a proper C declaration
5682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5683
5684 # Transform an extracted symbol line into symbol name and symbol address
5685 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5686
5687 # Define system-specific variables.
5688 case $host_os in
5689 aix*)
5690   symcode='[BCDT]'
5691   ;;
5692 cygwin* | mingw* | pw32*)
5693   symcode='[ABCDGISTW]'
5694   ;;
5695 hpux*) # Its linker distinguishes data from code symbols
5696   if test "$host_cpu" = ia64; then
5697     symcode='[ABCDEGRST]'
5698   fi
5699   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5700   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5701   ;;
5702 linux* | k*bsd*-gnu)
5703   if test "$host_cpu" = ia64; then
5704     symcode='[ABCDGIRSTW]'
5705     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5706     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5707   fi
5708   ;;
5709 irix* | nonstopux*)
5710   symcode='[BCDEGRST]'
5711   ;;
5712 osf*)
5713   symcode='[BCDEGQRST]'
5714   ;;
5715 solaris*)
5716   symcode='[BDRT]'
5717   ;;
5718 sco3.2v5*)
5719   symcode='[DT]'
5720   ;;
5721 sysv4.2uw2*)
5722   symcode='[DT]'
5723   ;;
5724 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5725   symcode='[ABDT]'
5726   ;;
5727 sysv4)
5728   symcode='[DFNSTU]'
5729   ;;
5730 esac
5731
5732 # Handle CRLF in mingw tool chain
5733 opt_cr=
5734 case $build_os in
5735 mingw*)
5736   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5737   ;;
5738 esac
5739
5740 # If we're using GNU nm, then use its standard symbol codes.
5741 case `$NM -V 2>&1` in
5742 *GNU* | *'with BFD'*)
5743   symcode='[ABCDGIRSTW]' ;;
5744 esac
5745
5746 # Try without a prefix undercore, then with it.
5747 for ac_symprfx in "" "_"; do
5748
5749   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5750   symxfrm="\\1 $ac_symprfx\\2 \\2"
5751
5752   # Write the raw and C identifiers.
5753   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5754
5755   # Check to see that the pipe works correctly.
5756   pipe_works=no
5757
5758   rm -f conftest*
5759   cat > conftest.$ac_ext <<EOF
5760 #ifdef __cplusplus
5761 extern "C" {
5762 #endif
5763 char nm_test_var;
5764 void nm_test_func(){}
5765 #ifdef __cplusplus
5766 }
5767 #endif
5768 int main(){nm_test_var='a';nm_test_func();return(0);}
5769 EOF
5770
5771   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5772   (eval $ac_compile) 2>&5
5773   ac_status=$?
5774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775   test $ac_status = 0; }; then
5776     # Now try to grab the symbols.
5777     nlist=conftest.nm
5778     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5779   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5780   ac_status=$?
5781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782   test $ac_status = 0; } && test -s "$nlist"; then
5783       # Try sorting and uniquifying the output.
5784       if sort "$nlist" | uniq > "$nlist"T; then
5785         mv -f "$nlist"T "$nlist"
5786       else
5787         rm -f "$nlist"T
5788       fi
5789
5790       # Make sure that we snagged all the symbols we need.
5791       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5792         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5793           cat <<EOF > conftest.$ac_ext
5794 #ifdef __cplusplus
5795 extern "C" {
5796 #endif
5797
5798 EOF
5799           # Now generate the symbol file.
5800           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5801
5802           cat <<EOF >> conftest.$ac_ext
5803 #if defined (__STDC__) && __STDC__
5804 # define lt_ptr_t void *
5805 #else
5806 # define lt_ptr_t char *
5807 # define const
5808 #endif
5809
5810 /* The mapping between symbol names and symbols. */
5811 const struct {
5812   const char *name;
5813   lt_ptr_t address;
5814 }
5815 lt_preloaded_symbols[] =
5816 {
5817 EOF
5818           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5819           cat <<\EOF >> conftest.$ac_ext
5820   {0, (lt_ptr_t) 0}
5821 };
5822
5823 #ifdef __cplusplus
5824 }
5825 #endif
5826 EOF
5827           # Now try linking the two files.
5828           mv conftest.$ac_objext conftstm.$ac_objext
5829           lt_save_LIBS="$LIBS"
5830           lt_save_CFLAGS="$CFLAGS"
5831           LIBS="conftstm.$ac_objext"
5832           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5833           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5834   (eval $ac_link) 2>&5
5835   ac_status=$?
5836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5838             pipe_works=yes
5839           fi
5840           LIBS="$lt_save_LIBS"
5841           CFLAGS="$lt_save_CFLAGS"
5842         else
5843           echo "cannot find nm_test_func in $nlist" >&5
5844         fi
5845       else
5846         echo "cannot find nm_test_var in $nlist" >&5
5847       fi
5848     else
5849       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5850     fi
5851   else
5852     echo "$progname: failed program was:" >&5
5853     cat conftest.$ac_ext >&5
5854   fi
5855   rm -rf conftest* conftst*
5856
5857   # Do not use the global_symbol_pipe unless it works.
5858   if test "$pipe_works" = yes; then
5859     break
5860   else
5861     lt_cv_sys_global_symbol_pipe=
5862   fi
5863 done
5864
5865 fi
5866
5867 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5868   lt_cv_sys_global_symbol_to_cdecl=
5869 fi
5870 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5872 $as_echo "failed" >&6; }
5873 else
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5875 $as_echo "ok" >&6; }
5876 fi
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5879 $as_echo_n "checking for objdir... " >&6; }
5880 if test "${lt_cv_objdir+set}" = set; then :
5881   $as_echo_n "(cached) " >&6
5882 else
5883   rm -f .libs 2>/dev/null
5884 mkdir .libs 2>/dev/null
5885 if test -d .libs; then
5886   lt_cv_objdir=.libs
5887 else
5888   # MS-DOS does not allow filenames that begin with a dot.
5889   lt_cv_objdir=_libs
5890 fi
5891 rmdir .libs 2>/dev/null
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5894 $as_echo "$lt_cv_objdir" >&6; }
5895 objdir=$lt_cv_objdir
5896
5897
5898
5899
5900
5901 case $host_os in
5902 aix3*)
5903   # AIX sometimes has problems with the GCC collect2 program.  For some
5904   # reason, if we set the COLLECT_NAMES environment variable, the problems
5905   # vanish in a puff of smoke.
5906   if test "X${COLLECT_NAMES+set}" != Xset; then
5907     COLLECT_NAMES=
5908     export COLLECT_NAMES
5909   fi
5910   ;;
5911 esac
5912
5913 # Sed substitution that helps us do robust quoting.  It backslashifies
5914 # metacharacters that are still active within double-quoted strings.
5915 Xsed='sed -e 1s/^X//'
5916 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5917
5918 # Same as above, but do not quote variable references.
5919 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5920
5921 # Sed substitution to delay expansion of an escaped shell variable in a
5922 # double_quote_subst'ed string.
5923 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5924
5925 # Sed substitution to avoid accidental globbing in evaled expressions
5926 no_glob_subst='s/\*/\\\*/g'
5927
5928 # Constants:
5929 rm="rm -f"
5930
5931 # Global variables:
5932 default_ofile=libtool
5933 can_build_shared=yes
5934
5935 # All known linkers require a `.a' archive for static linking (except MSVC,
5936 # which needs '.lib').
5937 libext=a
5938 ltmain="$ac_aux_dir/ltmain.sh"
5939 ofile="$default_ofile"
5940 with_gnu_ld="$lt_cv_prog_gnu_ld"
5941
5942 if test -n "$ac_tool_prefix"; then
5943   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}ar; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_prog_AR+set}" = set; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   if test -n "$AR"; then
5951   ac_cv_prog_AR="$AR" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958     for ac_exec_ext in '' $ac_executable_extensions; do
5959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960     ac_cv_prog_AR="${ac_tool_prefix}ar"
5961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965   done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 AR=$ac_cv_prog_AR
5971 if test -n "$AR"; then
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5973 $as_echo "$AR" >&6; }
5974 else
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979
5980 fi
5981 if test -z "$ac_cv_prog_AR"; then
5982   ac_ct_AR=$AR
5983   # Extract the first word of "ar", so it can be a program name with args.
5984 set dummy ar; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if test -n "$ac_ct_AR"; then
5991   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000     ac_cv_prog_ac_ct_AR="ar"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6011 if test -n "$ac_ct_AR"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6013 $as_echo "$ac_ct_AR" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019   if test "x$ac_ct_AR" = x; then
6020     AR="false"
6021   else
6022     case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028     AR=$ac_ct_AR
6029   fi
6030 else
6031   AR="$ac_cv_prog_AR"
6032 fi
6033
6034 if test -n "$ac_tool_prefix"; then
6035   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   if test -n "$RANLIB"; then
6043   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050     for ac_exec_ext in '' $ac_executable_extensions; do
6051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057   done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 RANLIB=$ac_cv_prog_RANLIB
6063 if test -n "$RANLIB"; then
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6065 $as_echo "$RANLIB" >&6; }
6066 else
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070
6071
6072 fi
6073 if test -z "$ac_cv_prog_RANLIB"; then
6074   ac_ct_RANLIB=$RANLIB
6075   # Extract the first word of "ranlib", so it can be a program name with args.
6076 set dummy ranlib; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   if test -n "$ac_ct_RANLIB"; then
6083   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092     ac_cv_prog_ac_ct_RANLIB="ranlib"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6103 if test -n "$ac_ct_RANLIB"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6105 $as_echo "$ac_ct_RANLIB" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111   if test "x$ac_ct_RANLIB" = x; then
6112     RANLIB=":"
6113   else
6114     case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120     RANLIB=$ac_ct_RANLIB
6121   fi
6122 else
6123   RANLIB="$ac_cv_prog_RANLIB"
6124 fi
6125
6126 if test -n "$ac_tool_prefix"; then
6127   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}strip; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_STRIP+set}" = set; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   if test -n "$STRIP"; then
6135   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142     for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149   done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 STRIP=$ac_cv_prog_STRIP
6155 if test -n "$STRIP"; then
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6157 $as_echo "$STRIP" >&6; }
6158 else
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_STRIP"; then
6166   ac_ct_STRIP=$STRIP
6167   # Extract the first word of "strip", so it can be a program name with args.
6168 set dummy strip; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -n "$ac_ct_STRIP"; then
6175   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_ac_ct_STRIP="strip"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6195 if test -n "$ac_ct_STRIP"; then
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6197 $as_echo "$ac_ct_STRIP" >&6; }
6198 else
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203   if test "x$ac_ct_STRIP" = x; then
6204     STRIP=":"
6205   else
6206     case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212     STRIP=$ac_ct_STRIP
6213   fi
6214 else
6215   STRIP="$ac_cv_prog_STRIP"
6216 fi
6217
6218
6219 old_CC="$CC"
6220 old_CFLAGS="$CFLAGS"
6221
6222 # Set sane defaults for various variables
6223 test -z "$AR" && AR=ar
6224 test -z "$AR_FLAGS" && AR_FLAGS=cru
6225 test -z "$AS" && AS=as
6226 test -z "$CC" && CC=cc
6227 test -z "$LTCC" && LTCC=$CC
6228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6229 test -z "$DLLTOOL" && DLLTOOL=dlltool
6230 test -z "$LD" && LD=ld
6231 test -z "$LN_S" && LN_S="ln -s"
6232 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6233 test -z "$NM" && NM=nm
6234 test -z "$SED" && SED=sed
6235 test -z "$OBJDUMP" && OBJDUMP=objdump
6236 test -z "$RANLIB" && RANLIB=:
6237 test -z "$STRIP" && STRIP=:
6238 test -z "$ac_objext" && ac_objext=o
6239
6240 # Determine commands to create old-style static archives.
6241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6242 old_postinstall_cmds='chmod 644 $oldlib'
6243 old_postuninstall_cmds=
6244
6245 if test -n "$RANLIB"; then
6246   case $host_os in
6247   openbsd*)
6248     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6249     ;;
6250   *)
6251     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6252     ;;
6253   esac
6254   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6255 fi
6256
6257 for cc_temp in $compiler""; do
6258   case $cc_temp in
6259     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6260     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6261     \-*) ;;
6262     *) break;;
6263   esac
6264 done
6265 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6266
6267
6268 # Only perform the check for file, if the check method requires it
6269 case $deplibs_check_method in
6270 file_magic*)
6271   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6273 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6274 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   case $MAGIC_CMD in
6278 [\\/*] |  ?:[\\/]*)
6279   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6280   ;;
6281 *)
6282   lt_save_MAGIC_CMD="$MAGIC_CMD"
6283   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6284   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6285   for ac_dir in $ac_dummy; do
6286     IFS="$lt_save_ifs"
6287     test -z "$ac_dir" && ac_dir=.
6288     if test -f $ac_dir/${ac_tool_prefix}file; then
6289       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6290       if test -n "$file_magic_test_file"; then
6291         case $deplibs_check_method in
6292         "file_magic "*)
6293           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6294           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6295           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6296             $EGREP "$file_magic_regex" > /dev/null; then
6297             :
6298           else
6299             cat <<EOF 1>&2
6300
6301 *** Warning: the command libtool uses to detect shared libraries,
6302 *** $file_magic_cmd, produces output that libtool cannot recognize.
6303 *** The result is that libtool may fail to recognize shared libraries
6304 *** as such.  This will affect the creation of libtool libraries that
6305 *** depend on shared libraries, but programs linked with such libtool
6306 *** libraries will work regardless of this problem.  Nevertheless, you
6307 *** may want to report the problem to your system manager and/or to
6308 *** bug-libtool@gnu.org
6309
6310 EOF
6311           fi ;;
6312         esac
6313       fi
6314       break
6315     fi
6316   done
6317   IFS="$lt_save_ifs"
6318   MAGIC_CMD="$lt_save_MAGIC_CMD"
6319   ;;
6320 esac
6321 fi
6322
6323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6324 if test -n "$MAGIC_CMD"; then
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6326 $as_echo "$MAGIC_CMD" >&6; }
6327 else
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332 if test -z "$lt_cv_path_MAGIC_CMD"; then
6333   if test -n "$ac_tool_prefix"; then
6334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6335 $as_echo_n "checking for file... " >&6; }
6336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339   case $MAGIC_CMD in
6340 [\\/*] |  ?:[\\/]*)
6341   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6342   ;;
6343 *)
6344   lt_save_MAGIC_CMD="$MAGIC_CMD"
6345   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6346   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6347   for ac_dir in $ac_dummy; do
6348     IFS="$lt_save_ifs"
6349     test -z "$ac_dir" && ac_dir=.
6350     if test -f $ac_dir/file; then
6351       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6352       if test -n "$file_magic_test_file"; then
6353         case $deplibs_check_method in
6354         "file_magic "*)
6355           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6356           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6357           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6358             $EGREP "$file_magic_regex" > /dev/null; then
6359             :
6360           else
6361             cat <<EOF 1>&2
6362
6363 *** Warning: the command libtool uses to detect shared libraries,
6364 *** $file_magic_cmd, produces output that libtool cannot recognize.
6365 *** The result is that libtool may fail to recognize shared libraries
6366 *** as such.  This will affect the creation of libtool libraries that
6367 *** depend on shared libraries, but programs linked with such libtool
6368 *** libraries will work regardless of this problem.  Nevertheless, you
6369 *** may want to report the problem to your system manager and/or to
6370 *** bug-libtool@gnu.org
6371
6372 EOF
6373           fi ;;
6374         esac
6375       fi
6376       break
6377     fi
6378   done
6379   IFS="$lt_save_ifs"
6380   MAGIC_CMD="$lt_save_MAGIC_CMD"
6381   ;;
6382 esac
6383 fi
6384
6385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6386 if test -n "$MAGIC_CMD"; then
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6388 $as_echo "$MAGIC_CMD" >&6; }
6389 else
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394   else
6395     MAGIC_CMD=:
6396   fi
6397 fi
6398
6399   fi
6400   ;;
6401 esac
6402
6403
6404   case $host_os in
6405     rhapsody* | darwin*)
6406     if test -n "$ac_tool_prefix"; then
6407   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6412   $as_echo_n "(cached) " >&6
6413 else
6414   if test -n "$DSYMUTIL"; then
6415   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422     for ac_exec_ext in '' $ac_executable_extensions; do
6423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429   done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6435 if test -n "$DSYMUTIL"; then
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6437 $as_echo "$DSYMUTIL" >&6; }
6438 else
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6441 fi
6442
6443
6444 fi
6445 if test -z "$ac_cv_prog_DSYMUTIL"; then
6446   ac_ct_DSYMUTIL=$DSYMUTIL
6447   # Extract the first word of "dsymutil", so it can be a program name with args.
6448 set dummy dsymutil; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   if test -n "$ac_ct_DSYMUTIL"; then
6455   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462     for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469   done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6475 if test -n "$ac_ct_DSYMUTIL"; then
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6477 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6478 else
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483   if test "x$ac_ct_DSYMUTIL" = x; then
6484     DSYMUTIL=":"
6485   else
6486     case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492     DSYMUTIL=$ac_ct_DSYMUTIL
6493   fi
6494 else
6495   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6496 fi
6497
6498     if test -n "$ac_tool_prefix"; then
6499   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$NMEDIT"; then
6507   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 NMEDIT=$ac_cv_prog_NMEDIT
6527 if test -n "$NMEDIT"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6529 $as_echo "$NMEDIT" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535
6536 fi
6537 if test -z "$ac_cv_prog_NMEDIT"; then
6538   ac_ct_NMEDIT=$NMEDIT
6539   # Extract the first word of "nmedit", so it can be a program name with args.
6540 set dummy nmedit; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   if test -n "$ac_ct_NMEDIT"; then
6547   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554     for ac_exec_ext in '' $ac_executable_extensions; do
6555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561   done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6567 if test -n "$ac_ct_NMEDIT"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6569 $as_echo "$ac_ct_NMEDIT" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575   if test "x$ac_ct_NMEDIT" = x; then
6576     NMEDIT=":"
6577   else
6578     case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584     NMEDIT=$ac_ct_NMEDIT
6585   fi
6586 else
6587   NMEDIT="$ac_cv_prog_NMEDIT"
6588 fi
6589
6590
6591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6592 $as_echo_n "checking for -single_module linker flag... " >&6; }
6593 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596   lt_cv_apple_cc_single_mod=no
6597       if test -z "${LT_MULTI_MODULE}"; then
6598    # By default we will add the -single_module flag. You can override
6599    # by either setting the environment variable LT_MULTI_MODULE
6600    # non-empty at configure time, or by adding -multi_module to the
6601    # link flags.
6602    echo "int foo(void){return 1;}" > conftest.c
6603    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6604      -dynamiclib ${wl}-single_module conftest.c
6605    if test -f libconftest.dylib; then
6606      lt_cv_apple_cc_single_mod=yes
6607      rm -rf libconftest.dylib*
6608    fi
6609    rm conftest.c
6610       fi
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6613 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6615 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6616 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   lt_cv_ld_exported_symbols_list=no
6620       save_LDFLAGS=$LDFLAGS
6621       echo "_main" > conftest.sym
6622       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6623       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h.  */
6625
6626 int
6627 main ()
6628 {
6629
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_c_try_link "$LINENO"; then :
6635   lt_cv_ld_exported_symbols_list=yes
6636 else
6637   lt_cv_ld_exported_symbols_list=no
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext \
6640     conftest$ac_exeext conftest.$ac_ext
6641    LDFLAGS="$save_LDFLAGS"
6642
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6645 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6646     case $host_os in
6647     rhapsody* | darwin1.[0123])
6648       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6649     darwin1.*)
6650      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6651     darwin*)
6652       # if running on 10.5 or later, the deployment target defaults
6653       # to the OS version, if on x86, and 10.4, the deployment
6654       # target defaults to 10.4. Don't you love it?
6655       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6656    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6657      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6658    10.[012]*)
6659      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6660    10.*)
6661      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6662       esac
6663     ;;
6664   esac
6665     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6666       _lt_dar_single_mod='$single_module'
6667     fi
6668     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6669       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6670     else
6671       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6672     fi
6673     if test "$DSYMUTIL" != ":"; then
6674       _lt_dsymutil="~$DSYMUTIL \$lib || :"
6675     else
6676       _lt_dsymutil=
6677     fi
6678     ;;
6679   esac
6680
6681
6682 enable_dlopen=no
6683 enable_win32_dll=no
6684
6685 # Check whether --enable-libtool-lock was given.
6686 if test "${enable_libtool_lock+set}" = set; then :
6687   enableval=$enable_libtool_lock;
6688 fi
6689
6690 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6691
6692
6693 # Check whether --with-pic was given.
6694 if test "${with_pic+set}" = set; then :
6695   withval=$with_pic; pic_mode="$withval"
6696 else
6697   pic_mode=default
6698 fi
6699
6700 test -z "$pic_mode" && pic_mode=default
6701
6702 # Use C for the default configuration in the libtool script
6703 tagname=
6704 lt_save_CC="$CC"
6705 ac_ext=c
6706 ac_cpp='$CPP $CPPFLAGS'
6707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710
6711
6712 # Source file extension for C test sources.
6713 ac_ext=c
6714
6715 # Object file extension for compiled C test sources.
6716 objext=o
6717 objext=$objext
6718
6719 # Code to be used in simple compile tests
6720 lt_simple_compile_test_code="int some_variable = 0;"
6721
6722 # Code to be used in simple link tests
6723 lt_simple_link_test_code='int main(){return(0);}'
6724
6725
6726 # If no C compiler was specified, use CC.
6727 LTCC=${LTCC-"$CC"}
6728
6729 # If no C compiler flags were specified, use CFLAGS.
6730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6731
6732 # Allow CC to be a program name with arguments.
6733 compiler=$CC
6734
6735
6736 # save warnings/boilerplate of simple test code
6737 ac_outfile=conftest.$ac_objext
6738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6740 _lt_compiler_boilerplate=`cat conftest.err`
6741 $rm conftest*
6742
6743 ac_outfile=conftest.$ac_objext
6744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6746 _lt_linker_boilerplate=`cat conftest.err`
6747 $rm -r conftest*
6748
6749
6750 ## CAVEAT EMPTOR:
6751 ## There is no encapsulation within the following macros, do not change
6752 ## the running order or otherwise move them around unless you know exactly
6753 ## what you are doing...
6754
6755 lt_prog_compiler_no_builtin_flag=
6756
6757 if test "$GCC" = yes; then
6758   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6759
6760
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6762 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6763 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   lt_cv_prog_compiler_rtti_exceptions=no
6767   ac_outfile=conftest.$ac_objext
6768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6769    lt_compiler_flag="-fno-rtti -fno-exceptions"
6770    # Insert the option either (1) after the last *FLAGS variable, or
6771    # (2) before a word containing "conftest.", or (3) at the end.
6772    # Note that $ac_compile itself does not contain backslashes and begins
6773    # with a dollar sign (not a hyphen), so the echo should work correctly.
6774    # The option is referenced via a variable to avoid confusing sed.
6775    lt_compile=`echo "$ac_compile" | $SED \
6776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6778    -e 's:$: $lt_compiler_flag:'`
6779    (eval echo "\"\$as_me:6779: $lt_compile\"" >&5)
6780    (eval "$lt_compile" 2>conftest.err)
6781    ac_status=$?
6782    cat conftest.err >&5
6783    echo "$as_me:6783: \$? = $ac_status" >&5
6784    if (exit $ac_status) && test -s "$ac_outfile"; then
6785      # The compiler can only warn and ignore the option if not recognized
6786      # So say no if there are warnings other than the usual output.
6787      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6788      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6789      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6790        lt_cv_prog_compiler_rtti_exceptions=yes
6791      fi
6792    fi
6793    $rm conftest*
6794
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6797 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6798
6799 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6800     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6801 else
6802     :
6803 fi
6804
6805 fi
6806
6807 lt_prog_compiler_wl=
6808 lt_prog_compiler_pic=
6809 lt_prog_compiler_static=
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6812 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6813
6814   if test "$GCC" = yes; then
6815     lt_prog_compiler_wl='-Wl,'
6816     lt_prog_compiler_static='-static'
6817
6818     case $host_os in
6819       aix*)
6820       # All AIX code is PIC.
6821       if test "$host_cpu" = ia64; then
6822         # AIX 5 now supports IA64 processor
6823         lt_prog_compiler_static='-Bstatic'
6824       fi
6825       ;;
6826
6827     amigaos*)
6828       # FIXME: we need at least 68020 code to build shared libraries, but
6829       # adding the `-m68020' flag to GCC prevents building anything better,
6830       # like `-m68040'.
6831       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6832       ;;
6833
6834     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6835       # PIC is the default for these OSes.
6836       ;;
6837
6838     mingw* | cygwin* | pw32* | os2*)
6839       # This hack is so that the source file can tell whether it is being
6840       # built for inclusion in a dll (and should export symbols for example).
6841       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6842       # (--disable-auto-import) libraries
6843       lt_prog_compiler_pic='-DDLL_EXPORT'
6844       ;;
6845
6846     darwin* | rhapsody*)
6847       # PIC is the default on this platform
6848       # Common symbols not allowed in MH_DYLIB files
6849       lt_prog_compiler_pic='-fno-common'
6850       ;;
6851
6852     interix[3-9]*)
6853       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6854       # Instead, we relocate shared libraries at runtime.
6855       ;;
6856
6857     msdosdjgpp*)
6858       # Just because we use GCC doesn't mean we suddenly get shared libraries
6859       # on systems that don't support them.
6860       lt_prog_compiler_can_build_shared=no
6861       enable_shared=no
6862       ;;
6863
6864     sysv4*MP*)
6865       if test -d /usr/nec; then
6866         lt_prog_compiler_pic=-Kconform_pic
6867       fi
6868       ;;
6869
6870     hpux*)
6871       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6872       # not for PA HP-UX.
6873       case $host_cpu in
6874       hppa*64*|ia64*)
6875         # +Z the default
6876         ;;
6877       *)
6878         lt_prog_compiler_pic='-fPIC'
6879         ;;
6880       esac
6881       ;;
6882
6883     *)
6884       lt_prog_compiler_pic='-fPIC'
6885       ;;
6886     esac
6887   else
6888     # PORTME Check for flag to pass linker flags through the system compiler.
6889     case $host_os in
6890     aix*)
6891       lt_prog_compiler_wl='-Wl,'
6892       if test "$host_cpu" = ia64; then
6893         # AIX 5 now supports IA64 processor
6894         lt_prog_compiler_static='-Bstatic'
6895       else
6896         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6897       fi
6898       ;;
6899       darwin*)
6900         # PIC is the default on this platform
6901         # Common symbols not allowed in MH_DYLIB files
6902        case $cc_basename in
6903          xlc*)
6904          lt_prog_compiler_pic='-qnocommon'
6905          lt_prog_compiler_wl='-Wl,'
6906          ;;
6907        esac
6908        ;;
6909
6910     mingw* | cygwin* | pw32* | os2*)
6911       # This hack is so that the source file can tell whether it is being
6912       # built for inclusion in a dll (and should export symbols for example).
6913       lt_prog_compiler_pic='-DDLL_EXPORT'
6914       ;;
6915
6916     hpux9* | hpux10* | hpux11*)
6917       lt_prog_compiler_wl='-Wl,'
6918       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6919       # not for PA HP-UX.
6920       case $host_cpu in
6921       hppa*64*|ia64*)
6922         # +Z the default
6923         ;;
6924       *)
6925         lt_prog_compiler_pic='+Z'
6926         ;;
6927       esac
6928       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6929       lt_prog_compiler_static='${wl}-a ${wl}archive'
6930       ;;
6931
6932     irix5* | irix6* | nonstopux*)
6933       lt_prog_compiler_wl='-Wl,'
6934       # PIC (with -KPIC) is the default.
6935       lt_prog_compiler_static='-non_shared'
6936       ;;
6937
6938     newsos6)
6939       lt_prog_compiler_pic='-KPIC'
6940       lt_prog_compiler_static='-Bstatic'
6941       ;;
6942
6943     linux* | k*bsd*-gnu)
6944       case $cc_basename in
6945       icc* | ecc*)
6946         lt_prog_compiler_wl='-Wl,'
6947         lt_prog_compiler_pic='-KPIC'
6948         lt_prog_compiler_static='-static'
6949         ;;
6950       pgcc* | pgf77* | pgf90* | pgf95*)
6951         # Portland Group compilers (*not* the Pentium gcc compiler,
6952         # which looks to be a dead project)
6953         lt_prog_compiler_wl='-Wl,'
6954         lt_prog_compiler_pic='-fpic'
6955         lt_prog_compiler_static='-Bstatic'
6956         ;;
6957       ccc*)
6958         lt_prog_compiler_wl='-Wl,'
6959         # All Alpha code is PIC.
6960         lt_prog_compiler_static='-non_shared'
6961         ;;
6962       *)
6963         case `$CC -V 2>&1 | sed 5q` in
6964         *Sun\ C*)
6965           # Sun C 5.9
6966           lt_prog_compiler_pic='-KPIC'
6967           lt_prog_compiler_static='-Bstatic'
6968           lt_prog_compiler_wl='-Wl,'
6969           ;;
6970         *Sun\ F*)
6971           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6972           lt_prog_compiler_pic='-KPIC'
6973           lt_prog_compiler_static='-Bstatic'
6974           lt_prog_compiler_wl=''
6975           ;;
6976         esac
6977         ;;
6978       esac
6979       ;;
6980
6981     osf3* | osf4* | osf5*)
6982       lt_prog_compiler_wl='-Wl,'
6983       # All OSF/1 code is PIC.
6984       lt_prog_compiler_static='-non_shared'
6985       ;;
6986
6987     rdos*)
6988       lt_prog_compiler_static='-non_shared'
6989       ;;
6990
6991     solaris*)
6992       lt_prog_compiler_pic='-KPIC'
6993       lt_prog_compiler_static='-Bstatic'
6994       case $cc_basename in
6995       f77* | f90* | f95*)
6996         lt_prog_compiler_wl='-Qoption ld ';;
6997       *)
6998         lt_prog_compiler_wl='-Wl,';;
6999       esac
7000       ;;
7001
7002     sunos4*)
7003       lt_prog_compiler_wl='-Qoption ld '
7004       lt_prog_compiler_pic='-PIC'
7005       lt_prog_compiler_static='-Bstatic'
7006       ;;
7007
7008     sysv4 | sysv4.2uw2* | sysv4.3*)
7009       lt_prog_compiler_wl='-Wl,'
7010       lt_prog_compiler_pic='-KPIC'
7011       lt_prog_compiler_static='-Bstatic'
7012       ;;
7013
7014     sysv4*MP*)
7015       if test -d /usr/nec ;then
7016         lt_prog_compiler_pic='-Kconform_pic'
7017         lt_prog_compiler_static='-Bstatic'
7018       fi
7019       ;;
7020
7021     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7022       lt_prog_compiler_wl='-Wl,'
7023       lt_prog_compiler_pic='-KPIC'
7024       lt_prog_compiler_static='-Bstatic'
7025       ;;
7026
7027     unicos*)
7028       lt_prog_compiler_wl='-Wl,'
7029       lt_prog_compiler_can_build_shared=no
7030       ;;
7031
7032     uts4*)
7033       lt_prog_compiler_pic='-pic'
7034       lt_prog_compiler_static='-Bstatic'
7035       ;;
7036
7037     *)
7038       lt_prog_compiler_can_build_shared=no
7039       ;;
7040     esac
7041   fi
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7044 $as_echo "$lt_prog_compiler_pic" >&6; }
7045
7046 #
7047 # Check to make sure the PIC flag actually works.
7048 #
7049 if test -n "$lt_prog_compiler_pic"; then
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7052 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7053 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   lt_cv_prog_compiler_pic_works=no
7057   ac_outfile=conftest.$ac_objext
7058    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7059    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7060    # Insert the option either (1) after the last *FLAGS variable, or
7061    # (2) before a word containing "conftest.", or (3) at the end.
7062    # Note that $ac_compile itself does not contain backslashes and begins
7063    # with a dollar sign (not a hyphen), so the echo should work correctly.
7064    # The option is referenced via a variable to avoid confusing sed.
7065    lt_compile=`echo "$ac_compile" | $SED \
7066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7068    -e 's:$: $lt_compiler_flag:'`
7069    (eval echo "\"\$as_me:7069: $lt_compile\"" >&5)
7070    (eval "$lt_compile" 2>conftest.err)
7071    ac_status=$?
7072    cat conftest.err >&5
7073    echo "$as_me:7073: \$? = $ac_status" >&5
7074    if (exit $ac_status) && test -s "$ac_outfile"; then
7075      # The compiler can only warn and ignore the option if not recognized
7076      # So say no if there are warnings other than the usual output.
7077      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7078      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7079      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7080        lt_cv_prog_compiler_pic_works=yes
7081      fi
7082    fi
7083    $rm conftest*
7084
7085 fi
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7087 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7088
7089 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7090     case $lt_prog_compiler_pic in
7091      "" | " "*) ;;
7092      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7093      esac
7094 else
7095     lt_prog_compiler_pic=
7096      lt_prog_compiler_can_build_shared=no
7097 fi
7098
7099 fi
7100 case $host_os in
7101   # For platforms which do not support PIC, -DPIC is meaningless:
7102   *djgpp*)
7103     lt_prog_compiler_pic=
7104     ;;
7105   *)
7106     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7107     ;;
7108 esac
7109
7110 #
7111 # Check to make sure the static flag actually works.
7112 #
7113 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7115 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7116 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   lt_cv_prog_compiler_static_works=no
7120    save_LDFLAGS="$LDFLAGS"
7121    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7122    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7123    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7124      # The linker can only warn and ignore the option if not recognized
7125      # So say no if there are warnings
7126      if test -s conftest.err; then
7127        # Append any errors to the config.log.
7128        cat conftest.err 1>&5
7129        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7130        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7131        if diff conftest.exp conftest.er2 >/dev/null; then
7132          lt_cv_prog_compiler_static_works=yes
7133        fi
7134      else
7135        lt_cv_prog_compiler_static_works=yes
7136      fi
7137    fi
7138    $rm -r conftest*
7139    LDFLAGS="$save_LDFLAGS"
7140
7141 fi
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7143 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7144
7145 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7146     :
7147 else
7148     lt_prog_compiler_static=
7149 fi
7150
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7154 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   lt_cv_prog_compiler_c_o=no
7158    $rm -r conftest 2>/dev/null
7159    mkdir conftest
7160    cd conftest
7161    mkdir out
7162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7163
7164    lt_compiler_flag="-o out/conftest2.$ac_objext"
7165    # Insert the option either (1) after the last *FLAGS variable, or
7166    # (2) before a word containing "conftest.", or (3) at the end.
7167    # Note that $ac_compile itself does not contain backslashes and begins
7168    # with a dollar sign (not a hyphen), so the echo should work correctly.
7169    lt_compile=`echo "$ac_compile" | $SED \
7170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172    -e 's:$: $lt_compiler_flag:'`
7173    (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
7174    (eval "$lt_compile" 2>out/conftest.err)
7175    ac_status=$?
7176    cat out/conftest.err >&5
7177    echo "$as_me:7177: \$? = $ac_status" >&5
7178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7179    then
7180      # The compiler can only warn and ignore the option if not recognized
7181      # So say no if there are warnings
7182      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7185        lt_cv_prog_compiler_c_o=yes
7186      fi
7187    fi
7188    chmod u+w . 2>&5
7189    $rm conftest*
7190    # SGI C++ compiler will create directory out/ii_files/ for
7191    # template instantiation
7192    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7193    $rm out/* && rmdir out
7194    cd ..
7195    rmdir conftest
7196    $rm conftest*
7197
7198 fi
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7201
7202
7203 hard_links="nottested"
7204 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7205   # do not overwrite the value of need_locks provided by the user
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7207 $as_echo_n "checking if we can lock with hard links... " >&6; }
7208   hard_links=yes
7209   $rm conftest*
7210   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7211   touch conftest.a
7212   ln conftest.a conftest.b 2>&5 || hard_links=no
7213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7215 $as_echo "$hard_links" >&6; }
7216   if test "$hard_links" = no; then
7217     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7218 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7219     need_locks=warn
7220   fi
7221 else
7222   need_locks=no
7223 fi
7224
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7227
7228   runpath_var=
7229   allow_undefined_flag=
7230   enable_shared_with_static_runtimes=no
7231   archive_cmds=
7232   archive_expsym_cmds=
7233   old_archive_From_new_cmds=
7234   old_archive_from_expsyms_cmds=
7235   export_dynamic_flag_spec=
7236   whole_archive_flag_spec=
7237   thread_safe_flag_spec=
7238   hardcode_libdir_flag_spec=
7239   hardcode_libdir_flag_spec_ld=
7240   hardcode_libdir_separator=
7241   hardcode_direct=no
7242   hardcode_minus_L=no
7243   hardcode_shlibpath_var=unsupported
7244   link_all_deplibs=unknown
7245   hardcode_automatic=no
7246   module_cmds=
7247   module_expsym_cmds=
7248   always_export_symbols=no
7249   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7250   # include_expsyms should be a list of space-separated symbols to be *always*
7251   # included in the symbol list
7252   include_expsyms=
7253   # exclude_expsyms can be an extended regexp of symbols to exclude
7254   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7255   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7256   # as well as any symbol that contains `d'.
7257   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7258   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7259   # platforms (ab)use it in PIC code, but their linkers get confused if
7260   # the symbol is explicitly referenced.  Since portable code cannot
7261   # rely on this symbol name, it's probably fine to never include it in
7262   # preloaded symbol tables.
7263   # Exclude shared library initialization/finalization symbols.
7264   extract_expsyms_cmds=
7265   # Just being paranoid about ensuring that cc_basename is set.
7266   for cc_temp in $compiler""; do
7267   case $cc_temp in
7268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7270     \-*) ;;
7271     *) break;;
7272   esac
7273 done
7274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7275
7276   case $host_os in
7277   cygwin* | mingw* | pw32*)
7278     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7279     # When not using gcc, we currently assume that we are using
7280     # Microsoft Visual C++.
7281     if test "$GCC" != yes; then
7282       with_gnu_ld=no
7283     fi
7284     ;;
7285   interix*)
7286     # we just hope/assume this is gcc and not c89 (= MSVC++)
7287     with_gnu_ld=yes
7288     ;;
7289   openbsd*)
7290     with_gnu_ld=no
7291     ;;
7292   esac
7293
7294   ld_shlibs=yes
7295   if test "$with_gnu_ld" = yes; then
7296     # If archive_cmds runs LD, not CC, wlarc should be empty
7297     wlarc='${wl}'
7298
7299     # Set some defaults for GNU ld with shared library support. These
7300     # are reset later if shared libraries are not supported. Putting them
7301     # here allows them to be overridden if necessary.
7302     runpath_var=LD_RUN_PATH
7303     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7304     export_dynamic_flag_spec='${wl}--export-dynamic'
7305     # ancient GNU ld didn't support --whole-archive et. al.
7306     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7307         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7308       else
7309         whole_archive_flag_spec=
7310     fi
7311     supports_anon_versioning=no
7312     case `$LD -v 2>/dev/null` in
7313       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7314       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7315       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7316       *\ 2.11.*) ;; # other 2.11 versions
7317       *) supports_anon_versioning=yes ;;
7318     esac
7319
7320     # See if GNU ld supports shared libraries.
7321     case $host_os in
7322     aix[3-9]*)
7323       # On AIX/PPC, the GNU linker is very broken
7324       if test "$host_cpu" != ia64; then
7325         ld_shlibs=no
7326         cat <<EOF 1>&2
7327
7328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7329 *** to be unable to reliably create shared libraries on AIX.
7330 *** Therefore, libtool is disabling shared libraries support.  If you
7331 *** really care for shared libraries, you may want to modify your PATH
7332 *** so that a non-GNU linker is found, and then restart.
7333
7334 EOF
7335       fi
7336       ;;
7337
7338     amigaos*)
7339       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)'
7340       hardcode_libdir_flag_spec='-L$libdir'
7341       hardcode_minus_L=yes
7342
7343       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7344       # that the semantics of dynamic libraries on AmigaOS, at least up
7345       # to version 4, is to share data among multiple programs linked
7346       # with the same dynamic library.  Since this doesn't match the
7347       # behavior of shared libraries on other platforms, we can't use
7348       # them.
7349       ld_shlibs=no
7350       ;;
7351
7352     beos*)
7353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7354         allow_undefined_flag=unsupported
7355         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7356         # support --undefined.  This deserves some investigation.  FIXME
7357         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7358       else
7359         ld_shlibs=no
7360       fi
7361       ;;
7362
7363     cygwin* | mingw* | pw32*)
7364       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7365       # as there is no search path for DLLs.
7366       hardcode_libdir_flag_spec='-L$libdir'
7367       allow_undefined_flag=unsupported
7368       always_export_symbols=no
7369       enable_shared_with_static_runtimes=yes
7370       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7371
7372       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7373         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7374         # If the export-symbols file already is a .def file (1st line
7375         # is EXPORTS), use it as is; otherwise, prepend...
7376         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7377           cp $export_symbols $output_objdir/$soname.def;
7378         else
7379           echo EXPORTS > $output_objdir/$soname.def;
7380           cat $export_symbols >> $output_objdir/$soname.def;
7381         fi~
7382         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7383       else
7384         ld_shlibs=no
7385       fi
7386       ;;
7387
7388     interix[3-9]*)
7389       hardcode_direct=no
7390       hardcode_shlibpath_var=no
7391       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7392       export_dynamic_flag_spec='${wl}-E'
7393       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7394       # Instead, shared libraries are loaded at an image base (0x10000000 by
7395       # default) and relocated if they conflict, which is a slow very memory
7396       # consuming and fragmenting process.  To avoid this, we pick a random,
7397       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7398       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7399       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7400       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'
7401       ;;
7402
7403     gnu* | linux* | k*bsd*-gnu)
7404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7405         tmp_addflag=
7406         case $cc_basename,$host_cpu in
7407         pgcc*)                          # Portland Group C compiler
7408           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7409           tmp_addflag=' $pic_flag'
7410           ;;
7411         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7412           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7413           tmp_addflag=' $pic_flag -Mnomain' ;;
7414         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7415           tmp_addflag=' -i_dynamic' ;;
7416         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7417           tmp_addflag=' -i_dynamic -nofor_main' ;;
7418         ifc* | ifort*)                  # Intel Fortran compiler
7419           tmp_addflag=' -nofor_main' ;;
7420         esac
7421         case `$CC -V 2>&1 | sed 5q` in
7422         *Sun\ C*)                       # Sun C 5.9
7423           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7424           tmp_sharedflag='-G' ;;
7425         *Sun\ F*)                       # Sun Fortran 8.3
7426           tmp_sharedflag='-G' ;;
7427         *)
7428           tmp_sharedflag='-shared' ;;
7429         esac
7430         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7431
7432         if test $supports_anon_versioning = yes; then
7433           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7434   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7435   $echo "local: *; };" >> $output_objdir/$libname.ver~
7436           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7437         fi
7438       else
7439         ld_shlibs=no
7440       fi
7441       ;;
7442
7443     netbsd*)
7444       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7445         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7446         wlarc=
7447       else
7448         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7449         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7450       fi
7451       ;;
7452
7453     solaris*)
7454       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7455         ld_shlibs=no
7456         cat <<EOF 1>&2
7457
7458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7459 *** create shared libraries on Solaris systems.  Therefore, libtool
7460 *** is disabling shared libraries support.  We urge you to upgrade GNU
7461 *** binutils to release 2.9.1 or newer.  Another option is to modify
7462 *** your PATH or compiler configuration so that the native linker is
7463 *** used, and then restart.
7464
7465 EOF
7466       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7467         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7469       else
7470         ld_shlibs=no
7471       fi
7472       ;;
7473
7474     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7475       case `$LD -v 2>&1` in
7476         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7477         ld_shlibs=no
7478         cat <<_LT_EOF 1>&2
7479
7480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7481 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7482 *** is disabling shared libraries support.  We urge you to upgrade GNU
7483 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7484 *** your PATH or compiler configuration so that the native linker is
7485 *** used, and then restart.
7486
7487 _LT_EOF
7488         ;;
7489         *)
7490           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7491             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7492             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7493             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7494           else
7495             ld_shlibs=no
7496           fi
7497         ;;
7498       esac
7499       ;;
7500
7501     sunos4*)
7502       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7503       wlarc=
7504       hardcode_direct=yes
7505       hardcode_shlibpath_var=no
7506       ;;
7507
7508     *)
7509       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7510         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7511         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7512       else
7513         ld_shlibs=no
7514       fi
7515       ;;
7516     esac
7517
7518     if test "$ld_shlibs" = no; then
7519       runpath_var=
7520       hardcode_libdir_flag_spec=
7521       export_dynamic_flag_spec=
7522       whole_archive_flag_spec=
7523     fi
7524   else
7525     # PORTME fill in a description of your system's linker (not GNU ld)
7526     case $host_os in
7527     aix3*)
7528       allow_undefined_flag=unsupported
7529       always_export_symbols=yes
7530       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'
7531       # Note: this linker hardcodes the directories in LIBPATH if there
7532       # are no directories specified by -L.
7533       hardcode_minus_L=yes
7534       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7535         # Neither direct hardcoding nor static linking is supported with a
7536         # broken collect2.
7537         hardcode_direct=unsupported
7538       fi
7539       ;;
7540
7541     aix[4-9]*)
7542       if test "$host_cpu" = ia64; then
7543         # On IA64, the linker does run time linking by default, so we don't
7544         # have to do anything special.
7545         aix_use_runtimelinking=no
7546         exp_sym_flag='-Bexport'
7547         no_entry_flag=""
7548       else
7549         # If we're using GNU nm, then we don't want the "-C" option.
7550         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7551         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7552           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7553         else
7554           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'
7555         fi
7556         aix_use_runtimelinking=no
7557
7558         # Test if we are trying to use run time linking or normal
7559         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7560         # need to do runtime linking.
7561         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7562           for ld_flag in $LDFLAGS; do
7563           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7564             aix_use_runtimelinking=yes
7565             break
7566           fi
7567           done
7568           ;;
7569         esac
7570
7571         exp_sym_flag='-bexport'
7572         no_entry_flag='-bnoentry'
7573       fi
7574
7575       # When large executables or shared objects are built, AIX ld can
7576       # have problems creating the table of contents.  If linking a library
7577       # or program results in "error TOC overflow" add -mminimal-toc to
7578       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7579       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7580
7581       archive_cmds=''
7582       hardcode_direct=yes
7583       hardcode_libdir_separator=':'
7584       link_all_deplibs=yes
7585
7586       if test "$GCC" = yes; then
7587         case $host_os in aix4.[012]|aix4.[012].*)
7588         # We only want to do this on AIX 4.2 and lower, the check
7589         # below for broken collect2 doesn't work under 4.3+
7590           collect2name=`${CC} -print-prog-name=collect2`
7591           if test -f "$collect2name" && \
7592            strings "$collect2name" | grep resolve_lib_name >/dev/null
7593           then
7594           # We have reworked collect2
7595           :
7596           else
7597           # We have old collect2
7598           hardcode_direct=unsupported
7599           # It fails to find uninstalled libraries when the uninstalled
7600           # path is not listed in the libpath.  Setting hardcode_minus_L
7601           # to unsupported forces relinking
7602           hardcode_minus_L=yes
7603           hardcode_libdir_flag_spec='-L$libdir'
7604           hardcode_libdir_separator=
7605           fi
7606           ;;
7607         esac
7608         shared_flag='-shared'
7609         if test "$aix_use_runtimelinking" = yes; then
7610           shared_flag="$shared_flag "'${wl}-G'
7611         fi
7612       else
7613         # not using gcc
7614         if test "$host_cpu" = ia64; then
7615         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7616         # chokes on -Wl,-G. The following line is correct:
7617           shared_flag='-G'
7618         else
7619           if test "$aix_use_runtimelinking" = yes; then
7620             shared_flag='${wl}-G'
7621           else
7622             shared_flag='${wl}-bM:SRE'
7623           fi
7624         fi
7625       fi
7626
7627       # It seems that -bexpall does not export symbols beginning with
7628       # underscore (_), so it is better to generate a list of symbols to export.
7629       always_export_symbols=yes
7630       if test "$aix_use_runtimelinking" = yes; then
7631         # Warning - without using the other runtime loading flags (-brtl),
7632         # -berok will link without error, but may produce a broken library.
7633         allow_undefined_flag='-berok'
7634        # Determine the default libpath from the value encoded in an empty executable.
7635        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637
7638 int
7639 main ()
7640 {
7641
7642   ;
7643   return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_link "$LINENO"; then :
7647
7648 lt_aix_libpath_sed='
7649     /Import File Strings/,/^$/ {
7650         /^0/ {
7651             s/^0  *\(.*\)$/\1/
7652             p
7653         }
7654     }'
7655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7656 # Check for a 64-bit object if we didn't find anything.
7657 if test -z "$aix_libpath"; then
7658   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7659 fi
7660 fi
7661 rm -f core conftest.err conftest.$ac_objext \
7662     conftest$ac_exeext conftest.$ac_ext
7663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7664
7665        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7666         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7667        else
7668         if test "$host_cpu" = ia64; then
7669           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7670           allow_undefined_flag="-z nodefs"
7671           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"
7672         else
7673          # Determine the default libpath from the value encoded in an empty executable.
7674          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h.  */
7676
7677 int
7678 main ()
7679 {
7680
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_link "$LINENO"; then :
7686
7687 lt_aix_libpath_sed='
7688     /Import File Strings/,/^$/ {
7689         /^0/ {
7690             s/^0  *\(.*\)$/\1/
7691             p
7692         }
7693     }'
7694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7695 # Check for a 64-bit object if we didn't find anything.
7696 if test -z "$aix_libpath"; then
7697   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7698 fi
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext \
7701     conftest$ac_exeext conftest.$ac_ext
7702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7703
7704          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7705           # Warning - without using the other run time loading flags,
7706           # -berok will link without error, but may produce a broken library.
7707           no_undefined_flag=' ${wl}-bernotok'
7708           allow_undefined_flag=' ${wl}-berok'
7709           # Exported symbols can be pulled into shared objects from archives
7710           whole_archive_flag_spec='$convenience'
7711           archive_cmds_need_lc=yes
7712           # This is similar to how AIX traditionally builds its shared libraries.
7713           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'
7714         fi
7715       fi
7716       ;;
7717
7718     amigaos*)
7719       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)'
7720       hardcode_libdir_flag_spec='-L$libdir'
7721       hardcode_minus_L=yes
7722       # see comment about different semantics on the GNU ld section
7723       ld_shlibs=no
7724       ;;
7725
7726     bsdi[45]*)
7727       export_dynamic_flag_spec=-rdynamic
7728       ;;
7729
7730     cygwin* | mingw* | pw32*)
7731       # When not using gcc, we currently assume that we are using
7732       # Microsoft Visual C++.
7733       # hardcode_libdir_flag_spec is actually meaningless, as there is
7734       # no search path for DLLs.
7735       hardcode_libdir_flag_spec=' '
7736       allow_undefined_flag=unsupported
7737       # Tell ltmain to make .lib files, not .a files.
7738       libext=lib
7739       # Tell ltmain to make .dll files, not .so files.
7740       shrext_cmds=".dll"
7741       # FIXME: Setting linknames here is a bad hack.
7742       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7743       # The linker will automatically build a .lib file if we build a DLL.
7744       old_archive_From_new_cmds='true'
7745       # FIXME: Should let the user specify the lib program.
7746       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7747       fix_srcfile_path='`cygpath -w "$srcfile"`'
7748       enable_shared_with_static_runtimes=yes
7749       ;;
7750
7751     darwin* | rhapsody*)
7752       case $host_os in
7753         rhapsody* | darwin1.[012])
7754          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7755          ;;
7756        *) # Darwin 1.3 on
7757          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7758            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7759          else
7760            case ${MACOSX_DEPLOYMENT_TARGET} in
7761              10.[012])
7762                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7763                ;;
7764              10.*)
7765                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7766                ;;
7767            esac
7768          fi
7769          ;;
7770       esac
7771       archive_cmds_need_lc=no
7772       hardcode_direct=no
7773       hardcode_automatic=yes
7774       hardcode_shlibpath_var=unsupported
7775       whole_archive_flag_spec=''
7776       link_all_deplibs=yes
7777     if test "$GCC" = yes ; then
7778         output_verbose_link_cmd='echo'
7779         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7780         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7781         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}"
7782         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}"
7783     else
7784       case $cc_basename in
7785         xlc*)
7786          output_verbose_link_cmd='echo'
7787          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7788          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7789           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7790          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7791           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7792           ;;
7793        *)
7794          ld_shlibs=no
7795           ;;
7796       esac
7797     fi
7798       ;;
7799
7800     dgux*)
7801       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7802       hardcode_libdir_flag_spec='-L$libdir'
7803       hardcode_shlibpath_var=no
7804       ;;
7805
7806     freebsd1*)
7807       ld_shlibs=no
7808       ;;
7809
7810     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7811     # support.  Future versions do this automatically, but an explicit c++rt0.o
7812     # does not break anything, and helps significantly (at the cost of a little
7813     # extra space).
7814     freebsd2.2*)
7815       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7816       hardcode_libdir_flag_spec='-R$libdir'
7817       hardcode_direct=yes
7818       hardcode_shlibpath_var=no
7819       ;;
7820
7821     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7822     freebsd2*)
7823       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7824       hardcode_direct=yes
7825       hardcode_minus_L=yes
7826       hardcode_shlibpath_var=no
7827       ;;
7828
7829     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7830     freebsd* | dragonfly*)
7831       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7832       hardcode_libdir_flag_spec='-R$libdir'
7833       hardcode_direct=yes
7834       hardcode_shlibpath_var=no
7835       ;;
7836
7837     hpux9*)
7838       if test "$GCC" = yes; then
7839         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'
7840       else
7841         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'
7842       fi
7843       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7844       hardcode_libdir_separator=:
7845       hardcode_direct=yes
7846
7847       # hardcode_minus_L: Not really in the search PATH,
7848       # but as the default location of the library.
7849       hardcode_minus_L=yes
7850       export_dynamic_flag_spec='${wl}-E'
7851       ;;
7852
7853     hpux10*)
7854       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7855         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7856       else
7857         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7858       fi
7859       if test "$with_gnu_ld" = no; then
7860         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7861         hardcode_libdir_separator=:
7862
7863         hardcode_direct=yes
7864         export_dynamic_flag_spec='${wl}-E'
7865
7866         # hardcode_minus_L: Not really in the search PATH,
7867         # but as the default location of the library.
7868         hardcode_minus_L=yes
7869       fi
7870       ;;
7871
7872     hpux11*)
7873       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7874         case $host_cpu in
7875         hppa*64*)
7876           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7877           ;;
7878         ia64*)
7879           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7880           ;;
7881         *)
7882           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7883           ;;
7884         esac
7885       else
7886         case $host_cpu in
7887         hppa*64*)
7888           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7889           ;;
7890         ia64*)
7891           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7892           ;;
7893         *)
7894           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7895           ;;
7896         esac
7897       fi
7898       if test "$with_gnu_ld" = no; then
7899         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7900         hardcode_libdir_separator=:
7901
7902         case $host_cpu in
7903         hppa*64*|ia64*)
7904           hardcode_libdir_flag_spec_ld='+b $libdir'
7905           hardcode_direct=no
7906           hardcode_shlibpath_var=no
7907           ;;
7908         *)
7909           hardcode_direct=yes
7910           export_dynamic_flag_spec='${wl}-E'
7911
7912           # hardcode_minus_L: Not really in the search PATH,
7913           # but as the default location of the library.
7914           hardcode_minus_L=yes
7915           ;;
7916         esac
7917       fi
7918       ;;
7919
7920     irix5* | irix6* | nonstopux*)
7921       if test "$GCC" = yes; then
7922         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7923       else
7924         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7925         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7926       fi
7927       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928       hardcode_libdir_separator=:
7929       link_all_deplibs=yes
7930       ;;
7931
7932     netbsd*)
7933       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7934         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7935       else
7936         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7937       fi
7938       hardcode_libdir_flag_spec='-R$libdir'
7939       hardcode_direct=yes
7940       hardcode_shlibpath_var=no
7941       ;;
7942
7943     newsos6)
7944       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7945       hardcode_direct=yes
7946       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7947       hardcode_libdir_separator=:
7948       hardcode_shlibpath_var=no
7949       ;;
7950
7951     openbsd*)
7952       if test -f /usr/libexec/ld.so; then
7953         hardcode_direct=yes
7954         hardcode_shlibpath_var=no
7955         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7956           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7957           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7958           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7959           export_dynamic_flag_spec='${wl}-E'
7960         else
7961           case $host_os in
7962            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7963              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7964              hardcode_libdir_flag_spec='-R$libdir'
7965              ;;
7966            *)
7967              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7968              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7969              ;;
7970           esac
7971         fi
7972       else
7973         ld_shlibs=no
7974       fi
7975       ;;
7976
7977     os2*)
7978       hardcode_libdir_flag_spec='-L$libdir'
7979       hardcode_minus_L=yes
7980       allow_undefined_flag=unsupported
7981       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'
7982       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7983       ;;
7984
7985     osf3*)
7986       if test "$GCC" = yes; then
7987         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7988         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7989       else
7990         allow_undefined_flag=' -expect_unresolved \*'
7991         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7992       fi
7993       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7994       hardcode_libdir_separator=:
7995       ;;
7996
7997     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7998       if test "$GCC" = yes; then
7999         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8000         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8001         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8002       else
8003         allow_undefined_flag=' -expect_unresolved \*'
8004         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8005         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8006         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8007
8008         # Both c and cxx compiler support -rpath directly
8009         hardcode_libdir_flag_spec='-rpath $libdir'
8010       fi
8011       hardcode_libdir_separator=:
8012       ;;
8013
8014     solaris*)
8015       no_undefined_flag=' -z text'
8016       if test "$GCC" = yes; then
8017         wlarc='${wl}'
8018         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8019         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8020           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8021       else
8022         wlarc=''
8023         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8024         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8025         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8026       fi
8027       hardcode_libdir_flag_spec='-R$libdir'
8028       hardcode_shlibpath_var=no
8029       case $host_os in
8030       solaris2.[0-5] | solaris2.[0-5].*) ;;
8031       *)
8032         # The compiler driver will combine and reorder linker options,
8033         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8034         # but is careful enough not to reorder.
8035         # Supported since Solaris 2.6 (maybe 2.5.1?)
8036         if test "$GCC" = yes; then
8037           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8038         else
8039           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8040         fi
8041         ;;
8042       esac
8043       link_all_deplibs=yes
8044       ;;
8045
8046     sunos4*)
8047       if test "x$host_vendor" = xsequent; then
8048         # Use $CC to link under sequent, because it throws in some extra .o
8049         # files that make .init and .fini sections work.
8050         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8051       else
8052         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8053       fi
8054       hardcode_libdir_flag_spec='-L$libdir'
8055       hardcode_direct=yes
8056       hardcode_minus_L=yes
8057       hardcode_shlibpath_var=no
8058       ;;
8059
8060     sysv4)
8061       case $host_vendor in
8062         sni)
8063           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8064           hardcode_direct=yes # is this really true???
8065         ;;
8066         siemens)
8067           ## LD is ld it makes a PLAMLIB
8068           ## CC just makes a GrossModule.
8069           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8070           reload_cmds='$CC -r -o $output$reload_objs'
8071           hardcode_direct=no
8072         ;;
8073         motorola)
8074           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8076         ;;
8077       esac
8078       runpath_var='LD_RUN_PATH'
8079       hardcode_shlibpath_var=no
8080       ;;
8081
8082     sysv4.3*)
8083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8084       hardcode_shlibpath_var=no
8085       export_dynamic_flag_spec='-Bexport'
8086       ;;
8087
8088     sysv4*MP*)
8089       if test -d /usr/nec; then
8090         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8091         hardcode_shlibpath_var=no
8092         runpath_var=LD_RUN_PATH
8093         hardcode_runpath_var=yes
8094         ld_shlibs=yes
8095       fi
8096       ;;
8097
8098     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8099       no_undefined_flag='${wl}-z,text'
8100       archive_cmds_need_lc=no
8101       hardcode_shlibpath_var=no
8102       runpath_var='LD_RUN_PATH'
8103
8104       if test "$GCC" = yes; then
8105         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8106         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8107       else
8108         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8109         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8110       fi
8111       ;;
8112
8113     sysv5* | sco3.2v5* | sco5v6*)
8114       # Note: We can NOT use -z defs as we might desire, because we do not
8115       # link with -lc, and that would cause any symbols used from libc to
8116       # always be unresolved, which means just about no library would
8117       # ever link correctly.  If we're not using GNU ld we use -z text
8118       # though, which does catch some bad symbols but isn't as heavy-handed
8119       # as -z defs.
8120       no_undefined_flag='${wl}-z,text'
8121       allow_undefined_flag='${wl}-z,nodefs'
8122       archive_cmds_need_lc=no
8123       hardcode_shlibpath_var=no
8124       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8125       hardcode_libdir_separator=':'
8126       link_all_deplibs=yes
8127       export_dynamic_flag_spec='${wl}-Bexport'
8128       runpath_var='LD_RUN_PATH'
8129
8130       if test "$GCC" = yes; then
8131         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8132         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8133       else
8134         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8135         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8136       fi
8137       ;;
8138
8139     uts4*)
8140       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141       hardcode_libdir_flag_spec='-L$libdir'
8142       hardcode_shlibpath_var=no
8143       ;;
8144
8145     *)
8146       ld_shlibs=no
8147       ;;
8148     esac
8149   fi
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8152 $as_echo "$ld_shlibs" >&6; }
8153 test "$ld_shlibs" = no && can_build_shared=no
8154
8155 #
8156 # Do we need to explicitly link libc?
8157 #
8158 case "x$archive_cmds_need_lc" in
8159 x|xyes)
8160   # Assume -lc should be added
8161   archive_cmds_need_lc=yes
8162
8163   if test "$enable_shared" = yes && test "$GCC" = yes; then
8164     case $archive_cmds in
8165     *'~'*)
8166       # FIXME: we may have to deal with multi-command sequences.
8167       ;;
8168     '$CC '*)
8169       # Test whether the compiler implicitly links with -lc since on some
8170       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8171       # to ld, don't add -lc before -lgcc.
8172       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8173 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8174       $rm conftest*
8175       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8176
8177       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8178   (eval $ac_compile) 2>&5
8179   ac_status=$?
8180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8181   test $ac_status = 0; } 2>conftest.err; then
8182         soname=conftest
8183         lib=conftest
8184         libobjs=conftest.$ac_objext
8185         deplibs=
8186         wl=$lt_prog_compiler_wl
8187         pic_flag=$lt_prog_compiler_pic
8188         compiler_flags=-v
8189         linker_flags=-v
8190         verstring=
8191         output_objdir=.
8192         libname=conftest
8193         lt_save_allow_undefined_flag=$allow_undefined_flag
8194         allow_undefined_flag=
8195         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8196   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8197   ac_status=$?
8198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8199   test $ac_status = 0; }
8200         then
8201           archive_cmds_need_lc=no
8202         else
8203           archive_cmds_need_lc=yes
8204         fi
8205         allow_undefined_flag=$lt_save_allow_undefined_flag
8206       else
8207         cat conftest.err 1>&5
8208       fi
8209       $rm conftest*
8210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8211 $as_echo "$archive_cmds_need_lc" >&6; }
8212       ;;
8213     esac
8214   fi
8215   ;;
8216 esac
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8219 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8220 library_names_spec=
8221 libname_spec='lib$name'
8222 soname_spec=
8223 shrext_cmds=".so"
8224 postinstall_cmds=
8225 postuninstall_cmds=
8226 finish_cmds=
8227 finish_eval=
8228 shlibpath_var=
8229 shlibpath_overrides_runpath=unknown
8230 version_type=none
8231 dynamic_linker="$host_os ld.so"
8232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8233
8234 if test "$GCC" = yes; then
8235   case $host_os in
8236     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8237     *) lt_awk_arg="/^libraries:/" ;;
8238   esac
8239   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8240   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8241     # if the path contains ";" then we assume it to be the separator
8242     # otherwise default to the standard path separator (i.e. ":") - it is
8243     # assumed that no part of a normal pathname contains ";" but that should
8244     # okay in the real world where ";" in dirpaths is itself problematic.
8245     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8246   else
8247     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8248   fi
8249   # Ok, now we have the path, separated by spaces, we can step through it
8250   # and add multilib dir if necessary.
8251   lt_tmp_lt_search_path_spec=
8252   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8253   for lt_sys_path in $lt_search_path_spec; do
8254     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8255       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8256     else
8257       test -d "$lt_sys_path" && \
8258         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8259     fi
8260   done
8261   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8262 BEGIN {RS=" "; FS="/|\n";} {
8263   lt_foo="";
8264   lt_count=0;
8265   for (lt_i = NF; lt_i > 0; lt_i--) {
8266     if ($lt_i != "" && $lt_i != ".") {
8267       if ($lt_i == "..") {
8268         lt_count++;
8269       } else {
8270         if (lt_count == 0) {
8271           lt_foo="/" $lt_i lt_foo;
8272         } else {
8273           lt_count--;
8274         }
8275       }
8276     }
8277   }
8278   if (lt_foo != "") { lt_freq[lt_foo]++; }
8279   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8280 }'`
8281   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8282 else
8283   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8284 fi
8285 need_lib_prefix=unknown
8286 hardcode_into_libs=no
8287
8288 # when you set need_version to no, make sure it does not cause -set_version
8289 # flags to be left without arguments
8290 need_version=unknown
8291
8292 case $host_os in
8293 aix3*)
8294   version_type=linux
8295   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8296   shlibpath_var=LIBPATH
8297
8298   # AIX 3 has no versioning support, so we append a major version to the name.
8299   soname_spec='${libname}${release}${shared_ext}$major'
8300   ;;
8301
8302 aix[4-9]*)
8303   version_type=linux
8304   need_lib_prefix=no
8305   need_version=no
8306   hardcode_into_libs=yes
8307   if test "$host_cpu" = ia64; then
8308     # AIX 5 supports IA64
8309     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8310     shlibpath_var=LD_LIBRARY_PATH
8311   else
8312     # With GCC up to 2.95.x, collect2 would create an import file
8313     # for dependence libraries.  The import file would start with
8314     # the line `#! .'.  This would cause the generated library to
8315     # depend on `.', always an invalid library.  This was fixed in
8316     # development snapshots of GCC prior to 3.0.
8317     case $host_os in
8318       aix4 | aix4.[01] | aix4.[01].*)
8319       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8320            echo ' yes '
8321            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8322         :
8323       else
8324         can_build_shared=no
8325       fi
8326       ;;
8327     esac
8328     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8329     # soname into executable. Probably we can add versioning support to
8330     # collect2, so additional links can be useful in future.
8331     if test "$aix_use_runtimelinking" = yes; then
8332       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8333       # instead of lib<name>.a to let people know that these are not
8334       # typical AIX shared libraries.
8335       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8336     else
8337       # We preserve .a as extension for shared libraries through AIX4.2
8338       # and later when we are not doing run time linking.
8339       library_names_spec='${libname}${release}.a $libname.a'
8340       soname_spec='${libname}${release}${shared_ext}$major'
8341     fi
8342     shlibpath_var=LIBPATH
8343   fi
8344   ;;
8345
8346 amigaos*)
8347   library_names_spec='$libname.ixlibrary $libname.a'
8348   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8349   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8350   ;;
8351
8352 beos*)
8353   library_names_spec='${libname}${shared_ext}'
8354   dynamic_linker="$host_os ld.so"
8355   shlibpath_var=LIBRARY_PATH
8356   ;;
8357
8358 bsdi[45]*)
8359   version_type=linux
8360   need_version=no
8361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362   soname_spec='${libname}${release}${shared_ext}$major'
8363   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8364   shlibpath_var=LD_LIBRARY_PATH
8365   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8366   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8367   # the default ld.so.conf also contains /usr/contrib/lib and
8368   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8369   # libtool to hard-code these into programs
8370   ;;
8371
8372 cygwin* | mingw* | pw32*)
8373   version_type=windows
8374   shrext_cmds=".dll"
8375   need_version=no
8376   need_lib_prefix=no
8377
8378   case $GCC,$host_os in
8379   yes,cygwin* | yes,mingw* | yes,pw32*)
8380     library_names_spec='$libname.dll.a'
8381     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8382     postinstall_cmds='base_file=`basename \${file}`~
8383       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8384       dldir=$destdir/`dirname \$dlpath`~
8385       test -d \$dldir || mkdir -p \$dldir~
8386       $install_prog $dir/$dlname \$dldir/$dlname~
8387       chmod a+x \$dldir/$dlname'
8388     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8389       dlpath=$dir/\$dldll~
8390        $rm \$dlpath'
8391     shlibpath_overrides_runpath=yes
8392
8393     case $host_os in
8394     cygwin*)
8395       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8396       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8397       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8398       ;;
8399     mingw*)
8400       # MinGW DLLs use traditional 'lib' prefix
8401       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8402       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8403       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8404         # It is most probably a Windows format PATH printed by
8405         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8406         # path with ; separators, and with drive letters. We can handle the
8407         # drive letters (cygwin fileutils understands them), so leave them,
8408         # especially as we might pass files found there to a mingw objdump,
8409         # which wouldn't understand a cygwinified path. Ahh.
8410         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8411       else
8412         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8413       fi
8414       ;;
8415     pw32*)
8416       # pw32 DLLs use 'pw' prefix rather than 'lib'
8417       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8418       ;;
8419     esac
8420     ;;
8421
8422   *)
8423     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8424     ;;
8425   esac
8426   dynamic_linker='Win32 ld.exe'
8427   # FIXME: first we should search . and the directory the executable is in
8428   shlibpath_var=PATH
8429   ;;
8430
8431 darwin* | rhapsody*)
8432   dynamic_linker="$host_os dyld"
8433   version_type=darwin
8434   need_lib_prefix=no
8435   need_version=no
8436   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8437   soname_spec='${libname}${release}${major}$shared_ext'
8438   shlibpath_overrides_runpath=yes
8439   shlibpath_var=DYLD_LIBRARY_PATH
8440   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8441
8442   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8443   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8444   ;;
8445
8446 dgux*)
8447   version_type=linux
8448   need_lib_prefix=no
8449   need_version=no
8450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8451   soname_spec='${libname}${release}${shared_ext}$major'
8452   shlibpath_var=LD_LIBRARY_PATH
8453   ;;
8454
8455 freebsd1*)
8456   dynamic_linker=no
8457   ;;
8458
8459 freebsd* | dragonfly*)
8460   # DragonFly does not have aout.  When/if they implement a new
8461   # versioning mechanism, adjust this.
8462   if test -x /usr/bin/objformat; then
8463     objformat=`/usr/bin/objformat`
8464   else
8465     case $host_os in
8466     freebsd[123]*) objformat=aout ;;
8467     *) objformat=elf ;;
8468     esac
8469   fi
8470   version_type=freebsd-$objformat
8471   case $version_type in
8472     freebsd-elf*)
8473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8474       need_version=no
8475       need_lib_prefix=no
8476       ;;
8477     freebsd-*)
8478       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8479       need_version=yes
8480       ;;
8481   esac
8482   shlibpath_var=LD_LIBRARY_PATH
8483   case $host_os in
8484   freebsd2*)
8485     shlibpath_overrides_runpath=yes
8486     ;;
8487   freebsd3.[01]* | freebsdelf3.[01]*)
8488     shlibpath_overrides_runpath=yes
8489     hardcode_into_libs=yes
8490     ;;
8491   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8492   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8493     shlibpath_overrides_runpath=no
8494     hardcode_into_libs=yes
8495     ;;
8496   *) # from 4.6 on, and DragonFly
8497     shlibpath_overrides_runpath=yes
8498     hardcode_into_libs=yes
8499     ;;
8500   esac
8501   ;;
8502
8503 gnu*)
8504   version_type=linux
8505   need_lib_prefix=no
8506   need_version=no
8507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8508   soname_spec='${libname}${release}${shared_ext}$major'
8509   shlibpath_var=LD_LIBRARY_PATH
8510   hardcode_into_libs=yes
8511   ;;
8512
8513 hpux9* | hpux10* | hpux11*)
8514   # Give a soname corresponding to the major version so that dld.sl refuses to
8515   # link against other versions.
8516   version_type=sunos
8517   need_lib_prefix=no
8518   need_version=no
8519   case $host_cpu in
8520   ia64*)
8521     shrext_cmds='.so'
8522     hardcode_into_libs=yes
8523     dynamic_linker="$host_os dld.so"
8524     shlibpath_var=LD_LIBRARY_PATH
8525     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527     soname_spec='${libname}${release}${shared_ext}$major'
8528     if test "X$HPUX_IA64_MODE" = X32; then
8529       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8530     else
8531       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8532     fi
8533     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8534     ;;
8535    hppa*64*)
8536      shrext_cmds='.sl'
8537      hardcode_into_libs=yes
8538      dynamic_linker="$host_os dld.sl"
8539      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8540      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542      soname_spec='${libname}${release}${shared_ext}$major'
8543      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8544      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8545      ;;
8546    *)
8547     shrext_cmds='.sl'
8548     dynamic_linker="$host_os dld.sl"
8549     shlibpath_var=SHLIB_PATH
8550     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552     soname_spec='${libname}${release}${shared_ext}$major'
8553     ;;
8554   esac
8555   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8556   postinstall_cmds='chmod 555 $lib'
8557   ;;
8558
8559 interix[3-9]*)
8560   version_type=linux
8561   need_lib_prefix=no
8562   need_version=no
8563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8564   soname_spec='${libname}${release}${shared_ext}$major'
8565   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8566   shlibpath_var=LD_LIBRARY_PATH
8567   shlibpath_overrides_runpath=no
8568   hardcode_into_libs=yes
8569   ;;
8570
8571 irix5* | irix6* | nonstopux*)
8572   case $host_os in
8573     nonstopux*) version_type=nonstopux ;;
8574     *)
8575         if test "$lt_cv_prog_gnu_ld" = yes; then
8576                 version_type=linux
8577         else
8578                 version_type=irix
8579         fi ;;
8580   esac
8581   need_lib_prefix=no
8582   need_version=no
8583   soname_spec='${libname}${release}${shared_ext}$major'
8584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8585   case $host_os in
8586   irix5* | nonstopux*)
8587     libsuff= shlibsuff=
8588     ;;
8589   *)
8590     case $LD in # libtool.m4 will add one of these switches to LD
8591     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8592       libsuff= shlibsuff= libmagic=32-bit;;
8593     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8594       libsuff=32 shlibsuff=N32 libmagic=N32;;
8595     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8596       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8597     *) libsuff= shlibsuff= libmagic=never-match;;
8598     esac
8599     ;;
8600   esac
8601   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8602   shlibpath_overrides_runpath=no
8603   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8604   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8605   hardcode_into_libs=yes
8606   ;;
8607
8608 # No shared lib support for Linux oldld, aout, or coff.
8609 linux*oldld* | linux*aout* | linux*coff*)
8610   dynamic_linker=no
8611   ;;
8612
8613 # This must be Linux ELF.
8614 linux* | k*bsd*-gnu)
8615   version_type=linux
8616   need_lib_prefix=no
8617   need_version=no
8618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619   soname_spec='${libname}${release}${shared_ext}$major'
8620   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8621   shlibpath_var=LD_LIBRARY_PATH
8622   shlibpath_overrides_runpath=no
8623   # This implies no fast_install, which is unacceptable.
8624   # Some rework will be needed to allow for fast_install
8625   # before this can be enabled.
8626   hardcode_into_libs=yes
8627
8628   # Append ld.so.conf contents to the search path
8629   if test -f /etc/ld.so.conf; then
8630     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;/^$/d' | tr '\n' ' '`
8631     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8632   fi
8633
8634   # We used to test for /lib/ld.so.1 and disable shared libraries on
8635   # powerpc, because MkLinux only supported shared libraries with the
8636   # GNU dynamic linker.  Since this was broken with cross compilers,
8637   # most powerpc-linux boxes support dynamic linking these days and
8638   # people can always --disable-shared, the test was removed, and we
8639   # assume the GNU/Linux dynamic linker is in use.
8640   dynamic_linker='GNU/Linux ld.so'
8641   ;;
8642
8643 netbsd*)
8644   version_type=sunos
8645   need_lib_prefix=no
8646   need_version=no
8647   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8649     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8650     dynamic_linker='NetBSD (a.out) ld.so'
8651   else
8652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8653     soname_spec='${libname}${release}${shared_ext}$major'
8654     dynamic_linker='NetBSD ld.elf_so'
8655   fi
8656   shlibpath_var=LD_LIBRARY_PATH
8657   shlibpath_overrides_runpath=yes
8658   hardcode_into_libs=yes
8659   ;;
8660
8661 newsos6)
8662   version_type=linux
8663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664   shlibpath_var=LD_LIBRARY_PATH
8665   shlibpath_overrides_runpath=yes
8666   ;;
8667
8668 nto-qnx*)
8669   version_type=linux
8670   need_lib_prefix=no
8671   need_version=no
8672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673   soname_spec='${libname}${release}${shared_ext}$major'
8674   shlibpath_var=LD_LIBRARY_PATH
8675   shlibpath_overrides_runpath=yes
8676   ;;
8677
8678 openbsd*)
8679   version_type=sunos
8680   sys_lib_dlsearch_path_spec="/usr/lib"
8681   need_lib_prefix=no
8682   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8683   case $host_os in
8684     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8685     *)                         need_version=no  ;;
8686   esac
8687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8688   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8689   shlibpath_var=LD_LIBRARY_PATH
8690   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8691     case $host_os in
8692       openbsd2.[89] | openbsd2.[89].*)
8693         shlibpath_overrides_runpath=no
8694         ;;
8695       *)
8696         shlibpath_overrides_runpath=yes
8697         ;;
8698       esac
8699   else
8700     shlibpath_overrides_runpath=yes
8701   fi
8702   ;;
8703
8704 os2*)
8705   libname_spec='$name'
8706   shrext_cmds=".dll"
8707   need_lib_prefix=no
8708   library_names_spec='$libname${shared_ext} $libname.a'
8709   dynamic_linker='OS/2 ld.exe'
8710   shlibpath_var=LIBPATH
8711   ;;
8712
8713 osf3* | osf4* | osf5*)
8714   version_type=osf
8715   need_lib_prefix=no
8716   need_version=no
8717   soname_spec='${libname}${release}${shared_ext}$major'
8718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8719   shlibpath_var=LD_LIBRARY_PATH
8720   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8721   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8722   ;;
8723
8724 rdos*)
8725   dynamic_linker=no
8726   ;;
8727
8728 solaris*)
8729   version_type=linux
8730   need_lib_prefix=no
8731   need_version=no
8732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733   soname_spec='${libname}${release}${shared_ext}$major'
8734   shlibpath_var=LD_LIBRARY_PATH
8735   shlibpath_overrides_runpath=yes
8736   hardcode_into_libs=yes
8737   # ldd complains unless libraries are executable
8738   postinstall_cmds='chmod +x $lib'
8739   ;;
8740
8741 sunos4*)
8742   version_type=sunos
8743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8744   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8745   shlibpath_var=LD_LIBRARY_PATH
8746   shlibpath_overrides_runpath=yes
8747   if test "$with_gnu_ld" = yes; then
8748     need_lib_prefix=no
8749   fi
8750   need_version=yes
8751   ;;
8752
8753 sysv4 | sysv4.3*)
8754   version_type=linux
8755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756   soname_spec='${libname}${release}${shared_ext}$major'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   case $host_vendor in
8759     sni)
8760       shlibpath_overrides_runpath=no
8761       need_lib_prefix=no
8762       export_dynamic_flag_spec='${wl}-Blargedynsym'
8763       runpath_var=LD_RUN_PATH
8764       ;;
8765     siemens)
8766       need_lib_prefix=no
8767       ;;
8768     motorola)
8769       need_lib_prefix=no
8770       need_version=no
8771       shlibpath_overrides_runpath=no
8772       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8773       ;;
8774   esac
8775   ;;
8776
8777 sysv4*MP*)
8778   if test -d /usr/nec ;then
8779     version_type=linux
8780     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8781     soname_spec='$libname${shared_ext}.$major'
8782     shlibpath_var=LD_LIBRARY_PATH
8783   fi
8784   ;;
8785
8786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8787   version_type=freebsd-elf
8788   need_lib_prefix=no
8789   need_version=no
8790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8791   soname_spec='${libname}${release}${shared_ext}$major'
8792   shlibpath_var=LD_LIBRARY_PATH
8793   hardcode_into_libs=yes
8794   if test "$with_gnu_ld" = yes; then
8795     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8796     shlibpath_overrides_runpath=no
8797   else
8798     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8799     shlibpath_overrides_runpath=yes
8800     case $host_os in
8801       sco3.2v5*)
8802         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8803         ;;
8804     esac
8805   fi
8806   sys_lib_dlsearch_path_spec='/usr/lib'
8807   ;;
8808
8809 uts4*)
8810   version_type=linux
8811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812   soname_spec='${libname}${release}${shared_ext}$major'
8813   shlibpath_var=LD_LIBRARY_PATH
8814   ;;
8815
8816 *)
8817   dynamic_linker=no
8818   ;;
8819 esac
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8821 $as_echo "$dynamic_linker" >&6; }
8822 test "$dynamic_linker" = no && can_build_shared=no
8823
8824 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
8825   $as_echo_n "(cached) " >&6
8826 else
8827   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8828 fi
8829
8830 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8831 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
8835 fi
8836
8837 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8838
8839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8840 if test "$GCC" = yes; then
8841   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8842 fi
8843
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8845 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8846 hardcode_action=
8847 if test -n "$hardcode_libdir_flag_spec" || \
8848    test -n "$runpath_var" || \
8849    test "X$hardcode_automatic" = "Xyes" ; then
8850
8851   # We can hardcode non-existant directories.
8852   if test "$hardcode_direct" != no &&
8853      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8854      # have to relink, otherwise we might link with an installed library
8855      # when we should be linking with a yet-to-be-installed one
8856      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8857      test "$hardcode_minus_L" != no; then
8858     # Linking always hardcodes the temporary library directory.
8859     hardcode_action=relink
8860   else
8861     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8862     hardcode_action=immediate
8863   fi
8864 else
8865   # We cannot hardcode anything, or else we can only hardcode existing
8866   # directories.
8867   hardcode_action=unsupported
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8870 $as_echo "$hardcode_action" >&6; }
8871
8872 if test "$hardcode_action" = relink; then
8873   # Fast installation is not supported
8874   enable_fast_install=no
8875 elif test "$shlibpath_overrides_runpath" = yes ||
8876      test "$enable_shared" = no; then
8877   # Fast installation is not necessary
8878   enable_fast_install=needless
8879 fi
8880
8881 striplib=
8882 old_striplib=
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8884 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8885 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8886   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8887   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8889 $as_echo "yes" >&6; }
8890 else
8891 # FIXME - insert some real tests, host_os isn't really good enough
8892   case $host_os in
8893    darwin*)
8894        if test -n "$STRIP" ; then
8895          striplib="$STRIP -x"
8896          old_striplib="$STRIP -S"
8897          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8898 $as_echo "yes" >&6; }
8899        else
8900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902 fi
8903        ;;
8904    *)
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907     ;;
8908   esac
8909 fi
8910
8911 if test "x$enable_dlopen" != xyes; then
8912   enable_dlopen=unknown
8913   enable_dlopen_self=unknown
8914   enable_dlopen_self_static=unknown
8915 else
8916   lt_cv_dlopen=no
8917   lt_cv_dlopen_libs=
8918
8919   case $host_os in
8920   beos*)
8921     lt_cv_dlopen="load_add_on"
8922     lt_cv_dlopen_libs=
8923     lt_cv_dlopen_self=yes
8924     ;;
8925
8926   mingw* | pw32*)
8927     lt_cv_dlopen="LoadLibrary"
8928     lt_cv_dlopen_libs=
8929    ;;
8930
8931   cygwin*)
8932     lt_cv_dlopen="dlopen"
8933     lt_cv_dlopen_libs=
8934    ;;
8935
8936   darwin*)
8937   # if libdl is installed we need to link against it
8938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8939 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   ac_check_lib_save_LIBS=$LIBS
8944 LIBS="-ldl  $LIBS"
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h.  */
8947
8948 /* Override any GCC internal prototype to avoid an error.
8949    Use char because int might match the return type of a GCC
8950    builtin and then its argument prototype would still apply.  */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char dlopen ();
8955 int
8956 main ()
8957 {
8958 return dlopen ();
8959   ;
8960   return 0;
8961 }
8962 _ACEOF
8963 if ac_fn_c_try_link "$LINENO"; then :
8964   ac_cv_lib_dl_dlopen=yes
8965 else
8966   ac_cv_lib_dl_dlopen=no
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext \
8969     conftest$ac_exeext conftest.$ac_ext
8970 LIBS=$ac_check_lib_save_LIBS
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8973 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8974 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8975   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8976 else
8977
8978     lt_cv_dlopen="dyld"
8979     lt_cv_dlopen_libs=
8980     lt_cv_dlopen_self=yes
8981
8982 fi
8983
8984    ;;
8985
8986   *)
8987     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8988 if test "x$ac_cv_func_shl_load" = x""yes; then :
8989   lt_cv_dlopen="shl_load"
8990 else
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8992 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8993 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-ldld  $LIBS"
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h.  */
9000
9001 /* Override any GCC internal prototype to avoid an error.
9002    Use char because int might match the return type of a GCC
9003    builtin and then its argument prototype would still apply.  */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 char shl_load ();
9008 int
9009 main ()
9010 {
9011 return shl_load ();
9012   ;
9013   return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017   ac_cv_lib_dld_shl_load=yes
9018 else
9019   ac_cv_lib_dld_shl_load=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022     conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9026 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9027 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9028   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9029 else
9030   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9031 if test "x$ac_cv_func_dlopen" = x""yes; then :
9032   lt_cv_dlopen="dlopen"
9033 else
9034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9035 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   ac_check_lib_save_LIBS=$LIBS
9040 LIBS="-ldl  $LIBS"
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h.  */
9043
9044 /* Override any GCC internal prototype to avoid an error.
9045    Use char because int might match the return type of a GCC
9046    builtin and then its argument prototype would still apply.  */
9047 #ifdef __cplusplus
9048 extern "C"
9049 #endif
9050 char dlopen ();
9051 int
9052 main ()
9053 {
9054 return dlopen ();
9055   ;
9056   return 0;
9057 }
9058 _ACEOF
9059 if ac_fn_c_try_link "$LINENO"; then :
9060   ac_cv_lib_dl_dlopen=yes
9061 else
9062   ac_cv_lib_dl_dlopen=no
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext \
9065     conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9069 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9070 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9071   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9072 else
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9074 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9075 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9076   $as_echo_n "(cached) " >&6
9077 else
9078   ac_check_lib_save_LIBS=$LIBS
9079 LIBS="-lsvld  $LIBS"
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h.  */
9082
9083 /* Override any GCC internal prototype to avoid an error.
9084    Use char because int might match the return type of a GCC
9085    builtin and then its argument prototype would still apply.  */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 char dlopen ();
9090 int
9091 main ()
9092 {
9093 return dlopen ();
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099   ac_cv_lib_svld_dlopen=yes
9100 else
9101   ac_cv_lib_svld_dlopen=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104     conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9108 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9109 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9110   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9111 else
9112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9113 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   ac_check_lib_save_LIBS=$LIBS
9118 LIBS="-ldld  $LIBS"
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h.  */
9121
9122 /* Override any GCC internal prototype to avoid an error.
9123    Use char because int might match the return type of a GCC
9124    builtin and then its argument prototype would still apply.  */
9125 #ifdef __cplusplus
9126 extern "C"
9127 #endif
9128 char dld_link ();
9129 int
9130 main ()
9131 {
9132 return dld_link ();
9133   ;
9134   return 0;
9135 }
9136 _ACEOF
9137 if ac_fn_c_try_link "$LINENO"; then :
9138   ac_cv_lib_dld_dld_link=yes
9139 else
9140   ac_cv_lib_dld_dld_link=no
9141 fi
9142 rm -f core conftest.err conftest.$ac_objext \
9143     conftest$ac_exeext conftest.$ac_ext
9144 LIBS=$ac_check_lib_save_LIBS
9145 fi
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9147 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9148 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9149   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9150 fi
9151
9152
9153 fi
9154
9155
9156 fi
9157
9158
9159 fi
9160
9161
9162 fi
9163
9164
9165 fi
9166
9167     ;;
9168   esac
9169
9170   if test "x$lt_cv_dlopen" != xno; then
9171     enable_dlopen=yes
9172   else
9173     enable_dlopen=no
9174   fi
9175
9176   case $lt_cv_dlopen in
9177   dlopen)
9178     save_CPPFLAGS="$CPPFLAGS"
9179     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9180
9181     save_LDFLAGS="$LDFLAGS"
9182     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9183
9184     save_LIBS="$LIBS"
9185     LIBS="$lt_cv_dlopen_libs $LIBS"
9186
9187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9188 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9189 if test "${lt_cv_dlopen_self+set}" = set; then :
9190   $as_echo_n "(cached) " >&6
9191 else
9192           if test "$cross_compiling" = yes; then :
9193   lt_cv_dlopen_self=cross
9194 else
9195   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9196   lt_status=$lt_dlunknown
9197   cat > conftest.$ac_ext <<EOF
9198 #line 9198 "configure"
9199 #include "confdefs.h"
9200
9201 #if HAVE_DLFCN_H
9202 #include <dlfcn.h>
9203 #endif
9204
9205 #include <stdio.h>
9206
9207 #ifdef RTLD_GLOBAL
9208 #  define LT_DLGLOBAL           RTLD_GLOBAL
9209 #else
9210 #  ifdef DL_GLOBAL
9211 #    define LT_DLGLOBAL         DL_GLOBAL
9212 #  else
9213 #    define LT_DLGLOBAL         0
9214 #  endif
9215 #endif
9216
9217 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9218    find out it does not work in some platform. */
9219 #ifndef LT_DLLAZY_OR_NOW
9220 #  ifdef RTLD_LAZY
9221 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9222 #  else
9223 #    ifdef DL_LAZY
9224 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9225 #    else
9226 #      ifdef RTLD_NOW
9227 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9228 #      else
9229 #        ifdef DL_NOW
9230 #          define LT_DLLAZY_OR_NOW      DL_NOW
9231 #        else
9232 #          define LT_DLLAZY_OR_NOW      0
9233 #        endif
9234 #      endif
9235 #    endif
9236 #  endif
9237 #endif
9238
9239 #ifdef __cplusplus
9240 extern "C" void exit (int);
9241 #endif
9242
9243 void fnord() { int i=42;}
9244 int main ()
9245 {
9246   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9247   int status = $lt_dlunknown;
9248
9249   if (self)
9250     {
9251       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9252       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9253       /* dlclose (self); */
9254     }
9255   else
9256     puts (dlerror ());
9257
9258     exit (status);
9259 }
9260 EOF
9261   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9262   (eval $ac_link) 2>&5
9263   ac_status=$?
9264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9265   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9266     (./conftest; exit; ) >&5 2>/dev/null
9267     lt_status=$?
9268     case x$lt_status in
9269       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9270       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9271       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9272     esac
9273   else :
9274     # compilation failed
9275     lt_cv_dlopen_self=no
9276   fi
9277 fi
9278 rm -fr conftest*
9279
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9283 $as_echo "$lt_cv_dlopen_self" >&6; }
9284
9285     if test "x$lt_cv_dlopen_self" = xyes; then
9286       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9287       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9288 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9289 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292           if test "$cross_compiling" = yes; then :
9293   lt_cv_dlopen_self_static=cross
9294 else
9295   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9296   lt_status=$lt_dlunknown
9297   cat > conftest.$ac_ext <<EOF
9298 #line 9298 "configure"
9299 #include "confdefs.h"
9300
9301 #if HAVE_DLFCN_H
9302 #include <dlfcn.h>
9303 #endif
9304
9305 #include <stdio.h>
9306
9307 #ifdef RTLD_GLOBAL
9308 #  define LT_DLGLOBAL           RTLD_GLOBAL
9309 #else
9310 #  ifdef DL_GLOBAL
9311 #    define LT_DLGLOBAL         DL_GLOBAL
9312 #  else
9313 #    define LT_DLGLOBAL         0
9314 #  endif
9315 #endif
9316
9317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9318    find out it does not work in some platform. */
9319 #ifndef LT_DLLAZY_OR_NOW
9320 #  ifdef RTLD_LAZY
9321 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9322 #  else
9323 #    ifdef DL_LAZY
9324 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9325 #    else
9326 #      ifdef RTLD_NOW
9327 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9328 #      else
9329 #        ifdef DL_NOW
9330 #          define LT_DLLAZY_OR_NOW      DL_NOW
9331 #        else
9332 #          define LT_DLLAZY_OR_NOW      0
9333 #        endif
9334 #      endif
9335 #    endif
9336 #  endif
9337 #endif
9338
9339 #ifdef __cplusplus
9340 extern "C" void exit (int);
9341 #endif
9342
9343 void fnord() { int i=42;}
9344 int main ()
9345 {
9346   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9347   int status = $lt_dlunknown;
9348
9349   if (self)
9350     {
9351       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9352       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9353       /* dlclose (self); */
9354     }
9355   else
9356     puts (dlerror ());
9357
9358     exit (status);
9359 }
9360 EOF
9361   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9362   (eval $ac_link) 2>&5
9363   ac_status=$?
9364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9365   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9366     (./conftest; exit; ) >&5 2>/dev/null
9367     lt_status=$?
9368     case x$lt_status in
9369       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9370       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9371       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9372     esac
9373   else :
9374     # compilation failed
9375     lt_cv_dlopen_self_static=no
9376   fi
9377 fi
9378 rm -fr conftest*
9379
9380
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9383 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9384     fi
9385
9386     CPPFLAGS="$save_CPPFLAGS"
9387     LDFLAGS="$save_LDFLAGS"
9388     LIBS="$save_LIBS"
9389     ;;
9390   esac
9391
9392   case $lt_cv_dlopen_self in
9393   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9394   *) enable_dlopen_self=unknown ;;
9395   esac
9396
9397   case $lt_cv_dlopen_self_static in
9398   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9399   *) enable_dlopen_self_static=unknown ;;
9400   esac
9401 fi
9402
9403
9404 # Report which library types will actually be built
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9406 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9408 $as_echo "$can_build_shared" >&6; }
9409
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9411 $as_echo_n "checking whether to build shared libraries... " >&6; }
9412 test "$can_build_shared" = "no" && enable_shared=no
9413
9414 # On AIX, shared libraries and static libraries use the same namespace, and
9415 # are all built from PIC.
9416 case $host_os in
9417 aix3*)
9418   test "$enable_shared" = yes && enable_static=no
9419   if test -n "$RANLIB"; then
9420     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9421     postinstall_cmds='$RANLIB $lib'
9422   fi
9423   ;;
9424
9425 aix[4-9]*)
9426   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9427     test "$enable_shared" = yes && enable_static=no
9428   fi
9429     ;;
9430 esac
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9432 $as_echo "$enable_shared" >&6; }
9433
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9435 $as_echo_n "checking whether to build static libraries... " >&6; }
9436 # Make sure either enable_shared or enable_static is yes.
9437 test "$enable_shared" = yes || enable_static=yes
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9439 $as_echo "$enable_static" >&6; }
9440
9441 # The else clause should only fire when bootstrapping the
9442 # libtool distribution, otherwise you forgot to ship ltmain.sh
9443 # with your package, and you will get complaints that there are
9444 # no rules to generate ltmain.sh.
9445 if test -f "$ltmain"; then
9446   # See if we are running on zsh, and set the options which allow our commands through
9447   # without removal of \ escapes.
9448   if test -n "${ZSH_VERSION+set}" ; then
9449     setopt NO_GLOB_SUBST
9450   fi
9451   # Now quote all the things that may contain metacharacters while being
9452   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9453   # variables and quote the copies for generation of the libtool script.
9454   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9455     SED SHELL STRIP \
9456     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9457     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9458     deplibs_check_method reload_flag reload_cmds need_locks \
9459     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9460     lt_cv_sys_global_symbol_to_c_name_address \
9461     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9462     old_postinstall_cmds old_postuninstall_cmds \
9463     compiler \
9464     CC \
9465     LD \
9466     lt_prog_compiler_wl \
9467     lt_prog_compiler_pic \
9468     lt_prog_compiler_static \
9469     lt_prog_compiler_no_builtin_flag \
9470     export_dynamic_flag_spec \
9471     thread_safe_flag_spec \
9472     whole_archive_flag_spec \
9473     enable_shared_with_static_runtimes \
9474     old_archive_cmds \
9475     old_archive_from_new_cmds \
9476     predep_objects \
9477     postdep_objects \
9478     predeps \
9479     postdeps \
9480     compiler_lib_search_path \
9481     compiler_lib_search_dirs \
9482     archive_cmds \
9483     archive_expsym_cmds \
9484     postinstall_cmds \
9485     postuninstall_cmds \
9486     old_archive_from_expsyms_cmds \
9487     allow_undefined_flag \
9488     no_undefined_flag \
9489     export_symbols_cmds \
9490     hardcode_libdir_flag_spec \
9491     hardcode_libdir_flag_spec_ld \
9492     hardcode_libdir_separator \
9493     hardcode_automatic \
9494     module_cmds \
9495     module_expsym_cmds \
9496     lt_cv_prog_compiler_c_o \
9497     fix_srcfile_path \
9498     exclude_expsyms \
9499     include_expsyms; do
9500
9501     case $var in
9502     old_archive_cmds | \
9503     old_archive_from_new_cmds | \
9504     archive_cmds | \
9505     archive_expsym_cmds | \
9506     module_cmds | \
9507     module_expsym_cmds | \
9508     old_archive_from_expsyms_cmds | \
9509     export_symbols_cmds | \
9510     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9511     postinstall_cmds | postuninstall_cmds | \
9512     old_postinstall_cmds | old_postuninstall_cmds | \
9513     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9514       # Double-quote double-evaled strings.
9515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9516       ;;
9517     *)
9518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9519       ;;
9520     esac
9521   done
9522
9523   case $lt_echo in
9524   *'\$0 --fallback-echo"')
9525     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9526     ;;
9527   esac
9528
9529 cfgfile="${ofile}T"
9530   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9531   $rm -f "$cfgfile"
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9533 $as_echo "$as_me: creating $ofile" >&6;}
9534
9535   cat <<__EOF__ >> "$cfgfile"
9536 #! $SHELL
9537
9538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9541 #
9542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9543 # Free Software Foundation, Inc.
9544 #
9545 # This file is part of GNU Libtool:
9546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9547 #
9548 # This program is free software; you can redistribute it and/or modify
9549 # it under the terms of the GNU General Public License as published by
9550 # the Free Software Foundation; either version 2 of the License, or
9551 # (at your option) any later version.
9552 #
9553 # This program is distributed in the hope that it will be useful, but
9554 # WITHOUT ANY WARRANTY; without even the implied warranty of
9555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9556 # General Public License for more details.
9557 #
9558 # You should have received a copy of the GNU General Public License
9559 # along with this program; if not, write to the Free Software
9560 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9561 #
9562 # As a special exception to the GNU General Public License, if you
9563 # distribute this file as part of a program that contains a
9564 # configuration script generated by Autoconf, you may include it under
9565 # the same distribution terms that you use for the rest of that program.
9566
9567 # A sed program that does not truncate output.
9568 SED=$lt_SED
9569
9570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9571 Xsed="$SED -e 1s/^X//"
9572
9573 # The HP-UX ksh and POSIX shell print the target directory to stdout
9574 # if CDPATH is set.
9575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9576
9577 # The names of the tagged configurations supported by this script.
9578 available_tags=
9579
9580 # ### BEGIN LIBTOOL CONFIG
9581
9582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9583
9584 # Shell to use when invoking shell scripts.
9585 SHELL=$lt_SHELL
9586
9587 # Whether or not to build shared libraries.
9588 build_libtool_libs=$enable_shared
9589
9590 # Whether or not to build static libraries.
9591 build_old_libs=$enable_static
9592
9593 # Whether or not to add -lc for building shared libraries.
9594 build_libtool_need_lc=$archive_cmds_need_lc
9595
9596 # Whether or not to disallow shared libs when runtime libs are static
9597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9598
9599 # Whether or not to optimize for fast installation.
9600 fast_install=$enable_fast_install
9601
9602 # The host system.
9603 host_alias=$host_alias
9604 host=$host
9605 host_os=$host_os
9606
9607 # The build system.
9608 build_alias=$build_alias
9609 build=$build
9610 build_os=$build_os
9611
9612 # An echo program that does not interpret backslashes.
9613 echo=$lt_echo
9614
9615 # The archiver.
9616 AR=$lt_AR
9617 AR_FLAGS=$lt_AR_FLAGS
9618
9619 # A C compiler.
9620 LTCC=$lt_LTCC
9621
9622 # LTCC compiler flags.
9623 LTCFLAGS=$lt_LTCFLAGS
9624
9625 # A language-specific compiler.
9626 CC=$lt_compiler
9627
9628 # Is the compiler the GNU C compiler?
9629 with_gcc=$GCC
9630
9631 # An ERE matcher.
9632 EGREP=$lt_EGREP
9633
9634 # The linker used to build libraries.
9635 LD=$lt_LD
9636
9637 # Whether we need hard or soft links.
9638 LN_S=$lt_LN_S
9639
9640 # A BSD-compatible nm program.
9641 NM=$lt_NM
9642
9643 # A symbol stripping program
9644 STRIP=$lt_STRIP
9645
9646 # Used to examine libraries when file_magic_cmd begins "file"
9647 MAGIC_CMD=$MAGIC_CMD
9648
9649 # Used on cygwin: DLL creation program.
9650 DLLTOOL="$DLLTOOL"
9651
9652 # Used on cygwin: object dumper.
9653 OBJDUMP="$OBJDUMP"
9654
9655 # Used on cygwin: assembler.
9656 AS="$AS"
9657
9658 # The name of the directory that contains temporary libtool files.
9659 objdir=$objdir
9660
9661 # How to create reloadable object files.
9662 reload_flag=$lt_reload_flag
9663 reload_cmds=$lt_reload_cmds
9664
9665 # How to pass a linker flag through the compiler.
9666 wl=$lt_lt_prog_compiler_wl
9667
9668 # Object file suffix (normally "o").
9669 objext="$ac_objext"
9670
9671 # Old archive suffix (normally "a").
9672 libext="$libext"
9673
9674 # Shared library suffix (normally ".so").
9675 shrext_cmds='$shrext_cmds'
9676
9677 # Executable file suffix (normally "").
9678 exeext="$exeext"
9679
9680 # Additional compiler flags for building library objects.
9681 pic_flag=$lt_lt_prog_compiler_pic
9682 pic_mode=$pic_mode
9683
9684 # What is the maximum length of a command?
9685 max_cmd_len=$lt_cv_sys_max_cmd_len
9686
9687 # Does compiler simultaneously support -c and -o options?
9688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9689
9690 # Must we lock files when doing compilation?
9691 need_locks=$lt_need_locks
9692
9693 # Do we need the lib prefix for modules?
9694 need_lib_prefix=$need_lib_prefix
9695
9696 # Do we need a version for libraries?
9697 need_version=$need_version
9698
9699 # Whether dlopen is supported.
9700 dlopen_support=$enable_dlopen
9701
9702 # Whether dlopen of programs is supported.
9703 dlopen_self=$enable_dlopen_self
9704
9705 # Whether dlopen of statically linked programs is supported.
9706 dlopen_self_static=$enable_dlopen_self_static
9707
9708 # Compiler flag to prevent dynamic linking.
9709 link_static_flag=$lt_lt_prog_compiler_static
9710
9711 # Compiler flag to turn off builtin functions.
9712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9713
9714 # Compiler flag to allow reflexive dlopens.
9715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9716
9717 # Compiler flag to generate shared objects directly from archives.
9718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9719
9720 # Compiler flag to generate thread-safe objects.
9721 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9722
9723 # Library versioning type.
9724 version_type=$version_type
9725
9726 # Format of library name prefix.
9727 libname_spec=$lt_libname_spec
9728
9729 # List of archive names.  First name is the real one, the rest are links.
9730 # The last name is the one that the linker finds with -lNAME.
9731 library_names_spec=$lt_library_names_spec
9732
9733 # The coded name of the library, if different from the real name.
9734 soname_spec=$lt_soname_spec
9735
9736 # Commands used to build and install an old-style archive.
9737 RANLIB=$lt_RANLIB
9738 old_archive_cmds=$lt_old_archive_cmds
9739 old_postinstall_cmds=$lt_old_postinstall_cmds
9740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9741
9742 # Create an old-style archive from a shared archive.
9743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9744
9745 # Create a temporary old-style archive to link instead of a shared archive.
9746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9747
9748 # Commands used to build and install a shared archive.
9749 archive_cmds=$lt_archive_cmds
9750 archive_expsym_cmds=$lt_archive_expsym_cmds
9751 postinstall_cmds=$lt_postinstall_cmds
9752 postuninstall_cmds=$lt_postuninstall_cmds
9753
9754 # Commands used to build a loadable module (assumed same as above if empty)
9755 module_cmds=$lt_module_cmds
9756 module_expsym_cmds=$lt_module_expsym_cmds
9757
9758 # Commands to strip libraries.
9759 old_striplib=$lt_old_striplib
9760 striplib=$lt_striplib
9761
9762 # Dependencies to place before the objects being linked to create a
9763 # shared library.
9764 predep_objects=$lt_predep_objects
9765
9766 # Dependencies to place after the objects being linked to create a
9767 # shared library.
9768 postdep_objects=$lt_postdep_objects
9769
9770 # Dependencies to place before the objects being linked to create a
9771 # shared library.
9772 predeps=$lt_predeps
9773
9774 # Dependencies to place after the objects being linked to create a
9775 # shared library.
9776 postdeps=$lt_postdeps
9777
9778 # The directories searched by this compiler when creating a shared
9779 # library
9780 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
9781
9782 # The library search path used internally by the compiler when linking
9783 # a shared library.
9784 compiler_lib_search_path=$lt_compiler_lib_search_path
9785
9786 # Method to check whether dependent libraries are shared objects.
9787 deplibs_check_method=$lt_deplibs_check_method
9788
9789 # Command to use when deplibs_check_method == file_magic.
9790 file_magic_cmd=$lt_file_magic_cmd
9791
9792 # Flag that allows shared libraries with undefined symbols to be built.
9793 allow_undefined_flag=$lt_allow_undefined_flag
9794
9795 # Flag that forces no undefined symbols.
9796 no_undefined_flag=$lt_no_undefined_flag
9797
9798 # Commands used to finish a libtool library installation in a directory.
9799 finish_cmds=$lt_finish_cmds
9800
9801 # Same as above, but a single script fragment to be evaled but not shown.
9802 finish_eval=$lt_finish_eval
9803
9804 # Take the output of nm and produce a listing of raw symbols and C names.
9805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9806
9807 # Transform the output of nm in a proper C declaration
9808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9809
9810 # Transform the output of nm in a C name address pair
9811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9812
9813 # This is the shared library runtime path variable.
9814 runpath_var=$runpath_var
9815
9816 # This is the shared library path variable.
9817 shlibpath_var=$shlibpath_var
9818
9819 # Is shlibpath searched before the hard-coded library search path?
9820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9821
9822 # How to hardcode a shared library path into an executable.
9823 hardcode_action=$hardcode_action
9824
9825 # Whether we should hardcode library paths into libraries.
9826 hardcode_into_libs=$hardcode_into_libs
9827
9828 # Flag to hardcode \$libdir into a binary during linking.
9829 # This must work even if \$libdir does not exist.
9830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9831
9832 # If ld is used when linking, flag to hardcode \$libdir into
9833 # a binary during linking. This must work even if \$libdir does
9834 # not exist.
9835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9836
9837 # Whether we need a single -rpath flag with a separated argument.
9838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9839
9840 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9841 # resulting binary.
9842 hardcode_direct=$hardcode_direct
9843
9844 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9845 # resulting binary.
9846 hardcode_minus_L=$hardcode_minus_L
9847
9848 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9849 # the resulting binary.
9850 hardcode_shlibpath_var=$hardcode_shlibpath_var
9851
9852 # Set to yes if building a shared library automatically hardcodes DIR into the library
9853 # and all subsequent libraries and executables linked against it.
9854 hardcode_automatic=$hardcode_automatic
9855
9856 # Variables whose values should be saved in libtool wrapper scripts and
9857 # restored at relink time.
9858 variables_saved_for_relink="$variables_saved_for_relink"
9859
9860 # Whether libtool must link a program against all its dependency libraries.
9861 link_all_deplibs=$link_all_deplibs
9862
9863 # Compile-time system search path for libraries
9864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9865
9866 # Run-time system search path for libraries
9867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9868
9869 # Fix the shell variable \$srcfile for the compiler.
9870 fix_srcfile_path=$lt_fix_srcfile_path
9871
9872 # Set to yes if exported symbols are required.
9873 always_export_symbols=$always_export_symbols
9874
9875 # The commands to list exported symbols.
9876 export_symbols_cmds=$lt_export_symbols_cmds
9877
9878 # The commands to extract the exported symbol list from a shared archive.
9879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9880
9881 # Symbols that should not be listed in the preloaded symbols.
9882 exclude_expsyms=$lt_exclude_expsyms
9883
9884 # Symbols that must always be exported.
9885 include_expsyms=$lt_include_expsyms
9886
9887 # ### END LIBTOOL CONFIG
9888
9889 __EOF__
9890
9891
9892   case $host_os in
9893   aix3*)
9894     cat <<\EOF >> "$cfgfile"
9895
9896 # AIX sometimes has problems with the GCC collect2 program.  For some
9897 # reason, if we set the COLLECT_NAMES environment variable, the problems
9898 # vanish in a puff of smoke.
9899 if test "X${COLLECT_NAMES+set}" != Xset; then
9900   COLLECT_NAMES=
9901   export COLLECT_NAMES
9902 fi
9903 EOF
9904     ;;
9905   esac
9906
9907   # We use sed instead of cat because bash on DJGPP gets confused if
9908   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9909   # text mode, it properly converts lines to CR/LF.  This bash problem
9910   # is reportedly fixed, but why not run on old versions too?
9911   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9912
9913   mv -f "$cfgfile" "$ofile" || \
9914     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9915   chmod +x "$ofile"
9916
9917 else
9918   # If there is no Makefile yet, we rely on a make rule to execute
9919   # `config.status --recheck' to rerun these tests and create the
9920   # libtool script then.
9921   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9922   if test -f "$ltmain_in"; then
9923     test -f Makefile && make "$ltmain"
9924   fi
9925 fi
9926
9927
9928 ac_ext=c
9929 ac_cpp='$CPP $CPPFLAGS'
9930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9933
9934 CC="$lt_save_CC"
9935
9936
9937 # Check whether --with-tags was given.
9938 if test "${with_tags+set}" = set; then :
9939   withval=$with_tags; tagnames="$withval"
9940 fi
9941
9942
9943 if test -f "$ltmain" && test -n "$tagnames"; then
9944   if test ! -f "${ofile}"; then
9945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9946 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9947   fi
9948
9949   if test -z "$LTCC"; then
9950     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9951     if test -z "$LTCC"; then
9952       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9953 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9954     else
9955       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9956 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9957     fi
9958   fi
9959   if test -z "$LTCFLAGS"; then
9960     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9961   fi
9962
9963   # Extract list of available tagged configurations in $ofile.
9964   # Note that this assumes the entire list is on one line.
9965   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9966
9967   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9968   for tagname in $tagnames; do
9969     IFS="$lt_save_ifs"
9970     # Check whether tagname contains only valid characters
9971     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9972     "") ;;
9973     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9974         ;;
9975     esac
9976
9977     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9978     then
9979       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9980     fi
9981
9982     # Update the list of available tags.
9983     if test -n "$tagname"; then
9984       echo appending configuration tag \"$tagname\" to $ofile
9985
9986       case $tagname in
9987       CXX)
9988         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9989             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9990             (test "X$CXX" != "Xg++"))) ; then
9991           ac_ext=cpp
9992 ac_cpp='$CXXCPP $CPPFLAGS'
9993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9996
9997
9998
9999
10000 archive_cmds_need_lc_CXX=no
10001 allow_undefined_flag_CXX=
10002 always_export_symbols_CXX=no
10003 archive_expsym_cmds_CXX=
10004 export_dynamic_flag_spec_CXX=
10005 hardcode_direct_CXX=no
10006 hardcode_libdir_flag_spec_CXX=
10007 hardcode_libdir_flag_spec_ld_CXX=
10008 hardcode_libdir_separator_CXX=
10009 hardcode_minus_L_CXX=no
10010 hardcode_shlibpath_var_CXX=unsupported
10011 hardcode_automatic_CXX=no
10012 module_cmds_CXX=
10013 module_expsym_cmds_CXX=
10014 link_all_deplibs_CXX=unknown
10015 old_archive_cmds_CXX=$old_archive_cmds
10016 no_undefined_flag_CXX=
10017 whole_archive_flag_spec_CXX=
10018 enable_shared_with_static_runtimes_CXX=no
10019
10020 # Dependencies to place before and after the object being linked:
10021 predep_objects_CXX=
10022 postdep_objects_CXX=
10023 predeps_CXX=
10024 postdeps_CXX=
10025 compiler_lib_search_path_CXX=
10026 compiler_lib_search_dirs_CXX=
10027
10028 # Source file extension for C++ test sources.
10029 ac_ext=cpp
10030
10031 # Object file extension for compiled C++ test sources.
10032 objext=o
10033 objext_CXX=$objext
10034
10035 # Code to be used in simple compile tests
10036 lt_simple_compile_test_code="int some_variable = 0;"
10037
10038 # Code to be used in simple link tests
10039 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10040
10041 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10042
10043 # If no C compiler was specified, use CC.
10044 LTCC=${LTCC-"$CC"}
10045
10046 # If no C compiler flags were specified, use CFLAGS.
10047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10048
10049 # Allow CC to be a program name with arguments.
10050 compiler=$CC
10051
10052
10053 # save warnings/boilerplate of simple test code
10054 ac_outfile=conftest.$ac_objext
10055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10057 _lt_compiler_boilerplate=`cat conftest.err`
10058 $rm conftest*
10059
10060 ac_outfile=conftest.$ac_objext
10061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10063 _lt_linker_boilerplate=`cat conftest.err`
10064 $rm -r conftest*
10065
10066
10067 # Allow CC to be a program name with arguments.
10068 lt_save_CC=$CC
10069 lt_save_LD=$LD
10070 lt_save_GCC=$GCC
10071 GCC=$GXX
10072 lt_save_with_gnu_ld=$with_gnu_ld
10073 lt_save_path_LD=$lt_cv_path_LD
10074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10075   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10076 else
10077   $as_unset lt_cv_prog_gnu_ld
10078 fi
10079 if test -n "${lt_cv_path_LDCXX+set}"; then
10080   lt_cv_path_LD=$lt_cv_path_LDCXX
10081 else
10082   $as_unset lt_cv_path_LD
10083 fi
10084 test -z "${LDCXX+set}" || LD=$LDCXX
10085 CC=${CXX-"c++"}
10086 compiler=$CC
10087 compiler_CXX=$CC
10088 for cc_temp in $compiler""; do
10089   case $cc_temp in
10090     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10091     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10092     \-*) ;;
10093     *) break;;
10094   esac
10095 done
10096 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10097
10098
10099 # We don't want -fno-exception wen compiling C++ code, so set the
10100 # no_builtin_flag separately
10101 if test "$GXX" = yes; then
10102   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10103 else
10104   lt_prog_compiler_no_builtin_flag_CXX=
10105 fi
10106
10107 if test "$GXX" = yes; then
10108   # Set up default GNU C++ configuration
10109
10110
10111 # Check whether --with-gnu-ld was given.
10112 if test "${with_gnu_ld+set}" = set; then :
10113   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10114 else
10115   with_gnu_ld=no
10116 fi
10117
10118 ac_prog=ld
10119 if test "$GCC" = yes; then
10120   # Check if gcc -print-prog-name=ld gives a path.
10121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10122 $as_echo_n "checking for ld used by $CC... " >&6; }
10123   case $host in
10124   *-*-mingw*)
10125     # gcc leaves a trailing carriage return which upsets mingw
10126     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10127   *)
10128     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10129   esac
10130   case $ac_prog in
10131     # Accept absolute paths.
10132     [\\/]* | ?:[\\/]*)
10133       re_direlt='/[^/][^/]*/\.\./'
10134       # Canonicalize the pathname of ld
10135       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10136       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10137         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10138       done
10139       test -z "$LD" && LD="$ac_prog"
10140       ;;
10141   "")
10142     # If it fails, then pretend we aren't using GCC.
10143     ac_prog=ld
10144     ;;
10145   *)
10146     # If it is relative, then search for the first ld in PATH.
10147     with_gnu_ld=unknown
10148     ;;
10149   esac
10150 elif test "$with_gnu_ld" = yes; then
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10152 $as_echo_n "checking for GNU ld... " >&6; }
10153 else
10154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10155 $as_echo_n "checking for non-GNU ld... " >&6; }
10156 fi
10157 if test "${lt_cv_path_LD+set}" = set; then :
10158   $as_echo_n "(cached) " >&6
10159 else
10160   if test -z "$LD"; then
10161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10162   for ac_dir in $PATH; do
10163     IFS="$lt_save_ifs"
10164     test -z "$ac_dir" && ac_dir=.
10165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10166       lt_cv_path_LD="$ac_dir/$ac_prog"
10167       # Check to see if the program is GNU ld.  I'd rather use --version,
10168       # but apparently some variants of GNU ld only accept -v.
10169       # Break only if it was the GNU/non-GNU ld that we prefer.
10170       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10171       *GNU* | *'with BFD'*)
10172         test "$with_gnu_ld" != no && break
10173         ;;
10174       *)
10175         test "$with_gnu_ld" != yes && break
10176         ;;
10177       esac
10178     fi
10179   done
10180   IFS="$lt_save_ifs"
10181 else
10182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10183 fi
10184 fi
10185
10186 LD="$lt_cv_path_LD"
10187 if test -n "$LD"; then
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10189 $as_echo "$LD" >&6; }
10190 else
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10193 fi
10194 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10196 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10197 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10201 case `$LD -v 2>&1 </dev/null` in
10202 *GNU* | *'with BFD'*)
10203   lt_cv_prog_gnu_ld=yes
10204   ;;
10205 *)
10206   lt_cv_prog_gnu_ld=no
10207   ;;
10208 esac
10209 fi
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10211 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10212 with_gnu_ld=$lt_cv_prog_gnu_ld
10213
10214
10215
10216   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10217   # archiving commands below assume that GNU ld is being used.
10218   if test "$with_gnu_ld" = yes; then
10219     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10221
10222     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10223     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10224
10225     # If archive_cmds runs LD, not CC, wlarc should be empty
10226     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10227     #     investigate it a little bit more. (MM)
10228     wlarc='${wl}'
10229
10230     # ancient GNU ld didn't support --whole-archive et. al.
10231     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10232         grep 'no-whole-archive' > /dev/null; then
10233       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10234     else
10235       whole_archive_flag_spec_CXX=
10236     fi
10237   else
10238     with_gnu_ld=no
10239     wlarc=
10240
10241     # A generic and very simple default shared library creation
10242     # command for GNU C++ for the case where it uses the native
10243     # linker, instead of GNU ld.  If possible, this setting should
10244     # overridden to take advantage of the native linker features on
10245     # the platform it is being used on.
10246     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10247   fi
10248
10249   # Commands to make compiler produce verbose output that lists
10250   # what "hidden" libraries, object files and flags are used when
10251   # linking a shared library.
10252   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10253
10254 else
10255   GXX=no
10256   with_gnu_ld=no
10257   wlarc=
10258 fi
10259
10260 # PORTME: fill in a description of your system's C++ link characteristics
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10262 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10263 ld_shlibs_CXX=yes
10264 case $host_os in
10265   aix3*)
10266     # FIXME: insert proper C++ library support
10267     ld_shlibs_CXX=no
10268     ;;
10269   aix[4-9]*)
10270     if test "$host_cpu" = ia64; then
10271       # On IA64, the linker does run time linking by default, so we don't
10272       # have to do anything special.
10273       aix_use_runtimelinking=no
10274       exp_sym_flag='-Bexport'
10275       no_entry_flag=""
10276     else
10277       aix_use_runtimelinking=no
10278
10279       # Test if we are trying to use run time linking or normal
10280       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10281       # need to do runtime linking.
10282       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10283         for ld_flag in $LDFLAGS; do
10284           case $ld_flag in
10285           *-brtl*)
10286             aix_use_runtimelinking=yes
10287             break
10288             ;;
10289           esac
10290         done
10291         ;;
10292       esac
10293
10294       exp_sym_flag='-bexport'
10295       no_entry_flag='-bnoentry'
10296     fi
10297
10298     # When large executables or shared objects are built, AIX ld can
10299     # have problems creating the table of contents.  If linking a library
10300     # or program results in "error TOC overflow" add -mminimal-toc to
10301     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10302     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10303
10304     archive_cmds_CXX=''
10305     hardcode_direct_CXX=yes
10306     hardcode_libdir_separator_CXX=':'
10307     link_all_deplibs_CXX=yes
10308
10309     if test "$GXX" = yes; then
10310       case $host_os in aix4.[012]|aix4.[012].*)
10311       # We only want to do this on AIX 4.2 and lower, the check
10312       # below for broken collect2 doesn't work under 4.3+
10313         collect2name=`${CC} -print-prog-name=collect2`
10314         if test -f "$collect2name" && \
10315            strings "$collect2name" | grep resolve_lib_name >/dev/null
10316         then
10317           # We have reworked collect2
10318           :
10319         else
10320           # We have old collect2
10321           hardcode_direct_CXX=unsupported
10322           # It fails to find uninstalled libraries when the uninstalled
10323           # path is not listed in the libpath.  Setting hardcode_minus_L
10324           # to unsupported forces relinking
10325           hardcode_minus_L_CXX=yes
10326           hardcode_libdir_flag_spec_CXX='-L$libdir'
10327           hardcode_libdir_separator_CXX=
10328         fi
10329         ;;
10330       esac
10331       shared_flag='-shared'
10332       if test "$aix_use_runtimelinking" = yes; then
10333         shared_flag="$shared_flag "'${wl}-G'
10334       fi
10335     else
10336       # not using gcc
10337       if test "$host_cpu" = ia64; then
10338         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10339         # chokes on -Wl,-G. The following line is correct:
10340         shared_flag='-G'
10341       else
10342         if test "$aix_use_runtimelinking" = yes; then
10343           shared_flag='${wl}-G'
10344         else
10345           shared_flag='${wl}-bM:SRE'
10346         fi
10347       fi
10348     fi
10349
10350     # It seems that -bexpall does not export symbols beginning with
10351     # underscore (_), so it is better to generate a list of symbols to export.
10352     always_export_symbols_CXX=yes
10353     if test "$aix_use_runtimelinking" = yes; then
10354       # Warning - without using the other runtime loading flags (-brtl),
10355       # -berok will link without error, but may produce a broken library.
10356       allow_undefined_flag_CXX='-berok'
10357       # Determine the default libpath from the value encoded in an empty executable.
10358       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h.  */
10360
10361 int
10362 main ()
10363 {
10364
10365   ;
10366   return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_cxx_try_link "$LINENO"; then :
10370
10371 lt_aix_libpath_sed='
10372     /Import File Strings/,/^$/ {
10373         /^0/ {
10374             s/^0  *\(.*\)$/\1/
10375             p
10376         }
10377     }'
10378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10379 # Check for a 64-bit object if we didn't find anything.
10380 if test -z "$aix_libpath"; then
10381   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10382 fi
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext \
10385     conftest$ac_exeext conftest.$ac_ext
10386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10387
10388       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10389
10390       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10391      else
10392       if test "$host_cpu" = ia64; then
10393         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10394         allow_undefined_flag_CXX="-z nodefs"
10395         archive_expsym_cmds_CXX="\$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"
10396       else
10397         # Determine the default libpath from the value encoded in an empty executable.
10398         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h.  */
10400
10401 int
10402 main ()
10403 {
10404
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 if ac_fn_cxx_try_link "$LINENO"; then :
10410
10411 lt_aix_libpath_sed='
10412     /Import File Strings/,/^$/ {
10413         /^0/ {
10414             s/^0  *\(.*\)$/\1/
10415             p
10416         }
10417     }'
10418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10419 # Check for a 64-bit object if we didn't find anything.
10420 if test -z "$aix_libpath"; then
10421   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 fi
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext \
10425     conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10427
10428         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10429         # Warning - without using the other run time loading flags,
10430         # -berok will link without error, but may produce a broken library.
10431         no_undefined_flag_CXX=' ${wl}-bernotok'
10432         allow_undefined_flag_CXX=' ${wl}-berok'
10433         # Exported symbols can be pulled into shared objects from archives
10434         whole_archive_flag_spec_CXX='$convenience'
10435         archive_cmds_need_lc_CXX=yes
10436         # This is similar to how AIX traditionally builds its shared libraries.
10437         archive_expsym_cmds_CXX="\$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'
10438       fi
10439     fi
10440     ;;
10441
10442   beos*)
10443     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10444       allow_undefined_flag_CXX=unsupported
10445       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10446       # support --undefined.  This deserves some investigation.  FIXME
10447       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448     else
10449       ld_shlibs_CXX=no
10450     fi
10451     ;;
10452
10453   chorus*)
10454     case $cc_basename in
10455       *)
10456         # FIXME: insert proper C++ library support
10457         ld_shlibs_CXX=no
10458         ;;
10459     esac
10460     ;;
10461
10462   cygwin* | mingw* | pw32*)
10463     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10464     # as there is no search path for DLLs.
10465     hardcode_libdir_flag_spec_CXX='-L$libdir'
10466     allow_undefined_flag_CXX=unsupported
10467     always_export_symbols_CXX=no
10468     enable_shared_with_static_runtimes_CXX=yes
10469
10470     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10471       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10472       # If the export-symbols file already is a .def file (1st line
10473       # is EXPORTS), use it as is; otherwise, prepend...
10474       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10475         cp $export_symbols $output_objdir/$soname.def;
10476       else
10477         echo EXPORTS > $output_objdir/$soname.def;
10478         cat $export_symbols >> $output_objdir/$soname.def;
10479       fi~
10480       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10481     else
10482       ld_shlibs_CXX=no
10483     fi
10484   ;;
10485       darwin* | rhapsody*)
10486       archive_cmds_need_lc_CXX=no
10487       hardcode_direct_CXX=no
10488       hardcode_automatic_CXX=yes
10489       hardcode_shlibpath_var_CXX=unsupported
10490       whole_archive_flag_spec_CXX=''
10491       link_all_deplibs_CXX=yes
10492       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10493       if test "$GXX" = yes ; then
10494       output_verbose_link_cmd='echo'
10495       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10496       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10497       archive_expsym_cmds_CXX="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}"
10498       module_expsym_cmds_CXX="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}"
10499       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10500         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
10501         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
10502       fi
10503       else
10504       case $cc_basename in
10505         xlc*)
10506          output_verbose_link_cmd='echo'
10507           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10508           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10509           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10510           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10511           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10512           ;;
10513        *)
10514          ld_shlibs_CXX=no
10515           ;;
10516       esac
10517       fi
10518         ;;
10519
10520   dgux*)
10521     case $cc_basename in
10522       ec++*)
10523         # FIXME: insert proper C++ library support
10524         ld_shlibs_CXX=no
10525         ;;
10526       ghcx*)
10527         # Green Hills C++ Compiler
10528         # FIXME: insert proper C++ library support
10529         ld_shlibs_CXX=no
10530         ;;
10531       *)
10532         # FIXME: insert proper C++ library support
10533         ld_shlibs_CXX=no
10534         ;;
10535     esac
10536     ;;
10537   freebsd[12]*)
10538     # C++ shared libraries reported to be fairly broken before switch to ELF
10539     ld_shlibs_CXX=no
10540     ;;
10541   freebsd-elf*)
10542     archive_cmds_need_lc_CXX=no
10543     ;;
10544   freebsd* | dragonfly*)
10545     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10546     # conventions
10547     ld_shlibs_CXX=yes
10548     ;;
10549   gnu*)
10550     ;;
10551   hpux9*)
10552     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10553     hardcode_libdir_separator_CXX=:
10554     export_dynamic_flag_spec_CXX='${wl}-E'
10555     hardcode_direct_CXX=yes
10556     hardcode_minus_L_CXX=yes # Not in the search PATH,
10557                                 # but as the default
10558                                 # location of the library.
10559
10560     case $cc_basename in
10561     CC*)
10562       # FIXME: insert proper C++ library support
10563       ld_shlibs_CXX=no
10564       ;;
10565     aCC*)
10566       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10567       # Commands to make compiler produce verbose output that lists
10568       # what "hidden" libraries, object files and flags are used when
10569       # linking a shared library.
10570       #
10571       # There doesn't appear to be a way to prevent this compiler from
10572       # explicitly linking system object files so we need to strip them
10573       # from the output so that they don't get included in the library
10574       # dependencies.
10575       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10576       ;;
10577     *)
10578       if test "$GXX" = yes; then
10579         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10580       else
10581         # FIXME: insert proper C++ library support
10582         ld_shlibs_CXX=no
10583       fi
10584       ;;
10585     esac
10586     ;;
10587   hpux10*|hpux11*)
10588     if test $with_gnu_ld = no; then
10589       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10590       hardcode_libdir_separator_CXX=:
10591
10592       case $host_cpu in
10593       hppa*64*|ia64*) ;;
10594       *)
10595         export_dynamic_flag_spec_CXX='${wl}-E'
10596         ;;
10597       esac
10598     fi
10599     case $host_cpu in
10600     hppa*64*|ia64*)
10601       hardcode_direct_CXX=no
10602       hardcode_shlibpath_var_CXX=no
10603       ;;
10604     *)
10605       hardcode_direct_CXX=yes
10606       hardcode_minus_L_CXX=yes # Not in the search PATH,
10607                                               # but as the default
10608                                               # location of the library.
10609       ;;
10610     esac
10611
10612     case $cc_basename in
10613       CC*)
10614         # FIXME: insert proper C++ library support
10615         ld_shlibs_CXX=no
10616         ;;
10617       aCC*)
10618         case $host_cpu in
10619         hppa*64*)
10620           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10621           ;;
10622         ia64*)
10623           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10624           ;;
10625         *)
10626           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10627           ;;
10628         esac
10629         # Commands to make compiler produce verbose output that lists
10630         # what "hidden" libraries, object files and flags are used when
10631         # linking a shared library.
10632         #
10633         # There doesn't appear to be a way to prevent this compiler from
10634         # explicitly linking system object files so we need to strip them
10635         # from the output so that they don't get included in the library
10636         # dependencies.
10637         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10638         ;;
10639       *)
10640         if test "$GXX" = yes; then
10641           if test $with_gnu_ld = no; then
10642             case $host_cpu in
10643             hppa*64*)
10644               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10645               ;;
10646             ia64*)
10647               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10648               ;;
10649             *)
10650               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10651               ;;
10652             esac
10653           fi
10654         else
10655           # FIXME: insert proper C++ library support
10656           ld_shlibs_CXX=no
10657         fi
10658         ;;
10659     esac
10660     ;;
10661   interix[3-9]*)
10662     hardcode_direct_CXX=no
10663     hardcode_shlibpath_var_CXX=no
10664     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10665     export_dynamic_flag_spec_CXX='${wl}-E'
10666     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10667     # Instead, shared libraries are loaded at an image base (0x10000000 by
10668     # default) and relocated if they conflict, which is a slow very memory
10669     # consuming and fragmenting process.  To avoid this, we pick a random,
10670     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10671     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10672     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10673     archive_expsym_cmds_CXX='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'
10674     ;;
10675   irix5* | irix6*)
10676     case $cc_basename in
10677       CC*)
10678         # SGI C++
10679         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10680
10681         # Archives containing C++ object files must be created using
10682         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10683         # necessary to make sure instantiated templates are included
10684         # in the archive.
10685         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10686         ;;
10687       *)
10688         if test "$GXX" = yes; then
10689           if test "$with_gnu_ld" = no; then
10690             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10691           else
10692             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10693           fi
10694         fi
10695         link_all_deplibs_CXX=yes
10696         ;;
10697     esac
10698     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10699     hardcode_libdir_separator_CXX=:
10700     ;;
10701   linux* | k*bsd*-gnu)
10702     case $cc_basename in
10703       KCC*)
10704         # Kuck and Associates, Inc. (KAI) C++ Compiler
10705
10706         # KCC will only create a shared library if the output file
10707         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10708         # to its proper name (with version) after linking.
10709         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10710         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10711         # Commands to make compiler produce verbose output that lists
10712         # what "hidden" libraries, object files and flags are used when
10713         # linking a shared library.
10714         #
10715         # There doesn't appear to be a way to prevent this compiler from
10716         # explicitly linking system object files so we need to strip them
10717         # from the output so that they don't get included in the library
10718         # dependencies.
10719         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10720
10721         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10722         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10723
10724         # Archives containing C++ object files must be created using
10725         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10726         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10727         ;;
10728       icpc*)
10729         # Intel C++
10730         with_gnu_ld=yes
10731         # version 8.0 and above of icpc choke on multiply defined symbols
10732         # if we add $predep_objects and $postdep_objects, however 7.1 and
10733         # earlier do not add the objects themselves.
10734         case `$CC -V 2>&1` in
10735         *"Version 7."*)
10736           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10738           ;;
10739         *)  # Version 8.0 or newer
10740           tmp_idyn=
10741           case $host_cpu in
10742             ia64*) tmp_idyn=' -i_dynamic';;
10743           esac
10744           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10745           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10746           ;;
10747         esac
10748         archive_cmds_need_lc_CXX=no
10749         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10750         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10751         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10752         ;;
10753       pgCC* | pgcpp*)
10754         # Portland Group C++ compiler
10755         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10756         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10757
10758         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10759         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10760         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10761         ;;
10762       cxx*)
10763         # Compaq C++
10764         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10765         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10766
10767         runpath_var=LD_RUN_PATH
10768         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10769         hardcode_libdir_separator_CXX=:
10770
10771         # Commands to make compiler produce verbose output that lists
10772         # what "hidden" libraries, object files and flags are used when
10773         # linking a shared library.
10774         #
10775         # There doesn't appear to be a way to prevent this compiler from
10776         # explicitly linking system object files so we need to strip them
10777         # from the output so that they don't get included in the library
10778         # dependencies.
10779         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10780         ;;
10781       *)
10782         case `$CC -V 2>&1 | sed 5q` in
10783         *Sun\ C*)
10784           # Sun C++ 5.9
10785           no_undefined_flag_CXX=' -zdefs'
10786           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10787           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
10788           hardcode_libdir_flag_spec_CXX='-R$libdir'
10789           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10790
10791           # Not sure whether something based on
10792           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10793           # would be better.
10794           output_verbose_link_cmd='echo'
10795
10796           # Archives containing C++ object files must be created using
10797           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10798           # necessary to make sure instantiated templates are included
10799           # in the archive.
10800           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10801           ;;
10802         esac
10803         ;;
10804     esac
10805     ;;
10806   lynxos*)
10807     # FIXME: insert proper C++ library support
10808     ld_shlibs_CXX=no
10809     ;;
10810   m88k*)
10811     # FIXME: insert proper C++ library support
10812     ld_shlibs_CXX=no
10813     ;;
10814   mvs*)
10815     case $cc_basename in
10816       cxx*)
10817         # FIXME: insert proper C++ library support
10818         ld_shlibs_CXX=no
10819         ;;
10820       *)
10821         # FIXME: insert proper C++ library support
10822         ld_shlibs_CXX=no
10823         ;;
10824     esac
10825     ;;
10826   netbsd*)
10827     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10828       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10829       wlarc=
10830       hardcode_libdir_flag_spec_CXX='-R$libdir'
10831       hardcode_direct_CXX=yes
10832       hardcode_shlibpath_var_CXX=no
10833     fi
10834     # Workaround some broken pre-1.5 toolchains
10835     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10836     ;;
10837   openbsd2*)
10838     # C++ shared libraries are fairly broken
10839     ld_shlibs_CXX=no
10840     ;;
10841   openbsd*)
10842     if test -f /usr/libexec/ld.so; then
10843       hardcode_direct_CXX=yes
10844       hardcode_shlibpath_var_CXX=no
10845       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10846       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10847       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10848         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10849         export_dynamic_flag_spec_CXX='${wl}-E'
10850         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10851       fi
10852       output_verbose_link_cmd='echo'
10853     else
10854       ld_shlibs_CXX=no
10855     fi
10856     ;;
10857   osf3*)
10858     case $cc_basename in
10859       KCC*)
10860         # Kuck and Associates, Inc. (KAI) C++ Compiler
10861
10862         # KCC will only create a shared library if the output file
10863         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10864         # to its proper name (with version) after linking.
10865         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10866
10867         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10868         hardcode_libdir_separator_CXX=:
10869
10870         # Archives containing C++ object files must be created using
10871         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10872         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10873
10874         ;;
10875       RCC*)
10876         # Rational C++ 2.4.1
10877         # FIXME: insert proper C++ library support
10878         ld_shlibs_CXX=no
10879         ;;
10880       cxx*)
10881         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10882         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10883
10884         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10885         hardcode_libdir_separator_CXX=:
10886
10887         # Commands to make compiler produce verbose output that lists
10888         # what "hidden" libraries, object files and flags are used when
10889         # linking a shared library.
10890         #
10891         # There doesn't appear to be a way to prevent this compiler from
10892         # explicitly linking system object files so we need to strip them
10893         # from the output so that they don't get included in the library
10894         # dependencies.
10895         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10896         ;;
10897       *)
10898         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10899           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10900           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10901
10902           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10903           hardcode_libdir_separator_CXX=:
10904
10905           # Commands to make compiler produce verbose output that lists
10906           # what "hidden" libraries, object files and flags are used when
10907           # linking a shared library.
10908           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10909
10910         else
10911           # FIXME: insert proper C++ library support
10912           ld_shlibs_CXX=no
10913         fi
10914         ;;
10915     esac
10916     ;;
10917   osf4* | osf5*)
10918     case $cc_basename in
10919       KCC*)
10920         # Kuck and Associates, Inc. (KAI) C++ Compiler
10921
10922         # KCC will only create a shared library if the output file
10923         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10924         # to its proper name (with version) after linking.
10925         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10926
10927         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10928         hardcode_libdir_separator_CXX=:
10929
10930         # Archives containing C++ object files must be created using
10931         # the KAI C++ compiler.
10932         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10933         ;;
10934       RCC*)
10935         # Rational C++ 2.4.1
10936         # FIXME: insert proper C++ library support
10937         ld_shlibs_CXX=no
10938         ;;
10939       cxx*)
10940         allow_undefined_flag_CXX=' -expect_unresolved \*'
10941         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10942         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10943           echo "-hidden">> $lib.exp~
10944           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10945           $rm $lib.exp'
10946
10947         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10948         hardcode_libdir_separator_CXX=:
10949
10950         # Commands to make compiler produce verbose output that lists
10951         # what "hidden" libraries, object files and flags are used when
10952         # linking a shared library.
10953         #
10954         # There doesn't appear to be a way to prevent this compiler from
10955         # explicitly linking system object files so we need to strip them
10956         # from the output so that they don't get included in the library
10957         # dependencies.
10958         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10959         ;;
10960       *)
10961         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10962           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10963          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10964
10965           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10966           hardcode_libdir_separator_CXX=:
10967
10968           # Commands to make compiler produce verbose output that lists
10969           # what "hidden" libraries, object files and flags are used when
10970           # linking a shared library.
10971           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10972
10973         else
10974           # FIXME: insert proper C++ library support
10975           ld_shlibs_CXX=no
10976         fi
10977         ;;
10978     esac
10979     ;;
10980   psos*)
10981     # FIXME: insert proper C++ library support
10982     ld_shlibs_CXX=no
10983     ;;
10984   sunos4*)
10985     case $cc_basename in
10986       CC*)
10987         # Sun C++ 4.x
10988         # FIXME: insert proper C++ library support
10989         ld_shlibs_CXX=no
10990         ;;
10991       lcc*)
10992         # Lucid
10993         # FIXME: insert proper C++ library support
10994         ld_shlibs_CXX=no
10995         ;;
10996       *)
10997         # FIXME: insert proper C++ library support
10998         ld_shlibs_CXX=no
10999         ;;
11000     esac
11001     ;;
11002   solaris*)
11003     case $cc_basename in
11004       CC*)
11005         # Sun C++ 4.2, 5.x and Centerline C++
11006         archive_cmds_need_lc_CXX=yes
11007         no_undefined_flag_CXX=' -zdefs'
11008         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11009         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11010         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11011
11012         hardcode_libdir_flag_spec_CXX='-R$libdir'
11013         hardcode_shlibpath_var_CXX=no
11014         case $host_os in
11015           solaris2.[0-5] | solaris2.[0-5].*) ;;
11016           *)
11017             # The compiler driver will combine and reorder linker options,
11018             # but understands `-z linker_flag'.
11019             # Supported since Solaris 2.6 (maybe 2.5.1?)
11020             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11021             ;;
11022         esac
11023         link_all_deplibs_CXX=yes
11024
11025         output_verbose_link_cmd='echo'
11026
11027         # Archives containing C++ object files must be created using
11028         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11029         # necessary to make sure instantiated templates are included
11030         # in the archive.
11031         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11032         ;;
11033       gcx*)
11034         # Green Hills C++ Compiler
11035         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11036
11037         # The C++ compiler must be used to create the archive.
11038         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11039         ;;
11040       *)
11041         # GNU C++ compiler with Solaris linker
11042         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11043           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11044           if $CC --version | grep -v '^2\.7' > /dev/null; then
11045             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11046             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11047                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11048
11049             # Commands to make compiler produce verbose output that lists
11050             # what "hidden" libraries, object files and flags are used when
11051             # linking a shared library.
11052             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11053           else
11054             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11055             # platform.
11056             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11057             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11058                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11059
11060             # Commands to make compiler produce verbose output that lists
11061             # what "hidden" libraries, object files and flags are used when
11062             # linking a shared library.
11063             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11064           fi
11065
11066           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11067           case $host_os in
11068           solaris2.[0-5] | solaris2.[0-5].*) ;;
11069           *)
11070             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11071             ;;
11072           esac
11073         fi
11074         ;;
11075     esac
11076     ;;
11077   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11078     no_undefined_flag_CXX='${wl}-z,text'
11079     archive_cmds_need_lc_CXX=no
11080     hardcode_shlibpath_var_CXX=no
11081     runpath_var='LD_RUN_PATH'
11082
11083     case $cc_basename in
11084       CC*)
11085         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11086         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11087         ;;
11088       *)
11089         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11090         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11091         ;;
11092     esac
11093     ;;
11094   sysv5* | sco3.2v5* | sco5v6*)
11095     # Note: We can NOT use -z defs as we might desire, because we do not
11096     # link with -lc, and that would cause any symbols used from libc to
11097     # always be unresolved, which means just about no library would
11098     # ever link correctly.  If we're not using GNU ld we use -z text
11099     # though, which does catch some bad symbols but isn't as heavy-handed
11100     # as -z defs.
11101     # For security reasons, it is highly recommended that you always
11102     # use absolute paths for naming shared libraries, and exclude the
11103     # DT_RUNPATH tag from executables and libraries.  But doing so
11104     # requires that you compile everything twice, which is a pain.
11105     # So that behaviour is only enabled if SCOABSPATH is set to a
11106     # non-empty value in the environment.  Most likely only useful for
11107     # creating official distributions of packages.
11108     # This is a hack until libtool officially supports absolute path
11109     # names for shared libraries.
11110     no_undefined_flag_CXX='${wl}-z,text'
11111     allow_undefined_flag_CXX='${wl}-z,nodefs'
11112     archive_cmds_need_lc_CXX=no
11113     hardcode_shlibpath_var_CXX=no
11114     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11115     hardcode_libdir_separator_CXX=':'
11116     link_all_deplibs_CXX=yes
11117     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11118     runpath_var='LD_RUN_PATH'
11119
11120     case $cc_basename in
11121       CC*)
11122         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11123         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11124         ;;
11125       *)
11126         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11127         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11128         ;;
11129     esac
11130     ;;
11131   tandem*)
11132     case $cc_basename in
11133       NCC*)
11134         # NonStop-UX NCC 3.20
11135         # FIXME: insert proper C++ library support
11136         ld_shlibs_CXX=no
11137         ;;
11138       *)
11139         # FIXME: insert proper C++ library support
11140         ld_shlibs_CXX=no
11141         ;;
11142     esac
11143     ;;
11144   vxworks*)
11145     # FIXME: insert proper C++ library support
11146     ld_shlibs_CXX=no
11147     ;;
11148   *)
11149     # FIXME: insert proper C++ library support
11150     ld_shlibs_CXX=no
11151     ;;
11152 esac
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11154 $as_echo "$ld_shlibs_CXX" >&6; }
11155 test "$ld_shlibs_CXX" = no && can_build_shared=no
11156
11157 GCC_CXX="$GXX"
11158 LD_CXX="$LD"
11159
11160 ## CAVEAT EMPTOR:
11161 ## There is no encapsulation within the following macros, do not change
11162 ## the running order or otherwise move them around unless you know exactly
11163 ## what you are doing...
11164 cat > conftest.$ac_ext <<EOF
11165 class Foo
11166 {
11167 public:
11168   Foo (void) { a = 0; }
11169 private:
11170   int a;
11171 };
11172 EOF
11173
11174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11175   (eval $ac_compile) 2>&5
11176   ac_status=$?
11177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11178   test $ac_status = 0; }; then
11179   # Parse the compiler output and extract the necessary
11180   # objects, libraries and library flags.
11181
11182   # Sentinel used to keep track of whether or not we are before
11183   # the conftest object file.
11184   pre_test_object_deps_done=no
11185
11186   # The `*' in the case matches for architectures that use `case' in
11187   # $output_verbose_cmd can trigger glob expansion during the loop
11188   # eval without this substitution.
11189   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11190
11191   for p in `eval $output_verbose_link_cmd`; do
11192     case $p in
11193
11194     -L* | -R* | -l*)
11195        # Some compilers place space between "-{L,R}" and the path.
11196        # Remove the space.
11197        if test $p = "-L" \
11198           || test $p = "-R"; then
11199          prev=$p
11200          continue
11201        else
11202          prev=
11203        fi
11204
11205        if test "$pre_test_object_deps_done" = no; then
11206          case $p in
11207          -L* | -R*)
11208            # Internal compiler library paths should come after those
11209            # provided the user.  The postdeps already come after the
11210            # user supplied libs so there is no need to process them.
11211            if test -z "$compiler_lib_search_path_CXX"; then
11212              compiler_lib_search_path_CXX="${prev}${p}"
11213            else
11214              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11215            fi
11216            ;;
11217          # The "-l" case would never come before the object being
11218          # linked, so don't bother handling this case.
11219          esac
11220        else
11221          if test -z "$postdeps_CXX"; then
11222            postdeps_CXX="${prev}${p}"
11223          else
11224            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11225          fi
11226        fi
11227        ;;
11228
11229     *.$objext)
11230        # This assumes that the test object file only shows up
11231        # once in the compiler output.
11232        if test "$p" = "conftest.$objext"; then
11233          pre_test_object_deps_done=yes
11234          continue
11235        fi
11236
11237        if test "$pre_test_object_deps_done" = no; then
11238          if test -z "$predep_objects_CXX"; then
11239            predep_objects_CXX="$p"
11240          else
11241            predep_objects_CXX="$predep_objects_CXX $p"
11242          fi
11243        else
11244          if test -z "$postdep_objects_CXX"; then
11245            postdep_objects_CXX="$p"
11246          else
11247            postdep_objects_CXX="$postdep_objects_CXX $p"
11248          fi
11249        fi
11250        ;;
11251
11252     *) ;; # Ignore the rest.
11253
11254     esac
11255   done
11256
11257   # Clean up.
11258   rm -f a.out a.exe
11259 else
11260   echo "libtool.m4: error: problem compiling CXX test program"
11261 fi
11262
11263 $rm -f confest.$objext
11264
11265 compiler_lib_search_dirs_CXX=
11266 if test -n "$compiler_lib_search_path_CXX"; then
11267   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11268 fi
11269
11270 # PORTME: override above test on systems where it is broken
11271 case $host_os in
11272 interix[3-9]*)
11273   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11274   # hack all around it, let's just trust "g++" to DTRT.
11275   predep_objects_CXX=
11276   postdep_objects_CXX=
11277   postdeps_CXX=
11278   ;;
11279
11280 linux*)
11281   case `$CC -V 2>&1 | sed 5q` in
11282   *Sun\ C*)
11283     # Sun C++ 5.9
11284     #
11285     # The more standards-conforming stlport4 library is
11286     # incompatible with the Cstd library. Avoid specifying
11287     # it if it's in CXXFLAGS. Ignore libCrun as
11288     # -library=stlport4 depends on it.
11289     case " $CXX $CXXFLAGS " in
11290     *" -library=stlport4 "*)
11291       solaris_use_stlport4=yes
11292       ;;
11293     esac
11294     if test "$solaris_use_stlport4" != yes; then
11295       postdeps_CXX='-library=Cstd -library=Crun'
11296     fi
11297     ;;
11298   esac
11299   ;;
11300
11301 solaris*)
11302   case $cc_basename in
11303   CC*)
11304     # The more standards-conforming stlport4 library is
11305     # incompatible with the Cstd library. Avoid specifying
11306     # it if it's in CXXFLAGS. Ignore libCrun as
11307     # -library=stlport4 depends on it.
11308     case " $CXX $CXXFLAGS " in
11309     *" -library=stlport4 "*)
11310       solaris_use_stlport4=yes
11311       ;;
11312     esac
11313
11314     # Adding this requires a known-good setup of shared libraries for
11315     # Sun compiler versions before 5.6, else PIC objects from an old
11316     # archive will be linked into the output, leading to subtle bugs.
11317     if test "$solaris_use_stlport4" != yes; then
11318       postdeps_CXX='-library=Cstd -library=Crun'
11319     fi
11320     ;;
11321   esac
11322   ;;
11323 esac
11324
11325 case " $postdeps_CXX " in
11326 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11327 esac
11328
11329 lt_prog_compiler_wl_CXX=
11330 lt_prog_compiler_pic_CXX=
11331 lt_prog_compiler_static_CXX=
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11334 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11335
11336   # C++ specific cases for pic, static, wl, etc.
11337   if test "$GXX" = yes; then
11338     lt_prog_compiler_wl_CXX='-Wl,'
11339     lt_prog_compiler_static_CXX='-static'
11340
11341     case $host_os in
11342     aix*)
11343       # All AIX code is PIC.
11344       if test "$host_cpu" = ia64; then
11345         # AIX 5 now supports IA64 processor
11346         lt_prog_compiler_static_CXX='-Bstatic'
11347       fi
11348       ;;
11349     amigaos*)
11350       # FIXME: we need at least 68020 code to build shared libraries, but
11351       # adding the `-m68020' flag to GCC prevents building anything better,
11352       # like `-m68040'.
11353       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11354       ;;
11355     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11356       # PIC is the default for these OSes.
11357       ;;
11358     mingw* | cygwin* | os2* | pw32*)
11359       # This hack is so that the source file can tell whether it is being
11360       # built for inclusion in a dll (and should export symbols for example).
11361       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11362       # (--disable-auto-import) libraries
11363       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11364       ;;
11365     darwin* | rhapsody*)
11366       # PIC is the default on this platform
11367       # Common symbols not allowed in MH_DYLIB files
11368       lt_prog_compiler_pic_CXX='-fno-common'
11369       ;;
11370     *djgpp*)
11371       # DJGPP does not support shared libraries at all
11372       lt_prog_compiler_pic_CXX=
11373       ;;
11374     interix[3-9]*)
11375       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11376       # Instead, we relocate shared libraries at runtime.
11377       ;;
11378     sysv4*MP*)
11379       if test -d /usr/nec; then
11380         lt_prog_compiler_pic_CXX=-Kconform_pic
11381       fi
11382       ;;
11383     hpux*)
11384       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11385       # not for PA HP-UX.
11386       case $host_cpu in
11387       hppa*64*|ia64*)
11388         ;;
11389       *)
11390         lt_prog_compiler_pic_CXX='-fPIC'
11391         ;;
11392       esac
11393       ;;
11394     *)
11395       lt_prog_compiler_pic_CXX='-fPIC'
11396       ;;
11397     esac
11398   else
11399     case $host_os in
11400       aix[4-9]*)
11401         # All AIX code is PIC.
11402         if test "$host_cpu" = ia64; then
11403           # AIX 5 now supports IA64 processor
11404           lt_prog_compiler_static_CXX='-Bstatic'
11405         else
11406           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11407         fi
11408         ;;
11409       chorus*)
11410         case $cc_basename in
11411         cxch68*)
11412           # Green Hills C++ Compiler
11413           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11414           ;;
11415         esac
11416         ;;
11417        darwin*)
11418          # PIC is the default on this platform
11419          # Common symbols not allowed in MH_DYLIB files
11420          case $cc_basename in
11421            xlc*)
11422            lt_prog_compiler_pic_CXX='-qnocommon'
11423            lt_prog_compiler_wl_CXX='-Wl,'
11424            ;;
11425          esac
11426        ;;
11427       dgux*)
11428         case $cc_basename in
11429           ec++*)
11430             lt_prog_compiler_pic_CXX='-KPIC'
11431             ;;
11432           ghcx*)
11433             # Green Hills C++ Compiler
11434             lt_prog_compiler_pic_CXX='-pic'
11435             ;;
11436           *)
11437             ;;
11438         esac
11439         ;;
11440       freebsd* | dragonfly*)
11441         # FreeBSD uses GNU C++
11442         ;;
11443       hpux9* | hpux10* | hpux11*)
11444         case $cc_basename in
11445           CC*)
11446             lt_prog_compiler_wl_CXX='-Wl,'
11447             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11448             if test "$host_cpu" != ia64; then
11449               lt_prog_compiler_pic_CXX='+Z'
11450             fi
11451             ;;
11452           aCC*)
11453             lt_prog_compiler_wl_CXX='-Wl,'
11454             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11455             case $host_cpu in
11456             hppa*64*|ia64*)
11457               # +Z the default
11458               ;;
11459             *)
11460               lt_prog_compiler_pic_CXX='+Z'
11461               ;;
11462             esac
11463             ;;
11464           *)
11465             ;;
11466         esac
11467         ;;
11468       interix*)
11469         # This is c89, which is MS Visual C++ (no shared libs)
11470         # Anyone wants to do a port?
11471         ;;
11472       irix5* | irix6* | nonstopux*)
11473         case $cc_basename in
11474           CC*)
11475             lt_prog_compiler_wl_CXX='-Wl,'
11476             lt_prog_compiler_static_CXX='-non_shared'
11477             # CC pic flag -KPIC is the default.
11478             ;;
11479           *)
11480             ;;
11481         esac
11482         ;;
11483       linux* | k*bsd*-gnu)
11484         case $cc_basename in
11485           KCC*)
11486             # KAI C++ Compiler
11487             lt_prog_compiler_wl_CXX='--backend -Wl,'
11488             lt_prog_compiler_pic_CXX='-fPIC'
11489             ;;
11490           icpc* | ecpc*)
11491             # Intel C++
11492             lt_prog_compiler_wl_CXX='-Wl,'
11493             lt_prog_compiler_pic_CXX='-KPIC'
11494             lt_prog_compiler_static_CXX='-static'
11495             ;;
11496           pgCC* | pgcpp*)
11497             # Portland Group C++ compiler.
11498             lt_prog_compiler_wl_CXX='-Wl,'
11499             lt_prog_compiler_pic_CXX='-fpic'
11500             lt_prog_compiler_static_CXX='-Bstatic'
11501             ;;
11502           cxx*)
11503             # Compaq C++
11504             # Make sure the PIC flag is empty.  It appears that all Alpha
11505             # Linux and Compaq Tru64 Unix objects are PIC.
11506             lt_prog_compiler_pic_CXX=
11507             lt_prog_compiler_static_CXX='-non_shared'
11508             ;;
11509           *)
11510             case `$CC -V 2>&1 | sed 5q` in
11511             *Sun\ C*)
11512               # Sun C++ 5.9
11513               lt_prog_compiler_pic_CXX='-KPIC'
11514               lt_prog_compiler_static_CXX='-Bstatic'
11515               lt_prog_compiler_wl_CXX='-Qoption ld '
11516               ;;
11517             esac
11518             ;;
11519         esac
11520         ;;
11521       lynxos*)
11522         ;;
11523       m88k*)
11524         ;;
11525       mvs*)
11526         case $cc_basename in
11527           cxx*)
11528             lt_prog_compiler_pic_CXX='-W c,exportall'
11529             ;;
11530           *)
11531             ;;
11532         esac
11533         ;;
11534       netbsd*)
11535         ;;
11536       osf3* | osf4* | osf5*)
11537         case $cc_basename in
11538           KCC*)
11539             lt_prog_compiler_wl_CXX='--backend -Wl,'
11540             ;;
11541           RCC*)
11542             # Rational C++ 2.4.1
11543             lt_prog_compiler_pic_CXX='-pic'
11544             ;;
11545           cxx*)
11546             # Digital/Compaq C++
11547             lt_prog_compiler_wl_CXX='-Wl,'
11548             # Make sure the PIC flag is empty.  It appears that all Alpha
11549             # Linux and Compaq Tru64 Unix objects are PIC.
11550             lt_prog_compiler_pic_CXX=
11551             lt_prog_compiler_static_CXX='-non_shared'
11552             ;;
11553           *)
11554             ;;
11555         esac
11556         ;;
11557       psos*)
11558         ;;
11559       solaris*)
11560         case $cc_basename in
11561           CC*)
11562             # Sun C++ 4.2, 5.x and Centerline C++
11563             lt_prog_compiler_pic_CXX='-KPIC'
11564             lt_prog_compiler_static_CXX='-Bstatic'
11565             lt_prog_compiler_wl_CXX='-Qoption ld '
11566             ;;
11567           gcx*)
11568             # Green Hills C++ Compiler
11569             lt_prog_compiler_pic_CXX='-PIC'
11570             ;;
11571           *)
11572             ;;
11573         esac
11574         ;;
11575       sunos4*)
11576         case $cc_basename in
11577           CC*)
11578             # Sun C++ 4.x
11579             lt_prog_compiler_pic_CXX='-pic'
11580             lt_prog_compiler_static_CXX='-Bstatic'
11581             ;;
11582           lcc*)
11583             # Lucid
11584             lt_prog_compiler_pic_CXX='-pic'
11585             ;;
11586           *)
11587             ;;
11588         esac
11589         ;;
11590       tandem*)
11591         case $cc_basename in
11592           NCC*)
11593             # NonStop-UX NCC 3.20
11594             lt_prog_compiler_pic_CXX='-KPIC'
11595             ;;
11596           *)
11597             ;;
11598         esac
11599         ;;
11600       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11601         case $cc_basename in
11602           CC*)
11603             lt_prog_compiler_wl_CXX='-Wl,'
11604             lt_prog_compiler_pic_CXX='-KPIC'
11605             lt_prog_compiler_static_CXX='-Bstatic'
11606             ;;
11607         esac
11608         ;;
11609       vxworks*)
11610         ;;
11611       *)
11612         lt_prog_compiler_can_build_shared_CXX=no
11613         ;;
11614     esac
11615   fi
11616
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11618 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11619
11620 #
11621 # Check to make sure the PIC flag actually works.
11622 #
11623 if test -n "$lt_prog_compiler_pic_CXX"; then
11624
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11626 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11627 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
11628   $as_echo_n "(cached) " >&6
11629 else
11630   lt_cv_prog_compiler_pic_works_CXX=no
11631   ac_outfile=conftest.$ac_objext
11632    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11633    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11634    # Insert the option either (1) after the last *FLAGS variable, or
11635    # (2) before a word containing "conftest.", or (3) at the end.
11636    # Note that $ac_compile itself does not contain backslashes and begins
11637    # with a dollar sign (not a hyphen), so the echo should work correctly.
11638    # The option is referenced via a variable to avoid confusing sed.
11639    lt_compile=`echo "$ac_compile" | $SED \
11640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11642    -e 's:$: $lt_compiler_flag:'`
11643    (eval echo "\"\$as_me:11643: $lt_compile\"" >&5)
11644    (eval "$lt_compile" 2>conftest.err)
11645    ac_status=$?
11646    cat conftest.err >&5
11647    echo "$as_me:11647: \$? = $ac_status" >&5
11648    if (exit $ac_status) && test -s "$ac_outfile"; then
11649      # The compiler can only warn and ignore the option if not recognized
11650      # So say no if there are warnings other than the usual output.
11651      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11652      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11653      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11654        lt_cv_prog_compiler_pic_works_CXX=yes
11655      fi
11656    fi
11657    $rm conftest*
11658
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
11661 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
11662
11663 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
11664     case $lt_prog_compiler_pic_CXX in
11665      "" | " "*) ;;
11666      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11667      esac
11668 else
11669     lt_prog_compiler_pic_CXX=
11670      lt_prog_compiler_can_build_shared_CXX=no
11671 fi
11672
11673 fi
11674 case $host_os in
11675   # For platforms which do not support PIC, -DPIC is meaningless:
11676   *djgpp*)
11677     lt_prog_compiler_pic_CXX=
11678     ;;
11679   *)
11680     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11681     ;;
11682 esac
11683
11684 #
11685 # Check to make sure the static flag actually works.
11686 #
11687 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11690 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   lt_cv_prog_compiler_static_works_CXX=no
11694    save_LDFLAGS="$LDFLAGS"
11695    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11696    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11697    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11698      # The linker can only warn and ignore the option if not recognized
11699      # So say no if there are warnings
11700      if test -s conftest.err; then
11701        # Append any errors to the config.log.
11702        cat conftest.err 1>&5
11703        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11704        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11705        if diff conftest.exp conftest.er2 >/dev/null; then
11706          lt_cv_prog_compiler_static_works_CXX=yes
11707        fi
11708      else
11709        lt_cv_prog_compiler_static_works_CXX=yes
11710      fi
11711    fi
11712    $rm -r conftest*
11713    LDFLAGS="$save_LDFLAGS"
11714
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
11717 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
11718
11719 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
11720     :
11721 else
11722     lt_prog_compiler_static_CXX=
11723 fi
11724
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11727 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11728 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
11729   $as_echo_n "(cached) " >&6
11730 else
11731   lt_cv_prog_compiler_c_o_CXX=no
11732    $rm -r conftest 2>/dev/null
11733    mkdir conftest
11734    cd conftest
11735    mkdir out
11736    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11737
11738    lt_compiler_flag="-o out/conftest2.$ac_objext"
11739    # Insert the option either (1) after the last *FLAGS variable, or
11740    # (2) before a word containing "conftest.", or (3) at the end.
11741    # Note that $ac_compile itself does not contain backslashes and begins
11742    # with a dollar sign (not a hyphen), so the echo should work correctly.
11743    lt_compile=`echo "$ac_compile" | $SED \
11744    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11746    -e 's:$: $lt_compiler_flag:'`
11747    (eval echo "\"\$as_me:11747: $lt_compile\"" >&5)
11748    (eval "$lt_compile" 2>out/conftest.err)
11749    ac_status=$?
11750    cat out/conftest.err >&5
11751    echo "$as_me:11751: \$? = $ac_status" >&5
11752    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11753    then
11754      # The compiler can only warn and ignore the option if not recognized
11755      # So say no if there are warnings
11756      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11757      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11758      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11759        lt_cv_prog_compiler_c_o_CXX=yes
11760      fi
11761    fi
11762    chmod u+w . 2>&5
11763    $rm conftest*
11764    # SGI C++ compiler will create directory out/ii_files/ for
11765    # template instantiation
11766    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11767    $rm out/* && rmdir out
11768    cd ..
11769    rmdir conftest
11770    $rm conftest*
11771
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11774 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11775
11776
11777 hard_links="nottested"
11778 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11779   # do not overwrite the value of need_locks provided by the user
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11781 $as_echo_n "checking if we can lock with hard links... " >&6; }
11782   hard_links=yes
11783   $rm conftest*
11784   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11785   touch conftest.a
11786   ln conftest.a conftest.b 2>&5 || hard_links=no
11787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11789 $as_echo "$hard_links" >&6; }
11790   if test "$hard_links" = no; then
11791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11793     need_locks=warn
11794   fi
11795 else
11796   need_locks=no
11797 fi
11798
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11800 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11801
11802   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11803   case $host_os in
11804   aix[4-9]*)
11805     # If we're using GNU nm, then we don't want the "-C" option.
11806     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11807     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11808       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11809     else
11810       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11811     fi
11812     ;;
11813   pw32*)
11814     export_symbols_cmds_CXX="$ltdll_cmds"
11815   ;;
11816   cygwin* | mingw*)
11817     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11818   ;;
11819   *)
11820     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11821   ;;
11822   esac
11823   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11824
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11826 $as_echo "$ld_shlibs_CXX" >&6; }
11827 test "$ld_shlibs_CXX" = no && can_build_shared=no
11828
11829 #
11830 # Do we need to explicitly link libc?
11831 #
11832 case "x$archive_cmds_need_lc_CXX" in
11833 x|xyes)
11834   # Assume -lc should be added
11835   archive_cmds_need_lc_CXX=yes
11836
11837   if test "$enable_shared" = yes && test "$GCC" = yes; then
11838     case $archive_cmds_CXX in
11839     *'~'*)
11840       # FIXME: we may have to deal with multi-command sequences.
11841       ;;
11842     '$CC '*)
11843       # Test whether the compiler implicitly links with -lc since on some
11844       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11845       # to ld, don't add -lc before -lgcc.
11846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11848       $rm conftest*
11849       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11850
11851       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11852   (eval $ac_compile) 2>&5
11853   ac_status=$?
11854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11855   test $ac_status = 0; } 2>conftest.err; then
11856         soname=conftest
11857         lib=conftest
11858         libobjs=conftest.$ac_objext
11859         deplibs=
11860         wl=$lt_prog_compiler_wl_CXX
11861         pic_flag=$lt_prog_compiler_pic_CXX
11862         compiler_flags=-v
11863         linker_flags=-v
11864         verstring=
11865         output_objdir=.
11866         libname=conftest
11867         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11868         allow_undefined_flag_CXX=
11869         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11870   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11871   ac_status=$?
11872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873   test $ac_status = 0; }
11874         then
11875           archive_cmds_need_lc_CXX=no
11876         else
11877           archive_cmds_need_lc_CXX=yes
11878         fi
11879         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11880       else
11881         cat conftest.err 1>&5
11882       fi
11883       $rm conftest*
11884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11885 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11886       ;;
11887     esac
11888   fi
11889   ;;
11890 esac
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11893 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11894 library_names_spec=
11895 libname_spec='lib$name'
11896 soname_spec=
11897 shrext_cmds=".so"
11898 postinstall_cmds=
11899 postuninstall_cmds=
11900 finish_cmds=
11901 finish_eval=
11902 shlibpath_var=
11903 shlibpath_overrides_runpath=unknown
11904 version_type=none
11905 dynamic_linker="$host_os ld.so"
11906 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11907
11908 need_lib_prefix=unknown
11909 hardcode_into_libs=no
11910
11911 # when you set need_version to no, make sure it does not cause -set_version
11912 # flags to be left without arguments
11913 need_version=unknown
11914
11915 case $host_os in
11916 aix3*)
11917   version_type=linux
11918   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11919   shlibpath_var=LIBPATH
11920
11921   # AIX 3 has no versioning support, so we append a major version to the name.
11922   soname_spec='${libname}${release}${shared_ext}$major'
11923   ;;
11924
11925 aix[4-9]*)
11926   version_type=linux
11927   need_lib_prefix=no
11928   need_version=no
11929   hardcode_into_libs=yes
11930   if test "$host_cpu" = ia64; then
11931     # AIX 5 supports IA64
11932     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11933     shlibpath_var=LD_LIBRARY_PATH
11934   else
11935     # With GCC up to 2.95.x, collect2 would create an import file
11936     # for dependence libraries.  The import file would start with
11937     # the line `#! .'.  This would cause the generated library to
11938     # depend on `.', always an invalid library.  This was fixed in
11939     # development snapshots of GCC prior to 3.0.
11940     case $host_os in
11941       aix4 | aix4.[01] | aix4.[01].*)
11942       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11943            echo ' yes '
11944            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11945         :
11946       else
11947         can_build_shared=no
11948       fi
11949       ;;
11950     esac
11951     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11952     # soname into executable. Probably we can add versioning support to
11953     # collect2, so additional links can be useful in future.
11954     if test "$aix_use_runtimelinking" = yes; then
11955       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11956       # instead of lib<name>.a to let people know that these are not
11957       # typical AIX shared libraries.
11958       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959     else
11960       # We preserve .a as extension for shared libraries through AIX4.2
11961       # and later when we are not doing run time linking.
11962       library_names_spec='${libname}${release}.a $libname.a'
11963       soname_spec='${libname}${release}${shared_ext}$major'
11964     fi
11965     shlibpath_var=LIBPATH
11966   fi
11967   ;;
11968
11969 amigaos*)
11970   library_names_spec='$libname.ixlibrary $libname.a'
11971   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11972   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
11973   ;;
11974
11975 beos*)
11976   library_names_spec='${libname}${shared_ext}'
11977   dynamic_linker="$host_os ld.so"
11978   shlibpath_var=LIBRARY_PATH
11979   ;;
11980
11981 bsdi[45]*)
11982   version_type=linux
11983   need_version=no
11984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985   soname_spec='${libname}${release}${shared_ext}$major'
11986   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11987   shlibpath_var=LD_LIBRARY_PATH
11988   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11989   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11990   # the default ld.so.conf also contains /usr/contrib/lib and
11991   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11992   # libtool to hard-code these into programs
11993   ;;
11994
11995 cygwin* | mingw* | pw32*)
11996   version_type=windows
11997   shrext_cmds=".dll"
11998   need_version=no
11999   need_lib_prefix=no
12000
12001   case $GCC,$host_os in
12002   yes,cygwin* | yes,mingw* | yes,pw32*)
12003     library_names_spec='$libname.dll.a'
12004     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12005     postinstall_cmds='base_file=`basename \${file}`~
12006       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12007       dldir=$destdir/`dirname \$dlpath`~
12008       test -d \$dldir || mkdir -p \$dldir~
12009       $install_prog $dir/$dlname \$dldir/$dlname~
12010       chmod a+x \$dldir/$dlname'
12011     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12012       dlpath=$dir/\$dldll~
12013        $rm \$dlpath'
12014     shlibpath_overrides_runpath=yes
12015
12016     case $host_os in
12017     cygwin*)
12018       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12019       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12020       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12021       ;;
12022     mingw*)
12023       # MinGW DLLs use traditional 'lib' prefix
12024       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12025       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12026       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12027         # It is most probably a Windows format PATH printed by
12028         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12029         # path with ; separators, and with drive letters. We can handle the
12030         # drive letters (cygwin fileutils understands them), so leave them,
12031         # especially as we might pass files found there to a mingw objdump,
12032         # which wouldn't understand a cygwinified path. Ahh.
12033         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12034       else
12035         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12036       fi
12037       ;;
12038     pw32*)
12039       # pw32 DLLs use 'pw' prefix rather than 'lib'
12040       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12041       ;;
12042     esac
12043     ;;
12044
12045   *)
12046     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12047     ;;
12048   esac
12049   dynamic_linker='Win32 ld.exe'
12050   # FIXME: first we should search . and the directory the executable is in
12051   shlibpath_var=PATH
12052   ;;
12053
12054 darwin* | rhapsody*)
12055   dynamic_linker="$host_os dyld"
12056   version_type=darwin
12057   need_lib_prefix=no
12058   need_version=no
12059   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12060   soname_spec='${libname}${release}${major}$shared_ext'
12061   shlibpath_overrides_runpath=yes
12062   shlibpath_var=DYLD_LIBRARY_PATH
12063   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12064
12065   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12066   ;;
12067
12068 dgux*)
12069   version_type=linux
12070   need_lib_prefix=no
12071   need_version=no
12072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12073   soname_spec='${libname}${release}${shared_ext}$major'
12074   shlibpath_var=LD_LIBRARY_PATH
12075   ;;
12076
12077 freebsd1*)
12078   dynamic_linker=no
12079   ;;
12080
12081 freebsd* | dragonfly*)
12082   # DragonFly does not have aout.  When/if they implement a new
12083   # versioning mechanism, adjust this.
12084   if test -x /usr/bin/objformat; then
12085     objformat=`/usr/bin/objformat`
12086   else
12087     case $host_os in
12088     freebsd[123]*) objformat=aout ;;
12089     *) objformat=elf ;;
12090     esac
12091   fi
12092   version_type=freebsd-$objformat
12093   case $version_type in
12094     freebsd-elf*)
12095       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12096       need_version=no
12097       need_lib_prefix=no
12098       ;;
12099     freebsd-*)
12100       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12101       need_version=yes
12102       ;;
12103   esac
12104   shlibpath_var=LD_LIBRARY_PATH
12105   case $host_os in
12106   freebsd2*)
12107     shlibpath_overrides_runpath=yes
12108     ;;
12109   freebsd3.[01]* | freebsdelf3.[01]*)
12110     shlibpath_overrides_runpath=yes
12111     hardcode_into_libs=yes
12112     ;;
12113   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12114   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12115     shlibpath_overrides_runpath=no
12116     hardcode_into_libs=yes
12117     ;;
12118   *) # from 4.6 on, and DragonFly
12119     shlibpath_overrides_runpath=yes
12120     hardcode_into_libs=yes
12121     ;;
12122   esac
12123   ;;
12124
12125 gnu*)
12126   version_type=linux
12127   need_lib_prefix=no
12128   need_version=no
12129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12130   soname_spec='${libname}${release}${shared_ext}$major'
12131   shlibpath_var=LD_LIBRARY_PATH
12132   hardcode_into_libs=yes
12133   ;;
12134
12135 hpux9* | hpux10* | hpux11*)
12136   # Give a soname corresponding to the major version so that dld.sl refuses to
12137   # link against other versions.
12138   version_type=sunos
12139   need_lib_prefix=no
12140   need_version=no
12141   case $host_cpu in
12142   ia64*)
12143     shrext_cmds='.so'
12144     hardcode_into_libs=yes
12145     dynamic_linker="$host_os dld.so"
12146     shlibpath_var=LD_LIBRARY_PATH
12147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149     soname_spec='${libname}${release}${shared_ext}$major'
12150     if test "X$HPUX_IA64_MODE" = X32; then
12151       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12152     else
12153       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12154     fi
12155     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12156     ;;
12157    hppa*64*)
12158      shrext_cmds='.sl'
12159      hardcode_into_libs=yes
12160      dynamic_linker="$host_os dld.sl"
12161      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12162      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12163      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164      soname_spec='${libname}${release}${shared_ext}$major'
12165      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12166      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12167      ;;
12168    *)
12169     shrext_cmds='.sl'
12170     dynamic_linker="$host_os dld.sl"
12171     shlibpath_var=SHLIB_PATH
12172     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174     soname_spec='${libname}${release}${shared_ext}$major'
12175     ;;
12176   esac
12177   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12178   postinstall_cmds='chmod 555 $lib'
12179   ;;
12180
12181 interix[3-9]*)
12182   version_type=linux
12183   need_lib_prefix=no
12184   need_version=no
12185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12186   soname_spec='${libname}${release}${shared_ext}$major'
12187   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12188   shlibpath_var=LD_LIBRARY_PATH
12189   shlibpath_overrides_runpath=no
12190   hardcode_into_libs=yes
12191   ;;
12192
12193 irix5* | irix6* | nonstopux*)
12194   case $host_os in
12195     nonstopux*) version_type=nonstopux ;;
12196     *)
12197         if test "$lt_cv_prog_gnu_ld" = yes; then
12198                 version_type=linux
12199         else
12200                 version_type=irix
12201         fi ;;
12202   esac
12203   need_lib_prefix=no
12204   need_version=no
12205   soname_spec='${libname}${release}${shared_ext}$major'
12206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12207   case $host_os in
12208   irix5* | nonstopux*)
12209     libsuff= shlibsuff=
12210     ;;
12211   *)
12212     case $LD in # libtool.m4 will add one of these switches to LD
12213     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12214       libsuff= shlibsuff= libmagic=32-bit;;
12215     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12216       libsuff=32 shlibsuff=N32 libmagic=N32;;
12217     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12218       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12219     *) libsuff= shlibsuff= libmagic=never-match;;
12220     esac
12221     ;;
12222   esac
12223   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12224   shlibpath_overrides_runpath=no
12225   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12226   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12227   hardcode_into_libs=yes
12228   ;;
12229
12230 # No shared lib support for Linux oldld, aout, or coff.
12231 linux*oldld* | linux*aout* | linux*coff*)
12232   dynamic_linker=no
12233   ;;
12234
12235 # This must be Linux ELF.
12236 linux* | k*bsd*-gnu)
12237   version_type=linux
12238   need_lib_prefix=no
12239   need_version=no
12240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241   soname_spec='${libname}${release}${shared_ext}$major'
12242   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12243   shlibpath_var=LD_LIBRARY_PATH
12244   shlibpath_overrides_runpath=no
12245   # This implies no fast_install, which is unacceptable.
12246   # Some rework will be needed to allow for fast_install
12247   # before this can be enabled.
12248   hardcode_into_libs=yes
12249
12250   # Append ld.so.conf contents to the search path
12251   if test -f /etc/ld.so.conf; then
12252     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;/^$/d' | tr '\n' ' '`
12253     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12254   fi
12255
12256   # We used to test for /lib/ld.so.1 and disable shared libraries on
12257   # powerpc, because MkLinux only supported shared libraries with the
12258   # GNU dynamic linker.  Since this was broken with cross compilers,
12259   # most powerpc-linux boxes support dynamic linking these days and
12260   # people can always --disable-shared, the test was removed, and we
12261   # assume the GNU/Linux dynamic linker is in use.
12262   dynamic_linker='GNU/Linux ld.so'
12263   ;;
12264
12265 netbsd*)
12266   version_type=sunos
12267   need_lib_prefix=no
12268   need_version=no
12269   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272     dynamic_linker='NetBSD (a.out) ld.so'
12273   else
12274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12275     soname_spec='${libname}${release}${shared_ext}$major'
12276     dynamic_linker='NetBSD ld.elf_so'
12277   fi
12278   shlibpath_var=LD_LIBRARY_PATH
12279   shlibpath_overrides_runpath=yes
12280   hardcode_into_libs=yes
12281   ;;
12282
12283 newsos6)
12284   version_type=linux
12285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12286   shlibpath_var=LD_LIBRARY_PATH
12287   shlibpath_overrides_runpath=yes
12288   ;;
12289
12290 nto-qnx*)
12291   version_type=linux
12292   need_lib_prefix=no
12293   need_version=no
12294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12295   soname_spec='${libname}${release}${shared_ext}$major'
12296   shlibpath_var=LD_LIBRARY_PATH
12297   shlibpath_overrides_runpath=yes
12298   ;;
12299
12300 openbsd*)
12301   version_type=sunos
12302   sys_lib_dlsearch_path_spec="/usr/lib"
12303   need_lib_prefix=no
12304   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12305   case $host_os in
12306     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12307     *)                         need_version=no  ;;
12308   esac
12309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12310   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12311   shlibpath_var=LD_LIBRARY_PATH
12312   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12313     case $host_os in
12314       openbsd2.[89] | openbsd2.[89].*)
12315         shlibpath_overrides_runpath=no
12316         ;;
12317       *)
12318         shlibpath_overrides_runpath=yes
12319         ;;
12320       esac
12321   else
12322     shlibpath_overrides_runpath=yes
12323   fi
12324   ;;
12325
12326 os2*)
12327   libname_spec='$name'
12328   shrext_cmds=".dll"
12329   need_lib_prefix=no
12330   library_names_spec='$libname${shared_ext} $libname.a'
12331   dynamic_linker='OS/2 ld.exe'
12332   shlibpath_var=LIBPATH
12333   ;;
12334
12335 osf3* | osf4* | osf5*)
12336   version_type=osf
12337   need_lib_prefix=no
12338   need_version=no
12339   soname_spec='${libname}${release}${shared_ext}$major'
12340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341   shlibpath_var=LD_LIBRARY_PATH
12342   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12343   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12344   ;;
12345
12346 rdos*)
12347   dynamic_linker=no
12348   ;;
12349
12350 solaris*)
12351   version_type=linux
12352   need_lib_prefix=no
12353   need_version=no
12354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12355   soname_spec='${libname}${release}${shared_ext}$major'
12356   shlibpath_var=LD_LIBRARY_PATH
12357   shlibpath_overrides_runpath=yes
12358   hardcode_into_libs=yes
12359   # ldd complains unless libraries are executable
12360   postinstall_cmds='chmod +x $lib'
12361   ;;
12362
12363 sunos4*)
12364   version_type=sunos
12365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12366   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12367   shlibpath_var=LD_LIBRARY_PATH
12368   shlibpath_overrides_runpath=yes
12369   if test "$with_gnu_ld" = yes; then
12370     need_lib_prefix=no
12371   fi
12372   need_version=yes
12373   ;;
12374
12375 sysv4 | sysv4.3*)
12376   version_type=linux
12377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378   soname_spec='${libname}${release}${shared_ext}$major'
12379   shlibpath_var=LD_LIBRARY_PATH
12380   case $host_vendor in
12381     sni)
12382       shlibpath_overrides_runpath=no
12383       need_lib_prefix=no
12384       export_dynamic_flag_spec='${wl}-Blargedynsym'
12385       runpath_var=LD_RUN_PATH
12386       ;;
12387     siemens)
12388       need_lib_prefix=no
12389       ;;
12390     motorola)
12391       need_lib_prefix=no
12392       need_version=no
12393       shlibpath_overrides_runpath=no
12394       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12395       ;;
12396   esac
12397   ;;
12398
12399 sysv4*MP*)
12400   if test -d /usr/nec ;then
12401     version_type=linux
12402     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12403     soname_spec='$libname${shared_ext}.$major'
12404     shlibpath_var=LD_LIBRARY_PATH
12405   fi
12406   ;;
12407
12408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12409   version_type=freebsd-elf
12410   need_lib_prefix=no
12411   need_version=no
12412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12413   soname_spec='${libname}${release}${shared_ext}$major'
12414   shlibpath_var=LD_LIBRARY_PATH
12415   hardcode_into_libs=yes
12416   if test "$with_gnu_ld" = yes; then
12417     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12418     shlibpath_overrides_runpath=no
12419   else
12420     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12421     shlibpath_overrides_runpath=yes
12422     case $host_os in
12423       sco3.2v5*)
12424         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12425         ;;
12426     esac
12427   fi
12428   sys_lib_dlsearch_path_spec='/usr/lib'
12429   ;;
12430
12431 uts4*)
12432   version_type=linux
12433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12434   soname_spec='${libname}${release}${shared_ext}$major'
12435   shlibpath_var=LD_LIBRARY_PATH
12436   ;;
12437
12438 *)
12439   dynamic_linker=no
12440   ;;
12441 esac
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12443 $as_echo "$dynamic_linker" >&6; }
12444 test "$dynamic_linker" = no && can_build_shared=no
12445
12446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12447   $as_echo_n "(cached) " >&6
12448 else
12449   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12450 fi
12451
12452 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12453 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12457 fi
12458
12459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12460
12461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12462 if test "$GCC" = yes; then
12463   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12464 fi
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12467 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12468 hardcode_action_CXX=
12469 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12470    test -n "$runpath_var_CXX" || \
12471    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12472
12473   # We can hardcode non-existant directories.
12474   if test "$hardcode_direct_CXX" != no &&
12475      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12476      # have to relink, otherwise we might link with an installed library
12477      # when we should be linking with a yet-to-be-installed one
12478      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12479      test "$hardcode_minus_L_CXX" != no; then
12480     # Linking always hardcodes the temporary library directory.
12481     hardcode_action_CXX=relink
12482   else
12483     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12484     hardcode_action_CXX=immediate
12485   fi
12486 else
12487   # We cannot hardcode anything, or else we can only hardcode existing
12488   # directories.
12489   hardcode_action_CXX=unsupported
12490 fi
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12492 $as_echo "$hardcode_action_CXX" >&6; }
12493
12494 if test "$hardcode_action_CXX" = relink; then
12495   # Fast installation is not supported
12496   enable_fast_install=no
12497 elif test "$shlibpath_overrides_runpath" = yes ||
12498      test "$enable_shared" = no; then
12499   # Fast installation is not necessary
12500   enable_fast_install=needless
12501 fi
12502
12503
12504 # The else clause should only fire when bootstrapping the
12505 # libtool distribution, otherwise you forgot to ship ltmain.sh
12506 # with your package, and you will get complaints that there are
12507 # no rules to generate ltmain.sh.
12508 if test -f "$ltmain"; then
12509   # See if we are running on zsh, and set the options which allow our commands through
12510   # without removal of \ escapes.
12511   if test -n "${ZSH_VERSION+set}" ; then
12512     setopt NO_GLOB_SUBST
12513   fi
12514   # Now quote all the things that may contain metacharacters while being
12515   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12516   # variables and quote the copies for generation of the libtool script.
12517   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12518     SED SHELL STRIP \
12519     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12520     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12521     deplibs_check_method reload_flag reload_cmds need_locks \
12522     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12523     lt_cv_sys_global_symbol_to_c_name_address \
12524     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12525     old_postinstall_cmds old_postuninstall_cmds \
12526     compiler_CXX \
12527     CC_CXX \
12528     LD_CXX \
12529     lt_prog_compiler_wl_CXX \
12530     lt_prog_compiler_pic_CXX \
12531     lt_prog_compiler_static_CXX \
12532     lt_prog_compiler_no_builtin_flag_CXX \
12533     export_dynamic_flag_spec_CXX \
12534     thread_safe_flag_spec_CXX \
12535     whole_archive_flag_spec_CXX \
12536     enable_shared_with_static_runtimes_CXX \
12537     old_archive_cmds_CXX \
12538     old_archive_from_new_cmds_CXX \
12539     predep_objects_CXX \
12540     postdep_objects_CXX \
12541     predeps_CXX \
12542     postdeps_CXX \
12543     compiler_lib_search_path_CXX \
12544     compiler_lib_search_dirs_CXX \
12545     archive_cmds_CXX \
12546     archive_expsym_cmds_CXX \
12547     postinstall_cmds_CXX \
12548     postuninstall_cmds_CXX \
12549     old_archive_from_expsyms_cmds_CXX \
12550     allow_undefined_flag_CXX \
12551     no_undefined_flag_CXX \
12552     export_symbols_cmds_CXX \
12553     hardcode_libdir_flag_spec_CXX \
12554     hardcode_libdir_flag_spec_ld_CXX \
12555     hardcode_libdir_separator_CXX \
12556     hardcode_automatic_CXX \
12557     module_cmds_CXX \
12558     module_expsym_cmds_CXX \
12559     lt_cv_prog_compiler_c_o_CXX \
12560     fix_srcfile_path_CXX \
12561     exclude_expsyms_CXX \
12562     include_expsyms_CXX; do
12563
12564     case $var in
12565     old_archive_cmds_CXX | \
12566     old_archive_from_new_cmds_CXX | \
12567     archive_cmds_CXX | \
12568     archive_expsym_cmds_CXX | \
12569     module_cmds_CXX | \
12570     module_expsym_cmds_CXX | \
12571     old_archive_from_expsyms_cmds_CXX | \
12572     export_symbols_cmds_CXX | \
12573     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12574     postinstall_cmds | postuninstall_cmds | \
12575     old_postinstall_cmds | old_postuninstall_cmds | \
12576     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12577       # Double-quote double-evaled strings.
12578       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12579       ;;
12580     *)
12581       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12582       ;;
12583     esac
12584   done
12585
12586   case $lt_echo in
12587   *'\$0 --fallback-echo"')
12588     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12589     ;;
12590   esac
12591
12592 cfgfile="$ofile"
12593
12594   cat <<__EOF__ >> "$cfgfile"
12595 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12596
12597 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12598
12599 # Shell to use when invoking shell scripts.
12600 SHELL=$lt_SHELL
12601
12602 # Whether or not to build shared libraries.
12603 build_libtool_libs=$enable_shared
12604
12605 # Whether or not to build static libraries.
12606 build_old_libs=$enable_static
12607
12608 # Whether or not to add -lc for building shared libraries.
12609 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12610
12611 # Whether or not to disallow shared libs when runtime libs are static
12612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12613
12614 # Whether or not to optimize for fast installation.
12615 fast_install=$enable_fast_install
12616
12617 # The host system.
12618 host_alias=$host_alias
12619 host=$host
12620 host_os=$host_os
12621
12622 # The build system.
12623 build_alias=$build_alias
12624 build=$build
12625 build_os=$build_os
12626
12627 # An echo program that does not interpret backslashes.
12628 echo=$lt_echo
12629
12630 # The archiver.
12631 AR=$lt_AR
12632 AR_FLAGS=$lt_AR_FLAGS
12633
12634 # A C compiler.
12635 LTCC=$lt_LTCC
12636
12637 # LTCC compiler flags.
12638 LTCFLAGS=$lt_LTCFLAGS
12639
12640 # A language-specific compiler.
12641 CC=$lt_compiler_CXX
12642
12643 # Is the compiler the GNU C compiler?
12644 with_gcc=$GCC_CXX
12645
12646 # An ERE matcher.
12647 EGREP=$lt_EGREP
12648
12649 # The linker used to build libraries.
12650 LD=$lt_LD_CXX
12651
12652 # Whether we need hard or soft links.
12653 LN_S=$lt_LN_S
12654
12655 # A BSD-compatible nm program.
12656 NM=$lt_NM
12657
12658 # A symbol stripping program
12659 STRIP=$lt_STRIP
12660
12661 # Used to examine libraries when file_magic_cmd begins "file"
12662 MAGIC_CMD=$MAGIC_CMD
12663
12664 # Used on cygwin: DLL creation program.
12665 DLLTOOL="$DLLTOOL"
12666
12667 # Used on cygwin: object dumper.
12668 OBJDUMP="$OBJDUMP"
12669
12670 # Used on cygwin: assembler.
12671 AS="$AS"
12672
12673 # The name of the directory that contains temporary libtool files.
12674 objdir=$objdir
12675
12676 # How to create reloadable object files.
12677 reload_flag=$lt_reload_flag
12678 reload_cmds=$lt_reload_cmds
12679
12680 # How to pass a linker flag through the compiler.
12681 wl=$lt_lt_prog_compiler_wl_CXX
12682
12683 # Object file suffix (normally "o").
12684 objext="$ac_objext"
12685
12686 # Old archive suffix (normally "a").
12687 libext="$libext"
12688
12689 # Shared library suffix (normally ".so").
12690 shrext_cmds='$shrext_cmds'
12691
12692 # Executable file suffix (normally "").
12693 exeext="$exeext"
12694
12695 # Additional compiler flags for building library objects.
12696 pic_flag=$lt_lt_prog_compiler_pic_CXX
12697 pic_mode=$pic_mode
12698
12699 # What is the maximum length of a command?
12700 max_cmd_len=$lt_cv_sys_max_cmd_len
12701
12702 # Does compiler simultaneously support -c and -o options?
12703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12704
12705 # Must we lock files when doing compilation?
12706 need_locks=$lt_need_locks
12707
12708 # Do we need the lib prefix for modules?
12709 need_lib_prefix=$need_lib_prefix
12710
12711 # Do we need a version for libraries?
12712 need_version=$need_version
12713
12714 # Whether dlopen is supported.
12715 dlopen_support=$enable_dlopen
12716
12717 # Whether dlopen of programs is supported.
12718 dlopen_self=$enable_dlopen_self
12719
12720 # Whether dlopen of statically linked programs is supported.
12721 dlopen_self_static=$enable_dlopen_self_static
12722
12723 # Compiler flag to prevent dynamic linking.
12724 link_static_flag=$lt_lt_prog_compiler_static_CXX
12725
12726 # Compiler flag to turn off builtin functions.
12727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12728
12729 # Compiler flag to allow reflexive dlopens.
12730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12731
12732 # Compiler flag to generate shared objects directly from archives.
12733 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12734
12735 # Compiler flag to generate thread-safe objects.
12736 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12737
12738 # Library versioning type.
12739 version_type=$version_type
12740
12741 # Format of library name prefix.
12742 libname_spec=$lt_libname_spec
12743
12744 # List of archive names.  First name is the real one, the rest are links.
12745 # The last name is the one that the linker finds with -lNAME.
12746 library_names_spec=$lt_library_names_spec
12747
12748 # The coded name of the library, if different from the real name.
12749 soname_spec=$lt_soname_spec
12750
12751 # Commands used to build and install an old-style archive.
12752 RANLIB=$lt_RANLIB
12753 old_archive_cmds=$lt_old_archive_cmds_CXX
12754 old_postinstall_cmds=$lt_old_postinstall_cmds
12755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12756
12757 # Create an old-style archive from a shared archive.
12758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12759
12760 # Create a temporary old-style archive to link instead of a shared archive.
12761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12762
12763 # Commands used to build and install a shared archive.
12764 archive_cmds=$lt_archive_cmds_CXX
12765 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12766 postinstall_cmds=$lt_postinstall_cmds
12767 postuninstall_cmds=$lt_postuninstall_cmds
12768
12769 # Commands used to build a loadable module (assumed same as above if empty)
12770 module_cmds=$lt_module_cmds_CXX
12771 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12772
12773 # Commands to strip libraries.
12774 old_striplib=$lt_old_striplib
12775 striplib=$lt_striplib
12776
12777 # Dependencies to place before the objects being linked to create a
12778 # shared library.
12779 predep_objects=$lt_predep_objects_CXX
12780
12781 # Dependencies to place after the objects being linked to create a
12782 # shared library.
12783 postdep_objects=$lt_postdep_objects_CXX
12784
12785 # Dependencies to place before the objects being linked to create a
12786 # shared library.
12787 predeps=$lt_predeps_CXX
12788
12789 # Dependencies to place after the objects being linked to create a
12790 # shared library.
12791 postdeps=$lt_postdeps_CXX
12792
12793 # The directories searched by this compiler when creating a shared
12794 # library
12795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
12796
12797 # The library search path used internally by the compiler when linking
12798 # a shared library.
12799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12800
12801 # Method to check whether dependent libraries are shared objects.
12802 deplibs_check_method=$lt_deplibs_check_method
12803
12804 # Command to use when deplibs_check_method == file_magic.
12805 file_magic_cmd=$lt_file_magic_cmd
12806
12807 # Flag that allows shared libraries with undefined symbols to be built.
12808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12809
12810 # Flag that forces no undefined symbols.
12811 no_undefined_flag=$lt_no_undefined_flag_CXX
12812
12813 # Commands used to finish a libtool library installation in a directory.
12814 finish_cmds=$lt_finish_cmds
12815
12816 # Same as above, but a single script fragment to be evaled but not shown.
12817 finish_eval=$lt_finish_eval
12818
12819 # Take the output of nm and produce a listing of raw symbols and C names.
12820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12821
12822 # Transform the output of nm in a proper C declaration
12823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12824
12825 # Transform the output of nm in a C name address pair
12826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12827
12828 # This is the shared library runtime path variable.
12829 runpath_var=$runpath_var
12830
12831 # This is the shared library path variable.
12832 shlibpath_var=$shlibpath_var
12833
12834 # Is shlibpath searched before the hard-coded library search path?
12835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12836
12837 # How to hardcode a shared library path into an executable.
12838 hardcode_action=$hardcode_action_CXX
12839
12840 # Whether we should hardcode library paths into libraries.
12841 hardcode_into_libs=$hardcode_into_libs
12842
12843 # Flag to hardcode \$libdir into a binary during linking.
12844 # This must work even if \$libdir does not exist.
12845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12846
12847 # If ld is used when linking, flag to hardcode \$libdir into
12848 # a binary during linking. This must work even if \$libdir does
12849 # not exist.
12850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12851
12852 # Whether we need a single -rpath flag with a separated argument.
12853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12854
12855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12856 # resulting binary.
12857 hardcode_direct=$hardcode_direct_CXX
12858
12859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12860 # resulting binary.
12861 hardcode_minus_L=$hardcode_minus_L_CXX
12862
12863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12864 # the resulting binary.
12865 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12866
12867 # Set to yes if building a shared library automatically hardcodes DIR into the library
12868 # and all subsequent libraries and executables linked against it.
12869 hardcode_automatic=$hardcode_automatic_CXX
12870
12871 # Variables whose values should be saved in libtool wrapper scripts and
12872 # restored at relink time.
12873 variables_saved_for_relink="$variables_saved_for_relink"
12874
12875 # Whether libtool must link a program against all its dependency libraries.
12876 link_all_deplibs=$link_all_deplibs_CXX
12877
12878 # Compile-time system search path for libraries
12879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12880
12881 # Run-time system search path for libraries
12882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12883
12884 # Fix the shell variable \$srcfile for the compiler.
12885 fix_srcfile_path=$lt_fix_srcfile_path
12886
12887 # Set to yes if exported symbols are required.
12888 always_export_symbols=$always_export_symbols_CXX
12889
12890 # The commands to list exported symbols.
12891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12892
12893 # The commands to extract the exported symbol list from a shared archive.
12894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12895
12896 # Symbols that should not be listed in the preloaded symbols.
12897 exclude_expsyms=$lt_exclude_expsyms_CXX
12898
12899 # Symbols that must always be exported.
12900 include_expsyms=$lt_include_expsyms_CXX
12901
12902 # ### END LIBTOOL TAG CONFIG: $tagname
12903
12904 __EOF__
12905
12906
12907 else
12908   # If there is no Makefile yet, we rely on a make rule to execute
12909   # `config.status --recheck' to rerun these tests and create the
12910   # libtool script then.
12911   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12912   if test -f "$ltmain_in"; then
12913     test -f Makefile && make "$ltmain"
12914   fi
12915 fi
12916
12917
12918 ac_ext=c
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12923
12924 CC=$lt_save_CC
12925 LDCXX=$LD
12926 LD=$lt_save_LD
12927 GCC=$lt_save_GCC
12928 with_gnu_ldcxx=$with_gnu_ld
12929 with_gnu_ld=$lt_save_with_gnu_ld
12930 lt_cv_path_LDCXX=$lt_cv_path_LD
12931 lt_cv_path_LD=$lt_save_path_LD
12932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12934
12935         else
12936           tagname=""
12937         fi
12938         ;;
12939
12940       F77)
12941         if test -n "$F77" && test "X$F77" != "Xno"; then
12942
12943 ac_ext=f
12944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12947
12948
12949 archive_cmds_need_lc_F77=no
12950 allow_undefined_flag_F77=
12951 always_export_symbols_F77=no
12952 archive_expsym_cmds_F77=
12953 export_dynamic_flag_spec_F77=
12954 hardcode_direct_F77=no
12955 hardcode_libdir_flag_spec_F77=
12956 hardcode_libdir_flag_spec_ld_F77=
12957 hardcode_libdir_separator_F77=
12958 hardcode_minus_L_F77=no
12959 hardcode_automatic_F77=no
12960 module_cmds_F77=
12961 module_expsym_cmds_F77=
12962 link_all_deplibs_F77=unknown
12963 old_archive_cmds_F77=$old_archive_cmds
12964 no_undefined_flag_F77=
12965 whole_archive_flag_spec_F77=
12966 enable_shared_with_static_runtimes_F77=no
12967
12968 # Source file extension for f77 test sources.
12969 ac_ext=f
12970
12971 # Object file extension for compiled f77 test sources.
12972 objext=o
12973 objext_F77=$objext
12974
12975 # Code to be used in simple compile tests
12976 lt_simple_compile_test_code="\
12977       subroutine t
12978       return
12979       end
12980 "
12981
12982 # Code to be used in simple link tests
12983 lt_simple_link_test_code="\
12984       program t
12985       end
12986 "
12987
12988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12989
12990 # If no C compiler was specified, use CC.
12991 LTCC=${LTCC-"$CC"}
12992
12993 # If no C compiler flags were specified, use CFLAGS.
12994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12995
12996 # Allow CC to be a program name with arguments.
12997 compiler=$CC
12998
12999
13000 # save warnings/boilerplate of simple test code
13001 ac_outfile=conftest.$ac_objext
13002 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13004 _lt_compiler_boilerplate=`cat conftest.err`
13005 $rm conftest*
13006
13007 ac_outfile=conftest.$ac_objext
13008 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13010 _lt_linker_boilerplate=`cat conftest.err`
13011 $rm -r conftest*
13012
13013
13014 # Allow CC to be a program name with arguments.
13015 lt_save_CC="$CC"
13016 CC=${F77-"f77"}
13017 compiler=$CC
13018 compiler_F77=$CC
13019 for cc_temp in $compiler""; do
13020   case $cc_temp in
13021     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13022     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13023     \-*) ;;
13024     *) break;;
13025   esac
13026 done
13027 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13028
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13031 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13033 $as_echo "$can_build_shared" >&6; }
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13036 $as_echo_n "checking whether to build shared libraries... " >&6; }
13037 test "$can_build_shared" = "no" && enable_shared=no
13038
13039 # On AIX, shared libraries and static libraries use the same namespace, and
13040 # are all built from PIC.
13041 case $host_os in
13042 aix3*)
13043   test "$enable_shared" = yes && enable_static=no
13044   if test -n "$RANLIB"; then
13045     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13046     postinstall_cmds='$RANLIB $lib'
13047   fi
13048   ;;
13049 aix[4-9]*)
13050   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13051     test "$enable_shared" = yes && enable_static=no
13052   fi
13053   ;;
13054 esac
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13056 $as_echo "$enable_shared" >&6; }
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13059 $as_echo_n "checking whether to build static libraries... " >&6; }
13060 # Make sure either enable_shared or enable_static is yes.
13061 test "$enable_shared" = yes || enable_static=yes
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13063 $as_echo "$enable_static" >&6; }
13064
13065 GCC_F77="$G77"
13066 LD_F77="$LD"
13067
13068 lt_prog_compiler_wl_F77=
13069 lt_prog_compiler_pic_F77=
13070 lt_prog_compiler_static_F77=
13071
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13073 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13074
13075   if test "$GCC" = yes; then
13076     lt_prog_compiler_wl_F77='-Wl,'
13077     lt_prog_compiler_static_F77='-static'
13078
13079     case $host_os in
13080       aix*)
13081       # All AIX code is PIC.
13082       if test "$host_cpu" = ia64; then
13083         # AIX 5 now supports IA64 processor
13084         lt_prog_compiler_static_F77='-Bstatic'
13085       fi
13086       ;;
13087
13088     amigaos*)
13089       # FIXME: we need at least 68020 code to build shared libraries, but
13090       # adding the `-m68020' flag to GCC prevents building anything better,
13091       # like `-m68040'.
13092       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13093       ;;
13094
13095     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13096       # PIC is the default for these OSes.
13097       ;;
13098
13099     mingw* | cygwin* | pw32* | os2*)
13100       # This hack is so that the source file can tell whether it is being
13101       # built for inclusion in a dll (and should export symbols for example).
13102       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13103       # (--disable-auto-import) libraries
13104       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13105       ;;
13106
13107     darwin* | rhapsody*)
13108       # PIC is the default on this platform
13109       # Common symbols not allowed in MH_DYLIB files
13110       lt_prog_compiler_pic_F77='-fno-common'
13111       ;;
13112
13113     interix[3-9]*)
13114       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13115       # Instead, we relocate shared libraries at runtime.
13116       ;;
13117
13118     msdosdjgpp*)
13119       # Just because we use GCC doesn't mean we suddenly get shared libraries
13120       # on systems that don't support them.
13121       lt_prog_compiler_can_build_shared_F77=no
13122       enable_shared=no
13123       ;;
13124
13125     sysv4*MP*)
13126       if test -d /usr/nec; then
13127         lt_prog_compiler_pic_F77=-Kconform_pic
13128       fi
13129       ;;
13130
13131     hpux*)
13132       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13133       # not for PA HP-UX.
13134       case $host_cpu in
13135       hppa*64*|ia64*)
13136         # +Z the default
13137         ;;
13138       *)
13139         lt_prog_compiler_pic_F77='-fPIC'
13140         ;;
13141       esac
13142       ;;
13143
13144     *)
13145       lt_prog_compiler_pic_F77='-fPIC'
13146       ;;
13147     esac
13148   else
13149     # PORTME Check for flag to pass linker flags through the system compiler.
13150     case $host_os in
13151     aix*)
13152       lt_prog_compiler_wl_F77='-Wl,'
13153       if test "$host_cpu" = ia64; then
13154         # AIX 5 now supports IA64 processor
13155         lt_prog_compiler_static_F77='-Bstatic'
13156       else
13157         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13158       fi
13159       ;;
13160       darwin*)
13161         # PIC is the default on this platform
13162         # Common symbols not allowed in MH_DYLIB files
13163        case $cc_basename in
13164          xlc*)
13165          lt_prog_compiler_pic_F77='-qnocommon'
13166          lt_prog_compiler_wl_F77='-Wl,'
13167          ;;
13168        esac
13169        ;;
13170
13171     mingw* | cygwin* | pw32* | os2*)
13172       # This hack is so that the source file can tell whether it is being
13173       # built for inclusion in a dll (and should export symbols for example).
13174       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13175       ;;
13176
13177     hpux9* | hpux10* | hpux11*)
13178       lt_prog_compiler_wl_F77='-Wl,'
13179       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13180       # not for PA HP-UX.
13181       case $host_cpu in
13182       hppa*64*|ia64*)
13183         # +Z the default
13184         ;;
13185       *)
13186         lt_prog_compiler_pic_F77='+Z'
13187         ;;
13188       esac
13189       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13190       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13191       ;;
13192
13193     irix5* | irix6* | nonstopux*)
13194       lt_prog_compiler_wl_F77='-Wl,'
13195       # PIC (with -KPIC) is the default.
13196       lt_prog_compiler_static_F77='-non_shared'
13197       ;;
13198
13199     newsos6)
13200       lt_prog_compiler_pic_F77='-KPIC'
13201       lt_prog_compiler_static_F77='-Bstatic'
13202       ;;
13203
13204     linux* | k*bsd*-gnu)
13205       case $cc_basename in
13206       icc* | ecc*)
13207         lt_prog_compiler_wl_F77='-Wl,'
13208         lt_prog_compiler_pic_F77='-KPIC'
13209         lt_prog_compiler_static_F77='-static'
13210         ;;
13211       pgcc* | pgf77* | pgf90* | pgf95*)
13212         # Portland Group compilers (*not* the Pentium gcc compiler,
13213         # which looks to be a dead project)
13214         lt_prog_compiler_wl_F77='-Wl,'
13215         lt_prog_compiler_pic_F77='-fpic'
13216         lt_prog_compiler_static_F77='-Bstatic'
13217         ;;
13218       ccc*)
13219         lt_prog_compiler_wl_F77='-Wl,'
13220         # All Alpha code is PIC.
13221         lt_prog_compiler_static_F77='-non_shared'
13222         ;;
13223       *)
13224         case `$CC -V 2>&1 | sed 5q` in
13225         *Sun\ C*)
13226           # Sun C 5.9
13227           lt_prog_compiler_pic_F77='-KPIC'
13228           lt_prog_compiler_static_F77='-Bstatic'
13229           lt_prog_compiler_wl_F77='-Wl,'
13230           ;;
13231         *Sun\ F*)
13232           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13233           lt_prog_compiler_pic_F77='-KPIC'
13234           lt_prog_compiler_static_F77='-Bstatic'
13235           lt_prog_compiler_wl_F77=''
13236           ;;
13237         esac
13238         ;;
13239       esac
13240       ;;
13241
13242     osf3* | osf4* | osf5*)
13243       lt_prog_compiler_wl_F77='-Wl,'
13244       # All OSF/1 code is PIC.
13245       lt_prog_compiler_static_F77='-non_shared'
13246       ;;
13247
13248     rdos*)
13249       lt_prog_compiler_static_F77='-non_shared'
13250       ;;
13251
13252     solaris*)
13253       lt_prog_compiler_pic_F77='-KPIC'
13254       lt_prog_compiler_static_F77='-Bstatic'
13255       case $cc_basename in
13256       f77* | f90* | f95*)
13257         lt_prog_compiler_wl_F77='-Qoption ld ';;
13258       *)
13259         lt_prog_compiler_wl_F77='-Wl,';;
13260       esac
13261       ;;
13262
13263     sunos4*)
13264       lt_prog_compiler_wl_F77='-Qoption ld '
13265       lt_prog_compiler_pic_F77='-PIC'
13266       lt_prog_compiler_static_F77='-Bstatic'
13267       ;;
13268
13269     sysv4 | sysv4.2uw2* | sysv4.3*)
13270       lt_prog_compiler_wl_F77='-Wl,'
13271       lt_prog_compiler_pic_F77='-KPIC'
13272       lt_prog_compiler_static_F77='-Bstatic'
13273       ;;
13274
13275     sysv4*MP*)
13276       if test -d /usr/nec ;then
13277         lt_prog_compiler_pic_F77='-Kconform_pic'
13278         lt_prog_compiler_static_F77='-Bstatic'
13279       fi
13280       ;;
13281
13282     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13283       lt_prog_compiler_wl_F77='-Wl,'
13284       lt_prog_compiler_pic_F77='-KPIC'
13285       lt_prog_compiler_static_F77='-Bstatic'
13286       ;;
13287
13288     unicos*)
13289       lt_prog_compiler_wl_F77='-Wl,'
13290       lt_prog_compiler_can_build_shared_F77=no
13291       ;;
13292
13293     uts4*)
13294       lt_prog_compiler_pic_F77='-pic'
13295       lt_prog_compiler_static_F77='-Bstatic'
13296       ;;
13297
13298     *)
13299       lt_prog_compiler_can_build_shared_F77=no
13300       ;;
13301     esac
13302   fi
13303
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13305 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13306
13307 #
13308 # Check to make sure the PIC flag actually works.
13309 #
13310 if test -n "$lt_prog_compiler_pic_F77"; then
13311
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13313 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13314 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   lt_cv_prog_compiler_pic_works_F77=no
13318   ac_outfile=conftest.$ac_objext
13319    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13320    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13321    # Insert the option either (1) after the last *FLAGS variable, or
13322    # (2) before a word containing "conftest.", or (3) at the end.
13323    # Note that $ac_compile itself does not contain backslashes and begins
13324    # with a dollar sign (not a hyphen), so the echo should work correctly.
13325    # The option is referenced via a variable to avoid confusing sed.
13326    lt_compile=`echo "$ac_compile" | $SED \
13327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13329    -e 's:$: $lt_compiler_flag:'`
13330    (eval echo "\"\$as_me:13330: $lt_compile\"" >&5)
13331    (eval "$lt_compile" 2>conftest.err)
13332    ac_status=$?
13333    cat conftest.err >&5
13334    echo "$as_me:13334: \$? = $ac_status" >&5
13335    if (exit $ac_status) && test -s "$ac_outfile"; then
13336      # The compiler can only warn and ignore the option if not recognized
13337      # So say no if there are warnings other than the usual output.
13338      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13339      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13340      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13341        lt_cv_prog_compiler_pic_works_F77=yes
13342      fi
13343    fi
13344    $rm conftest*
13345
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13348 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13349
13350 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13351     case $lt_prog_compiler_pic_F77 in
13352      "" | " "*) ;;
13353      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13354      esac
13355 else
13356     lt_prog_compiler_pic_F77=
13357      lt_prog_compiler_can_build_shared_F77=no
13358 fi
13359
13360 fi
13361 case $host_os in
13362   # For platforms which do not support PIC, -DPIC is meaningless:
13363   *djgpp*)
13364     lt_prog_compiler_pic_F77=
13365     ;;
13366   *)
13367     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13368     ;;
13369 esac
13370
13371 #
13372 # Check to make sure the static flag actually works.
13373 #
13374 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13376 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13377 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13378   $as_echo_n "(cached) " >&6
13379 else
13380   lt_cv_prog_compiler_static_works_F77=no
13381    save_LDFLAGS="$LDFLAGS"
13382    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13383    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13384    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13385      # The linker can only warn and ignore the option if not recognized
13386      # So say no if there are warnings
13387      if test -s conftest.err; then
13388        # Append any errors to the config.log.
13389        cat conftest.err 1>&5
13390        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13391        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13392        if diff conftest.exp conftest.er2 >/dev/null; then
13393          lt_cv_prog_compiler_static_works_F77=yes
13394        fi
13395      else
13396        lt_cv_prog_compiler_static_works_F77=yes
13397      fi
13398    fi
13399    $rm -r conftest*
13400    LDFLAGS="$save_LDFLAGS"
13401
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13404 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13405
13406 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13407     :
13408 else
13409     lt_prog_compiler_static_F77=
13410 fi
13411
13412
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13415 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13416   $as_echo_n "(cached) " >&6
13417 else
13418   lt_cv_prog_compiler_c_o_F77=no
13419    $rm -r conftest 2>/dev/null
13420    mkdir conftest
13421    cd conftest
13422    mkdir out
13423    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13424
13425    lt_compiler_flag="-o out/conftest2.$ac_objext"
13426    # Insert the option either (1) after the last *FLAGS variable, or
13427    # (2) before a word containing "conftest.", or (3) at the end.
13428    # Note that $ac_compile itself does not contain backslashes and begins
13429    # with a dollar sign (not a hyphen), so the echo should work correctly.
13430    lt_compile=`echo "$ac_compile" | $SED \
13431    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13433    -e 's:$: $lt_compiler_flag:'`
13434    (eval echo "\"\$as_me:13434: $lt_compile\"" >&5)
13435    (eval "$lt_compile" 2>out/conftest.err)
13436    ac_status=$?
13437    cat out/conftest.err >&5
13438    echo "$as_me:13438: \$? = $ac_status" >&5
13439    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13440    then
13441      # The compiler can only warn and ignore the option if not recognized
13442      # So say no if there are warnings
13443      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13444      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13445      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13446        lt_cv_prog_compiler_c_o_F77=yes
13447      fi
13448    fi
13449    chmod u+w . 2>&5
13450    $rm conftest*
13451    # SGI C++ compiler will create directory out/ii_files/ for
13452    # template instantiation
13453    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13454    $rm out/* && rmdir out
13455    cd ..
13456    rmdir conftest
13457    $rm conftest*
13458
13459 fi
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13461 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13462
13463
13464 hard_links="nottested"
13465 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13466   # do not overwrite the value of need_locks provided by the user
13467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13468 $as_echo_n "checking if we can lock with hard links... " >&6; }
13469   hard_links=yes
13470   $rm conftest*
13471   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13472   touch conftest.a
13473   ln conftest.a conftest.b 2>&5 || hard_links=no
13474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13476 $as_echo "$hard_links" >&6; }
13477   if test "$hard_links" = no; then
13478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13479 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13480     need_locks=warn
13481   fi
13482 else
13483   need_locks=no
13484 fi
13485
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13488
13489   runpath_var=
13490   allow_undefined_flag_F77=
13491   enable_shared_with_static_runtimes_F77=no
13492   archive_cmds_F77=
13493   archive_expsym_cmds_F77=
13494   old_archive_From_new_cmds_F77=
13495   old_archive_from_expsyms_cmds_F77=
13496   export_dynamic_flag_spec_F77=
13497   whole_archive_flag_spec_F77=
13498   thread_safe_flag_spec_F77=
13499   hardcode_libdir_flag_spec_F77=
13500   hardcode_libdir_flag_spec_ld_F77=
13501   hardcode_libdir_separator_F77=
13502   hardcode_direct_F77=no
13503   hardcode_minus_L_F77=no
13504   hardcode_shlibpath_var_F77=unsupported
13505   link_all_deplibs_F77=unknown
13506   hardcode_automatic_F77=no
13507   module_cmds_F77=
13508   module_expsym_cmds_F77=
13509   always_export_symbols_F77=no
13510   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13511   # include_expsyms should be a list of space-separated symbols to be *always*
13512   # included in the symbol list
13513   include_expsyms_F77=
13514   # exclude_expsyms can be an extended regexp of symbols to exclude
13515   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13516   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13517   # as well as any symbol that contains `d'.
13518   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13519   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13520   # platforms (ab)use it in PIC code, but their linkers get confused if
13521   # the symbol is explicitly referenced.  Since portable code cannot
13522   # rely on this symbol name, it's probably fine to never include it in
13523   # preloaded symbol tables.
13524   # Exclude shared library initialization/finalization symbols.
13525   extract_expsyms_cmds=
13526   # Just being paranoid about ensuring that cc_basename is set.
13527   for cc_temp in $compiler""; do
13528   case $cc_temp in
13529     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13530     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13531     \-*) ;;
13532     *) break;;
13533   esac
13534 done
13535 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13536
13537   case $host_os in
13538   cygwin* | mingw* | pw32*)
13539     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13540     # When not using gcc, we currently assume that we are using
13541     # Microsoft Visual C++.
13542     if test "$GCC" != yes; then
13543       with_gnu_ld=no
13544     fi
13545     ;;
13546   interix*)
13547     # we just hope/assume this is gcc and not c89 (= MSVC++)
13548     with_gnu_ld=yes
13549     ;;
13550   openbsd*)
13551     with_gnu_ld=no
13552     ;;
13553   esac
13554
13555   ld_shlibs_F77=yes
13556   if test "$with_gnu_ld" = yes; then
13557     # If archive_cmds runs LD, not CC, wlarc should be empty
13558     wlarc='${wl}'
13559
13560     # Set some defaults for GNU ld with shared library support. These
13561     # are reset later if shared libraries are not supported. Putting them
13562     # here allows them to be overridden if necessary.
13563     runpath_var=LD_RUN_PATH
13564     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13565     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13566     # ancient GNU ld didn't support --whole-archive et. al.
13567     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13568         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13569       else
13570         whole_archive_flag_spec_F77=
13571     fi
13572     supports_anon_versioning=no
13573     case `$LD -v 2>/dev/null` in
13574       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13575       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13576       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13577       *\ 2.11.*) ;; # other 2.11 versions
13578       *) supports_anon_versioning=yes ;;
13579     esac
13580
13581     # See if GNU ld supports shared libraries.
13582     case $host_os in
13583     aix[3-9]*)
13584       # On AIX/PPC, the GNU linker is very broken
13585       if test "$host_cpu" != ia64; then
13586         ld_shlibs_F77=no
13587         cat <<EOF 1>&2
13588
13589 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13590 *** to be unable to reliably create shared libraries on AIX.
13591 *** Therefore, libtool is disabling shared libraries support.  If you
13592 *** really care for shared libraries, you may want to modify your PATH
13593 *** so that a non-GNU linker is found, and then restart.
13594
13595 EOF
13596       fi
13597       ;;
13598
13599     amigaos*)
13600       archive_cmds_F77='$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)'
13601       hardcode_libdir_flag_spec_F77='-L$libdir'
13602       hardcode_minus_L_F77=yes
13603
13604       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13605       # that the semantics of dynamic libraries on AmigaOS, at least up
13606       # to version 4, is to share data among multiple programs linked
13607       # with the same dynamic library.  Since this doesn't match the
13608       # behavior of shared libraries on other platforms, we can't use
13609       # them.
13610       ld_shlibs_F77=no
13611       ;;
13612
13613     beos*)
13614       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13615         allow_undefined_flag_F77=unsupported
13616         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13617         # support --undefined.  This deserves some investigation.  FIXME
13618         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13619       else
13620         ld_shlibs_F77=no
13621       fi
13622       ;;
13623
13624     cygwin* | mingw* | pw32*)
13625       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13626       # as there is no search path for DLLs.
13627       hardcode_libdir_flag_spec_F77='-L$libdir'
13628       allow_undefined_flag_F77=unsupported
13629       always_export_symbols_F77=no
13630       enable_shared_with_static_runtimes_F77=yes
13631       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13632
13633       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13634         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13635         # If the export-symbols file already is a .def file (1st line
13636         # is EXPORTS), use it as is; otherwise, prepend...
13637         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13638           cp $export_symbols $output_objdir/$soname.def;
13639         else
13640           echo EXPORTS > $output_objdir/$soname.def;
13641           cat $export_symbols >> $output_objdir/$soname.def;
13642         fi~
13643         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13644       else
13645         ld_shlibs_F77=no
13646       fi
13647       ;;
13648
13649     interix[3-9]*)
13650       hardcode_direct_F77=no
13651       hardcode_shlibpath_var_F77=no
13652       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13653       export_dynamic_flag_spec_F77='${wl}-E'
13654       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13655       # Instead, shared libraries are loaded at an image base (0x10000000 by
13656       # default) and relocated if they conflict, which is a slow very memory
13657       # consuming and fragmenting process.  To avoid this, we pick a random,
13658       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13659       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13660       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13661       archive_expsym_cmds_F77='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'
13662       ;;
13663
13664     gnu* | linux* | k*bsd*-gnu)
13665       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13666         tmp_addflag=
13667         case $cc_basename,$host_cpu in
13668         pgcc*)                          # Portland Group C compiler
13669           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13670           tmp_addflag=' $pic_flag'
13671           ;;
13672         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13673           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13674           tmp_addflag=' $pic_flag -Mnomain' ;;
13675         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13676           tmp_addflag=' -i_dynamic' ;;
13677         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13678           tmp_addflag=' -i_dynamic -nofor_main' ;;
13679         ifc* | ifort*)                  # Intel Fortran compiler
13680           tmp_addflag=' -nofor_main' ;;
13681         esac
13682         case `$CC -V 2>&1 | sed 5q` in
13683         *Sun\ C*)                       # Sun C 5.9
13684           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13685           tmp_sharedflag='-G' ;;
13686         *Sun\ F*)                       # Sun Fortran 8.3
13687           tmp_sharedflag='-G' ;;
13688         *)
13689           tmp_sharedflag='-shared' ;;
13690         esac
13691         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13692
13693         if test $supports_anon_versioning = yes; then
13694           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13695   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13696   $echo "local: *; };" >> $output_objdir/$libname.ver~
13697           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13698         fi
13699       else
13700         ld_shlibs_F77=no
13701       fi
13702       ;;
13703
13704     netbsd*)
13705       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13706         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13707         wlarc=
13708       else
13709         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13710         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13711       fi
13712       ;;
13713
13714     solaris*)
13715       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13716         ld_shlibs_F77=no
13717         cat <<EOF 1>&2
13718
13719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13720 *** create shared libraries on Solaris systems.  Therefore, libtool
13721 *** is disabling shared libraries support.  We urge you to upgrade GNU
13722 *** binutils to release 2.9.1 or newer.  Another option is to modify
13723 *** your PATH or compiler configuration so that the native linker is
13724 *** used, and then restart.
13725
13726 EOF
13727       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13728         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13730       else
13731         ld_shlibs_F77=no
13732       fi
13733       ;;
13734
13735     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13736       case `$LD -v 2>&1` in
13737         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13738         ld_shlibs_F77=no
13739         cat <<_LT_EOF 1>&2
13740
13741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13742 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13743 *** is disabling shared libraries support.  We urge you to upgrade GNU
13744 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13745 *** your PATH or compiler configuration so that the native linker is
13746 *** used, and then restart.
13747
13748 _LT_EOF
13749         ;;
13750         *)
13751           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13752             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13753             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13754             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13755           else
13756             ld_shlibs_F77=no
13757           fi
13758         ;;
13759       esac
13760       ;;
13761
13762     sunos4*)
13763       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13764       wlarc=
13765       hardcode_direct_F77=yes
13766       hardcode_shlibpath_var_F77=no
13767       ;;
13768
13769     *)
13770       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13771         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13772         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13773       else
13774         ld_shlibs_F77=no
13775       fi
13776       ;;
13777     esac
13778
13779     if test "$ld_shlibs_F77" = no; then
13780       runpath_var=
13781       hardcode_libdir_flag_spec_F77=
13782       export_dynamic_flag_spec_F77=
13783       whole_archive_flag_spec_F77=
13784     fi
13785   else
13786     # PORTME fill in a description of your system's linker (not GNU ld)
13787     case $host_os in
13788     aix3*)
13789       allow_undefined_flag_F77=unsupported
13790       always_export_symbols_F77=yes
13791       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13792       # Note: this linker hardcodes the directories in LIBPATH if there
13793       # are no directories specified by -L.
13794       hardcode_minus_L_F77=yes
13795       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13796         # Neither direct hardcoding nor static linking is supported with a
13797         # broken collect2.
13798         hardcode_direct_F77=unsupported
13799       fi
13800       ;;
13801
13802     aix[4-9]*)
13803       if test "$host_cpu" = ia64; then
13804         # On IA64, the linker does run time linking by default, so we don't
13805         # have to do anything special.
13806         aix_use_runtimelinking=no
13807         exp_sym_flag='-Bexport'
13808         no_entry_flag=""
13809       else
13810         # If we're using GNU nm, then we don't want the "-C" option.
13811         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13812         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13813           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13814         else
13815           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13816         fi
13817         aix_use_runtimelinking=no
13818
13819         # Test if we are trying to use run time linking or normal
13820         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13821         # need to do runtime linking.
13822         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13823           for ld_flag in $LDFLAGS; do
13824           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13825             aix_use_runtimelinking=yes
13826             break
13827           fi
13828           done
13829           ;;
13830         esac
13831
13832         exp_sym_flag='-bexport'
13833         no_entry_flag='-bnoentry'
13834       fi
13835
13836       # When large executables or shared objects are built, AIX ld can
13837       # have problems creating the table of contents.  If linking a library
13838       # or program results in "error TOC overflow" add -mminimal-toc to
13839       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13840       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13841
13842       archive_cmds_F77=''
13843       hardcode_direct_F77=yes
13844       hardcode_libdir_separator_F77=':'
13845       link_all_deplibs_F77=yes
13846
13847       if test "$GCC" = yes; then
13848         case $host_os in aix4.[012]|aix4.[012].*)
13849         # We only want to do this on AIX 4.2 and lower, the check
13850         # below for broken collect2 doesn't work under 4.3+
13851           collect2name=`${CC} -print-prog-name=collect2`
13852           if test -f "$collect2name" && \
13853            strings "$collect2name" | grep resolve_lib_name >/dev/null
13854           then
13855           # We have reworked collect2
13856           :
13857           else
13858           # We have old collect2
13859           hardcode_direct_F77=unsupported
13860           # It fails to find uninstalled libraries when the uninstalled
13861           # path is not listed in the libpath.  Setting hardcode_minus_L
13862           # to unsupported forces relinking
13863           hardcode_minus_L_F77=yes
13864           hardcode_libdir_flag_spec_F77='-L$libdir'
13865           hardcode_libdir_separator_F77=
13866           fi
13867           ;;
13868         esac
13869         shared_flag='-shared'
13870         if test "$aix_use_runtimelinking" = yes; then
13871           shared_flag="$shared_flag "'${wl}-G'
13872         fi
13873       else
13874         # not using gcc
13875         if test "$host_cpu" = ia64; then
13876         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13877         # chokes on -Wl,-G. The following line is correct:
13878           shared_flag='-G'
13879         else
13880           if test "$aix_use_runtimelinking" = yes; then
13881             shared_flag='${wl}-G'
13882           else
13883             shared_flag='${wl}-bM:SRE'
13884           fi
13885         fi
13886       fi
13887
13888       # It seems that -bexpall does not export symbols beginning with
13889       # underscore (_), so it is better to generate a list of symbols to export.
13890       always_export_symbols_F77=yes
13891       if test "$aix_use_runtimelinking" = yes; then
13892         # Warning - without using the other runtime loading flags (-brtl),
13893         # -berok will link without error, but may produce a broken library.
13894         allow_undefined_flag_F77='-berok'
13895        # Determine the default libpath from the value encoded in an empty executable.
13896        cat > conftest.$ac_ext <<_ACEOF
13897       program main
13898
13899       end
13900 _ACEOF
13901 if ac_fn_f77_try_link "$LINENO"; then :
13902
13903 lt_aix_libpath_sed='
13904     /Import File Strings/,/^$/ {
13905         /^0/ {
13906             s/^0  *\(.*\)$/\1/
13907             p
13908         }
13909     }'
13910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13911 # Check for a 64-bit object if we didn't find anything.
13912 if test -z "$aix_libpath"; then
13913   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13914 fi
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917     conftest$ac_exeext conftest.$ac_ext
13918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13919
13920        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13921         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13922        else
13923         if test "$host_cpu" = ia64; then
13924           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13925           allow_undefined_flag_F77="-z nodefs"
13926           archive_expsym_cmds_F77="\$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"
13927         else
13928          # Determine the default libpath from the value encoded in an empty executable.
13929          cat > conftest.$ac_ext <<_ACEOF
13930       program main
13931
13932       end
13933 _ACEOF
13934 if ac_fn_f77_try_link "$LINENO"; then :
13935
13936 lt_aix_libpath_sed='
13937     /Import File Strings/,/^$/ {
13938         /^0/ {
13939             s/^0  *\(.*\)$/\1/
13940             p
13941         }
13942     }'
13943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13944 # Check for a 64-bit object if we didn't find anything.
13945 if test -z "$aix_libpath"; then
13946   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13947 fi
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext \
13950     conftest$ac_exeext conftest.$ac_ext
13951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13952
13953          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13954           # Warning - without using the other run time loading flags,
13955           # -berok will link without error, but may produce a broken library.
13956           no_undefined_flag_F77=' ${wl}-bernotok'
13957           allow_undefined_flag_F77=' ${wl}-berok'
13958           # Exported symbols can be pulled into shared objects from archives
13959           whole_archive_flag_spec_F77='$convenience'
13960           archive_cmds_need_lc_F77=yes
13961           # This is similar to how AIX traditionally builds its shared libraries.
13962           archive_expsym_cmds_F77="\$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'
13963         fi
13964       fi
13965       ;;
13966
13967     amigaos*)
13968       archive_cmds_F77='$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)'
13969       hardcode_libdir_flag_spec_F77='-L$libdir'
13970       hardcode_minus_L_F77=yes
13971       # see comment about different semantics on the GNU ld section
13972       ld_shlibs_F77=no
13973       ;;
13974
13975     bsdi[45]*)
13976       export_dynamic_flag_spec_F77=-rdynamic
13977       ;;
13978
13979     cygwin* | mingw* | pw32*)
13980       # When not using gcc, we currently assume that we are using
13981       # Microsoft Visual C++.
13982       # hardcode_libdir_flag_spec is actually meaningless, as there is
13983       # no search path for DLLs.
13984       hardcode_libdir_flag_spec_F77=' '
13985       allow_undefined_flag_F77=unsupported
13986       # Tell ltmain to make .lib files, not .a files.
13987       libext=lib
13988       # Tell ltmain to make .dll files, not .so files.
13989       shrext_cmds=".dll"
13990       # FIXME: Setting linknames here is a bad hack.
13991       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13992       # The linker will automatically build a .lib file if we build a DLL.
13993       old_archive_From_new_cmds_F77='true'
13994       # FIXME: Should let the user specify the lib program.
13995       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
13996       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13997       enable_shared_with_static_runtimes_F77=yes
13998       ;;
13999
14000     darwin* | rhapsody*)
14001       case $host_os in
14002         rhapsody* | darwin1.[012])
14003          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14004          ;;
14005        *) # Darwin 1.3 on
14006          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14007            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14008          else
14009            case ${MACOSX_DEPLOYMENT_TARGET} in
14010              10.[012])
14011                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14012                ;;
14013              10.*)
14014                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14015                ;;
14016            esac
14017          fi
14018          ;;
14019       esac
14020       archive_cmds_need_lc_F77=no
14021       hardcode_direct_F77=no
14022       hardcode_automatic_F77=yes
14023       hardcode_shlibpath_var_F77=unsupported
14024       whole_archive_flag_spec_F77=''
14025       link_all_deplibs_F77=yes
14026     if test "$GCC" = yes ; then
14027         output_verbose_link_cmd='echo'
14028         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14029         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14030         archive_expsym_cmds_F77="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}"
14031         module_expsym_cmds_F77="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}"
14032     else
14033       case $cc_basename in
14034         xlc*)
14035          output_verbose_link_cmd='echo'
14036          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14037          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14038           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14039          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14040           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14041           ;;
14042        *)
14043          ld_shlibs_F77=no
14044           ;;
14045       esac
14046     fi
14047       ;;
14048
14049     dgux*)
14050       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14051       hardcode_libdir_flag_spec_F77='-L$libdir'
14052       hardcode_shlibpath_var_F77=no
14053       ;;
14054
14055     freebsd1*)
14056       ld_shlibs_F77=no
14057       ;;
14058
14059     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14060     # support.  Future versions do this automatically, but an explicit c++rt0.o
14061     # does not break anything, and helps significantly (at the cost of a little
14062     # extra space).
14063     freebsd2.2*)
14064       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14065       hardcode_libdir_flag_spec_F77='-R$libdir'
14066       hardcode_direct_F77=yes
14067       hardcode_shlibpath_var_F77=no
14068       ;;
14069
14070     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14071     freebsd2*)
14072       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14073       hardcode_direct_F77=yes
14074       hardcode_minus_L_F77=yes
14075       hardcode_shlibpath_var_F77=no
14076       ;;
14077
14078     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14079     freebsd* | dragonfly*)
14080       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14081       hardcode_libdir_flag_spec_F77='-R$libdir'
14082       hardcode_direct_F77=yes
14083       hardcode_shlibpath_var_F77=no
14084       ;;
14085
14086     hpux9*)
14087       if test "$GCC" = yes; then
14088         archive_cmds_F77='$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'
14089       else
14090         archive_cmds_F77='$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'
14091       fi
14092       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14093       hardcode_libdir_separator_F77=:
14094       hardcode_direct_F77=yes
14095
14096       # hardcode_minus_L: Not really in the search PATH,
14097       # but as the default location of the library.
14098       hardcode_minus_L_F77=yes
14099       export_dynamic_flag_spec_F77='${wl}-E'
14100       ;;
14101
14102     hpux10*)
14103       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14104         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14105       else
14106         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14107       fi
14108       if test "$with_gnu_ld" = no; then
14109         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14110         hardcode_libdir_separator_F77=:
14111
14112         hardcode_direct_F77=yes
14113         export_dynamic_flag_spec_F77='${wl}-E'
14114
14115         # hardcode_minus_L: Not really in the search PATH,
14116         # but as the default location of the library.
14117         hardcode_minus_L_F77=yes
14118       fi
14119       ;;
14120
14121     hpux11*)
14122       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14123         case $host_cpu in
14124         hppa*64*)
14125           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14126           ;;
14127         ia64*)
14128           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14129           ;;
14130         *)
14131           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14132           ;;
14133         esac
14134       else
14135         case $host_cpu in
14136         hppa*64*)
14137           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14138           ;;
14139         ia64*)
14140           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14141           ;;
14142         *)
14143           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14144           ;;
14145         esac
14146       fi
14147       if test "$with_gnu_ld" = no; then
14148         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14149         hardcode_libdir_separator_F77=:
14150
14151         case $host_cpu in
14152         hppa*64*|ia64*)
14153           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14154           hardcode_direct_F77=no
14155           hardcode_shlibpath_var_F77=no
14156           ;;
14157         *)
14158           hardcode_direct_F77=yes
14159           export_dynamic_flag_spec_F77='${wl}-E'
14160
14161           # hardcode_minus_L: Not really in the search PATH,
14162           # but as the default location of the library.
14163           hardcode_minus_L_F77=yes
14164           ;;
14165         esac
14166       fi
14167       ;;
14168
14169     irix5* | irix6* | nonstopux*)
14170       if test "$GCC" = yes; then
14171         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14172       else
14173         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14174         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14175       fi
14176       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14177       hardcode_libdir_separator_F77=:
14178       link_all_deplibs_F77=yes
14179       ;;
14180
14181     netbsd*)
14182       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14183         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14184       else
14185         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14186       fi
14187       hardcode_libdir_flag_spec_F77='-R$libdir'
14188       hardcode_direct_F77=yes
14189       hardcode_shlibpath_var_F77=no
14190       ;;
14191
14192     newsos6)
14193       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14194       hardcode_direct_F77=yes
14195       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14196       hardcode_libdir_separator_F77=:
14197       hardcode_shlibpath_var_F77=no
14198       ;;
14199
14200     openbsd*)
14201       if test -f /usr/libexec/ld.so; then
14202         hardcode_direct_F77=yes
14203         hardcode_shlibpath_var_F77=no
14204         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14205           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14206           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14207           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14208           export_dynamic_flag_spec_F77='${wl}-E'
14209         else
14210           case $host_os in
14211            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14212              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14213              hardcode_libdir_flag_spec_F77='-R$libdir'
14214              ;;
14215            *)
14216              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14217              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14218              ;;
14219           esac
14220         fi
14221       else
14222         ld_shlibs_F77=no
14223       fi
14224       ;;
14225
14226     os2*)
14227       hardcode_libdir_flag_spec_F77='-L$libdir'
14228       hardcode_minus_L_F77=yes
14229       allow_undefined_flag_F77=unsupported
14230       archive_cmds_F77='$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'
14231       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14232       ;;
14233
14234     osf3*)
14235       if test "$GCC" = yes; then
14236         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14237         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14238       else
14239         allow_undefined_flag_F77=' -expect_unresolved \*'
14240         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14241       fi
14242       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14243       hardcode_libdir_separator_F77=:
14244       ;;
14245
14246     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14247       if test "$GCC" = yes; then
14248         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14249         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14250         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14251       else
14252         allow_undefined_flag_F77=' -expect_unresolved \*'
14253         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14254         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14255         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14256
14257         # Both c and cxx compiler support -rpath directly
14258         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14259       fi
14260       hardcode_libdir_separator_F77=:
14261       ;;
14262
14263     solaris*)
14264       no_undefined_flag_F77=' -z text'
14265       if test "$GCC" = yes; then
14266         wlarc='${wl}'
14267         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14269           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14270       else
14271         wlarc=''
14272         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14274         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14275       fi
14276       hardcode_libdir_flag_spec_F77='-R$libdir'
14277       hardcode_shlibpath_var_F77=no
14278       case $host_os in
14279       solaris2.[0-5] | solaris2.[0-5].*) ;;
14280       *)
14281         # The compiler driver will combine and reorder linker options,
14282         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14283         # but is careful enough not to reorder.
14284         # Supported since Solaris 2.6 (maybe 2.5.1?)
14285         if test "$GCC" = yes; then
14286           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14287         else
14288           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14289         fi
14290         ;;
14291       esac
14292       link_all_deplibs_F77=yes
14293       ;;
14294
14295     sunos4*)
14296       if test "x$host_vendor" = xsequent; then
14297         # Use $CC to link under sequent, because it throws in some extra .o
14298         # files that make .init and .fini sections work.
14299         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14300       else
14301         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14302       fi
14303       hardcode_libdir_flag_spec_F77='-L$libdir'
14304       hardcode_direct_F77=yes
14305       hardcode_minus_L_F77=yes
14306       hardcode_shlibpath_var_F77=no
14307       ;;
14308
14309     sysv4)
14310       case $host_vendor in
14311         sni)
14312           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313           hardcode_direct_F77=yes # is this really true???
14314         ;;
14315         siemens)
14316           ## LD is ld it makes a PLAMLIB
14317           ## CC just makes a GrossModule.
14318           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14319           reload_cmds_F77='$CC -r -o $output$reload_objs'
14320           hardcode_direct_F77=no
14321         ;;
14322         motorola)
14323           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14325         ;;
14326       esac
14327       runpath_var='LD_RUN_PATH'
14328       hardcode_shlibpath_var_F77=no
14329       ;;
14330
14331     sysv4.3*)
14332       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14333       hardcode_shlibpath_var_F77=no
14334       export_dynamic_flag_spec_F77='-Bexport'
14335       ;;
14336
14337     sysv4*MP*)
14338       if test -d /usr/nec; then
14339         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340         hardcode_shlibpath_var_F77=no
14341         runpath_var=LD_RUN_PATH
14342         hardcode_runpath_var=yes
14343         ld_shlibs_F77=yes
14344       fi
14345       ;;
14346
14347     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14348       no_undefined_flag_F77='${wl}-z,text'
14349       archive_cmds_need_lc_F77=no
14350       hardcode_shlibpath_var_F77=no
14351       runpath_var='LD_RUN_PATH'
14352
14353       if test "$GCC" = yes; then
14354         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14356       else
14357         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14359       fi
14360       ;;
14361
14362     sysv5* | sco3.2v5* | sco5v6*)
14363       # Note: We can NOT use -z defs as we might desire, because we do not
14364       # link with -lc, and that would cause any symbols used from libc to
14365       # always be unresolved, which means just about no library would
14366       # ever link correctly.  If we're not using GNU ld we use -z text
14367       # though, which does catch some bad symbols but isn't as heavy-handed
14368       # as -z defs.
14369       no_undefined_flag_F77='${wl}-z,text'
14370       allow_undefined_flag_F77='${wl}-z,nodefs'
14371       archive_cmds_need_lc_F77=no
14372       hardcode_shlibpath_var_F77=no
14373       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14374       hardcode_libdir_separator_F77=':'
14375       link_all_deplibs_F77=yes
14376       export_dynamic_flag_spec_F77='${wl}-Bexport'
14377       runpath_var='LD_RUN_PATH'
14378
14379       if test "$GCC" = yes; then
14380         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14381         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14382       else
14383         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14384         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14385       fi
14386       ;;
14387
14388     uts4*)
14389       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14390       hardcode_libdir_flag_spec_F77='-L$libdir'
14391       hardcode_shlibpath_var_F77=no
14392       ;;
14393
14394     *)
14395       ld_shlibs_F77=no
14396       ;;
14397     esac
14398   fi
14399
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14401 $as_echo "$ld_shlibs_F77" >&6; }
14402 test "$ld_shlibs_F77" = no && can_build_shared=no
14403
14404 #
14405 # Do we need to explicitly link libc?
14406 #
14407 case "x$archive_cmds_need_lc_F77" in
14408 x|xyes)
14409   # Assume -lc should be added
14410   archive_cmds_need_lc_F77=yes
14411
14412   if test "$enable_shared" = yes && test "$GCC" = yes; then
14413     case $archive_cmds_F77 in
14414     *'~'*)
14415       # FIXME: we may have to deal with multi-command sequences.
14416       ;;
14417     '$CC '*)
14418       # Test whether the compiler implicitly links with -lc since on some
14419       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14420       # to ld, don't add -lc before -lgcc.
14421       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14422 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14423       $rm conftest*
14424       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14425
14426       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14427   (eval $ac_compile) 2>&5
14428   ac_status=$?
14429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430   test $ac_status = 0; } 2>conftest.err; then
14431         soname=conftest
14432         lib=conftest
14433         libobjs=conftest.$ac_objext
14434         deplibs=
14435         wl=$lt_prog_compiler_wl_F77
14436         pic_flag=$lt_prog_compiler_pic_F77
14437         compiler_flags=-v
14438         linker_flags=-v
14439         verstring=
14440         output_objdir=.
14441         libname=conftest
14442         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14443         allow_undefined_flag_F77=
14444         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14445   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14446   ac_status=$?
14447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14448   test $ac_status = 0; }
14449         then
14450           archive_cmds_need_lc_F77=no
14451         else
14452           archive_cmds_need_lc_F77=yes
14453         fi
14454         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14455       else
14456         cat conftest.err 1>&5
14457       fi
14458       $rm conftest*
14459       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14460 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14461       ;;
14462     esac
14463   fi
14464   ;;
14465 esac
14466
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14468 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14469 library_names_spec=
14470 libname_spec='lib$name'
14471 soname_spec=
14472 shrext_cmds=".so"
14473 postinstall_cmds=
14474 postuninstall_cmds=
14475 finish_cmds=
14476 finish_eval=
14477 shlibpath_var=
14478 shlibpath_overrides_runpath=unknown
14479 version_type=none
14480 dynamic_linker="$host_os ld.so"
14481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14482
14483 need_lib_prefix=unknown
14484 hardcode_into_libs=no
14485
14486 # when you set need_version to no, make sure it does not cause -set_version
14487 # flags to be left without arguments
14488 need_version=unknown
14489
14490 case $host_os in
14491 aix3*)
14492   version_type=linux
14493   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14494   shlibpath_var=LIBPATH
14495
14496   # AIX 3 has no versioning support, so we append a major version to the name.
14497   soname_spec='${libname}${release}${shared_ext}$major'
14498   ;;
14499
14500 aix[4-9]*)
14501   version_type=linux
14502   need_lib_prefix=no
14503   need_version=no
14504   hardcode_into_libs=yes
14505   if test "$host_cpu" = ia64; then
14506     # AIX 5 supports IA64
14507     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14508     shlibpath_var=LD_LIBRARY_PATH
14509   else
14510     # With GCC up to 2.95.x, collect2 would create an import file
14511     # for dependence libraries.  The import file would start with
14512     # the line `#! .'.  This would cause the generated library to
14513     # depend on `.', always an invalid library.  This was fixed in
14514     # development snapshots of GCC prior to 3.0.
14515     case $host_os in
14516       aix4 | aix4.[01] | aix4.[01].*)
14517       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14518            echo ' yes '
14519            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14520         :
14521       else
14522         can_build_shared=no
14523       fi
14524       ;;
14525     esac
14526     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14527     # soname into executable. Probably we can add versioning support to
14528     # collect2, so additional links can be useful in future.
14529     if test "$aix_use_runtimelinking" = yes; then
14530       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14531       # instead of lib<name>.a to let people know that these are not
14532       # typical AIX shared libraries.
14533       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534     else
14535       # We preserve .a as extension for shared libraries through AIX4.2
14536       # and later when we are not doing run time linking.
14537       library_names_spec='${libname}${release}.a $libname.a'
14538       soname_spec='${libname}${release}${shared_ext}$major'
14539     fi
14540     shlibpath_var=LIBPATH
14541   fi
14542   ;;
14543
14544 amigaos*)
14545   library_names_spec='$libname.ixlibrary $libname.a'
14546   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14547   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14548   ;;
14549
14550 beos*)
14551   library_names_spec='${libname}${shared_ext}'
14552   dynamic_linker="$host_os ld.so"
14553   shlibpath_var=LIBRARY_PATH
14554   ;;
14555
14556 bsdi[45]*)
14557   version_type=linux
14558   need_version=no
14559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560   soname_spec='${libname}${release}${shared_ext}$major'
14561   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14562   shlibpath_var=LD_LIBRARY_PATH
14563   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14564   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14565   # the default ld.so.conf also contains /usr/contrib/lib and
14566   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14567   # libtool to hard-code these into programs
14568   ;;
14569
14570 cygwin* | mingw* | pw32*)
14571   version_type=windows
14572   shrext_cmds=".dll"
14573   need_version=no
14574   need_lib_prefix=no
14575
14576   case $GCC,$host_os in
14577   yes,cygwin* | yes,mingw* | yes,pw32*)
14578     library_names_spec='$libname.dll.a'
14579     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14580     postinstall_cmds='base_file=`basename \${file}`~
14581       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14582       dldir=$destdir/`dirname \$dlpath`~
14583       test -d \$dldir || mkdir -p \$dldir~
14584       $install_prog $dir/$dlname \$dldir/$dlname~
14585       chmod a+x \$dldir/$dlname'
14586     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14587       dlpath=$dir/\$dldll~
14588        $rm \$dlpath'
14589     shlibpath_overrides_runpath=yes
14590
14591     case $host_os in
14592     cygwin*)
14593       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14594       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14595       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14596       ;;
14597     mingw*)
14598       # MinGW DLLs use traditional 'lib' prefix
14599       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14600       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14601       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14602         # It is most probably a Windows format PATH printed by
14603         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14604         # path with ; separators, and with drive letters. We can handle the
14605         # drive letters (cygwin fileutils understands them), so leave them,
14606         # especially as we might pass files found there to a mingw objdump,
14607         # which wouldn't understand a cygwinified path. Ahh.
14608         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14609       else
14610         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14611       fi
14612       ;;
14613     pw32*)
14614       # pw32 DLLs use 'pw' prefix rather than 'lib'
14615       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14616       ;;
14617     esac
14618     ;;
14619
14620   *)
14621     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14622     ;;
14623   esac
14624   dynamic_linker='Win32 ld.exe'
14625   # FIXME: first we should search . and the directory the executable is in
14626   shlibpath_var=PATH
14627   ;;
14628
14629 darwin* | rhapsody*)
14630   dynamic_linker="$host_os dyld"
14631   version_type=darwin
14632   need_lib_prefix=no
14633   need_version=no
14634   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14635   soname_spec='${libname}${release}${major}$shared_ext'
14636   shlibpath_overrides_runpath=yes
14637   shlibpath_var=DYLD_LIBRARY_PATH
14638   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14639
14640   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14641   ;;
14642
14643 dgux*)
14644   version_type=linux
14645   need_lib_prefix=no
14646   need_version=no
14647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14648   soname_spec='${libname}${release}${shared_ext}$major'
14649   shlibpath_var=LD_LIBRARY_PATH
14650   ;;
14651
14652 freebsd1*)
14653   dynamic_linker=no
14654   ;;
14655
14656 freebsd* | dragonfly*)
14657   # DragonFly does not have aout.  When/if they implement a new
14658   # versioning mechanism, adjust this.
14659   if test -x /usr/bin/objformat; then
14660     objformat=`/usr/bin/objformat`
14661   else
14662     case $host_os in
14663     freebsd[123]*) objformat=aout ;;
14664     *) objformat=elf ;;
14665     esac
14666   fi
14667   version_type=freebsd-$objformat
14668   case $version_type in
14669     freebsd-elf*)
14670       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14671       need_version=no
14672       need_lib_prefix=no
14673       ;;
14674     freebsd-*)
14675       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14676       need_version=yes
14677       ;;
14678   esac
14679   shlibpath_var=LD_LIBRARY_PATH
14680   case $host_os in
14681   freebsd2*)
14682     shlibpath_overrides_runpath=yes
14683     ;;
14684   freebsd3.[01]* | freebsdelf3.[01]*)
14685     shlibpath_overrides_runpath=yes
14686     hardcode_into_libs=yes
14687     ;;
14688   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14689   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14690     shlibpath_overrides_runpath=no
14691     hardcode_into_libs=yes
14692     ;;
14693   *) # from 4.6 on, and DragonFly
14694     shlibpath_overrides_runpath=yes
14695     hardcode_into_libs=yes
14696     ;;
14697   esac
14698   ;;
14699
14700 gnu*)
14701   version_type=linux
14702   need_lib_prefix=no
14703   need_version=no
14704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14705   soname_spec='${libname}${release}${shared_ext}$major'
14706   shlibpath_var=LD_LIBRARY_PATH
14707   hardcode_into_libs=yes
14708   ;;
14709
14710 hpux9* | hpux10* | hpux11*)
14711   # Give a soname corresponding to the major version so that dld.sl refuses to
14712   # link against other versions.
14713   version_type=sunos
14714   need_lib_prefix=no
14715   need_version=no
14716   case $host_cpu in
14717   ia64*)
14718     shrext_cmds='.so'
14719     hardcode_into_libs=yes
14720     dynamic_linker="$host_os dld.so"
14721     shlibpath_var=LD_LIBRARY_PATH
14722     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724     soname_spec='${libname}${release}${shared_ext}$major'
14725     if test "X$HPUX_IA64_MODE" = X32; then
14726       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14727     else
14728       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14729     fi
14730     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14731     ;;
14732    hppa*64*)
14733      shrext_cmds='.sl'
14734      hardcode_into_libs=yes
14735      dynamic_linker="$host_os dld.sl"
14736      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14737      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739      soname_spec='${libname}${release}${shared_ext}$major'
14740      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14741      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14742      ;;
14743    *)
14744     shrext_cmds='.sl'
14745     dynamic_linker="$host_os dld.sl"
14746     shlibpath_var=SHLIB_PATH
14747     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749     soname_spec='${libname}${release}${shared_ext}$major'
14750     ;;
14751   esac
14752   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14753   postinstall_cmds='chmod 555 $lib'
14754   ;;
14755
14756 interix[3-9]*)
14757   version_type=linux
14758   need_lib_prefix=no
14759   need_version=no
14760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14761   soname_spec='${libname}${release}${shared_ext}$major'
14762   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14763   shlibpath_var=LD_LIBRARY_PATH
14764   shlibpath_overrides_runpath=no
14765   hardcode_into_libs=yes
14766   ;;
14767
14768 irix5* | irix6* | nonstopux*)
14769   case $host_os in
14770     nonstopux*) version_type=nonstopux ;;
14771     *)
14772         if test "$lt_cv_prog_gnu_ld" = yes; then
14773                 version_type=linux
14774         else
14775                 version_type=irix
14776         fi ;;
14777   esac
14778   need_lib_prefix=no
14779   need_version=no
14780   soname_spec='${libname}${release}${shared_ext}$major'
14781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14782   case $host_os in
14783   irix5* | nonstopux*)
14784     libsuff= shlibsuff=
14785     ;;
14786   *)
14787     case $LD in # libtool.m4 will add one of these switches to LD
14788     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14789       libsuff= shlibsuff= libmagic=32-bit;;
14790     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14791       libsuff=32 shlibsuff=N32 libmagic=N32;;
14792     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14793       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14794     *) libsuff= shlibsuff= libmagic=never-match;;
14795     esac
14796     ;;
14797   esac
14798   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14799   shlibpath_overrides_runpath=no
14800   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14801   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14802   hardcode_into_libs=yes
14803   ;;
14804
14805 # No shared lib support for Linux oldld, aout, or coff.
14806 linux*oldld* | linux*aout* | linux*coff*)
14807   dynamic_linker=no
14808   ;;
14809
14810 # This must be Linux ELF.
14811 linux* | k*bsd*-gnu)
14812   version_type=linux
14813   need_lib_prefix=no
14814   need_version=no
14815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816   soname_spec='${libname}${release}${shared_ext}$major'
14817   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14818   shlibpath_var=LD_LIBRARY_PATH
14819   shlibpath_overrides_runpath=no
14820   # This implies no fast_install, which is unacceptable.
14821   # Some rework will be needed to allow for fast_install
14822   # before this can be enabled.
14823   hardcode_into_libs=yes
14824
14825   # Append ld.so.conf contents to the search path
14826   if test -f /etc/ld.so.conf; then
14827     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;/^$/d' | tr '\n' ' '`
14828     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14829   fi
14830
14831   # We used to test for /lib/ld.so.1 and disable shared libraries on
14832   # powerpc, because MkLinux only supported shared libraries with the
14833   # GNU dynamic linker.  Since this was broken with cross compilers,
14834   # most powerpc-linux boxes support dynamic linking these days and
14835   # people can always --disable-shared, the test was removed, and we
14836   # assume the GNU/Linux dynamic linker is in use.
14837   dynamic_linker='GNU/Linux ld.so'
14838   ;;
14839
14840 netbsd*)
14841   version_type=sunos
14842   need_lib_prefix=no
14843   need_version=no
14844   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14846     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14847     dynamic_linker='NetBSD (a.out) ld.so'
14848   else
14849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14850     soname_spec='${libname}${release}${shared_ext}$major'
14851     dynamic_linker='NetBSD ld.elf_so'
14852   fi
14853   shlibpath_var=LD_LIBRARY_PATH
14854   shlibpath_overrides_runpath=yes
14855   hardcode_into_libs=yes
14856   ;;
14857
14858 newsos6)
14859   version_type=linux
14860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861   shlibpath_var=LD_LIBRARY_PATH
14862   shlibpath_overrides_runpath=yes
14863   ;;
14864
14865 nto-qnx*)
14866   version_type=linux
14867   need_lib_prefix=no
14868   need_version=no
14869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870   soname_spec='${libname}${release}${shared_ext}$major'
14871   shlibpath_var=LD_LIBRARY_PATH
14872   shlibpath_overrides_runpath=yes
14873   ;;
14874
14875 openbsd*)
14876   version_type=sunos
14877   sys_lib_dlsearch_path_spec="/usr/lib"
14878   need_lib_prefix=no
14879   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14880   case $host_os in
14881     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14882     *)                         need_version=no  ;;
14883   esac
14884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14888     case $host_os in
14889       openbsd2.[89] | openbsd2.[89].*)
14890         shlibpath_overrides_runpath=no
14891         ;;
14892       *)
14893         shlibpath_overrides_runpath=yes
14894         ;;
14895       esac
14896   else
14897     shlibpath_overrides_runpath=yes
14898   fi
14899   ;;
14900
14901 os2*)
14902   libname_spec='$name'
14903   shrext_cmds=".dll"
14904   need_lib_prefix=no
14905   library_names_spec='$libname${shared_ext} $libname.a'
14906   dynamic_linker='OS/2 ld.exe'
14907   shlibpath_var=LIBPATH
14908   ;;
14909
14910 osf3* | osf4* | osf5*)
14911   version_type=osf
14912   need_lib_prefix=no
14913   need_version=no
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916   shlibpath_var=LD_LIBRARY_PATH
14917   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14918   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14919   ;;
14920
14921 rdos*)
14922   dynamic_linker=no
14923   ;;
14924
14925 solaris*)
14926   version_type=linux
14927   need_lib_prefix=no
14928   need_version=no
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930   soname_spec='${libname}${release}${shared_ext}$major'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   shlibpath_overrides_runpath=yes
14933   hardcode_into_libs=yes
14934   # ldd complains unless libraries are executable
14935   postinstall_cmds='chmod +x $lib'
14936   ;;
14937
14938 sunos4*)
14939   version_type=sunos
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14941   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14942   shlibpath_var=LD_LIBRARY_PATH
14943   shlibpath_overrides_runpath=yes
14944   if test "$with_gnu_ld" = yes; then
14945     need_lib_prefix=no
14946   fi
14947   need_version=yes
14948   ;;
14949
14950 sysv4 | sysv4.3*)
14951   version_type=linux
14952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953   soname_spec='${libname}${release}${shared_ext}$major'
14954   shlibpath_var=LD_LIBRARY_PATH
14955   case $host_vendor in
14956     sni)
14957       shlibpath_overrides_runpath=no
14958       need_lib_prefix=no
14959       export_dynamic_flag_spec='${wl}-Blargedynsym'
14960       runpath_var=LD_RUN_PATH
14961       ;;
14962     siemens)
14963       need_lib_prefix=no
14964       ;;
14965     motorola)
14966       need_lib_prefix=no
14967       need_version=no
14968       shlibpath_overrides_runpath=no
14969       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14970       ;;
14971   esac
14972   ;;
14973
14974 sysv4*MP*)
14975   if test -d /usr/nec ;then
14976     version_type=linux
14977     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14978     soname_spec='$libname${shared_ext}.$major'
14979     shlibpath_var=LD_LIBRARY_PATH
14980   fi
14981   ;;
14982
14983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14984   version_type=freebsd-elf
14985   need_lib_prefix=no
14986   need_version=no
14987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14988   soname_spec='${libname}${release}${shared_ext}$major'
14989   shlibpath_var=LD_LIBRARY_PATH
14990   hardcode_into_libs=yes
14991   if test "$with_gnu_ld" = yes; then
14992     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14993     shlibpath_overrides_runpath=no
14994   else
14995     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14996     shlibpath_overrides_runpath=yes
14997     case $host_os in
14998       sco3.2v5*)
14999         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15000         ;;
15001     esac
15002   fi
15003   sys_lib_dlsearch_path_spec='/usr/lib'
15004   ;;
15005
15006 uts4*)
15007   version_type=linux
15008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009   soname_spec='${libname}${release}${shared_ext}$major'
15010   shlibpath_var=LD_LIBRARY_PATH
15011   ;;
15012
15013 *)
15014   dynamic_linker=no
15015   ;;
15016 esac
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15018 $as_echo "$dynamic_linker" >&6; }
15019 test "$dynamic_linker" = no && can_build_shared=no
15020
15021 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15022   $as_echo_n "(cached) " >&6
15023 else
15024   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15025 fi
15026
15027 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15028 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15029   $as_echo_n "(cached) " >&6
15030 else
15031   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15032 fi
15033
15034 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15035
15036 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15037 if test "$GCC" = yes; then
15038   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15039 fi
15040
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15043 hardcode_action_F77=
15044 if test -n "$hardcode_libdir_flag_spec_F77" || \
15045    test -n "$runpath_var_F77" || \
15046    test "X$hardcode_automatic_F77" = "Xyes" ; then
15047
15048   # We can hardcode non-existant directories.
15049   if test "$hardcode_direct_F77" != no &&
15050      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15051      # have to relink, otherwise we might link with an installed library
15052      # when we should be linking with a yet-to-be-installed one
15053      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15054      test "$hardcode_minus_L_F77" != no; then
15055     # Linking always hardcodes the temporary library directory.
15056     hardcode_action_F77=relink
15057   else
15058     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15059     hardcode_action_F77=immediate
15060   fi
15061 else
15062   # We cannot hardcode anything, or else we can only hardcode existing
15063   # directories.
15064   hardcode_action_F77=unsupported
15065 fi
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15067 $as_echo "$hardcode_action_F77" >&6; }
15068
15069 if test "$hardcode_action_F77" = relink; then
15070   # Fast installation is not supported
15071   enable_fast_install=no
15072 elif test "$shlibpath_overrides_runpath" = yes ||
15073      test "$enable_shared" = no; then
15074   # Fast installation is not necessary
15075   enable_fast_install=needless
15076 fi
15077
15078
15079 # The else clause should only fire when bootstrapping the
15080 # libtool distribution, otherwise you forgot to ship ltmain.sh
15081 # with your package, and you will get complaints that there are
15082 # no rules to generate ltmain.sh.
15083 if test -f "$ltmain"; then
15084   # See if we are running on zsh, and set the options which allow our commands through
15085   # without removal of \ escapes.
15086   if test -n "${ZSH_VERSION+set}" ; then
15087     setopt NO_GLOB_SUBST
15088   fi
15089   # Now quote all the things that may contain metacharacters while being
15090   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15091   # variables and quote the copies for generation of the libtool script.
15092   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15093     SED SHELL STRIP \
15094     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15095     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15096     deplibs_check_method reload_flag reload_cmds need_locks \
15097     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15098     lt_cv_sys_global_symbol_to_c_name_address \
15099     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15100     old_postinstall_cmds old_postuninstall_cmds \
15101     compiler_F77 \
15102     CC_F77 \
15103     LD_F77 \
15104     lt_prog_compiler_wl_F77 \
15105     lt_prog_compiler_pic_F77 \
15106     lt_prog_compiler_static_F77 \
15107     lt_prog_compiler_no_builtin_flag_F77 \
15108     export_dynamic_flag_spec_F77 \
15109     thread_safe_flag_spec_F77 \
15110     whole_archive_flag_spec_F77 \
15111     enable_shared_with_static_runtimes_F77 \
15112     old_archive_cmds_F77 \
15113     old_archive_from_new_cmds_F77 \
15114     predep_objects_F77 \
15115     postdep_objects_F77 \
15116     predeps_F77 \
15117     postdeps_F77 \
15118     compiler_lib_search_path_F77 \
15119     compiler_lib_search_dirs_F77 \
15120     archive_cmds_F77 \
15121     archive_expsym_cmds_F77 \
15122     postinstall_cmds_F77 \
15123     postuninstall_cmds_F77 \
15124     old_archive_from_expsyms_cmds_F77 \
15125     allow_undefined_flag_F77 \
15126     no_undefined_flag_F77 \
15127     export_symbols_cmds_F77 \
15128     hardcode_libdir_flag_spec_F77 \
15129     hardcode_libdir_flag_spec_ld_F77 \
15130     hardcode_libdir_separator_F77 \
15131     hardcode_automatic_F77 \
15132     module_cmds_F77 \
15133     module_expsym_cmds_F77 \
15134     lt_cv_prog_compiler_c_o_F77 \
15135     fix_srcfile_path_F77 \
15136     exclude_expsyms_F77 \
15137     include_expsyms_F77; do
15138
15139     case $var in
15140     old_archive_cmds_F77 | \
15141     old_archive_from_new_cmds_F77 | \
15142     archive_cmds_F77 | \
15143     archive_expsym_cmds_F77 | \
15144     module_cmds_F77 | \
15145     module_expsym_cmds_F77 | \
15146     old_archive_from_expsyms_cmds_F77 | \
15147     export_symbols_cmds_F77 | \
15148     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15149     postinstall_cmds | postuninstall_cmds | \
15150     old_postinstall_cmds | old_postuninstall_cmds | \
15151     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15152       # Double-quote double-evaled strings.
15153       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15154       ;;
15155     *)
15156       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15157       ;;
15158     esac
15159   done
15160
15161   case $lt_echo in
15162   *'\$0 --fallback-echo"')
15163     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15164     ;;
15165   esac
15166
15167 cfgfile="$ofile"
15168
15169   cat <<__EOF__ >> "$cfgfile"
15170 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15171
15172 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15173
15174 # Shell to use when invoking shell scripts.
15175 SHELL=$lt_SHELL
15176
15177 # Whether or not to build shared libraries.
15178 build_libtool_libs=$enable_shared
15179
15180 # Whether or not to build static libraries.
15181 build_old_libs=$enable_static
15182
15183 # Whether or not to add -lc for building shared libraries.
15184 build_libtool_need_lc=$archive_cmds_need_lc_F77
15185
15186 # Whether or not to disallow shared libs when runtime libs are static
15187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15188
15189 # Whether or not to optimize for fast installation.
15190 fast_install=$enable_fast_install
15191
15192 # The host system.
15193 host_alias=$host_alias
15194 host=$host
15195 host_os=$host_os
15196
15197 # The build system.
15198 build_alias=$build_alias
15199 build=$build
15200 build_os=$build_os
15201
15202 # An echo program that does not interpret backslashes.
15203 echo=$lt_echo
15204
15205 # The archiver.
15206 AR=$lt_AR
15207 AR_FLAGS=$lt_AR_FLAGS
15208
15209 # A C compiler.
15210 LTCC=$lt_LTCC
15211
15212 # LTCC compiler flags.
15213 LTCFLAGS=$lt_LTCFLAGS
15214
15215 # A language-specific compiler.
15216 CC=$lt_compiler_F77
15217
15218 # Is the compiler the GNU C compiler?
15219 with_gcc=$GCC_F77
15220
15221 # An ERE matcher.
15222 EGREP=$lt_EGREP
15223
15224 # The linker used to build libraries.
15225 LD=$lt_LD_F77
15226
15227 # Whether we need hard or soft links.
15228 LN_S=$lt_LN_S
15229
15230 # A BSD-compatible nm program.
15231 NM=$lt_NM
15232
15233 # A symbol stripping program
15234 STRIP=$lt_STRIP
15235
15236 # Used to examine libraries when file_magic_cmd begins "file"
15237 MAGIC_CMD=$MAGIC_CMD
15238
15239 # Used on cygwin: DLL creation program.
15240 DLLTOOL="$DLLTOOL"
15241
15242 # Used on cygwin: object dumper.
15243 OBJDUMP="$OBJDUMP"
15244
15245 # Used on cygwin: assembler.
15246 AS="$AS"
15247
15248 # The name of the directory that contains temporary libtool files.
15249 objdir=$objdir
15250
15251 # How to create reloadable object files.
15252 reload_flag=$lt_reload_flag
15253 reload_cmds=$lt_reload_cmds
15254
15255 # How to pass a linker flag through the compiler.
15256 wl=$lt_lt_prog_compiler_wl_F77
15257
15258 # Object file suffix (normally "o").
15259 objext="$ac_objext"
15260
15261 # Old archive suffix (normally "a").
15262 libext="$libext"
15263
15264 # Shared library suffix (normally ".so").
15265 shrext_cmds='$shrext_cmds'
15266
15267 # Executable file suffix (normally "").
15268 exeext="$exeext"
15269
15270 # Additional compiler flags for building library objects.
15271 pic_flag=$lt_lt_prog_compiler_pic_F77
15272 pic_mode=$pic_mode
15273
15274 # What is the maximum length of a command?
15275 max_cmd_len=$lt_cv_sys_max_cmd_len
15276
15277 # Does compiler simultaneously support -c and -o options?
15278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15279
15280 # Must we lock files when doing compilation?
15281 need_locks=$lt_need_locks
15282
15283 # Do we need the lib prefix for modules?
15284 need_lib_prefix=$need_lib_prefix
15285
15286 # Do we need a version for libraries?
15287 need_version=$need_version
15288
15289 # Whether dlopen is supported.
15290 dlopen_support=$enable_dlopen
15291
15292 # Whether dlopen of programs is supported.
15293 dlopen_self=$enable_dlopen_self
15294
15295 # Whether dlopen of statically linked programs is supported.
15296 dlopen_self_static=$enable_dlopen_self_static
15297
15298 # Compiler flag to prevent dynamic linking.
15299 link_static_flag=$lt_lt_prog_compiler_static_F77
15300
15301 # Compiler flag to turn off builtin functions.
15302 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15303
15304 # Compiler flag to allow reflexive dlopens.
15305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15306
15307 # Compiler flag to generate shared objects directly from archives.
15308 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15309
15310 # Compiler flag to generate thread-safe objects.
15311 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15312
15313 # Library versioning type.
15314 version_type=$version_type
15315
15316 # Format of library name prefix.
15317 libname_spec=$lt_libname_spec
15318
15319 # List of archive names.  First name is the real one, the rest are links.
15320 # The last name is the one that the linker finds with -lNAME.
15321 library_names_spec=$lt_library_names_spec
15322
15323 # The coded name of the library, if different from the real name.
15324 soname_spec=$lt_soname_spec
15325
15326 # Commands used to build and install an old-style archive.
15327 RANLIB=$lt_RANLIB
15328 old_archive_cmds=$lt_old_archive_cmds_F77
15329 old_postinstall_cmds=$lt_old_postinstall_cmds
15330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15331
15332 # Create an old-style archive from a shared archive.
15333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15334
15335 # Create a temporary old-style archive to link instead of a shared archive.
15336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15337
15338 # Commands used to build and install a shared archive.
15339 archive_cmds=$lt_archive_cmds_F77
15340 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15341 postinstall_cmds=$lt_postinstall_cmds
15342 postuninstall_cmds=$lt_postuninstall_cmds
15343
15344 # Commands used to build a loadable module (assumed same as above if empty)
15345 module_cmds=$lt_module_cmds_F77
15346 module_expsym_cmds=$lt_module_expsym_cmds_F77
15347
15348 # Commands to strip libraries.
15349 old_striplib=$lt_old_striplib
15350 striplib=$lt_striplib
15351
15352 # Dependencies to place before the objects being linked to create a
15353 # shared library.
15354 predep_objects=$lt_predep_objects_F77
15355
15356 # Dependencies to place after the objects being linked to create a
15357 # shared library.
15358 postdep_objects=$lt_postdep_objects_F77
15359
15360 # Dependencies to place before the objects being linked to create a
15361 # shared library.
15362 predeps=$lt_predeps_F77
15363
15364 # Dependencies to place after the objects being linked to create a
15365 # shared library.
15366 postdeps=$lt_postdeps_F77
15367
15368 # The directories searched by this compiler when creating a shared
15369 # library
15370 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15371
15372 # The library search path used internally by the compiler when linking
15373 # a shared library.
15374 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15375
15376 # Method to check whether dependent libraries are shared objects.
15377 deplibs_check_method=$lt_deplibs_check_method
15378
15379 # Command to use when deplibs_check_method == file_magic.
15380 file_magic_cmd=$lt_file_magic_cmd
15381
15382 # Flag that allows shared libraries with undefined symbols to be built.
15383 allow_undefined_flag=$lt_allow_undefined_flag_F77
15384
15385 # Flag that forces no undefined symbols.
15386 no_undefined_flag=$lt_no_undefined_flag_F77
15387
15388 # Commands used to finish a libtool library installation in a directory.
15389 finish_cmds=$lt_finish_cmds
15390
15391 # Same as above, but a single script fragment to be evaled but not shown.
15392 finish_eval=$lt_finish_eval
15393
15394 # Take the output of nm and produce a listing of raw symbols and C names.
15395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15396
15397 # Transform the output of nm in a proper C declaration
15398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15399
15400 # Transform the output of nm in a C name address pair
15401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15402
15403 # This is the shared library runtime path variable.
15404 runpath_var=$runpath_var
15405
15406 # This is the shared library path variable.
15407 shlibpath_var=$shlibpath_var
15408
15409 # Is shlibpath searched before the hard-coded library search path?
15410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15411
15412 # How to hardcode a shared library path into an executable.
15413 hardcode_action=$hardcode_action_F77
15414
15415 # Whether we should hardcode library paths into libraries.
15416 hardcode_into_libs=$hardcode_into_libs
15417
15418 # Flag to hardcode \$libdir into a binary during linking.
15419 # This must work even if \$libdir does not exist.
15420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15421
15422 # If ld is used when linking, flag to hardcode \$libdir into
15423 # a binary during linking. This must work even if \$libdir does
15424 # not exist.
15425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15426
15427 # Whether we need a single -rpath flag with a separated argument.
15428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15429
15430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15431 # resulting binary.
15432 hardcode_direct=$hardcode_direct_F77
15433
15434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15435 # resulting binary.
15436 hardcode_minus_L=$hardcode_minus_L_F77
15437
15438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15439 # the resulting binary.
15440 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15441
15442 # Set to yes if building a shared library automatically hardcodes DIR into the library
15443 # and all subsequent libraries and executables linked against it.
15444 hardcode_automatic=$hardcode_automatic_F77
15445
15446 # Variables whose values should be saved in libtool wrapper scripts and
15447 # restored at relink time.
15448 variables_saved_for_relink="$variables_saved_for_relink"
15449
15450 # Whether libtool must link a program against all its dependency libraries.
15451 link_all_deplibs=$link_all_deplibs_F77
15452
15453 # Compile-time system search path for libraries
15454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15455
15456 # Run-time system search path for libraries
15457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15458
15459 # Fix the shell variable \$srcfile for the compiler.
15460 fix_srcfile_path=$lt_fix_srcfile_path
15461
15462 # Set to yes if exported symbols are required.
15463 always_export_symbols=$always_export_symbols_F77
15464
15465 # The commands to list exported symbols.
15466 export_symbols_cmds=$lt_export_symbols_cmds_F77
15467
15468 # The commands to extract the exported symbol list from a shared archive.
15469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15470
15471 # Symbols that should not be listed in the preloaded symbols.
15472 exclude_expsyms=$lt_exclude_expsyms_F77
15473
15474 # Symbols that must always be exported.
15475 include_expsyms=$lt_include_expsyms_F77
15476
15477 # ### END LIBTOOL TAG CONFIG: $tagname
15478
15479 __EOF__
15480
15481
15482 else
15483   # If there is no Makefile yet, we rely on a make rule to execute
15484   # `config.status --recheck' to rerun these tests and create the
15485   # libtool script then.
15486   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15487   if test -f "$ltmain_in"; then
15488     test -f Makefile && make "$ltmain"
15489   fi
15490 fi
15491
15492
15493 ac_ext=c
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15498
15499 CC="$lt_save_CC"
15500
15501         else
15502           tagname=""
15503         fi
15504         ;;
15505
15506       GCJ)
15507         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15508
15509
15510 # Source file extension for Java test sources.
15511 ac_ext=java
15512
15513 # Object file extension for compiled Java test sources.
15514 objext=o
15515 objext_GCJ=$objext
15516
15517 # Code to be used in simple compile tests
15518 lt_simple_compile_test_code="class foo {}"
15519
15520 # Code to be used in simple link tests
15521 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15522
15523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15524
15525 # If no C compiler was specified, use CC.
15526 LTCC=${LTCC-"$CC"}
15527
15528 # If no C compiler flags were specified, use CFLAGS.
15529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15530
15531 # Allow CC to be a program name with arguments.
15532 compiler=$CC
15533
15534
15535 # save warnings/boilerplate of simple test code
15536 ac_outfile=conftest.$ac_objext
15537 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15538 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15539 _lt_compiler_boilerplate=`cat conftest.err`
15540 $rm conftest*
15541
15542 ac_outfile=conftest.$ac_objext
15543 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15544 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15545 _lt_linker_boilerplate=`cat conftest.err`
15546 $rm -r conftest*
15547
15548
15549 # Allow CC to be a program name with arguments.
15550 lt_save_CC="$CC"
15551 CC=${GCJ-"gcj"}
15552 compiler=$CC
15553 compiler_GCJ=$CC
15554 for cc_temp in $compiler""; do
15555   case $cc_temp in
15556     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15557     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15558     \-*) ;;
15559     *) break;;
15560   esac
15561 done
15562 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15563
15564
15565 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15566 archive_cmds_need_lc_GCJ=no
15567
15568 old_archive_cmds_GCJ=$old_archive_cmds
15569
15570 ## CAVEAT EMPTOR:
15571 ## There is no encapsulation within the following macros, do not change
15572 ## the running order or otherwise move them around unless you know exactly
15573 ## what you are doing...
15574
15575 lt_prog_compiler_no_builtin_flag_GCJ=
15576
15577 if test "$GCC" = yes; then
15578   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15579
15580
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15582 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15583 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15584   $as_echo_n "(cached) " >&6
15585 else
15586   lt_cv_prog_compiler_rtti_exceptions=no
15587   ac_outfile=conftest.$ac_objext
15588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15589    lt_compiler_flag="-fno-rtti -fno-exceptions"
15590    # Insert the option either (1) after the last *FLAGS variable, or
15591    # (2) before a word containing "conftest.", or (3) at the end.
15592    # Note that $ac_compile itself does not contain backslashes and begins
15593    # with a dollar sign (not a hyphen), so the echo should work correctly.
15594    # The option is referenced via a variable to avoid confusing sed.
15595    lt_compile=`echo "$ac_compile" | $SED \
15596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598    -e 's:$: $lt_compiler_flag:'`
15599    (eval echo "\"\$as_me:15599: $lt_compile\"" >&5)
15600    (eval "$lt_compile" 2>conftest.err)
15601    ac_status=$?
15602    cat conftest.err >&5
15603    echo "$as_me:15603: \$? = $ac_status" >&5
15604    if (exit $ac_status) && test -s "$ac_outfile"; then
15605      # The compiler can only warn and ignore the option if not recognized
15606      # So say no if there are warnings other than the usual output.
15607      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15608      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15609      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15610        lt_cv_prog_compiler_rtti_exceptions=yes
15611      fi
15612    fi
15613    $rm conftest*
15614
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15617 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15618
15619 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15620     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15621 else
15622     :
15623 fi
15624
15625 fi
15626
15627 lt_prog_compiler_wl_GCJ=
15628 lt_prog_compiler_pic_GCJ=
15629 lt_prog_compiler_static_GCJ=
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15632 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15633
15634   if test "$GCC" = yes; then
15635     lt_prog_compiler_wl_GCJ='-Wl,'
15636     lt_prog_compiler_static_GCJ='-static'
15637
15638     case $host_os in
15639       aix*)
15640       # All AIX code is PIC.
15641       if test "$host_cpu" = ia64; then
15642         # AIX 5 now supports IA64 processor
15643         lt_prog_compiler_static_GCJ='-Bstatic'
15644       fi
15645       ;;
15646
15647     amigaos*)
15648       # FIXME: we need at least 68020 code to build shared libraries, but
15649       # adding the `-m68020' flag to GCC prevents building anything better,
15650       # like `-m68040'.
15651       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15652       ;;
15653
15654     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15655       # PIC is the default for these OSes.
15656       ;;
15657
15658     mingw* | cygwin* | pw32* | os2*)
15659       # This hack is so that the source file can tell whether it is being
15660       # built for inclusion in a dll (and should export symbols for example).
15661       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15662       # (--disable-auto-import) libraries
15663
15664       ;;
15665
15666     darwin* | rhapsody*)
15667       # PIC is the default on this platform
15668       # Common symbols not allowed in MH_DYLIB files
15669       lt_prog_compiler_pic_GCJ='-fno-common'
15670       ;;
15671
15672     interix[3-9]*)
15673       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15674       # Instead, we relocate shared libraries at runtime.
15675       ;;
15676
15677     msdosdjgpp*)
15678       # Just because we use GCC doesn't mean we suddenly get shared libraries
15679       # on systems that don't support them.
15680       lt_prog_compiler_can_build_shared_GCJ=no
15681       enable_shared=no
15682       ;;
15683
15684     sysv4*MP*)
15685       if test -d /usr/nec; then
15686         lt_prog_compiler_pic_GCJ=-Kconform_pic
15687       fi
15688       ;;
15689
15690     hpux*)
15691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15692       # not for PA HP-UX.
15693       case $host_cpu in
15694       hppa*64*|ia64*)
15695         # +Z the default
15696         ;;
15697       *)
15698         lt_prog_compiler_pic_GCJ='-fPIC'
15699         ;;
15700       esac
15701       ;;
15702
15703     *)
15704       lt_prog_compiler_pic_GCJ='-fPIC'
15705       ;;
15706     esac
15707   else
15708     # PORTME Check for flag to pass linker flags through the system compiler.
15709     case $host_os in
15710     aix*)
15711       lt_prog_compiler_wl_GCJ='-Wl,'
15712       if test "$host_cpu" = ia64; then
15713         # AIX 5 now supports IA64 processor
15714         lt_prog_compiler_static_GCJ='-Bstatic'
15715       else
15716         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15717       fi
15718       ;;
15719       darwin*)
15720         # PIC is the default on this platform
15721         # Common symbols not allowed in MH_DYLIB files
15722        case $cc_basename in
15723          xlc*)
15724          lt_prog_compiler_pic_GCJ='-qnocommon'
15725          lt_prog_compiler_wl_GCJ='-Wl,'
15726          ;;
15727        esac
15728        ;;
15729
15730     mingw* | cygwin* | pw32* | os2*)
15731       # This hack is so that the source file can tell whether it is being
15732       # built for inclusion in a dll (and should export symbols for example).
15733
15734       ;;
15735
15736     hpux9* | hpux10* | hpux11*)
15737       lt_prog_compiler_wl_GCJ='-Wl,'
15738       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15739       # not for PA HP-UX.
15740       case $host_cpu in
15741       hppa*64*|ia64*)
15742         # +Z the default
15743         ;;
15744       *)
15745         lt_prog_compiler_pic_GCJ='+Z'
15746         ;;
15747       esac
15748       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15749       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15750       ;;
15751
15752     irix5* | irix6* | nonstopux*)
15753       lt_prog_compiler_wl_GCJ='-Wl,'
15754       # PIC (with -KPIC) is the default.
15755       lt_prog_compiler_static_GCJ='-non_shared'
15756       ;;
15757
15758     newsos6)
15759       lt_prog_compiler_pic_GCJ='-KPIC'
15760       lt_prog_compiler_static_GCJ='-Bstatic'
15761       ;;
15762
15763     linux* | k*bsd*-gnu)
15764       case $cc_basename in
15765       icc* | ecc*)
15766         lt_prog_compiler_wl_GCJ='-Wl,'
15767         lt_prog_compiler_pic_GCJ='-KPIC'
15768         lt_prog_compiler_static_GCJ='-static'
15769         ;;
15770       pgcc* | pgf77* | pgf90* | pgf95*)
15771         # Portland Group compilers (*not* the Pentium gcc compiler,
15772         # which looks to be a dead project)
15773         lt_prog_compiler_wl_GCJ='-Wl,'
15774         lt_prog_compiler_pic_GCJ='-fpic'
15775         lt_prog_compiler_static_GCJ='-Bstatic'
15776         ;;
15777       ccc*)
15778         lt_prog_compiler_wl_GCJ='-Wl,'
15779         # All Alpha code is PIC.
15780         lt_prog_compiler_static_GCJ='-non_shared'
15781         ;;
15782       *)
15783         case `$CC -V 2>&1 | sed 5q` in
15784         *Sun\ C*)
15785           # Sun C 5.9
15786           lt_prog_compiler_pic_GCJ='-KPIC'
15787           lt_prog_compiler_static_GCJ='-Bstatic'
15788           lt_prog_compiler_wl_GCJ='-Wl,'
15789           ;;
15790         *Sun\ F*)
15791           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15792           lt_prog_compiler_pic_GCJ='-KPIC'
15793           lt_prog_compiler_static_GCJ='-Bstatic'
15794           lt_prog_compiler_wl_GCJ=''
15795           ;;
15796         esac
15797         ;;
15798       esac
15799       ;;
15800
15801     osf3* | osf4* | osf5*)
15802       lt_prog_compiler_wl_GCJ='-Wl,'
15803       # All OSF/1 code is PIC.
15804       lt_prog_compiler_static_GCJ='-non_shared'
15805       ;;
15806
15807     rdos*)
15808       lt_prog_compiler_static_GCJ='-non_shared'
15809       ;;
15810
15811     solaris*)
15812       lt_prog_compiler_pic_GCJ='-KPIC'
15813       lt_prog_compiler_static_GCJ='-Bstatic'
15814       case $cc_basename in
15815       f77* | f90* | f95*)
15816         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15817       *)
15818         lt_prog_compiler_wl_GCJ='-Wl,';;
15819       esac
15820       ;;
15821
15822     sunos4*)
15823       lt_prog_compiler_wl_GCJ='-Qoption ld '
15824       lt_prog_compiler_pic_GCJ='-PIC'
15825       lt_prog_compiler_static_GCJ='-Bstatic'
15826       ;;
15827
15828     sysv4 | sysv4.2uw2* | sysv4.3*)
15829       lt_prog_compiler_wl_GCJ='-Wl,'
15830       lt_prog_compiler_pic_GCJ='-KPIC'
15831       lt_prog_compiler_static_GCJ='-Bstatic'
15832       ;;
15833
15834     sysv4*MP*)
15835       if test -d /usr/nec ;then
15836         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15837         lt_prog_compiler_static_GCJ='-Bstatic'
15838       fi
15839       ;;
15840
15841     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15842       lt_prog_compiler_wl_GCJ='-Wl,'
15843       lt_prog_compiler_pic_GCJ='-KPIC'
15844       lt_prog_compiler_static_GCJ='-Bstatic'
15845       ;;
15846
15847     unicos*)
15848       lt_prog_compiler_wl_GCJ='-Wl,'
15849       lt_prog_compiler_can_build_shared_GCJ=no
15850       ;;
15851
15852     uts4*)
15853       lt_prog_compiler_pic_GCJ='-pic'
15854       lt_prog_compiler_static_GCJ='-Bstatic'
15855       ;;
15856
15857     *)
15858       lt_prog_compiler_can_build_shared_GCJ=no
15859       ;;
15860     esac
15861   fi
15862
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15864 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15865
15866 #
15867 # Check to make sure the PIC flag actually works.
15868 #
15869 if test -n "$lt_prog_compiler_pic_GCJ"; then
15870
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15872 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15873 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
15874   $as_echo_n "(cached) " >&6
15875 else
15876   lt_cv_prog_compiler_pic_works_GCJ=no
15877   ac_outfile=conftest.$ac_objext
15878    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15879    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15880    # Insert the option either (1) after the last *FLAGS variable, or
15881    # (2) before a word containing "conftest.", or (3) at the end.
15882    # Note that $ac_compile itself does not contain backslashes and begins
15883    # with a dollar sign (not a hyphen), so the echo should work correctly.
15884    # The option is referenced via a variable to avoid confusing sed.
15885    lt_compile=`echo "$ac_compile" | $SED \
15886    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15888    -e 's:$: $lt_compiler_flag:'`
15889    (eval echo "\"\$as_me:15889: $lt_compile\"" >&5)
15890    (eval "$lt_compile" 2>conftest.err)
15891    ac_status=$?
15892    cat conftest.err >&5
15893    echo "$as_me:15893: \$? = $ac_status" >&5
15894    if (exit $ac_status) && test -s "$ac_outfile"; then
15895      # The compiler can only warn and ignore the option if not recognized
15896      # So say no if there are warnings other than the usual output.
15897      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15898      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15899      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15900        lt_cv_prog_compiler_pic_works_GCJ=yes
15901      fi
15902    fi
15903    $rm conftest*
15904
15905 fi
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
15907 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
15908
15909 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
15910     case $lt_prog_compiler_pic_GCJ in
15911      "" | " "*) ;;
15912      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15913      esac
15914 else
15915     lt_prog_compiler_pic_GCJ=
15916      lt_prog_compiler_can_build_shared_GCJ=no
15917 fi
15918
15919 fi
15920 case $host_os in
15921   # For platforms which do not support PIC, -DPIC is meaningless:
15922   *djgpp*)
15923     lt_prog_compiler_pic_GCJ=
15924     ;;
15925   *)
15926     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15927     ;;
15928 esac
15929
15930 #
15931 # Check to make sure the static flag actually works.
15932 #
15933 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15936 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
15937   $as_echo_n "(cached) " >&6
15938 else
15939   lt_cv_prog_compiler_static_works_GCJ=no
15940    save_LDFLAGS="$LDFLAGS"
15941    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15942    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15943    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15944      # The linker can only warn and ignore the option if not recognized
15945      # So say no if there are warnings
15946      if test -s conftest.err; then
15947        # Append any errors to the config.log.
15948        cat conftest.err 1>&5
15949        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15950        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15951        if diff conftest.exp conftest.er2 >/dev/null; then
15952          lt_cv_prog_compiler_static_works_GCJ=yes
15953        fi
15954      else
15955        lt_cv_prog_compiler_static_works_GCJ=yes
15956      fi
15957    fi
15958    $rm -r conftest*
15959    LDFLAGS="$save_LDFLAGS"
15960
15961 fi
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
15963 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
15964
15965 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
15966     :
15967 else
15968     lt_prog_compiler_static_GCJ=
15969 fi
15970
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15974 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
15975   $as_echo_n "(cached) " >&6
15976 else
15977   lt_cv_prog_compiler_c_o_GCJ=no
15978    $rm -r conftest 2>/dev/null
15979    mkdir conftest
15980    cd conftest
15981    mkdir out
15982    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983
15984    lt_compiler_flag="-o out/conftest2.$ac_objext"
15985    # Insert the option either (1) after the last *FLAGS variable, or
15986    # (2) before a word containing "conftest.", or (3) at the end.
15987    # Note that $ac_compile itself does not contain backslashes and begins
15988    # with a dollar sign (not a hyphen), so the echo should work correctly.
15989    lt_compile=`echo "$ac_compile" | $SED \
15990    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15992    -e 's:$: $lt_compiler_flag:'`
15993    (eval echo "\"\$as_me:15993: $lt_compile\"" >&5)
15994    (eval "$lt_compile" 2>out/conftest.err)
15995    ac_status=$?
15996    cat out/conftest.err >&5
15997    echo "$as_me:15997: \$? = $ac_status" >&5
15998    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15999    then
16000      # The compiler can only warn and ignore the option if not recognized
16001      # So say no if there are warnings
16002      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16003      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16004      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16005        lt_cv_prog_compiler_c_o_GCJ=yes
16006      fi
16007    fi
16008    chmod u+w . 2>&5
16009    $rm conftest*
16010    # SGI C++ compiler will create directory out/ii_files/ for
16011    # template instantiation
16012    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16013    $rm out/* && rmdir out
16014    cd ..
16015    rmdir conftest
16016    $rm conftest*
16017
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16020 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16021
16022
16023 hard_links="nottested"
16024 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16025   # do not overwrite the value of need_locks provided by the user
16026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16027 $as_echo_n "checking if we can lock with hard links... " >&6; }
16028   hard_links=yes
16029   $rm conftest*
16030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16031   touch conftest.a
16032   ln conftest.a conftest.b 2>&5 || hard_links=no
16033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16035 $as_echo "$hard_links" >&6; }
16036   if test "$hard_links" = no; then
16037     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16038 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16039     need_locks=warn
16040   fi
16041 else
16042   need_locks=no
16043 fi
16044
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16046 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16047
16048   runpath_var=
16049   allow_undefined_flag_GCJ=
16050   enable_shared_with_static_runtimes_GCJ=no
16051   archive_cmds_GCJ=
16052   archive_expsym_cmds_GCJ=
16053   old_archive_From_new_cmds_GCJ=
16054   old_archive_from_expsyms_cmds_GCJ=
16055   export_dynamic_flag_spec_GCJ=
16056   whole_archive_flag_spec_GCJ=
16057   thread_safe_flag_spec_GCJ=
16058   hardcode_libdir_flag_spec_GCJ=
16059   hardcode_libdir_flag_spec_ld_GCJ=
16060   hardcode_libdir_separator_GCJ=
16061   hardcode_direct_GCJ=no
16062   hardcode_minus_L_GCJ=no
16063   hardcode_shlibpath_var_GCJ=unsupported
16064   link_all_deplibs_GCJ=unknown
16065   hardcode_automatic_GCJ=no
16066   module_cmds_GCJ=
16067   module_expsym_cmds_GCJ=
16068   always_export_symbols_GCJ=no
16069   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16070   # include_expsyms should be a list of space-separated symbols to be *always*
16071   # included in the symbol list
16072   include_expsyms_GCJ=
16073   # exclude_expsyms can be an extended regexp of symbols to exclude
16074   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16075   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16076   # as well as any symbol that contains `d'.
16077   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16078   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16079   # platforms (ab)use it in PIC code, but their linkers get confused if
16080   # the symbol is explicitly referenced.  Since portable code cannot
16081   # rely on this symbol name, it's probably fine to never include it in
16082   # preloaded symbol tables.
16083   # Exclude shared library initialization/finalization symbols.
16084   extract_expsyms_cmds=
16085   # Just being paranoid about ensuring that cc_basename is set.
16086   for cc_temp in $compiler""; do
16087   case $cc_temp in
16088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16090     \-*) ;;
16091     *) break;;
16092   esac
16093 done
16094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16095
16096   case $host_os in
16097   cygwin* | mingw* | pw32*)
16098     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16099     # When not using gcc, we currently assume that we are using
16100     # Microsoft Visual C++.
16101     if test "$GCC" != yes; then
16102       with_gnu_ld=no
16103     fi
16104     ;;
16105   interix*)
16106     # we just hope/assume this is gcc and not c89 (= MSVC++)
16107     with_gnu_ld=yes
16108     ;;
16109   openbsd*)
16110     with_gnu_ld=no
16111     ;;
16112   esac
16113
16114   ld_shlibs_GCJ=yes
16115   if test "$with_gnu_ld" = yes; then
16116     # If archive_cmds runs LD, not CC, wlarc should be empty
16117     wlarc='${wl}'
16118
16119     # Set some defaults for GNU ld with shared library support. These
16120     # are reset later if shared libraries are not supported. Putting them
16121     # here allows them to be overridden if necessary.
16122     runpath_var=LD_RUN_PATH
16123     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16124     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16125     # ancient GNU ld didn't support --whole-archive et. al.
16126     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16127         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16128       else
16129         whole_archive_flag_spec_GCJ=
16130     fi
16131     supports_anon_versioning=no
16132     case `$LD -v 2>/dev/null` in
16133       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16134       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16135       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16136       *\ 2.11.*) ;; # other 2.11 versions
16137       *) supports_anon_versioning=yes ;;
16138     esac
16139
16140     # See if GNU ld supports shared libraries.
16141     case $host_os in
16142     aix[3-9]*)
16143       # On AIX/PPC, the GNU linker is very broken
16144       if test "$host_cpu" != ia64; then
16145         ld_shlibs_GCJ=no
16146         cat <<EOF 1>&2
16147
16148 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16149 *** to be unable to reliably create shared libraries on AIX.
16150 *** Therefore, libtool is disabling shared libraries support.  If you
16151 *** really care for shared libraries, you may want to modify your PATH
16152 *** so that a non-GNU linker is found, and then restart.
16153
16154 EOF
16155       fi
16156       ;;
16157
16158     amigaos*)
16159       archive_cmds_GCJ='$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)'
16160       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16161       hardcode_minus_L_GCJ=yes
16162
16163       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16164       # that the semantics of dynamic libraries on AmigaOS, at least up
16165       # to version 4, is to share data among multiple programs linked
16166       # with the same dynamic library.  Since this doesn't match the
16167       # behavior of shared libraries on other platforms, we can't use
16168       # them.
16169       ld_shlibs_GCJ=no
16170       ;;
16171
16172     beos*)
16173       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16174         allow_undefined_flag_GCJ=unsupported
16175         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16176         # support --undefined.  This deserves some investigation.  FIXME
16177         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16178       else
16179         ld_shlibs_GCJ=no
16180       fi
16181       ;;
16182
16183     cygwin* | mingw* | pw32*)
16184       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16185       # as there is no search path for DLLs.
16186       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16187       allow_undefined_flag_GCJ=unsupported
16188       always_export_symbols_GCJ=no
16189       enable_shared_with_static_runtimes_GCJ=yes
16190       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16191
16192       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16193         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16194         # If the export-symbols file already is a .def file (1st line
16195         # is EXPORTS), use it as is; otherwise, prepend...
16196         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16197           cp $export_symbols $output_objdir/$soname.def;
16198         else
16199           echo EXPORTS > $output_objdir/$soname.def;
16200           cat $export_symbols >> $output_objdir/$soname.def;
16201         fi~
16202         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16203       else
16204         ld_shlibs_GCJ=no
16205       fi
16206       ;;
16207
16208     interix[3-9]*)
16209       hardcode_direct_GCJ=no
16210       hardcode_shlibpath_var_GCJ=no
16211       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16212       export_dynamic_flag_spec_GCJ='${wl}-E'
16213       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16214       # Instead, shared libraries are loaded at an image base (0x10000000 by
16215       # default) and relocated if they conflict, which is a slow very memory
16216       # consuming and fragmenting process.  To avoid this, we pick a random,
16217       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16218       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16219       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16220       archive_expsym_cmds_GCJ='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'
16221       ;;
16222
16223     gnu* | linux* | k*bsd*-gnu)
16224       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16225         tmp_addflag=
16226         case $cc_basename,$host_cpu in
16227         pgcc*)                          # Portland Group C compiler
16228           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16229           tmp_addflag=' $pic_flag'
16230           ;;
16231         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16232           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16233           tmp_addflag=' $pic_flag -Mnomain' ;;
16234         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16235           tmp_addflag=' -i_dynamic' ;;
16236         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16237           tmp_addflag=' -i_dynamic -nofor_main' ;;
16238         ifc* | ifort*)                  # Intel Fortran compiler
16239           tmp_addflag=' -nofor_main' ;;
16240         esac
16241         case `$CC -V 2>&1 | sed 5q` in
16242         *Sun\ C*)                       # Sun C 5.9
16243           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16244           tmp_sharedflag='-G' ;;
16245         *Sun\ F*)                       # Sun Fortran 8.3
16246           tmp_sharedflag='-G' ;;
16247         *)
16248           tmp_sharedflag='-shared' ;;
16249         esac
16250         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16251
16252         if test $supports_anon_versioning = yes; then
16253           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16254   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16255   $echo "local: *; };" >> $output_objdir/$libname.ver~
16256           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16257         fi
16258       else
16259         ld_shlibs_GCJ=no
16260       fi
16261       ;;
16262
16263     netbsd*)
16264       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16265         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16266         wlarc=
16267       else
16268         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16269         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16270       fi
16271       ;;
16272
16273     solaris*)
16274       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16275         ld_shlibs_GCJ=no
16276         cat <<EOF 1>&2
16277
16278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16279 *** create shared libraries on Solaris systems.  Therefore, libtool
16280 *** is disabling shared libraries support.  We urge you to upgrade GNU
16281 *** binutils to release 2.9.1 or newer.  Another option is to modify
16282 *** your PATH or compiler configuration so that the native linker is
16283 *** used, and then restart.
16284
16285 EOF
16286       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16287         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16288         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16289       else
16290         ld_shlibs_GCJ=no
16291       fi
16292       ;;
16293
16294     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16295       case `$LD -v 2>&1` in
16296         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16297         ld_shlibs_GCJ=no
16298         cat <<_LT_EOF 1>&2
16299
16300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16301 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16302 *** is disabling shared libraries support.  We urge you to upgrade GNU
16303 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16304 *** your PATH or compiler configuration so that the native linker is
16305 *** used, and then restart.
16306
16307 _LT_EOF
16308         ;;
16309         *)
16310           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16312             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16313             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16314           else
16315             ld_shlibs_GCJ=no
16316           fi
16317         ;;
16318       esac
16319       ;;
16320
16321     sunos4*)
16322       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16323       wlarc=
16324       hardcode_direct_GCJ=yes
16325       hardcode_shlibpath_var_GCJ=no
16326       ;;
16327
16328     *)
16329       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16330         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16331         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16332       else
16333         ld_shlibs_GCJ=no
16334       fi
16335       ;;
16336     esac
16337
16338     if test "$ld_shlibs_GCJ" = no; then
16339       runpath_var=
16340       hardcode_libdir_flag_spec_GCJ=
16341       export_dynamic_flag_spec_GCJ=
16342       whole_archive_flag_spec_GCJ=
16343     fi
16344   else
16345     # PORTME fill in a description of your system's linker (not GNU ld)
16346     case $host_os in
16347     aix3*)
16348       allow_undefined_flag_GCJ=unsupported
16349       always_export_symbols_GCJ=yes
16350       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16351       # Note: this linker hardcodes the directories in LIBPATH if there
16352       # are no directories specified by -L.
16353       hardcode_minus_L_GCJ=yes
16354       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16355         # Neither direct hardcoding nor static linking is supported with a
16356         # broken collect2.
16357         hardcode_direct_GCJ=unsupported
16358       fi
16359       ;;
16360
16361     aix[4-9]*)
16362       if test "$host_cpu" = ia64; then
16363         # On IA64, the linker does run time linking by default, so we don't
16364         # have to do anything special.
16365         aix_use_runtimelinking=no
16366         exp_sym_flag='-Bexport'
16367         no_entry_flag=""
16368       else
16369         # If we're using GNU nm, then we don't want the "-C" option.
16370         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16371         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16372           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16373         else
16374           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16375         fi
16376         aix_use_runtimelinking=no
16377
16378         # Test if we are trying to use run time linking or normal
16379         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16380         # need to do runtime linking.
16381         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16382           for ld_flag in $LDFLAGS; do
16383           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16384             aix_use_runtimelinking=yes
16385             break
16386           fi
16387           done
16388           ;;
16389         esac
16390
16391         exp_sym_flag='-bexport'
16392         no_entry_flag='-bnoentry'
16393       fi
16394
16395       # When large executables or shared objects are built, AIX ld can
16396       # have problems creating the table of contents.  If linking a library
16397       # or program results in "error TOC overflow" add -mminimal-toc to
16398       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16399       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16400
16401       archive_cmds_GCJ=''
16402       hardcode_direct_GCJ=yes
16403       hardcode_libdir_separator_GCJ=':'
16404       link_all_deplibs_GCJ=yes
16405
16406       if test "$GCC" = yes; then
16407         case $host_os in aix4.[012]|aix4.[012].*)
16408         # We only want to do this on AIX 4.2 and lower, the check
16409         # below for broken collect2 doesn't work under 4.3+
16410           collect2name=`${CC} -print-prog-name=collect2`
16411           if test -f "$collect2name" && \
16412            strings "$collect2name" | grep resolve_lib_name >/dev/null
16413           then
16414           # We have reworked collect2
16415           :
16416           else
16417           # We have old collect2
16418           hardcode_direct_GCJ=unsupported
16419           # It fails to find uninstalled libraries when the uninstalled
16420           # path is not listed in the libpath.  Setting hardcode_minus_L
16421           # to unsupported forces relinking
16422           hardcode_minus_L_GCJ=yes
16423           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16424           hardcode_libdir_separator_GCJ=
16425           fi
16426           ;;
16427         esac
16428         shared_flag='-shared'
16429         if test "$aix_use_runtimelinking" = yes; then
16430           shared_flag="$shared_flag "'${wl}-G'
16431         fi
16432       else
16433         # not using gcc
16434         if test "$host_cpu" = ia64; then
16435         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16436         # chokes on -Wl,-G. The following line is correct:
16437           shared_flag='-G'
16438         else
16439           if test "$aix_use_runtimelinking" = yes; then
16440             shared_flag='${wl}-G'
16441           else
16442             shared_flag='${wl}-bM:SRE'
16443           fi
16444         fi
16445       fi
16446
16447       # It seems that -bexpall does not export symbols beginning with
16448       # underscore (_), so it is better to generate a list of symbols to export.
16449       always_export_symbols_GCJ=yes
16450       if test "$aix_use_runtimelinking" = yes; then
16451         # Warning - without using the other runtime loading flags (-brtl),
16452         # -berok will link without error, but may produce a broken library.
16453         allow_undefined_flag_GCJ='-berok'
16454        # Determine the default libpath from the value encoded in an empty executable.
16455        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h.  */
16457
16458 int
16459 main ()
16460 {
16461
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 if ac_fn_c_try_link "$LINENO"; then :
16467
16468 lt_aix_libpath_sed='
16469     /Import File Strings/,/^$/ {
16470         /^0/ {
16471             s/^0  *\(.*\)$/\1/
16472             p
16473         }
16474     }'
16475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16476 # Check for a 64-bit object if we didn't find anything.
16477 if test -z "$aix_libpath"; then
16478   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16479 fi
16480 fi
16481 rm -f core conftest.err conftest.$ac_objext \
16482     conftest$ac_exeext conftest.$ac_ext
16483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16484
16485        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16486         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16487        else
16488         if test "$host_cpu" = ia64; then
16489           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16490           allow_undefined_flag_GCJ="-z nodefs"
16491           archive_expsym_cmds_GCJ="\$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"
16492         else
16493          # Determine the default libpath from the value encoded in an empty executable.
16494          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h.  */
16496
16497 int
16498 main ()
16499 {
16500
16501   ;
16502   return 0;
16503 }
16504 _ACEOF
16505 if ac_fn_c_try_link "$LINENO"; then :
16506
16507 lt_aix_libpath_sed='
16508     /Import File Strings/,/^$/ {
16509         /^0/ {
16510             s/^0  *\(.*\)$/\1/
16511             p
16512         }
16513     }'
16514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16515 # Check for a 64-bit object if we didn't find anything.
16516 if test -z "$aix_libpath"; then
16517   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16518 fi
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext \
16521     conftest$ac_exeext conftest.$ac_ext
16522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16523
16524          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16525           # Warning - without using the other run time loading flags,
16526           # -berok will link without error, but may produce a broken library.
16527           no_undefined_flag_GCJ=' ${wl}-bernotok'
16528           allow_undefined_flag_GCJ=' ${wl}-berok'
16529           # Exported symbols can be pulled into shared objects from archives
16530           whole_archive_flag_spec_GCJ='$convenience'
16531           archive_cmds_need_lc_GCJ=yes
16532           # This is similar to how AIX traditionally builds its shared libraries.
16533           archive_expsym_cmds_GCJ="\$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'
16534         fi
16535       fi
16536       ;;
16537
16538     amigaos*)
16539       archive_cmds_GCJ='$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)'
16540       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16541       hardcode_minus_L_GCJ=yes
16542       # see comment about different semantics on the GNU ld section
16543       ld_shlibs_GCJ=no
16544       ;;
16545
16546     bsdi[45]*)
16547       export_dynamic_flag_spec_GCJ=-rdynamic
16548       ;;
16549
16550     cygwin* | mingw* | pw32*)
16551       # When not using gcc, we currently assume that we are using
16552       # Microsoft Visual C++.
16553       # hardcode_libdir_flag_spec is actually meaningless, as there is
16554       # no search path for DLLs.
16555       hardcode_libdir_flag_spec_GCJ=' '
16556       allow_undefined_flag_GCJ=unsupported
16557       # Tell ltmain to make .lib files, not .a files.
16558       libext=lib
16559       # Tell ltmain to make .dll files, not .so files.
16560       shrext_cmds=".dll"
16561       # FIXME: Setting linknames here is a bad hack.
16562       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16563       # The linker will automatically build a .lib file if we build a DLL.
16564       old_archive_From_new_cmds_GCJ='true'
16565       # FIXME: Should let the user specify the lib program.
16566       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16567       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16568       enable_shared_with_static_runtimes_GCJ=yes
16569       ;;
16570
16571     darwin* | rhapsody*)
16572       case $host_os in
16573         rhapsody* | darwin1.[012])
16574          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16575          ;;
16576        *) # Darwin 1.3 on
16577          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16578            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16579          else
16580            case ${MACOSX_DEPLOYMENT_TARGET} in
16581              10.[012])
16582                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16583                ;;
16584              10.*)
16585                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16586                ;;
16587            esac
16588          fi
16589          ;;
16590       esac
16591       archive_cmds_need_lc_GCJ=no
16592       hardcode_direct_GCJ=no
16593       hardcode_automatic_GCJ=yes
16594       hardcode_shlibpath_var_GCJ=unsupported
16595       whole_archive_flag_spec_GCJ=''
16596       link_all_deplibs_GCJ=yes
16597     if test "$GCC" = yes ; then
16598         output_verbose_link_cmd='echo'
16599         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16600         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16601         archive_expsym_cmds_GCJ="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}"
16602         module_expsym_cmds_GCJ="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}"
16603     else
16604       case $cc_basename in
16605         xlc*)
16606          output_verbose_link_cmd='echo'
16607          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16608          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16609           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16610          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16611           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16612           ;;
16613        *)
16614          ld_shlibs_GCJ=no
16615           ;;
16616       esac
16617     fi
16618       ;;
16619
16620     dgux*)
16621       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16623       hardcode_shlibpath_var_GCJ=no
16624       ;;
16625
16626     freebsd1*)
16627       ld_shlibs_GCJ=no
16628       ;;
16629
16630     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16631     # support.  Future versions do this automatically, but an explicit c++rt0.o
16632     # does not break anything, and helps significantly (at the cost of a little
16633     # extra space).
16634     freebsd2.2*)
16635       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16636       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16637       hardcode_direct_GCJ=yes
16638       hardcode_shlibpath_var_GCJ=no
16639       ;;
16640
16641     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16642     freebsd2*)
16643       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16644       hardcode_direct_GCJ=yes
16645       hardcode_minus_L_GCJ=yes
16646       hardcode_shlibpath_var_GCJ=no
16647       ;;
16648
16649     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16650     freebsd* | dragonfly*)
16651       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16652       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16653       hardcode_direct_GCJ=yes
16654       hardcode_shlibpath_var_GCJ=no
16655       ;;
16656
16657     hpux9*)
16658       if test "$GCC" = yes; then
16659         archive_cmds_GCJ='$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'
16660       else
16661         archive_cmds_GCJ='$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'
16662       fi
16663       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16664       hardcode_libdir_separator_GCJ=:
16665       hardcode_direct_GCJ=yes
16666
16667       # hardcode_minus_L: Not really in the search PATH,
16668       # but as the default location of the library.
16669       hardcode_minus_L_GCJ=yes
16670       export_dynamic_flag_spec_GCJ='${wl}-E'
16671       ;;
16672
16673     hpux10*)
16674       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16675         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16676       else
16677         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16678       fi
16679       if test "$with_gnu_ld" = no; then
16680         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16681         hardcode_libdir_separator_GCJ=:
16682
16683         hardcode_direct_GCJ=yes
16684         export_dynamic_flag_spec_GCJ='${wl}-E'
16685
16686         # hardcode_minus_L: Not really in the search PATH,
16687         # but as the default location of the library.
16688         hardcode_minus_L_GCJ=yes
16689       fi
16690       ;;
16691
16692     hpux11*)
16693       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16694         case $host_cpu in
16695         hppa*64*)
16696           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16697           ;;
16698         ia64*)
16699           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16700           ;;
16701         *)
16702           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16703           ;;
16704         esac
16705       else
16706         case $host_cpu in
16707         hppa*64*)
16708           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16709           ;;
16710         ia64*)
16711           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16712           ;;
16713         *)
16714           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16715           ;;
16716         esac
16717       fi
16718       if test "$with_gnu_ld" = no; then
16719         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16720         hardcode_libdir_separator_GCJ=:
16721
16722         case $host_cpu in
16723         hppa*64*|ia64*)
16724           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16725           hardcode_direct_GCJ=no
16726           hardcode_shlibpath_var_GCJ=no
16727           ;;
16728         *)
16729           hardcode_direct_GCJ=yes
16730           export_dynamic_flag_spec_GCJ='${wl}-E'
16731
16732           # hardcode_minus_L: Not really in the search PATH,
16733           # but as the default location of the library.
16734           hardcode_minus_L_GCJ=yes
16735           ;;
16736         esac
16737       fi
16738       ;;
16739
16740     irix5* | irix6* | nonstopux*)
16741       if test "$GCC" = yes; then
16742         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16743       else
16744         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16745         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16746       fi
16747       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16748       hardcode_libdir_separator_GCJ=:
16749       link_all_deplibs_GCJ=yes
16750       ;;
16751
16752     netbsd*)
16753       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16754         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16755       else
16756         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16757       fi
16758       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16759       hardcode_direct_GCJ=yes
16760       hardcode_shlibpath_var_GCJ=no
16761       ;;
16762
16763     newsos6)
16764       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16765       hardcode_direct_GCJ=yes
16766       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16767       hardcode_libdir_separator_GCJ=:
16768       hardcode_shlibpath_var_GCJ=no
16769       ;;
16770
16771     openbsd*)
16772       if test -f /usr/libexec/ld.so; then
16773         hardcode_direct_GCJ=yes
16774         hardcode_shlibpath_var_GCJ=no
16775         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16776           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16777           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16778           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16779           export_dynamic_flag_spec_GCJ='${wl}-E'
16780         else
16781           case $host_os in
16782            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16783              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16784              hardcode_libdir_flag_spec_GCJ='-R$libdir'
16785              ;;
16786            *)
16787              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16788              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16789              ;;
16790           esac
16791         fi
16792       else
16793         ld_shlibs_GCJ=no
16794       fi
16795       ;;
16796
16797     os2*)
16798       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16799       hardcode_minus_L_GCJ=yes
16800       allow_undefined_flag_GCJ=unsupported
16801       archive_cmds_GCJ='$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'
16802       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16803       ;;
16804
16805     osf3*)
16806       if test "$GCC" = yes; then
16807         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16808         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16809       else
16810         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16811         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16812       fi
16813       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16814       hardcode_libdir_separator_GCJ=:
16815       ;;
16816
16817     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16818       if test "$GCC" = yes; then
16819         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16820         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16821         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16822       else
16823         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16824         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16825         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16826         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16827
16828         # Both c and cxx compiler support -rpath directly
16829         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16830       fi
16831       hardcode_libdir_separator_GCJ=:
16832       ;;
16833
16834     solaris*)
16835       no_undefined_flag_GCJ=' -z text'
16836       if test "$GCC" = yes; then
16837         wlarc='${wl}'
16838         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16839         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16840           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16841       else
16842         wlarc=''
16843         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16844         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16845         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16846       fi
16847       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16848       hardcode_shlibpath_var_GCJ=no
16849       case $host_os in
16850       solaris2.[0-5] | solaris2.[0-5].*) ;;
16851       *)
16852         # The compiler driver will combine and reorder linker options,
16853         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16854         # but is careful enough not to reorder.
16855         # Supported since Solaris 2.6 (maybe 2.5.1?)
16856         if test "$GCC" = yes; then
16857           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16858         else
16859           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16860         fi
16861         ;;
16862       esac
16863       link_all_deplibs_GCJ=yes
16864       ;;
16865
16866     sunos4*)
16867       if test "x$host_vendor" = xsequent; then
16868         # Use $CC to link under sequent, because it throws in some extra .o
16869         # files that make .init and .fini sections work.
16870         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16871       else
16872         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16873       fi
16874       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16875       hardcode_direct_GCJ=yes
16876       hardcode_minus_L_GCJ=yes
16877       hardcode_shlibpath_var_GCJ=no
16878       ;;
16879
16880     sysv4)
16881       case $host_vendor in
16882         sni)
16883           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884           hardcode_direct_GCJ=yes # is this really true???
16885         ;;
16886         siemens)
16887           ## LD is ld it makes a PLAMLIB
16888           ## CC just makes a GrossModule.
16889           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16890           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16891           hardcode_direct_GCJ=no
16892         ;;
16893         motorola)
16894           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16895           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16896         ;;
16897       esac
16898       runpath_var='LD_RUN_PATH'
16899       hardcode_shlibpath_var_GCJ=no
16900       ;;
16901
16902     sysv4.3*)
16903       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16904       hardcode_shlibpath_var_GCJ=no
16905       export_dynamic_flag_spec_GCJ='-Bexport'
16906       ;;
16907
16908     sysv4*MP*)
16909       if test -d /usr/nec; then
16910         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911         hardcode_shlibpath_var_GCJ=no
16912         runpath_var=LD_RUN_PATH
16913         hardcode_runpath_var=yes
16914         ld_shlibs_GCJ=yes
16915       fi
16916       ;;
16917
16918     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16919       no_undefined_flag_GCJ='${wl}-z,text'
16920       archive_cmds_need_lc_GCJ=no
16921       hardcode_shlibpath_var_GCJ=no
16922       runpath_var='LD_RUN_PATH'
16923
16924       if test "$GCC" = yes; then
16925         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16926         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16927       else
16928         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16929         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16930       fi
16931       ;;
16932
16933     sysv5* | sco3.2v5* | sco5v6*)
16934       # Note: We can NOT use -z defs as we might desire, because we do not
16935       # link with -lc, and that would cause any symbols used from libc to
16936       # always be unresolved, which means just about no library would
16937       # ever link correctly.  If we're not using GNU ld we use -z text
16938       # though, which does catch some bad symbols but isn't as heavy-handed
16939       # as -z defs.
16940       no_undefined_flag_GCJ='${wl}-z,text'
16941       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16942       archive_cmds_need_lc_GCJ=no
16943       hardcode_shlibpath_var_GCJ=no
16944       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16945       hardcode_libdir_separator_GCJ=':'
16946       link_all_deplibs_GCJ=yes
16947       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16948       runpath_var='LD_RUN_PATH'
16949
16950       if test "$GCC" = yes; then
16951         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16952         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16953       else
16954         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16955         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16956       fi
16957       ;;
16958
16959     uts4*)
16960       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16962       hardcode_shlibpath_var_GCJ=no
16963       ;;
16964
16965     *)
16966       ld_shlibs_GCJ=no
16967       ;;
16968     esac
16969   fi
16970
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16972 $as_echo "$ld_shlibs_GCJ" >&6; }
16973 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16974
16975 #
16976 # Do we need to explicitly link libc?
16977 #
16978 case "x$archive_cmds_need_lc_GCJ" in
16979 x|xyes)
16980   # Assume -lc should be added
16981   archive_cmds_need_lc_GCJ=yes
16982
16983   if test "$enable_shared" = yes && test "$GCC" = yes; then
16984     case $archive_cmds_GCJ in
16985     *'~'*)
16986       # FIXME: we may have to deal with multi-command sequences.
16987       ;;
16988     '$CC '*)
16989       # Test whether the compiler implicitly links with -lc since on some
16990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16991       # to ld, don't add -lc before -lgcc.
16992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16993 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16994       $rm conftest*
16995       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16996
16997       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16998   (eval $ac_compile) 2>&5
16999   ac_status=$?
17000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001   test $ac_status = 0; } 2>conftest.err; then
17002         soname=conftest
17003         lib=conftest
17004         libobjs=conftest.$ac_objext
17005         deplibs=
17006         wl=$lt_prog_compiler_wl_GCJ
17007         pic_flag=$lt_prog_compiler_pic_GCJ
17008         compiler_flags=-v
17009         linker_flags=-v
17010         verstring=
17011         output_objdir=.
17012         libname=conftest
17013         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17014         allow_undefined_flag_GCJ=
17015         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17016   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17017   ac_status=$?
17018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17019   test $ac_status = 0; }
17020         then
17021           archive_cmds_need_lc_GCJ=no
17022         else
17023           archive_cmds_need_lc_GCJ=yes
17024         fi
17025         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17026       else
17027         cat conftest.err 1>&5
17028       fi
17029       $rm conftest*
17030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17031 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17032       ;;
17033     esac
17034   fi
17035   ;;
17036 esac
17037
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17040 library_names_spec=
17041 libname_spec='lib$name'
17042 soname_spec=
17043 shrext_cmds=".so"
17044 postinstall_cmds=
17045 postuninstall_cmds=
17046 finish_cmds=
17047 finish_eval=
17048 shlibpath_var=
17049 shlibpath_overrides_runpath=unknown
17050 version_type=none
17051 dynamic_linker="$host_os ld.so"
17052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17053
17054 need_lib_prefix=unknown
17055 hardcode_into_libs=no
17056
17057 # when you set need_version to no, make sure it does not cause -set_version
17058 # flags to be left without arguments
17059 need_version=unknown
17060
17061 case $host_os in
17062 aix3*)
17063   version_type=linux
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17065   shlibpath_var=LIBPATH
17066
17067   # AIX 3 has no versioning support, so we append a major version to the name.
17068   soname_spec='${libname}${release}${shared_ext}$major'
17069   ;;
17070
17071 aix[4-9]*)
17072   version_type=linux
17073   need_lib_prefix=no
17074   need_version=no
17075   hardcode_into_libs=yes
17076   if test "$host_cpu" = ia64; then
17077     # AIX 5 supports IA64
17078     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17079     shlibpath_var=LD_LIBRARY_PATH
17080   else
17081     # With GCC up to 2.95.x, collect2 would create an import file
17082     # for dependence libraries.  The import file would start with
17083     # the line `#! .'.  This would cause the generated library to
17084     # depend on `.', always an invalid library.  This was fixed in
17085     # development snapshots of GCC prior to 3.0.
17086     case $host_os in
17087       aix4 | aix4.[01] | aix4.[01].*)
17088       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17089            echo ' yes '
17090            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17091         :
17092       else
17093         can_build_shared=no
17094       fi
17095       ;;
17096     esac
17097     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17098     # soname into executable. Probably we can add versioning support to
17099     # collect2, so additional links can be useful in future.
17100     if test "$aix_use_runtimelinking" = yes; then
17101       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17102       # instead of lib<name>.a to let people know that these are not
17103       # typical AIX shared libraries.
17104       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105     else
17106       # We preserve .a as extension for shared libraries through AIX4.2
17107       # and later when we are not doing run time linking.
17108       library_names_spec='${libname}${release}.a $libname.a'
17109       soname_spec='${libname}${release}${shared_ext}$major'
17110     fi
17111     shlibpath_var=LIBPATH
17112   fi
17113   ;;
17114
17115 amigaos*)
17116   library_names_spec='$libname.ixlibrary $libname.a'
17117   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17118   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17119   ;;
17120
17121 beos*)
17122   library_names_spec='${libname}${shared_ext}'
17123   dynamic_linker="$host_os ld.so"
17124   shlibpath_var=LIBRARY_PATH
17125   ;;
17126
17127 bsdi[45]*)
17128   version_type=linux
17129   need_version=no
17130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131   soname_spec='${libname}${release}${shared_ext}$major'
17132   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17133   shlibpath_var=LD_LIBRARY_PATH
17134   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17135   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17136   # the default ld.so.conf also contains /usr/contrib/lib and
17137   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17138   # libtool to hard-code these into programs
17139   ;;
17140
17141 cygwin* | mingw* | pw32*)
17142   version_type=windows
17143   shrext_cmds=".dll"
17144   need_version=no
17145   need_lib_prefix=no
17146
17147   case $GCC,$host_os in
17148   yes,cygwin* | yes,mingw* | yes,pw32*)
17149     library_names_spec='$libname.dll.a'
17150     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17151     postinstall_cmds='base_file=`basename \${file}`~
17152       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17153       dldir=$destdir/`dirname \$dlpath`~
17154       test -d \$dldir || mkdir -p \$dldir~
17155       $install_prog $dir/$dlname \$dldir/$dlname~
17156       chmod a+x \$dldir/$dlname'
17157     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17158       dlpath=$dir/\$dldll~
17159        $rm \$dlpath'
17160     shlibpath_overrides_runpath=yes
17161
17162     case $host_os in
17163     cygwin*)
17164       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17165       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17166       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17167       ;;
17168     mingw*)
17169       # MinGW DLLs use traditional 'lib' prefix
17170       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17171       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17172       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17173         # It is most probably a Windows format PATH printed by
17174         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17175         # path with ; separators, and with drive letters. We can handle the
17176         # drive letters (cygwin fileutils understands them), so leave them,
17177         # especially as we might pass files found there to a mingw objdump,
17178         # which wouldn't understand a cygwinified path. Ahh.
17179         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17180       else
17181         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17182       fi
17183       ;;
17184     pw32*)
17185       # pw32 DLLs use 'pw' prefix rather than 'lib'
17186       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17187       ;;
17188     esac
17189     ;;
17190
17191   *)
17192     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17193     ;;
17194   esac
17195   dynamic_linker='Win32 ld.exe'
17196   # FIXME: first we should search . and the directory the executable is in
17197   shlibpath_var=PATH
17198   ;;
17199
17200 darwin* | rhapsody*)
17201   dynamic_linker="$host_os dyld"
17202   version_type=darwin
17203   need_lib_prefix=no
17204   need_version=no
17205   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17206   soname_spec='${libname}${release}${major}$shared_ext'
17207   shlibpath_overrides_runpath=yes
17208   shlibpath_var=DYLD_LIBRARY_PATH
17209   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17210
17211   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17212   ;;
17213
17214 dgux*)
17215   version_type=linux
17216   need_lib_prefix=no
17217   need_version=no
17218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17219   soname_spec='${libname}${release}${shared_ext}$major'
17220   shlibpath_var=LD_LIBRARY_PATH
17221   ;;
17222
17223 freebsd1*)
17224   dynamic_linker=no
17225   ;;
17226
17227 freebsd* | dragonfly*)
17228   # DragonFly does not have aout.  When/if they implement a new
17229   # versioning mechanism, adjust this.
17230   if test -x /usr/bin/objformat; then
17231     objformat=`/usr/bin/objformat`
17232   else
17233     case $host_os in
17234     freebsd[123]*) objformat=aout ;;
17235     *) objformat=elf ;;
17236     esac
17237   fi
17238   version_type=freebsd-$objformat
17239   case $version_type in
17240     freebsd-elf*)
17241       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17242       need_version=no
17243       need_lib_prefix=no
17244       ;;
17245     freebsd-*)
17246       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17247       need_version=yes
17248       ;;
17249   esac
17250   shlibpath_var=LD_LIBRARY_PATH
17251   case $host_os in
17252   freebsd2*)
17253     shlibpath_overrides_runpath=yes
17254     ;;
17255   freebsd3.[01]* | freebsdelf3.[01]*)
17256     shlibpath_overrides_runpath=yes
17257     hardcode_into_libs=yes
17258     ;;
17259   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17260   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17261     shlibpath_overrides_runpath=no
17262     hardcode_into_libs=yes
17263     ;;
17264   *) # from 4.6 on, and DragonFly
17265     shlibpath_overrides_runpath=yes
17266     hardcode_into_libs=yes
17267     ;;
17268   esac
17269   ;;
17270
17271 gnu*)
17272   version_type=linux
17273   need_lib_prefix=no
17274   need_version=no
17275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17276   soname_spec='${libname}${release}${shared_ext}$major'
17277   shlibpath_var=LD_LIBRARY_PATH
17278   hardcode_into_libs=yes
17279   ;;
17280
17281 hpux9* | hpux10* | hpux11*)
17282   # Give a soname corresponding to the major version so that dld.sl refuses to
17283   # link against other versions.
17284   version_type=sunos
17285   need_lib_prefix=no
17286   need_version=no
17287   case $host_cpu in
17288   ia64*)
17289     shrext_cmds='.so'
17290     hardcode_into_libs=yes
17291     dynamic_linker="$host_os dld.so"
17292     shlibpath_var=LD_LIBRARY_PATH
17293     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295     soname_spec='${libname}${release}${shared_ext}$major'
17296     if test "X$HPUX_IA64_MODE" = X32; then
17297       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17298     else
17299       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17300     fi
17301     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17302     ;;
17303    hppa*64*)
17304      shrext_cmds='.sl'
17305      hardcode_into_libs=yes
17306      dynamic_linker="$host_os dld.sl"
17307      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17308      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17309      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310      soname_spec='${libname}${release}${shared_ext}$major'
17311      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17312      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17313      ;;
17314    *)
17315     shrext_cmds='.sl'
17316     dynamic_linker="$host_os dld.sl"
17317     shlibpath_var=SHLIB_PATH
17318     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320     soname_spec='${libname}${release}${shared_ext}$major'
17321     ;;
17322   esac
17323   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17324   postinstall_cmds='chmod 555 $lib'
17325   ;;
17326
17327 interix[3-9]*)
17328   version_type=linux
17329   need_lib_prefix=no
17330   need_version=no
17331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17332   soname_spec='${libname}${release}${shared_ext}$major'
17333   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17334   shlibpath_var=LD_LIBRARY_PATH
17335   shlibpath_overrides_runpath=no
17336   hardcode_into_libs=yes
17337   ;;
17338
17339 irix5* | irix6* | nonstopux*)
17340   case $host_os in
17341     nonstopux*) version_type=nonstopux ;;
17342     *)
17343         if test "$lt_cv_prog_gnu_ld" = yes; then
17344                 version_type=linux
17345         else
17346                 version_type=irix
17347         fi ;;
17348   esac
17349   need_lib_prefix=no
17350   need_version=no
17351   soname_spec='${libname}${release}${shared_ext}$major'
17352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17353   case $host_os in
17354   irix5* | nonstopux*)
17355     libsuff= shlibsuff=
17356     ;;
17357   *)
17358     case $LD in # libtool.m4 will add one of these switches to LD
17359     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17360       libsuff= shlibsuff= libmagic=32-bit;;
17361     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17362       libsuff=32 shlibsuff=N32 libmagic=N32;;
17363     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17364       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17365     *) libsuff= shlibsuff= libmagic=never-match;;
17366     esac
17367     ;;
17368   esac
17369   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17370   shlibpath_overrides_runpath=no
17371   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17372   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17373   hardcode_into_libs=yes
17374   ;;
17375
17376 # No shared lib support for Linux oldld, aout, or coff.
17377 linux*oldld* | linux*aout* | linux*coff*)
17378   dynamic_linker=no
17379   ;;
17380
17381 # This must be Linux ELF.
17382 linux* | k*bsd*-gnu)
17383   version_type=linux
17384   need_lib_prefix=no
17385   need_version=no
17386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387   soname_spec='${libname}${release}${shared_ext}$major'
17388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17389   shlibpath_var=LD_LIBRARY_PATH
17390   shlibpath_overrides_runpath=no
17391   # This implies no fast_install, which is unacceptable.
17392   # Some rework will be needed to allow for fast_install
17393   # before this can be enabled.
17394   hardcode_into_libs=yes
17395
17396   # Append ld.so.conf contents to the search path
17397   if test -f /etc/ld.so.conf; then
17398     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;/^$/d' | tr '\n' ' '`
17399     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17400   fi
17401
17402   # We used to test for /lib/ld.so.1 and disable shared libraries on
17403   # powerpc, because MkLinux only supported shared libraries with the
17404   # GNU dynamic linker.  Since this was broken with cross compilers,
17405   # most powerpc-linux boxes support dynamic linking these days and
17406   # people can always --disable-shared, the test was removed, and we
17407   # assume the GNU/Linux dynamic linker is in use.
17408   dynamic_linker='GNU/Linux ld.so'
17409   ;;
17410
17411 netbsd*)
17412   version_type=sunos
17413   need_lib_prefix=no
17414   need_version=no
17415   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17418     dynamic_linker='NetBSD (a.out) ld.so'
17419   else
17420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17421     soname_spec='${libname}${release}${shared_ext}$major'
17422     dynamic_linker='NetBSD ld.elf_so'
17423   fi
17424   shlibpath_var=LD_LIBRARY_PATH
17425   shlibpath_overrides_runpath=yes
17426   hardcode_into_libs=yes
17427   ;;
17428
17429 newsos6)
17430   version_type=linux
17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432   shlibpath_var=LD_LIBRARY_PATH
17433   shlibpath_overrides_runpath=yes
17434   ;;
17435
17436 nto-qnx*)
17437   version_type=linux
17438   need_lib_prefix=no
17439   need_version=no
17440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441   soname_spec='${libname}${release}${shared_ext}$major'
17442   shlibpath_var=LD_LIBRARY_PATH
17443   shlibpath_overrides_runpath=yes
17444   ;;
17445
17446 openbsd*)
17447   version_type=sunos
17448   sys_lib_dlsearch_path_spec="/usr/lib"
17449   need_lib_prefix=no
17450   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17451   case $host_os in
17452     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17453     *)                         need_version=no  ;;
17454   esac
17455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17457   shlibpath_var=LD_LIBRARY_PATH
17458   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17459     case $host_os in
17460       openbsd2.[89] | openbsd2.[89].*)
17461         shlibpath_overrides_runpath=no
17462         ;;
17463       *)
17464         shlibpath_overrides_runpath=yes
17465         ;;
17466       esac
17467   else
17468     shlibpath_overrides_runpath=yes
17469   fi
17470   ;;
17471
17472 os2*)
17473   libname_spec='$name'
17474   shrext_cmds=".dll"
17475   need_lib_prefix=no
17476   library_names_spec='$libname${shared_ext} $libname.a'
17477   dynamic_linker='OS/2 ld.exe'
17478   shlibpath_var=LIBPATH
17479   ;;
17480
17481 osf3* | osf4* | osf5*)
17482   version_type=osf
17483   need_lib_prefix=no
17484   need_version=no
17485   soname_spec='${libname}${release}${shared_ext}$major'
17486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487   shlibpath_var=LD_LIBRARY_PATH
17488   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17489   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17490   ;;
17491
17492 rdos*)
17493   dynamic_linker=no
17494   ;;
17495
17496 solaris*)
17497   version_type=linux
17498   need_lib_prefix=no
17499   need_version=no
17500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501   soname_spec='${libname}${release}${shared_ext}$major'
17502   shlibpath_var=LD_LIBRARY_PATH
17503   shlibpath_overrides_runpath=yes
17504   hardcode_into_libs=yes
17505   # ldd complains unless libraries are executable
17506   postinstall_cmds='chmod +x $lib'
17507   ;;
17508
17509 sunos4*)
17510   version_type=sunos
17511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17512   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17513   shlibpath_var=LD_LIBRARY_PATH
17514   shlibpath_overrides_runpath=yes
17515   if test "$with_gnu_ld" = yes; then
17516     need_lib_prefix=no
17517   fi
17518   need_version=yes
17519   ;;
17520
17521 sysv4 | sysv4.3*)
17522   version_type=linux
17523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524   soname_spec='${libname}${release}${shared_ext}$major'
17525   shlibpath_var=LD_LIBRARY_PATH
17526   case $host_vendor in
17527     sni)
17528       shlibpath_overrides_runpath=no
17529       need_lib_prefix=no
17530       export_dynamic_flag_spec='${wl}-Blargedynsym'
17531       runpath_var=LD_RUN_PATH
17532       ;;
17533     siemens)
17534       need_lib_prefix=no
17535       ;;
17536     motorola)
17537       need_lib_prefix=no
17538       need_version=no
17539       shlibpath_overrides_runpath=no
17540       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17541       ;;
17542   esac
17543   ;;
17544
17545 sysv4*MP*)
17546   if test -d /usr/nec ;then
17547     version_type=linux
17548     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17549     soname_spec='$libname${shared_ext}.$major'
17550     shlibpath_var=LD_LIBRARY_PATH
17551   fi
17552   ;;
17553
17554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17555   version_type=freebsd-elf
17556   need_lib_prefix=no
17557   need_version=no
17558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17559   soname_spec='${libname}${release}${shared_ext}$major'
17560   shlibpath_var=LD_LIBRARY_PATH
17561   hardcode_into_libs=yes
17562   if test "$with_gnu_ld" = yes; then
17563     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17564     shlibpath_overrides_runpath=no
17565   else
17566     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17567     shlibpath_overrides_runpath=yes
17568     case $host_os in
17569       sco3.2v5*)
17570         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17571         ;;
17572     esac
17573   fi
17574   sys_lib_dlsearch_path_spec='/usr/lib'
17575   ;;
17576
17577 uts4*)
17578   version_type=linux
17579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580   soname_spec='${libname}${release}${shared_ext}$major'
17581   shlibpath_var=LD_LIBRARY_PATH
17582   ;;
17583
17584 *)
17585   dynamic_linker=no
17586   ;;
17587 esac
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17589 $as_echo "$dynamic_linker" >&6; }
17590 test "$dynamic_linker" = no && can_build_shared=no
17591
17592 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
17593   $as_echo_n "(cached) " >&6
17594 else
17595   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17596 fi
17597
17598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
17600   $as_echo_n "(cached) " >&6
17601 else
17602   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17603 fi
17604
17605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17606
17607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17608 if test "$GCC" = yes; then
17609   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17610 fi
17611
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17613 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17614 hardcode_action_GCJ=
17615 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17616    test -n "$runpath_var_GCJ" || \
17617    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17618
17619   # We can hardcode non-existant directories.
17620   if test "$hardcode_direct_GCJ" != no &&
17621      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17622      # have to relink, otherwise we might link with an installed library
17623      # when we should be linking with a yet-to-be-installed one
17624      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17625      test "$hardcode_minus_L_GCJ" != no; then
17626     # Linking always hardcodes the temporary library directory.
17627     hardcode_action_GCJ=relink
17628   else
17629     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17630     hardcode_action_GCJ=immediate
17631   fi
17632 else
17633   # We cannot hardcode anything, or else we can only hardcode existing
17634   # directories.
17635   hardcode_action_GCJ=unsupported
17636 fi
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17638 $as_echo "$hardcode_action_GCJ" >&6; }
17639
17640 if test "$hardcode_action_GCJ" = relink; then
17641   # Fast installation is not supported
17642   enable_fast_install=no
17643 elif test "$shlibpath_overrides_runpath" = yes ||
17644      test "$enable_shared" = no; then
17645   # Fast installation is not necessary
17646   enable_fast_install=needless
17647 fi
17648
17649
17650 # The else clause should only fire when bootstrapping the
17651 # libtool distribution, otherwise you forgot to ship ltmain.sh
17652 # with your package, and you will get complaints that there are
17653 # no rules to generate ltmain.sh.
17654 if test -f "$ltmain"; then
17655   # See if we are running on zsh, and set the options which allow our commands through
17656   # without removal of \ escapes.
17657   if test -n "${ZSH_VERSION+set}" ; then
17658     setopt NO_GLOB_SUBST
17659   fi
17660   # Now quote all the things that may contain metacharacters while being
17661   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17662   # variables and quote the copies for generation of the libtool script.
17663   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17664     SED SHELL STRIP \
17665     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17666     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17667     deplibs_check_method reload_flag reload_cmds need_locks \
17668     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17669     lt_cv_sys_global_symbol_to_c_name_address \
17670     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17671     old_postinstall_cmds old_postuninstall_cmds \
17672     compiler_GCJ \
17673     CC_GCJ \
17674     LD_GCJ \
17675     lt_prog_compiler_wl_GCJ \
17676     lt_prog_compiler_pic_GCJ \
17677     lt_prog_compiler_static_GCJ \
17678     lt_prog_compiler_no_builtin_flag_GCJ \
17679     export_dynamic_flag_spec_GCJ \
17680     thread_safe_flag_spec_GCJ \
17681     whole_archive_flag_spec_GCJ \
17682     enable_shared_with_static_runtimes_GCJ \
17683     old_archive_cmds_GCJ \
17684     old_archive_from_new_cmds_GCJ \
17685     predep_objects_GCJ \
17686     postdep_objects_GCJ \
17687     predeps_GCJ \
17688     postdeps_GCJ \
17689     compiler_lib_search_path_GCJ \
17690     compiler_lib_search_dirs_GCJ \
17691     archive_cmds_GCJ \
17692     archive_expsym_cmds_GCJ \
17693     postinstall_cmds_GCJ \
17694     postuninstall_cmds_GCJ \
17695     old_archive_from_expsyms_cmds_GCJ \
17696     allow_undefined_flag_GCJ \
17697     no_undefined_flag_GCJ \
17698     export_symbols_cmds_GCJ \
17699     hardcode_libdir_flag_spec_GCJ \
17700     hardcode_libdir_flag_spec_ld_GCJ \
17701     hardcode_libdir_separator_GCJ \
17702     hardcode_automatic_GCJ \
17703     module_cmds_GCJ \
17704     module_expsym_cmds_GCJ \
17705     lt_cv_prog_compiler_c_o_GCJ \
17706     fix_srcfile_path_GCJ \
17707     exclude_expsyms_GCJ \
17708     include_expsyms_GCJ; do
17709
17710     case $var in
17711     old_archive_cmds_GCJ | \
17712     old_archive_from_new_cmds_GCJ | \
17713     archive_cmds_GCJ | \
17714     archive_expsym_cmds_GCJ | \
17715     module_cmds_GCJ | \
17716     module_expsym_cmds_GCJ | \
17717     old_archive_from_expsyms_cmds_GCJ | \
17718     export_symbols_cmds_GCJ | \
17719     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17720     postinstall_cmds | postuninstall_cmds | \
17721     old_postinstall_cmds | old_postuninstall_cmds | \
17722     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17723       # Double-quote double-evaled strings.
17724       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17725       ;;
17726     *)
17727       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17728       ;;
17729     esac
17730   done
17731
17732   case $lt_echo in
17733   *'\$0 --fallback-echo"')
17734     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17735     ;;
17736   esac
17737
17738 cfgfile="$ofile"
17739
17740   cat <<__EOF__ >> "$cfgfile"
17741 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17742
17743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17744
17745 # Shell to use when invoking shell scripts.
17746 SHELL=$lt_SHELL
17747
17748 # Whether or not to build shared libraries.
17749 build_libtool_libs=$enable_shared
17750
17751 # Whether or not to build static libraries.
17752 build_old_libs=$enable_static
17753
17754 # Whether or not to add -lc for building shared libraries.
17755 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17756
17757 # Whether or not to disallow shared libs when runtime libs are static
17758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17759
17760 # Whether or not to optimize for fast installation.
17761 fast_install=$enable_fast_install
17762
17763 # The host system.
17764 host_alias=$host_alias
17765 host=$host
17766 host_os=$host_os
17767
17768 # The build system.
17769 build_alias=$build_alias
17770 build=$build
17771 build_os=$build_os
17772
17773 # An echo program that does not interpret backslashes.
17774 echo=$lt_echo
17775
17776 # The archiver.
17777 AR=$lt_AR
17778 AR_FLAGS=$lt_AR_FLAGS
17779
17780 # A C compiler.
17781 LTCC=$lt_LTCC
17782
17783 # LTCC compiler flags.
17784 LTCFLAGS=$lt_LTCFLAGS
17785
17786 # A language-specific compiler.
17787 CC=$lt_compiler_GCJ
17788
17789 # Is the compiler the GNU C compiler?
17790 with_gcc=$GCC_GCJ
17791
17792 # An ERE matcher.
17793 EGREP=$lt_EGREP
17794
17795 # The linker used to build libraries.
17796 LD=$lt_LD_GCJ
17797
17798 # Whether we need hard or soft links.
17799 LN_S=$lt_LN_S
17800
17801 # A BSD-compatible nm program.
17802 NM=$lt_NM
17803
17804 # A symbol stripping program
17805 STRIP=$lt_STRIP
17806
17807 # Used to examine libraries when file_magic_cmd begins "file"
17808 MAGIC_CMD=$MAGIC_CMD
17809
17810 # Used on cygwin: DLL creation program.
17811 DLLTOOL="$DLLTOOL"
17812
17813 # Used on cygwin: object dumper.
17814 OBJDUMP="$OBJDUMP"
17815
17816 # Used on cygwin: assembler.
17817 AS="$AS"
17818
17819 # The name of the directory that contains temporary libtool files.
17820 objdir=$objdir
17821
17822 # How to create reloadable object files.
17823 reload_flag=$lt_reload_flag
17824 reload_cmds=$lt_reload_cmds
17825
17826 # How to pass a linker flag through the compiler.
17827 wl=$lt_lt_prog_compiler_wl_GCJ
17828
17829 # Object file suffix (normally "o").
17830 objext="$ac_objext"
17831
17832 # Old archive suffix (normally "a").
17833 libext="$libext"
17834
17835 # Shared library suffix (normally ".so").
17836 shrext_cmds='$shrext_cmds'
17837
17838 # Executable file suffix (normally "").
17839 exeext="$exeext"
17840
17841 # Additional compiler flags for building library objects.
17842 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17843 pic_mode=$pic_mode
17844
17845 # What is the maximum length of a command?
17846 max_cmd_len=$lt_cv_sys_max_cmd_len
17847
17848 # Does compiler simultaneously support -c and -o options?
17849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17850
17851 # Must we lock files when doing compilation?
17852 need_locks=$lt_need_locks
17853
17854 # Do we need the lib prefix for modules?
17855 need_lib_prefix=$need_lib_prefix
17856
17857 # Do we need a version for libraries?
17858 need_version=$need_version
17859
17860 # Whether dlopen is supported.
17861 dlopen_support=$enable_dlopen
17862
17863 # Whether dlopen of programs is supported.
17864 dlopen_self=$enable_dlopen_self
17865
17866 # Whether dlopen of statically linked programs is supported.
17867 dlopen_self_static=$enable_dlopen_self_static
17868
17869 # Compiler flag to prevent dynamic linking.
17870 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17871
17872 # Compiler flag to turn off builtin functions.
17873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17874
17875 # Compiler flag to allow reflexive dlopens.
17876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17877
17878 # Compiler flag to generate shared objects directly from archives.
17879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17880
17881 # Compiler flag to generate thread-safe objects.
17882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17883
17884 # Library versioning type.
17885 version_type=$version_type
17886
17887 # Format of library name prefix.
17888 libname_spec=$lt_libname_spec
17889
17890 # List of archive names.  First name is the real one, the rest are links.
17891 # The last name is the one that the linker finds with -lNAME.
17892 library_names_spec=$lt_library_names_spec
17893
17894 # The coded name of the library, if different from the real name.
17895 soname_spec=$lt_soname_spec
17896
17897 # Commands used to build and install an old-style archive.
17898 RANLIB=$lt_RANLIB
17899 old_archive_cmds=$lt_old_archive_cmds_GCJ
17900 old_postinstall_cmds=$lt_old_postinstall_cmds
17901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17902
17903 # Create an old-style archive from a shared archive.
17904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17905
17906 # Create a temporary old-style archive to link instead of a shared archive.
17907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17908
17909 # Commands used to build and install a shared archive.
17910 archive_cmds=$lt_archive_cmds_GCJ
17911 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17912 postinstall_cmds=$lt_postinstall_cmds
17913 postuninstall_cmds=$lt_postuninstall_cmds
17914
17915 # Commands used to build a loadable module (assumed same as above if empty)
17916 module_cmds=$lt_module_cmds_GCJ
17917 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17918
17919 # Commands to strip libraries.
17920 old_striplib=$lt_old_striplib
17921 striplib=$lt_striplib
17922
17923 # Dependencies to place before the objects being linked to create a
17924 # shared library.
17925 predep_objects=$lt_predep_objects_GCJ
17926
17927 # Dependencies to place after the objects being linked to create a
17928 # shared library.
17929 postdep_objects=$lt_postdep_objects_GCJ
17930
17931 # Dependencies to place before the objects being linked to create a
17932 # shared library.
17933 predeps=$lt_predeps_GCJ
17934
17935 # Dependencies to place after the objects being linked to create a
17936 # shared library.
17937 postdeps=$lt_postdeps_GCJ
17938
17939 # The directories searched by this compiler when creating a shared
17940 # library
17941 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
17942
17943 # The library search path used internally by the compiler when linking
17944 # a shared library.
17945 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17946
17947 # Method to check whether dependent libraries are shared objects.
17948 deplibs_check_method=$lt_deplibs_check_method
17949
17950 # Command to use when deplibs_check_method == file_magic.
17951 file_magic_cmd=$lt_file_magic_cmd
17952
17953 # Flag that allows shared libraries with undefined symbols to be built.
17954 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17955
17956 # Flag that forces no undefined symbols.
17957 no_undefined_flag=$lt_no_undefined_flag_GCJ
17958
17959 # Commands used to finish a libtool library installation in a directory.
17960 finish_cmds=$lt_finish_cmds
17961
17962 # Same as above, but a single script fragment to be evaled but not shown.
17963 finish_eval=$lt_finish_eval
17964
17965 # Take the output of nm and produce a listing of raw symbols and C names.
17966 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17967
17968 # Transform the output of nm in a proper C declaration
17969 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17970
17971 # Transform the output of nm in a C name address pair
17972 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17973
17974 # This is the shared library runtime path variable.
17975 runpath_var=$runpath_var
17976
17977 # This is the shared library path variable.
17978 shlibpath_var=$shlibpath_var
17979
17980 # Is shlibpath searched before the hard-coded library search path?
17981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17982
17983 # How to hardcode a shared library path into an executable.
17984 hardcode_action=$hardcode_action_GCJ
17985
17986 # Whether we should hardcode library paths into libraries.
17987 hardcode_into_libs=$hardcode_into_libs
17988
17989 # Flag to hardcode \$libdir into a binary during linking.
17990 # This must work even if \$libdir does not exist.
17991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17992
17993 # If ld is used when linking, flag to hardcode \$libdir into
17994 # a binary during linking. This must work even if \$libdir does
17995 # not exist.
17996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17997
17998 # Whether we need a single -rpath flag with a separated argument.
17999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18000
18001 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18002 # resulting binary.
18003 hardcode_direct=$hardcode_direct_GCJ
18004
18005 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18006 # resulting binary.
18007 hardcode_minus_L=$hardcode_minus_L_GCJ
18008
18009 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18010 # the resulting binary.
18011 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18012
18013 # Set to yes if building a shared library automatically hardcodes DIR into the library
18014 # and all subsequent libraries and executables linked against it.
18015 hardcode_automatic=$hardcode_automatic_GCJ
18016
18017 # Variables whose values should be saved in libtool wrapper scripts and
18018 # restored at relink time.
18019 variables_saved_for_relink="$variables_saved_for_relink"
18020
18021 # Whether libtool must link a program against all its dependency libraries.
18022 link_all_deplibs=$link_all_deplibs_GCJ
18023
18024 # Compile-time system search path for libraries
18025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18026
18027 # Run-time system search path for libraries
18028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18029
18030 # Fix the shell variable \$srcfile for the compiler.
18031 fix_srcfile_path=$lt_fix_srcfile_path
18032
18033 # Set to yes if exported symbols are required.
18034 always_export_symbols=$always_export_symbols_GCJ
18035
18036 # The commands to list exported symbols.
18037 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18038
18039 # The commands to extract the exported symbol list from a shared archive.
18040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18041
18042 # Symbols that should not be listed in the preloaded symbols.
18043 exclude_expsyms=$lt_exclude_expsyms_GCJ
18044
18045 # Symbols that must always be exported.
18046 include_expsyms=$lt_include_expsyms_GCJ
18047
18048 # ### END LIBTOOL TAG CONFIG: $tagname
18049
18050 __EOF__
18051
18052
18053 else
18054   # If there is no Makefile yet, we rely on a make rule to execute
18055   # `config.status --recheck' to rerun these tests and create the
18056   # libtool script then.
18057   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18058   if test -f "$ltmain_in"; then
18059     test -f Makefile && make "$ltmain"
18060   fi
18061 fi
18062
18063
18064 ac_ext=c
18065 ac_cpp='$CPP $CPPFLAGS'
18066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18069
18070 CC="$lt_save_CC"
18071
18072         else
18073           tagname=""
18074         fi
18075         ;;
18076
18077       RC)
18078
18079
18080 # Source file extension for RC test sources.
18081 ac_ext=rc
18082
18083 # Object file extension for compiled RC test sources.
18084 objext=o
18085 objext_RC=$objext
18086
18087 # Code to be used in simple compile tests
18088 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18089
18090 # Code to be used in simple link tests
18091 lt_simple_link_test_code="$lt_simple_compile_test_code"
18092
18093 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18094
18095 # If no C compiler was specified, use CC.
18096 LTCC=${LTCC-"$CC"}
18097
18098 # If no C compiler flags were specified, use CFLAGS.
18099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18100
18101 # Allow CC to be a program name with arguments.
18102 compiler=$CC
18103
18104
18105 # save warnings/boilerplate of simple test code
18106 ac_outfile=conftest.$ac_objext
18107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18109 _lt_compiler_boilerplate=`cat conftest.err`
18110 $rm conftest*
18111
18112 ac_outfile=conftest.$ac_objext
18113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18115 _lt_linker_boilerplate=`cat conftest.err`
18116 $rm -r conftest*
18117
18118
18119 # Allow CC to be a program name with arguments.
18120 lt_save_CC="$CC"
18121 CC=${RC-"windres"}
18122 compiler=$CC
18123 compiler_RC=$CC
18124 for cc_temp in $compiler""; do
18125   case $cc_temp in
18126     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18127     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18128     \-*) ;;
18129     *) break;;
18130   esac
18131 done
18132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18133
18134 lt_cv_prog_compiler_c_o_RC=yes
18135
18136 # The else clause should only fire when bootstrapping the
18137 # libtool distribution, otherwise you forgot to ship ltmain.sh
18138 # with your package, and you will get complaints that there are
18139 # no rules to generate ltmain.sh.
18140 if test -f "$ltmain"; then
18141   # See if we are running on zsh, and set the options which allow our commands through
18142   # without removal of \ escapes.
18143   if test -n "${ZSH_VERSION+set}" ; then
18144     setopt NO_GLOB_SUBST
18145   fi
18146   # Now quote all the things that may contain metacharacters while being
18147   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18148   # variables and quote the copies for generation of the libtool script.
18149   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18150     SED SHELL STRIP \
18151     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18152     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18153     deplibs_check_method reload_flag reload_cmds need_locks \
18154     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18155     lt_cv_sys_global_symbol_to_c_name_address \
18156     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18157     old_postinstall_cmds old_postuninstall_cmds \
18158     compiler_RC \
18159     CC_RC \
18160     LD_RC \
18161     lt_prog_compiler_wl_RC \
18162     lt_prog_compiler_pic_RC \
18163     lt_prog_compiler_static_RC \
18164     lt_prog_compiler_no_builtin_flag_RC \
18165     export_dynamic_flag_spec_RC \
18166     thread_safe_flag_spec_RC \
18167     whole_archive_flag_spec_RC \
18168     enable_shared_with_static_runtimes_RC \
18169     old_archive_cmds_RC \
18170     old_archive_from_new_cmds_RC \
18171     predep_objects_RC \
18172     postdep_objects_RC \
18173     predeps_RC \
18174     postdeps_RC \
18175     compiler_lib_search_path_RC \
18176     compiler_lib_search_dirs_RC \
18177     archive_cmds_RC \
18178     archive_expsym_cmds_RC \
18179     postinstall_cmds_RC \
18180     postuninstall_cmds_RC \
18181     old_archive_from_expsyms_cmds_RC \
18182     allow_undefined_flag_RC \
18183     no_undefined_flag_RC \
18184     export_symbols_cmds_RC \
18185     hardcode_libdir_flag_spec_RC \
18186     hardcode_libdir_flag_spec_ld_RC \
18187     hardcode_libdir_separator_RC \
18188     hardcode_automatic_RC \
18189     module_cmds_RC \
18190     module_expsym_cmds_RC \
18191     lt_cv_prog_compiler_c_o_RC \
18192     fix_srcfile_path_RC \
18193     exclude_expsyms_RC \
18194     include_expsyms_RC; do
18195
18196     case $var in
18197     old_archive_cmds_RC | \
18198     old_archive_from_new_cmds_RC | \
18199     archive_cmds_RC | \
18200     archive_expsym_cmds_RC | \
18201     module_cmds_RC | \
18202     module_expsym_cmds_RC | \
18203     old_archive_from_expsyms_cmds_RC | \
18204     export_symbols_cmds_RC | \
18205     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18206     postinstall_cmds | postuninstall_cmds | \
18207     old_postinstall_cmds | old_postuninstall_cmds | \
18208     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18209       # Double-quote double-evaled strings.
18210       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18211       ;;
18212     *)
18213       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18214       ;;
18215     esac
18216   done
18217
18218   case $lt_echo in
18219   *'\$0 --fallback-echo"')
18220     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18221     ;;
18222   esac
18223
18224 cfgfile="$ofile"
18225
18226   cat <<__EOF__ >> "$cfgfile"
18227 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18228
18229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18230
18231 # Shell to use when invoking shell scripts.
18232 SHELL=$lt_SHELL
18233
18234 # Whether or not to build shared libraries.
18235 build_libtool_libs=$enable_shared
18236
18237 # Whether or not to build static libraries.
18238 build_old_libs=$enable_static
18239
18240 # Whether or not to add -lc for building shared libraries.
18241 build_libtool_need_lc=$archive_cmds_need_lc_RC
18242
18243 # Whether or not to disallow shared libs when runtime libs are static
18244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18245
18246 # Whether or not to optimize for fast installation.
18247 fast_install=$enable_fast_install
18248
18249 # The host system.
18250 host_alias=$host_alias
18251 host=$host
18252 host_os=$host_os
18253
18254 # The build system.
18255 build_alias=$build_alias
18256 build=$build
18257 build_os=$build_os
18258
18259 # An echo program that does not interpret backslashes.
18260 echo=$lt_echo
18261
18262 # The archiver.
18263 AR=$lt_AR
18264 AR_FLAGS=$lt_AR_FLAGS
18265
18266 # A C compiler.
18267 LTCC=$lt_LTCC
18268
18269 # LTCC compiler flags.
18270 LTCFLAGS=$lt_LTCFLAGS
18271
18272 # A language-specific compiler.
18273 CC=$lt_compiler_RC
18274
18275 # Is the compiler the GNU C compiler?
18276 with_gcc=$GCC_RC
18277
18278 # An ERE matcher.
18279 EGREP=$lt_EGREP
18280
18281 # The linker used to build libraries.
18282 LD=$lt_LD_RC
18283
18284 # Whether we need hard or soft links.
18285 LN_S=$lt_LN_S
18286
18287 # A BSD-compatible nm program.
18288 NM=$lt_NM
18289
18290 # A symbol stripping program
18291 STRIP=$lt_STRIP
18292
18293 # Used to examine libraries when file_magic_cmd begins "file"
18294 MAGIC_CMD=$MAGIC_CMD
18295
18296 # Used on cygwin: DLL creation program.
18297 DLLTOOL="$DLLTOOL"
18298
18299 # Used on cygwin: object dumper.
18300 OBJDUMP="$OBJDUMP"
18301
18302 # Used on cygwin: assembler.
18303 AS="$AS"
18304
18305 # The name of the directory that contains temporary libtool files.
18306 objdir=$objdir
18307
18308 # How to create reloadable object files.
18309 reload_flag=$lt_reload_flag
18310 reload_cmds=$lt_reload_cmds
18311
18312 # How to pass a linker flag through the compiler.
18313 wl=$lt_lt_prog_compiler_wl_RC
18314
18315 # Object file suffix (normally "o").
18316 objext="$ac_objext"
18317
18318 # Old archive suffix (normally "a").
18319 libext="$libext"
18320
18321 # Shared library suffix (normally ".so").
18322 shrext_cmds='$shrext_cmds'
18323
18324 # Executable file suffix (normally "").
18325 exeext="$exeext"
18326
18327 # Additional compiler flags for building library objects.
18328 pic_flag=$lt_lt_prog_compiler_pic_RC
18329 pic_mode=$pic_mode
18330
18331 # What is the maximum length of a command?
18332 max_cmd_len=$lt_cv_sys_max_cmd_len
18333
18334 # Does compiler simultaneously support -c and -o options?
18335 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18336
18337 # Must we lock files when doing compilation?
18338 need_locks=$lt_need_locks
18339
18340 # Do we need the lib prefix for modules?
18341 need_lib_prefix=$need_lib_prefix
18342
18343 # Do we need a version for libraries?
18344 need_version=$need_version
18345
18346 # Whether dlopen is supported.
18347 dlopen_support=$enable_dlopen
18348
18349 # Whether dlopen of programs is supported.
18350 dlopen_self=$enable_dlopen_self
18351
18352 # Whether dlopen of statically linked programs is supported.
18353 dlopen_self_static=$enable_dlopen_self_static
18354
18355 # Compiler flag to prevent dynamic linking.
18356 link_static_flag=$lt_lt_prog_compiler_static_RC
18357
18358 # Compiler flag to turn off builtin functions.
18359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18360
18361 # Compiler flag to allow reflexive dlopens.
18362 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18363
18364 # Compiler flag to generate shared objects directly from archives.
18365 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18366
18367 # Compiler flag to generate thread-safe objects.
18368 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18369
18370 # Library versioning type.
18371 version_type=$version_type
18372
18373 # Format of library name prefix.
18374 libname_spec=$lt_libname_spec
18375
18376 # List of archive names.  First name is the real one, the rest are links.
18377 # The last name is the one that the linker finds with -lNAME.
18378 library_names_spec=$lt_library_names_spec
18379
18380 # The coded name of the library, if different from the real name.
18381 soname_spec=$lt_soname_spec
18382
18383 # Commands used to build and install an old-style archive.
18384 RANLIB=$lt_RANLIB
18385 old_archive_cmds=$lt_old_archive_cmds_RC
18386 old_postinstall_cmds=$lt_old_postinstall_cmds
18387 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18388
18389 # Create an old-style archive from a shared archive.
18390 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18391
18392 # Create a temporary old-style archive to link instead of a shared archive.
18393 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18394
18395 # Commands used to build and install a shared archive.
18396 archive_cmds=$lt_archive_cmds_RC
18397 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18398 postinstall_cmds=$lt_postinstall_cmds
18399 postuninstall_cmds=$lt_postuninstall_cmds
18400
18401 # Commands used to build a loadable module (assumed same as above if empty)
18402 module_cmds=$lt_module_cmds_RC
18403 module_expsym_cmds=$lt_module_expsym_cmds_RC
18404
18405 # Commands to strip libraries.
18406 old_striplib=$lt_old_striplib
18407 striplib=$lt_striplib
18408
18409 # Dependencies to place before the objects being linked to create a
18410 # shared library.
18411 predep_objects=$lt_predep_objects_RC
18412
18413 # Dependencies to place after the objects being linked to create a
18414 # shared library.
18415 postdep_objects=$lt_postdep_objects_RC
18416
18417 # Dependencies to place before the objects being linked to create a
18418 # shared library.
18419 predeps=$lt_predeps_RC
18420
18421 # Dependencies to place after the objects being linked to create a
18422 # shared library.
18423 postdeps=$lt_postdeps_RC
18424
18425 # The directories searched by this compiler when creating a shared
18426 # library
18427 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18428
18429 # The library search path used internally by the compiler when linking
18430 # a shared library.
18431 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18432
18433 # Method to check whether dependent libraries are shared objects.
18434 deplibs_check_method=$lt_deplibs_check_method
18435
18436 # Command to use when deplibs_check_method == file_magic.
18437 file_magic_cmd=$lt_file_magic_cmd
18438
18439 # Flag that allows shared libraries with undefined symbols to be built.
18440 allow_undefined_flag=$lt_allow_undefined_flag_RC
18441
18442 # Flag that forces no undefined symbols.
18443 no_undefined_flag=$lt_no_undefined_flag_RC
18444
18445 # Commands used to finish a libtool library installation in a directory.
18446 finish_cmds=$lt_finish_cmds
18447
18448 # Same as above, but a single script fragment to be evaled but not shown.
18449 finish_eval=$lt_finish_eval
18450
18451 # Take the output of nm and produce a listing of raw symbols and C names.
18452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18453
18454 # Transform the output of nm in a proper C declaration
18455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18456
18457 # Transform the output of nm in a C name address pair
18458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18459
18460 # This is the shared library runtime path variable.
18461 runpath_var=$runpath_var
18462
18463 # This is the shared library path variable.
18464 shlibpath_var=$shlibpath_var
18465
18466 # Is shlibpath searched before the hard-coded library search path?
18467 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18468
18469 # How to hardcode a shared library path into an executable.
18470 hardcode_action=$hardcode_action_RC
18471
18472 # Whether we should hardcode library paths into libraries.
18473 hardcode_into_libs=$hardcode_into_libs
18474
18475 # Flag to hardcode \$libdir into a binary during linking.
18476 # This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18478
18479 # If ld is used when linking, flag to hardcode \$libdir into
18480 # a binary during linking. This must work even if \$libdir does
18481 # not exist.
18482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18483
18484 # Whether we need a single -rpath flag with a separated argument.
18485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18486
18487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18488 # resulting binary.
18489 hardcode_direct=$hardcode_direct_RC
18490
18491 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_minus_L=$hardcode_minus_L_RC
18494
18495 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18496 # the resulting binary.
18497 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18498
18499 # Set to yes if building a shared library automatically hardcodes DIR into the library
18500 # and all subsequent libraries and executables linked against it.
18501 hardcode_automatic=$hardcode_automatic_RC
18502
18503 # Variables whose values should be saved in libtool wrapper scripts and
18504 # restored at relink time.
18505 variables_saved_for_relink="$variables_saved_for_relink"
18506
18507 # Whether libtool must link a program against all its dependency libraries.
18508 link_all_deplibs=$link_all_deplibs_RC
18509
18510 # Compile-time system search path for libraries
18511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18512
18513 # Run-time system search path for libraries
18514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18515
18516 # Fix the shell variable \$srcfile for the compiler.
18517 fix_srcfile_path=$lt_fix_srcfile_path
18518
18519 # Set to yes if exported symbols are required.
18520 always_export_symbols=$always_export_symbols_RC
18521
18522 # The commands to list exported symbols.
18523 export_symbols_cmds=$lt_export_symbols_cmds_RC
18524
18525 # The commands to extract the exported symbol list from a shared archive.
18526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18527
18528 # Symbols that should not be listed in the preloaded symbols.
18529 exclude_expsyms=$lt_exclude_expsyms_RC
18530
18531 # Symbols that must always be exported.
18532 include_expsyms=$lt_include_expsyms_RC
18533
18534 # ### END LIBTOOL TAG CONFIG: $tagname
18535
18536 __EOF__
18537
18538
18539 else
18540   # If there is no Makefile yet, we rely on a make rule to execute
18541   # `config.status --recheck' to rerun these tests and create the
18542   # libtool script then.
18543   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18544   if test -f "$ltmain_in"; then
18545     test -f Makefile && make "$ltmain"
18546   fi
18547 fi
18548
18549
18550 ac_ext=c
18551 ac_cpp='$CPP $CPPFLAGS'
18552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555
18556 CC="$lt_save_CC"
18557
18558         ;;
18559
18560       *)
18561         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18562         ;;
18563       esac
18564
18565       # Append the new tag name to the list of available tags.
18566       if test -n "$tagname" ; then
18567       available_tags="$available_tags $tagname"
18568     fi
18569     fi
18570   done
18571   IFS="$lt_save_ifs"
18572
18573   # Now substitute the updated list of available tags.
18574   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18575     mv "${ofile}T" "$ofile"
18576     chmod +x "$ofile"
18577   else
18578     rm -f "${ofile}T"
18579     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18580   fi
18581 fi
18582
18583
18584
18585 # This can be used to rebuild libtool when needed
18586 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18587
18588 # Always use our own libtool.
18589 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18590
18591 # Prevent multiple expansion
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612 # Find a good install program.  We prefer a C program (faster),
18613 # so one script is as good as another.  But avoid the broken or
18614 # incompatible versions:
18615 # SysV /etc/install, /usr/sbin/install
18616 # SunOS /usr/etc/install
18617 # IRIX /sbin/install
18618 # AIX /bin/install
18619 # AmigaOS /C/install, which installs bootblocks on floppy discs
18620 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18621 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18622 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18623 # OS/2's system install, which has a completely different semantic
18624 # ./install, which can be erroneously created by make from ./install.sh.
18625 # Reject install programs that cannot install multiple files.
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18627 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18628 if test -z "$INSTALL"; then
18629 if test "${ac_cv_path_install+set}" = set; then :
18630   $as_echo_n "(cached) " >&6
18631 else
18632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18633 for as_dir in $PATH
18634 do
18635   IFS=$as_save_IFS
18636   test -z "$as_dir" && as_dir=.
18637     # Account for people who put trailing slashes in PATH elements.
18638 case $as_dir/ in #((
18639   ./ | .// | /[cC]/* | \
18640   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18641   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18642   /usr/ucb/* ) ;;
18643   *)
18644     # OSF1 and SCO ODT 3.0 have their own names for install.
18645     # Don't use installbsd from OSF since it installs stuff as root
18646     # by default.
18647     for ac_prog in ginstall scoinst install; do
18648       for ac_exec_ext in '' $ac_executable_extensions; do
18649         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18650           if test $ac_prog = install &&
18651             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18652             # AIX install.  It has an incompatible calling convention.
18653             :
18654           elif test $ac_prog = install &&
18655             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18656             # program-specific install script used by HP pwplus--don't use.
18657             :
18658           else
18659             rm -rf conftest.one conftest.two conftest.dir
18660             echo one > conftest.one
18661             echo two > conftest.two
18662             mkdir conftest.dir
18663             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18664               test -s conftest.one && test -s conftest.two &&
18665               test -s conftest.dir/conftest.one &&
18666               test -s conftest.dir/conftest.two
18667             then
18668               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18669               break 3
18670             fi
18671           fi
18672         fi
18673       done
18674     done
18675     ;;
18676 esac
18677
18678   done
18679 IFS=$as_save_IFS
18680
18681 rm -rf conftest.one conftest.two conftest.dir
18682
18683 fi
18684   if test "${ac_cv_path_install+set}" = set; then
18685     INSTALL=$ac_cv_path_install
18686   else
18687     # As a last resort, use the slow shell script.  Don't cache a
18688     # value for INSTALL within a source directory, because that will
18689     # break other packages using the cache if that directory is
18690     # removed, or if the value is a relative name.
18691     INSTALL=$ac_install_sh
18692   fi
18693 fi
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18695 $as_echo "$INSTALL" >&6; }
18696
18697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18698 # It thinks the first close brace ends the variable substitution.
18699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18700
18701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18702
18703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18704
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18706 $as_echo_n "checking whether ln -s works... " >&6; }
18707 LN_S=$as_ln_s
18708 if test "$LN_S" = "ln -s"; then
18709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18710 $as_echo "yes" >&6; }
18711 else
18712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18713 $as_echo "no, using $LN_S" >&6; }
18714 fi
18715
18716
18717
18718
18719
18720
18721
18722 # Warn if the user specified libbind, which is now deprecated
18723 # Check whether --enable-libbind was given.
18724 if test "${enable_libbind+set}" = set; then :
18725   enableval=$enable_libbind;
18726 fi
18727
18728
18729 case "$enable_libbind" in
18730         yes)
18731                 as_fn_error $? "'libbind' is no longer part of the BIND 9 distribution.
18732 It is available from http://www.isc.org as a separate download." "$LINENO" 5
18733                 ;;
18734         no|'')
18735                 ;;
18736 esac
18737
18738 #
18739 # Make very sure that these are the first files processed by
18740 # config.status, since we use the processed output as the input for
18741 # AC_SUBST_FILE() substitutions in other files.
18742 #
18743 ac_config_files="$ac_config_files make/rules make/includes"
18744
18745
18746 # Extract the first word of "ar", so it can be a program name with args.
18747 set dummy ar; ac_word=$2
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18749 $as_echo_n "checking for $ac_word... " >&6; }
18750 if test "${ac_cv_path_AR+set}" = set; then :
18751   $as_echo_n "(cached) " >&6
18752 else
18753   case $AR in
18754   [\\/]* | ?:[\\/]*)
18755   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18756   ;;
18757   *)
18758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18759 for as_dir in $PATH
18760 do
18761   IFS=$as_save_IFS
18762   test -z "$as_dir" && as_dir=.
18763     for ac_exec_ext in '' $ac_executable_extensions; do
18764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18765     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18767     break 2
18768   fi
18769 done
18770   done
18771 IFS=$as_save_IFS
18772
18773   ;;
18774 esac
18775 fi
18776 AR=$ac_cv_path_AR
18777 if test -n "$AR"; then
18778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18779 $as_echo "$AR" >&6; }
18780 else
18781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782 $as_echo "no" >&6; }
18783 fi
18784
18785
18786 ARFLAGS="cruv"
18787
18788
18789
18790 # The POSIX ln(1) program.  Non-POSIX systems may substitute
18791 # "copy" or something.
18792 LN=ln
18793
18794
18795 case "$AR" in
18796         "")
18797                 as_fn_error $? "
18798 ar program not found.  Please fix your PATH to include the directory in
18799 which ar resides, or set AR in the environment with the full path to ar.
18800 " "$LINENO" 5
18801
18802                 ;;
18803 esac
18804
18805 #
18806 # Etags.
18807 #
18808 for ac_prog in etags emacs-etags
18809 do
18810   # Extract the first word of "$ac_prog", so it can be a program name with args.
18811 set dummy $ac_prog; ac_word=$2
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18813 $as_echo_n "checking for $ac_word... " >&6; }
18814 if test "${ac_cv_path_ETAGS+set}" = set; then :
18815   $as_echo_n "(cached) " >&6
18816 else
18817   case $ETAGS in
18818   [\\/]* | ?:[\\/]*)
18819   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18820   ;;
18821   *)
18822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823 for as_dir in $PATH
18824 do
18825   IFS=$as_save_IFS
18826   test -z "$as_dir" && as_dir=.
18827     for ac_exec_ext in '' $ac_executable_extensions; do
18828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18829     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18831     break 2
18832   fi
18833 done
18834   done
18835 IFS=$as_save_IFS
18836
18837   ;;
18838 esac
18839 fi
18840 ETAGS=$ac_cv_path_ETAGS
18841 if test -n "$ETAGS"; then
18842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
18843 $as_echo "$ETAGS" >&6; }
18844 else
18845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846 $as_echo "no" >&6; }
18847 fi
18848
18849
18850   test -n "$ETAGS" && break
18851 done
18852
18853
18854 #
18855 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
18856 # GNU emacs etags, and it requires the -L flag.
18857 #
18858 if test "X$ETAGS" != "X"; then
18859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Exuberant Ctags etags" >&5
18860 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
18861         if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
18862                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18863 $as_echo "yes" >&6; }
18864                 ETAGS="$ETAGS -L"
18865         else
18866                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18867 $as_echo "no" >&6; }
18868         fi
18869 fi
18870
18871
18872 #
18873 # Perl is optional; it is used only by some of the system test scripts.
18874 # Note: the backtrace feature (see below) uses perl to build the symbol table,
18875 # but it still compiles without perl, in which case an empty table will be used.
18876 #
18877 for ac_prog in perl5 perl
18878 do
18879   # Extract the first word of "$ac_prog", so it can be a program name with args.
18880 set dummy $ac_prog; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if test "${ac_cv_path_PERL+set}" = set; then :
18884   $as_echo_n "(cached) " >&6
18885 else
18886   case $PERL in
18887   [\\/]* | ?:[\\/]*)
18888   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18889   ;;
18890   *)
18891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894   IFS=$as_save_IFS
18895   test -z "$as_dir" && as_dir=.
18896     for ac_exec_ext in '' $ac_executable_extensions; do
18897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18898     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18900     break 2
18901   fi
18902 done
18903   done
18904 IFS=$as_save_IFS
18905
18906   ;;
18907 esac
18908 fi
18909 PERL=$ac_cv_path_PERL
18910 if test -n "$PERL"; then
18911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18912 $as_echo "$PERL" >&6; }
18913 else
18914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18915 $as_echo "no" >&6; }
18916 fi
18917
18918
18919   test -n "$PERL" && break
18920 done
18921
18922
18923
18924 #
18925 # Special processing of paths depending on whether --prefix,
18926 # --sysconfdir or --localstatedir arguments were given.  What's
18927 # desired is some compatibility with the way previous versions
18928 # of BIND built; they defaulted to /usr/local for most parts of
18929 # the installation, but named.boot/named.conf was in /etc
18930 # and named.pid was in /var/run.
18931 #
18932 # So ... if none of --prefix, --sysconfdir or --localstatedir are
18933 # specified, set things up that way.  If --prefix is given, use
18934 # it for sysconfdir and localstatedir the way configure normally
18935 # would.  To change the prefix for everything but leave named.conf
18936 # in /etc or named.pid in /var/run, then do this the usual configure way:
18937 # ./configure --prefix=/somewhere --sysconfdir=/etc
18938 # ./configure --prefix=/somewhere --localstatedir=/var
18939 #
18940 # To put named.conf and named.pid in /usr/local with everything else,
18941 # set the prefix explicitly to /usr/local even though that's the default:
18942 # ./configure --prefix=/usr/local
18943 #
18944 case "$prefix" in
18945         NONE)
18946                 case "$sysconfdir" in
18947                         '${prefix}/etc')
18948                                 sysconfdir=/etc
18949                                 ;;
18950                 esac
18951                 case "$localstatedir" in
18952                         '${prefix}/var')
18953                                 localstatedir=/var
18954                                 ;;
18955                 esac
18956                 ;;
18957 esac
18958
18959 #
18960 # Make sure INSTALL uses an absolute path, else it will be wrong in all
18961 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
18962 # configure based on the location of the file where it is substituted.
18963 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
18964 # subdirectory of install-sh, This relative path will be wrong for all
18965 # directories more than one level down from install-sh.
18966 #
18967 case "$INSTALL" in
18968         /*)
18969                 ;;
18970         *)
18971                 #
18972                 # Not all systems have dirname.
18973                 #
18974
18975                 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
18976
18977
18978                 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
18979                 test "$ac_dir" = "$ac_prog" && ac_dir=.
18980                 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
18981                 INSTALL="$ac_dir/$ac_prog"
18982                 ;;
18983 esac
18984
18985 #
18986 # On these hosts, we really want to use cc, not gcc, even if it is
18987 # found.  The gcc that these systems have will not correctly handle
18988 # pthreads.
18989 #
18990 # However, if the user sets $CC to be something, let that override
18991 # our change.
18992 #
18993 if test "X$CC" = "X" ; then
18994         case "$host" in
18995                 *-dec-osf*)
18996                         CC="cc"
18997                         ;;
18998                 *-solaris*)
18999                         # Use Sun's cc if it is available, but watch
19000                         # out for /usr/ucb/cc; it will never be the right
19001                         # compiler to use.
19002                         #
19003                         # If setting CC here fails, the AC_PROG_CC done
19004                         # below might still find gcc.
19005                         IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
19006                         for ac_dir in $PATH; do
19007                                 test -z "$ac_dir" && ac_dir=.
19008                                 case "$ac_dir" in
19009                                 /usr/ucb)
19010                                         # exclude
19011                                         ;;
19012                                 *)
19013                                         if test -f "$ac_dir/cc"; then
19014                                                 CC="$ac_dir/cc"
19015                                                 break
19016                                         fi
19017                                         ;;
19018                                 esac
19019                         done
19020                         IFS="$ac_save_ifs"
19021                         ;;
19022                 *-hp-hpux*)
19023                         CC="cc"
19024                         ;;
19025                 mips-sgi-irix*)
19026                         CC="cc"
19027                         ;;
19028         esac
19029 fi
19030
19031 ac_ext=c
19032 ac_cpp='$CPP $CPPFLAGS'
19033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19036 if test -n "$ac_tool_prefix"; then
19037   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19040 $as_echo_n "checking for $ac_word... " >&6; }
19041 if test "${ac_cv_prog_CC+set}" = set; then :
19042   $as_echo_n "(cached) " >&6
19043 else
19044   if test -n "$CC"; then
19045   ac_cv_prog_CC="$CC" # Let the user override the test.
19046 else
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19049 do
19050   IFS=$as_save_IFS
19051   test -z "$as_dir" && as_dir=.
19052     for ac_exec_ext in '' $ac_executable_extensions; do
19053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19054     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19056     break 2
19057   fi
19058 done
19059   done
19060 IFS=$as_save_IFS
19061
19062 fi
19063 fi
19064 CC=$ac_cv_prog_CC
19065 if test -n "$CC"; then
19066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19067 $as_echo "$CC" >&6; }
19068 else
19069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070 $as_echo "no" >&6; }
19071 fi
19072
19073
19074 fi
19075 if test -z "$ac_cv_prog_CC"; then
19076   ac_ct_CC=$CC
19077   # Extract the first word of "gcc", so it can be a program name with args.
19078 set dummy gcc; ac_word=$2
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19080 $as_echo_n "checking for $ac_word... " >&6; }
19081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19082   $as_echo_n "(cached) " >&6
19083 else
19084   if test -n "$ac_ct_CC"; then
19085   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19086 else
19087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19089 do
19090   IFS=$as_save_IFS
19091   test -z "$as_dir" && as_dir=.
19092     for ac_exec_ext in '' $ac_executable_extensions; do
19093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19094     ac_cv_prog_ac_ct_CC="gcc"
19095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19096     break 2
19097   fi
19098 done
19099   done
19100 IFS=$as_save_IFS
19101
19102 fi
19103 fi
19104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19105 if test -n "$ac_ct_CC"; then
19106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19107 $as_echo "$ac_ct_CC" >&6; }
19108 else
19109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19110 $as_echo "no" >&6; }
19111 fi
19112
19113   if test "x$ac_ct_CC" = x; then
19114     CC=""
19115   else
19116     case $cross_compiling:$ac_tool_warned in
19117 yes:)
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19120 ac_tool_warned=yes ;;
19121 esac
19122     CC=$ac_ct_CC
19123   fi
19124 else
19125   CC="$ac_cv_prog_CC"
19126 fi
19127
19128 if test -z "$CC"; then
19129           if test -n "$ac_tool_prefix"; then
19130     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19131 set dummy ${ac_tool_prefix}cc; ac_word=$2
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19133 $as_echo_n "checking for $ac_word... " >&6; }
19134 if test "${ac_cv_prog_CC+set}" = set; then :
19135   $as_echo_n "(cached) " >&6
19136 else
19137   if test -n "$CC"; then
19138   ac_cv_prog_CC="$CC" # Let the user override the test.
19139 else
19140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19141 for as_dir in $PATH
19142 do
19143   IFS=$as_save_IFS
19144   test -z "$as_dir" && as_dir=.
19145     for ac_exec_ext in '' $ac_executable_extensions; do
19146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19147     ac_cv_prog_CC="${ac_tool_prefix}cc"
19148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19149     break 2
19150   fi
19151 done
19152   done
19153 IFS=$as_save_IFS
19154
19155 fi
19156 fi
19157 CC=$ac_cv_prog_CC
19158 if test -n "$CC"; then
19159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19160 $as_echo "$CC" >&6; }
19161 else
19162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19163 $as_echo "no" >&6; }
19164 fi
19165
19166
19167   fi
19168 fi
19169 if test -z "$CC"; then
19170   # Extract the first word of "cc", so it can be a program name with args.
19171 set dummy cc; ac_word=$2
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19173 $as_echo_n "checking for $ac_word... " >&6; }
19174 if test "${ac_cv_prog_CC+set}" = set; then :
19175   $as_echo_n "(cached) " >&6
19176 else
19177   if test -n "$CC"; then
19178   ac_cv_prog_CC="$CC" # Let the user override the test.
19179 else
19180   ac_prog_rejected=no
19181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19183 do
19184   IFS=$as_save_IFS
19185   test -z "$as_dir" && as_dir=.
19186     for ac_exec_ext in '' $ac_executable_extensions; do
19187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19188     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19189        ac_prog_rejected=yes
19190        continue
19191      fi
19192     ac_cv_prog_CC="cc"
19193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19194     break 2
19195   fi
19196 done
19197   done
19198 IFS=$as_save_IFS
19199
19200 if test $ac_prog_rejected = yes; then
19201   # We found a bogon in the path, so make sure we never use it.
19202   set dummy $ac_cv_prog_CC
19203   shift
19204   if test $# != 0; then
19205     # We chose a different compiler from the bogus one.
19206     # However, it has the same basename, so the bogon will be chosen
19207     # first if we set CC to just the basename; use the full file name.
19208     shift
19209     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19210   fi
19211 fi
19212 fi
19213 fi
19214 CC=$ac_cv_prog_CC
19215 if test -n "$CC"; then
19216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19217 $as_echo "$CC" >&6; }
19218 else
19219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220 $as_echo "no" >&6; }
19221 fi
19222
19223
19224 fi
19225 if test -z "$CC"; then
19226   if test -n "$ac_tool_prefix"; then
19227   for ac_prog in cl.exe
19228   do
19229     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19232 $as_echo_n "checking for $ac_word... " >&6; }
19233 if test "${ac_cv_prog_CC+set}" = set; then :
19234   $as_echo_n "(cached) " >&6
19235 else
19236   if test -n "$CC"; then
19237   ac_cv_prog_CC="$CC" # Let the user override the test.
19238 else
19239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19240 for as_dir in $PATH
19241 do
19242   IFS=$as_save_IFS
19243   test -z "$as_dir" && as_dir=.
19244     for ac_exec_ext in '' $ac_executable_extensions; do
19245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19246     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19248     break 2
19249   fi
19250 done
19251   done
19252 IFS=$as_save_IFS
19253
19254 fi
19255 fi
19256 CC=$ac_cv_prog_CC
19257 if test -n "$CC"; then
19258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19259 $as_echo "$CC" >&6; }
19260 else
19261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19262 $as_echo "no" >&6; }
19263 fi
19264
19265
19266     test -n "$CC" && break
19267   done
19268 fi
19269 if test -z "$CC"; then
19270   ac_ct_CC=$CC
19271   for ac_prog in cl.exe
19272 do
19273   # Extract the first word of "$ac_prog", so it can be a program name with args.
19274 set dummy $ac_prog; ac_word=$2
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19276 $as_echo_n "checking for $ac_word... " >&6; }
19277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19278   $as_echo_n "(cached) " >&6
19279 else
19280   if test -n "$ac_ct_CC"; then
19281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19282 else
19283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19284 for as_dir in $PATH
19285 do
19286   IFS=$as_save_IFS
19287   test -z "$as_dir" && as_dir=.
19288     for ac_exec_ext in '' $ac_executable_extensions; do
19289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19290     ac_cv_prog_ac_ct_CC="$ac_prog"
19291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19292     break 2
19293   fi
19294 done
19295   done
19296 IFS=$as_save_IFS
19297
19298 fi
19299 fi
19300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19301 if test -n "$ac_ct_CC"; then
19302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19303 $as_echo "$ac_ct_CC" >&6; }
19304 else
19305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19306 $as_echo "no" >&6; }
19307 fi
19308
19309
19310   test -n "$ac_ct_CC" && break
19311 done
19312
19313   if test "x$ac_ct_CC" = x; then
19314     CC=""
19315   else
19316     case $cross_compiling:$ac_tool_warned in
19317 yes:)
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19320 ac_tool_warned=yes ;;
19321 esac
19322     CC=$ac_ct_CC
19323   fi
19324 fi
19325
19326 fi
19327
19328
19329 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19331 as_fn_error $? "no acceptable C compiler found in \$PATH
19332 See \`config.log' for more details" "$LINENO" 5; }
19333
19334 # Provide some information about the compiler.
19335 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19336 set X $ac_compile
19337 ac_compiler=$2
19338 for ac_option in --version -v -V -qversion; do
19339   { { ac_try="$ac_compiler $ac_option >&5"
19340 case "(($ac_try" in
19341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342   *) ac_try_echo=$ac_try;;
19343 esac
19344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19345 $as_echo "$ac_try_echo"; } >&5
19346   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19347   ac_status=$?
19348   if test -s conftest.err; then
19349     sed '10a\
19350 ... rest of stderr output deleted ...
19351          10q' conftest.err >conftest.er1
19352     cat conftest.er1 >&5
19353   fi
19354   rm -f conftest.er1 conftest.err
19355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19356   test $ac_status = 0; }
19357 done
19358
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19360 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19361 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
19362   $as_echo_n "(cached) " >&6
19363 else
19364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h.  */
19366
19367 int
19368 main ()
19369 {
19370 #ifndef __GNUC__
19371        choke me
19372 #endif
19373
19374   ;
19375   return 0;
19376 }
19377 _ACEOF
19378 if ac_fn_c_try_compile "$LINENO"; then :
19379   ac_compiler_gnu=yes
19380 else
19381   ac_compiler_gnu=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19385
19386 fi
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19388 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19389 if test $ac_compiler_gnu = yes; then
19390   GCC=yes
19391 else
19392   GCC=
19393 fi
19394 ac_test_CFLAGS=${CFLAGS+set}
19395 ac_save_CFLAGS=$CFLAGS
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19397 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19398 if test "${ac_cv_prog_cc_g+set}" = set; then :
19399   $as_echo_n "(cached) " >&6
19400 else
19401   ac_save_c_werror_flag=$ac_c_werror_flag
19402    ac_c_werror_flag=yes
19403    ac_cv_prog_cc_g=no
19404    CFLAGS="-g"
19405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h.  */
19407
19408 int
19409 main ()
19410 {
19411
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 if ac_fn_c_try_compile "$LINENO"; then :
19417   ac_cv_prog_cc_g=yes
19418 else
19419   CFLAGS=""
19420       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h.  */
19422
19423 int
19424 main ()
19425 {
19426
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 if ac_fn_c_try_compile "$LINENO"; then :
19432
19433 else
19434   ac_c_werror_flag=$ac_save_c_werror_flag
19435          CFLAGS="-g"
19436          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h.  */
19438
19439 int
19440 main ()
19441 {
19442
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448   ac_cv_prog_cc_g=yes
19449 fi
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19451 fi
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455    ac_c_werror_flag=$ac_save_c_werror_flag
19456 fi
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19458 $as_echo "$ac_cv_prog_cc_g" >&6; }
19459 if test "$ac_test_CFLAGS" = set; then
19460   CFLAGS=$ac_save_CFLAGS
19461 elif test $ac_cv_prog_cc_g = yes; then
19462   if test "$GCC" = yes; then
19463     CFLAGS="-g -O2"
19464   else
19465     CFLAGS="-g"
19466   fi
19467 else
19468   if test "$GCC" = yes; then
19469     CFLAGS="-O2"
19470   else
19471     CFLAGS=
19472   fi
19473 fi
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19475 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19476 if test "${ac_cv_prog_cc_c89+set}" = set; then :
19477   $as_echo_n "(cached) " >&6
19478 else
19479   ac_cv_prog_cc_c89=no
19480 ac_save_CC=$CC
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h.  */
19483 #include <stdarg.h>
19484 #include <stdio.h>
19485 #include <sys/types.h>
19486 #include <sys/stat.h>
19487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19488 struct buf { int x; };
19489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19490 static char *e (p, i)
19491      char **p;
19492      int i;
19493 {
19494   return p[i];
19495 }
19496 static char *f (char * (*g) (char **, int), char **p, ...)
19497 {
19498   char *s;
19499   va_list v;
19500   va_start (v,p);
19501   s = g (p, va_arg (v,int));
19502   va_end (v);
19503   return s;
19504 }
19505
19506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19507    function prototypes and stuff, but not '\xHH' hex character constants.
19508    These don't provoke an error unfortunately, instead are silently treated
19509    as 'x'.  The following induces an error, until -std is added to get
19510    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19511    array size at least.  It's necessary to write '\x00'==0 to get something
19512    that's true only with -std.  */
19513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19514
19515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19516    inside strings and character constants.  */
19517 #define FOO(x) 'x'
19518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19519
19520 int test (int i, double x);
19521 struct s1 {int (*f) (int a);};
19522 struct s2 {int (*f) (double a);};
19523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19524 int argc;
19525 char **argv;
19526 int
19527 main ()
19528 {
19529 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19535         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19536 do
19537   CC="$ac_save_CC $ac_arg"
19538   if ac_fn_c_try_compile "$LINENO"; then :
19539   ac_cv_prog_cc_c89=$ac_arg
19540 fi
19541 rm -f core conftest.err conftest.$ac_objext
19542   test "x$ac_cv_prog_cc_c89" != "xno" && break
19543 done
19544 rm -f conftest.$ac_ext
19545 CC=$ac_save_CC
19546
19547 fi
19548 # AC_CACHE_VAL
19549 case "x$ac_cv_prog_cc_c89" in
19550   x)
19551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19552 $as_echo "none needed" >&6; } ;;
19553   xno)
19554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19555 $as_echo "unsupported" >&6; } ;;
19556   *)
19557     CC="$CC $ac_cv_prog_cc_c89"
19558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19560 esac
19561 if test "x$ac_cv_prog_cc_c89" != xno; then :
19562
19563 fi
19564
19565 ac_ext=c
19566 ac_cpp='$CPP $CPPFLAGS'
19567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19570
19571
19572 #
19573 # gcc's optimiser is broken at -02 for ultrasparc
19574 #
19575 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
19576         case "$host" in
19577         sparc-*)
19578                 CCFLAGS="-g -O1"
19579                 ;;
19580         esac
19581 fi
19582
19583 #
19584 # OS dependent CC flags
19585 #
19586 case "$host" in
19587         # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
19588         # -D_XOPEN_SOURCE_EXTENDED.
19589         *-dec-osf*)
19590                 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
19591                 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
19592                 ;;
19593         #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
19594         *-hp-hpux*)
19595                 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
19596                 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
19597                 LIBS="-lxnet $LIBS"
19598                 ;;
19599         # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
19600         *-solaris*)
19601                 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
19602                 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
19603                 ;;
19604         # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
19605         # parts of the IPv6 Advanced Socket API as a result.  This is stupid
19606         # as it breaks how the two halves (Basic and Advanced) of the IPv6
19607         # Socket API were designed to be used but we have to live with it.
19608         # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
19609         *-linux*)
19610                 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
19611                 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19612                 ;;
19613 esac
19614
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19616 $as_echo_n "checking for ANSI C header files... " >&6; }
19617 if test "${ac_cv_header_stdc+set}" = set; then :
19618   $as_echo_n "(cached) " >&6
19619 else
19620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h.  */
19622 #include <stdlib.h>
19623 #include <stdarg.h>
19624 #include <string.h>
19625 #include <float.h>
19626
19627 int
19628 main ()
19629 {
19630
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 if ac_fn_c_try_compile "$LINENO"; then :
19636   ac_cv_header_stdc=yes
19637 else
19638   ac_cv_header_stdc=no
19639 fi
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19641
19642 if test $ac_cv_header_stdc = yes; then
19643   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h.  */
19646 #include <string.h>
19647
19648 _ACEOF
19649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19650   $EGREP "memchr" >/dev/null 2>&1; then :
19651
19652 else
19653   ac_cv_header_stdc=no
19654 fi
19655 rm -f conftest*
19656
19657 fi
19658
19659 if test $ac_cv_header_stdc = yes; then
19660   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h.  */
19663 #include <stdlib.h>
19664
19665 _ACEOF
19666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19667   $EGREP "free" >/dev/null 2>&1; then :
19668
19669 else
19670   ac_cv_header_stdc=no
19671 fi
19672 rm -f conftest*
19673
19674 fi
19675
19676 if test $ac_cv_header_stdc = yes; then
19677   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19678   if test "$cross_compiling" = yes; then :
19679   :
19680 else
19681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h.  */
19683 #include <ctype.h>
19684 #include <stdlib.h>
19685 #if ((' ' & 0x0FF) == 0x020)
19686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19688 #else
19689 # define ISLOWER(c) \
19690                    (('a' <= (c) && (c) <= 'i') \
19691                      || ('j' <= (c) && (c) <= 'r') \
19692                      || ('s' <= (c) && (c) <= 'z'))
19693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19694 #endif
19695
19696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19697 int
19698 main ()
19699 {
19700   int i;
19701   for (i = 0; i < 256; i++)
19702     if (XOR (islower (i), ISLOWER (i))
19703         || toupper (i) != TOUPPER (i))
19704       return 2;
19705   return 0;
19706 }
19707 _ACEOF
19708 if ac_fn_c_try_run "$LINENO"; then :
19709
19710 else
19711   ac_cv_header_stdc=no
19712 fi
19713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19714   conftest.$ac_objext conftest.beam conftest.$ac_ext
19715 fi
19716
19717 fi
19718 fi
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19720 $as_echo "$ac_cv_header_stdc" >&6; }
19721 if test $ac_cv_header_stdc = yes; then
19722
19723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19724
19725 fi
19726
19727
19728 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h
19729 do :
19730   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19732 #ifdef HAVE_SYS_PARAM_H
19733 # include <sys/param.h>
19734 #endif
19735
19736 "
19737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19738   cat >>confdefs.h <<_ACEOF
19739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19740 _ACEOF
19741
19742 fi
19743
19744 done
19745
19746
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19748 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19749 if test "${ac_cv_c_const+set}" = set; then :
19750   $as_echo_n "(cached) " >&6
19751 else
19752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h.  */
19754
19755 int
19756 main ()
19757 {
19758 /* FIXME: Include the comments suggested by Paul. */
19759 #ifndef __cplusplus
19760   /* Ultrix mips cc rejects this.  */
19761   typedef int charset[2];
19762   const charset cs;
19763   /* SunOS 4.1.1 cc rejects this.  */
19764   char const *const *pcpcc;
19765   char **ppc;
19766   /* NEC SVR4.0.2 mips cc rejects this.  */
19767   struct point {int x, y;};
19768   static struct point const zero = {0,0};
19769   /* AIX XL C 1.02.0.0 rejects this.
19770      It does not let you subtract one const X* pointer from another in
19771      an arm of an if-expression whose if-part is not a constant
19772      expression */
19773   const char *g = "string";
19774   pcpcc = &g + (g ? g-g : 0);
19775   /* HPUX 7.0 cc rejects these. */
19776   ++pcpcc;
19777   ppc = (char**) pcpcc;
19778   pcpcc = (char const *const *) ppc;
19779   { /* SCO 3.2v4 cc rejects this.  */
19780     char *t;
19781     char const *s = 0 ? (char *) 0 : (char const *) 0;
19782
19783     *t++ = 0;
19784     if (s) return 0;
19785   }
19786   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19787     int x[] = {25, 17};
19788     const int *foo = &x[0];
19789     ++foo;
19790   }
19791   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19792     typedef const int *iptr;
19793     iptr p = 0;
19794     ++p;
19795   }
19796   { /* AIX XL C 1.02.0.0 rejects this saying
19797        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19798     struct s { int j; const int *ap[3]; };
19799     struct s *b; b->j = 5;
19800   }
19801   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19802     const int foo = 10;
19803     if (!foo) return 0;
19804   }
19805   return !cs[0] && !zero.x;
19806 #endif
19807
19808   ;
19809   return 0;
19810 }
19811 _ACEOF
19812 if ac_fn_c_try_compile "$LINENO"; then :
19813   ac_cv_c_const=yes
19814 else
19815   ac_cv_c_const=no
19816 fi
19817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19818 fi
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19820 $as_echo "$ac_cv_c_const" >&6; }
19821 if test $ac_cv_c_const = no; then
19822
19823 $as_echo "#define const /**/" >>confdefs.h
19824
19825 fi
19826
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19828 $as_echo_n "checking for inline... " >&6; }
19829 if test "${ac_cv_c_inline+set}" = set; then :
19830   $as_echo_n "(cached) " >&6
19831 else
19832   ac_cv_c_inline=no
19833 for ac_kw in inline __inline__ __inline; do
19834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h.  */
19836 #ifndef __cplusplus
19837 typedef int foo_t;
19838 static $ac_kw foo_t static_foo () {return 0; }
19839 $ac_kw foo_t foo () {return 0; }
19840 #endif
19841
19842 _ACEOF
19843 if ac_fn_c_try_compile "$LINENO"; then :
19844   ac_cv_c_inline=$ac_kw
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847   test "$ac_cv_c_inline" != no && break
19848 done
19849
19850 fi
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19852 $as_echo "$ac_cv_c_inline" >&6; }
19853
19854 case $ac_cv_c_inline in
19855   inline | yes) ;;
19856   *)
19857     case $ac_cv_c_inline in
19858       no) ac_val=;;
19859       *) ac_val=$ac_cv_c_inline;;
19860     esac
19861     cat >>confdefs.h <<_ACEOF
19862 #ifndef __cplusplus
19863 #define inline $ac_val
19864 #endif
19865 _ACEOF
19866     ;;
19867 esac
19868
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19870 $as_echo_n "checking for working volatile... " >&6; }
19871 if test "${ac_cv_c_volatile+set}" = set; then :
19872   $as_echo_n "(cached) " >&6
19873 else
19874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h.  */
19876
19877 int
19878 main ()
19879 {
19880
19881 volatile int x;
19882 int * volatile y = (int *) 0;
19883 return !x && !y;
19884   ;
19885   return 0;
19886 }
19887 _ACEOF
19888 if ac_fn_c_try_compile "$LINENO"; then :
19889   ac_cv_c_volatile=yes
19890 else
19891   ac_cv_c_volatile=no
19892 fi
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19894 fi
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19896 $as_echo "$ac_cv_c_volatile" >&6; }
19897 if test $ac_cv_c_volatile = no; then
19898
19899 $as_echo "#define volatile /**/" >>confdefs.h
19900
19901 fi
19902
19903 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
19904 if test "x$ac_cv_func_sysctlbyname" = x""yes; then :
19905   $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
19906
19907 fi
19908
19909
19910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
19911 $as_echo_n "checking for flexible array members... " >&6; }
19912 if test "${ac_cv_c_flexmember+set}" = set; then :
19913   $as_echo_n "(cached) " >&6
19914 else
19915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h.  */
19917 #include <stdlib.h>
19918             #include <stdio.h>
19919             #include <stddef.h>
19920             struct s { int n; double d[]; };
19921 int
19922 main ()
19923 {
19924 int m = getchar ();
19925             struct s *p = malloc (offsetof (struct s, d)
19926                                   + m * sizeof (double));
19927             p->d[0] = 0.0;
19928             return p->d != (double *) NULL;
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 if ac_fn_c_try_compile "$LINENO"; then :
19934   ac_cv_c_flexmember=yes
19935 else
19936   ac_cv_c_flexmember=no
19937 fi
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939 fi
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19941 $as_echo "$ac_cv_c_flexmember" >&6; }
19942   if test $ac_cv_c_flexmember = yes; then
19943
19944 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19945
19946   else
19947     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19948
19949   fi
19950
19951
19952 #
19953 # Older versions of HP/UX don't define seteuid() and setegid()
19954 #
19955 for ac_func in seteuid setresuid
19956 do :
19957   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19960   cat >>confdefs.h <<_ACEOF
19961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19962 _ACEOF
19963
19964 fi
19965 done
19966
19967 for ac_func in setegid setresgid
19968 do :
19969   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19970 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19971 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19972   cat >>confdefs.h <<_ACEOF
19973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19974 _ACEOF
19975
19976 fi
19977 done
19978
19979
19980 #
19981 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
19982 # is reported to not support "static inline" (RT #1212).
19983 #
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline breakage" >&5
19985 $as_echo_n "checking for static inline breakage... " >&6; }
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h.  */
19988
19989 int
19990 main ()
19991 {
19992
19993                 foo1();
19994         }
19995
19996         static inline int foo1() {
19997                 return 0;
19998         }
19999
20000         static inline int foo2() {
20001                 return foo1();
20002
20003   ;
20004   return 0;
20005 }
20006 _ACEOF
20007 if ac_fn_c_try_compile "$LINENO"; then :
20008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 $as_echo "no" >&6; }
20010 else
20011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20012 $as_echo "yes" >&6; }
20013          $as_echo "#define inline /**/" >>confdefs.h
20014
20015 fi
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017
20018 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20019 if test "x$ac_cv_type_size_t" = x""yes; then :
20020
20021 else
20022
20023 cat >>confdefs.h <<_ACEOF
20024 #define size_t unsigned int
20025 _ACEOF
20026
20027 fi
20028
20029 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20030 if test "x$ac_cv_type_ssize_t" = x""yes; then :
20031
20032 else
20033
20034 cat >>confdefs.h <<_ACEOF
20035 #define ssize_t int
20036 _ACEOF
20037
20038 fi
20039
20040 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20041 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
20042
20043 else
20044
20045 cat >>confdefs.h <<_ACEOF
20046 #define uintptr_t unsigned long
20047 _ACEOF
20048
20049 fi
20050
20051 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20052 #include <sys/types.h>
20053 #include <sys/socket.h>
20054
20055 "
20056 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20057   $as_echo "#define ISC_SOCKADDR_LEN_T socklen_t" >>confdefs.h
20058
20059 else
20060
20061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20062 /* end confdefs.h.  */
20063
20064 #include <sys/types.h>
20065 #include <sys/socket.h>
20066 int getsockname(int, struct sockaddr *, size_t *);
20067
20068 int
20069 main ()
20070 {
20071
20072   ;
20073   return 0;
20074 }
20075 _ACEOF
20076 if ac_fn_c_try_compile "$LINENO"; then :
20077   $as_echo "#define ISC_SOCKADDR_LEN_T size_t" >>confdefs.h
20078
20079 else
20080   $as_echo "#define ISC_SOCKADDR_LEN_T int" >>confdefs.h
20081
20082 fi
20083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20084
20085 fi
20086
20087
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20089 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20090 if test "${ac_cv_header_time+set}" = set; then :
20091   $as_echo_n "(cached) " >&6
20092 else
20093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20094 /* end confdefs.h.  */
20095 #include <sys/types.h>
20096 #include <sys/time.h>
20097 #include <time.h>
20098
20099 int
20100 main ()
20101 {
20102 if ((struct tm *) 0)
20103 return 0;
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 if ac_fn_c_try_compile "$LINENO"; then :
20109   ac_cv_header_time=yes
20110 else
20111   ac_cv_header_time=no
20112 fi
20113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114 fi
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20116 $as_echo "$ac_cv_header_time" >&6; }
20117 if test $ac_cv_header_time = yes; then
20118
20119 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20120
20121 fi
20122
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
20124 $as_echo_n "checking for long long... " >&6; }
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h.  */
20127
20128 int
20129 main ()
20130 {
20131 long long i = 0; return (0);
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 if ac_fn_c_try_compile "$LINENO"; then :
20137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20138 $as_echo "yes" >&6; }
20139                 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
20140 else
20141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 $as_echo "no" >&6; }
20143                 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
20144 fi
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146
20147
20148 #
20149 # check for GCC noreturn attribute
20150 #
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
20152 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
20153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h.  */
20155
20156 int
20157 main ()
20158 {
20159 void foo() __attribute__((noreturn));
20160   ;
20161   return 0;
20162 }
20163 _ACEOF
20164 if ac_fn_c_try_compile "$LINENO"; then :
20165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20166 $as_echo "yes" >&6; }
20167                 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
20168                 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
20169 else
20170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20171 $as_echo "no" >&6; }
20172                 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
20173                 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
20174 fi
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176
20177
20178
20179 #
20180 # check if we have lifconf
20181 #
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
20183 $as_echo_n "checking for struct lifconf... " >&6; }
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h.  */
20186
20187 #include <sys/types.h>
20188 #include <sys/socket.h>
20189 #include <net/if.h>
20190
20191 int
20192 main ()
20193 {
20194
20195 struct lifconf lifconf;
20196 lifconf.lifc_len = 0;
20197
20198
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 if ac_fn_c_try_compile "$LINENO"; then :
20204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20205 $as_echo "yes" >&6; }
20206                 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
20207 else
20208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20209 $as_echo "no" >&6; }
20210                 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
20211 fi
20212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20213
20214
20215 #
20216 # check if we have kqueue
20217 #
20218 # Check whether --enable-kqueue was given.
20219 if test "${enable_kqueue+set}" = set; then :
20220   enableval=$enable_kqueue; want_kqueue="$enableval"
20221 else
20222   want_kqueue="yes"
20223 fi
20224
20225 case $want_kqueue in
20226 yes)
20227         ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
20228 if test "x$ac_cv_func_kqueue" = x""yes; then :
20229   ac_cv_have_kqueue=yes
20230 else
20231   ac_cv_have_kqueue=no
20232 fi
20233
20234         case $ac_cv_have_kqueue in
20235         yes)
20236                 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
20237                 ;;
20238         *)
20239                 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
20240                 ;;
20241         esac
20242         ;;
20243 *)
20244         ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
20245         ;;
20246 esac
20247
20248
20249 #
20250 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
20251 # so we need to try running the code, not just test its existence.
20252 #
20253 # Check whether --enable-epoll was given.
20254 if test "${enable_epoll+set}" = set; then :
20255   enableval=$enable_epoll; want_epoll="$enableval"
20256 else
20257   want_epoll="auto"
20258 fi
20259
20260 case $want_epoll in
20261 auto)
20262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll support" >&5
20263 $as_echo_n "checking epoll support... " >&6; }
20264         if test "$cross_compiling" = yes; then :
20265   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20267 as_fn_error $? "cannot run test program while cross compiling
20268 See \`config.log' for more details" "$LINENO" 5; }
20269 else
20270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h.  */
20272
20273 #include <sys/epoll.h>
20274 int main() {
20275         if (epoll_create(1) < 0)
20276                 return (1);
20277         return (0);
20278 }
20279
20280 _ACEOF
20281 if ac_fn_c_try_run "$LINENO"; then :
20282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20283 $as_echo "yes" >&6; }
20284         ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
20285 else
20286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20287 $as_echo "no" >&6; }
20288         ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
20289 fi
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20291   conftest.$ac_objext conftest.beam conftest.$ac_ext
20292 fi
20293
20294         ;;
20295 yes)
20296         ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
20297         ;;
20298 *)
20299         ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
20300         ;;
20301 esac
20302
20303
20304 #
20305 # check if we support /dev/poll
20306 #
20307 # Check whether --enable-devpoll was given.
20308 if test "${enable_devpoll+set}" = set; then :
20309   enableval=$enable_devpoll; want_devpoll="$enableval"
20310 else
20311   want_devpoll="yes"
20312 fi
20313
20314 case $want_devpoll in
20315 yes)
20316         for ac_header in sys/devpoll.h devpoll.h
20317 do :
20318   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20319 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20321   cat >>confdefs.h <<_ACEOF
20322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20323 _ACEOF
20324  ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
20325
20326 else
20327   ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
20328
20329 fi
20330
20331 done
20332
20333         ;;
20334 *)
20335         ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
20336         ;;
20337 esac
20338
20339
20340 #
20341 # check if we need to #include sys/select.h explicitly
20342 #
20343 case $ac_cv_header_unistd_h in
20344 yes)
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unistd.h or sys/types.h defines fd_set" >&5
20346 $as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
20347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20348 /* end confdefs.h.  */
20349
20350 #include <sys/types.h> /* Ultrix */
20351 #include <unistd.h>
20352 int
20353 main ()
20354 {
20355 fd_set read_set; return (0);
20356   ;
20357   return 0;
20358 }
20359 _ACEOF
20360 if ac_fn_c_try_compile "$LINENO"; then :
20361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20362 $as_echo "yes" >&6; }
20363          ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
20364          LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
20365 else
20366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20367 $as_echo "no" >&6; }
20368         case $ac_cv_header_sys_select_h in
20369         yes)
20370          ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
20371          LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
20372                 ;;
20373         no)
20374                 as_fn_error $? "need either working unistd.h or sys/select.h" "$LINENO" 5
20375                 ;;
20376         esac
20377
20378 fi
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380         ;;
20381 no)
20382         case $ac_cv_header_sys_select_h in
20383         yes)
20384              ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
20385              LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
20386                 ;;
20387         no)
20388                 as_fn_error $? "need either unistd.h or sys/select.h" "$LINENO" 5
20389                 ;;
20390         esac
20391         ;;
20392 esac
20393
20394
20395
20396 #
20397 # Find the machine's endian flavor.
20398 #
20399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20400 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20401 if test "${ac_cv_c_bigendian+set}" = set; then :
20402   $as_echo_n "(cached) " >&6
20403 else
20404   ac_cv_c_bigendian=unknown
20405     # See if we're dealing with a universal compiler.
20406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h.  */
20408 #ifndef __APPLE_CC__
20409                not a universal capable compiler
20410              #endif
20411              typedef int dummy;
20412
20413 _ACEOF
20414 if ac_fn_c_try_compile "$LINENO"; then :
20415
20416         # Check for potential -arch flags.  It is not universal unless
20417         # there are at least two -arch flags with different values.
20418         ac_arch=
20419         ac_prev=
20420         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20421          if test -n "$ac_prev"; then
20422            case $ac_word in
20423              i?86 | x86_64 | ppc | ppc64)
20424                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20425                  ac_arch=$ac_word
20426                else
20427                  ac_cv_c_bigendian=universal
20428                  break
20429                fi
20430                ;;
20431            esac
20432            ac_prev=
20433          elif test "x$ac_word" = "x-arch"; then
20434            ac_prev=arch
20435          fi
20436        done
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439     if test $ac_cv_c_bigendian = unknown; then
20440       # See if sys/param.h defines the BYTE_ORDER macro.
20441       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20442 /* end confdefs.h.  */
20443 #include <sys/types.h>
20444              #include <sys/param.h>
20445
20446 int
20447 main ()
20448 {
20449 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20450                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20451                      && LITTLE_ENDIAN)
20452               bogus endian macros
20453              #endif
20454
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 if ac_fn_c_try_compile "$LINENO"; then :
20460   # It does; now see whether it defined to BIG_ENDIAN or not.
20461          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h.  */
20463 #include <sys/types.h>
20464                 #include <sys/param.h>
20465
20466 int
20467 main ()
20468 {
20469 #if BYTE_ORDER != BIG_ENDIAN
20470                  not big endian
20471                 #endif
20472
20473   ;
20474   return 0;
20475 }
20476 _ACEOF
20477 if ac_fn_c_try_compile "$LINENO"; then :
20478   ac_cv_c_bigendian=yes
20479 else
20480   ac_cv_c_bigendian=no
20481 fi
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20483 fi
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485     fi
20486     if test $ac_cv_c_bigendian = unknown; then
20487       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20488       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h.  */
20490 #include <limits.h>
20491
20492 int
20493 main ()
20494 {
20495 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20496               bogus endian macros
20497              #endif
20498
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 if ac_fn_c_try_compile "$LINENO"; then :
20504   # It does; now see whether it defined to _BIG_ENDIAN or not.
20505          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h.  */
20507 #include <limits.h>
20508
20509 int
20510 main ()
20511 {
20512 #ifndef _BIG_ENDIAN
20513                  not big endian
20514                 #endif
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 if ac_fn_c_try_compile "$LINENO"; then :
20521   ac_cv_c_bigendian=yes
20522 else
20523   ac_cv_c_bigendian=no
20524 fi
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 fi
20527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528     fi
20529     if test $ac_cv_c_bigendian = unknown; then
20530       # Compile a test program.
20531       if test "$cross_compiling" = yes; then :
20532   # Try to guess by grepping values from an object file.
20533          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h.  */
20535 short int ascii_mm[] =
20536                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20537                 short int ascii_ii[] =
20538                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20539                 int use_ascii (int i) {
20540                   return ascii_mm[i] + ascii_ii[i];
20541                 }
20542                 short int ebcdic_ii[] =
20543                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20544                 short int ebcdic_mm[] =
20545                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20546                 int use_ebcdic (int i) {
20547                   return ebcdic_mm[i] + ebcdic_ii[i];
20548                 }
20549                 extern int foo;
20550
20551 int
20552 main ()
20553 {
20554 return use_ascii (foo) == use_ebcdic (foo);
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 if ac_fn_c_try_compile "$LINENO"; then :
20560   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20561               ac_cv_c_bigendian=yes
20562             fi
20563             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20564               if test "$ac_cv_c_bigendian" = unknown; then
20565                 ac_cv_c_bigendian=no
20566               else
20567                 # finding both strings is unlikely to happen, but who knows?
20568                 ac_cv_c_bigendian=unknown
20569               fi
20570             fi
20571 fi
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20573 else
20574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h.  */
20576 $ac_includes_default
20577 int
20578 main ()
20579 {
20580
20581              /* Are we little or big endian?  From Harbison&Steele.  */
20582              union
20583              {
20584                long int l;
20585                char c[sizeof (long int)];
20586              } u;
20587              u.l = 1;
20588              return u.c[sizeof (long int) - 1] == 1;
20589
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 if ac_fn_c_try_run "$LINENO"; then :
20595   ac_cv_c_bigendian=no
20596 else
20597   ac_cv_c_bigendian=yes
20598 fi
20599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20600   conftest.$ac_objext conftest.beam conftest.$ac_ext
20601 fi
20602
20603     fi
20604 fi
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20606 $as_echo "$ac_cv_c_bigendian" >&6; }
20607  case $ac_cv_c_bigendian in #(
20608    yes)
20609      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20610 ;; #(
20611    no)
20612       ;; #(
20613    universal)
20614
20615 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20616
20617      ;; #(
20618    *)
20619      as_fn_error $? "unknown endianness
20620  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20621  esac
20622
20623
20624
20625 #
20626 # was --with-openssl specified?
20627 #
20628 OPENSSL_WARNING=
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5
20630 $as_echo_n "checking for OpenSSL library... " >&6; }
20631
20632 # Check whether --with-openssl was given.
20633 if test "${with_openssl+set}" = set; then :
20634   withval=$with_openssl; use_openssl="$withval"
20635 else
20636   use_openssl="auto"
20637 fi
20638
20639
20640 openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
20641 if test "$use_openssl" = "auto"
20642 then
20643         for d in $openssldirs
20644         do
20645                 if test -f $d/include/openssl/opensslv.h
20646                 then
20647                         use_openssl=$d
20648                         break
20649                 fi
20650         done
20651 fi
20652 case "$use_openssl" in
20653         no)
20654                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20655 $as_echo "no" >&6; }
20656                 DST_OPENSSL_INC=""
20657                 USE_OPENSSL=""
20658                 OPENSSLLINKOBJS=""
20659                 OPENSSLLINKSRCS=""
20660                 ;;
20661         auto)
20662                 DST_OPENSSL_INC=""
20663                 USE_OPENSSL=""
20664                 OPENSSLLINKOBJS=""
20665                 OPENSSLLINKSRCS=""
20666                 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
20667 If you don't want OpenSSL, use --without-openssl" "$LINENO" 5
20668                 ;;
20669         *)
20670                 if test "$use_openssl" = "yes"
20671                 then
20672                         # User did not specify a path - guess it
20673                         for d in $openssldirs
20674                         do
20675                                 if test -f $d/include/openssl/opensslv.h
20676                                 then
20677                                         use_openssl=$d
20678                                         break
20679                                 fi
20680                         done
20681                         if test "$use_openssl" = "yes"
20682                         then
20683                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20684 $as_echo "not found" >&6; }
20685                                 as_fn_error $? "OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" "$LINENO" 5
20686                         fi
20687                 elif ! test -f "$use_openssl"/include/openssl/opensslv.h
20688                 then
20689                         as_fn_error $? "\"$use_openssl/include/openssl/opensslv.h\" not found" "$LINENO" 5
20690                 fi
20691                 USE_OPENSSL='-DOPENSSL'
20692                 if test "$use_openssl" = "/usr"
20693                 then
20694                         DST_OPENSSL_INC=""
20695                         DNS_OPENSSL_LIBS="-lcrypto"
20696                 else
20697                         DST_OPENSSL_INC="-I$use_openssl/include"
20698                         case $host in
20699                         *-solaris*)
20700                                 DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
20701                                 ;;
20702                         *-hp-hpux*)
20703                                 DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
20704                                 ;;
20705                         *-apple-darwin*)
20706                                 #
20707                                 # Apple's ld seaches for serially for dynamic
20708                                 # then static libraries.  This means you can't
20709                                 # use -L to override dynamic system libraries
20710                                 # with static ones when linking.  Instead
20711                                 # we specify a absolute path.
20712                                 #
20713                                 if test -f "$use_openssl/lib/libcrypto.dylib"
20714                                 then
20715                                         DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
20716                                 else
20717                                         DNS_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
20718                                 fi
20719                                 ;;
20720                         *)
20721                                 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
20722                                 ;;
20723                         esac
20724                 fi
20725                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
20726 $as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
20727
20728                 saved_cflags="$CFLAGS"
20729                 saved_libs="$LIBS"
20730                 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
20731                 LIBS="$LIBS $DNS_OPENSSL_LIBS"
20732                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL works" >&5
20733 $as_echo_n "checking whether linking with OpenSSL works... " >&6; }
20734                 if test "$cross_compiling" = yes; then :
20735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming it does work on target platform" >&5
20736 $as_echo "assuming it does work on target platform" >&6; }
20737 else
20738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h.  */
20740
20741 #include <openssl/err.h>
20742 int main() {
20743         ERR_clear_error();
20744         return (0);
20745 }
20746
20747 _ACEOF
20748 if ac_fn_c_try_run "$LINENO"; then :
20749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20750 $as_echo "yes" >&6; }
20751 else
20752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20753 $as_echo "no" >&6; }
20754                  as_fn_error $? "Could not run test program using OpenSSL from
20755 $use_openssl/lib and $use_openssl/include.
20756 Please check the argument to --with-openssl and your
20757 shared library configuration (e.g., LD_LIBRARY_PATH)." "$LINENO" 5
20758 fi
20759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20760   conftest.$ac_objext conftest.beam conftest.$ac_ext
20761 fi
20762
20763
20764                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL requires -ldl" >&5
20765 $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
20766                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h.  */
20768
20769 #include <openssl/err.h>
20770 int
20771 main ()
20772 {
20773  DSO_METHOD_dlfcn();
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 if ac_fn_c_try_link "$LINENO"; then :
20779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20780 $as_echo "no" >&6; }
20781 else
20782   LIBS="$LIBS -ldl"
20783                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h.  */
20785
20786 #include <openssl/err.h>
20787
20788 int
20789 main ()
20790 {
20791  DSO_METHOD_dlfcn();
20792   ;
20793   return 0;
20794 }
20795 _ACEOF
20796 if ac_fn_c_try_link "$LINENO"; then :
20797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20798 $as_echo "yes" >&6; }
20799                 DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl"
20800
20801 else
20802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20803 $as_echo "unknown" >&6; }
20804                  as_fn_error $? "OpenSSL has unsupported dynamic loading" "$LINENO" 5
20805 fi
20806 rm -f core conftest.err conftest.$ac_objext \
20807     conftest$ac_exeext conftest.$ac_ext
20808
20809 fi
20810 rm -f core conftest.err conftest.$ac_objext \
20811     conftest$ac_exeext conftest.$ac_ext
20812
20813 # Check whether --enable-openssl-version-check was given.
20814 if test "${enable_openssl_version_check+set}" = set; then :
20815   enableval=$enable_openssl_version_check;
20816 fi
20817
20818 case "$enable_openssl_version_check" in
20819 yes|'')
20820                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
20821 $as_echo_n "checking OpenSSL library version... " >&6; }
20822                 if test "$cross_compiling" = yes; then :
20823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has compatible version" >&5
20824 $as_echo "assuming target platform has compatible version" >&6; }
20825 else
20826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827 /* end confdefs.h.  */
20828
20829 #include <stdio.h>
20830 #include <openssl/opensslv.h>
20831 int main() {
20832         if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
20833              OPENSSL_VERSION_NUMBER < 0x00908000L) ||
20834              OPENSSL_VERSION_NUMBER >= 0x0090804fL)
20835                 return (0);
20836         printf("\n\nFound   OPENSSL_VERSION_NUMBER %#010x\n",
20837                 OPENSSL_VERSION_NUMBER);
20838         printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
20839                "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
20840         return (1);
20841 }
20842
20843 _ACEOF
20844 if ac_fn_c_try_run "$LINENO"; then :
20845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
20846 $as_echo "ok" >&6; }
20847 else
20848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not compatible" >&5
20849 $as_echo "not compatible" >&6; }
20850                  OPENSSL_WARNING=yes
20851
20852 fi
20853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20854   conftest.$ac_objext conftest.beam conftest.$ac_ext
20855 fi
20856
20857 ;;
20858 no)
20859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipped OpenSSL version check" >&5
20860 $as_echo "Skipped OpenSSL version check" >&6; }
20861 ;;
20862 esac
20863
20864                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL DSA support" >&5
20865 $as_echo_n "checking for OpenSSL DSA support... " >&6; }
20866                 if test -f $use_openssl/include/openssl/dsa.h
20867                 then
20868                         $as_echo "#define HAVE_OPENSSL_DSA 1" >>confdefs.h
20869
20870                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20871 $as_echo "yes" >&6; }
20872                 else
20873                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874 $as_echo "no" >&6; }
20875                 fi
20876                 for ac_func in EVP_sha256 EVP_sha512
20877 do :
20878   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20879 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20880 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20881   cat >>confdefs.h <<_ACEOF
20882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20883 _ACEOF
20884
20885 fi
20886 done
20887
20888                 CFLAGS="$saved_cflags"
20889                 LIBS="$saved_libs"
20890                 OPENSSLLINKOBJS='${OPENSSLLINKOBJS}'
20891                 OPENSSLLINKSRCS='${OPENSSLLINKSRCS}'
20892
20893                 ;;
20894 esac
20895
20896 #
20897 # This would include the system openssl path (and linker options to use
20898 # it as needed) if it is found.
20899 #
20900
20901
20902
20903
20904
20905 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS"
20906
20907 #
20908 # Use OpenSSL for hash functions
20909 #
20910
20911 # Check whether --enable-openssl-hash was given.
20912 if test "${enable_openssl_hash+set}" = set; then :
20913   enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
20914 else
20915   want_openssl_hash="no"
20916 fi
20917
20918 case $want_openssl_hash in
20919         yes)
20920                 if test "$USE_OPENSSL" = ""
20921                 then
20922                         as_fn_error $? "No OpenSSL for hash functions" "$LINENO" 5
20923                 fi
20924                 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
20925                 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
20926                 ;;
20927         no)
20928                 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
20929                 ISC_OPENSSL_INC=""
20930                 ;;
20931 esac
20932
20933
20934
20935 #
20936 # PKCS11 (aka crypto hardware) support
20937 #
20938 # This works only with the right OpenSSL with PKCS11 engine!
20939 #
20940
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 support" >&5
20942 $as_echo_n "checking for PKCS11 support... " >&6; }
20943
20944 # Check whether --with-pkcs11 was given.
20945 if test "${with_pkcs11+set}" = set; then :
20946   withval=$with_pkcs11; use_pkcs11="$withval"
20947 else
20948   use_pkcs11="no"
20949 fi
20950
20951
20952 case "$use_pkcs11" in
20953         no|'')
20954                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20955 $as_echo "disabled" >&6; }
20956                 USE_PKCS11=''
20957                 PKCS11_TOOLS=''
20958                 ;;
20959         yes|*)
20960                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OpenSSL with PKCS11 support" >&5
20961 $as_echo "using OpenSSL with PKCS11 support" >&6; }
20962                 USE_PKCS11='-DUSE_PKCS11'
20963                 PKCS11_TOOLS=pkcs11
20964                 ;;
20965 esac
20966
20967
20968
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 tools" >&5
20970 $as_echo_n "checking for PKCS11 tools... " >&6; }
20971 case "$use_pkcs11" in
20972         no|yes|'')
20973                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20974 $as_echo "disabled" >&6; }
20975                 PKCS11_PROVIDER="undefined"
20976                 ;;
20977        *)
20978                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PKCS11 provider is \"$use_pkcs11\"" >&5
20979 $as_echo "PKCS11 provider is \"$use_pkcs11\"" >&6; }
20980                 PKCS11_PROVIDER="$use_pkcs11"
20981                 ;;
20982 esac
20983
20984
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
20986 $as_echo_n "checking for GSSAPI library... " >&6; }
20987
20988 # Check whether --with-gssapi was given.
20989 if test "${with_gssapi+set}" = set; then :
20990   withval=$with_gssapi; use_gssapi="$withval"
20991 else
20992   use_gssapi="no"
20993 fi
20994
20995
20996 gssapidirs="/usr/local /usr/pkg /usr/kerberos /usr"
20997 if test "$use_gssapi" = "yes"
20998 then
20999         for d in $gssapidirs
21000         do
21001                 if test -f $d/include/gssapi/gssapi.h -o -f $d/include/gssapi.h
21002                 then
21003                         use_gssapi=$d
21004                         break
21005                 fi
21006         done
21007 fi
21008
21009 case "$use_gssapi" in
21010         no)
21011                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21012 $as_echo "disabled" >&6; }
21013                 USE_GSSAPI=''
21014                 ;;
21015         yes)
21016                 as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
21017                 ;;
21018         *)
21019                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
21020 $as_echo "looking in $use_gssapi/lib" >&6; }
21021                 USE_GSSAPI='-DGSSAPI'
21022                 saved_cppflags="$CPPFLAGS"
21023                 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
21024                 for ac_header in gssapi.h gssapi/gssapi.h
21025 do :
21026   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21027 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21029   cat >>confdefs.h <<_ACEOF
21030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21031 _ACEOF
21032  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
21033 fi
21034
21035 done
21036
21037
21038                 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
21039                     as_fn_error $? "gssapi.h not found" "$LINENO" 5
21040                 fi
21041
21042                 for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
21043 do :
21044   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21045 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21047   cat >>confdefs.h <<_ACEOF
21048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21049 _ACEOF
21050  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
21051 fi
21052
21053 done
21054
21055
21056                 if test "$ISC_PLATFORM_KRB5HEADER" = ""; then
21057                     as_fn_error $? "krb5.h not found" "$LINENO" 5
21058                 fi
21059
21060                 CPPFLAGS="$saved_cppflags"
21061
21062                 #
21063                 # XXXDCL This probably doesn't work right on all systems.
21064                 # It will need to be worked on as problems become evident.
21065                 #
21066                 # Essentially the problems here relate to two different
21067                 # areas.  The first area is building with either KTH
21068                 # or MIT Kerberos, particularly when both are present on
21069                 # the machine.  The other is static versus dynamic linking.
21070                 #
21071                 # On the KTH vs MIT issue, Both have libkrb5 that can mess
21072                 # up the works if one implementation ends up trying to
21073                 # use the other's krb.  This is unfortunately a situation
21074                 # that very easily arises.
21075                 #
21076                 # Dynamic linking when the dependency information is built
21077                 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
21078                 # all such problems go away, but when that setup is not
21079                 # present, because either the dynamic libraries lack
21080                 # dependencies or static linking is being done, then the
21081                 # problems start to show up.
21082                 saved_libs="$LIBS"
21083                 for TRY_LIBS in \
21084                     "-lgssapi_krb5" \
21085                     "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
21086                     "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
21087                     "-lgssapi" \
21088                     "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
21089                     "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
21090                     "-lgss -lkrb5"
21091                 do
21092                     # Note that this does not include $saved_libs, because
21093                     # on FreeBSD machines this configure script has added
21094                     # -L/usr/local/lib to LIBS, which can make the
21095                     # -lgssapi_krb5 test succeed with shared libraries even
21096                     # when you are trying to build with KTH in /usr/lib.
21097                     LIBS="-L$use_gssapi/lib $TRY_LIBS"
21098                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
21099 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
21100                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21101 /* end confdefs.h.  */
21102
21103 int
21104 main ()
21105 {
21106 gss_acquire_cred();krb5_init_context()
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 if ac_fn_c_try_link "$LINENO"; then :
21112   gssapi_linked=yes
21113 else
21114   gssapi_linked=no
21115 fi
21116 rm -f core conftest.err conftest.$ac_objext \
21117     conftest$ac_exeext conftest.$ac_ext
21118                     case $gssapi_linked in
21119                     yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21120 $as_echo "yes" >&6; }; break ;;
21121                     no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21122 $as_echo "no" >&6; } ;;
21123                     esac
21124                 done
21125
21126                 case $gssapi_linked in
21127                 no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
21128                 esac
21129
21130                 #
21131                 # XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
21132                 # but MIT in /usr/local/lib and trying to build with KTH.
21133                 # /usr/local/lib can end up earlier on the link lines.
21134                 # Like most kludges, this one is not only inelegant it
21135                 # is also likely to be the wrong thing to do at least as
21136                 # many times as it is the right thing.  Something better
21137                 # needs to be done.
21138                 #
21139                 if test "$use_gssapi" = "/usr" -a \
21140                         -f /usr/local/lib/libkrb5.a; then
21141                     FIX_KTH_VS_MIT=yes
21142                 fi
21143
21144                 case "$FIX_KTH_VS_MIT" in
21145                 yes)
21146                     case "$enable_static_linking" in
21147                     yes) gssapi_lib_suffix=".a"  ;;
21148                     *)   gssapi_lib_suffix=".so" ;;
21149                     esac
21150
21151                     for lib in $LIBS; do
21152                         case $lib in
21153                         -L*)
21154                             ;;
21155                         -l*)
21156                             new_lib=`echo $lib |
21157                                      sed -e s%^-l%$use_gssapi/lib/lib% \
21158                                          -e s%$%$gssapi_lib_suffix%`
21159                             NEW_LIBS="$NEW_LIBS $new_lib"
21160                             ;;
21161                         *)
21162                            as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
21163                             ;;
21164                         esac
21165                     done
21166                     LIBS="$NEW_LIBS"
21167                     ;;
21168                 esac
21169
21170                 DST_GSSAPI_INC="-I$use_gssapi/include"
21171                 DNS_GSSAPI_LIBS="$LIBS"
21172
21173                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
21174 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
21175                 LIBS="$saved_libs"
21176                 ;;
21177 esac
21178
21179
21180
21181
21182
21183
21184
21185
21186 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
21187
21188 #
21189 # Applications linking with libdns also need to link with these libraries.
21190 #
21191
21192
21193
21194 #
21195 # was --with-randomdev specified?
21196 #
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
21198 $as_echo_n "checking for random device... " >&6; }
21199
21200 # Check whether --with-randomdev was given.
21201 if test "${with_randomdev+set}" = set; then :
21202   withval=$with_randomdev; use_randomdev="$withval"
21203 else
21204   use_randomdev="unspec"
21205 fi
21206
21207
21208 case "$use_randomdev" in
21209         unspec)
21210                 case "$host" in
21211                         *-openbsd*)
21212                                 devrandom=/dev/arandom
21213                                 ;;
21214                         *)
21215                                 devrandom=/dev/random
21216                                 ;;
21217                 esac
21218                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
21219 $as_echo "$devrandom" >&6; }
21220                 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh`
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $devrandom" >&5
21222 $as_echo_n "checking for $devrandom... " >&6; }
21223 if eval "test \"\${$as_ac_File+set}\"" = set; then :
21224   $as_echo_n "(cached) " >&6
21225 else
21226   test "$cross_compiling" = yes &&
21227   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
21228 if test -r "$devrandom"; then
21229   eval "$as_ac_File=yes"
21230 else
21231   eval "$as_ac_File=no"
21232 fi
21233 fi
21234 eval ac_res=\$$as_ac_File
21235                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21236 $as_echo "$ac_res" >&6; }
21237 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
21238   cat >>confdefs.h <<_ACEOF
21239 #define PATH_RANDOMDEV "$devrandom"
21240 _ACEOF
21241
21242 fi
21243
21244                 ;;
21245         yes)
21246                 as_fn_error $? "--with-randomdev must specify a path" "$LINENO" 5
21247                 ;;
21248         no)
21249                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21250 $as_echo "disabled" >&6; }
21251                 ;;
21252         *)
21253                 cat >>confdefs.h <<_ACEOF
21254 #define PATH_RANDOMDEV "$use_randomdev"
21255 _ACEOF
21256
21257                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using \"$use_randomdev\"" >&5
21258 $as_echo "using \"$use_randomdev\"" >&6; }
21259                 ;;
21260 esac
21261
21262 #
21263 # Do we have arc4random() ?
21264 #
21265 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21266 if test "x$ac_cv_func_arc4random" = x""yes; then :
21267   $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21268
21269 fi
21270
21271
21272 #
21273 # Begin pthreads checking.
21274 #
21275 # First, decide whether to use multithreading or not.
21276 #
21277 # Enable multithreading by default on systems where it is known
21278 # to work well, and where debugging of multithreaded programs
21279 # is supported.
21280 #
21281
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with thread support" >&5
21283 $as_echo_n "checking whether to build with thread support... " >&6; }
21284
21285 case $host in
21286 *-dec-osf*)
21287         use_threads=true ;;
21288 *-solaris2.[0-6])
21289         # Thread signals are broken on Solaris 2.6; they are sometimes
21290         # delivered to the wrong thread.
21291         use_threads=false ;;
21292 *-solaris*)
21293         use_threads=true ;;
21294 *-ibm-aix*)
21295         use_threads=true ;;
21296 *-hp-hpux10*)
21297         use_threads=false ;;
21298 *-hp-hpux11*)
21299         use_threads=true ;;
21300 *-sgi-irix*)
21301         use_threads=true ;;
21302 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
21303         # UnixWare
21304         use_threads=false ;;
21305 *-*-sysv*OpenUNIX*)
21306         # UnixWare
21307         use_threads=true ;;
21308 *-netbsd*)
21309         if test -r /usr/lib/libpthread.so ; then
21310             use_threads=true
21311         else
21312             # Socket I/O optimizations introduced in 9.2 expose a
21313             # bug in unproven-pthreads; see PR #12650
21314             use_threads=false
21315         fi
21316         ;;
21317 *-openbsd*)
21318         # OpenBSD users have reported that named dumps core on
21319         # startup when built with threads.
21320         use_threads=false ;;
21321 *-freebsd*)
21322         use_threads=false ;;
21323 *-bsdi234*)
21324         # Thread signals do not work reliably on some versions of BSD/OS.
21325         use_threads=false ;;
21326 *-bsdi5*)
21327         use_threads=true ;;
21328 *-linux*)
21329         # Threads are disabled on Linux by default because most
21330         # Linux kernels produce unusable core dumps from multithreaded
21331         # programs, and because of limitations in setuid().
21332         use_threads=false ;;
21333 *)
21334         use_threads=false ;;
21335 esac
21336
21337 # Check whether --enable-threads was given.
21338 if test "${enable_threads+set}" = set; then :
21339   enableval=$enable_threads;
21340 fi
21341
21342 case "$enable_threads" in
21343         yes)
21344                 use_threads=true
21345                 ;;
21346         no)
21347                 use_threads=false
21348                 ;;
21349         '')
21350                 # Use system-dependent default
21351                 ;;
21352         *)
21353                 as_fn_error $? "--enable-threads takes yes or no" "$LINENO" 5
21354                 ;;
21355 esac
21356
21357 if $use_threads
21358 then
21359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21360 $as_echo "yes" >&6; }
21361 else
21362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21363 $as_echo "no" >&6; }
21364 fi
21365
21366 if $use_threads
21367 then
21368         #
21369         # Search for / configure pthreads in a system-dependent fashion.
21370         #
21371         case "$host" in
21372           *-netbsd*)
21373                 # NetBSD has multiple pthreads implementations.  The
21374                 # recommended one to use is "unproven-pthreads".  The
21375                 # older "mit-pthreads" may also work on some NetBSD
21376                 # versions.  The PTL2 thread library does not
21377                 # currently work with bind9, but can be chosen with
21378                 # the --with-ptl2 option for those who wish to
21379                 # experiment with it.
21380                 CC="gcc"
21381                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which NetBSD thread library to use" >&5
21382 $as_echo_n "checking which NetBSD thread library to use... " >&6; }
21383
21384
21385 # Check whether --with-ptl2 was given.
21386 if test "${with_ptl2+set}" = set; then :
21387   withval=$with_ptl2; use_ptl2="$withval"
21388 else
21389   use_ptl2="no"
21390 fi
21391
21392
21393                 : ${LOCALBASE:=/usr/pkg}
21394
21395                 if test "X$use_ptl2" = "Xyes"
21396                 then
21397                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: PTL2" >&5
21398 $as_echo "PTL2" >&6; }
21399                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
21400 $as_echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
21401                         CC=ptlgcc
21402                 else
21403                         if test -r /usr/lib/libpthread.so
21404                         then
21405                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: native" >&5
21406 $as_echo "native" >&6; }
21407                                 LIBS="-lpthread $LIBS"
21408                         else
21409                                 if test ! -d $LOCALBASE/pthreads
21410                                 then
21411                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21412 $as_echo "none" >&6; }
21413                                         as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
21414                                 fi
21415
21416                                 if $use_threads
21417                                 then
21418                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: mit-pthreads/unproven-pthreads" >&5
21419 $as_echo "mit-pthreads/unproven-pthreads" >&6; }
21420                                         pkg="$LOCALBASE/pthreads"
21421                                         lib1="-L$pkg/lib -Wl,-R$pkg/lib"
21422                                         lib2="-lpthread -lm -lgcc -lpthread"
21423                                         LIBS="$lib1 $lib2 $LIBS"
21424                                         CPPFLAGS="$CPPFLAGS -I$pkg/include"
21425                                         STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
21426                                 fi
21427                         fi
21428                 fi
21429                 ;;
21430                 *-freebsd*)
21431                         # We don't want to set -lpthread as that break
21432                         # the ability to choose threads library at final
21433                         # link time and is not valid for all architectures.
21434
21435                         PTHREAD=
21436                         if test "X$GCC" = "Xyes"; then
21437                                 saved_cc="$CC"
21438                                 CC="$CC -pthread"
21439                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pthread support" >&5
21440 $as_echo_n "checking for gcc -pthread support... " >&6; };
21441                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h.  */
21443 #include <pthread.h>
21444 int
21445 main ()
21446 {
21447 printf("%x\n", pthread_create);
21448   ;
21449   return 0;
21450 }
21451 _ACEOF
21452 if ac_fn_c_try_link "$LINENO"; then :
21453   PTHREAD="yes"
21454                                             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21455 $as_echo "yes" >&6; }
21456 else
21457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21458 $as_echo "no" >&6; }
21459 fi
21460 rm -f core conftest.err conftest.$ac_objext \
21461     conftest$ac_exeext conftest.$ac_ext
21462                                 CC="$saved_cc"
21463                         fi
21464                         if test "X$PTHREAD" != "Xyes"; then
21465                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21466 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
21467 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
21468   $as_echo_n "(cached) " >&6
21469 else
21470   ac_check_lib_save_LIBS=$LIBS
21471 LIBS="-lpthread  $LIBS"
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h.  */
21474
21475 /* Override any GCC internal prototype to avoid an error.
21476    Use char because int might match the return type of a GCC
21477    builtin and then its argument prototype would still apply.  */
21478 #ifdef __cplusplus
21479 extern "C"
21480 #endif
21481 char pthread_create ();
21482 int
21483 main ()
21484 {
21485 return pthread_create ();
21486   ;
21487   return 0;
21488 }
21489 _ACEOF
21490 if ac_fn_c_try_link "$LINENO"; then :
21491   ac_cv_lib_pthread_pthread_create=yes
21492 else
21493   ac_cv_lib_pthread_pthread_create=no
21494 fi
21495 rm -f core conftest.err conftest.$ac_objext \
21496     conftest$ac_exeext conftest.$ac_ext
21497 LIBS=$ac_check_lib_save_LIBS
21498 fi
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
21500 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
21501 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
21502   cat >>confdefs.h <<_ACEOF
21503 #define HAVE_LIBPTHREAD 1
21504 _ACEOF
21505
21506   LIBS="-lpthread $LIBS"
21507
21508 else
21509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_create in -lthr" >&5
21510 $as_echo_n "checking for thread_create in -lthr... " >&6; }
21511 if test "${ac_cv_lib_thr_thread_create+set}" = set; then :
21512   $as_echo_n "(cached) " >&6
21513 else
21514   ac_check_lib_save_LIBS=$LIBS
21515 LIBS="-lthr  $LIBS"
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h.  */
21518
21519 /* Override any GCC internal prototype to avoid an error.
21520    Use char because int might match the return type of a GCC
21521    builtin and then its argument prototype would still apply.  */
21522 #ifdef __cplusplus
21523 extern "C"
21524 #endif
21525 char thread_create ();
21526 int
21527 main ()
21528 {
21529 return thread_create ();
21530   ;
21531   return 0;
21532 }
21533 _ACEOF
21534 if ac_fn_c_try_link "$LINENO"; then :
21535   ac_cv_lib_thr_thread_create=yes
21536 else
21537   ac_cv_lib_thr_thread_create=no
21538 fi
21539 rm -f core conftest.err conftest.$ac_objext \
21540     conftest$ac_exeext conftest.$ac_ext
21541 LIBS=$ac_check_lib_save_LIBS
21542 fi
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_thread_create" >&5
21544 $as_echo "$ac_cv_lib_thr_thread_create" >&6; }
21545 if test "x$ac_cv_lib_thr_thread_create" = x""yes; then :
21546   cat >>confdefs.h <<_ACEOF
21547 #define HAVE_LIBTHR 1
21548 _ACEOF
21549
21550   LIBS="-lthr $LIBS"
21551
21552 else
21553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
21554 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
21555 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
21556   $as_echo_n "(cached) " >&6
21557 else
21558   ac_check_lib_save_LIBS=$LIBS
21559 LIBS="-lc_r  $LIBS"
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h.  */
21562
21563 /* Override any GCC internal prototype to avoid an error.
21564    Use char because int might match the return type of a GCC
21565    builtin and then its argument prototype would still apply.  */
21566 #ifdef __cplusplus
21567 extern "C"
21568 #endif
21569 char pthread_create ();
21570 int
21571 main ()
21572 {
21573 return pthread_create ();
21574   ;
21575   return 0;
21576 }
21577 _ACEOF
21578 if ac_fn_c_try_link "$LINENO"; then :
21579   ac_cv_lib_c_r_pthread_create=yes
21580 else
21581   ac_cv_lib_c_r_pthread_create=no
21582 fi
21583 rm -f core conftest.err conftest.$ac_objext \
21584     conftest$ac_exeext conftest.$ac_ext
21585 LIBS=$ac_check_lib_save_LIBS
21586 fi
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
21588 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
21589 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
21590   cat >>confdefs.h <<_ACEOF
21591 #define HAVE_LIBC_R 1
21592 _ACEOF
21593
21594   LIBS="-lc_r $LIBS"
21595
21596 else
21597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
21598 $as_echo_n "checking for pthread_create in -lc... " >&6; }
21599 if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
21600   $as_echo_n "(cached) " >&6
21601 else
21602   ac_check_lib_save_LIBS=$LIBS
21603 LIBS="-lc  $LIBS"
21604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h.  */
21606
21607 /* Override any GCC internal prototype to avoid an error.
21608    Use char because int might match the return type of a GCC
21609    builtin and then its argument prototype would still apply.  */
21610 #ifdef __cplusplus
21611 extern "C"
21612 #endif
21613 char pthread_create ();
21614 int
21615 main ()
21616 {
21617 return pthread_create ();
21618   ;
21619   return 0;
21620 }
21621 _ACEOF
21622 if ac_fn_c_try_link "$LINENO"; then :
21623   ac_cv_lib_c_pthread_create=yes
21624 else
21625   ac_cv_lib_c_pthread_create=no
21626 fi
21627 rm -f core conftest.err conftest.$ac_objext \
21628     conftest$ac_exeext conftest.$ac_ext
21629 LIBS=$ac_check_lib_save_LIBS
21630 fi
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
21632 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
21633 if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
21634   cat >>confdefs.h <<_ACEOF
21635 #define HAVE_LIBC 1
21636 _ACEOF
21637
21638   LIBS="-lc $LIBS"
21639
21640 else
21641   as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
21642 fi
21643
21644 fi
21645
21646 fi
21647
21648 fi
21649
21650                         fi
21651                         ;;
21652                 *)
21653                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
21654 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
21655 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
21656   $as_echo_n "(cached) " >&6
21657 else
21658   ac_check_lib_save_LIBS=$LIBS
21659 LIBS="-lpthread  $LIBS"
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h.  */
21662
21663 /* Override any GCC internal prototype to avoid an error.
21664    Use char because int might match the return type of a GCC
21665    builtin and then its argument prototype would still apply.  */
21666 #ifdef __cplusplus
21667 extern "C"
21668 #endif
21669 char pthread_create ();
21670 int
21671 main ()
21672 {
21673 return pthread_create ();
21674   ;
21675   return 0;
21676 }
21677 _ACEOF
21678 if ac_fn_c_try_link "$LINENO"; then :
21679   ac_cv_lib_pthread_pthread_create=yes
21680 else
21681   ac_cv_lib_pthread_pthread_create=no
21682 fi
21683 rm -f core conftest.err conftest.$ac_objext \
21684     conftest$ac_exeext conftest.$ac_ext
21685 LIBS=$ac_check_lib_save_LIBS
21686 fi
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
21688 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
21689 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
21690   cat >>confdefs.h <<_ACEOF
21691 #define HAVE_LIBPTHREAD 1
21692 _ACEOF
21693
21694   LIBS="-lpthread $LIBS"
21695
21696 else
21697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create in -lpthread" >&5
21698 $as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
21699 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then :
21700   $as_echo_n "(cached) " >&6
21701 else
21702   ac_check_lib_save_LIBS=$LIBS
21703 LIBS="-lpthread  $LIBS"
21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h.  */
21706
21707 /* Override any GCC internal prototype to avoid an error.
21708    Use char because int might match the return type of a GCC
21709    builtin and then its argument prototype would still apply.  */
21710 #ifdef __cplusplus
21711 extern "C"
21712 #endif
21713 char __pthread_create ();
21714 int
21715 main ()
21716 {
21717 return __pthread_create ();
21718   ;
21719   return 0;
21720 }
21721 _ACEOF
21722 if ac_fn_c_try_link "$LINENO"; then :
21723   ac_cv_lib_pthread___pthread_create=yes
21724 else
21725   ac_cv_lib_pthread___pthread_create=no
21726 fi
21727 rm -f core conftest.err conftest.$ac_objext \
21728     conftest$ac_exeext conftest.$ac_ext
21729 LIBS=$ac_check_lib_save_LIBS
21730 fi
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create" >&5
21732 $as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
21733 if test "x$ac_cv_lib_pthread___pthread_create" = x""yes; then :
21734   cat >>confdefs.h <<_ACEOF
21735 #define HAVE_LIBPTHREAD 1
21736 _ACEOF
21737
21738   LIBS="-lpthread $LIBS"
21739
21740 else
21741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
21742 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
21743 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then :
21744   $as_echo_n "(cached) " >&6
21745 else
21746   ac_check_lib_save_LIBS=$LIBS
21747 LIBS="-lpthread  $LIBS"
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h.  */
21750
21751 /* Override any GCC internal prototype to avoid an error.
21752    Use char because int might match the return type of a GCC
21753    builtin and then its argument prototype would still apply.  */
21754 #ifdef __cplusplus
21755 extern "C"
21756 #endif
21757 char __pthread_create_system ();
21758 int
21759 main ()
21760 {
21761 return __pthread_create_system ();
21762   ;
21763   return 0;
21764 }
21765 _ACEOF
21766 if ac_fn_c_try_link "$LINENO"; then :
21767   ac_cv_lib_pthread___pthread_create_system=yes
21768 else
21769   ac_cv_lib_pthread___pthread_create_system=no
21770 fi
21771 rm -f core conftest.err conftest.$ac_objext \
21772     conftest$ac_exeext conftest.$ac_ext
21773 LIBS=$ac_check_lib_save_LIBS
21774 fi
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
21776 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
21777 if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then :
21778   cat >>confdefs.h <<_ACEOF
21779 #define HAVE_LIBPTHREAD 1
21780 _ACEOF
21781
21782   LIBS="-lpthread $LIBS"
21783
21784 else
21785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
21786 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
21787 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
21788   $as_echo_n "(cached) " >&6
21789 else
21790   ac_check_lib_save_LIBS=$LIBS
21791 LIBS="-lc_r  $LIBS"
21792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h.  */
21794
21795 /* Override any GCC internal prototype to avoid an error.
21796    Use char because int might match the return type of a GCC
21797    builtin and then its argument prototype would still apply.  */
21798 #ifdef __cplusplus
21799 extern "C"
21800 #endif
21801 char pthread_create ();
21802 int
21803 main ()
21804 {
21805 return pthread_create ();
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 if ac_fn_c_try_link "$LINENO"; then :
21811   ac_cv_lib_c_r_pthread_create=yes
21812 else
21813   ac_cv_lib_c_r_pthread_create=no
21814 fi
21815 rm -f core conftest.err conftest.$ac_objext \
21816     conftest$ac_exeext conftest.$ac_ext
21817 LIBS=$ac_check_lib_save_LIBS
21818 fi
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
21820 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
21821 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
21822   cat >>confdefs.h <<_ACEOF
21823 #define HAVE_LIBC_R 1
21824 _ACEOF
21825
21826   LIBS="-lc_r $LIBS"
21827
21828 else
21829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5
21830 $as_echo_n "checking for pthread_create in -lc... " >&6; }
21831 if test "${ac_cv_lib_c_pthread_create+set}" = set; then :
21832   $as_echo_n "(cached) " >&6
21833 else
21834   ac_check_lib_save_LIBS=$LIBS
21835 LIBS="-lc  $LIBS"
21836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h.  */
21838
21839 /* Override any GCC internal prototype to avoid an error.
21840    Use char because int might match the return type of a GCC
21841    builtin and then its argument prototype would still apply.  */
21842 #ifdef __cplusplus
21843 extern "C"
21844 #endif
21845 char pthread_create ();
21846 int
21847 main ()
21848 {
21849 return pthread_create ();
21850   ;
21851   return 0;
21852 }
21853 _ACEOF
21854 if ac_fn_c_try_link "$LINENO"; then :
21855   ac_cv_lib_c_pthread_create=yes
21856 else
21857   ac_cv_lib_c_pthread_create=no
21858 fi
21859 rm -f core conftest.err conftest.$ac_objext \
21860     conftest$ac_exeext conftest.$ac_ext
21861 LIBS=$ac_check_lib_save_LIBS
21862 fi
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_create" >&5
21864 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
21865 if test "x$ac_cv_lib_c_pthread_create" = x""yes; then :
21866   cat >>confdefs.h <<_ACEOF
21867 #define HAVE_LIBC 1
21868 _ACEOF
21869
21870   LIBS="-lc $LIBS"
21871
21872 else
21873   as_fn_error $? "\"could not find thread libraries\"" "$LINENO" 5
21874 fi
21875
21876 fi
21877
21878 fi
21879
21880 fi
21881
21882 fi
21883
21884                 ;;
21885         esac
21886 fi
21887
21888 if $use_threads
21889 then
21890         if test "X$GCC" = "Xyes"; then
21891                 case "$host" in
21892                 *-freebsd*)
21893                         CC="$CC -pthread"
21894                         CCOPT="$CCOPT -pthread"
21895                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
21896                         ;;
21897                 *-openbsd*)
21898                         CC="$CC -pthread"
21899                         CCOPT="$CCOPT -pthread"
21900                         ;;
21901                 *-solaris*)
21902                         LIBS="$LIBS -lthread"
21903                         ;;
21904                 *-ibm-aix*)
21905                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
21906                         ;;
21907                 esac
21908         else
21909                 case $host in
21910                 *-dec-osf*)
21911                         CC="$CC -pthread"
21912                         CCOPT="$CCOPT -pthread"
21913                         ;;
21914                 *-solaris*)
21915                         CC="$CC -mt"
21916                         CCOPT="$CCOPT -mt"
21917                         ;;
21918                 *-ibm-aix*)
21919                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
21920                         ;;
21921                 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
21922                         CC="$CC -Kthread"
21923                         CCOPT="$CCOPT -Kthread"
21924                         ;;
21925                 *-*-sysv*OpenUNIX*)
21926                         CC="$CC -Kpthread"
21927                         CCOPT="$CCOPT -Kpthread"
21928                         ;;
21929                 esac
21930         fi
21931         ALWAYS_DEFINES="-D_REENTRANT"
21932         ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
21933         THREADOPTOBJS='${THREADOPTOBJS}'
21934         THREADOPTSRCS='${THREADOPTSRCS}'
21935         thread_dir=pthreads
21936         #
21937         # We'd like to use sigwait() too
21938         #
21939         ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
21940 if test "x$ac_cv_func_sigwait" = x""yes; then :
21941   $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
21942
21943 else
21944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
21945 $as_echo_n "checking for sigwait in -lc... " >&6; }
21946 if test "${ac_cv_lib_c_sigwait+set}" = set; then :
21947   $as_echo_n "(cached) " >&6
21948 else
21949   ac_check_lib_save_LIBS=$LIBS
21950 LIBS="-lc  $LIBS"
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h.  */
21953
21954 /* Override any GCC internal prototype to avoid an error.
21955    Use char because int might match the return type of a GCC
21956    builtin and then its argument prototype would still apply.  */
21957 #ifdef __cplusplus
21958 extern "C"
21959 #endif
21960 char sigwait ();
21961 int
21962 main ()
21963 {
21964 return sigwait ();
21965   ;
21966   return 0;
21967 }
21968 _ACEOF
21969 if ac_fn_c_try_link "$LINENO"; then :
21970   ac_cv_lib_c_sigwait=yes
21971 else
21972   ac_cv_lib_c_sigwait=no
21973 fi
21974 rm -f core conftest.err conftest.$ac_objext \
21975     conftest$ac_exeext conftest.$ac_ext
21976 LIBS=$ac_check_lib_save_LIBS
21977 fi
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
21979 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
21980 if test "x$ac_cv_lib_c_sigwait" = x""yes; then :
21981   $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
21982
21983 else
21984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
21985 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
21986 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then :
21987   $as_echo_n "(cached) " >&6
21988 else
21989   ac_check_lib_save_LIBS=$LIBS
21990 LIBS="-lpthread  $LIBS"
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h.  */
21993
21994 /* Override any GCC internal prototype to avoid an error.
21995    Use char because int might match the return type of a GCC
21996    builtin and then its argument prototype would still apply.  */
21997 #ifdef __cplusplus
21998 extern "C"
21999 #endif
22000 char sigwait ();
22001 int
22002 main ()
22003 {
22004 return sigwait ();
22005   ;
22006   return 0;
22007 }
22008 _ACEOF
22009 if ac_fn_c_try_link "$LINENO"; then :
22010   ac_cv_lib_pthread_sigwait=yes
22011 else
22012   ac_cv_lib_pthread_sigwait=no
22013 fi
22014 rm -f core conftest.err conftest.$ac_objext \
22015     conftest$ac_exeext conftest.$ac_ext
22016 LIBS=$ac_check_lib_save_LIBS
22017 fi
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
22019 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
22020 if test "x$ac_cv_lib_pthread_sigwait" = x""yes; then :
22021   $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22022
22023 else
22024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
22025 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
22026 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then :
22027   $as_echo_n "(cached) " >&6
22028 else
22029   ac_check_lib_save_LIBS=$LIBS
22030 LIBS="-lpthread  $LIBS"
22031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h.  */
22033
22034 /* Override any GCC internal prototype to avoid an error.
22035    Use char because int might match the return type of a GCC
22036    builtin and then its argument prototype would still apply.  */
22037 #ifdef __cplusplus
22038 extern "C"
22039 #endif
22040 char _Psigwait ();
22041 int
22042 main ()
22043 {
22044 return _Psigwait ();
22045   ;
22046   return 0;
22047 }
22048 _ACEOF
22049 if ac_fn_c_try_link "$LINENO"; then :
22050   ac_cv_lib_pthread__Psigwait=yes
22051 else
22052   ac_cv_lib_pthread__Psigwait=no
22053 fi
22054 rm -f core conftest.err conftest.$ac_objext \
22055     conftest$ac_exeext conftest.$ac_ext
22056 LIBS=$ac_check_lib_save_LIBS
22057 fi
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
22059 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
22060 if test "x$ac_cv_lib_pthread__Psigwait" = x""yes; then :
22061   $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22062
22063 fi
22064
22065 fi
22066
22067 fi
22068
22069 fi
22070
22071
22072         ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
22073 if test "x$ac_cv_func_pthread_attr_getstacksize" = x""yes; then :
22074   $as_echo "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
22075
22076 fi
22077
22078
22079         ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
22080 if test "x$ac_cv_func_pthread_attr_setstacksize" = x""yes; then :
22081   $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
22082
22083 fi
22084
22085
22086         #
22087         # Additional OS-specific issues related to pthreads and sigwait.
22088         #
22089         case "$host" in
22090                 #
22091                 # One more place to look for sigwait.
22092                 #
22093                 *-freebsd*)
22094                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
22095 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
22096 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then :
22097   $as_echo_n "(cached) " >&6
22098 else
22099   ac_check_lib_save_LIBS=$LIBS
22100 LIBS="-lc_r  $LIBS"
22101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22102 /* end confdefs.h.  */
22103
22104 /* Override any GCC internal prototype to avoid an error.
22105    Use char because int might match the return type of a GCC
22106    builtin and then its argument prototype would still apply.  */
22107 #ifdef __cplusplus
22108 extern "C"
22109 #endif
22110 char sigwait ();
22111 int
22112 main ()
22113 {
22114 return sigwait ();
22115   ;
22116   return 0;
22117 }
22118 _ACEOF
22119 if ac_fn_c_try_link "$LINENO"; then :
22120   ac_cv_lib_c_r_sigwait=yes
22121 else
22122   ac_cv_lib_c_r_sigwait=no
22123 fi
22124 rm -f core conftest.err conftest.$ac_objext \
22125     conftest$ac_exeext conftest.$ac_ext
22126 LIBS=$ac_check_lib_save_LIBS
22127 fi
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
22129 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
22130 if test "x$ac_cv_lib_c_r_sigwait" = x""yes; then :
22131   $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
22132
22133 fi
22134
22135                         case $host in
22136                         *-freebsd5.[012]|*-freebsd5.[012].*);;
22137                         *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
22138                                 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
22139
22140                                 ;;
22141                         *-freebsd6.*)
22142                                 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
22143
22144                                 ;;
22145                         esac
22146                         ;;
22147                 #
22148                 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
22149                 # called before certain pthreads calls.  This is deprecated
22150                 # in BSD/OS 4.1.
22151                 #
22152                 *-bsdi3.*|*-bsdi4.0*)
22153                         $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
22154
22155                         ;;
22156                 #
22157                 # LinuxThreads requires some changes to the way we
22158                 # deal with signals.
22159                 #
22160                 *-linux*)
22161                         $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
22162
22163                         ;;
22164                 #
22165                 # Ensure the right sigwait() semantics on Solaris and make
22166                 # sure we call pthread_setconcurrency.
22167                 #
22168                 *-solaris*)
22169                         $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
22170
22171                         ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
22172 if test "x$ac_cv_func_pthread_setconcurrency" = x""yes; then :
22173   $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
22174
22175 fi
22176
22177                         ;;
22178                 #
22179                 # UnixWare does things its own way.
22180                 #
22181                 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
22182                         $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
22183
22184                         ;;
22185         esac
22186
22187         #
22188         # Look for sysconf to allow detection of the number of processors.
22189         #
22190         ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
22191 if test "x$ac_cv_func_sysconf" = x""yes; then :
22192   $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
22193
22194 fi
22195
22196
22197 else
22198         ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
22199         thread_dir=nothreads
22200         THREADOPTOBJS=""
22201         THREADOPTSRCS=""
22202         ALWAYS_DEFINES=""
22203 fi
22204
22205
22206
22207
22208
22209 ISC_THREAD_DIR=$thread_dir
22210
22211
22212 #
22213 # was --with-libxml2 specified?
22214 #
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 library" >&5
22216 $as_echo_n "checking for libxml2 library... " >&6; }
22217
22218 # Check whether --with-libxml2 was given.
22219 if test "${with_libxml2+set}" = set; then :
22220   withval=$with_libxml2; use_libxml2="$withval"
22221 else
22222   use_libxml2="auto"
22223 fi
22224
22225
22226 case "$use_libxml2" in
22227         no)
22228                 DST_LIBXML2_INC=""
22229                 ;;
22230         auto|yes)
22231                 case X`(xml2-config --version) 2>/dev/null` in
22232                 X2.[67].*)
22233                         libxml2_libs=`xml2-config --libs`
22234                         libxml2_cflags=`xml2-config --cflags`
22235                         ;;
22236                 *)
22237                         libxml2_libs=
22238                         libxml2_cflags=
22239                         ;;
22240                 esac
22241                 ;;
22242         *)
22243                 if test -f "$use_libxml2/bin/xml2-config" ; then
22244                         libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
22245                         libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
22246                 fi
22247                 ;;
22248 esac
22249
22250 if test "X$libxml2_libs" != "X"
22251 then
22252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22253 $as_echo "yes" >&6; }
22254         CFLAGS="$CFLAGS $libxml2_cflags"
22255         LIBS="$LIBS $libxml2_libs"
22256
22257 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
22258
22259 else
22260         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22261 $as_echo "no" >&6; }
22262 fi
22263
22264 #
22265 # In solaris 10, SMF can manage named service
22266 #
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
22268 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
22269 if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then :
22270   $as_echo_n "(cached) " >&6
22271 else
22272   ac_check_lib_save_LIBS=$LIBS
22273 LIBS="-lscf  $LIBS"
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h.  */
22276
22277 /* Override any GCC internal prototype to avoid an error.
22278    Use char because int might match the return type of a GCC
22279    builtin and then its argument prototype would still apply.  */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char smf_enable_instance ();
22284 int
22285 main ()
22286 {
22287 return smf_enable_instance ();
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 if ac_fn_c_try_link "$LINENO"; then :
22293   ac_cv_lib_scf_smf_enable_instance=yes
22294 else
22295   ac_cv_lib_scf_smf_enable_instance=no
22296 fi
22297 rm -f core conftest.err conftest.$ac_objext \
22298     conftest$ac_exeext conftest.$ac_ext
22299 LIBS=$ac_check_lib_save_LIBS
22300 fi
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
22302 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
22303 if test "x$ac_cv_lib_scf_smf_enable_instance" = x""yes; then :
22304   cat >>confdefs.h <<_ACEOF
22305 #define HAVE_LIBSCF 1
22306 _ACEOF
22307
22308   LIBS="-lscf $LIBS"
22309
22310 fi
22311
22312
22313 #
22314 # flockfile is usually provided by pthreads, but we may want to use it
22315 # even if compiled with --disable-threads.  getc_unlocked might also not
22316 # be defined.
22317 #
22318 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
22319 if test "x$ac_cv_func_flockfile" = x""yes; then :
22320   $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h
22321
22322 fi
22323
22324 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
22325 if test "x$ac_cv_func_getc_unlocked" = x""yes; then :
22326   $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h
22327
22328 fi
22329
22330
22331 #
22332 # Indicate what the final decision was regarding threads.
22333 #
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with threads" >&5
22335 $as_echo_n "checking whether to build with threads... " >&6; }
22336 if $use_threads; then
22337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22338 $as_echo "yes" >&6; }
22339 else
22340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22341 $as_echo "no" >&6; }
22342 fi
22343
22344 #
22345 # End of pthreads stuff.
22346 #
22347
22348 #
22349 # Large File
22350 #
22351 # Check whether --enable-largefile was given.
22352 if test "${enable_largefile+set}" = set; then :
22353   enableval=$enable_largefile; want_largefile="yes"
22354 else
22355   want_largefile="no"
22356 fi
22357
22358 case $want_largefile in
22359         yes)
22360                 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
22361                 ;;
22362         *)
22363                 ;;
22364 esac
22365
22366 #
22367 # Additional compiler settings.
22368 #
22369 MKDEPCC="$CC"
22370 MKDEPCFLAGS="-M"
22371 IRIX_DNSSEC_WARNINGS_HACK=""
22372
22373 if test "X$GCC" = "Xyes"; then
22374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"$CC\" supports -fno-strict-aliasing" >&5
22375 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
22376         SAVE_CFLAGS=$CFLAGS
22377         CFLAGS="$CFLAGS -fno-strict-aliasing"
22378         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h.  */
22380
22381 int
22382 main ()
22383 {
22384
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 if ac_fn_c_try_compile "$LINENO"; then :
22390   FNOSTRICTALIASING=yes
22391 else
22392   FNOSTRICTALIASING=no
22393 fi
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395         CFLAGS=$SAVE_CFLAGS
22396         if test "$FNOSTRICTALIASING" = "yes"; then
22397                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22398 $as_echo "yes" >&6; }
22399         STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
22400         else
22401                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22402 $as_echo "no" >&6; }
22403         STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
22404         fi
22405         case "$host" in
22406         *-hp-hpux*)
22407                 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
22408                 ;;
22409         esac
22410 else
22411         case $host in
22412         *-dec-osf*)
22413                 CC="$CC -std"
22414                 CCOPT="$CCOPT -std"
22415                 MKDEPCC="$CC"
22416                 ;;
22417         *-hp-hpux*)
22418                 CC="$CC -Ae -z"
22419                 # The version of the C compiler that constantly warns about
22420                 # 'const' as well as alignment issues is unfortunately not
22421                 # able to be discerned via the version of the operating
22422                 # system, nor does cc have a version flag.
22423                 case "`$CC +W 123 2>&1`" in
22424                 *Unknown?option*)
22425                         STD_CWARNINGS="+w1"
22426                         ;;
22427                 *)
22428                         # Turn off the pointlessly noisy warnings.
22429                         STD_CWARNINGS="+w1 +W 474,530,2193,2236"
22430                         ;;
22431                 esac
22432                 CCOPT="$CCOPT -Ae -z"
22433                 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
22434                 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
22435                 ;;
22436         *-sgi-irix*)
22437                 STD_CWARNINGS="-fullwarn -woff 1209"
22438                 #
22439                 # Silence more than 250 instances of
22440                 #   "prototyped function redeclared without prototype"
22441                 # and 11 instances of
22442                 #   "variable ... was set but never used"
22443                 # from lib/dns/sec/openssl.
22444                 #
22445                 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
22446                 ;;
22447         *-solaris*)
22448                 MKDEPCFLAGS="-xM"
22449                 ;;
22450         *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
22451                 # UnixWare
22452                 CC="$CC -w"
22453                 ;;
22454         esac
22455 fi
22456
22457
22458
22459
22460
22461
22462 #
22463 # NLS
22464 #
22465 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
22466 if test "x$ac_cv_func_catgets" = x""yes; then :
22467   $as_echo "#define HAVE_CATGETS 1" >>confdefs.h
22468
22469 fi
22470
22471
22472 #
22473 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
22474 #
22475 # AC_CHECK_LIB(xnet, socket, ,
22476 #    AC_CHECK_LIB(socket, socket)
22477 # )
22478 #
22479 # Use this for now, instead:
22480 #
22481 case "$host" in
22482         mips-sgi-irix*)
22483                 ;;
22484         *-linux*)
22485                 ;;
22486         *)
22487                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22488 $as_echo_n "checking for socket in -lsocket... " >&6; }
22489 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22490   $as_echo_n "(cached) " >&6
22491 else
22492   ac_check_lib_save_LIBS=$LIBS
22493 LIBS="-lsocket  $LIBS"
22494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22495 /* end confdefs.h.  */
22496
22497 /* Override any GCC internal prototype to avoid an error.
22498    Use char because int might match the return type of a GCC
22499    builtin and then its argument prototype would still apply.  */
22500 #ifdef __cplusplus
22501 extern "C"
22502 #endif
22503 char socket ();
22504 int
22505 main ()
22506 {
22507 return socket ();
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 if ac_fn_c_try_link "$LINENO"; then :
22513   ac_cv_lib_socket_socket=yes
22514 else
22515   ac_cv_lib_socket_socket=no
22516 fi
22517 rm -f core conftest.err conftest.$ac_objext \
22518     conftest$ac_exeext conftest.$ac_ext
22519 LIBS=$ac_check_lib_save_LIBS
22520 fi
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22522 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22523 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22524   cat >>confdefs.h <<_ACEOF
22525 #define HAVE_LIBSOCKET 1
22526 _ACEOF
22527
22528   LIBS="-lsocket $LIBS"
22529
22530 fi
22531
22532                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
22533 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
22534 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then :
22535   $as_echo_n "(cached) " >&6
22536 else
22537   ac_check_lib_save_LIBS=$LIBS
22538 LIBS="-lnsl  $LIBS"
22539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h.  */
22541
22542 /* Override any GCC internal prototype to avoid an error.
22543    Use char because int might match the return type of a GCC
22544    builtin and then its argument prototype would still apply.  */
22545 #ifdef __cplusplus
22546 extern "C"
22547 #endif
22548 char inet_addr ();
22549 int
22550 main ()
22551 {
22552 return inet_addr ();
22553   ;
22554   return 0;
22555 }
22556 _ACEOF
22557 if ac_fn_c_try_link "$LINENO"; then :
22558   ac_cv_lib_nsl_inet_addr=yes
22559 else
22560   ac_cv_lib_nsl_inet_addr=no
22561 fi
22562 rm -f core conftest.err conftest.$ac_objext \
22563     conftest$ac_exeext conftest.$ac_ext
22564 LIBS=$ac_check_lib_save_LIBS
22565 fi
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
22567 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
22568 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then :
22569   cat >>confdefs.h <<_ACEOF
22570 #define HAVE_LIBNSL 1
22571 _ACEOF
22572
22573   LIBS="-lnsl $LIBS"
22574
22575 fi
22576
22577                 ;;
22578 esac
22579
22580 #
22581 # Work around Solaris's select() limitations.
22582 #
22583 case "$host" in
22584         *-solaris2.[89]|*-solaris2.1?)
22585
22586 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
22587
22588         ;;
22589 esac
22590
22591 #
22592 # Purify support
22593 #
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
22595 $as_echo_n "checking whether to use purify... " >&6; }
22596
22597 # Check whether --with-purify was given.
22598 if test "${with_purify+set}" = set; then :
22599   withval=$with_purify; use_purify="$withval"
22600 else
22601   use_purify="no"
22602 fi
22603
22604
22605 case "$use_purify" in
22606         no)
22607                 ;;
22608         yes)
22609                 # Extract the first word of "purify", so it can be a program name with args.
22610 set dummy purify; ac_word=$2
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22612 $as_echo_n "checking for $ac_word... " >&6; }
22613 if test "${ac_cv_path_purify_path+set}" = set; then :
22614   $as_echo_n "(cached) " >&6
22615 else
22616   case $purify_path in
22617   [\\/]* | ?:[\\/]*)
22618   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
22619   ;;
22620   *)
22621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22622 for as_dir in $PATH
22623 do
22624   IFS=$as_save_IFS
22625   test -z "$as_dir" && as_dir=.
22626     for ac_exec_ext in '' $ac_executable_extensions; do
22627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22628     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
22629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22630     break 2
22631   fi
22632 done
22633   done
22634 IFS=$as_save_IFS
22635
22636   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
22637   ;;
22638 esac
22639 fi
22640 purify_path=$ac_cv_path_purify_path
22641 if test -n "$purify_path"; then
22642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
22643 $as_echo "$purify_path" >&6; }
22644 else
22645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22646 $as_echo "no" >&6; }
22647 fi
22648
22649
22650                 ;;
22651         *)
22652                 purify_path="$use_purify"
22653                 ;;
22654 esac
22655
22656 case "$use_purify" in
22657         no)
22658                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659 $as_echo "no" >&6; }
22660                 PURIFY=""
22661                 ;;
22662         *)
22663                 if test -f $purify_path || test $purify_path = purify; then
22664                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
22665 $as_echo "$purify_path" >&6; }
22666                         PURIFYFLAGS="`echo $PURIFYOPTIONS`"
22667                         PURIFY="$purify_path $PURIFYFLAGS"
22668                 else
22669                         as_fn_error $? "$purify_path not found.
22670
22671 Please choose the proper path with the following command:
22672
22673     configure --with-purify=PATH
22674 " "$LINENO" 5
22675                 fi
22676                 ;;
22677 esac
22678
22679
22680
22681
22682
22683 # Check whether --with-libtool was given.
22684 if test "${with_libtool+set}" = set; then :
22685   withval=$with_libtool; use_libtool="$withval"
22686 else
22687   use_libtool="no"
22688 fi
22689
22690
22691 case $use_libtool in
22692         yes)
22693
22694                 O=lo
22695                 A=la
22696                 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
22697                 LIBTOOL_MODE_COMPILE='--mode=compile'
22698                 LIBTOOL_MODE_INSTALL='--mode=install'
22699                 LIBTOOL_MODE_LINK='--mode=link'
22700                 case "$host" in
22701                 *) LIBTOOL_ALLOW_UNDEFINED= ;;
22702                 esac
22703                 case "$host" in
22704                 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
22705                 *) LIBTOOL_IN_MAIN= ;;
22706                 esac;
22707                 ;;
22708         *)
22709                 O=o
22710                 A=a
22711                 LIBTOOL=
22712
22713                 LIBTOOL_MKDEP_SED=
22714                 LIBTOOL_MODE_COMPILE=
22715                 LIBTOOL_MODE_INSTALL=
22716                 LIBTOOL_MODE_LINK=
22717                 LIBTOOL_ALLOW_UNDEFINED=
22718                 LIBTOOL_IN_MAIN=
22719                 ;;
22720 esac
22721
22722 #
22723 # enable/disable dumping stack backtrace.  Also check if the system supports
22724 # glibc-compatible backtrace() function.
22725 #
22726 # Check whether --enable-backtrace was given.
22727 if test "${enable_backtrace+set}" = set; then :
22728   enableval=$enable_backtrace; want_backtrace="$enableval"
22729 else
22730   want_backtrace="yes"
22731 fi
22732
22733 case $want_backtrace in
22734 yes)
22735         ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
22736         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737 /* end confdefs.h.  */
22738 #include <execinfo.h>
22739 int
22740 main ()
22741 {
22742 return (backtrace((void **)0, 0));
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 if ac_fn_c_try_link "$LINENO"; then :
22748
22749 $as_echo "#define HAVE_LIBCTRACE /**/" >>confdefs.h
22750
22751 fi
22752 rm -f core conftest.err conftest.$ac_objext \
22753     conftest$ac_exeext conftest.$ac_ext
22754         ;;
22755 *)
22756         ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
22757         ;;
22758 esac
22759
22760
22761 # Check whether --enable-symtable was given.
22762 if test "${enable_symtable+set}" = set; then :
22763   enableval=$enable_symtable; want_symtable="$enableval"
22764 else
22765   want_symtable="minimal"
22766 fi
22767
22768 case $want_symtable in
22769 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
22770         if test "$PERL" = ""
22771         then
22772                 as_fn_error $? "Internal symbol table requires perl but no perl is found.
22773 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
22774         fi
22775         if test "$use_libtool" = "yes"; then
22776                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
22777 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
22778         else
22779                 # we generate the internal symbol table only for those systems
22780                 # known to work to avoid unexpected build failure.  Also, warn
22781                 # about unsupported systems when the feature is enabled
22782                 #  manually.
22783                 case $host_os in
22784                 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
22785                         MKSYMTBL_PROGRAM="$PERL"
22786                         if test $want_symtable = all; then
22787                                 ALWAYS_MAKE_SYMTABLE="yes"
22788                         fi
22789                         ;;
22790                 *)
22791                         if test $want_symtable = yes -o $want_symtable = all
22792                         then
22793                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
22794 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
22795                         fi
22796                 esac
22797         fi
22798         ;;
22799 *)
22800         ;;
22801 esac
22802
22803
22804
22805 #
22806 # File name extension for static archive files, for those few places
22807 # where they are treated differently from dynamic ones.
22808 #
22809 SA=a
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821 #
22822 # build exportable DNS library?
22823 #
22824 # Check whether --enable-exportlib was given.
22825 if test "${enable_exportlib+set}" = set; then :
22826   enableval=$enable_exportlib;
22827 fi
22828
22829 case "$enable_exportlib" in
22830         yes)
22831                 gmake=
22832                 for x in gmake gnumake make; do
22833                         if $x --version 2>/dev/null | grep GNU > /dev/null; then
22834                                 gmake=$x
22835                                 break;
22836                         fi
22837                 done
22838                 if test -z "$gmake"; then
22839                         as_fn_error $? "exportlib requires GNU make.  Install it or disable the feature." "$LINENO" 5
22840                 fi
22841                 LIBEXPORT=lib/export
22842
22843                 BIND9_CO_RULE="%.$O:  \${srcdir}/%.c"
22844                 ;;
22845         no|*)
22846                 BIND9_CO_RULE=".c.$O:"
22847                 ;;
22848 esac
22849
22850
22851
22852 # Check whether --with-export-libdir was given.
22853 if test "${with_export_libdir+set}" = set; then :
22854   withval=$with_export_libdir; export_libdir="$withval"
22855 fi
22856
22857 if test -z "$export_libdir"; then
22858         export_libdir="\${exec_prefix}/lib/bind9/"
22859 fi
22860
22861
22862
22863 # Check whether --with-export-includedir was given.
22864 if test "${with_export_includedir+set}" = set; then :
22865   withval=$with_export_includedir; export_includedir="$withval"
22866 fi
22867
22868 if test -z "$export_includedir"; then
22869         export_includedir="\${prefix}/include/bind9/"
22870 fi
22871
22872
22873 #
22874 # Here begins a very long section to determine the system's networking
22875 # capabilities.  The order of the tests is significant.
22876 #
22877
22878 #
22879 # IPv6
22880 #
22881 # Check whether --enable-ipv6 was given.
22882 if test "${enable_ipv6+set}" = set; then :
22883   enableval=$enable_ipv6;
22884 fi
22885
22886
22887 case "$enable_ipv6" in
22888         yes|''|autodetect)
22889                 $as_echo "#define WANT_IPV6 1" >>confdefs.h
22890
22891                 ;;
22892         no)
22893                 ;;
22894 esac
22895
22896 #
22897 # We do the IPv6 compilation checking after libtool so that we can put
22898 # the right suffix on the files.
22899 #
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
22901 $as_echo_n "checking for IPv6 structures... " >&6; }
22902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h.  */
22904
22905 #include <sys/types.h>
22906 #include <sys/socket.h>
22907 #include <netinet/in.h>
22908 int
22909 main ()
22910 {
22911 struct sockaddr_in6 sin6; return (0);
22912   ;
22913   return 0;
22914 }
22915 _ACEOF
22916 if ac_fn_c_try_compile "$LINENO"; then :
22917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22918 $as_echo "yes" >&6; }
22919          found_ipv6=yes
22920 else
22921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22922 $as_echo "no" >&6; }
22923          found_ipv6=no
22924 fi
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926
22927 #
22928 # See whether IPv6 support is provided via a Kame add-on.
22929 # This is done before other IPv6 linking tests to LIBS is properly set.
22930 #
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
22932 $as_echo_n "checking for Kame IPv6 support... " >&6; }
22933
22934 # Check whether --with-kame was given.
22935 if test "${with_kame+set}" = set; then :
22936   withval=$with_kame; use_kame="$withval"
22937 else
22938   use_kame="no"
22939 fi
22940
22941
22942 case "$use_kame" in
22943         no)
22944                 ;;
22945         yes)
22946                 kame_path=/usr/local/v6
22947                 ;;
22948         *)
22949                 kame_path="$use_kame"
22950                 ;;
22951 esac
22952
22953 case "$use_kame" in
22954         no)
22955                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22957                 ;;
22958         *)
22959                 if test -f $kame_path/lib/libinet6.a; then
22960                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
22961 $as_echo "$kame_path/lib/libinet6.a" >&6; }
22962                         LIBS="-L$kame_path/lib -linet6 $LIBS"
22963                 else
22964                         as_fn_error $? "$kame_path/lib/libinet6.a not found.
22965
22966 Please choose the proper path with the following command:
22967
22968     configure --with-kame=PATH
22969 " "$LINENO" 5
22970                 fi
22971                 ;;
22972 esac
22973
22974 #
22975 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
22976 # Including it on Kame-using platforms is very bad, though, because
22977 # Kame uses #error against direct inclusion.   So include it on only
22978 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
22979 # This is done before the in6_pktinfo check because that's what
22980 # netinet6/in6.h is needed for.
22981 #
22982
22983 case "$host" in
22984 *-bsdi4.[01]*)
22985         ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
22986         LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
22987         isc_netinet6in6_hack="#include <netinet6/in6.h>"
22988         ;;
22989 *)
22990         ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
22991         LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
22992         isc_netinet6in6_hack=""
22993         ;;
22994 esac
22995
22996
22997 #
22998 # This is similar to the netinet6/in6.h issue.
22999 #
23000 case "$host" in
23001 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23002         # UnixWare
23003         ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
23004         LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
23005         ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
23006         isc_netinetin6_hack="#include <netinet/in6.h>"
23007         ;;
23008 *)
23009         ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
23010         LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
23011         ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
23012         isc_netinetin6_hack=""
23013         ;;
23014 esac
23015
23016 #
23017 # Now delve deeper into the suitability of the IPv6 support.
23018 #
23019 case "$found_ipv6" in
23020         yes)
23021                 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
23022                 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
23023
23024                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_addr" >&5
23025 $as_echo_n "checking for in6_addr... " >&6; }
23026                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h.  */
23028
23029 #include <sys/types.h>
23030 #include <sys/socket.h>
23031 #include <netinet/in.h>
23032 $isc_netinetin6_hack
23033 $isc_netinet6in6_hack
23034
23035 int
23036 main ()
23037 {
23038 struct in6_addr in6; return (0);
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 if ac_fn_c_try_compile "$LINENO"; then :
23044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23045 $as_echo "yes" >&6; }
23046                  ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
23047                  LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
23048                  isc_in_addr6_hack=""
23049 else
23050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23051 $as_echo "no" >&6; }
23052                  ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
23053                  LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
23054                  isc_in_addr6_hack="#define in6_addr in_addr6"
23055 fi
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057
23058                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
23059 $as_echo_n "checking for in6addr_any... " >&6; }
23060                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h.  */
23062
23063 #include <sys/types.h>
23064 #include <sys/socket.h>
23065 #include <netinet/in.h>
23066 $isc_netinetin6_hack
23067 $isc_netinet6in6_hack
23068 $isc_in_addr6_hack
23069
23070 int
23071 main ()
23072 {
23073 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
23074   ;
23075   return 0;
23076 }
23077 _ACEOF
23078 if ac_fn_c_try_link "$LINENO"; then :
23079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23080 $as_echo "yes" >&6; }
23081                          ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
23082                          LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
23083 else
23084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23085 $as_echo "no" >&6; }
23086                          ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
23087                          LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
23088 fi
23089 rm -f core conftest.err conftest.$ac_objext \
23090     conftest$ac_exeext conftest.$ac_ext
23091
23092                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_loopback" >&5
23093 $as_echo_n "checking for in6addr_loopback... " >&6; }
23094                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h.  */
23096
23097 #include <sys/types.h>
23098 #include <sys/socket.h>
23099 #include <netinet/in.h>
23100 $isc_netinetin6_hack
23101 $isc_netinet6in6_hack
23102 $isc_in_addr6_hack
23103
23104 int
23105 main ()
23106 {
23107 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
23108   ;
23109   return 0;
23110 }
23111 _ACEOF
23112 if ac_fn_c_try_link "$LINENO"; then :
23113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23114 $as_echo "yes" >&6; }
23115                          ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
23116                          LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
23117 else
23118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23119 $as_echo "no" >&6; }
23120                          ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
23121                          LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
23122 fi
23123 rm -f core conftest.err conftest.$ac_objext \
23124     conftest$ac_exeext conftest.$ac_ext
23125
23126                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin6_scope_id in struct sockaddr_in6" >&5
23127 $as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
23128                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h.  */
23130
23131 #include <sys/types.h>
23132 #include <sys/socket.h>
23133 #include <netinet/in.h>
23134 $isc_netinetin6_hack
23135 $isc_netinet6in6_hack
23136
23137 int
23138 main ()
23139 {
23140 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
23141   ;
23142   return 0;
23143 }
23144 _ACEOF
23145 if ac_fn_c_try_compile "$LINENO"; then :
23146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23147 $as_echo "yes" >&6; }
23148                          ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
23149                          result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
23150 else
23151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152 $as_echo "no" >&6; }
23153                          ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
23154                          result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
23155 fi
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157                 LWRES_HAVE_SIN6_SCOPE_ID="$result"
23158
23159                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
23160 $as_echo_n "checking for in6_pktinfo... " >&6; }
23161                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h.  */
23163
23164 #include <sys/types.h>
23165 #include <sys/socket.h>
23166 #include <netinet/in.h>
23167 $isc_netinetin6_hack
23168 $isc_netinet6in6_hack
23169
23170 int
23171 main ()
23172 {
23173 struct in6_pktinfo xyzzy; return (0);
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 if ac_fn_c_try_compile "$LINENO"; then :
23179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23180 $as_echo "yes" >&6; }
23181                          ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
23182 else
23183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- disabling runtime ipv6 support" >&5
23184 $as_echo "no -- disabling runtime ipv6 support" >&6; }
23185                          ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23186 fi
23187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23188                 ;;
23189         no)
23190                 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
23191                 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
23192                 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
23193                 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
23194                 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
23195                 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
23196                 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
23197                 ISC_IPV6_H="ipv6.h"
23198                 ISC_IPV6_O="ipv6.$O"
23199                 ISC_ISCIPV6_O="unix/ipv6.$O"
23200                 ISC_IPV6_C="ipv6.c"
23201                 ;;
23202 esac
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
23226 $as_echo_n "checking for struct if_laddrreq... " >&6; }
23227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228 /* end confdefs.h.  */
23229
23230 #include <sys/types.h>
23231 #include <net/if6.h>
23232
23233 int
23234 main ()
23235 {
23236  struct if_laddrreq a;
23237   ;
23238   return 0;
23239 }
23240 _ACEOF
23241 if ac_fn_c_try_link "$LINENO"; then :
23242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23243 $as_echo "yes" >&6; }
23244         ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
23245 else
23246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23247 $as_echo "no" >&6; }
23248         ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
23249 fi
23250 rm -f core conftest.err conftest.$ac_objext \
23251     conftest$ac_exeext conftest.$ac_ext
23252
23253
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
23255 $as_echo_n "checking for struct if_laddrconf... " >&6; }
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h.  */
23258
23259 #include <sys/types.h>
23260 #include <net/if6.h>
23261
23262 int
23263 main ()
23264 {
23265  struct if_laddrconf a;
23266   ;
23267   return 0;
23268 }
23269 _ACEOF
23270 if ac_fn_c_try_link "$LINENO"; then :
23271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23272 $as_echo "yes" >&6; }
23273         ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
23274 else
23275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23277         ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
23278 fi
23279 rm -f core conftest.err conftest.$ac_objext \
23280     conftest$ac_exeext conftest.$ac_ext
23281
23282
23283 #
23284 # Check for network functions that are often missing.  We do this
23285 # after the libtool checking, so we can put the right suffix on
23286 # the files.  It also needs to come after checking for a Kame add-on,
23287 # which provides some (all?) of the desired functions.
23288 #
23289
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop with IPv6 support" >&5
23291 $as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
23292 if test "$cross_compiling" = yes; then :
23293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming inet_ntop needed" >&5
23294 $as_echo "assuming inet_ntop needed" >&6; }
23295         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23296         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23297         ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23298 else
23299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23300 /* end confdefs.h.  */
23301
23302 #include <sys/types.h>
23303 #include <sys/socket.h>
23304 #include <netinet/in.h>
23305 #include <arpa/inet.h>
23306 main() {
23307 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
23308 _ACEOF
23309 if ac_fn_c_try_run "$LINENO"; then :
23310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311 $as_echo "yes" >&6; }
23312         ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
23313 else
23314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23315 $as_echo "no" >&6; }
23316         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
23317         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
23318         ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
23319 fi
23320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23321   conftest.$ac_objext conftest.beam conftest.$ac_ext
23322 fi
23323
23324
23325
23326 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
23327 # addresses with less than four octets, like "1.2.3".  Also leading
23328 # zeros should also be rejected.
23329
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_pton with IPv6 support" >&5
23331 $as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
23332 if test "$cross_compiling" = yes; then :
23333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform has working inet_pton" >&5
23334 $as_echo "assuming target platform has working inet_pton" >&6; }
23335         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23336 else
23337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h.  */
23339
23340 #include <sys/types.h>
23341 #include <sys/socket.h>
23342 #include <netinet/in.h>
23343 #include <arpa/inet.h>
23344 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
23345                              inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
23346                              (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
23347 _ACEOF
23348 if ac_fn_c_try_run "$LINENO"; then :
23349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23350 $as_echo "yes" >&6; }
23351         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
23352 else
23353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23354 $as_echo "no" >&6; }
23355         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
23356         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
23357         ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
23358 fi
23359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23360   conftest.$ac_objext conftest.beam conftest.$ac_ext
23361 fi
23362
23363
23364
23365
23366
23367 #
23368 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
23369 #
23370 case "$host" in
23371         *-dec-osf*)
23372                 # Turn on 4.4BSD style sa_len support.
23373                 $as_echo "#define _SOCKADDR_LEN 1" >>confdefs.h
23374
23375                 ;;
23376 esac
23377
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len in struct sockaddr" >&5
23379 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
23380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381 /* end confdefs.h.  */
23382
23383 #include <sys/types.h>
23384 #include <sys/socket.h>
23385 int
23386 main ()
23387 {
23388 struct sockaddr sa; sa.sa_len = 0; return (0);
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 if ac_fn_c_try_compile "$LINENO"; then :
23394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23395 $as_echo "yes" >&6; }
23396         ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
23397         LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
23398 else
23399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23400 $as_echo "no" >&6; }
23401         ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
23402         LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
23403 fi
23404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405
23406
23407
23408 #
23409 # Look for a 4.4BSD or 4.3BSD struct msghdr
23410 #
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct msghdr flavor" >&5
23412 $as_echo_n "checking for struct msghdr flavor... " >&6; }
23413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23414 /* end confdefs.h.  */
23415
23416 #include <sys/types.h>
23417 #include <sys/socket.h>
23418 int
23419 main ()
23420 {
23421 struct msghdr msg; msg.msg_flags = 0; return (0);
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 if ac_fn_c_try_compile "$LINENO"; then :
23427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.4BSD" >&5
23428 $as_echo "4.4BSD" >&6; }
23429         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
23430 else
23431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.3BSD" >&5
23432 $as_echo "4.3BSD" >&6; }
23433         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
23434 fi
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436
23437
23438 #
23439 # Look for in_port_t.
23440 #
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_port_t" >&5
23442 $as_echo_n "checking for type in_port_t... " >&6; }
23443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23444 /* end confdefs.h.  */
23445
23446 #include <sys/types.h>
23447 #include <netinet/in.h>
23448 int
23449 main ()
23450 {
23451 in_port_t port = 25; return (0);
23452   ;
23453   return 0;
23454 }
23455 _ACEOF
23456 if ac_fn_c_try_compile "$LINENO"; then :
23457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23458 $as_echo "yes" >&6; }
23459         ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
23460 else
23461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23462 $as_echo "no" >&6; }
23463         ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
23464 fi
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466
23467
23468 #
23469 # Check for addrinfo
23470 #
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
23472 $as_echo_n "checking for struct addrinfo... " >&6; }
23473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23474 /* end confdefs.h.  */
23475
23476 #include <netdb.h>
23477 int
23478 main ()
23479 {
23480 struct addrinfo a; return (0);
23481   ;
23482   return 0;
23483 }
23484 _ACEOF
23485 if ac_fn_c_try_compile "$LINENO"; then :
23486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23487 $as_echo "yes" >&6; }
23488         ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
23489         ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
23490         $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
23491
23492 else
23493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23494 $as_echo "no" >&6; }
23495         ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
23496         ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
23497 fi
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499
23500
23501
23502 #
23503 # Check for rrsetinfo
23504 #
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rrsetinfo" >&5
23506 $as_echo_n "checking for struct rrsetinfo... " >&6; }
23507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508 /* end confdefs.h.  */
23509
23510 #include <netdb.h>
23511 int
23512 main ()
23513 {
23514 struct rrsetinfo r; return (0);
23515   ;
23516   return 0;
23517 }
23518 _ACEOF
23519 if ac_fn_c_try_compile "$LINENO"; then :
23520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23521 $as_echo "yes" >&6; }
23522         ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
23523 else
23524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23525 $as_echo "no" >&6; }
23526         ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
23527 fi
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529
23530
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int sethostent" >&5
23532 $as_echo_n "checking for int sethostent... " >&6; }
23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534 /* end confdefs.h.  */
23535
23536 #include <netdb.h>
23537 int
23538 main ()
23539 {
23540 int i = sethostent(0); return(0);
23541   ;
23542   return 0;
23543 }
23544 _ACEOF
23545 if ac_fn_c_try_compile "$LINENO"; then :
23546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23547 $as_echo "yes" >&6; }
23548         ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
23549 else
23550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23551 $as_echo "no" >&6; }
23552         ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
23553 fi
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555
23556
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endhostent" >&5
23558 $as_echo_n "checking for int endhostent... " >&6; }
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h.  */
23561
23562 #include <netdb.h>
23563 int
23564 main ()
23565 {
23566 int i = endhostent(); return(0);
23567   ;
23568   return 0;
23569 }
23570 _ACEOF
23571 if ac_fn_c_try_compile "$LINENO"; then :
23572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23573 $as_echo "yes" >&6; }
23574         ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
23575 else
23576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23577 $as_echo "no" >&6; }
23578         ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
23579 fi
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581
23582
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnetbyaddr(in_addr_t, ...)" >&5
23584 $as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; }
23585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23586 /* end confdefs.h.  */
23587
23588 #include <netdb.h>
23589 struct netent *getnetbyaddr(in_addr_t, int);
23590 int
23591 main ()
23592 {
23593
23594   ;
23595   return 0;
23596 }
23597 _ACEOF
23598 if ac_fn_c_try_compile "$LINENO"; then :
23599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23600 $as_echo "yes" >&6; }
23601         ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
23602 else
23603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23604 $as_echo "no" >&6; }
23605         ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
23606 fi
23607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23608
23609
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int setnetent" >&5
23611 $as_echo_n "checking for int setnetent... " >&6; }
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h.  */
23614
23615 #include <netdb.h>
23616 int
23617 main ()
23618 {
23619 int i = setnetent(0); return(0);
23620   ;
23621   return 0;
23622 }
23623 _ACEOF
23624 if ac_fn_c_try_compile "$LINENO"; then :
23625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23626 $as_echo "yes" >&6; }
23627         ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
23628 else
23629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23630 $as_echo "no" >&6; }
23631         ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
23632 fi
23633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23634
23635
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int endnetent" >&5
23637 $as_echo_n "checking for int endnetent... " >&6; }
23638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h.  */
23640
23641 #include <netdb.h>
23642 int
23643 main ()
23644 {
23645 int i = endnetent(); return(0);
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 if ac_fn_c_try_compile "$LINENO"; then :
23651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23652 $as_echo "yes" >&6; }
23653         ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
23654 else
23655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23656 $as_echo "no" >&6; }
23657         ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
23658 fi
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660
23661
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr(const void *, size_t, ...)" >&5
23663 $as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; }
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h.  */
23666
23667 #include <netdb.h>
23668 struct hostent *gethostbyaddr(const void *, size_t, int);
23669 int
23670 main ()
23671 {
23672 return(0);
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 if ac_fn_c_try_compile "$LINENO"; then :
23678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23679 $as_echo "yes" >&6; }
23680         ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
23681 else
23682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23683 $as_echo "no" >&6; }
23684         ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
23685 fi
23686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687
23688
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
23690 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692 /* end confdefs.h.  */
23693
23694 #include <netdb.h>
23695 int
23696 main ()
23697 {
23698 h_errno = 1; return(0);
23699   ;
23700   return 0;
23701 }
23702 _ACEOF
23703 if ac_fn_c_try_compile "$LINENO"; then :
23704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23705 $as_echo "yes" >&6; }
23706         ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
23707 else
23708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23709 $as_echo "no" >&6; }
23710         ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
23711 fi
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23713
23714
23715 #
23716 # Sadly, the definitions of system-supplied getnameinfo(3) vary.  Try to catch
23717 # known variations here:
23718 #
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo prototype definitions" >&5
23720 $as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h.  */
23723
23724 #include <sys/types.h>
23725 #include <sys/socket.h>
23726 #include <netdb.h>
23727 int getnameinfo(const struct sockaddr *, socklen_t, char *,
23728                 socklen_t, char *, socklen_t, unsigned int);
23729 int
23730 main ()
23731 {
23732  return (0);
23733   ;
23734   return 0;
23735 }
23736 _ACEOF
23737 if ac_fn_c_try_compile "$LINENO"; then :
23738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t for buflen; u_int for flags" >&5
23739 $as_echo "socklen_t for buflen; u_int for flags" >&6; }
23740
23741 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
23742
23743
23744 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T unsigned int" >>confdefs.h
23745
23746 else
23747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h.  */
23749
23750 #include <sys/types.h>
23751 #include <sys/socket.h>
23752 #include <netdb.h>
23753 int getnameinfo(const struct sockaddr *, socklen_t, char *,
23754                 size_t, char *, size_t, int);
23755 int
23756 main ()
23757 {
23758  return (0);
23759   ;
23760   return 0;
23761 }
23762 _ACEOF
23763 if ac_fn_c_try_compile "$LINENO"; then :
23764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t for buflen; int for flags" >&5
23765 $as_echo "size_t for buflen; int for flags" >&6; }
23766          $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T size_t" >>confdefs.h
23767
23768          $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
23769
23770 else
23771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
23772 $as_echo "not match any subspecies; assume standard definition" >&6; }
23773 $as_echo "#define IRS_GETNAMEINFO_BUFLEN_T socklen_t" >>confdefs.h
23774
23775 $as_echo "#define IRS_GETNAMEINFO_FLAGS_T int" >>confdefs.h
23776
23777 fi
23778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23779 fi
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781
23782 #
23783 # ...and same for gai_strerror().
23784 #
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror prototype definitions" >&5
23786 $as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h.  */
23789
23790 #include <sys/types.h>
23791 #include <sys/socket.h>
23792 #include <netdb.h>
23793 char *gai_strerror(int ecode);
23794 int
23795 main ()
23796 {
23797  return (0);
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 if ac_fn_c_try_compile "$LINENO"; then :
23803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: returning char *" >&5
23804 $as_echo "returning char *" >&6; }
23805
23806 $as_echo "#define IRS_GAISTRERROR_RETURN_T char *" >>confdefs.h
23807
23808 else
23809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not match any subspecies; assume standard definition" >&5
23810 $as_echo "not match any subspecies; assume standard definition" >&6; }
23811 $as_echo "#define IRS_GAISTRERROR_RETURN_T const char *" >>confdefs.h
23812
23813 fi
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23815
23816 ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
23817 if test "x$ac_cv_func_getipnodebyname" = x""yes; then :
23818   ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
23819 else
23820   ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
23821 fi
23822
23823 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
23824 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
23825   ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
23826 else
23827   ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
23828 fi
23829
23830 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
23831 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
23832   ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
23833         $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
23834
23835 else
23836   ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
23837 fi
23838
23839 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
23840 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
23841   $as_echo "#define HAVE_GAISTRERROR 1" >>confdefs.h
23842
23843 fi
23844
23845
23846
23847
23848
23849
23850 # Check whether --enable-getifaddrs was given.
23851 if test "${enable_getifaddrs+set}" = set; then :
23852   enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
23853 else
23854   want_getifaddrs="yes"
23855 fi
23856
23857
23858 #
23859 # This interface iteration code for getifaddrs() will fall back to using
23860 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
23861 # addresses.
23862 #
23863 case $want_getifaddrs in
23864 glibc)
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
23866 $as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
23867 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
23868 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
23869   $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
23870
23871 fi
23872
23873 ;;
23874 yes)
23875 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
23876 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
23877   $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
23878
23879 fi
23880
23881 ;;
23882 no)
23883 ;;
23884 esac
23885
23886 #
23887 # Look for a sysctl call to get the list of network interfaces.
23888 #
23889 case $ac_cv_header_sys_sysctl_h in
23890 yes)
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
23892 $as_echo_n "checking for interface list sysctl... " >&6; }
23893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23894 /* end confdefs.h.  */
23895
23896 #include <sys/param.h>
23897 #include <sys/sysctl.h>
23898 #include <sys/socket.h>
23899 #ifdef NET_RT_IFLIST
23900 found_rt_iflist
23901 #endif
23902
23903 _ACEOF
23904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23905   $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
23906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23907 $as_echo "yes" >&6; }
23908          $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
23909
23910 else
23911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23912 $as_echo "no" >&6; }
23913 fi
23914 rm -f conftest*
23915
23916 ;;
23917 esac
23918
23919 #
23920 # Check for some other useful functions that are not ever-present.
23921 #
23922
23923 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
23924 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
23925 # reportedly defines strsep() without declaring it in <string.h> when
23926 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
23927 # AC_CHECK_FUNC() incorrectly succeeds because it declares
23928 # the function itself.
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correctly declared strsep()" >&5
23930 $as_echo_n "checking for correctly declared strsep()... " >&6; }
23931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h.  */
23933 #include <string.h>
23934 int
23935 main ()
23936 {
23937 char *sp; char *foo = strsep(&sp, ".");
23938   ;
23939   return 0;
23940 }
23941 _ACEOF
23942 if ac_fn_c_try_link "$LINENO"; then :
23943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23944 $as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
23945 else
23946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23947 $as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
23948 fi
23949 rm -f core conftest.err conftest.$ac_objext \
23950     conftest$ac_exeext conftest.$ac_ext
23951
23952
23953 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
23954 if test "x$ac_cv_func_memmove" = x""yes; then :
23955   ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
23956 else
23957   ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
23958 fi
23959
23960
23961
23962 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
23963 if test "x$ac_cv_func_strtoul" = x""yes; then :
23964   ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
23965          LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
23966          GENRANDOMLIB=""
23967 else
23968   ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
23969          LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
23970          GENRANDOMLIB='${ISCLIBS}'
23971 fi
23972
23973
23974
23975
23976
23977 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
23978 if test "x$ac_cv_func_strlcpy" = x""yes; then :
23979   ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
23980 else
23981   ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
23982 fi
23983
23984
23985
23986 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
23987 if test "x$ac_cv_func_strlcat" = x""yes; then :
23988   ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
23989 else
23990   ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
23991 fi
23992
23993
23994
23995 ISC_PRINT_OBJS=
23996 ISC_PRINT_SRCS=
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sprintf" >&5
23998 $as_echo_n "checking sprintf... " >&6; }
23999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000 /* end confdefs.h.  */
24001
24002 #include <stdio.h>
24003
24004 int
24005 main ()
24006 {
24007  char buf[2]; return(*sprintf(buf,"x"));
24008   ;
24009   return 0;
24010 }
24011 _ACEOF
24012 if ac_fn_c_try_compile "$LINENO"; then :
24013
24014 ISC_PRINT_OBJS="print.$O"
24015 ISC_PRINT_SRCS="print.c"
24016 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
24017 LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
24018
24019 else
24020   ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
24021  LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
24022
24023 fi
24024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025
24026
24027
24028 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
24029 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
24030   ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
24031          LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
24032 else
24033   ISC_PRINT_OBJS="print.$O"
24034          ISC_PRINT_SRCS="print.c"
24035          ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
24036          LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
24037 fi
24038
24039
24040
24041 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
24042 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
24043
24044 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
24045 if test "x$ac_cv_func_strerror" = x""yes; then :
24046   $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
24047
24048 fi
24049
24050
24051
24052
24053
24054 #
24055 # Use our own SPNEGO implementation?
24056 #
24057 # Check whether --enable-isc-spnego was given.
24058 if test "${enable_isc_spnego+set}" = set; then :
24059   enableval=$enable_isc_spnego;
24060 fi
24061
24062
24063 if test -n "$USE_GSSAPI"
24064 then
24065         case "$enable_isc_spnego" in
24066                 yes|'')
24067                         USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
24068                         DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
24069                         DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
24070                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
24071 $as_echo "using SPNEGO from lib/dns" >&6; }
24072                         ;;
24073                 no)
24074                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
24075 $as_echo "using SPNEGO from GSSAPI library" >&6; }
24076                         ;;
24077         esac
24078 fi
24079
24080
24081
24082
24083
24084
24085 # Determine the printf format characters to use when printing
24086 # values of type isc_int64_t. This will normally be "ll", but where
24087 # the compiler treats "long long" as a alias for "long" and printf
24088 # doesn't know about "long long" use "l".  Hopefully the sprintf
24089 # will produce a inconsistent result in the later case.  If the compiler
24090 # fails due to seeing "%lld" we fall back to "l".
24091 #
24092 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
24093 # %ld even for (long long)/
24094 #
24095 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
24096 # configure on Win32.
24097 #
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format modifier for 64-bit integers" >&5
24099 $as_echo_n "checking printf format modifier for 64-bit integers... " >&6; }
24100 if test "$cross_compiling" = yes; then :
24101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming target platform uses ll" >&5
24102 $as_echo "assuming target platform uses ll" >&6; }
24103         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24104         LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
24105 else
24106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107 /* end confdefs.h.  */
24108
24109 #include <stdio.h>
24110 main() {
24111         long long int j = 0;
24112         char buf[100];
24113         buf[0] = 0;
24114         sprintf(buf, "%lld", j);
24115         exit((sizeof(long long int) != sizeof(long int))? 0 :
24116              (strcmp(buf, "0") != 0));
24117 }
24118
24119 _ACEOF
24120 if ac_fn_c_try_run "$LINENO"; then :
24121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ll" >&5
24122 $as_echo "ll" >&6; }
24123         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
24124         LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
24125 else
24126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: l" >&5
24127 $as_echo "l" >&6; }
24128         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
24129         LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
24130 fi
24131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24132   conftest.$ac_objext conftest.beam conftest.$ac_ext
24133 fi
24134
24135
24136
24137
24138 #
24139 # Security Stuff
24140 #
24141 # Note it is very recommended to *not* disable chroot(),
24142 # this is only because chroot() was made obsolete by Posix.
24143 # Check whether --enable-chroot was given.
24144 if test "${enable_chroot+set}" = set; then :
24145   enableval=$enable_chroot;
24146 fi
24147
24148 case "$enable_chroot" in
24149         yes|'')
24150                 for ac_func in chroot
24151 do :
24152   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
24153 if test "x$ac_cv_func_chroot" = x""yes; then :
24154   cat >>confdefs.h <<_ACEOF
24155 #define HAVE_CHROOT 1
24156 _ACEOF
24157
24158 fi
24159 done
24160
24161                 ;;
24162         no)
24163                 ;;
24164 esac
24165 # Check whether --enable-linux-caps was given.
24166 if test "${enable_linux_caps+set}" = set; then :
24167   enableval=$enable_linux_caps;
24168 fi
24169
24170 case "$enable_linux_caps" in
24171         yes|'')
24172                 for ac_header in linux/capability.h sys/capability.h
24173 do :
24174   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24175 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24177   cat >>confdefs.h <<_ACEOF
24178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24179 _ACEOF
24180
24181 fi
24182
24183 done
24184
24185                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
24186 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
24187 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
24188   $as_echo_n "(cached) " >&6
24189 else
24190   ac_check_lib_save_LIBS=$LIBS
24191 LIBS="-lcap  $LIBS"
24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h.  */
24194
24195 /* Override any GCC internal prototype to avoid an error.
24196    Use char because int might match the return type of a GCC
24197    builtin and then its argument prototype would still apply.  */
24198 #ifdef __cplusplus
24199 extern "C"
24200 #endif
24201 char cap_set_proc ();
24202 int
24203 main ()
24204 {
24205 return cap_set_proc ();
24206   ;
24207   return 0;
24208 }
24209 _ACEOF
24210 if ac_fn_c_try_link "$LINENO"; then :
24211   ac_cv_lib_cap_cap_set_proc=yes
24212 else
24213   ac_cv_lib_cap_cap_set_proc=no
24214 fi
24215 rm -f core conftest.err conftest.$ac_objext \
24216     conftest$ac_exeext conftest.$ac_ext
24217 LIBS=$ac_check_lib_save_LIBS
24218 fi
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
24220 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
24221 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
24222   cat >>confdefs.h <<_ACEOF
24223 #define HAVE_LIBCAP 1
24224 _ACEOF
24225
24226   LIBS="-lcap $LIBS"
24227
24228 fi
24229
24230                 ;;
24231         no)
24232                 ;;
24233 esac
24234 for ac_header in sys/prctl.h
24235 do :
24236   ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
24237 if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
24238   cat >>confdefs.h <<_ACEOF
24239 #define HAVE_SYS_PRCTL_H 1
24240 _ACEOF
24241
24242 fi
24243
24244 done
24245
24246
24247 for ac_header in sys/un.h
24248 do :
24249   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24250 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24251   cat >>confdefs.h <<_ACEOF
24252 #define HAVE_SYS_UN_H 1
24253 _ACEOF
24254  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
24255
24256 else
24257   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
24258
24259 fi
24260
24261 done
24262
24263
24264
24265 case "$host" in
24266 *-solaris*)
24267
24268 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
24269
24270         ;;
24271 *-sunos*)
24272
24273 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
24274
24275         ;;
24276 esac
24277
24278 #
24279 # Time Zone Stuff
24280 #
24281 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
24282 if test "x$ac_cv_func_tzset" = x""yes; then :
24283   $as_echo "#define HAVE_TZSET 1" >>confdefs.h
24284
24285 fi
24286
24287
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
24289 $as_echo_n "checking for optarg declaration... " >&6; }
24290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h.  */
24292
24293 #include <unistd.h>
24294
24295 int
24296 main ()
24297 {
24298 optarg = 0;
24299   ;
24300   return 0;
24301 }
24302 _ACEOF
24303 if ac_fn_c_try_compile "$LINENO"; then :
24304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24305 $as_echo "yes" >&6; }
24306 else
24307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24308 $as_echo "no" >&6; }
24309 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
24310
24311 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
24312
24313 fi
24314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24315
24316 #
24317 # BSD/OS, and perhaps some others, don't define rlim_t.
24318 #
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type rlim_t" >&5
24320 $as_echo_n "checking for type rlim_t... " >&6; }
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h.  */
24323
24324 #include <sys/types.h>
24325 #include <sys/time.h>
24326 #include <sys/resource.h>
24327 int
24328 main ()
24329 {
24330 rlim_t rl = 19671212; return (0);
24331   ;
24332   return 0;
24333 }
24334 _ACEOF
24335 if ac_fn_c_try_compile "$LINENO"; then :
24336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24337 $as_echo "yes" >&6; }
24338  ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
24339 else
24340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24341 $as_echo "no" >&6; }
24342
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of rlim_cur" >&5
24344 $as_echo_n "checking type of rlim_cur... " >&6; }
24345 if test "$cross_compiling" = yes; then :
24346
24347 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot determine type of rlim_cur when cross compiling - assuming long long int" >&5
24349 $as_echo "cannot determine type of rlim_cur when cross compiling - assuming long long int" >&6; }
24350 else
24351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24352 /* end confdefs.h.  */
24353
24354 #include <sys/types.h>
24355 #include <sys/time.h>
24356 #include <sys/resource.h>
24357 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
24358 _ACEOF
24359 if ac_fn_c_try_run "$LINENO"; then :
24360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
24361 $as_echo "int" >&6; }
24362 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
24363 else
24364
24365 if test "$cross_compiling" = yes; then :
24366   as_fn_error $? "this cannot happen" "$LINENO" 5
24367 else
24368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24369 /* end confdefs.h.  */
24370
24371 #include <sys/types.h>
24372 #include <sys/time.h>
24373 #include <sys/resource.h>
24374 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
24375 _ACEOF
24376 if ac_fn_c_try_run "$LINENO"; then :
24377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5
24378 $as_echo "long int" >&6; }
24379 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
24380 else
24381
24382 if test "$cross_compiling" = yes; then :
24383   as_fn_error $? "this cannot happen" "$LINENO" 5
24384 else
24385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24386 /* end confdefs.h.  */
24387
24388 #include <sys/types.h>
24389 #include <sys/time.h>
24390 #include <sys/resource.h>
24391 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
24392 _ACEOF
24393 if ac_fn_c_try_run "$LINENO"; then :
24394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5
24395 $as_echo "long long int" >&6; }
24396 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
24397 else
24398   as_fn_error $? "unable to determine sizeof rlim_cur" "$LINENO" 5
24399
24400 fi
24401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24402   conftest.$ac_objext conftest.beam conftest.$ac_ext
24403 fi
24404
24405
24406 fi
24407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24408   conftest.$ac_objext conftest.beam conftest.$ac_ext
24409 fi
24410
24411
24412 fi
24413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24414   conftest.$ac_objext conftest.beam conftest.$ac_ext
24415 fi
24416
24417
24418 fi
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24420
24421
24422 #
24423 # Older HP-UX doesn't have gettune
24424 #
24425 case "$host" in
24426         *-hp-hpux*)
24427                 for ac_header in sys/dyntune.h
24428 do :
24429   ac_fn_c_check_header_mongrel "$LINENO" "sys/dyntune.h" "ac_cv_header_sys_dyntune_h" "$ac_includes_default"
24430 if test "x$ac_cv_header_sys_dyntune_h" = x""yes; then :
24431   cat >>confdefs.h <<_ACEOF
24432 #define HAVE_SYS_DYNTUNE_H 1
24433 _ACEOF
24434
24435 fi
24436
24437 done
24438
24439                 ;;
24440         *)
24441                 ;;
24442 esac
24443
24444
24445 #
24446 # Compaq TruCluster requires more code for handling cluster IP aliases
24447 #
24448 case "$host" in
24449         *-dec-osf*)
24450                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clua_getaliasaddress in -lclua" >&5
24451 $as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
24452 if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then :
24453   $as_echo_n "(cached) " >&6
24454 else
24455   ac_check_lib_save_LIBS=$LIBS
24456 LIBS="-lclua  $LIBS"
24457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24458 /* end confdefs.h.  */
24459
24460 /* Override any GCC internal prototype to avoid an error.
24461    Use char because int might match the return type of a GCC
24462    builtin and then its argument prototype would still apply.  */
24463 #ifdef __cplusplus
24464 extern "C"
24465 #endif
24466 char clua_getaliasaddress ();
24467 int
24468 main ()
24469 {
24470 return clua_getaliasaddress ();
24471   ;
24472   return 0;
24473 }
24474 _ACEOF
24475 if ac_fn_c_try_link "$LINENO"; then :
24476   ac_cv_lib_clua_clua_getaliasaddress=yes
24477 else
24478   ac_cv_lib_clua_clua_getaliasaddress=no
24479 fi
24480 rm -f core conftest.err conftest.$ac_objext \
24481     conftest$ac_exeext conftest.$ac_ext
24482 LIBS=$ac_check_lib_save_LIBS
24483 fi
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
24485 $as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
24486 if test "x$ac_cv_lib_clua_clua_getaliasaddress" = x""yes; then :
24487   LIBS="-lclua $LIBS"
24488 fi
24489
24490                 ac_fn_c_check_func "$LINENO" "clua_getaliasaddress" "ac_cv_func_clua_getaliasaddress"
24491 if test "x$ac_cv_func_clua_getaliasaddress" = x""yes; then :
24492
24493 $as_echo "#define HAVE_TRUCLUSTER 1" >>confdefs.h
24494
24495 fi
24496
24497                 ;;
24498         *)
24499                 ;;
24500 esac
24501
24502 #
24503 # Some hosts need msg_namelen to match the size of the socket structure.
24504 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
24505 #
24506 case $host in
24507 *os2*|*hp-mpeix*)
24508
24509 $as_echo "#define BROKEN_RECVMSG 1" >>confdefs.h
24510
24511         ;;
24512 esac
24513
24514 #
24515 # Microsoft has their own way of handling shared libraries that requires
24516 # additional qualifiers on extern variables.  Unix systems don't need it.
24517 #
24518
24519 ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
24520
24521 LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
24522
24523 IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
24524
24525 #
24526 # Random remaining OS-specific issues involving compiler warnings.
24527 # XXXDCL print messages to indicate some compensation is being done?
24528 #
24529
24530 ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
24531
24532 case "$host" in
24533         *-aix5.[123].*)
24534                 hack_shutup_pthreadonceinit=yes
24535                 ;;
24536         *-bsdi3.1*)
24537                 hack_shutup_sputaux=yes
24538                 ;;
24539         *-bsdi4.0*)
24540                 hack_shutup_sigwait=yes
24541                 hack_shutup_sputaux=yes
24542                 ;;
24543         *-bsdi4.[12]*)
24544                 hack_shutup_stdargcast=yes
24545                 ;;
24546         *-solaris2.[89])
24547                 hack_shutup_pthreadonceinit=yes
24548                 ;;
24549         *-solaris2.1[0-9])
24550                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h.  */
24552  #include <pthread.h>
24553 int
24554 main ()
24555 {
24556  static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
24557   ;
24558   return 0;
24559 }
24560 _ACEOF
24561 if ac_fn_c_try_compile "$LINENO"; then :
24562   hack_shutup_pthreadonceinit=yes
24563 fi
24564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24565                 ;;
24566 esac
24567
24568 case "$hack_shutup_pthreadonceinit" in
24569         yes)
24570                 #
24571                 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
24572                 #
24573                 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
24574                 ;;
24575 esac
24576
24577 case "$hack_shutup_sigwait" in
24578         yes)
24579                 #
24580                 # Shut up a -Wmissing-prototypes warning for sigwait().
24581                 #
24582                 $as_echo "#define SHUTUP_SIGWAIT 1" >>confdefs.h
24583
24584                 ;;
24585 esac
24586
24587 case "$hack_shutup_sputaux" in
24588         yes)
24589                 #
24590                 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
24591                 #
24592                 $as_echo "#define SHUTUP_SPUTAUX 1" >>confdefs.h
24593
24594                 ;;
24595 esac
24596
24597 case "$hack_shutup_stdargcast" in
24598         yes)
24599                 #
24600                 # Shut up a -Wcast-qual warning from va_start().
24601                 #
24602                 $as_echo "#define SHUTUP_STDARG_CAST 1" >>confdefs.h
24603
24604                 ;;
24605 esac
24606
24607 for ac_header in strings.h
24608 do :
24609   ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
24610 if test "x$ac_cv_header_strings_h" = x""yes; then :
24611   cat >>confdefs.h <<_ACEOF
24612 #define HAVE_STRINGS_H 1
24613 _ACEOF
24614  ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
24615
24616 else
24617   ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
24618
24619 fi
24620
24621 done
24622
24623
24624
24625 #
24626 # Check for if_nametoindex() for IPv6 scoped addresses support
24627 #
24628 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
24629 if test "x$ac_cv_func_if_nametoindex" = x""yes; then :
24630   ac_cv_have_if_nametoindex=yes
24631 else
24632   ac_cv_have_if_nametoindex=no
24633 fi
24634
24635 case $ac_cv_have_if_nametoindex in
24636 no)
24637         case "$host" in
24638         *-hp-hpux*)
24639                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
24640 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
24641 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
24642   $as_echo_n "(cached) " >&6
24643 else
24644   ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lipv6  $LIBS"
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h.  */
24648
24649 /* Override any GCC internal prototype to avoid an error.
24650    Use char because int might match the return type of a GCC
24651    builtin and then its argument prototype would still apply.  */
24652 #ifdef __cplusplus
24653 extern "C"
24654 #endif
24655 char if_nametoindex ();
24656 int
24657 main ()
24658 {
24659 return if_nametoindex ();
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 if ac_fn_c_try_link "$LINENO"; then :
24665   ac_cv_lib_ipv6_if_nametoindex=yes
24666 else
24667   ac_cv_lib_ipv6_if_nametoindex=no
24668 fi
24669 rm -f core conftest.err conftest.$ac_objext \
24670     conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24672 fi
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
24674 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
24675 if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then :
24676   ac_cv_have_if_nametoindex=yes
24677                                 LIBS="-lipv6 $LIBS"
24678 fi
24679
24680         ;;
24681         esac
24682 esac
24683 case $ac_cv_have_if_nametoindex in
24684 yes)
24685         ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
24686         ;;
24687 *)
24688         ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
24689         ;;
24690 esac
24691
24692
24693 for ac_func in nanosleep
24694 do :
24695   ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
24696 if test "x$ac_cv_func_nanosleep" = x""yes; then :
24697   cat >>confdefs.h <<_ACEOF
24698 #define HAVE_NANOSLEEP 1
24699 _ACEOF
24700
24701 fi
24702 done
24703
24704
24705 #
24706 # Machine architecture dependent features
24707 #
24708 # Check whether --enable-atomic was given.
24709 if test "${enable_atomic+set}" = set; then :
24710   enableval=$enable_atomic; enable_atomic="$enableval"
24711 else
24712   enable_atomic="autodetect"
24713 fi
24714
24715 case "$enable_atomic" in
24716         yes|''|autodetect)
24717                 case "$host" in
24718                 powerpc-ibm-aix*)
24719                         if test "X$GCC" = "Xyes"; then
24720                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asm(\"isc\"); works" >&5
24721 $as_echo_n "checking if asm(\"isc\"); works... " >&6; }
24722                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723 /* end confdefs.h.  */
24724
24725 int
24726 main ()
24727 {
24728
24729                                 main() { asm("ics"); exit(0); }
24730
24731   ;
24732   return 0;
24733 }
24734 _ACEOF
24735 if ac_fn_c_try_compile "$LINENO"; then :
24736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24737 $as_echo "yes" >&6; }
24738                                  use_atomic=yes
24739 else
24740
24741                                 saved_cflags="$CFLAGS"
24742                                 CFLAGS="$CFLAGS -Wa,-many"
24743                                 if test "$cross_compiling" = yes; then :
24744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compile, assume yes" >&5
24745 $as_echo "cross compile, assume yes" >&6; }
24746                                  CFLAGS="$saved_cflags"
24747                                  use_atomic=yes
24748 else
24749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24750 /* end confdefs.h.  */
24751
24752                                 main() { asm("ics"); exit(0); }
24753
24754 _ACEOF
24755 if ac_fn_c_try_run "$LINENO"; then :
24756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, required -Wa,-many" >&5
24757 $as_echo "yes, required -Wa,-many" >&6; }
24758                                  use_atomic=yes
24759 else
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, use_atomic disabled" >&5
24761 $as_echo "no, use_atomic disabled" >&6; }
24762                                  CFLAGS="$saved_cflags"
24763                                  use_atomic=no
24764 fi
24765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24766   conftest.$ac_objext conftest.beam conftest.$ac_ext
24767 fi
24768
24769
24770
24771 fi
24772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24773                         else
24774                                 use_atomic=yes
24775                         fi
24776                         ;;
24777                 *)
24778                         use_atomic=yes
24779                         ;;
24780                 esac
24781                 ;;
24782         no)
24783                 use_atomic=no
24784                 arch=noatomic
24785                 ;;
24786 esac
24787
24788 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
24789 if test "$use_atomic" = "yes"; then
24790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture type for atomic operations" >&5
24791 $as_echo_n "checking architecture type for atomic operations... " >&6; }
24792         have_atomic=yes         # set default
24793         case "$host" in
24794         i[3456]86-*)
24795                 # XXX: some old x86 architectures actually do not support
24796                 #      (some of) these operations.  Do we need stricter checks?
24797 if test "$cross_compiling" = yes; then :
24798   arch=x86_32
24799 else
24800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24801 /* end confdefs.h.  */
24802
24803 main() {
24804         exit((sizeof(void *) == 8) ? 0 : 1);
24805 }
24806
24807 _ACEOF
24808 if ac_fn_c_try_run "$LINENO"; then :
24809   arch=x86_64
24810                 have_xaddq=yes
24811 else
24812   arch=x86_32
24813 fi
24814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24815   conftest.$ac_objext conftest.beam conftest.$ac_ext
24816 fi
24817
24818         ;;
24819         x86_64-*|amd64-*)
24820 if test "$cross_compiling" = yes; then :
24821   arch=x86_64
24822                have_xaddq=yes
24823 else
24824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825 /* end confdefs.h.  */
24826
24827 main() {
24828        exit((sizeof(void *) == 8) ? 0 : 1);
24829 }
24830
24831 _ACEOF
24832 if ac_fn_c_try_run "$LINENO"; then :
24833   arch=x86_64
24834                have_xaddq=yes
24835 else
24836   arch=x86_32
24837 fi
24838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24839   conftest.$ac_objext conftest.beam conftest.$ac_ext
24840 fi
24841
24842         ;;
24843         alpha*-*)
24844                 arch=alpha
24845         ;;
24846         powerpc-*|powerpc64-*)
24847                 arch=powerpc
24848         ;;
24849         mips-*|mipsel-*|mips64-*|mips64el-*)
24850                 arch=mips
24851         ;;
24852         ia64-*)
24853                 arch=ia64
24854         ;;
24855         *)
24856                 have_atomic=no
24857                 arch=noatomic
24858         ;;
24859         esac
24860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5
24861 $as_echo "$arch" >&6; }
24862 fi
24863
24864 if test "$have_atomic" = "yes"; then
24865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for inline assembly code" >&5
24866 $as_echo_n "checking compiler support for inline assembly code... " >&6; }
24867
24868         compiler=generic
24869         # Check whether the compiler supports the assembly syntax we provide.
24870         if test "X$GCC" = "Xyes"; then
24871                 # GCC's ASM extension always works
24872                 compiler=gcc
24873                 if test $arch = "x86_64"; then
24874                         # We can share the same code for gcc with x86_32
24875                         arch=x86_32
24876                 fi
24877                 if test $arch = "powerpc"; then
24878                         #
24879                         # The MacOS (and maybe others) uses "r0" for register
24880                         # zero. Under linux/ibm it is "0" for register 0.
24881                         # Probe to see if we have a MacOS style assembler.
24882                         #
24883                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for MacOS style assembler syntax" >&5
24884 $as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
24885                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24886 /* end confdefs.h.  */
24887
24888 int
24889 main ()
24890 {
24891
24892                         __asm__ volatile ("li r0, 0x0\n"::);
24893
24894   ;
24895   return 0;
24896 }
24897 _ACEOF
24898 if ac_fn_c_try_compile "$LINENO"; then :
24899
24900                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24901 $as_echo "yes" >&6; }
24902                         compiler="mac"
24903                         ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
24904
24905 else
24906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24907 $as_echo "no" >&6; }
24908 fi
24909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910                 fi
24911         else
24912                 case "$host" in
24913                 alpha*-dec-osf*)
24914                         # Tru64 compiler has its own syntax for inline
24915                         # assembly.
24916                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917 /* end confdefs.h.  */
24918
24919 int
24920 main ()
24921 {
24922
24923 #ifndef __DECC
24924 #error "unexpected compiler"
24925 #endif
24926                                 return (0);
24927   ;
24928   return 0;
24929 }
24930 _ACEOF
24931 if ac_fn_c_try_compile "$LINENO"; then :
24932   compiler=osf
24933 fi
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24935                 ;;
24936                 powerpc-ibm-aix*)
24937                         compiler=aix
24938                 ;;
24939                 esac
24940         fi
24941         case "$compiler" in
24942         gcc)
24943                 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
24944                 ;;
24945         osf)
24946                 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
24947                 ;;
24948         aix)
24949                 ;;
24950         mac)
24951                 ;;
24952         *)
24953                 # See if the generic __asm function works.  If not,
24954                 # we need to disable the atomic operations.
24955                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h.  */
24957
24958 int
24959 main ()
24960 {
24961
24962                                         __asm("nop")
24963
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 if ac_fn_c_try_link "$LINENO"; then :
24969   compiler="standard"
24970                 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
24971 else
24972   compiler="not supported (atomic operations disabled)"
24973                 have_atomic=no
24974                 arch=noatomic
24975 fi
24976 rm -f core conftest.err conftest.$ac_objext \
24977     conftest$ac_exeext conftest.$ac_ext;
24978                 ;;
24979         esac
24980
24981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler" >&5
24982 $as_echo "$compiler" >&6; }
24983 fi
24984
24985 if test "$have_atomic" = "yes"; then
24986         ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
24987         ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
24988         ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
24989 else
24990         ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
24991         ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
24992         ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
24993 fi
24994
24995 if test "$have_xaddq" = "yes"; then
24996         ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
24997 else
24998         ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
24999 fi
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011 ISC_ARCH_DIR=$arch
25012
25013
25014 #
25015 # Activate "rrset-order fixed" or not?
25016 #
25017 # Check whether --enable-fixed-rrset was given.
25018 if test "${enable_fixed_rrset+set}" = set; then :
25019   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
25020 else
25021   enable_fixed="no"
25022 fi
25023
25024 case "$enable_fixed" in
25025         yes)
25026
25027 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
25028
25029                 ;;
25030         no)
25031                 ;;
25032         *)
25033                 ;;
25034 esac
25035
25036 #
25037 # Activate "filter-aaaa-on-v4" or not?
25038 #
25039 # Check whether --enable-filter-aaaa was given.
25040 if test "${enable_filter_aaaa+set}" = set; then :
25041   enableval=$enable_filter_aaaa; enable_filter="$enableval"
25042 else
25043   enable_filter="no"
25044 fi
25045
25046 case "$enable_filter" in
25047         yes)
25048
25049 $as_echo "#define ALLOW_FILTER_AAAA_ON_V4 1" >>confdefs.h
25050
25051                 ;;
25052         no)
25053                 ;;
25054         *)
25055                 ;;
25056 esac
25057
25058 #
25059 #  The following sets up how non-blocking i/o is established.
25060 #  Sunos, cygwin and solaris 2.x (x<5) require special handling.
25061 #
25062 case "$host" in
25063 *-sunos*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
25064 ;;
25065 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
25066 ;;
25067 *-solaris2.[01234])
25068         $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
25069
25070
25071 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
25072
25073         ;;
25074 *)
25075 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
25076
25077         ;;
25078 esac
25079 #
25080 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
25081 # This prevents the source address being set.
25082 #
25083 case "$host" in
25084 *-solaris2.[012345]|*-solaris2.5.1)
25085
25086 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
25087
25088         ;;
25089 esac
25090 #
25091 # The following sections deal with tools used for formatting
25092 # the documentation.  They are all optional, unless you are
25093 # a developer editing the documentation source.
25094 #
25095
25096 #
25097 # Look for TeX.
25098 #
25099
25100 for ac_prog in latex
25101 do
25102   # Extract the first word of "$ac_prog", so it can be a program name with args.
25103 set dummy $ac_prog; ac_word=$2
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25105 $as_echo_n "checking for $ac_word... " >&6; }
25106 if test "${ac_cv_path_LATEX+set}" = set; then :
25107   $as_echo_n "(cached) " >&6
25108 else
25109   case $LATEX in
25110   [\\/]* | ?:[\\/]*)
25111   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
25112   ;;
25113   *)
25114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25115 for as_dir in $PATH
25116 do
25117   IFS=$as_save_IFS
25118   test -z "$as_dir" && as_dir=.
25119     for ac_exec_ext in '' $ac_executable_extensions; do
25120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25121     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
25122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25123     break 2
25124   fi
25125 done
25126   done
25127 IFS=$as_save_IFS
25128
25129   ;;
25130 esac
25131 fi
25132 LATEX=$ac_cv_path_LATEX
25133 if test -n "$LATEX"; then
25134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
25135 $as_echo "$LATEX" >&6; }
25136 else
25137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25138 $as_echo "no" >&6; }
25139 fi
25140
25141
25142   test -n "$LATEX" && break
25143 done
25144 test -n "$LATEX" || LATEX="latex"
25145
25146
25147
25148 for ac_prog in pdflatex
25149 do
25150   # Extract the first word of "$ac_prog", so it can be a program name with args.
25151 set dummy $ac_prog; ac_word=$2
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25153 $as_echo_n "checking for $ac_word... " >&6; }
25154 if test "${ac_cv_path_PDFLATEX+set}" = set; then :
25155   $as_echo_n "(cached) " >&6
25156 else
25157   case $PDFLATEX in
25158   [\\/]* | ?:[\\/]*)
25159   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
25160   ;;
25161   *)
25162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25163 for as_dir in $PATH
25164 do
25165   IFS=$as_save_IFS
25166   test -z "$as_dir" && as_dir=.
25167     for ac_exec_ext in '' $ac_executable_extensions; do
25168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25169     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
25170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25171     break 2
25172   fi
25173 done
25174   done
25175 IFS=$as_save_IFS
25176
25177   ;;
25178 esac
25179 fi
25180 PDFLATEX=$ac_cv_path_PDFLATEX
25181 if test -n "$PDFLATEX"; then
25182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
25183 $as_echo "$PDFLATEX" >&6; }
25184 else
25185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25186 $as_echo "no" >&6; }
25187 fi
25188
25189
25190   test -n "$PDFLATEX" && break
25191 done
25192 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
25193
25194
25195
25196 #
25197 # Look for w3m
25198 #
25199
25200 for ac_prog in w3m
25201 do
25202   # Extract the first word of "$ac_prog", so it can be a program name with args.
25203 set dummy $ac_prog; ac_word=$2
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25205 $as_echo_n "checking for $ac_word... " >&6; }
25206 if test "${ac_cv_path_W3M+set}" = set; then :
25207   $as_echo_n "(cached) " >&6
25208 else
25209   case $W3M in
25210   [\\/]* | ?:[\\/]*)
25211   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
25212   ;;
25213   *)
25214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25215 for as_dir in $PATH
25216 do
25217   IFS=$as_save_IFS
25218   test -z "$as_dir" && as_dir=.
25219     for ac_exec_ext in '' $ac_executable_extensions; do
25220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25221     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
25222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25223     break 2
25224   fi
25225 done
25226   done
25227 IFS=$as_save_IFS
25228
25229   ;;
25230 esac
25231 fi
25232 W3M=$ac_cv_path_W3M
25233 if test -n "$W3M"; then
25234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
25235 $as_echo "$W3M" >&6; }
25236 else
25237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25238 $as_echo "no" >&6; }
25239 fi
25240
25241
25242   test -n "$W3M" && break
25243 done
25244 test -n "$W3M" || W3M="w3m"
25245
25246
25247
25248 #
25249 # Look for xsltproc (libxslt)
25250 #
25251
25252 # Extract the first word of "xsltproc", so it can be a program name with args.
25253 set dummy xsltproc; ac_word=$2
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25255 $as_echo_n "checking for $ac_word... " >&6; }
25256 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
25257   $as_echo_n "(cached) " >&6
25258 else
25259   case $XSLTPROC in
25260   [\\/]* | ?:[\\/]*)
25261   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
25262   ;;
25263   *)
25264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25265 for as_dir in $PATH
25266 do
25267   IFS=$as_save_IFS
25268   test -z "$as_dir" && as_dir=.
25269     for ac_exec_ext in '' $ac_executable_extensions; do
25270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25271     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
25272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25273     break 2
25274   fi
25275 done
25276   done
25277 IFS=$as_save_IFS
25278
25279   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
25280   ;;
25281 esac
25282 fi
25283 XSLTPROC=$ac_cv_path_XSLTPROC
25284 if test -n "$XSLTPROC"; then
25285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
25286 $as_echo "$XSLTPROC" >&6; }
25287 else
25288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25289 $as_echo "no" >&6; }
25290 fi
25291
25292
25293
25294
25295 #
25296 # Look for xmllint (libxml2)
25297 #
25298
25299 # Extract the first word of "xmllint", so it can be a program name with args.
25300 set dummy xmllint; ac_word=$2
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25302 $as_echo_n "checking for $ac_word... " >&6; }
25303 if test "${ac_cv_path_XMLLINT+set}" = set; then :
25304   $as_echo_n "(cached) " >&6
25305 else
25306   case $XMLLINT in
25307   [\\/]* | ?:[\\/]*)
25308   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
25309   ;;
25310   *)
25311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25312 for as_dir in $PATH
25313 do
25314   IFS=$as_save_IFS
25315   test -z "$as_dir" && as_dir=.
25316     for ac_exec_ext in '' $ac_executable_extensions; do
25317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25318     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
25319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25320     break 2
25321   fi
25322 done
25323   done
25324 IFS=$as_save_IFS
25325
25326   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
25327   ;;
25328 esac
25329 fi
25330 XMLLINT=$ac_cv_path_XMLLINT
25331 if test -n "$XMLLINT"; then
25332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
25333 $as_echo "$XMLLINT" >&6; }
25334 else
25335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25336 $as_echo "no" >&6; }
25337 fi
25338
25339
25340
25341
25342 #
25343 # Look for Doxygen
25344 #
25345
25346 # Extract the first word of "doxygen", so it can be a program name with args.
25347 set dummy doxygen; ac_word=$2
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25349 $as_echo_n "checking for $ac_word... " >&6; }
25350 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
25351   $as_echo_n "(cached) " >&6
25352 else
25353   case $DOXYGEN in
25354   [\\/]* | ?:[\\/]*)
25355   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25356   ;;
25357   *)
25358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25359 for as_dir in $PATH
25360 do
25361   IFS=$as_save_IFS
25362   test -z "$as_dir" && as_dir=.
25363     for ac_exec_ext in '' $ac_executable_extensions; do
25364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25365     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25367     break 2
25368   fi
25369 done
25370   done
25371 IFS=$as_save_IFS
25372
25373   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
25374   ;;
25375 esac
25376 fi
25377 DOXYGEN=$ac_cv_path_DOXYGEN
25378 if test -n "$DOXYGEN"; then
25379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
25380 $as_echo "$DOXYGEN" >&6; }
25381 else
25382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25383 $as_echo "no" >&6; }
25384 fi
25385
25386
25387
25388
25389 #
25390 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
25391 # in a number of directories:
25392 #
25393 #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
25394 #
25395 # If the file FILENAME is found in one of the DIRECTORIES, the shell
25396 # variable VARIABLE is defined to its absolute pathname.  Otherwise,
25397 # it is set to FILENAME, with no directory prefix (that's not terribly
25398 # useful, but looks less confusing in substitutions than leaving it
25399 # empty).  The variable VARIABLE will be substituted into output files.
25400 #
25401
25402
25403
25404 #
25405 # Look for Docbook-XSL stylesheets.  Location probably varies by system.
25406 # If it's not explicitly specified, guess where it might be found, based on
25407 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
25408 # of at the moment).
25409 #
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
25411 $as_echo_n "checking for Docbook-XSL path... " >&6; }
25412
25413 # Check whether --with-docbook-xsl was given.
25414 if test "${with_docbook_xsl+set}" = set; then :
25415   withval=$with_docbook_xsl; docbook_path="$withval"
25416 else
25417   docbook_path="auto"
25418 fi
25419
25420 case "$docbook_path" in
25421 auto)
25422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
25423 $as_echo "auto" >&6; }
25424         docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook"
25425         ;;
25426 *)
25427         docbook_xsl_trees="$withval"
25428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
25429 $as_echo "$docbook_xsl_trees" >&6; }
25430         ;;
25431 esac
25432
25433 #
25434 # Look for stylesheets we need.
25435 #
25436
25437
25438 XSLT_DOCBOOK_STYLE_HTML=""
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
25440 $as_echo_n "checking for html/docbook.xsl... " >&6; }
25441 for d in $docbook_xsl_trees
25442 do
25443         f=$d/html/docbook.xsl
25444         if test -f $f
25445         then
25446                 XSLT_DOCBOOK_STYLE_HTML=$f
25447                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25448 $as_echo "$f" >&6; }
25449                 break
25450         fi
25451 done
25452 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
25453 then
25454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25455 $as_echo "\"not found\"" >&6; };
25456         XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
25457 fi
25458
25459
25460
25461 XSLT_DOCBOOK_STYLE_XHTML=""
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
25463 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
25464 for d in $docbook_xsl_trees
25465 do
25466         f=$d/xhtml/docbook.xsl
25467         if test -f $f
25468         then
25469                 XSLT_DOCBOOK_STYLE_XHTML=$f
25470                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25471 $as_echo "$f" >&6; }
25472                 break
25473         fi
25474 done
25475 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
25476 then
25477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25478 $as_echo "\"not found\"" >&6; };
25479         XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
25480 fi
25481
25482
25483
25484 XSLT_DOCBOOK_STYLE_MAN=""
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
25486 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
25487 for d in $docbook_xsl_trees
25488 do
25489         f=$d/manpages/docbook.xsl
25490         if test -f $f
25491         then
25492                 XSLT_DOCBOOK_STYLE_MAN=$f
25493                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25494 $as_echo "$f" >&6; }
25495                 break
25496         fi
25497 done
25498 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
25499 then
25500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25501 $as_echo "\"not found\"" >&6; };
25502         XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
25503 fi
25504
25505
25506
25507 XSLT_DOCBOOK_CHUNK_HTML=""
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
25509 $as_echo_n "checking for html/chunk.xsl... " >&6; }
25510 for d in $docbook_xsl_trees
25511 do
25512         f=$d/html/chunk.xsl
25513         if test -f $f
25514         then
25515                 XSLT_DOCBOOK_CHUNK_HTML=$f
25516                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25517 $as_echo "$f" >&6; }
25518                 break
25519         fi
25520 done
25521 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
25522 then
25523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25524 $as_echo "\"not found\"" >&6; };
25525         XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
25526 fi
25527
25528
25529
25530 XSLT_DOCBOOK_CHUNK_XHTML=""
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
25532 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
25533 for d in $docbook_xsl_trees
25534 do
25535         f=$d/xhtml/chunk.xsl
25536         if test -f $f
25537         then
25538                 XSLT_DOCBOOK_CHUNK_XHTML=$f
25539                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25540 $as_echo "$f" >&6; }
25541                 break
25542         fi
25543 done
25544 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
25545 then
25546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25547 $as_echo "\"not found\"" >&6; };
25548         XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
25549 fi
25550
25551
25552
25553 XSLT_DOCBOOK_CHUNKTOC_HTML=""
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
25555 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
25556 for d in $docbook_xsl_trees
25557 do
25558         f=$d/html/chunktoc.xsl
25559         if test -f $f
25560         then
25561                 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
25562                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25563 $as_echo "$f" >&6; }
25564                 break
25565         fi
25566 done
25567 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
25568 then
25569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25570 $as_echo "\"not found\"" >&6; };
25571         XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
25572 fi
25573
25574
25575
25576 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
25578 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
25579 for d in $docbook_xsl_trees
25580 do
25581         f=$d/xhtml/chunktoc.xsl
25582         if test -f $f
25583         then
25584                 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
25585                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25586 $as_echo "$f" >&6; }
25587                 break
25588         fi
25589 done
25590 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
25591 then
25592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25593 $as_echo "\"not found\"" >&6; };
25594         XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
25595 fi
25596
25597
25598
25599 XSLT_DOCBOOK_MAKETOC_HTML=""
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
25601 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
25602 for d in $docbook_xsl_trees
25603 do
25604         f=$d/html/maketoc.xsl
25605         if test -f $f
25606         then
25607                 XSLT_DOCBOOK_MAKETOC_HTML=$f
25608                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25609 $as_echo "$f" >&6; }
25610                 break
25611         fi
25612 done
25613 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
25614 then
25615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25616 $as_echo "\"not found\"" >&6; };
25617         XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
25618 fi
25619
25620
25621
25622 XSLT_DOCBOOK_MAKETOC_XHTML=""
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
25624 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
25625 for d in $docbook_xsl_trees
25626 do
25627         f=$d/xhtml/maketoc.xsl
25628         if test -f $f
25629         then
25630                 XSLT_DOCBOOK_MAKETOC_XHTML=$f
25631                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25632 $as_echo "$f" >&6; }
25633                 break
25634         fi
25635 done
25636 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
25637 then
25638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25639 $as_echo "\"not found\"" >&6; };
25640         XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
25641 fi
25642
25643
25644
25645 #
25646 # Same dance for db2latex
25647 #
25648 # No idea where this lives except on FreeBSD.
25649 #
25650
25651 db2latex_xsl_trees="/usr/local/share"
25652
25653 #
25654 # Look for stylesheets we need.
25655 #
25656
25657
25658 XSLT_DB2LATEX_STYLE=""
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/docbook.xsl" >&5
25660 $as_echo_n "checking for db2latex/xsl/docbook.xsl... " >&6; }
25661 for d in $db2latex_xsl_trees
25662 do
25663         f=$d/db2latex/xsl/docbook.xsl
25664         if test -f $f
25665         then
25666                 XSLT_DB2LATEX_STYLE=$f
25667                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
25668 $as_echo "$f" >&6; }
25669                 break
25670         fi
25671 done
25672 if test "X$XSLT_DB2LATEX_STYLE" = "X"
25673 then
25674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
25675 $as_echo "\"not found\"" >&6; };
25676         XSLT_DB2LATEX_STYLE=db2latex/xsl/docbook.xsl
25677 fi
25678
25679
25680
25681 #
25682 # Look for "admonition" image directory.  Can't use NOM_PATH_FILE()
25683 # because it's a directory, so just do the same things, inline.
25684 #
25685
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db2latex/xsl/figures" >&5
25687 $as_echo_n "checking for db2latex/xsl/figures... " >&6; }
25688 for d in $db2latex_xsl_trees
25689 do
25690         dd=$d/db2latex/xsl/figures
25691         if test -d $dd
25692         then
25693                 XSLT_DB2LATEX_ADMONITIONS=$dd
25694                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dd" >&5
25695 $as_echo "$dd" >&6; }
25696                 break
25697         fi
25698 done
25699 if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
25700 then
25701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25702 $as_echo "not found" >&6; }
25703         XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures
25704 fi
25705
25706
25707 #
25708 # IDN support
25709 #
25710
25711 # Check whether --with-idn was given.
25712 if test "${with_idn+set}" = set; then :
25713   withval=$with_idn; use_idn="$withval"
25714 else
25715   use_idn="no"
25716 fi
25717
25718 case "$use_idn" in
25719 yes)
25720         if test X$prefix = XNONE ; then
25721                 idn_path=/usr/local
25722         else
25723                 idn_path=$prefix
25724         fi
25725         ;;
25726 no)
25727         ;;
25728 *)
25729         idn_path="$use_idn"
25730         ;;
25731 esac
25732
25733 iconvinc=
25734 iconvlib=
25735
25736 # Check whether --with-libiconv was given.
25737 if test "${with_libiconv+set}" = set; then :
25738   withval=$with_libiconv; use_libiconv="$withval"
25739 else
25740   use_libiconv="no"
25741 fi
25742
25743 case "$use_libiconv" in
25744 yes)
25745         if test X$prefix = XNONE ; then
25746                 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
25747         else
25748                 iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
25749         fi
25750         ;;
25751 no)
25752         iconvlib=
25753         ;;
25754 *)
25755         iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
25756         ;;
25757 esac
25758
25759
25760 # Check whether --with-iconv was given.
25761 if test "${with_iconv+set}" = set; then :
25762   withval=$with_iconv; iconvlib="$withval"
25763 fi
25764
25765 case "$iconvlib" in
25766 no)
25767         iconvlib=
25768         ;;
25769 yes)
25770         iconvlib=-liconv
25771         ;;
25772 esac
25773
25774
25775 # Check whether --with-idnlib was given.
25776 if test "${with_idnlib+set}" = set; then :
25777   withval=$with_idnlib; idnlib="$withval"
25778 else
25779   idnlib="no"
25780 fi
25781
25782 if test "$idnlib" = yes; then
25783         as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5
25784 fi
25785
25786 IDNLIBS=
25787 if test "$use_idn" != no; then
25788
25789 $as_echo "#define WITH_IDN 1" >>confdefs.h
25790
25791         STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
25792         if test "$idnlib" != no; then
25793                 IDNLIBS="$idnlib $iconvlib"
25794         else
25795                 IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
25796         fi
25797 fi
25798
25799
25800 for ac_header in locale.h
25801 do :
25802   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
25803 if test "x$ac_cv_header_locale_h" = x""yes; then :
25804   cat >>confdefs.h <<_ACEOF
25805 #define HAVE_LOCALE_H 1
25806 _ACEOF
25807
25808 fi
25809
25810 done
25811
25812 for ac_func in setlocale
25813 do :
25814   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25815 if test "x$ac_cv_func_setlocale" = x""yes; then :
25816   cat >>confdefs.h <<_ACEOF
25817 #define HAVE_SETLOCALE 1
25818 _ACEOF
25819
25820 fi
25821 done
25822
25823
25824 #
25825 # Substitutions
25826 #
25827
25828 BIND9_TOP_BUILDDIR=`pwd`
25829
25830
25831
25832
25833
25834
25835
25836 if test "X$srcdir" != "X"; then
25837         BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
25838         BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
25839         BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
25840         BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
25841         BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
25842         BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
25843 else
25844         BIND9_ISC_BUILDINCLUDE=""
25845         BIND9_ISCCC_BUILDINCLUDE=""
25846         BIND9_ISCCFG_BUILDINCLUDE=""
25847         BIND9_DNS_BUILDINCLUDE=""
25848         BIND9_LWRES_BUILDINCLUDE=""
25849         BIND9_BIND9_BUILDINCLUDE=""
25850 fi
25851
25852
25853 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
25854
25855
25856 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
25857
25858 . $srcdir/version
25859 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
25860
25861
25862 if test -z "$ac_configure_args"; then
25863         BIND9_CONFIGARGS="defaults"
25864 else
25865         for a in $ac_configure_args
25866         do
25867                 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
25868         done
25869 fi
25870 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
25871 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
25872
25873
25874
25875 LIBISC_API=$srcdir/lib/isc/api
25876
25877
25878 LIBISCCC_API=$srcdir/lib/isccc/api
25879
25880
25881 LIBISCCFG_API=$srcdir/lib/isccfg/api
25882
25883
25884 LIBDNS_API=$srcdir/lib/dns/api
25885
25886
25887 LIBBIND9_API=$srcdir/lib/bind9/api
25888
25889
25890 LIBLWRES_API=$srcdir/lib/lwres/api
25891
25892
25893 LIBIRS_API=$srcdir/lib/irs/api
25894
25895 #
25896 # Configure any DLZ drivers.
25897 #
25898 # If config.dlz.in selects one or more DLZ drivers, it will set
25899 # USE_DLZ to a non-empty value, which will be our clue to
25900 # enable the DLZ core functions.
25901 #
25902 # This section has to come after the libtool stuff because it needs to
25903 # know how to name the driver object files.
25904 #
25905
25906 USE_DLZ=""
25907 DLZ_DRIVER_INCLUDES=""
25908 DLZ_DRIVER_LIBS=""
25909 DLZ_DRIVER_SRCS=""
25910 DLZ_DRIVER_OBJS=""
25911 DLZ_SYSTEM_TEST=""
25912
25913 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
25914 #
25915 # Permission to use, copy, modify, and distribute this software for any
25916 # purpose with or without fee is hereby granted, provided that the above
25917 # copyright notice and this permission notice appear in all copies.
25918 #
25919 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
25920 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25921 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
25922 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
25923 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
25924 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25925 # PERFORMANCE OF THIS SOFTWARE.
25926
25927 #
25928 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
25929 #
25930 dlzdir='${DLZ_DRIVER_DIR}'
25931
25932 #
25933 # Private autoconf macro to simplify configuring drivers:
25934 #
25935 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
25936 #
25937 # where:
25938 #   DEFINE is FOO (to define -DDLZ_FOO)
25939 #   DRIVER is dlz_foo_driver (sources without the .c)
25940 #   INCLUDES is any necessary include definitions
25941 #   LIBS is any necessary library definitions
25942 #
25943
25944
25945 #
25946 # Check for the various DLZ drivers
25947 #
25948
25949 #
25950 # Was --with-dlz-postgres specified?
25951 #
25952
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
25954 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
25955
25956 # Check whether --with-dlz_postgres was given.
25957 if test "${with_dlz_postgres+set}" = set; then :
25958   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
25959 else
25960   use_dlz_postgres="no"
25961 fi
25962
25963
25964 if test "$use_dlz_postgres" = "yes"
25965 then
25966         # User did not specify a path - guess it
25967         # Ask Postgres to tell us where it is
25968
25969         for ac_prog in pg_config
25970 do
25971   # Extract the first word of "$ac_prog", so it can be a program name with args.
25972 set dummy $ac_prog; ac_word=$2
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25974 $as_echo_n "checking for $ac_word... " >&6; }
25975 if test "${ac_cv_path_PG_CONFIG+set}" = set; then :
25976   $as_echo_n "(cached) " >&6
25977 else
25978   case $PG_CONFIG in
25979   [\\/]* | ?:[\\/]*)
25980   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
25981   ;;
25982   *)
25983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25984 for as_dir in $PATH
25985 do
25986   IFS=$as_save_IFS
25987   test -z "$as_dir" && as_dir=.
25988     for ac_exec_ext in '' $ac_executable_extensions; do
25989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25990     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25992     break 2
25993   fi
25994 done
25995   done
25996 IFS=$as_save_IFS
25997
25998   ;;
25999 esac
26000 fi
26001 PG_CONFIG=$ac_cv_path_PG_CONFIG
26002 if test -n "$PG_CONFIG"; then
26003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
26004 $as_echo "$PG_CONFIG" >&6; }
26005 else
26006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26007 $as_echo "no" >&6; }
26008 fi
26009
26010
26011   test -n "$PG_CONFIG" && break
26012 done
26013 test -n "$PG_CONFIG" || PG_CONFIG="not found"
26014
26015
26016         if test "$PG_CONFIG" != "not found"
26017         then
26018                 use_dlz_postgres=`$PG_CONFIG --includedir`
26019                 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
26020         fi
26021 fi
26022
26023 if test "$use_dlz_postgres" = "yes"
26024 then
26025         # User did not specify path and Postgres didn't say - guess it
26026
26027         pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
26028         for d in $pgdirs
26029         do
26030                 if test -f $d/include/libpq-fe.h
26031                 then
26032                         use_dlz_postgres=$d/include
26033                         use_dlz_postgres_lib=$d/lib
26034                         break
26035                 fi
26036         done
26037 fi
26038
26039 if test "$use_dlz_postgres" = "yes"
26040 then
26041         # Still no joy, give up
26042
26043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26044 $as_echo "not found" >&6; }
26045         as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
26046 fi
26047
26048 case "$use_dlz_postgres" in
26049         no)
26050                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26051 $as_echo "no" >&6; }
26052                 ;;
26053         *)
26054
26055         USE_DLZ="$USE_DLZ -DDLZ_POSTGRES"
26056         for i in dlz_postgres_driver
26057         do
26058                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26059                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26060         done
26061         if test -n "-I$use_dlz_postgres"
26062         then
26063                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
26064         fi
26065         if test -n "-L$use_dlz_postgres_lib -lpq"
26066         then
26067                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
26068         fi
26069
26070
26071                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
26072 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
26073                 ;;
26074 esac
26075
26076
26077 #
26078 # Was --with-dlz-mysql specified?
26079 #
26080
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
26082 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
26083
26084 # Check whether --with-dlz_mysql was given.
26085 if test "${with_dlz_mysql+set}" = set; then :
26086   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
26087 else
26088   use_dlz_mysql="no"
26089 fi
26090
26091
26092 mysql_include=""
26093 mysql_lib=""
26094 if test "$use_dlz_mysql" = "yes"
26095 then
26096         # User did not specify a path - guess it
26097         mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
26098         for d in $mysqldirs
26099         do
26100                 if test -f $d/include/mysql/mysql.h
26101                 then
26102                         use_dlz_mysql=$d
26103                         mysql_include=$d/include/mysql
26104                         if test -d $d/lib/mysql
26105                         then
26106                                 mysql_lib=$d/lib/mysql
26107                         else
26108                                 mysql_lib=$d/lib
26109                         fi
26110                         break
26111                 elif test -f $d/include/mysql.h
26112                 then
26113                         use_dlz_mysql=$d
26114                         mysql_include=$d/include
26115                         if test -d $d/lib/mysql
26116                         then
26117                                 mysql_lib=$d/lib/mysql
26118                         else
26119                                 mysql_lib=$d/lib
26120                         fi
26121                         break
26122                 fi
26123         done
26124 elif test "$use_dlz_mysql" != "no"
26125 then
26126         d=$use_dlz_mysql
26127         if test -f $d/include/mysql/mysql.h
26128         then
26129                 mysql_include=$d/include/mysql
26130                 if test -d $d/lib/mysql
26131                 then
26132                         mysql_lib=$d/lib/mysql
26133                 else
26134                         mysql_lib=$d/lib
26135                 fi
26136         elif test -f $d/include/mysql.h
26137         then
26138                 mysql_include=$d/include
26139                 if test -d $d/lib/mysql
26140                 then
26141                         mysql_lib=$d/lib/mysql
26142                 else
26143                         mysql_lib=$d/lib
26144                 fi
26145         fi
26146 fi
26147
26148 if test "$use_dlz_mysql" = "yes"
26149 then
26150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26151 $as_echo "not found" >&6; }
26152         as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
26153 fi
26154
26155 case "$use_dlz_mysql" in
26156         no)
26157                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26158 $as_echo "no" >&6; }
26159                 ;;
26160         *)
26161
26162         USE_DLZ="$USE_DLZ -DDLZ_MYSQL"
26163         for i in dlz_mysql_driver
26164         do
26165                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26166                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26167         done
26168         if test -n "-I${mysql_include}"
26169         then
26170                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
26171         fi
26172         if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
26173         then
26174                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
26175         fi
26176
26177
26178                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
26179 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
26180                 ;;
26181 esac
26182
26183
26184 #
26185 # Was --with-dlz-bdb specified?
26186 #
26187
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver" >&5
26189 $as_echo_n "checking for Berkeley DB DLZ driver... " >&6; }
26190
26191 # Check whether --with-dlz_bdb was given.
26192 if test "${with_dlz_bdb+set}" = set; then :
26193   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
26194 else
26195   use_dlz_bdb="no"
26196 fi
26197
26198
26199 case "$use_dlz_bdb" in
26200         no)
26201                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26202 $as_echo "no" >&6; }
26203                 ;;
26204         *)
26205                 if test "$use_dlz_bdb" = "yes"
26206                 then
26207                         # User did not specify a path - guess directories
26208                         bdbdirs="/usr/local /usr/pkg /usr"
26209                 elif test -d "$use_dlz_bdb"
26210                 then
26211                         # User specified directory and it exists
26212                         bdbdirs="$use_dlz_bdb"
26213                 else
26214                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26215 $as_echo "not found" >&6; }
26216                         as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
26217                         bdbdirs=""
26218                 fi
26219
26220                 # Use path we were given or guessed.  This is insanely
26221                 # complicated because we have to search for a bunch of
26222                 # platform-specific variations and have to check
26223                 # separately for include and library directories.
26224
26225                 # Set both to yes, so we can check them later
26226                 dlz_bdb_inc="yes"
26227                 dlz_bdb_libs="yes"
26228
26229                 for dd in $bdbdirs
26230                 do
26231                         # Skip nonexistant directories
26232                         if test ! -d "$dd"
26233                         then
26234                                 continue
26235                         fi
26236
26237                         # Check other locations for includes.
26238                         # Order is important (sigh).
26239
26240                         bdb_incdirs="/ /db42/ /db41/ /db4/ /db/"
26241                         for d in $bdb_incdirs
26242                         do
26243                                 if test -f "$dd/include${d}db.h"
26244                                 then
26245                                         dlz_bdb_inc="-I$dd/include${d}"
26246                                         break
26247                                 fi
26248                         done
26249
26250                         # Give up on this directory if we couldn't
26251                         # find the include subdir
26252
26253                         if test "$dlz_bdb_inc" = "yes"
26254                         then
26255                                 continue
26256                         fi
26257
26258                         # Look for libname other than libdb.so.
26259                         # Order is important (sigh).
26260
26261                         bdb_libnames="db42 db-4.2 db41 db-4.1 db"
26262                         for d in $bdb_libnames
26263                         do
26264                                 if test -f "$dd/lib/lib${d}.so"
26265                                 then
26266                                         if test "$dd" != "/usr"
26267                                         then
26268                                                 dlz_bdb_libs="-L${dd}/lib "
26269                                         else
26270                                                 dlz_bdb_libs=""
26271                                         fi
26272                                         dlz_bdb_libs="${dlz_bdb_libs}-l${d}"
26273                                         break
26274                                 fi
26275                         done
26276
26277                         # If we found both incdir and lib, we're done
26278                         if test "$dlz_bdb_libs" != "yes"
26279                         then
26280                                 break
26281                         fi
26282
26283                         # Otherwise, we're starting over
26284
26285                         dlz_bdb_inc="yes"
26286                         dlz_bdb_libs="yes"
26287                 done
26288
26289                 # Done searching, now make sure we got everything.
26290
26291                 if test "$dlz_bdb_inc" = "yes"
26292                 then
26293                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26294 $as_echo "not found" >&6; }
26295                         as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
26296                 fi
26297
26298                 if test "$dlz_bdb_libs" = "yes"
26299                 then
26300                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26301 $as_echo "not found" >&6; }
26302                         as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
26303                 fi
26304
26305
26306         USE_DLZ="$USE_DLZ -DDLZ_BDB"
26307         for i in dlz_bdb_driver dlz_bdbhpt_driver
26308         do
26309                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26310                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26311         done
26312         if test -n "$dlz_bdb_inc"
26313         then
26314                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
26315         fi
26316         if test -n "$dlz_bdb_libs"
26317         then
26318                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
26319         fi
26320
26321
26322                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
26323 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
26324
26325                 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
26326
26327                 ;;
26328 esac
26329
26330
26331 #
26332 # Was --with-dlz-filesystem specified?
26333 #
26334
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
26336 $as_echo_n "checking for file system DLZ driver... " >&6; }
26337
26338 # Check whether --with-dlz_filesystem was given.
26339 if test "${with_dlz_filesystem+set}" = set; then :
26340   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
26341 else
26342   use_dlz_filesystem="no"
26343 fi
26344
26345
26346 case "$use_dlz_filesystem" in
26347         no)
26348                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26349 $as_echo "no" >&6; }
26350                 ;;
26351         *)
26352
26353         USE_DLZ="$USE_DLZ -DDLZ_FILESYSTEM"
26354         for i in dlz_filesystem_driver
26355         do
26356                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26357                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26358         done
26359         if test -n ""
26360         then
26361                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
26362         fi
26363         if test -n ""
26364         then
26365                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
26366         fi
26367
26368                 DLZ_SYSTEM_TEST=dlz
26369                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26370 $as_echo "yes" >&6; }
26371                 ;;
26372 esac
26373
26374
26375 #
26376 # Was --with-dlz-ldap specified?
26377 #
26378
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
26380 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
26381
26382 # Check whether --with-dlz_ldap was given.
26383 if test "${with_dlz_ldap+set}" = set; then :
26384   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
26385 else
26386   use_dlz_ldap="no"
26387 fi
26388
26389
26390 if test "$use_dlz_ldap" = "yes"
26391 then
26392         # User did not specify a path - guess it
26393         ldapdirs="/usr /usr/local /usr/pkg"
26394         for d in $ldapdirs
26395         do
26396                 if test -f $d/include/ldap.h
26397                 then
26398                         use_dlz_ldap=$d
26399                         break
26400                 fi
26401         done
26402 fi
26403
26404 if test "$use_dlz_ldap" = "yes"
26405 then
26406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26407 $as_echo "not found" >&6; }
26408         as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
26409 fi
26410
26411 case "$use_dlz_ldap" in
26412         no)
26413                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26414 $as_echo "no" >&6; }
26415                 ;;
26416         *)
26417
26418         USE_DLZ="$USE_DLZ -DDLZ_LDAP"
26419         for i in dlz_ldap_driver
26420         do
26421                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26422                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26423         done
26424         if test -n "-I$use_dlz_ldap/include"
26425         then
26426                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
26427         fi
26428         if test -n "-L$use_dlz_ldap/lib -lldap -llber"
26429         then
26430                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
26431         fi
26432
26433
26434                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
26435 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
26436                 ;;
26437 esac
26438
26439
26440 #
26441 # Was --with-dlz-odbc specified?
26442 #
26443
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
26445 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
26446
26447 # Check whether --with-dlz_odbc was given.
26448 if test "${with_dlz_odbc+set}" = set; then :
26449   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
26450 else
26451   use_dlz_odbc="no"
26452 fi
26453
26454
26455 if test "$use_dlz_odbc" = "yes"
26456 then
26457         # User did not specify a path - guess it
26458         odbcdirs="/usr /usr/local /usr/pkg"
26459         for d in $odbcdirs
26460         do
26461                 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
26462                 then
26463                         use_dlz_odbc=$d
26464                         break
26465                 fi
26466         done
26467 fi
26468
26469 case "$use_dlz_odbc" in
26470         no)
26471                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26472 $as_echo "no" >&6; }
26473                 ;;
26474         yes)
26475                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26476 $as_echo "not found" >&6; }
26477                 as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
26478                 ;;
26479         *)
26480
26481         USE_DLZ="$USE_DLZ -DDLZ_ODBC"
26482         for i in dlz_odbc_driver
26483         do
26484                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26485                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26486         done
26487         if test -n "-I$use_dlz_odbc/include"
26488         then
26489                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include"
26490         fi
26491         if test -n "-L$use_dlz_odbc/lib -lodbc"
26492         then
26493                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc"
26494         fi
26495
26496
26497                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
26498 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
26499                 ;;
26500 esac
26501
26502
26503 #
26504 # Was --with-dlz-stub specified?
26505 #
26506
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
26508 $as_echo_n "checking for stub DLZ driver... " >&6; }
26509
26510 # Check whether --with-dlz_stub was given.
26511 if test "${with_dlz_stub+set}" = set; then :
26512   withval=$with_dlz_stub; use_dlz_stub="$withval"
26513 else
26514   use_dlz_stub="no"
26515 fi
26516
26517
26518 case "$use_dlz_stub" in
26519         no)
26520                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26521 $as_echo "no" >&6; }
26522                 ;;
26523         *)
26524
26525
26526         USE_DLZ="$USE_DLZ -DDLZ_STUB"
26527         for i in dlz_stub_driver
26528         do
26529                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
26530                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
26531         done
26532         if test -n ""
26533         then
26534                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
26535         fi
26536         if test -n ""
26537         then
26538                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
26539         fi
26540
26541
26542                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26543 $as_echo "yes" >&6; }
26544                 ;;
26545 esac
26546
26547
26548 # Add any additional DLZ drivers here.
26549
26550 #
26551 # Finally, some generic stuff that applies to all drivers, assuming
26552 # we're compiling DLZ at all.
26553 #
26554 if test -n "$USE_DLZ"
26555 then
26556         #
26557         # Where to find DLZ driver header files.
26558         #
26559         DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
26560
26561         #
26562         # Initialization and shutdown wrappers, helper functions.
26563         #
26564         DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
26565         DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
26566 fi
26567
26568
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLZ" >&5
26570 $as_echo_n "checking for DLZ... " >&6; }
26571
26572 if test -n "$USE_DLZ"
26573 then
26574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26575 $as_echo "yes" >&6; }
26576         USE_DLZ="-DDLZ $USE_DLZ"
26577         DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
26578         ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
26579
26580 else
26581         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26582 $as_echo "no" >&6; }
26583         DLZ_DRIVER_RULES=/dev/null
26584 fi
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594 if test "$cross_compiling" = "yes"; then
26595         if test -z "$BUILD_CC"; then
26596                 as_fn_error $? "BUILD_CC not set" "$LINENO" 5
26597         fi
26598         BUILD_CFLAGS="$BUILD_CFLAGS"
26599         BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
26600         BUILD_LDFLAGS="$BUILD_LDFLAGS"
26601         BUILD_LIBS="$BUILD_LIBS"
26602 else
26603         BUILD_CC="$CC"
26604         BUILD_CFLAGS="$CFLAGS"
26605         BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
26606         BUILD_LDFLAGS="$LDFLAGS"
26607         BUILD_LIBS="$LIBS"
26608 fi
26609
26610 NEWFLAGS=""
26611 for e in $BUILD_LDFLAGS ; do
26612     case $e in
26613         -L*)
26614             case $host_os in
26615                 netbsd*)
26616                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26617                     NEWFLAGS="$NEWFLAGS $e $ee"
26618                     ;;
26619                 freebsd*)
26620                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26621                     NEWFLAGS="$NEWFLAGS $e $ee"
26622                     ;;
26623                 solaris*)
26624                     ee=`echo $e | sed -e 's%^-L%-R%'`
26625                     NEWFLAGS="$NEWFLAGS $e $ee"
26626                     ;;
26627                 *)
26628                     NEWFLAGS="$NEWFLAGS $e"
26629                     ;;
26630                 esac
26631             ;;
26632         *)
26633             NEWFLAGS="$NEWFLAGS $e"
26634             ;;
26635     esac
26636 done
26637 BUILD_LDFLAGS="$NEWFLAGS"
26638
26639 NEWFLAGS=""
26640 for e in $DNS_GSSAPI_LIBS ; do
26641     case $e in
26642         -L*)
26643             case $host_os in
26644                 netbsd*)
26645                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26646                     NEWFLAGS="$NEWFLAGS $e $ee"
26647                     ;;
26648                 freebsd*)
26649                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26650                     NEWFLAGS="$NEWFLAGS $e $ee"
26651                     ;;
26652                 solaris*)
26653                     ee=`echo $e | sed -e 's%^-L%-R%'`
26654                     NEWFLAGS="$NEWFLAGS $e $ee"
26655                     ;;
26656                 *)
26657                     NEWFLAGS="$NEWFLAGS $e"
26658                     ;;
26659                 esac
26660             ;;
26661         *)
26662             NEWFLAGS="$NEWFLAGS $e"
26663             ;;
26664     esac
26665 done
26666 DNS_GSSAPI_LIBS="$NEWFLAGS"
26667
26668 NEWFLAGS=""
26669 for e in $DNS_CRYPTO_LIBS ; do
26670     case $e in
26671         -L*)
26672             case $host_os in
26673                 netbsd*)
26674                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26675                     NEWFLAGS="$NEWFLAGS $e $ee"
26676                     ;;
26677                 freebsd*)
26678                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
26679                     NEWFLAGS="$NEWFLAGS $e $ee"
26680                     ;;
26681                 solaris*)
26682                     ee=`echo $e | sed -e 's%^-L%-R%'`
26683                     NEWFLAGS="$NEWFLAGS $e $ee"
26684                     ;;
26685                 *)
26686                     NEWFLAGS="$NEWFLAGS $e"
26687                     ;;
26688                 esac
26689             ;;
26690         *)
26691             NEWFLAGS="$NEWFLAGS $e"
26692             ;;
26693     esac
26694 done
26695 DNS_CRYPTO_LIBS="$NEWFLAGS"
26696
26697
26698
26699
26700
26701
26702
26703 #
26704 # Commands to run at the end of config.status.
26705 # Don't just put these into configure, it won't work right if somebody
26706 # runs config.status directly (which autoconf allows).
26707 #
26708
26709 ac_config_commands="$ac_config_commands chmod"
26710
26711
26712 #
26713 # Files to configure.  These are listed here because we used to
26714 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
26715 # elsewhere if there's a good reason for doing so.
26716 #
26717
26718 ac_config_files="$ac_config_files Makefile make/Makefile make/mkdep lib/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/nls/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/export/Makefile lib/export/isc/Makefile lib/export/isc/include/Makefile lib/export/isc/include/isc/Makefile lib/export/isc/unix/Makefile lib/export/isc/unix/include/Makefile lib/export/isc/unix/include/isc/Makefile lib/export/isc/nls/Makefile lib/export/isc/$thread_dir/Makefile lib/export/isc/$thread_dir/include/Makefile lib/export/isc/$thread_dir/include/isc/Makefile lib/export/dns/Makefile lib/export/dns/include/Makefile lib/export/dns/include/dns/Makefile lib/export/dns/include/dst/Makefile lib/export/irs/Makefile lib/export/irs/include/Makefile lib/export/irs/include/irs/Makefile lib/export/isccfg/Makefile lib/export/isccfg/include/Makefile lib/export/isccfg/include/isccfg/Makefile lib/export/samples/Makefile lib/export/samples/Makefile-postinstall lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/tests/Makefile lib/tests/include/Makefile lib/tests/include/tests/Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/named/Makefile bin/named/unix/Makefile bin/rndc/Makefile bin/dig/Makefile bin/nsupdate/Makefile bin/tests/Makefile bin/tests/names/Makefile bin/tests/master/Makefile bin/tests/rbt/Makefile bin/tests/db/Makefile bin/tests/tasks/Makefile bin/tests/timers/Makefile bin/tests/dst/Makefile bin/tests/mem/Makefile bin/tests/hashes/Makefile bin/tests/net/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/filter-aaaa/Makefile bin/tests/system/lwresd/Makefile bin/tests/system/tkey/Makefile bin/tests/headerdep_test.sh bin/tests/virtual-time/Makefile bin/tests/virtual-time/conf.sh bin/tools/Makefile bin/dnssec/Makefile bin/pkcs11/Makefile doc/Makefile doc/arm/Makefile doc/misc/Makefile isc-config.sh doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-docbook-latex.xsl doc/xsl/isc-manpage.xsl doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter"
26719
26720
26721 #
26722 # Do it
26723 #
26724
26725 cat >confcache <<\_ACEOF
26726 # This file is a shell script that caches the results of configure
26727 # tests run on this system so they can be shared between configure
26728 # scripts and configure runs, see configure's option --config-cache.
26729 # It is not useful on other systems.  If it contains results you don't
26730 # want to keep, you may remove or edit it.
26731 #
26732 # config.status only pays attention to the cache file if you give it
26733 # the --recheck option to rerun configure.
26734 #
26735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26737 # following values.
26738
26739 _ACEOF
26740
26741 # The following way of writing the cache mishandles newlines in values,
26742 # but we know of no workaround that is simple, portable, and efficient.
26743 # So, we kill variables containing newlines.
26744 # Ultrix sh set writes to stderr and can't be redirected directly,
26745 # and sets the high bit in the cache file unless we assign to the vars.
26746 (
26747   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26748     eval ac_val=\$$ac_var
26749     case $ac_val in #(
26750     *${as_nl}*)
26751       case $ac_var in #(
26752       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26753 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26754       esac
26755       case $ac_var in #(
26756       _ | IFS | as_nl) ;; #(
26757       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26758       *) { eval $ac_var=; unset $ac_var;} ;;
26759       esac ;;
26760     esac
26761   done
26762
26763   (set) 2>&1 |
26764     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26765     *${as_nl}ac_space=\ *)
26766       # `set' does not quote correctly, so add quotes: double-quote
26767       # substitution turns \\\\ into \\, and sed turns \\ into \.
26768       sed -n \
26769         "s/'/'\\\\''/g;
26770           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26771       ;; #(
26772     *)
26773       # `set' quotes correctly as required by POSIX, so do not add quotes.
26774       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26775       ;;
26776     esac |
26777     sort
26778 ) |
26779   sed '
26780      /^ac_cv_env_/b end
26781      t clear
26782      :clear
26783      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26784      t end
26785      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26786      :end' >>confcache
26787 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26788   if test -w "$cache_file"; then
26789     test "x$cache_file" != "x/dev/null" &&
26790       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26791 $as_echo "$as_me: updating cache $cache_file" >&6;}
26792     cat confcache >$cache_file
26793   else
26794     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26795 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26796   fi
26797 fi
26798 rm -f confcache
26799
26800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26801 # Let make expand exec_prefix.
26802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26803
26804 DEFS=-DHAVE_CONFIG_H
26805
26806 ac_libobjs=
26807 ac_ltlibobjs=
26808 U=
26809 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26810   # 1. Remove the extension, and $U if already installed.
26811   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26812   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26813   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26814   #    will be set to the directory where LIBOBJS objects are built.
26815   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26816   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26817 done
26818 LIBOBJS=$ac_libobjs
26819
26820 LTLIBOBJS=$ac_ltlibobjs
26821
26822
26823
26824
26825 : ${CONFIG_STATUS=./config.status}
26826 ac_write_fail=0
26827 ac_clean_files_save=$ac_clean_files
26828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26831 as_write_fail=0
26832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26833 #! $SHELL
26834 # Generated by $as_me.
26835 # Run this file to recreate the current configuration.
26836 # Compiler output produced by configure, useful for debugging
26837 # configure, is in config.log if it exists.
26838
26839 debug=false
26840 ac_cs_recheck=false
26841 ac_cs_silent=false
26842
26843 SHELL=\${CONFIG_SHELL-$SHELL}
26844 export SHELL
26845 _ASEOF
26846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26847 ## -------------------- ##
26848 ## M4sh Initialization. ##
26849 ## -------------------- ##
26850
26851 # Be more Bourne compatible
26852 DUALCASE=1; export DUALCASE # for MKS sh
26853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26854   emulate sh
26855   NULLCMD=:
26856   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26857   # is contrary to our usage.  Disable this feature.
26858   alias -g '${1+"$@"}'='"$@"'
26859   setopt NO_GLOB_SUBST
26860 else
26861   case `(set -o) 2>/dev/null` in #(
26862   *posix*) :
26863     set -o posix ;; #(
26864   *) :
26865      ;;
26866 esac
26867 fi
26868
26869
26870 as_nl='
26871 '
26872 export as_nl
26873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26877 # Prefer a ksh shell builtin over an external printf program on Solaris,
26878 # but without wasting forks for bash or zsh.
26879 if test -z "$BASH_VERSION$ZSH_VERSION" \
26880     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26881   as_echo='print -r --'
26882   as_echo_n='print -rn --'
26883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26884   as_echo='printf %s\n'
26885   as_echo_n='printf %s'
26886 else
26887   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26888     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26889     as_echo_n='/usr/ucb/echo -n'
26890   else
26891     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26892     as_echo_n_body='eval
26893       arg=$1;
26894       case $arg in #(
26895       *"$as_nl"*)
26896         expr "X$arg" : "X\\(.*\\)$as_nl";
26897         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26898       esac;
26899       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26900     '
26901     export as_echo_n_body
26902     as_echo_n='sh -c $as_echo_n_body as_echo'
26903   fi
26904   export as_echo_body
26905   as_echo='sh -c $as_echo_body as_echo'
26906 fi
26907
26908 # The user is always right.
26909 if test "${PATH_SEPARATOR+set}" != set; then
26910   PATH_SEPARATOR=:
26911   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26912     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26913       PATH_SEPARATOR=';'
26914   }
26915 fi
26916
26917
26918 # IFS
26919 # We need space, tab and new line, in precisely that order.  Quoting is
26920 # there to prevent editors from complaining about space-tab.
26921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26922 # splitting by setting IFS to empty value.)
26923 IFS=" ""        $as_nl"
26924
26925 # Find who we are.  Look in the path if we contain no directory separator.
26926 case $0 in #((
26927   *[\\/]* ) as_myself=$0 ;;
26928   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26929 for as_dir in $PATH
26930 do
26931   IFS=$as_save_IFS
26932   test -z "$as_dir" && as_dir=.
26933     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26934   done
26935 IFS=$as_save_IFS
26936
26937      ;;
26938 esac
26939 # We did not find ourselves, most probably we were run as `sh COMMAND'
26940 # in which case we are not to be found in the path.
26941 if test "x$as_myself" = x; then
26942   as_myself=$0
26943 fi
26944 if test ! -f "$as_myself"; then
26945   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26946   exit 1
26947 fi
26948
26949 # Unset variables that we do not need and which cause bugs (e.g. in
26950 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26951 # suppresses any "Segmentation fault" message there.  '((' could
26952 # trigger a bug in pdksh 5.2.14.
26953 for as_var in BASH_ENV ENV MAIL MAILPATH
26954 do eval test x\${$as_var+set} = xset \
26955   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26956 done
26957 PS1='$ '
26958 PS2='> '
26959 PS4='+ '
26960
26961 # NLS nuisances.
26962 LC_ALL=C
26963 export LC_ALL
26964 LANGUAGE=C
26965 export LANGUAGE
26966
26967 # CDPATH.
26968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26969
26970
26971 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26972 # ----------------------------------------
26973 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26974 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26975 # script with STATUS, using 1 if that was 0.
26976 as_fn_error ()
26977 {
26978   as_status=$1; test $as_status -eq 0 && as_status=1
26979   if test "$4"; then
26980     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26981     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26982   fi
26983   $as_echo "$as_me: error: $2" >&2
26984   as_fn_exit $as_status
26985 } # as_fn_error
26986
26987
26988 # as_fn_set_status STATUS
26989 # -----------------------
26990 # Set $? to STATUS, without forking.
26991 as_fn_set_status ()
26992 {
26993   return $1
26994 } # as_fn_set_status
26995
26996 # as_fn_exit STATUS
26997 # -----------------
26998 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26999 as_fn_exit ()
27000 {
27001   set +e
27002   as_fn_set_status $1
27003   exit $1
27004 } # as_fn_exit
27005
27006 # as_fn_unset VAR
27007 # ---------------
27008 # Portably unset VAR.
27009 as_fn_unset ()
27010 {
27011   { eval $1=; unset $1;}
27012 }
27013 as_unset=as_fn_unset
27014 # as_fn_append VAR VALUE
27015 # ----------------------
27016 # Append the text in VALUE to the end of the definition contained in VAR. Take
27017 # advantage of any shell optimizations that allow amortized linear growth over
27018 # repeated appends, instead of the typical quadratic growth present in naive
27019 # implementations.
27020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27021   eval 'as_fn_append ()
27022   {
27023     eval $1+=\$2
27024   }'
27025 else
27026   as_fn_append ()
27027   {
27028     eval $1=\$$1\$2
27029   }
27030 fi # as_fn_append
27031
27032 # as_fn_arith ARG...
27033 # ------------------
27034 # Perform arithmetic evaluation on the ARGs, and store the result in the
27035 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27036 # must be portable across $(()) and expr.
27037 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27038   eval 'as_fn_arith ()
27039   {
27040     as_val=$(( $* ))
27041   }'
27042 else
27043   as_fn_arith ()
27044   {
27045     as_val=`expr "$@" || test $? -eq 1`
27046   }
27047 fi # as_fn_arith
27048
27049
27050 if expr a : '\(a\)' >/dev/null 2>&1 &&
27051    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27052   as_expr=expr
27053 else
27054   as_expr=false
27055 fi
27056
27057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27058   as_basename=basename
27059 else
27060   as_basename=false
27061 fi
27062
27063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27064   as_dirname=dirname
27065 else
27066   as_dirname=false
27067 fi
27068
27069 as_me=`$as_basename -- "$0" ||
27070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27071          X"$0" : 'X\(//\)$' \| \
27072          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27073 $as_echo X/"$0" |
27074     sed '/^.*\/\([^/][^/]*\)\/*$/{
27075             s//\1/
27076             q
27077           }
27078           /^X\/\(\/\/\)$/{
27079             s//\1/
27080             q
27081           }
27082           /^X\/\(\/\).*/{
27083             s//\1/
27084             q
27085           }
27086           s/.*/./; q'`
27087
27088 # Avoid depending upon Character Ranges.
27089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27092 as_cr_digits='0123456789'
27093 as_cr_alnum=$as_cr_Letters$as_cr_digits
27094
27095 ECHO_C= ECHO_N= ECHO_T=
27096 case `echo -n x` in #(((((
27097 -n*)
27098   case `echo 'xy\c'` in
27099   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27100   xy)  ECHO_C='\c';;
27101   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27102        ECHO_T=' ';;
27103   esac;;
27104 *)
27105   ECHO_N='-n';;
27106 esac
27107
27108 rm -f conf$$ conf$$.exe conf$$.file
27109 if test -d conf$$.dir; then
27110   rm -f conf$$.dir/conf$$.file
27111 else
27112   rm -f conf$$.dir
27113   mkdir conf$$.dir 2>/dev/null
27114 fi
27115 if (echo >conf$$.file) 2>/dev/null; then
27116   if ln -s conf$$.file conf$$ 2>/dev/null; then
27117     as_ln_s='ln -s'
27118     # ... but there are two gotchas:
27119     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27120     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27121     # In both cases, we have to default to `cp -p'.
27122     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27123       as_ln_s='cp -p'
27124   elif ln conf$$.file conf$$ 2>/dev/null; then
27125     as_ln_s=ln
27126   else
27127     as_ln_s='cp -p'
27128   fi
27129 else
27130   as_ln_s='cp -p'
27131 fi
27132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27133 rmdir conf$$.dir 2>/dev/null
27134
27135
27136 # as_fn_mkdir_p
27137 # -------------
27138 # Create "$as_dir" as a directory, including parents if necessary.
27139 as_fn_mkdir_p ()
27140 {
27141
27142   case $as_dir in #(
27143   -*) as_dir=./$as_dir;;
27144   esac
27145   test -d "$as_dir" || eval $as_mkdir_p || {
27146     as_dirs=
27147     while :; do
27148       case $as_dir in #(
27149       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27150       *) as_qdir=$as_dir;;
27151       esac
27152       as_dirs="'$as_qdir' $as_dirs"
27153       as_dir=`$as_dirname -- "$as_dir" ||
27154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27155          X"$as_dir" : 'X\(//\)[^/]' \| \
27156          X"$as_dir" : 'X\(//\)$' \| \
27157          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27158 $as_echo X"$as_dir" |
27159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27160             s//\1/
27161             q
27162           }
27163           /^X\(\/\/\)[^/].*/{
27164             s//\1/
27165             q
27166           }
27167           /^X\(\/\/\)$/{
27168             s//\1/
27169             q
27170           }
27171           /^X\(\/\).*/{
27172             s//\1/
27173             q
27174           }
27175           s/.*/./; q'`
27176       test -d "$as_dir" && break
27177     done
27178     test -z "$as_dirs" || eval "mkdir $as_dirs"
27179   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27180
27181
27182 } # as_fn_mkdir_p
27183 if mkdir -p . 2>/dev/null; then
27184   as_mkdir_p='mkdir -p "$as_dir"'
27185 else
27186   test -d ./-p && rmdir ./-p
27187   as_mkdir_p=false
27188 fi
27189
27190 if test -x / >/dev/null 2>&1; then
27191   as_test_x='test -x'
27192 else
27193   if ls -dL / >/dev/null 2>&1; then
27194     as_ls_L_option=L
27195   else
27196     as_ls_L_option=
27197   fi
27198   as_test_x='
27199     eval sh -c '\''
27200       if test -d "$1"; then
27201         test -d "$1/.";
27202       else
27203         case $1 in #(
27204         -*)set "./$1";;
27205         esac;
27206         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27207         ???[sx]*):;;*)false;;esac;fi
27208     '\'' sh
27209   '
27210 fi
27211 as_executable_p=$as_test_x
27212
27213 # Sed expression to map a string onto a valid CPP name.
27214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27215
27216 # Sed expression to map a string onto a valid variable name.
27217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27218
27219
27220 exec 6>&1
27221 ## ----------------------------------- ##
27222 ## Main body of $CONFIG_STATUS script. ##
27223 ## ----------------------------------- ##
27224 _ASEOF
27225 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27226
27227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27228 # Save the log message, to keep $0 and so on meaningful, and to
27229 # report actual input values of CONFIG_FILES etc. instead of their
27230 # values after options handling.
27231 ac_log="
27232 This file was extended by $as_me, which was
27233 generated by GNU Autoconf 2.67.  Invocation command line was
27234
27235   CONFIG_FILES    = $CONFIG_FILES
27236   CONFIG_HEADERS  = $CONFIG_HEADERS
27237   CONFIG_LINKS    = $CONFIG_LINKS
27238   CONFIG_COMMANDS = $CONFIG_COMMANDS
27239   $ $0 $@
27240
27241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27242 "
27243
27244 _ACEOF
27245
27246 case $ac_config_files in *"
27247 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27248 esac
27249
27250 case $ac_config_headers in *"
27251 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27252 esac
27253
27254
27255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27256 # Files that config.status was made for.
27257 config_files="$ac_config_files"
27258 config_headers="$ac_config_headers"
27259 config_commands="$ac_config_commands"
27260
27261 _ACEOF
27262
27263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27264 ac_cs_usage="\
27265 \`$as_me' instantiates files and other configuration actions
27266 from templates according to the current configuration.  Unless the files
27267 and actions are specified as TAGs, all are instantiated by default.
27268
27269 Usage: $0 [OPTION]... [TAG]...
27270
27271   -h, --help       print this help, then exit
27272   -V, --version    print version number and configuration settings, then exit
27273       --config     print configuration, then exit
27274   -q, --quiet, --silent
27275                    do not print progress messages
27276   -d, --debug      don't remove temporary files
27277       --recheck    update $as_me by reconfiguring in the same conditions
27278       --file=FILE[:TEMPLATE]
27279                    instantiate the configuration file FILE
27280       --header=FILE[:TEMPLATE]
27281                    instantiate the configuration header FILE
27282
27283 Configuration files:
27284 $config_files
27285
27286 Configuration headers:
27287 $config_headers
27288
27289 Configuration commands:
27290 $config_commands
27291
27292 Report bugs to the package provider."
27293
27294 _ACEOF
27295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27296 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27297 ac_cs_version="\\
27298 config.status
27299 configured by $0, generated by GNU Autoconf 2.67,
27300   with options \\"\$ac_cs_config\\"
27301
27302 Copyright (C) 2010 Free Software Foundation, Inc.
27303 This config.status script is free software; the Free Software Foundation
27304 gives unlimited permission to copy, distribute and modify it."
27305
27306 ac_pwd='$ac_pwd'
27307 srcdir='$srcdir'
27308 INSTALL='$INSTALL'
27309 test -n "\$AWK" || AWK=awk
27310 _ACEOF
27311
27312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27313 # The default lists apply if the user does not specify any file.
27314 ac_need_defaults=:
27315 while test $# != 0
27316 do
27317   case $1 in
27318   --*=?*)
27319     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27320     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27321     ac_shift=:
27322     ;;
27323   --*=)
27324     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27325     ac_optarg=
27326     ac_shift=:
27327     ;;
27328   *)
27329     ac_option=$1
27330     ac_optarg=$2
27331     ac_shift=shift
27332     ;;
27333   esac
27334
27335   case $ac_option in
27336   # Handling of the options.
27337   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27338     ac_cs_recheck=: ;;
27339   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27340     $as_echo "$ac_cs_version"; exit ;;
27341   --config | --confi | --conf | --con | --co | --c )
27342     $as_echo "$ac_cs_config"; exit ;;
27343   --debug | --debu | --deb | --de | --d | -d )
27344     debug=: ;;
27345   --file | --fil | --fi | --f )
27346     $ac_shift
27347     case $ac_optarg in
27348     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27349     '') as_fn_error $? "missing file argument" ;;
27350     esac
27351     as_fn_append CONFIG_FILES " '$ac_optarg'"
27352     ac_need_defaults=false;;
27353   --header | --heade | --head | --hea )
27354     $ac_shift
27355     case $ac_optarg in
27356     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27357     esac
27358     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27359     ac_need_defaults=false;;
27360   --he | --h)
27361     # Conflict between --help and --header
27362     as_fn_error $? "ambiguous option: \`$1'
27363 Try \`$0 --help' for more information.";;
27364   --help | --hel | -h )
27365     $as_echo "$ac_cs_usage"; exit ;;
27366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27367   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27368     ac_cs_silent=: ;;
27369
27370   # This is an error.
27371   -*) as_fn_error $? "unrecognized option: \`$1'
27372 Try \`$0 --help' for more information." ;;
27373
27374   *) as_fn_append ac_config_targets " $1"
27375      ac_need_defaults=false ;;
27376
27377   esac
27378   shift
27379 done
27380
27381 ac_configure_extra_args=
27382
27383 if $ac_cs_silent; then
27384   exec 6>/dev/null
27385   ac_configure_extra_args="$ac_configure_extra_args --silent"
27386 fi
27387
27388 _ACEOF
27389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27390 if \$ac_cs_recheck; then
27391   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27392   shift
27393   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27394   CONFIG_SHELL='$SHELL'
27395   export CONFIG_SHELL
27396   exec "\$@"
27397 fi
27398
27399 _ACEOF
27400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27401 exec 5>>config.log
27402 {
27403   echo
27404   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27405 ## Running $as_me. ##
27406 _ASBOX
27407   $as_echo "$ac_log"
27408 } >&5
27409
27410 _ACEOF
27411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27412 _ACEOF
27413
27414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27415
27416 # Handling of arguments.
27417 for ac_config_target in $ac_config_targets
27418 do
27419   case $ac_config_target in
27420     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27421     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
27422     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
27423     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
27424     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
27425     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
27426     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27427     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
27428     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
27429     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27430     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
27431     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
27432     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
27433     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
27434     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
27435     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
27436     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
27437     "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
27438     "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
27439     "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
27440     "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
27441     "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
27442     "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
27443     "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
27444     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
27445     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
27446     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
27447     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
27448     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
27449     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
27450     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
27451     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
27452     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
27453     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
27454     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
27455     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
27456     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
27457     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
27458     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
27459     "lib/export/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/Makefile" ;;
27460     "lib/export/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/Makefile" ;;
27461     "lib/export/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/Makefile" ;;
27462     "lib/export/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;;
27463     "lib/export/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/Makefile" ;;
27464     "lib/export/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;;
27465     "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;;
27466     "lib/export/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/nls/Makefile" ;;
27467     "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;;
27468     "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;;
27469     "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;;
27470     "lib/export/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/Makefile" ;;
27471     "lib/export/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/Makefile" ;;
27472     "lib/export/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;;
27473     "lib/export/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;;
27474     "lib/export/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/Makefile" ;;
27475     "lib/export/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/Makefile" ;;
27476     "lib/export/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;;
27477     "lib/export/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/Makefile" ;;
27478     "lib/export/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;;
27479     "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;;
27480     "lib/export/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile" ;;
27481     "lib/export/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;;
27482     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
27483     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
27484     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
27485     "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;;
27486     "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;;
27487     "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
27488     "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
27489     "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
27490     "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
27491     "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
27492     "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
27493     "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
27494     "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;;
27495     "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;;
27496     "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
27497     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
27498     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
27499     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
27500     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
27501     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
27502     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
27503     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
27504     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
27505     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
27506     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
27507     "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;;
27508     "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;;
27509     "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
27510     "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;;
27511     "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
27512     "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;;
27513     "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;;
27514     "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;;
27515     "bin/tests/hashes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/hashes/Makefile" ;;
27516     "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;;
27517     "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
27518     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
27519     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
27520     "bin/tests/system/filter-aaaa/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/filter-aaaa/Makefile" ;;
27521     "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
27522     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
27523     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
27524     "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
27525     "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
27526     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
27527     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
27528     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
27529     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27530     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
27531     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27532     "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
27533     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
27534     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
27535     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
27536     "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
27537     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
27538     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
27539     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
27540     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
27541
27542   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27543   esac
27544 done
27545
27546
27547 # If the user did not use the arguments to specify the items to instantiate,
27548 # then the envvar interface is used.  Set only those that are not.
27549 # We use the long form for the default assignment because of an extremely
27550 # bizarre bug on SunOS 4.1.3.
27551 if $ac_need_defaults; then
27552   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27553   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27554   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27555 fi
27556
27557 # Have a temporary directory for convenience.  Make it in the build tree
27558 # simply because there is no reason against having it here, and in addition,
27559 # creating and moving files from /tmp can sometimes cause problems.
27560 # Hook for its removal unless debugging.
27561 # Note that there is a small window in which the directory will not be cleaned:
27562 # after its creation but before its name has been assigned to `$tmp'.
27563 $debug ||
27564 {
27565   tmp=
27566   trap 'exit_status=$?
27567   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27568 ' 0
27569   trap 'as_fn_exit 1' 1 2 13 15
27570 }
27571 # Create a (secure) tmp directory for tmp files.
27572
27573 {
27574   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27575   test -n "$tmp" && test -d "$tmp"
27576 }  ||
27577 {
27578   tmp=./conf$$-$RANDOM
27579   (umask 077 && mkdir "$tmp")
27580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27581
27582 # Set up the scripts for CONFIG_FILES section.
27583 # No need to generate them if there are no CONFIG_FILES.
27584 # This happens for instance with `./config.status config.h'.
27585 if test -n "$CONFIG_FILES"; then
27586
27587 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27588   ac_cs_awk_getline=:
27589   ac_cs_awk_pipe_init=
27590   ac_cs_awk_read_file='
27591       while ((getline aline < (F[key])) > 0)
27592         print(aline)
27593       close(F[key])'
27594   ac_cs_awk_pipe_fini=
27595 else
27596   ac_cs_awk_getline=false
27597   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27598   ac_cs_awk_read_file='
27599       print "|#_!!_#|"
27600       print "cat " F[key] " &&"
27601       '$ac_cs_awk_pipe_init
27602   # The final `:' finishes the AND list.
27603   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27604 fi
27605 ac_cr=`echo X | tr X '\015'`
27606 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27607 # But we know of no other shell where ac_cr would be empty at this
27608 # point, so we can use a bashism as a fallback.
27609 if test "x$ac_cr" = x; then
27610   eval ac_cr=\$\'\\r\'
27611 fi
27612 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27613 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27614   ac_cs_awk_cr='\\r'
27615 else
27616   ac_cs_awk_cr=$ac_cr
27617 fi
27618
27619 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27620 _ACEOF
27621
27622 # Create commands to substitute file output variables.
27623 {
27624   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27625   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27626   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27627   echo "_ACAWK" &&
27628   echo "_ACEOF"
27629 } >conf$$files.sh &&
27630 . ./conf$$files.sh ||
27631   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27632 rm -f conf$$files.sh
27633
27634 {
27635   echo "cat >conf$$subs.awk <<_ACEOF" &&
27636   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27637   echo "_ACEOF"
27638 } >conf$$subs.sh ||
27639   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27640 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27641 ac_delim='%!_!# '
27642 for ac_last_try in false false false false false :; do
27643   . ./conf$$subs.sh ||
27644     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27645
27646   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27647   if test $ac_delim_n = $ac_delim_num; then
27648     break
27649   elif $ac_last_try; then
27650     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27651   else
27652     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27653   fi
27654 done
27655 rm -f conf$$subs.sh
27656
27657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27658 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27659 _ACEOF
27660 sed -n '
27661 h
27662 s/^/S["/; s/!.*/"]=/
27663 p
27664 g
27665 s/^[^!]*!//
27666 :repl
27667 t repl
27668 s/'"$ac_delim"'$//
27669 t delim
27670 :nl
27671 h
27672 s/\(.\{148\}\)..*/\1/
27673 t more1
27674 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27675 p
27676 n
27677 b repl
27678 :more1
27679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27680 p
27681 g
27682 s/.\{148\}//
27683 t nl
27684 :delim
27685 h
27686 s/\(.\{148\}\)..*/\1/
27687 t more2
27688 s/["\\]/\\&/g; s/^/"/; s/$/"/
27689 p
27690 b
27691 :more2
27692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27693 p
27694 g
27695 s/.\{148\}//
27696 t delim
27697 ' <conf$$subs.awk | sed '
27698 /^[^""]/{
27699   N
27700   s/\n//
27701 }
27702 ' >>$CONFIG_STATUS || ac_write_fail=1
27703 rm -f conf$$subs.awk
27704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27705 _ACAWK
27706 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27707   for (key in S) S_is_set[key] = 1
27708   FS = "\a"
27709   \$ac_cs_awk_pipe_init
27710 }
27711 {
27712   line = $ 0
27713   nfields = split(line, field, "@")
27714   substed = 0
27715   len = length(field[1])
27716   for (i = 2; i < nfields; i++) {
27717     key = field[i]
27718     keylen = length(key)
27719     if (S_is_set[key]) {
27720       value = S[key]
27721       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27722       len += length(value) + length(field[++i])
27723       substed = 1
27724     } else
27725       len += 1 + keylen
27726   }
27727   if (nfields == 3 && !substed) {
27728     key = field[2]
27729     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27730       \$ac_cs_awk_read_file
27731       next
27732     }
27733   }
27734   print line
27735 }
27736 \$ac_cs_awk_pipe_fini
27737 _ACAWK
27738 _ACEOF
27739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27740 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27741   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27742 else
27743   cat
27744 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27745   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27746 _ACEOF
27747
27748 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27749 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27750 # trailing colons and then remove the whole line if VPATH becomes empty
27751 # (actually we leave an empty line to preserve line numbers).
27752 if test "x$srcdir" = x.; then
27753   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27754 h
27755 s///
27756 s/^/:/
27757 s/[      ]*$/:/
27758 s/:\$(srcdir):/:/g
27759 s/:\${srcdir}:/:/g
27760 s/:@srcdir@:/:/g
27761 s/^:*//
27762 s/:*$//
27763 x
27764 s/\(=[   ]*\).*/\1/
27765 G
27766 s/\n//
27767 s/^[^=]*=[       ]*$//
27768 }'
27769 fi
27770
27771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27772 fi # test -n "$CONFIG_FILES"
27773
27774 # Set up the scripts for CONFIG_HEADERS section.
27775 # No need to generate them if there are no CONFIG_HEADERS.
27776 # This happens for instance with `./config.status Makefile'.
27777 if test -n "$CONFIG_HEADERS"; then
27778 cat >"$tmp/defines.awk" <<\_ACAWK ||
27779 BEGIN {
27780 _ACEOF
27781
27782 # Transform confdefs.h into an awk script `defines.awk', embedded as
27783 # here-document in config.status, that substitutes the proper values into
27784 # config.h.in to produce config.h.
27785
27786 # Create a delimiter string that does not exist in confdefs.h, to ease
27787 # handling of long lines.
27788 ac_delim='%!_!# '
27789 for ac_last_try in false false :; do
27790   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27791   if test -z "$ac_t"; then
27792     break
27793   elif $ac_last_try; then
27794     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27795   else
27796     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27797   fi
27798 done
27799
27800 # For the awk script, D is an array of macro values keyed by name,
27801 # likewise P contains macro parameters if any.  Preserve backslash
27802 # newline sequences.
27803
27804 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27805 sed -n '
27806 s/.\{148\}/&'"$ac_delim"'/g
27807 t rset
27808 :rset
27809 s/^[     ]*#[    ]*define[       ][      ]*/ /
27810 t def
27811 d
27812 :def
27813 s/\\$//
27814 t bsnl
27815 s/["\\]/\\&/g
27816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27817 D["\1"]=" \3"/p
27818 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27819 d
27820 :bsnl
27821 s/["\\]/\\&/g
27822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27823 D["\1"]=" \3\\\\\\n"\\/p
27824 t cont
27825 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27826 t cont
27827 d
27828 :cont
27829 n
27830 s/.\{148\}/&'"$ac_delim"'/g
27831 t clear
27832 :clear
27833 s/\\$//
27834 t bsnlc
27835 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27836 d
27837 :bsnlc
27838 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27839 b cont
27840 ' <confdefs.h | sed '
27841 s/'"$ac_delim"'/"\\\
27842 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27843
27844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27845   for (key in D) D_is_set[key] = 1
27846   FS = "\a"
27847 }
27848 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27849   line = \$ 0
27850   split(line, arg, " ")
27851   if (arg[1] == "#") {
27852     defundef = arg[2]
27853     mac1 = arg[3]
27854   } else {
27855     defundef = substr(arg[1], 2)
27856     mac1 = arg[2]
27857   }
27858   split(mac1, mac2, "(") #)
27859   macro = mac2[1]
27860   prefix = substr(line, 1, index(line, defundef) - 1)
27861   if (D_is_set[macro]) {
27862     # Preserve the white space surrounding the "#".
27863     print prefix "define", macro P[macro] D[macro]
27864     next
27865   } else {
27866     # Replace #undef with comments.  This is necessary, for example,
27867     # in the case of _POSIX_SOURCE, which is predefined and required
27868     # on some systems where configure will not decide to define it.
27869     if (defundef == "undef") {
27870       print "/*", prefix defundef, macro, "*/"
27871       next
27872     }
27873   }
27874 }
27875 { print }
27876 _ACAWK
27877 _ACEOF
27878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27879   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27880 fi # test -n "$CONFIG_HEADERS"
27881
27882
27883 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27884 shift
27885 for ac_tag
27886 do
27887   case $ac_tag in
27888   :[FHLC]) ac_mode=$ac_tag; continue;;
27889   esac
27890   case $ac_mode$ac_tag in
27891   :[FHL]*:*);;
27892   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27893   :[FH]-) ac_tag=-:-;;
27894   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27895   esac
27896   ac_save_IFS=$IFS
27897   IFS=:
27898   set x $ac_tag
27899   IFS=$ac_save_IFS
27900   shift
27901   ac_file=$1
27902   shift
27903
27904   case $ac_mode in
27905   :L) ac_source=$1;;
27906   :[FH])
27907     ac_file_inputs=
27908     for ac_f
27909     do
27910       case $ac_f in
27911       -) ac_f="$tmp/stdin";;
27912       *) # Look for the file first in the build tree, then in the source tree
27913          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27914          # because $ac_f cannot contain `:'.
27915          test -f "$ac_f" ||
27916            case $ac_f in
27917            [\\/$]*) false;;
27918            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27919            esac ||
27920            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27921       esac
27922       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27923       as_fn_append ac_file_inputs " '$ac_f'"
27924     done
27925
27926     # Let's still pretend it is `configure' which instantiates (i.e., don't
27927     # use $as_me), people would be surprised to read:
27928     #    /* config.h.  Generated by config.status.  */
27929     configure_input='Generated from '`
27930           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27931         `' by configure.'
27932     if test x"$ac_file" != x-; then
27933       configure_input="$ac_file.  $configure_input"
27934       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27935 $as_echo "$as_me: creating $ac_file" >&6;}
27936     fi
27937     # Neutralize special characters interpreted by sed in replacement strings.
27938     case $configure_input in #(
27939     *\&* | *\|* | *\\* )
27940        ac_sed_conf_input=`$as_echo "$configure_input" |
27941        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27942     *) ac_sed_conf_input=$configure_input;;
27943     esac
27944
27945     case $ac_tag in
27946     *:-:* | *:-) cat >"$tmp/stdin" \
27947       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27948     esac
27949     ;;
27950   esac
27951
27952   ac_dir=`$as_dirname -- "$ac_file" ||
27953 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27954          X"$ac_file" : 'X\(//\)[^/]' \| \
27955          X"$ac_file" : 'X\(//\)$' \| \
27956          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27957 $as_echo X"$ac_file" |
27958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27959             s//\1/
27960             q
27961           }
27962           /^X\(\/\/\)[^/].*/{
27963             s//\1/
27964             q
27965           }
27966           /^X\(\/\/\)$/{
27967             s//\1/
27968             q
27969           }
27970           /^X\(\/\).*/{
27971             s//\1/
27972             q
27973           }
27974           s/.*/./; q'`
27975   as_dir="$ac_dir"; as_fn_mkdir_p
27976   ac_builddir=.
27977
27978 case "$ac_dir" in
27979 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27980 *)
27981   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27982   # A ".." for each directory in $ac_dir_suffix.
27983   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27984   case $ac_top_builddir_sub in
27985   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27986   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27987   esac ;;
27988 esac
27989 ac_abs_top_builddir=$ac_pwd
27990 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27991 # for backward compatibility:
27992 ac_top_builddir=$ac_top_build_prefix
27993
27994 case $srcdir in
27995   .)  # We are building in place.
27996     ac_srcdir=.
27997     ac_top_srcdir=$ac_top_builddir_sub
27998     ac_abs_top_srcdir=$ac_pwd ;;
27999   [\\/]* | ?:[\\/]* )  # Absolute name.
28000     ac_srcdir=$srcdir$ac_dir_suffix;
28001     ac_top_srcdir=$srcdir
28002     ac_abs_top_srcdir=$srcdir ;;
28003   *) # Relative name.
28004     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28005     ac_top_srcdir=$ac_top_build_prefix$srcdir
28006     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28007 esac
28008 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28009
28010
28011   case $ac_mode in
28012   :F)
28013   #
28014   # CONFIG_FILE
28015   #
28016
28017   case $INSTALL in
28018   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28019   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28020   esac
28021 _ACEOF
28022
28023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28024 # If the template does not know about datarootdir, expand it.
28025 # FIXME: This hack should be removed a few years after 2.60.
28026 ac_datarootdir_hack=; ac_datarootdir_seen=
28027 ac_sed_dataroot='
28028 /datarootdir/ {
28029   p
28030   q
28031 }
28032 /@datadir@/p
28033 /@docdir@/p
28034 /@infodir@/p
28035 /@localedir@/p
28036 /@mandir@/p'
28037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28038 *datarootdir*) ac_datarootdir_seen=yes;;
28039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28040   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28041 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28042 _ACEOF
28043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28044   ac_datarootdir_hack='
28045   s&@datadir@&$datadir&g
28046   s&@docdir@&$docdir&g
28047   s&@infodir@&$infodir&g
28048   s&@localedir@&$localedir&g
28049   s&@mandir@&$mandir&g
28050   s&\\\${datarootdir}&$datarootdir&g' ;;
28051 esac
28052 _ACEOF
28053
28054 # Neutralize VPATH when `$srcdir' = `.'.
28055 # Shell code in configure.ac might set extrasub.
28056 # FIXME: do we really want to maintain this feature?
28057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28058 ac_sed_extra="$ac_vpsub
28059 $extrasub
28060 _ACEOF
28061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28062 :t
28063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28064 s|@configure_input@|$ac_sed_conf_input|;t t
28065 s&@top_builddir@&$ac_top_builddir_sub&;t t
28066 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28067 s&@srcdir@&$ac_srcdir&;t t
28068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28069 s&@top_srcdir@&$ac_top_srcdir&;t t
28070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28071 s&@builddir@&$ac_builddir&;t t
28072 s&@abs_builddir@&$ac_abs_builddir&;t t
28073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28074 s&@INSTALL@&$ac_INSTALL&;t t
28075 $ac_datarootdir_hack
28076 "
28077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28078 if $ac_cs_awk_getline; then
28079   $AWK -f "$tmp/subs.awk"
28080 else
28081   $AWK -f "$tmp/subs.awk" | $SHELL
28082 fi >$tmp/out \
28083   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28084
28085 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28086   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28087   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28088   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28089 which seems to be undefined.  Please make sure it is defined" >&5
28090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28091 which seems to be undefined.  Please make sure it is defined" >&2;}
28092
28093   rm -f "$tmp/stdin"
28094   case $ac_file in
28095   -) cat "$tmp/out" && rm -f "$tmp/out";;
28096   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28097   esac \
28098   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28099  ;;
28100   :H)
28101   #
28102   # CONFIG_HEADER
28103   #
28104   if test x"$ac_file" != x-; then
28105     {
28106       $as_echo "/* $configure_input  */" \
28107       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28108     } >"$tmp/config.h" \
28109       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28110     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28111       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28113     else
28114       rm -f "$ac_file"
28115       mv "$tmp/config.h" "$ac_file" \
28116         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28117     fi
28118   else
28119     $as_echo "/* $configure_input  */" \
28120       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28121       || as_fn_error $? "could not create -" "$LINENO" 5
28122   fi
28123  ;;
28124
28125   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28126 $as_echo "$as_me: executing $ac_file commands" >&6;}
28127  ;;
28128   esac
28129
28130
28131   case $ac_file$ac_mode in
28132     "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
28133
28134   esac
28135 done # for ac_tag
28136
28137
28138 as_fn_exit 0
28139 _ACEOF
28140 ac_clean_files=$ac_clean_files_save
28141
28142 test $ac_write_fail = 0 ||
28143   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28144
28145
28146 # configure is writing to config.log, and then calls config.status.
28147 # config.status does its own redirection, appending to config.log.
28148 # Unfortunately, on DOS this fails, as config.log is still kept open
28149 # by configure, so config.status won't be able to write to it; its
28150 # output is simply discarded.  So we exec the FD to /dev/null,
28151 # effectively closing config.log, so it can be properly (re)opened and
28152 # appended to by config.status.  When coming back to configure, we
28153 # need to make the FD available again.
28154 if test "$no_create" != yes; then
28155   ac_cs_success=:
28156   ac_config_status_args=
28157   test "$silent" = yes &&
28158     ac_config_status_args="$ac_config_status_args --quiet"
28159   exec 5>/dev/null
28160   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28161   exec 5>>config.log
28162   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28163   # would make configure fail if this is the last instruction.
28164   $ac_cs_success || as_fn_exit 1
28165 fi
28166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28167   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28169 fi
28170
28171
28172 #
28173 # Now that the Makefiles exist we can ensure that everything is rebuilt.
28174 #
28175
28176 # Check whether --with-make-clean was given.
28177 if test "${with_make_clean+set}" = set; then :
28178   withval=$with_make_clean; make_clean="$withval"
28179 else
28180   make_clean="yes"
28181 fi
28182
28183 case "$make_clean" in
28184 yes)
28185         make clean
28186         ;;
28187 esac
28188
28189 if test "X$USE_OPENSSL" = "X"; then
28190 cat << \EOF
28191 BIND is being built without OpenSSL. This means it will not have DNSSEC support.
28192 EOF
28193 fi
28194
28195 if test "X$OPENSSL_WARNING" != "X"; then
28196 cat << \EOF
28197 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28198 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28199 WARNING                                                                 WARNING
28200 WARNING         Your OpenSSL crypto library may be vulnerable to        WARNING
28201 WARNING         one or more of the the following known security         WARNING
28202 WARNING         flaws:                                                  WARNING
28203 WARNING                                                                 WARNING
28204 WARNING         CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and         WARNING
28205 WARNING         CVE-2006-2940.                                          WARNING
28206 WARNING                                                                 WARNING
28207 WARNING         It is recommended that you upgrade to OpenSSL           WARNING
28208 WARNING         version 0.9.8d/0.9.7l (or greater).                     WARNING
28209 WARNING                                                                 WARNING
28210 WARNING         You can disable this warning by specifying:             WARNING
28211 WARNING                                                                 WARNING
28212 WARNING               --disable-openssl-version-check                   WARNING
28213 WARNING                                                                 WARNING
28214 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28215 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
28216 EOF
28217 fi
28218
28219 # Tell Emacs to edit this file in shell mode.
28220 # Local Variables:
28221 # mode: sh
28222 # End: