Add my configure file
[kai/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.473.22.4 2010/05/26 23:47:44 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.489.22.5 .
33 # Guess values for system-dependent variables and create Makefiles.
34 # Generated by GNU Autoconf 2.62.
35 #
36 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
37 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
38 # This configure script is free software; the Free Software Foundation
39 # gives unlimited permission to copy, distribute and modify it.
40 ## --------------------- ##
41 ## M4sh Initialization.  ##
42 ## --------------------- ##
43
44 # Be more Bourne compatible
45 DUALCASE=1; export DUALCASE # for MKS sh
46 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47   emulate sh
48   NULLCMD=:
49   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50   # is contrary to our usage.  Disable this feature.
51   alias -g '${1+"$@"}'='"$@"'
52   setopt NO_GLOB_SUBST
53 else
54   case `(set -o) 2>/dev/null` in
55   *posix*) set -o posix ;;
56 esac
57
58 fi
59
60
61
62
63 # PATH needs CR
64 # Avoid depending upon Character Ranges.
65 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
67 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
68 as_cr_digits='0123456789'
69 as_cr_alnum=$as_cr_Letters$as_cr_digits
70
71 as_nl='
72 '
73 export as_nl
74 # Printing a long string crashes Solaris 7 /usr/bin/printf.
75 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
76 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
77 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
78 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
79   as_echo='printf %s\n'
80   as_echo_n='printf %s'
81 else
82   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
83     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
84     as_echo_n='/usr/ucb/echo -n'
85   else
86     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
87     as_echo_n_body='eval
88       arg=$1;
89       case $arg in
90       *"$as_nl"*)
91         expr "X$arg" : "X\\(.*\\)$as_nl";
92         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
93       esac;
94       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
95     '
96     export as_echo_n_body
97     as_echo_n='sh -c $as_echo_n_body as_echo'
98   fi
99   export as_echo_body
100   as_echo='sh -c $as_echo_body as_echo'
101 fi
102
103 # The user is always right.
104 if test "${PATH_SEPARATOR+set}" != set; then
105   PATH_SEPARATOR=:
106   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
107     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
108       PATH_SEPARATOR=';'
109   }
110 fi
111
112 # Support unset when possible.
113 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
114   as_unset=unset
115 else
116   as_unset=false
117 fi
118
119
120 # IFS
121 # We need space, tab and new line, in precisely that order.  Quoting is
122 # there to prevent editors from complaining about space-tab.
123 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
124 # splitting by setting IFS to empty value.)
125 IFS=" ""        $as_nl"
126
127 # Find who we are.  Look in the path if we contain no directory separator.
128 case $0 in
129   *[\\/]* ) as_myself=$0 ;;
130   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in $PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
136 done
137 IFS=$as_save_IFS
138
139      ;;
140 esac
141 # We did not find ourselves, most probably we were run as `sh COMMAND'
142 # in which case we are not to be found in the path.
143 if test "x$as_myself" = x; then
144   as_myself=$0
145 fi
146 if test ! -f "$as_myself"; then
147   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
148   { (exit 1); exit 1; }
149 fi
150
151 # Work around bugs in pre-3.0 UWIN ksh.
152 for as_var in ENV MAIL MAILPATH
153 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
154 done
155 PS1='$ '
156 PS2='> '
157 PS4='+ '
158
159 # NLS nuisances.
160 LC_ALL=C
161 export LC_ALL
162 LANGUAGE=C
163 export LANGUAGE
164
165 # Required to use basename.
166 if expr a : '\(a\)' >/dev/null 2>&1 &&
167    test "X`expr 00001 : '.*\(...\)'`" = X001; then
168   as_expr=expr
169 else
170   as_expr=false
171 fi
172
173 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
174   as_basename=basename
175 else
176   as_basename=false
177 fi
178
179
180 # Name of the executable.
181 as_me=`$as_basename -- "$0" ||
182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
183          X"$0" : 'X\(//\)$' \| \
184          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
185 $as_echo X/"$0" |
186     sed '/^.*\/\([^/][^/]*\)\/*$/{
187             s//\1/
188             q
189           }
190           /^X\/\(\/\/\)$/{
191             s//\1/
192             q
193           }
194           /^X\/\(\/\).*/{
195             s//\1/
196             q
197           }
198           s/.*/./; q'`
199
200 # CDPATH.
201 $as_unset CDPATH
202
203
204 if test "x$CONFIG_SHELL" = x; then
205   if (eval ":") 2>/dev/null; then
206   as_have_required=yes
207 else
208   as_have_required=no
209 fi
210
211   if test $as_have_required = yes &&     (eval ":
212 (as_func_return () {
213   (exit \$1)
214 }
215 as_func_success () {
216   as_func_return 0
217 }
218 as_func_failure () {
219   as_func_return 1
220 }
221 as_func_ret_success () {
222   return 0
223 }
224 as_func_ret_failure () {
225   return 1
226 }
227
228 exitcode=0
229 if as_func_success; then
230   :
231 else
232   exitcode=1
233   echo as_func_success failed.
234 fi
235
236 if as_func_failure; then
237   exitcode=1
238   echo as_func_failure succeeded.
239 fi
240
241 if as_func_ret_success; then
242   :
243 else
244   exitcode=1
245   echo as_func_ret_success failed.
246 fi
247
248 if as_func_ret_failure; then
249   exitcode=1
250   echo as_func_ret_failure succeeded.
251 fi
252
253 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
254   :
255 else
256   exitcode=1
257   echo positional parameters were not saved.
258 fi
259
260 test \$exitcode = 0) || { (exit 1); exit 1; }
261
262 (
263   as_lineno_1=\$LINENO
264   as_lineno_2=\$LINENO
265   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
266   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
267 ") 2> /dev/null; then
268   :
269 else
270   as_candidate_shells=
271     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
272 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
273 do
274   IFS=$as_save_IFS
275   test -z "$as_dir" && as_dir=.
276   case $as_dir in
277          /*)
278            for as_base in sh bash ksh sh5; do
279              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
280            done;;
281        esac
282 done
283 IFS=$as_save_IFS
284
285
286       for as_shell in $as_candidate_shells $SHELL; do
287          # Try only shells that exist, to save several forks.
288          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
289                 { ("$as_shell") 2> /dev/null <<\_ASEOF
290 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
291   emulate sh
292   NULLCMD=:
293   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
294   # is contrary to our usage.  Disable this feature.
295   alias -g '${1+"$@"}'='"$@"'
296   setopt NO_GLOB_SUBST
297 else
298   case `(set -o) 2>/dev/null` in
299   *posix*) set -o posix ;;
300 esac
301
302 fi
303
304
305 :
306 _ASEOF
307 }; then
308   CONFIG_SHELL=$as_shell
309                as_have_required=yes
310                if { "$as_shell" 2> /dev/null <<\_ASEOF
311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
312   emulate sh
313   NULLCMD=:
314   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
315   # is contrary to our usage.  Disable this feature.
316   alias -g '${1+"$@"}'='"$@"'
317   setopt NO_GLOB_SUBST
318 else
319   case `(set -o) 2>/dev/null` in
320   *posix*) set -o posix ;;
321 esac
322
323 fi
324
325
326 :
327 (as_func_return () {
328   (exit $1)
329 }
330 as_func_success () {
331   as_func_return 0
332 }
333 as_func_failure () {
334   as_func_return 1
335 }
336 as_func_ret_success () {
337   return 0
338 }
339 as_func_ret_failure () {
340   return 1
341 }
342
343 exitcode=0
344 if as_func_success; then
345   :
346 else
347   exitcode=1
348   echo as_func_success failed.
349 fi
350
351 if as_func_failure; then
352   exitcode=1
353   echo as_func_failure succeeded.
354 fi
355
356 if as_func_ret_success; then
357   :
358 else
359   exitcode=1
360   echo as_func_ret_success failed.
361 fi
362
363 if as_func_ret_failure; then
364   exitcode=1
365   echo as_func_ret_failure succeeded.
366 fi
367
368 if ( set x; as_func_ret_success y && test x = "$1" ); then
369   :
370 else
371   exitcode=1
372   echo positional parameters were not saved.
373 fi
374
375 test $exitcode = 0) || { (exit 1); exit 1; }
376
377 (
378   as_lineno_1=$LINENO
379   as_lineno_2=$LINENO
380   test "x$as_lineno_1" != "x$as_lineno_2" &&
381   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
382
383 _ASEOF
384 }; then
385   break
386 fi
387
388 fi
389
390       done
391
392       if test "x$CONFIG_SHELL" != x; then
393   for as_var in BASH_ENV ENV
394         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
395         done
396         export CONFIG_SHELL
397         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
398 fi
399
400
401     if test $as_have_required = no; then
402   echo This script requires a shell more modern than all the
403       echo shells that I found on your system.  Please install a
404       echo modern shell, or manually run the script under such a
405       echo shell if you do have one.
406       { (exit 1); exit 1; }
407 fi
408
409
410 fi
411
412 fi
413
414
415
416 (eval "as_func_return () {
417   (exit \$1)
418 }
419 as_func_success () {
420   as_func_return 0
421 }
422 as_func_failure () {
423   as_func_return 1
424 }
425 as_func_ret_success () {
426   return 0
427 }
428 as_func_ret_failure () {
429   return 1
430 }
431
432 exitcode=0
433 if as_func_success; then
434   :
435 else
436   exitcode=1
437   echo as_func_success failed.
438 fi
439
440 if as_func_failure; then
441   exitcode=1
442   echo as_func_failure succeeded.
443 fi
444
445 if as_func_ret_success; then
446   :
447 else
448   exitcode=1
449   echo as_func_ret_success failed.
450 fi
451
452 if as_func_ret_failure; then
453   exitcode=1
454   echo as_func_ret_failure succeeded.
455 fi
456
457 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
458   :
459 else
460   exitcode=1
461   echo positional parameters were not saved.
462 fi
463
464 test \$exitcode = 0") || {
465   echo No shell found that supports shell functions.
466   echo Please tell bug-autoconf@gnu.org about your system,
467   echo including any error possibly output before this message.
468   echo This can help us improve future autoconf versions.
469   echo Configuration will now proceed without shell functions.
470 }
471
472
473
474   as_lineno_1=$LINENO
475   as_lineno_2=$LINENO
476   test "x$as_lineno_1" != "x$as_lineno_2" &&
477   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
478
479   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
480   # uniformly replaced by the line number.  The first 'sed' inserts a
481   # line-number line after each line using $LINENO; the second 'sed'
482   # does the real work.  The second script uses 'N' to pair each
483   # line-number line with the line containing $LINENO, and appends
484   # trailing '-' during substitution so that $LINENO is not a special
485   # case at line end.
486   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
487   # scripts with optimization help from Paolo Bonzini.  Blame Lee
488   # E. McMahon (1931-1989) for sed's syntax.  :-)
489   sed -n '
490     p
491     /[$]LINENO/=
492   ' <$as_myself |
493     sed '
494       s/[$]LINENO.*/&-/
495       t lineno
496       b
497       :lineno
498       N
499       :loop
500       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501       t loop
502       s/-\n.*//
503     ' >$as_me.lineno &&
504   chmod +x "$as_me.lineno" ||
505     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
506    { (exit 1); exit 1; }; }
507
508   # Don't try to exec as it changes $[0], causing all sort of problems
509   # (the dirname of $[0] is not the place where we might find the
510   # original and so on.  Autoconf is especially sensitive to this).
511   . "./$as_me.lineno"
512   # Exit status is that of the last command.
513   exit
514 }
515
516
517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
518   as_dirname=dirname
519 else
520   as_dirname=false
521 fi
522
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in
525 -n*)
526   case `echo 'x\c'` in
527   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
528   *)   ECHO_C='\c';;
529   esac;;
530 *)
531   ECHO_N='-n';;
532 esac
533 if expr a : '\(a\)' >/dev/null 2>&1 &&
534    test "X`expr 00001 : '.*\(...\)'`" = X001; then
535   as_expr=expr
536 else
537   as_expr=false
538 fi
539
540 rm -f conf$$ conf$$.exe conf$$.file
541 if test -d conf$$.dir; then
542   rm -f conf$$.dir/conf$$.file
543 else
544   rm -f conf$$.dir
545   mkdir conf$$.dir 2>/dev/null
546 fi
547 if (echo >conf$$.file) 2>/dev/null; then
548   if ln -s conf$$.file conf$$ 2>/dev/null; then
549     as_ln_s='ln -s'
550     # ... but there are two gotchas:
551     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
552     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
553     # In both cases, we have to default to `cp -p'.
554     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
555       as_ln_s='cp -p'
556   elif ln conf$$.file conf$$ 2>/dev/null; then
557     as_ln_s=ln
558   else
559     as_ln_s='cp -p'
560   fi
561 else
562   as_ln_s='cp -p'
563 fi
564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
565 rmdir conf$$.dir 2>/dev/null
566
567 if mkdir -p . 2>/dev/null; then
568   as_mkdir_p=:
569 else
570   test -d ./-p && rmdir ./-p
571   as_mkdir_p=false
572 fi
573
574 if test -x / >/dev/null 2>&1; then
575   as_test_x='test -x'
576 else
577   if ls -dL / >/dev/null 2>&1; then
578     as_ls_L_option=L
579   else
580     as_ls_L_option=
581   fi
582   as_test_x='
583     eval sh -c '\''
584       if test -d "$1"; then
585         test -d "$1/.";
586       else
587         case $1 in
588         -*)set "./$1";;
589         esac;
590         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
591         ???[sx]*):;;*)false;;esac;fi
592     '\'' sh
593   '
594 fi
595 as_executable_p=$as_test_x
596
597 # Sed expression to map a string onto a valid CPP name.
598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
599
600 # Sed expression to map a string onto a valid variable name.
601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
602
603
604
605
606 # Check that we are running under the correct shell.
607 SHELL=${CONFIG_SHELL-/bin/sh}
608
609 case X$ECHO in
610 X*--fallback-echo)
611   # Remove one level of quotation (which was required for Make).
612   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
613   ;;
614 esac
615
616 echo=${ECHO-echo}
617 if test "X$1" = X--no-reexec; then
618   # Discard the --no-reexec flag, and continue.
619   shift
620 elif test "X$1" = X--fallback-echo; then
621   # Avoid inline document here, it may be left over
622   :
623 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
624   # Yippee, $echo works!
625   :
626 else
627   # Restart under the correct shell.
628   exec $SHELL "$0" --no-reexec ${1+"$@"}
629 fi
630
631 if test "X$1" = X--fallback-echo; then
632   # used as fallback echo
633   shift
634   cat <<EOF
635 $*
636 EOF
637   exit 0
638 fi
639
640 # The HP-UX ksh and POSIX shell print the target directory to stdout
641 # if CDPATH is set.
642 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
643
644 if test -z "$ECHO"; then
645 if test "X${echo_test_string+set}" != Xset; then
646 # find a string as large as possible, as long as the shell can cope with it
647   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
648     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
649     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
650        echo_test_string=`eval $cmd` &&
651        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
652     then
653       break
654     fi
655   done
656 fi
657
658 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
659    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
660    test "X$echo_testing_string" = "X$echo_test_string"; then
661   :
662 else
663   # The Solaris, AIX, and Digital Unix default echo programs unquote
664   # backslashes.  This makes it impossible to quote backslashes using
665   #   echo "$something" | sed 's/\\/\\\\/g'
666   #
667   # So, first we look for a working echo in the user's PATH.
668
669   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
670   for dir in $PATH /usr/ucb; do
671     IFS="$lt_save_ifs"
672     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
673        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
674        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
675        test "X$echo_testing_string" = "X$echo_test_string"; then
676       echo="$dir/echo"
677       break
678     fi
679   done
680   IFS="$lt_save_ifs"
681
682   if test "X$echo" = Xecho; then
683     # We didn't find a better echo, so look for alternatives.
684     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
685        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
686        test "X$echo_testing_string" = "X$echo_test_string"; then
687       # This shell has a builtin print -r that does the trick.
688       echo='print -r'
689     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
690          test "X$CONFIG_SHELL" != X/bin/ksh; then
691       # If we have ksh, try running configure again with it.
692       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
693       export ORIGINAL_CONFIG_SHELL
694       CONFIG_SHELL=/bin/ksh
695       export CONFIG_SHELL
696       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
697     else
698       # Try using printf.
699       echo='printf %s\n'
700       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
701          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
702          test "X$echo_testing_string" = "X$echo_test_string"; then
703         # Cool, printf works
704         :
705       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
706            test "X$echo_testing_string" = 'X\t' &&
707            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
708            test "X$echo_testing_string" = "X$echo_test_string"; then
709         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
710         export CONFIG_SHELL
711         SHELL="$CONFIG_SHELL"
712         export SHELL
713         echo="$CONFIG_SHELL $0 --fallback-echo"
714       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
715            test "X$echo_testing_string" = 'X\t' &&
716            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
717            test "X$echo_testing_string" = "X$echo_test_string"; then
718         echo="$CONFIG_SHELL $0 --fallback-echo"
719       else
720         # maybe with a smaller string...
721         prev=:
722
723         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
724           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
725           then
726             break
727           fi
728           prev="$cmd"
729         done
730
731         if test "$prev" != 'sed 50q "$0"'; then
732           echo_test_string=`eval $prev`
733           export echo_test_string
734           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
735         else
736           # Oops.  We lost completely, so just stick with echo.
737           echo=echo
738         fi
739       fi
740     fi
741   fi
742 fi
743 fi
744
745 # Copy echo and quote the copy suitably for passing to libtool from
746 # the Makefile, instead of quoting the original, which is used later.
747 ECHO=$echo
748 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
749    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
750 fi
751
752
753
754
755 tagnames=${tagnames+${tagnames},}CXX
756
757 tagnames=${tagnames+${tagnames},}F77
758
759 exec 7<&0 </dev/null 6>&1
760
761 # Name of the host.
762 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
763 # so uname gets run too.
764 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
765
766 #
767 # Initializations.
768 #
769 ac_default_prefix=/usr/local
770 ac_clean_files=
771 ac_config_libobj_dir=.
772 LIBOBJS=
773 cross_compiling=no
774 subdirs=
775 MFLAGS=
776 MAKEFLAGS=
777 SHELL=${CONFIG_SHELL-/bin/sh}
778
779 # Identity of this package.
780 PACKAGE_NAME=
781 PACKAGE_TARNAME=
782 PACKAGE_VERSION=
783 PACKAGE_STRING=
784 PACKAGE_BUGREPORT=
785
786 ac_unique_file="lib/dns/name.c"
787 # Factoring default headers for most tests.
788 ac_includes_default="\
789 #include <stdio.h>
790 #ifdef HAVE_SYS_TYPES_H
791 # include <sys/types.h>
792 #endif
793 #ifdef HAVE_SYS_STAT_H
794 # include <sys/stat.h>
795 #endif
796 #ifdef STDC_HEADERS
797 # include <stdlib.h>
798 # include <stddef.h>
799 #else
800 # ifdef HAVE_STDLIB_H
801 #  include <stdlib.h>
802 # endif
803 #endif
804 #ifdef HAVE_STRING_H
805 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
806 #  include <memory.h>
807 # endif
808 # include <string.h>
809 #endif
810 #ifdef HAVE_STRINGS_H
811 # include <strings.h>
812 #endif
813 #ifdef HAVE_INTTYPES_H
814 # include <inttypes.h>
815 #endif
816 #ifdef HAVE_STDINT_H
817 # include <stdint.h>
818 #endif
819 #ifdef HAVE_UNISTD_H
820 # include <unistd.h>
821 #endif"
822
823 ac_subst_vars='SHELL
824 PATH_SEPARATOR
825 PACKAGE_NAME
826 PACKAGE_TARNAME
827 PACKAGE_VERSION
828 PACKAGE_STRING
829 PACKAGE_BUGREPORT
830 exec_prefix
831 prefix
832 program_transform_name
833 bindir
834 sbindir
835 libexecdir
836 datarootdir
837 datadir
838 sysconfdir
839 sharedstatedir
840 localstatedir
841 includedir
842 oldincludedir
843 docdir
844 infodir
845 htmldir
846 dvidir
847 pdfdir
848 psdir
849 libdir
850 localedir
851 mandir
852 DEFS
853 ECHO_C
854 ECHO_N
855 ECHO_T
856 LIBS
857 build_alias
858 host_alias
859 target_alias
860 build
861 build_cpu
862 build_vendor
863 build_os
864 host
865 host_cpu
866 host_vendor
867 host_os
868 SET_MAKE
869 CC
870 CFLAGS
871 LDFLAGS
872 CPPFLAGS
873 ac_ct_CC
874 EXEEXT
875 OBJEXT
876 SED
877 GREP
878 EGREP
879 LN_S
880 ECHO
881 AR
882 RANLIB
883 STRIP
884 DSYMUTIL
885 NMEDIT
886 CPP
887 CXX
888 CXXFLAGS
889 ac_ct_CXX
890 CXXCPP
891 F77
892 FFLAGS
893 ac_ct_F77
894 LIBTOOL
895 INSTALL_PROGRAM
896 INSTALL_SCRIPT
897 INSTALL_DATA
898 STD_CINCLUDES
899 STD_CDEFINES
900 STD_CWARNINGS
901 CCOPT
902 ARFLAGS
903 LN
904 ETAGS
905 PERL
906 ISC_SOCKADDR_LEN_T
907 ISC_PLATFORM_HAVELONGLONG
908 ISC_PLATFORM_NORETURN_PRE
909 ISC_PLATFORM_NORETURN_POST
910 ISC_PLATFORM_HAVELIFCONF
911 ISC_PLATFORM_HAVEKQUEUE
912 ISC_PLATFORM_HAVEEPOLL
913 ISC_PLATFORM_HAVEDEVPOLL
914 ISC_PLATFORM_NEEDSYSSELECTH
915 LWRES_PLATFORM_NEEDSYSSELECTH
916 USE_OPENSSL
917 DST_OPENSSL_INC
918 ISC_PLATFORM_OPENSSLHASH
919 ISC_OPENSSL_INC
920 USE_PKCS11
921 PKCS11_TOOLS
922 PKCS11_PROVIDER
923 ISC_PLATFORM_HAVEGSSAPI
924 ISC_PLATFORM_GSSAPIHEADER
925 USE_GSSAPI
926 DST_GSSAPI_INC
927 DNS_GSSAPI_LIBS
928 DNS_CRYPTO_LIBS
929 ALWAYS_DEFINES
930 ISC_PLATFORM_USETHREADS
931 ISC_THREAD_DIR
932 MKDEPCC
933 MKDEPCFLAGS
934 MKDEPPROG
935 IRIX_DNSSEC_WARNINGS_HACK
936 purify_path
937 PURIFY
938 ISC_PLATFORM_USEBACKTRACE
939 MKSYMTBL_PROGRAM
940 ALWAYS_MAKE_SYMTABLE
941 O
942 A
943 SA
944 LIBTOOL_MKDEP_SED
945 LIBTOOL_MODE_COMPILE
946 LIBTOOL_MODE_INSTALL
947 LIBTOOL_MODE_LINK
948 LIBTOOL_ALLOW_UNDEFINED
949 LIBTOOL_IN_MAIN
950 LIBEXPORT
951 BIND9_CO_RULE
952 export_libdir
953 export_includedir
954 ISC_PLATFORM_HAVEIPV6
955 LWRES_PLATFORM_HAVEIPV6
956 ISC_PLATFORM_NEEDNETINETIN6H
957 LWRES_PLATFORM_NEEDNETINETIN6H
958 ISC_PLATFORM_NEEDNETINET6IN6H
959 LWRES_PLATFORM_NEEDNETINET6IN6H
960 ISC_PLATFORM_HAVEINADDR6
961 LWRES_PLATFORM_HAVEINADDR6
962 ISC_PLATFORM_NEEDIN6ADDRANY
963 LWRES_PLATFORM_NEEDIN6ADDRANY
964 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
965 LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
966 ISC_PLATFORM_HAVEIN6PKTINFO
967 ISC_PLATFORM_FIXIN6ISADDR
968 ISC_IPV6_H
969 ISC_IPV6_O
970 ISC_ISCIPV6_O
971 ISC_IPV6_C
972 LWRES_HAVE_SIN6_SCOPE_ID
973 ISC_PLATFORM_HAVESCOPEID
974 ISC_PLATFORM_HAVEIF_LADDRREQ
975 ISC_PLATFORM_HAVEIF_LADDRCONF
976 ISC_PLATFORM_NEEDNTOP
977 ISC_PLATFORM_NEEDPTON
978 ISC_PLATFORM_HAVESALEN
979 LWRES_PLATFORM_HAVESALEN
980 ISC_PLATFORM_MSGHDRFLAVOR
981 ISC_PLATFORM_NEEDPORTT
982 ISC_LWRES_NEEDADDRINFO
983 ISC_IRS_NEEDADDRINFO
984 ISC_LWRES_NEEDRRSETINFO
985 ISC_LWRES_SETHOSTENTINT
986 ISC_LWRES_ENDHOSTENTINT
987 ISC_LWRES_GETNETBYADDRINADDR
988 ISC_LWRES_SETNETENTINT
989 ISC_LWRES_ENDNETENTINT
990 ISC_LWRES_GETHOSTBYADDRVOID
991 ISC_LWRES_NEEDHERRNO
992 ISC_LWRES_GETIPNODEPROTO
993 ISC_LWRES_GETADDRINFOPROTO
994 ISC_LWRES_GETNAMEINFOPROTO
995 ISC_IRS_GETNAMEINFOSOCKLEN
996 ISC_PLATFORM_NEEDSTRSEP
997 ISC_PLATFORM_NEEDMEMMOVE
998 ISC_PLATFORM_NEEDSTRTOUL
999 LWRES_PLATFORM_NEEDSTRTOUL
1000 GENRANDOMLIB
1001 ISC_PLATFORM_NEEDSTRLCPY
1002 ISC_PLATFORM_NEEDSTRLCAT
1003 ISC_PLATFORM_NEEDSPRINTF
1004 LWRES_PLATFORM_NEEDSPRINTF
1005 ISC_PLATFORM_NEEDVSNPRINTF
1006 LWRES_PLATFORM_NEEDVSNPRINTF
1007 ISC_EXTRA_OBJS
1008 ISC_EXTRA_SRCS
1009 USE_ISC_SPNEGO
1010 DST_EXTRA_OBJS
1011 DST_EXTRA_SRCS
1012 ISC_PLATFORM_QUADFORMAT
1013 LWRES_PLATFORM_QUADFORMAT
1014 ISC_PLATFORM_HAVESYSUNH
1015 ISC_PLATFORM_RLIMITTYPE
1016 ISC_PLATFORM_USEDECLSPEC
1017 LWRES_PLATFORM_USEDECLSPEC
1018 IRS_PLATFORM_USEDECLSPEC
1019 ISC_PLATFORM_BRACEPTHREADONCEINIT
1020 ISC_PLATFORM_HAVESTRINGSH
1021 ISC_PLATFORM_HAVEIFNAMETOINDEX
1022 ISC_PLATFORM_HAVEXADD
1023 ISC_PLATFORM_HAVEXADDQ
1024 ISC_PLATFORM_HAVECMPXCHG
1025 ISC_PLATFORM_HAVEATOMICSTORE
1026 ISC_PLATFORM_USEGCCASM
1027 ISC_PLATFORM_USEOSFASM
1028 ISC_PLATFORM_USESTDASM
1029 ISC_PLATFORM_USEMACASM
1030 ISC_ARCH_DIR
1031 LATEX
1032 PDFLATEX
1033 W3M
1034 XSLTPROC
1035 XMLLINT
1036 DOXYGEN
1037 XSLT_DOCBOOK_STYLE_HTML
1038 XSLT_DOCBOOK_STYLE_XHTML
1039 XSLT_DOCBOOK_STYLE_MAN
1040 XSLT_DOCBOOK_CHUNK_HTML
1041 XSLT_DOCBOOK_CHUNK_XHTML
1042 XSLT_DOCBOOK_CHUNKTOC_HTML
1043 XSLT_DOCBOOK_CHUNKTOC_XHTML
1044 XSLT_DOCBOOK_MAKETOC_HTML
1045 XSLT_DOCBOOK_MAKETOC_XHTML
1046 XSLT_DB2LATEX_STYLE
1047 XSLT_DB2LATEX_ADMONITIONS
1048 IDNLIBS
1049 BIND9_TOP_BUILDDIR
1050 BIND9_ISC_BUILDINCLUDE
1051 BIND9_ISCCC_BUILDINCLUDE
1052 BIND9_ISCCFG_BUILDINCLUDE
1053 BIND9_DNS_BUILDINCLUDE
1054 BIND9_LWRES_BUILDINCLUDE
1055 BIND9_BIND9_BUILDINCLUDE
1056 BIND9_VERSION
1057 BIND9_CONFIGARGS
1058 PG_CONFIG
1059 USE_DLZ
1060 DLZ_DRIVER_INCLUDES
1061 DLZ_DRIVER_LIBS
1062 DLZ_DRIVER_SRCS
1063 DLZ_DRIVER_OBJS
1064 BUILD_CC
1065 BUILD_CFLAGS
1066 BUILD_CPPFLAGS
1067 BUILD_LDFLAGS
1068 BUILD_LIBS
1069 LIBOBJS
1070 LTLIBOBJS'
1071 ac_subst_files='BIND9_MAKE_INCLUDES
1072 BIND9_MAKE_RULES
1073 LIBISC_API
1074 LIBISCCC_API
1075 LIBISCCFG_API
1076 LIBDNS_API
1077 LIBBIND9_API
1078 LIBLWRES_API
1079 LIBIRS_API
1080 DLZ_DRIVER_RULES'
1081 ac_user_opts='
1082 enable_option_checking
1083 enable_shared
1084 enable_static
1085 enable_fast_install
1086 with_gnu_ld
1087 enable_libtool_lock
1088 with_pic
1089 with_tags
1090 enable_libbind
1091 enable_kqueue
1092 enable_epoll
1093 enable_devpoll
1094 with_openssl
1095 enable_openssl_version_check
1096 enable_openssl_hash
1097 with_pkcs11
1098 with_gssapi
1099 with_randomdev
1100 enable_threads
1101 with_ptl2
1102 with_libxml2
1103 enable_largefile
1104 with_purify
1105 with_libtool
1106 enable_backtrace
1107 enable_symtable
1108 enable_exportlib
1109 with_export_libdir
1110 with_export_includedir
1111 enable_ipv6
1112 with_kame
1113 enable_getifaddrs
1114 enable_isc_spnego
1115 enable_chroot
1116 enable_linux_caps
1117 enable_atomic
1118 enable_fixed_rrset
1119 enable_filter_aaaa
1120 with_docbook_xsl
1121 with_idn
1122 with_libiconv
1123 with_iconv
1124 with_idnlib
1125 with_dlz_postgres
1126 with_dlz_mysql
1127 with_dlz_bdb
1128 with_dlz_filesystem
1129 with_dlz_ldap
1130 with_dlz_odbc
1131 with_dlz_stub
1132 with_make_clean
1133 '
1134       ac_precious_vars='build_alias
1135 host_alias
1136 target_alias
1137 CC
1138 CFLAGS
1139 LDFLAGS
1140 LIBS
1141 CPPFLAGS
1142 CPP
1143 CXX
1144 CXXFLAGS
1145 CCC
1146 CXXCPP
1147 F77
1148 FFLAGS'
1149
1150
1151 # Initialize some variables set by options.
1152 ac_init_help=
1153 ac_init_version=false
1154 ac_unrecognized_opts=
1155 ac_unrecognized_sep=
1156 # The variables have the same names as the options, with
1157 # dashes changed to underlines.
1158 cache_file=/dev/null
1159 exec_prefix=NONE
1160 no_create=
1161 no_recursion=
1162 prefix=NONE
1163 program_prefix=NONE
1164 program_suffix=NONE
1165 program_transform_name=s,x,x,
1166 silent=
1167 site=
1168 srcdir=
1169 verbose=
1170 x_includes=NONE
1171 x_libraries=NONE
1172
1173 # Installation directory options.
1174 # These are left unexpanded so users can "make install exec_prefix=/foo"
1175 # and all the variables that are supposed to be based on exec_prefix
1176 # by default will actually change.
1177 # Use braces instead of parens because sh, perl, etc. also accept them.
1178 # (The list follows the same order as the GNU Coding Standards.)
1179 bindir='${exec_prefix}/bin'
1180 sbindir='${exec_prefix}/sbin'
1181 libexecdir='${exec_prefix}/libexec'
1182 datarootdir='${prefix}/share'
1183 datadir='${datarootdir}'
1184 sysconfdir='${prefix}/etc'
1185 sharedstatedir='${prefix}/com'
1186 localstatedir='${prefix}/var'
1187 includedir='${prefix}/include'
1188 oldincludedir='/usr/include'
1189 docdir='${datarootdir}/doc/${PACKAGE}'
1190 infodir='${datarootdir}/info'
1191 htmldir='${docdir}'
1192 dvidir='${docdir}'
1193 pdfdir='${docdir}'
1194 psdir='${docdir}'
1195 libdir='${exec_prefix}/lib'
1196 localedir='${datarootdir}/locale'
1197 mandir='${datarootdir}/man'
1198
1199 ac_prev=
1200 ac_dashdash=
1201 for ac_option
1202 do
1203   # If the previous option needs an argument, assign it.
1204   if test -n "$ac_prev"; then
1205     eval $ac_prev=\$ac_option
1206     ac_prev=
1207     continue
1208   fi
1209
1210   case $ac_option in
1211   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1212   *)    ac_optarg=yes ;;
1213   esac
1214
1215   # Accept the important Cygnus configure options, so we can diagnose typos.
1216
1217   case $ac_dashdash$ac_option in
1218   --)
1219     ac_dashdash=yes ;;
1220
1221   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1222     ac_prev=bindir ;;
1223   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1224     bindir=$ac_optarg ;;
1225
1226   -build | --build | --buil | --bui | --bu)
1227     ac_prev=build_alias ;;
1228   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1229     build_alias=$ac_optarg ;;
1230
1231   -cache-file | --cache-file | --cache-fil | --cache-fi \
1232   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1233     ac_prev=cache_file ;;
1234   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1235   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1236     cache_file=$ac_optarg ;;
1237
1238   --config-cache | -C)
1239     cache_file=config.cache ;;
1240
1241   -datadir | --datadir | --datadi | --datad)
1242     ac_prev=datadir ;;
1243   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1244     datadir=$ac_optarg ;;
1245
1246   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1247   | --dataroo | --dataro | --datar)
1248     ac_prev=datarootdir ;;
1249   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1250   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1251     datarootdir=$ac_optarg ;;
1252
1253   -disable-* | --disable-*)
1254     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1258    { (exit 1); exit 1; }; }
1259     ac_useropt_orig=$ac_useropt
1260     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261     case $ac_user_opts in
1262       *"
1263 "enable_$ac_useropt"
1264 "*) ;;
1265       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266          ac_unrecognized_sep=', ';;
1267     esac
1268     eval enable_$ac_useropt=no ;;
1269
1270   -docdir | --docdir | --docdi | --doc | --do)
1271     ac_prev=docdir ;;
1272   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273     docdir=$ac_optarg ;;
1274
1275   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1276     ac_prev=dvidir ;;
1277   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278     dvidir=$ac_optarg ;;
1279
1280   -enable-* | --enable-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1285    { (exit 1); exit 1; }; }
1286     ac_useropt_orig=$ac_useropt
1287     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288     case $ac_user_opts in
1289       *"
1290 "enable_$ac_useropt"
1291 "*) ;;
1292       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1293          ac_unrecognized_sep=', ';;
1294     esac
1295     eval enable_$ac_useropt=\$ac_optarg ;;
1296
1297   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1298   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1299   | --exec | --exe | --ex)
1300     ac_prev=exec_prefix ;;
1301   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1302   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1303   | --exec=* | --exe=* | --ex=*)
1304     exec_prefix=$ac_optarg ;;
1305
1306   -gas | --gas | --ga | --g)
1307     # Obsolete; use --with-gas.
1308     with_gas=yes ;;
1309
1310   -help | --help | --hel | --he | -h)
1311     ac_init_help=long ;;
1312   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1313     ac_init_help=recursive ;;
1314   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1315     ac_init_help=short ;;
1316
1317   -host | --host | --hos | --ho)
1318     ac_prev=host_alias ;;
1319   -host=* | --host=* | --hos=* | --ho=*)
1320     host_alias=$ac_optarg ;;
1321
1322   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1323     ac_prev=htmldir ;;
1324   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1325   | --ht=*)
1326     htmldir=$ac_optarg ;;
1327
1328   -includedir | --includedir | --includedi | --included | --include \
1329   | --includ | --inclu | --incl | --inc)
1330     ac_prev=includedir ;;
1331   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1332   | --includ=* | --inclu=* | --incl=* | --inc=*)
1333     includedir=$ac_optarg ;;
1334
1335   -infodir | --infodir | --infodi | --infod | --info | --inf)
1336     ac_prev=infodir ;;
1337   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1338     infodir=$ac_optarg ;;
1339
1340   -libdir | --libdir | --libdi | --libd)
1341     ac_prev=libdir ;;
1342   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1343     libdir=$ac_optarg ;;
1344
1345   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1346   | --libexe | --libex | --libe)
1347     ac_prev=libexecdir ;;
1348   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1349   | --libexe=* | --libex=* | --libe=*)
1350     libexecdir=$ac_optarg ;;
1351
1352   -localedir | --localedir | --localedi | --localed | --locale)
1353     ac_prev=localedir ;;
1354   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1355     localedir=$ac_optarg ;;
1356
1357   -localstatedir | --localstatedir | --localstatedi | --localstated \
1358   | --localstate | --localstat | --localsta | --localst | --locals)
1359     ac_prev=localstatedir ;;
1360   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1361   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1362     localstatedir=$ac_optarg ;;
1363
1364   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1365     ac_prev=mandir ;;
1366   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1367     mandir=$ac_optarg ;;
1368
1369   -nfp | --nfp | --nf)
1370     # Obsolete; use --without-fp.
1371     with_fp=no ;;
1372
1373   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1374   | --no-cr | --no-c | -n)
1375     no_create=yes ;;
1376
1377   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1378   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1379     no_recursion=yes ;;
1380
1381   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1382   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1383   | --oldin | --oldi | --old | --ol | --o)
1384     ac_prev=oldincludedir ;;
1385   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1386   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1387   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1388     oldincludedir=$ac_optarg ;;
1389
1390   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1391     ac_prev=prefix ;;
1392   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1393     prefix=$ac_optarg ;;
1394
1395   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1396   | --program-pre | --program-pr | --program-p)
1397     ac_prev=program_prefix ;;
1398   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1399   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1400     program_prefix=$ac_optarg ;;
1401
1402   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1403   | --program-suf | --program-su | --program-s)
1404     ac_prev=program_suffix ;;
1405   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1406   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1407     program_suffix=$ac_optarg ;;
1408
1409   -program-transform-name | --program-transform-name \
1410   | --program-transform-nam | --program-transform-na \
1411   | --program-transform-n | --program-transform- \
1412   | --program-transform | --program-transfor \
1413   | --program-transfo | --program-transf \
1414   | --program-trans | --program-tran \
1415   | --progr-tra | --program-tr | --program-t)
1416     ac_prev=program_transform_name ;;
1417   -program-transform-name=* | --program-transform-name=* \
1418   | --program-transform-nam=* | --program-transform-na=* \
1419   | --program-transform-n=* | --program-transform-=* \
1420   | --program-transform=* | --program-transfor=* \
1421   | --program-transfo=* | --program-transf=* \
1422   | --program-trans=* | --program-tran=* \
1423   | --progr-tra=* | --program-tr=* | --program-t=*)
1424     program_transform_name=$ac_optarg ;;
1425
1426   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1427     ac_prev=pdfdir ;;
1428   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1429     pdfdir=$ac_optarg ;;
1430
1431   -psdir | --psdir | --psdi | --psd | --ps)
1432     ac_prev=psdir ;;
1433   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1434     psdir=$ac_optarg ;;
1435
1436   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1437   | -silent | --silent | --silen | --sile | --sil)
1438     silent=yes ;;
1439
1440   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1441     ac_prev=sbindir ;;
1442   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1443   | --sbi=* | --sb=*)
1444     sbindir=$ac_optarg ;;
1445
1446   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1447   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1448   | --sharedst | --shareds | --shared | --share | --shar \
1449   | --sha | --sh)
1450     ac_prev=sharedstatedir ;;
1451   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1452   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1453   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1454   | --sha=* | --sh=*)
1455     sharedstatedir=$ac_optarg ;;
1456
1457   -site | --site | --sit)
1458     ac_prev=site ;;
1459   -site=* | --site=* | --sit=*)
1460     site=$ac_optarg ;;
1461
1462   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1463     ac_prev=srcdir ;;
1464   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1465     srcdir=$ac_optarg ;;
1466
1467   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1468   | --syscon | --sysco | --sysc | --sys | --sy)
1469     ac_prev=sysconfdir ;;
1470   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1471   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1472     sysconfdir=$ac_optarg ;;
1473
1474   -target | --target | --targe | --targ | --tar | --ta | --t)
1475     ac_prev=target_alias ;;
1476   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1477     target_alias=$ac_optarg ;;
1478
1479   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1480     verbose=yes ;;
1481
1482   -version | --version | --versio | --versi | --vers | -V)
1483     ac_init_version=: ;;
1484
1485   -with-* | --with-*)
1486     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1487     # Reject names that are not valid shell variable names.
1488     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1490    { (exit 1); exit 1; }; }
1491     ac_useropt_orig=$ac_useropt
1492     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493     case $ac_user_opts in
1494       *"
1495 "with_$ac_useropt"
1496 "*) ;;
1497       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498          ac_unrecognized_sep=', ';;
1499     esac
1500     eval with_$ac_useropt=\$ac_optarg ;;
1501
1502   -without-* | --without-*)
1503     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504     # Reject names that are not valid shell variable names.
1505     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1506       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1507    { (exit 1); exit 1; }; }
1508     ac_useropt_orig=$ac_useropt
1509     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510     case $ac_user_opts in
1511       *"
1512 "with_$ac_useropt"
1513 "*) ;;
1514       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1515          ac_unrecognized_sep=', ';;
1516     esac
1517     eval with_$ac_useropt=no ;;
1518
1519   --x)
1520     # Obsolete; use --with-x.
1521     with_x=yes ;;
1522
1523   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1524   | --x-incl | --x-inc | --x-in | --x-i)
1525     ac_prev=x_includes ;;
1526   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1527   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1528     x_includes=$ac_optarg ;;
1529
1530   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1531   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1532     ac_prev=x_libraries ;;
1533   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1534   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1535     x_libraries=$ac_optarg ;;
1536
1537   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1538 Try \`$0 --help' for more information." >&2
1539    { (exit 1); exit 1; }; }
1540     ;;
1541
1542   *=*)
1543     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1544     # Reject names that are not valid shell variable names.
1545     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1546       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1547    { (exit 1); exit 1; }; }
1548     eval $ac_envvar=\$ac_optarg
1549     export $ac_envvar ;;
1550
1551   *)
1552     # FIXME: should be removed in autoconf 3.0.
1553     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1554     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1555       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1556     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1557     ;;
1558
1559   esac
1560 done
1561
1562 if test -n "$ac_prev"; then
1563   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1564   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1565    { (exit 1); exit 1; }; }
1566 fi
1567
1568 if test -n "$ac_unrecognized_opts"; then
1569   case $enable_option_checking in
1570     no) ;;
1571     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1572    { (exit 1); exit 1; }; } ;;
1573     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1574   esac
1575 fi
1576
1577 # Check all directory arguments for consistency.
1578 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1579                 datadir sysconfdir sharedstatedir localstatedir includedir \
1580                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1581                 libdir localedir mandir
1582 do
1583   eval ac_val=\$$ac_var
1584   # Remove trailing slashes.
1585   case $ac_val in
1586     */ )
1587       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1588       eval $ac_var=\$ac_val;;
1589   esac
1590   # Be sure to have absolute directory names.
1591   case $ac_val in
1592     [\\/$]* | ?:[\\/]* )  continue;;
1593     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1594   esac
1595   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1596    { (exit 1); exit 1; }; }
1597 done
1598
1599 # There might be people who depend on the old broken behavior: `$host'
1600 # used to hold the argument of --host etc.
1601 # FIXME: To remove some day.
1602 build=$build_alias
1603 host=$host_alias
1604 target=$target_alias
1605
1606 # FIXME: To remove some day.
1607 if test "x$host_alias" != x; then
1608   if test "x$build_alias" = x; then
1609     cross_compiling=maybe
1610     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1611     If a cross compiler is detected then cross compile mode will be used." >&2
1612   elif test "x$build_alias" != "x$host_alias"; then
1613     cross_compiling=yes
1614   fi
1615 fi
1616
1617 ac_tool_prefix=
1618 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1619
1620 test "$silent" = yes && exec 6>/dev/null
1621
1622
1623 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1624 ac_ls_di=`ls -di .` &&
1625 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1626   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1627    { (exit 1); exit 1; }; }
1628 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1629   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1630    { (exit 1); exit 1; }; }
1631
1632
1633 # Find the source files, if location was not specified.
1634 if test -z "$srcdir"; then
1635   ac_srcdir_defaulted=yes
1636   # Try the directory containing this script, then the parent directory.
1637   ac_confdir=`$as_dirname -- "$as_myself" ||
1638 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1639          X"$as_myself" : 'X\(//\)[^/]' \| \
1640          X"$as_myself" : 'X\(//\)$' \| \
1641          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1642 $as_echo X"$as_myself" |
1643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1644             s//\1/
1645             q
1646           }
1647           /^X\(\/\/\)[^/].*/{
1648             s//\1/
1649             q
1650           }
1651           /^X\(\/\/\)$/{
1652             s//\1/
1653             q
1654           }
1655           /^X\(\/\).*/{
1656             s//\1/
1657             q
1658           }
1659           s/.*/./; q'`
1660   srcdir=$ac_confdir
1661   if test ! -r "$srcdir/$ac_unique_file"; then
1662     srcdir=..
1663   fi
1664 else
1665   ac_srcdir_defaulted=no
1666 fi
1667 if test ! -r "$srcdir/$ac_unique_file"; then
1668   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1669   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1670    { (exit 1); exit 1; }; }
1671 fi
1672 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1673 ac_abs_confdir=`(
1674         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1675    { (exit 1); exit 1; }; }
1676         pwd)`
1677 # When building in place, set srcdir=.
1678 if test "$ac_abs_confdir" = "$ac_pwd"; then
1679   srcdir=.
1680 fi
1681 # Remove unnecessary trailing slashes from srcdir.
1682 # Double slashes in file names in object file debugging info
1683 # mess up M-x gdb in Emacs.
1684 case $srcdir in
1685 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1686 esac
1687 for ac_var in $ac_precious_vars; do
1688   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1689   eval ac_env_${ac_var}_value=\$${ac_var}
1690   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1691   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1692 done
1693
1694 #
1695 # Report the --help message.
1696 #
1697 if test "$ac_init_help" = "long"; then
1698   # Omit some internal or obsolete options to make the list less imposing.
1699   # This message is too long to be a string in the A/UX 3.1 sh.
1700   cat <<_ACEOF
1701 \`configure' configures this package to adapt to many kinds of systems.
1702
1703 Usage: $0 [OPTION]... [VAR=VALUE]...
1704
1705 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1706 VAR=VALUE.  See below for descriptions of some of the useful variables.
1707
1708 Defaults for the options are specified in brackets.
1709
1710 Configuration:
1711   -h, --help              display this help and exit
1712       --help=short        display options specific to this package
1713       --help=recursive    display the short help of all the included packages
1714   -V, --version           display version information and exit
1715   -q, --quiet, --silent   do not print \`checking...' messages
1716       --cache-file=FILE   cache test results in FILE [disabled]
1717   -C, --config-cache      alias for \`--cache-file=config.cache'
1718   -n, --no-create         do not create output files
1719       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1720
1721 Installation directories:
1722   --prefix=PREFIX         install architecture-independent files in PREFIX
1723                           [$ac_default_prefix]
1724   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1725                           [PREFIX]
1726
1727 By default, \`make install' will install all the files in
1728 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1729 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1730 for instance \`--prefix=\$HOME'.
1731
1732 For better control, use the options below.
1733
1734 Fine tuning of the installation directories:
1735   --bindir=DIR            user executables [EPREFIX/bin]
1736   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1737   --libexecdir=DIR        program executables [EPREFIX/libexec]
1738   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1739   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1740   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1741   --libdir=DIR            object code libraries [EPREFIX/lib]
1742   --includedir=DIR        C header files [PREFIX/include]
1743   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1744   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1745   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1746   --infodir=DIR           info documentation [DATAROOTDIR/info]
1747   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1748   --mandir=DIR            man documentation [DATAROOTDIR/man]
1749   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1750   --htmldir=DIR           html documentation [DOCDIR]
1751   --dvidir=DIR            dvi documentation [DOCDIR]
1752   --pdfdir=DIR            pdf documentation [DOCDIR]
1753   --psdir=DIR             ps documentation [DOCDIR]
1754 _ACEOF
1755
1756   cat <<\_ACEOF
1757
1758 System types:
1759   --build=BUILD     configure for building on BUILD [guessed]
1760   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1761 _ACEOF
1762 fi
1763
1764 if test -n "$ac_init_help"; then
1765
1766   cat <<\_ACEOF
1767
1768 Optional Features:
1769   --disable-option-checking  ignore unrecognized --enable/--with options
1770   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1771   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1772   --enable-shared[=PKGS]  build shared libraries [default=yes]
1773   --enable-static[=PKGS]  build static libraries [default=yes]
1774   --enable-fast-install[=PKGS]
1775                           optimize for fast installation [default=yes]
1776   --disable-libtool-lock  avoid locking (might break parallel builds)
1777   --enable-libbind        deprecated
1778   --enable-kqueue         use BSD kqueue when available [default=yes]
1779   --enable-epoll          use Linux epoll when available [default=auto]
1780   --enable-devpoll        use /dev/poll when available [default=yes]
1781   --enable-openssl-version-check
1782                           Check OpenSSL Version [default=yes]
1783   --enable-openssl-hash   use OpenSSL for hash functions [default=no]
1784   --enable-threads      enable multithreading
1785   --enable-largefile      64-bit file support
1786   --enable-backtrace      log stack backtrace on abort [default=yes]
1787   --enable-symtable       use internal symbol table for backtrace
1788                           [all|minimal(default)|none]
1789   --enable-exportlib    build exportable library (GNU make required)
1790                         [default=no]
1791   --enable-ipv6           use IPv6 default=autodetect
1792   --enable-getifaddrs     Enable the use of getifaddrs() [yes|no].
1793   --disable-isc-spnego    use SPNEGO from GSSAPI library
1794   --disable-chroot        disable chroot
1795   --disable-linux-caps    disable linux capabilities
1796   --enable-atomic         enable machine specific atomic operations
1797                           [default=autodetect]
1798   --enable-fixed-rrset    enable fixed rrset ordering
1799                           [default=no]
1800   --enable-filter-aaaa    enable filtering of AAAA records over IPv4
1801                           [default=no]
1802
1803 Optional Packages:
1804   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1805   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1806   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1807   --with-pic              try to use only PIC/non-PIC objects [default=use
1808                           both]
1809   --with-tags[=TAGS]      include additional configurations [automatic]
1810   --with-openssl=PATH     Build with OpenSSL yes|no|path.
1811                           (Required for DNSSEC)
1812   --with-pkcs11=PATH      Build with PKCS11 support yes|no|path
1813                           (PATH is for the PKCS11 provider)
1814   --with-gssapi=PATH      Specify path for system-supplied GSSAPI
1815   --with-randomdev=PATH   Specify path for random device
1816   --with-ptl2           on NetBSD, use the ptl2 thread library (experimental)
1817   --with-libxml2=PATH     Build with libxml2 library yes|no|path
1818   --with-purify=PATH      use Rational purify
1819   --with-libtool          use GNU libtool
1820   --with-export-libdir=PATH
1821                         installation directory for the export library
1822                         [EPREFIX/lib/bind9]
1823   --with-export-includedir=PATH
1824                         installation directory for the header files of the
1825                         export library [PREFIX/include/bind9]
1826   --with-kame=PATH        use Kame IPv6 default path /usr/local/v6
1827   --with-docbook-xsl=PATH Specify path for Docbook-XSL stylesheets
1828   --with-idn=MPREFIX      enable IDN support using idnkit default PREFIX
1829   --with-libiconv=IPREFIX GNU libiconv are in IPREFIX default PREFIX
1830   --with-iconv=LIBSPEC    specify iconv library default -liconv
1831   --with-idnlib=ARG       specify libidnkit
1832   --with-dlz-postgres=PATH   Build with Postgres DLZ driver yes|no|path.
1833                                (Required to use Postgres with DLZ)
1834   --with-dlz-mysql=PATH   Build with MySQL DLZ driver yes|no|path.
1835                                (Required to use MySQL with DLZ)
1836   --with-dlz-bdb=PATH   Build with Berkeley DB DLZ driver yes|no|path.
1837                                (Required to use Berkeley DB with DLZ)
1838   --with-dlz-filesystem=PATH   Build with filesystem DLZ driver yes|no.
1839                                (Required to use file system driver with DLZ)
1840   --with-dlz-ldap=PATH   Build with LDAP DLZ driver yes|no|path.
1841                                (Required to use LDAP with DLZ)
1842   --with-dlz-odbc=PATH   Build with ODBC DLZ driver yes|no|path.
1843                                (Required to use ODBC with DLZ)
1844   --with-dlz-stub=PATH   Build with stub DLZ driver yes|no.
1845                                (Required to use stub driver with DLZ)
1846   --with-make-clean      Run "make clean" at end of configure [yes|no].
1847
1848 Some influential environment variables:
1849   CC          C compiler command
1850   CFLAGS      C compiler flags
1851   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1852               nonstandard directory <lib dir>
1853   LIBS        libraries to pass to the linker, e.g. -l<library>
1854   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1855               you have headers in a nonstandard directory <include dir>
1856   CPP         C preprocessor
1857   CXX         C++ compiler command
1858   CXXFLAGS    C++ compiler flags
1859   CXXCPP      C++ preprocessor
1860   F77         Fortran 77 compiler command
1861   FFLAGS      Fortran 77 compiler flags
1862
1863 Use these variables to override the choices made by `configure' or to help
1864 it to find libraries and programs with nonstandard names/locations.
1865
1866 _ACEOF
1867 ac_status=$?
1868 fi
1869
1870 if test "$ac_init_help" = "recursive"; then
1871   # If there are subdirs, report their specific --help.
1872   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1873     test -d "$ac_dir" ||
1874       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1875       continue
1876     ac_builddir=.
1877
1878 case "$ac_dir" in
1879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1880 *)
1881   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1882   # A ".." for each directory in $ac_dir_suffix.
1883   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1884   case $ac_top_builddir_sub in
1885   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1886   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1887   esac ;;
1888 esac
1889 ac_abs_top_builddir=$ac_pwd
1890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1891 # for backward compatibility:
1892 ac_top_builddir=$ac_top_build_prefix
1893
1894 case $srcdir in
1895   .)  # We are building in place.
1896     ac_srcdir=.
1897     ac_top_srcdir=$ac_top_builddir_sub
1898     ac_abs_top_srcdir=$ac_pwd ;;
1899   [\\/]* | ?:[\\/]* )  # Absolute name.
1900     ac_srcdir=$srcdir$ac_dir_suffix;
1901     ac_top_srcdir=$srcdir
1902     ac_abs_top_srcdir=$srcdir ;;
1903   *) # Relative name.
1904     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1905     ac_top_srcdir=$ac_top_build_prefix$srcdir
1906     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1907 esac
1908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1909
1910     cd "$ac_dir" || { ac_status=$?; continue; }
1911     # Check for guested configure.
1912     if test -f "$ac_srcdir/configure.gnu"; then
1913       echo &&
1914       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1915     elif test -f "$ac_srcdir/configure"; then
1916       echo &&
1917       $SHELL "$ac_srcdir/configure" --help=recursive
1918     else
1919       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1920     fi || ac_status=$?
1921     cd "$ac_pwd" || { ac_status=$?; break; }
1922   done
1923 fi
1924
1925 test -n "$ac_init_help" && exit $ac_status
1926 if $ac_init_version; then
1927   cat <<\_ACEOF
1928 configure
1929 generated by GNU Autoconf 2.62
1930
1931 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1932 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1933 This configure script is free software; the Free Software Foundation
1934 gives unlimited permission to copy, distribute and modify it.
1935 _ACEOF
1936   exit
1937 fi
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by $as_me, which was
1943 generated by GNU Autoconf 2.62.  Invocation command line was
1944
1945   $ $0 $@
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1963
1964 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1965 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1968 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1969 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1970 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   $as_echo "PATH: $as_dir"
1980 done
1981 IFS=$as_save_IFS
1982
1983 } >&5
1984
1985 cat >&5 <<_ACEOF
1986
1987
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1991
1992 _ACEOF
1993
1994
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2005 do
2006   for ac_arg
2007   do
2008     case $ac_arg in
2009     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011     | -silent | --silent | --silen | --sile | --sil)
2012       continue ;;
2013     *\'*)
2014       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015     esac
2016     case $ac_pass in
2017     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2018     2)
2019       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2020       if test $ac_must_keep_next = true; then
2021         ac_must_keep_next=false # Got value, back to normal.
2022       else
2023         case $ac_arg in
2024           *=* | --config-cache | -C | -disable-* | --disable-* \
2025           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027           | -with-* | --with-* | -without-* | --without-* | --x)
2028             case "$ac_configure_args0 " in
2029               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030             esac
2031             ;;
2032           -* ) ac_must_keep_next=true ;;
2033         esac
2034       fi
2035       ac_configure_args="$ac_configure_args '$ac_arg'"
2036       ;;
2037     esac
2038   done
2039 done
2040 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2041 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2042
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log.  We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049   # Save into config.log some information that might help in debugging.
2050   {
2051     echo
2052
2053     cat <<\_ASBOX
2054 ## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##
2057 _ASBOX
2058     echo
2059     # The following way of writing the cache mishandles newlines in values,
2060 (
2061   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062     eval ac_val=\$$ac_var
2063     case $ac_val in #(
2064     *${as_nl}*)
2065       case $ac_var in #(
2066       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2067 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2068       esac
2069       case $ac_var in #(
2070       _ | IFS | as_nl) ;; #(
2071       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072       *) $as_unset $ac_var ;;
2073       esac ;;
2074     esac
2075   done
2076   (set) 2>&1 |
2077     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078     *${as_nl}ac_space=\ *)
2079       sed -n \
2080         "s/'\''/'\''\\\\'\'''\''/g;
2081           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2082       ;; #(
2083     *)
2084       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2085       ;;
2086     esac |
2087     sort
2088 )
2089     echo
2090
2091     cat <<\_ASBOX
2092 ## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##
2095 _ASBOX
2096     echo
2097     for ac_var in $ac_subst_vars
2098     do
2099       eval ac_val=\$$ac_var
2100       case $ac_val in
2101       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102       esac
2103       $as_echo "$ac_var='\''$ac_val'\''"
2104     done | sort
2105     echo
2106
2107     if test -n "$ac_subst_files"; then
2108       cat <<\_ASBOX
2109 ## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##
2112 _ASBOX
2113       echo
2114       for ac_var in $ac_subst_files
2115       do
2116         eval ac_val=\$$ac_var
2117         case $ac_val in
2118         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119         esac
2120         $as_echo "$ac_var='\''$ac_val'\''"
2121       done | sort
2122       echo
2123     fi
2124
2125     if test -s confdefs.h; then
2126       cat <<\_ASBOX
2127 ## ----------- ##
2128 ## confdefs.h. ##
2129 ## ----------- ##
2130 _ASBOX
2131       echo
2132       cat confdefs.h
2133       echo
2134     fi
2135     test "$ac_signal" != 0 &&
2136       $as_echo "$as_me: caught signal $ac_signal"
2137     $as_echo "$as_me: exit $exit_status"
2138   } >&5
2139   rm -f core *.core core.conftest.* &&
2140     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141     exit $exit_status
2142 ' 0
2143 for ac_signal in 1 2 13 15; do
2144   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2145 done
2146 ac_signal=0
2147
2148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2149 rm -f -r conftest* confdefs.h
2150
2151 # Predefined preprocessor variables.
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2155 _ACEOF
2156
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2160 _ACEOF
2161
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 _ACEOF
2166
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_STRING "$PACKAGE_STRING"
2170 _ACEOF
2171
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175 _ACEOF
2176
2177
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 ac_site_file1=NONE
2181 ac_site_file2=NONE
2182 if test -n "$CONFIG_SITE"; then
2183   ac_site_file1=$CONFIG_SITE
2184 elif test "x$prefix" != xNONE; then
2185   ac_site_file1=$prefix/share/config.site
2186   ac_site_file2=$prefix/etc/config.site
2187 else
2188   ac_site_file1=$ac_default_prefix/share/config.site
2189   ac_site_file2=$ac_default_prefix/etc/config.site
2190 fi
2191 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2192 do
2193   test "x$ac_site_file" = xNONE && continue
2194   if test -r "$ac_site_file"; then
2195     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2196 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2197     sed 's/^/| /' "$ac_site_file" >&5
2198     . "$ac_site_file"
2199   fi
2200 done
2201
2202 if test -r "$cache_file"; then
2203   # Some versions of bash will fail to source /dev/null (special
2204   # files actually), so we avoid doing that.
2205   if test -f "$cache_file"; then
2206     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2207 $as_echo "$as_me: loading cache $cache_file" >&6;}
2208     case $cache_file in
2209       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2210       *)                      . "./$cache_file";;
2211     esac
2212   fi
2213 else
2214   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2215 $as_echo "$as_me: creating cache $cache_file" >&6;}
2216   >$cache_file
2217 fi
2218
2219 # Check that the precious variables saved in the cache have kept the same
2220 # value.
2221 ac_cache_corrupted=false
2222 for ac_var in $ac_precious_vars; do
2223   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2224   eval ac_new_set=\$ac_env_${ac_var}_set
2225   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2226   eval ac_new_val=\$ac_env_${ac_var}_value
2227   case $ac_old_set,$ac_new_set in
2228     set,)
2229       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2231       ac_cache_corrupted=: ;;
2232     ,set)
2233       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2235       ac_cache_corrupted=: ;;
2236     ,);;
2237     *)
2238       if test "x$ac_old_val" != "x$ac_new_val"; then
2239         # differences in whitespace do not lead to failure.
2240         ac_old_val_w=`echo x $ac_old_val`
2241         ac_new_val_w=`echo x $ac_new_val`
2242         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2243           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2245           ac_cache_corrupted=:
2246         else
2247           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2249           eval $ac_var=\$ac_old_val
2250         fi
2251         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2252 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2253         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2254 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2255       fi;;
2256   esac
2257   # Pass precious variables to config.status.
2258   if test "$ac_new_set" = set; then
2259     case $ac_new_val in
2260     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2261     *) ac_arg=$ac_var=$ac_new_val ;;
2262     esac
2263     case " $ac_configure_args " in
2264       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2265       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2266     esac
2267   fi
2268 done
2269 if $ac_cache_corrupted; then
2270   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2273 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
2301
2302 ac_config_headers="$ac_config_headers config.h"
2303
2304
2305 ac_aux_dir=
2306 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2307   if test -f "$ac_dir/install-sh"; then
2308     ac_aux_dir=$ac_dir
2309     ac_install_sh="$ac_aux_dir/install-sh -c"
2310     break
2311   elif test -f "$ac_dir/install.sh"; then
2312     ac_aux_dir=$ac_dir
2313     ac_install_sh="$ac_aux_dir/install.sh -c"
2314     break
2315   elif test -f "$ac_dir/shtool"; then
2316     ac_aux_dir=$ac_dir
2317     ac_install_sh="$ac_aux_dir/shtool install -c"
2318     break
2319   fi
2320 done
2321 if test -z "$ac_aux_dir"; then
2322   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2323 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2324    { (exit 1); exit 1; }; }
2325 fi
2326
2327 # These three variables are undocumented and unsupported,
2328 # and are intended to be withdrawn in a future Autoconf release.
2329 # They can cause serious problems if a builder's source tree is in a directory
2330 # whose full name contains unusual characters.
2331 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2332 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2333 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2334
2335
2336 # Make sure we can run config.sub.
2337 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2338   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2339 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2340    { (exit 1); exit 1; }; }
2341
2342 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2343 $as_echo_n "checking build system type... " >&6; }
2344 if test "${ac_cv_build+set}" = set; then
2345   $as_echo_n "(cached) " >&6
2346 else
2347   ac_build_alias=$build_alias
2348 test "x$ac_build_alias" = x &&
2349   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x &&
2351   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2352 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2353    { (exit 1); exit 1; }; }
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2356 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2357    { (exit 1); exit 1; }; }
2358
2359 fi
2360 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2361 $as_echo "$ac_cv_build" >&6; }
2362 case $ac_cv_build in
2363 *-*-*) ;;
2364 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2365 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2366    { (exit 1); exit 1; }; };;
2367 esac
2368 build=$ac_cv_build
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_build
2371 shift
2372 build_cpu=$1
2373 build_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 build_os=$*
2378 IFS=$ac_save_IFS
2379 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2380
2381
2382 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2383 $as_echo_n "checking host system type... " >&6; }
2384 if test "${ac_cv_host+set}" = set; then
2385   $as_echo_n "(cached) " >&6
2386 else
2387   if test "x$host_alias" = x; then
2388   ac_cv_host=$ac_cv_build
2389 else
2390   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2391     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2392 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2393    { (exit 1); exit 1; }; }
2394 fi
2395
2396 fi
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2398 $as_echo "$ac_cv_host" >&6; }
2399 case $ac_cv_host in
2400 *-*-*) ;;
2401 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2402 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2403    { (exit 1); exit 1; }; };;
2404 esac
2405 host=$ac_cv_host
2406 ac_save_IFS=$IFS; IFS='-'
2407 set x $ac_cv_host
2408 shift
2409 host_cpu=$1
2410 host_vendor=$2
2411 shift; shift
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2414 host_os=$*
2415 IFS=$ac_save_IFS
2416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2417
2418
2419
2420 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2421 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2422 set x ${MAKE-make}
2423 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2424 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2425   $as_echo_n "(cached) " >&6
2426 else
2427   cat >conftest.make <<\_ACEOF
2428 SHELL = /bin/sh
2429 all:
2430         @echo '@@@%%%=$(MAKE)=@@@%%%'
2431 _ACEOF
2432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2434   *@@@%%%=?*=@@@%%%*)
2435     eval ac_cv_prog_make_${ac_make}_set=yes;;
2436   *)
2437     eval ac_cv_prog_make_${ac_make}_set=no;;
2438 esac
2439 rm -f conftest.make
2440 fi
2441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2442   { $as_echo "$as_me:$LINENO: result: yes" >&5
2443 $as_echo "yes" >&6; }
2444   SET_MAKE=
2445 else
2446   { $as_echo "$as_me:$LINENO: result: no" >&5
2447 $as_echo "no" >&6; }
2448   SET_MAKE="MAKE=${MAKE-make}"
2449 fi
2450
2451
2452 #
2453 # GNU libtool support
2454 #
2455 case $build_os in
2456 sunos*)
2457     # Just set the maximum command line length for sunos as it otherwise
2458     # takes a exceptionally long time to work it out. Required for libtool.
2459
2460     lt_cv_sys_max_cmd_len=4096;
2461     ;;
2462 esac
2463
2464 # Check whether --enable-shared was given.
2465 if test "${enable_shared+set}" = set; then
2466   enableval=$enable_shared; p=${PACKAGE-default}
2467     case $enableval in
2468     yes) enable_shared=yes ;;
2469     no) enable_shared=no ;;
2470     *)
2471       enable_shared=no
2472       # Look at the argument we got.  We use all the common list separators.
2473       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2474       for pkg in $enableval; do
2475         IFS="$lt_save_ifs"
2476         if test "X$pkg" = "X$p"; then
2477           enable_shared=yes
2478         fi
2479       done
2480       IFS="$lt_save_ifs"
2481       ;;
2482     esac
2483 else
2484   enable_shared=yes
2485 fi
2486
2487
2488 # Check whether --enable-static was given.
2489 if test "${enable_static+set}" = set; then
2490   enableval=$enable_static; p=${PACKAGE-default}
2491     case $enableval in
2492     yes) enable_static=yes ;;
2493     no) enable_static=no ;;
2494     *)
2495      enable_static=no
2496       # Look at the argument we got.  We use all the common list separators.
2497       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2498       for pkg in $enableval; do
2499         IFS="$lt_save_ifs"
2500         if test "X$pkg" = "X$p"; then
2501           enable_static=yes
2502         fi
2503       done
2504       IFS="$lt_save_ifs"
2505       ;;
2506     esac
2507 else
2508   enable_static=yes
2509 fi
2510
2511
2512 # Check whether --enable-fast-install was given.
2513 if test "${enable_fast_install+set}" = set; then
2514   enableval=$enable_fast_install; p=${PACKAGE-default}
2515     case $enableval in
2516     yes) enable_fast_install=yes ;;
2517     no) enable_fast_install=no ;;
2518     *)
2519       enable_fast_install=no
2520       # Look at the argument we got.  We use all the common list separators.
2521       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2522       for pkg in $enableval; do
2523         IFS="$lt_save_ifs"
2524         if test "X$pkg" = "X$p"; then
2525           enable_fast_install=yes
2526         fi
2527       done
2528       IFS="$lt_save_ifs"
2529       ;;
2530     esac
2531 else
2532   enable_fast_install=yes
2533 fi
2534
2535
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547   $as_echo_n "(cached) " >&6
2548 else
2549   if test -n "$CC"; then
2550   ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2572 $as_echo "$CC" >&6; }
2573 else
2574   { $as_echo "$as_me:$LINENO: result: no" >&5
2575 $as_echo "no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$ac_cv_prog_CC"; then
2581   ac_ct_CC=$CC
2582   # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587   $as_echo_n "(cached) " >&6
2588 else
2589   if test -n "$ac_ct_CC"; then
2590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597   for ac_exec_ext in '' $ac_executable_extensions; do
2598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599     ac_cv_prog_ac_ct_CC="gcc"
2600     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 $as_echo "$ac_ct_CC" >&6; }
2613 else
2614   { $as_echo "$as_me:$LINENO: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2617
2618   if test "x$ac_ct_CC" = x; then
2619     CC=""
2620   else
2621     case $cross_compiling:$ac_tool_warned in
2622 yes:)
2623 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet.  If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet.  If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2630 esac
2631     CC=$ac_ct_CC
2632   fi
2633 else
2634   CC="$ac_cv_prog_CC"
2635 fi
2636
2637 if test -z "$CC"; then
2638           if test -n "$ac_tool_prefix"; then
2639     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test -n "$CC"; then
2647   ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_CC="${ac_tool_prefix}cc"
2657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2670 else
2671   { $as_echo "$as_me:$LINENO: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676   fi
2677 fi
2678 if test -z "$CC"; then
2679   # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684   $as_echo_n "(cached) " >&6
2685 else
2686   if test -n "$CC"; then
2687   ac_cv_prog_CC="$CC" # Let the user override the test.
2688 else
2689   ac_prog_rejected=no
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698        ac_prog_rejected=yes
2699        continue
2700      fi
2701     ac_cv_prog_CC="cc"
2702     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 if test $ac_prog_rejected = yes; then
2710   # We found a bogon in the path, so make sure we never use it.
2711   set dummy $ac_cv_prog_CC
2712   shift
2713   if test $# != 0; then
2714     # We chose a different compiler from the bogus one.
2715     # However, it has the same basename, so the bogon will be chosen
2716     # first if we set CC to just the basename; use the full file name.
2717     shift
2718     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719   fi
2720 fi
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728   { $as_echo "$as_me:$LINENO: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 fi
2734 if test -z "$CC"; then
2735   if test -n "$ac_tool_prefix"; then
2736   for ac_prog in cl.exe
2737   do
2738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743   $as_echo_n "(cached) " >&6
2744 else
2745   if test -n "$CC"; then
2746   ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753   for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770   { $as_echo "$as_me:$LINENO: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774
2775     test -n "$CC" && break
2776   done
2777 fi
2778 if test -z "$CC"; then
2779   ac_ct_CC=$CC
2780   for ac_prog in cl.exe
2781 do
2782   # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$ac_ct_CC"; then
2790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_ac_ct_CC="$ac_prog"
2800     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2813 else
2814   { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819   test -n "$ac_ct_CC" && break
2820 done
2821
2822   if test "x$ac_ct_CC" = x; then
2823     CC=""
2824   else
2825     case $cross_compiling:$ac_tool_warned in
2826 yes:)
2827 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet.  If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&5
2830 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2831 whose name does not start with the host triplet.  If you think this
2832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835     CC=$ac_ct_CC
2836   fi
2837 fi
2838
2839 fi
2840
2841
2842 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843 See \`config.log' for more details." >&5
2844 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&2;}
2846    { (exit 1); exit 1; }; }
2847
2848 # Provide some information about the compiler.
2849 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2850 set X $ac_compile
2851 ac_compiler=$2
2852 { (ac_try="$ac_compiler --version >&5"
2853 case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2858 $as_echo "$ac_try_echo") >&5
2859   (eval "$ac_compiler --version >&5") 2>&5
2860   ac_status=$?
2861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }
2863 { (ac_try="$ac_compiler -v >&5"
2864 case "(($ac_try" in
2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866   *) ac_try_echo=$ac_try;;
2867 esac
2868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869 $as_echo "$ac_try_echo") >&5
2870   (eval "$ac_compiler -v >&5") 2>&5
2871   ac_status=$?
2872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }
2874 { (ac_try="$ac_compiler -V >&5"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881   (eval "$ac_compiler -V >&5") 2>&5
2882   ac_status=$?
2883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }
2885
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892
2893 int
2894 main ()
2895 {
2896
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 ac_clean_files_save=$ac_clean_files
2902 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2903 # Try to create an executable without -o first, disregard a.out.
2904 # It will help us diagnose broken compilers, and finding out an intuition
2905 # of exeext.
2906 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2907 $as_echo_n "checking for C compiler default output file name... " >&6; }
2908 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2909
2910 # The possible output files:
2911 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2912
2913 ac_rmfiles=
2914 for ac_file in $ac_files
2915 do
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2918     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2919   esac
2920 done
2921 rm -f $ac_rmfiles
2922
2923 if { (ac_try="$ac_link_default"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929 $as_echo "$ac_try_echo") >&5
2930   (eval "$ac_link_default") 2>&5
2931   ac_status=$?
2932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; then
2934   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2936 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2937 # so that the user can short-circuit this test for compilers unknown to
2938 # Autoconf.
2939 for ac_file in $ac_files ''
2940 do
2941   test -f "$ac_file" || continue
2942   case $ac_file in
2943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2944         ;;
2945     [ab].out )
2946         # We found the default executable, but exeext='' is most
2947         # certainly right.
2948         break;;
2949     *.* )
2950         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951         then :; else
2952            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953         fi
2954         # We set ac_cv_exeext here because the later test for it is not
2955         # safe: cross compilers may not add the suffix if given an `-o'
2956         # argument, so we may need to know it at that point already.
2957         # Even if this section looks crufty: it has the advantage of
2958         # actually working.
2959         break;;
2960     * )
2961         break;;
2962   esac
2963 done
2964 test "$ac_cv_exeext" = no && ac_cv_exeext=
2965
2966 else
2967   ac_file=''
2968 fi
2969
2970 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2971 $as_echo "$ac_file" >&6; }
2972 if test -z "$ac_file"; then
2973   $as_echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2977 See \`config.log' for more details." >&5
2978 $as_echo "$as_me: error: C compiler cannot create executables
2979 See \`config.log' for more details." >&2;}
2980    { (exit 77); exit 77; }; }
2981 fi
2982
2983 ac_exeext=$ac_cv_exeext
2984
2985 # Check that the compiler produces executables we can run.  If not, either
2986 # the compiler is broken, or we cross compile.
2987 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2988 $as_echo_n "checking whether the C compiler works... " >&6; }
2989 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2990 # If not cross compiling, check that we can run a simple program.
2991 if test "$cross_compiling" != yes; then
2992   if { ac_try='./$ac_file'
2993   { (case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2998 $as_echo "$ac_try_echo") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003     cross_compiling=no
3004   else
3005     if test "$cross_compiling" = maybe; then
3006         cross_compiling=yes
3007     else
3008         { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3009 If you meant to cross compile, use \`--host'.
3010 See \`config.log' for more details." >&5
3011 $as_echo "$as_me: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&2;}
3014    { (exit 1); exit 1; }; }
3015     fi
3016   fi
3017 fi
3018 { $as_echo "$as_me:$LINENO: result: yes" >&5
3019 $as_echo "yes" >&6; }
3020
3021 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3022 ac_clean_files=$ac_clean_files_save
3023 # Check that the compiler produces executables we can run.  If not, either
3024 # the compiler is broken, or we cross compile.
3025 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3026 $as_echo_n "checking whether we are cross compiling... " >&6; }
3027 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3028 $as_echo "$cross_compiling" >&6; }
3029
3030 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3031 $as_echo_n "checking for suffix of executables... " >&6; }
3032 if { (ac_try="$ac_link"
3033 case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3038 $as_echo "$ac_try_echo") >&5
3039   (eval "$ac_link") 2>&5
3040   ac_status=$?
3041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; then
3043   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3044 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3045 # work properly (i.e., refer to `conftest.exe'), while it won't with
3046 # `rm'.
3047 for ac_file in conftest.exe conftest conftest.*; do
3048   test -f "$ac_file" || continue
3049   case $ac_file in
3050     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3051     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052           break;;
3053     * ) break;;
3054   esac
3055 done
3056 else
3057   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3058 See \`config.log' for more details." >&5
3059 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3060 See \`config.log' for more details." >&2;}
3061    { (exit 1); exit 1; }; }
3062 fi
3063
3064 rm -f conftest$ac_cv_exeext
3065 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3066 $as_echo "$ac_cv_exeext" >&6; }
3067
3068 rm -f conftest.$ac_ext
3069 EXEEXT=$ac_cv_exeext
3070 ac_exeext=$EXEEXT
3071 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3072 $as_echo_n "checking for suffix of object files... " >&6; }
3073 if test "${ac_cv_objext+set}" = set; then
3074   $as_echo_n "(cached) " >&6
3075 else
3076   cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082
3083 int
3084 main ()
3085 {
3086
3087   ;
3088   return 0;
3089 }
3090 _ACEOF
3091 rm -f conftest.o conftest.obj
3092 if { (ac_try="$ac_compile"
3093 case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3098 $as_echo "$ac_try_echo") >&5
3099   (eval "$ac_compile") 2>&5
3100   ac_status=$?
3101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; then
3103   for ac_file in conftest.o conftest.obj conftest.*; do
3104   test -f "$ac_file" || continue;
3105   case $ac_file in
3106     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3107     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3108        break;;
3109   esac
3110 done
3111 else
3112   $as_echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3116 See \`config.log' for more details." >&5
3117 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120 fi
3121
3122 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3123 fi
3124 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3125 $as_echo "$ac_cv_objext" >&6; }
3126 OBJEXT=$ac_cv_objext
3127 ac_objext=$OBJEXT
3128 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3129 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3130 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3131   $as_echo_n "(cached) " >&6
3132 else
3133   cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139
3140 int
3141 main ()
3142 {
3143 #ifndef __GNUC__
3144        choke me
3145 #endif
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3158 $as_echo "$ac_try_echo") >&5
3159   (eval "$ac_compile") 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } && {
3166          test -z "$ac_c_werror_flag" ||
3167          test ! -s conftest.err
3168        } && test -s conftest.$ac_objext; then
3169   ac_compiler_gnu=yes
3170 else
3171   $as_echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174         ac_compiler_gnu=no
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3179
3180 fi
3181 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3182 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3183 if test $ac_compiler_gnu = yes; then
3184   GCC=yes
3185 else
3186   GCC=
3187 fi
3188 ac_test_CFLAGS=${CFLAGS+set}
3189 ac_save_CFLAGS=$CFLAGS
3190 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3191 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3192 if test "${ac_cv_prog_cc_g+set}" = set; then
3193   $as_echo_n "(cached) " >&6
3194 else
3195   ac_save_c_werror_flag=$ac_c_werror_flag
3196    ac_c_werror_flag=yes
3197    ac_cv_prog_cc_g=no
3198    CFLAGS="-g"
3199    cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205
3206 int
3207 main ()
3208 {
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221 $as_echo "$ac_try_echo") >&5
3222   (eval "$ac_compile") 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } && {
3229          test -z "$ac_c_werror_flag" ||
3230          test ! -s conftest.err
3231        } && test -s conftest.$ac_objext; then
3232   ac_cv_prog_cc_g=yes
3233 else
3234   $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         CFLAGS=""
3238       cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compile") 2>conftest.er1
3262   ac_status=$?
3263   grep -v '^ *+' conftest.er1 >conftest.err
3264   rm -f conftest.er1
3265   cat conftest.err >&5
3266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); } && {
3268          test -z "$ac_c_werror_flag" ||
3269          test ! -s conftest.err
3270        } && test -s conftest.$ac_objext; then
3271   :
3272 else
3273   $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276         ac_c_werror_flag=$ac_save_c_werror_flag
3277          CFLAGS="-g"
3278          cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284
3285 int
3286 main ()
3287 {
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3300 $as_echo "$ac_try_echo") >&5
3301   (eval "$ac_compile") 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } && {
3308          test -z "$ac_c_werror_flag" ||
3309          test ! -s conftest.err
3310        } && test -s conftest.$ac_objext; then
3311   ac_cv_prog_cc_g=yes
3312 else
3313   $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316
3317 fi
3318
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 fi
3321
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 fi
3324
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326    ac_c_werror_flag=$ac_save_c_werror_flag
3327 fi
3328 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3329 $as_echo "$ac_cv_prog_cc_g" >&6; }
3330 if test "$ac_test_CFLAGS" = set; then
3331   CFLAGS=$ac_save_CFLAGS
3332 elif test $ac_cv_prog_cc_g = yes; then
3333   if test "$GCC" = yes; then
3334     CFLAGS="-g -O2"
3335   else
3336     CFLAGS="-g"
3337   fi
3338 else
3339   if test "$GCC" = yes; then
3340     CFLAGS="-O2"
3341   else
3342     CFLAGS=
3343   fi
3344 fi
3345 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3346 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3347 if test "${ac_cv_prog_cc_c89+set}" = set; then
3348   $as_echo_n "(cached) " >&6
3349 else
3350   ac_cv_prog_cc_c89=no
3351 ac_save_CC=$CC
3352 cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #include <stdarg.h>
3359 #include <stdio.h>
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3366      char **p;
3367      int i;
3368 {
3369   return p[i];
3370 }
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3372 {
3373   char *s;
3374   va_list v;
3375   va_start (v,p);
3376   s = g (p, va_arg (v,int));
3377   va_end (v);
3378   return s;
3379 }
3380
3381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3382    function prototypes and stuff, but not '\xHH' hex character constants.
3383    These don't provoke an error unfortunately, instead are silently treated
3384    as 'x'.  The following induces an error, until -std is added to get
3385    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3386    array size at least.  It's necessary to write '\x00'==0 to get something
3387    that's true only with -std.  */
3388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3389
3390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3391    inside strings and character constants.  */
3392 #define FOO(x) 'x'
3393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3394
3395 int test (int i, double x);
3396 struct s1 {int (*f) (int a);};
3397 struct s2 {int (*f) (double a);};
3398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3399 int argc;
3400 char **argv;
3401 int
3402 main ()
3403 {
3404 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3411 do
3412   CC="$ac_save_CC $ac_arg"
3413   rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421   (eval "$ac_compile") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } && {
3428          test -z "$ac_c_werror_flag" ||
3429          test ! -s conftest.err
3430        } && test -s conftest.$ac_objext; then
3431   ac_cv_prog_cc_c89=$ac_arg
3432 else
3433   $as_echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436
3437 fi
3438
3439 rm -f core conftest.err conftest.$ac_objext
3440   test "x$ac_cv_prog_cc_c89" != "xno" && break
3441 done
3442 rm -f conftest.$ac_ext
3443 CC=$ac_save_CC
3444
3445 fi
3446 # AC_CACHE_VAL
3447 case "x$ac_cv_prog_cc_c89" in
3448   x)
3449     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3450 $as_echo "none needed" >&6; } ;;
3451   xno)
3452     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3453 $as_echo "unsupported" >&6; } ;;
3454   *)
3455     CC="$CC $ac_cv_prog_cc_c89"
3456     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3457 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3458 esac
3459
3460
3461 ac_ext=c
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3468 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3469 if test "${lt_cv_path_SED+set}" = set; then
3470   $as_echo_n "(cached) " >&6
3471 else
3472   # Loop through the user's path and test for sed and gsed.
3473 # Then use that list of sed's as ones to test for truncation.
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477   IFS=$as_save_IFS
3478   test -z "$as_dir" && as_dir=.
3479   for lt_ac_prog in sed gsed; do
3480     for ac_exec_ext in '' $ac_executable_extensions; do
3481       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3482         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3483       fi
3484     done
3485   done
3486 done
3487 IFS=$as_save_IFS
3488 lt_ac_max=0
3489 lt_ac_count=0
3490 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3491 # along with /bin/sed that truncates output.
3492 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3493   test ! -f $lt_ac_sed && continue
3494   cat /dev/null > conftest.in
3495   lt_ac_count=0
3496   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3497   # Check for GNU sed and select it if it is found.
3498   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3499     lt_cv_path_SED=$lt_ac_sed
3500     break
3501   fi
3502   while true; do
3503     cat conftest.in conftest.in >conftest.tmp
3504     mv conftest.tmp conftest.in
3505     cp conftest.in conftest.nl
3506     echo >>conftest.nl
3507     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3508     cmp -s conftest.out conftest.nl || break
3509     # 10000 chars as input seems more than enough
3510     test $lt_ac_count -gt 10 && break
3511     lt_ac_count=`expr $lt_ac_count + 1`
3512     if test $lt_ac_count -gt $lt_ac_max; then
3513       lt_ac_max=$lt_ac_count
3514       lt_cv_path_SED=$lt_ac_sed
3515     fi
3516   done
3517 done
3518
3519 fi
3520
3521 SED=$lt_cv_path_SED
3522
3523 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3524 $as_echo "$SED" >&6; }
3525
3526 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3527 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3528 if test "${ac_cv_path_GREP+set}" = set; then
3529   $as_echo_n "(cached) " >&6
3530 else
3531   if test -z "$GREP"; then
3532   ac_path_GREP_found=false
3533   # Loop through the user's path and test for each of PROGNAME-LIST
3534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3536 do
3537   IFS=$as_save_IFS
3538   test -z "$as_dir" && as_dir=.
3539   for ac_prog in grep ggrep; do
3540     for ac_exec_ext in '' $ac_executable_extensions; do
3541       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3542       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3543 # Check for GNU ac_path_GREP and select it if it is found.
3544   # Check for GNU $ac_path_GREP
3545 case `"$ac_path_GREP" --version 2>&1` in
3546 *GNU*)
3547   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3548 *)
3549   ac_count=0
3550   $as_echo_n 0123456789 >"conftest.in"
3551   while :
3552   do
3553     cat "conftest.in" "conftest.in" >"conftest.tmp"
3554     mv "conftest.tmp" "conftest.in"
3555     cp "conftest.in" "conftest.nl"
3556     $as_echo 'GREP' >> "conftest.nl"
3557     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3558     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3559     ac_count=`expr $ac_count + 1`
3560     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3561       # Best one so far, save it but keep looking for a better one
3562       ac_cv_path_GREP="$ac_path_GREP"
3563       ac_path_GREP_max=$ac_count
3564     fi
3565     # 10*(2^10) chars as input seems more than enough
3566     test $ac_count -gt 10 && break
3567   done
3568   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3569 esac
3570
3571       $ac_path_GREP_found && break 3
3572     done
3573   done
3574 done
3575 IFS=$as_save_IFS
3576   if test -z "$ac_cv_path_GREP"; then
3577     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3578 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3579    { (exit 1); exit 1; }; }
3580   fi
3581 else
3582   ac_cv_path_GREP=$GREP
3583 fi
3584
3585 fi
3586 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3587 $as_echo "$ac_cv_path_GREP" >&6; }
3588  GREP="$ac_cv_path_GREP"
3589
3590
3591 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3592 $as_echo_n "checking for egrep... " >&6; }
3593 if test "${ac_cv_path_EGREP+set}" = set; then
3594   $as_echo_n "(cached) " >&6
3595 else
3596   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3597    then ac_cv_path_EGREP="$GREP -E"
3598    else
3599      if test -z "$EGREP"; then
3600   ac_path_EGREP_found=false
3601   # Loop through the user's path and test for each of PROGNAME-LIST
3602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607   for ac_prog in egrep; do
3608     for ac_exec_ext in '' $ac_executable_extensions; do
3609       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3610       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3611 # Check for GNU ac_path_EGREP and select it if it is found.
3612   # Check for GNU $ac_path_EGREP
3613 case `"$ac_path_EGREP" --version 2>&1` in
3614 *GNU*)
3615   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3616 *)
3617   ac_count=0
3618   $as_echo_n 0123456789 >"conftest.in"
3619   while :
3620   do
3621     cat "conftest.in" "conftest.in" >"conftest.tmp"
3622     mv "conftest.tmp" "conftest.in"
3623     cp "conftest.in" "conftest.nl"
3624     $as_echo 'EGREP' >> "conftest.nl"
3625     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3626     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3627     ac_count=`expr $ac_count + 1`
3628     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3629       # Best one so far, save it but keep looking for a better one
3630       ac_cv_path_EGREP="$ac_path_EGREP"
3631       ac_path_EGREP_max=$ac_count
3632     fi
3633     # 10*(2^10) chars as input seems more than enough
3634     test $ac_count -gt 10 && break
3635   done
3636   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3637 esac
3638
3639       $ac_path_EGREP_found && break 3
3640     done
3641   done
3642 done
3643 IFS=$as_save_IFS
3644   if test -z "$ac_cv_path_EGREP"; then
3645     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3646 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3647    { (exit 1); exit 1; }; }
3648   fi
3649 else
3650   ac_cv_path_EGREP=$EGREP
3651 fi
3652
3653    fi
3654 fi
3655 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3656 $as_echo "$ac_cv_path_EGREP" >&6; }
3657  EGREP="$ac_cv_path_EGREP"
3658
3659
3660
3661 # Check whether --with-gnu-ld was given.
3662 if test "${with_gnu_ld+set}" = set; then
3663   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3664 else
3665   with_gnu_ld=no
3666 fi
3667
3668 ac_prog=ld
3669 if test "$GCC" = yes; then
3670   # Check if gcc -print-prog-name=ld gives a path.
3671   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3672 $as_echo_n "checking for ld used by $CC... " >&6; }
3673   case $host in
3674   *-*-mingw*)
3675     # gcc leaves a trailing carriage return which upsets mingw
3676     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3677   *)
3678     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3679   esac
3680   case $ac_prog in
3681     # Accept absolute paths.
3682     [\\/]* | ?:[\\/]*)
3683       re_direlt='/[^/][^/]*/\.\./'
3684       # Canonicalize the pathname of ld
3685       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3686       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3687         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3688       done
3689       test -z "$LD" && LD="$ac_prog"
3690       ;;
3691   "")
3692     # If it fails, then pretend we aren't using GCC.
3693     ac_prog=ld
3694     ;;
3695   *)
3696     # If it is relative, then search for the first ld in PATH.
3697     with_gnu_ld=unknown
3698     ;;
3699   esac
3700 elif test "$with_gnu_ld" = yes; then
3701   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3702 $as_echo_n "checking for GNU ld... " >&6; }
3703 else
3704   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3705 $as_echo_n "checking for non-GNU ld... " >&6; }
3706 fi
3707 if test "${lt_cv_path_LD+set}" = set; then
3708   $as_echo_n "(cached) " >&6
3709 else
3710   if test -z "$LD"; then
3711   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3712   for ac_dir in $PATH; do
3713     IFS="$lt_save_ifs"
3714     test -z "$ac_dir" && ac_dir=.
3715     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3716       lt_cv_path_LD="$ac_dir/$ac_prog"
3717       # Check to see if the program is GNU ld.  I'd rather use --version,
3718       # but apparently some variants of GNU ld only accept -v.
3719       # Break only if it was the GNU/non-GNU ld that we prefer.
3720       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3721       *GNU* | *'with BFD'*)
3722         test "$with_gnu_ld" != no && break
3723         ;;
3724       *)
3725         test "$with_gnu_ld" != yes && break
3726         ;;
3727       esac
3728     fi
3729   done
3730   IFS="$lt_save_ifs"
3731 else
3732   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3733 fi
3734 fi
3735
3736 LD="$lt_cv_path_LD"
3737 if test -n "$LD"; then
3738   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3739 $as_echo "$LD" >&6; }
3740 else
3741   { $as_echo "$as_me:$LINENO: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3745 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3746    { (exit 1); exit 1; }; }
3747 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3748 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3749 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3750   $as_echo_n "(cached) " >&6
3751 else
3752   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3753 case `$LD -v 2>&1 </dev/null` in
3754 *GNU* | *'with BFD'*)
3755   lt_cv_prog_gnu_ld=yes
3756   ;;
3757 *)
3758   lt_cv_prog_gnu_ld=no
3759   ;;
3760 esac
3761 fi
3762 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3763 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3764 with_gnu_ld=$lt_cv_prog_gnu_ld
3765
3766
3767 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3768 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3769 if test "${lt_cv_ld_reload_flag+set}" = set; then
3770   $as_echo_n "(cached) " >&6
3771 else
3772   lt_cv_ld_reload_flag='-r'
3773 fi
3774 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3775 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3776 reload_flag=$lt_cv_ld_reload_flag
3777 case $reload_flag in
3778 "" | " "*) ;;
3779 *) reload_flag=" $reload_flag" ;;
3780 esac
3781 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3782 case $host_os in
3783   darwin*)
3784     if test "$GCC" = yes; then
3785       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3786     else
3787       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3788     fi
3789     ;;
3790 esac
3791
3792 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3793 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3794 if test "${lt_cv_path_NM+set}" = set; then
3795   $as_echo_n "(cached) " >&6
3796 else
3797   if test -n "$NM"; then
3798   # Let the user override the test.
3799   lt_cv_path_NM="$NM"
3800 else
3801   lt_nm_to_check="${ac_tool_prefix}nm"
3802   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3803     lt_nm_to_check="$lt_nm_to_check nm"
3804   fi
3805   for lt_tmp_nm in $lt_nm_to_check; do
3806     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3807     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3808       IFS="$lt_save_ifs"
3809       test -z "$ac_dir" && ac_dir=.
3810       tmp_nm="$ac_dir/$lt_tmp_nm"
3811       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3812         # Check to see if the nm accepts a BSD-compat flag.
3813         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3814         #   nm: unknown option "B" ignored
3815         # Tru64's nm complains that /dev/null is an invalid object file
3816         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3817         */dev/null* | *'Invalid file or object type'*)
3818           lt_cv_path_NM="$tmp_nm -B"
3819           break
3820           ;;
3821         *)
3822           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3823           */dev/null*)
3824             lt_cv_path_NM="$tmp_nm -p"
3825             break
3826             ;;
3827           *)
3828             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3829             continue # so that we can try to find one that supports BSD flags
3830             ;;
3831           esac
3832           ;;
3833         esac
3834       fi
3835     done
3836     IFS="$lt_save_ifs"
3837   done
3838   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3839 fi
3840 fi
3841 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3842 $as_echo "$lt_cv_path_NM" >&6; }
3843 NM="$lt_cv_path_NM"
3844
3845 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3846 $as_echo_n "checking whether ln -s works... " >&6; }
3847 LN_S=$as_ln_s
3848 if test "$LN_S" = "ln -s"; then
3849   { $as_echo "$as_me:$LINENO: result: yes" >&5
3850 $as_echo "yes" >&6; }
3851 else
3852   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3853 $as_echo "no, using $LN_S" >&6; }
3854 fi
3855
3856 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3857 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
3858 if test "${lt_cv_deplibs_check_method+set}" = set; then
3859   $as_echo_n "(cached) " >&6
3860 else
3861   lt_cv_file_magic_cmd='$MAGIC_CMD'
3862 lt_cv_file_magic_test_file=
3863 lt_cv_deplibs_check_method='unknown'
3864 # Need to set the preceding variable on all platforms that support
3865 # interlibrary dependencies.
3866 # 'none' -- dependencies not supported.
3867 # `unknown' -- same as none, but documents that we really don't know.
3868 # 'pass_all' -- all dependencies passed with no checks.
3869 # 'test_compile' -- check by making test program.
3870 # 'file_magic [[regex]]' -- check by looking for files in library path
3871 # which responds to the $file_magic_cmd with a given extended regex.
3872 # If you have `file' or equivalent on your system and you're not sure
3873 # whether `pass_all' will *always* work, you probably want this one.
3874
3875 case $host_os in
3876 aix[4-9]*)
3877   lt_cv_deplibs_check_method=pass_all
3878   ;;
3879
3880 beos*)
3881   lt_cv_deplibs_check_method=pass_all
3882   ;;
3883
3884 bsdi[45]*)
3885   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3886   lt_cv_file_magic_cmd='/usr/bin/file -L'
3887   lt_cv_file_magic_test_file=/shlib/libc.so
3888   ;;
3889
3890 cygwin*)
3891   # func_win32_libid is a shell function defined in ltmain.sh
3892   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3893   lt_cv_file_magic_cmd='func_win32_libid'
3894   ;;
3895
3896 mingw* | pw32*)
3897   # Base MSYS/MinGW do not provide the 'file' command needed by
3898   # func_win32_libid shell function, so use a weaker test based on 'objdump',
3899   # unless we find 'file', for example because we are cross-compiling.
3900   if ( file / ) >/dev/null 2>&1; then
3901     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3902     lt_cv_file_magic_cmd='func_win32_libid'
3903   else
3904     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3905     lt_cv_file_magic_cmd='$OBJDUMP -f'
3906   fi
3907   ;;
3908
3909 darwin* | rhapsody*)
3910   lt_cv_deplibs_check_method=pass_all
3911   ;;
3912
3913 freebsd* | dragonfly*)
3914   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3915     case $host_cpu in
3916     i*86 )
3917       # Not sure whether the presence of OpenBSD here was a mistake.
3918       # Let's accept both of them until this is cleared up.
3919       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3920       lt_cv_file_magic_cmd=/usr/bin/file
3921       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3922       ;;
3923     esac
3924   else
3925     lt_cv_deplibs_check_method=pass_all
3926   fi
3927   ;;
3928
3929 gnu*)
3930   lt_cv_deplibs_check_method=pass_all
3931   ;;
3932
3933 hpux10.20* | hpux11*)
3934   lt_cv_file_magic_cmd=/usr/bin/file
3935   case $host_cpu in
3936   ia64*)
3937     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3938     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3939     ;;
3940   hppa*64*)
3941     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]'
3942     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3943     ;;
3944   *)
3945     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3946     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3947     ;;
3948   esac
3949   ;;
3950
3951 interix[3-9]*)
3952   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3953   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3954   ;;
3955
3956 irix5* | irix6* | nonstopux*)
3957   case $LD in
3958   *-32|*"-32 ") libmagic=32-bit;;
3959   *-n32|*"-n32 ") libmagic=N32;;
3960   *-64|*"-64 ") libmagic=64-bit;;
3961   *) libmagic=never-match;;
3962   esac
3963   lt_cv_deplibs_check_method=pass_all
3964   ;;
3965
3966 # This must be Linux ELF.
3967 linux* | k*bsd*-gnu)
3968   lt_cv_deplibs_check_method=pass_all
3969   ;;
3970
3971 netbsd*)
3972   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3973     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3974   else
3975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3976   fi
3977   ;;
3978
3979 newos6*)
3980   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3981   lt_cv_file_magic_cmd=/usr/bin/file
3982   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3983   ;;
3984
3985 nto-qnx*)
3986   lt_cv_deplibs_check_method=unknown
3987   ;;
3988
3989 openbsd*)
3990   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3991     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3992   else
3993     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3994   fi
3995   ;;
3996
3997 osf3* | osf4* | osf5*)
3998   lt_cv_deplibs_check_method=pass_all
3999   ;;
4000
4001 rdos*)
4002   lt_cv_deplibs_check_method=pass_all
4003   ;;
4004
4005 solaris*)
4006   lt_cv_deplibs_check_method=pass_all
4007   ;;
4008
4009 sysv4 | sysv4.3*)
4010   case $host_vendor in
4011   motorola)
4012     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]'
4013     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4014     ;;
4015   ncr)
4016     lt_cv_deplibs_check_method=pass_all
4017     ;;
4018   sequent)
4019     lt_cv_file_magic_cmd='/bin/file'
4020     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4021     ;;
4022   sni)
4023     lt_cv_file_magic_cmd='/bin/file'
4024     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4025     lt_cv_file_magic_test_file=/lib/libc.so
4026     ;;
4027   siemens)
4028     lt_cv_deplibs_check_method=pass_all
4029     ;;
4030   pc)
4031     lt_cv_deplibs_check_method=pass_all
4032     ;;
4033   esac
4034   ;;
4035
4036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4037   lt_cv_deplibs_check_method=pass_all
4038   ;;
4039 esac
4040
4041 fi
4042 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4043 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4044 file_magic_cmd=$lt_cv_file_magic_cmd
4045 deplibs_check_method=$lt_cv_deplibs_check_method
4046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4047
4048
4049
4050
4051 # If no C compiler was specified, use CC.
4052 LTCC=${LTCC-"$CC"}
4053
4054 # If no C compiler flags were specified, use CFLAGS.
4055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4056
4057 # Allow CC to be a program name with arguments.
4058 compiler=$CC
4059
4060
4061 # Check whether --enable-libtool-lock was given.
4062 if test "${enable_libtool_lock+set}" = set; then
4063   enableval=$enable_libtool_lock;
4064 fi
4065
4066 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4067
4068 # Some flags need to be propagated to the compiler or linker for good
4069 # libtool support.
4070 case $host in
4071 ia64-*-hpux*)
4072   # Find out which ABI we are using.
4073   echo 'int i;' > conftest.$ac_ext
4074   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075   (eval $ac_compile) 2>&5
4076   ac_status=$?
4077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; then
4079     case `/usr/bin/file conftest.$ac_objext` in
4080     *ELF-32*)
4081       HPUX_IA64_MODE="32"
4082       ;;
4083     *ELF-64*)
4084       HPUX_IA64_MODE="64"
4085       ;;
4086     esac
4087   fi
4088   rm -rf conftest*
4089   ;;
4090 *-*-irix6*)
4091   # Find out which ABI we are using.
4092   echo '#line 4092 "configure"' > conftest.$ac_ext
4093   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>&5
4095   ac_status=$?
4096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }; then
4098    if test "$lt_cv_prog_gnu_ld" = yes; then
4099     case `/usr/bin/file conftest.$ac_objext` in
4100     *32-bit*)
4101       LD="${LD-ld} -melf32bsmip"
4102       ;;
4103     *N32*)
4104       LD="${LD-ld} -melf32bmipn32"
4105       ;;
4106     *64-bit*)
4107       LD="${LD-ld} -melf64bmip"
4108       ;;
4109     esac
4110    else
4111     case `/usr/bin/file conftest.$ac_objext` in
4112     *32-bit*)
4113       LD="${LD-ld} -32"
4114       ;;
4115     *N32*)
4116       LD="${LD-ld} -n32"
4117       ;;
4118     *64-bit*)
4119       LD="${LD-ld} -64"
4120       ;;
4121     esac
4122    fi
4123   fi
4124   rm -rf conftest*
4125   ;;
4126
4127 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4128 s390*-*linux*|sparc*-*linux*)
4129   # Find out which ABI we are using.
4130   echo 'int i;' > conftest.$ac_ext
4131   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132   (eval $ac_compile) 2>&5
4133   ac_status=$?
4134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; then
4136     case `/usr/bin/file conftest.o` in
4137     *32-bit*)
4138       case $host in
4139         x86_64-*kfreebsd*-gnu)
4140           LD="${LD-ld} -m elf_i386_fbsd"
4141           ;;
4142         x86_64-*linux*)
4143           LD="${LD-ld} -m elf_i386"
4144           ;;
4145         ppc64-*linux*|powerpc64-*linux*)
4146           LD="${LD-ld} -m elf32ppclinux"
4147           ;;
4148         s390x-*linux*)
4149           LD="${LD-ld} -m elf_s390"
4150           ;;
4151         sparc64-*linux*)
4152           LD="${LD-ld} -m elf32_sparc"
4153           ;;
4154       esac
4155       ;;
4156     *64-bit*)
4157       case $host in
4158         x86_64-*kfreebsd*-gnu)
4159           LD="${LD-ld} -m elf_x86_64_fbsd"
4160           ;;
4161         x86_64-*linux*)
4162           LD="${LD-ld} -m elf_x86_64"
4163           ;;
4164         ppc*-*linux*|powerpc*-*linux*)
4165           LD="${LD-ld} -m elf64ppc"
4166           ;;
4167         s390*-*linux*)
4168           LD="${LD-ld} -m elf64_s390"
4169           ;;
4170         sparc*-*linux*)
4171           LD="${LD-ld} -m elf64_sparc"
4172           ;;
4173       esac
4174       ;;
4175     esac
4176   fi
4177   rm -rf conftest*
4178   ;;
4179
4180 *-*-sco3.2v5*)
4181   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4182   SAVE_CFLAGS="$CFLAGS"
4183   CFLAGS="$CFLAGS -belf"
4184   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4185 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4186 if test "${lt_cv_cc_needs_belf+set}" = set; then
4187   $as_echo_n "(cached) " >&6
4188 else
4189   ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195      cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201
4202 int
4203 main ()
4204 {
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext conftest$ac_exeext
4211 if { (ac_try="$ac_link"
4212 case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218   (eval "$ac_link") 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } && {
4225          test -z "$ac_c_werror_flag" ||
4226          test ! -s conftest.err
4227        } && test -s conftest$ac_exeext && {
4228          test "$cross_compiling" = yes ||
4229          $as_test_x conftest$ac_exeext
4230        }; then
4231   lt_cv_cc_needs_belf=yes
4232 else
4233   $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236         lt_cv_cc_needs_belf=no
4237 fi
4238
4239 rm -rf conftest.dSYM
4240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4241       conftest$ac_exeext conftest.$ac_ext
4242      ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248 fi
4249 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4250 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4251   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4252     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4253     CFLAGS="$SAVE_CFLAGS"
4254   fi
4255   ;;
4256 sparc*-*solaris*)
4257   # Find out which ABI we are using.
4258   echo 'int i;' > conftest.$ac_ext
4259   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260   (eval $ac_compile) 2>&5
4261   ac_status=$?
4262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; then
4264     case `/usr/bin/file conftest.o` in
4265     *64-bit*)
4266       case $lt_cv_prog_gnu_ld in
4267       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4268       *)
4269         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4270           LD="${LD-ld} -64"
4271         fi
4272         ;;
4273       esac
4274       ;;
4275     esac
4276   fi
4277   rm -rf conftest*
4278   ;;
4279
4280
4281 esac
4282
4283 need_locks="$enable_libtool_lock"
4284
4285
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4292 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4293 # On Suns, sometimes $CPP names a directory.
4294 if test -n "$CPP" && test -d "$CPP"; then
4295   CPP=
4296 fi
4297 if test -z "$CPP"; then
4298   if test "${ac_cv_prog_CPP+set}" = set; then
4299   $as_echo_n "(cached) " >&6
4300 else
4301       # Double quotes because CPP needs to be expanded
4302     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4303     do
4304       ac_preproc_ok=false
4305 for ac_c_preproc_warn_flag in '' yes
4306 do
4307   # Use a header file that comes with gcc, so configuring glibc
4308   # with a fresh cross-compiler works.
4309   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310   # <limits.h> exists even on freestanding compilers.
4311   # On the NeXT, cc -E runs the code through the compiler's parser,
4312   # not just through cpp. "Syntax error" is here to catch this case.
4313   cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h.  */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h.  */
4319 #ifdef __STDC__
4320 # include <limits.h>
4321 #else
4322 # include <assert.h>
4323 #endif
4324                      Syntax error
4325 _ACEOF
4326 if { (ac_try="$ac_cpp conftest.$ac_ext"
4327 case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332 $as_echo "$ac_try_echo") >&5
4333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4334   ac_status=$?
4335   grep -v '^ *+' conftest.er1 >conftest.err
4336   rm -f conftest.er1
4337   cat conftest.err >&5
4338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } >/dev/null && {
4340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4341          test ! -s conftest.err
4342        }; then
4343   :
4344 else
4345   $as_echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348   # Broken: fails on valid input.
4349 continue
4350 fi
4351
4352 rm -f conftest.err conftest.$ac_ext
4353
4354   # OK, works on sane cases.  Now check whether nonexistent headers
4355   # can be detected and how.
4356   cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h.  */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h.  */
4362 #include <ac_nonexistent.h>
4363 _ACEOF
4364 if { (ac_try="$ac_cpp conftest.$ac_ext"
4365 case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372   ac_status=$?
4373   grep -v '^ *+' conftest.er1 >conftest.err
4374   rm -f conftest.er1
4375   cat conftest.err >&5
4376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } >/dev/null && {
4378          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379          test ! -s conftest.err
4380        }; then
4381   # Broken: success on invalid input.
4382 continue
4383 else
4384   $as_echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387   # Passes both tests.
4388 ac_preproc_ok=:
4389 break
4390 fi
4391
4392 rm -f conftest.err conftest.$ac_ext
4393
4394 done
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then
4398   break
4399 fi
4400
4401     done
4402     ac_cv_prog_CPP=$CPP
4403
4404 fi
4405   CPP=$ac_cv_prog_CPP
4406 else
4407   ac_cv_prog_CPP=$CPP
4408 fi
4409 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4410 $as_echo "$CPP" >&6; }
4411 ac_preproc_ok=false
4412 for ac_c_preproc_warn_flag in '' yes
4413 do
4414   # Use a header file that comes with gcc, so configuring glibc
4415   # with a fresh cross-compiler works.
4416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417   # <limits.h> exists even on freestanding compilers.
4418   # On the NeXT, cc -E runs the code through the compiler's parser,
4419   # not just through cpp. "Syntax error" is here to catch this case.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431                      Syntax error
4432 _ACEOF
4433 if { (ac_try="$ac_cpp conftest.$ac_ext"
4434 case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4439 $as_echo "$ac_try_echo") >&5
4440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4441   ac_status=$?
4442   grep -v '^ *+' conftest.er1 >conftest.err
4443   rm -f conftest.er1
4444   cat conftest.err >&5
4445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } >/dev/null && {
4447          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4448          test ! -s conftest.err
4449        }; then
4450   :
4451 else
4452   $as_echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455   # Broken: fails on valid input.
4456 continue
4457 fi
4458
4459 rm -f conftest.err conftest.$ac_ext
4460
4461   # OK, works on sane cases.  Now check whether nonexistent headers
4462   # can be detected and how.
4463   cat >conftest.$ac_ext <<_ACEOF
4464 /* confdefs.h.  */
4465 _ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h.  */
4469 #include <ac_nonexistent.h>
4470 _ACEOF
4471 if { (ac_try="$ac_cpp conftest.$ac_ext"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4477 $as_echo "$ac_try_echo") >&5
4478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } >/dev/null && {
4485          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4486          test ! -s conftest.err
4487        }; then
4488   # Broken: success on invalid input.
4489 continue
4490 else
4491   $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494   # Passes both tests.
4495 ac_preproc_ok=:
4496 break
4497 fi
4498
4499 rm -f conftest.err conftest.$ac_ext
4500
4501 done
4502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4503 rm -f conftest.err conftest.$ac_ext
4504 if $ac_preproc_ok; then
4505   :
4506 else
4507   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4508 See \`config.log' for more details." >&5
4509 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4510 See \`config.log' for more details." >&2;}
4511    { (exit 1); exit 1; }; }
4512 fi
4513
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520
4521 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4522 $as_echo_n "checking for ANSI C header files... " >&6; }
4523 if test "${ac_cv_header_stdc+set}" = set; then
4524   $as_echo_n "(cached) " >&6
4525 else
4526   cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h.  */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h.  */
4532 #include <stdlib.h>
4533 #include <stdarg.h>
4534 #include <string.h>
4535 #include <float.h>
4536
4537 int
4538 main ()
4539 {
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4547 case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553   (eval "$ac_compile") 2>conftest.er1
4554   ac_status=$?
4555   grep -v '^ *+' conftest.er1 >conftest.err
4556   rm -f conftest.er1
4557   cat conftest.err >&5
4558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } && {
4560          test -z "$ac_c_werror_flag" ||
4561          test ! -s conftest.err
4562        } && test -s conftest.$ac_objext; then
4563   ac_cv_header_stdc=yes
4564 else
4565   $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568         ac_cv_header_stdc=no
4569 fi
4570
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572
4573 if test $ac_cv_header_stdc = yes; then
4574   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4575   cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581 #include <string.h>
4582
4583 _ACEOF
4584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585   $EGREP "memchr" >/dev/null 2>&1; then
4586   :
4587 else
4588   ac_cv_header_stdc=no
4589 fi
4590 rm -f conftest*
4591
4592 fi
4593
4594 if test $ac_cv_header_stdc = yes; then
4595   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4596   cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 #include <stdlib.h>
4603
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606   $EGREP "free" >/dev/null 2>&1; then
4607   :
4608 else
4609   ac_cv_header_stdc=no
4610 fi
4611 rm -f conftest*
4612
4613 fi
4614
4615 if test $ac_cv_header_stdc = yes; then
4616   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4617   if test "$cross_compiling" = yes; then
4618   :
4619 else
4620   cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626 #include <ctype.h>
4627 #include <stdlib.h>
4628 #if ((' ' & 0x0FF) == 0x020)
4629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4631 #else
4632 # define ISLOWER(c) \
4633                    (('a' <= (c) && (c) <= 'i') \
4634                      || ('j' <= (c) && (c) <= 'r') \
4635                      || ('s' <= (c) && (c) <= 'z'))
4636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4637 #endif
4638
4639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4640 int
4641 main ()
4642 {
4643   int i;
4644   for (i = 0; i < 256; i++)
4645     if (XOR (islower (i), ISLOWER (i))
4646         || toupper (i) != TOUPPER (i))
4647       return 2;
4648   return 0;
4649 }
4650 _ACEOF
4651 rm -f conftest$ac_exeext
4652 if { (ac_try="$ac_link"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659   (eval "$ac_link") 2>&5
4660   ac_status=$?
4661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4663   { (case "(($ac_try" in
4664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665   *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669   (eval "$ac_try") 2>&5
4670   ac_status=$?
4671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; }; then
4673   :
4674 else
4675   $as_echo "$as_me: program exited with status $ac_status" >&5
4676 $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 ( exit $ac_status )
4680 ac_cv_header_stdc=no
4681 fi
4682 rm -rf conftest.dSYM
4683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4684 fi
4685
4686
4687 fi
4688 fi
4689 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4690 $as_echo "$ac_cv_header_stdc" >&6; }
4691 if test $ac_cv_header_stdc = yes; then
4692
4693 cat >>confdefs.h <<\_ACEOF
4694 #define STDC_HEADERS 1
4695 _ACEOF
4696
4697 fi
4698
4699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4710                   inttypes.h stdint.h unistd.h
4711 do
4712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4714 $as_echo_n "checking for $ac_header... " >&6; }
4715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4716   $as_echo_n "(cached) " >&6
4717 else
4718   cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 $ac_includes_default
4725
4726 #include <$ac_header>
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4730 case "(($ac_try" in
4731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732   *) ac_try_echo=$ac_try;;
4733 esac
4734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735 $as_echo "$ac_try_echo") >&5
4736   (eval "$ac_compile") 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } && {
4743          test -z "$ac_c_werror_flag" ||
4744          test ! -s conftest.err
4745        } && test -s conftest.$ac_objext; then
4746   eval "$as_ac_Header=yes"
4747 else
4748   $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751         eval "$as_ac_Header=no"
4752 fi
4753
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 fi
4756 ac_res=`eval 'as_val=${'$as_ac_Header'}
4757                  $as_echo "$as_val"'`
4758                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4759 $as_echo "$ac_res" >&6; }
4760 if test `eval 'as_val=${'$as_ac_Header'}
4761                  $as_echo "$as_val"'` = yes; then
4762   cat >>confdefs.h <<_ACEOF
4763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4764 _ACEOF
4765
4766 fi
4767
4768 done
4769
4770
4771
4772 for ac_header in dlfcn.h
4773 do
4774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4776   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4777 $as_echo_n "checking for $ac_header... " >&6; }
4778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4779   $as_echo_n "(cached) " >&6
4780 fi
4781 ac_res=`eval 'as_val=${'$as_ac_Header'}
4782                  $as_echo "$as_val"'`
4783                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4784 $as_echo "$ac_res" >&6; }
4785 else
4786   # Is the header compilable?
4787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4788 $as_echo_n "checking $ac_header usability... " >&6; }
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 $ac_includes_default
4796 #include <$ac_header>
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (ac_try="$ac_compile"
4800 case "(($ac_try" in
4801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802   *) ac_try_echo=$ac_try;;
4803 esac
4804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4805 $as_echo "$ac_try_echo") >&5
4806   (eval "$ac_compile") 2>conftest.er1
4807   ac_status=$?
4808   grep -v '^ *+' conftest.er1 >conftest.err
4809   rm -f conftest.er1
4810   cat conftest.err >&5
4811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } && {
4813          test -z "$ac_c_werror_flag" ||
4814          test ! -s conftest.err
4815        } && test -s conftest.$ac_objext; then
4816   ac_header_compiler=yes
4817 else
4818   $as_echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821         ac_header_compiler=no
4822 fi
4823
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826 $as_echo "$ac_header_compiler" >&6; }
4827
4828 # Is the header present?
4829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4830 $as_echo_n "checking $ac_header presence... " >&6; }
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #include <$ac_header>
4838 _ACEOF
4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
4840 case "(($ac_try" in
4841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842   *) ac_try_echo=$ac_try;;
4843 esac
4844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845 $as_echo "$ac_try_echo") >&5
4846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } >/dev/null && {
4853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4854          test ! -s conftest.err
4855        }; then
4856   ac_header_preproc=yes
4857 else
4858   $as_echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861   ac_header_preproc=no
4862 fi
4863
4864 rm -f conftest.err conftest.$ac_ext
4865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866 $as_echo "$ac_header_preproc" >&6; }
4867
4868 # So?  What about this header?
4869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4870   yes:no: )
4871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4875     ac_header_preproc=yes
4876     ;;
4877   no:yes:* )
4878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4881 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4885 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4886     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4890
4891     ;;
4892 esac
4893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4894 $as_echo_n "checking for $ac_header... " >&6; }
4895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4896   $as_echo_n "(cached) " >&6
4897 else
4898   eval "$as_ac_Header=\$ac_header_preproc"
4899 fi
4900 ac_res=`eval 'as_val=${'$as_ac_Header'}
4901                  $as_echo "$as_val"'`
4902                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4903 $as_echo "$ac_res" >&6; }
4904
4905 fi
4906 if test `eval 'as_val=${'$as_ac_Header'}
4907                  $as_echo "$as_val"'` = 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 ac_ext=cpp
4917 ac_cpp='$CXXCPP $CPPFLAGS'
4918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4921 if test -z "$CXX"; then
4922   if test -n "$CCC"; then
4923     CXX=$CCC
4924   else
4925     if test -n "$ac_tool_prefix"; then
4926   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4927   do
4928     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_CXX+set}" = set; then
4933   $as_echo_n "(cached) " >&6
4934 else
4935   if test -n "$CXX"; then
4936   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941   IFS=$as_save_IFS
4942   test -z "$as_dir" && as_dir=.
4943   for ac_exec_ext in '' $ac_executable_extensions; do
4944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4946     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947     break 2
4948   fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 CXX=$ac_cv_prog_CXX
4956 if test -n "$CXX"; then
4957   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4958 $as_echo "$CXX" >&6; }
4959 else
4960   { $as_echo "$as_me:$LINENO: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964
4965     test -n "$CXX" && break
4966   done
4967 fi
4968 if test -z "$CXX"; then
4969   ac_ct_CXX=$CXX
4970   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4971 do
4972   # Extract the first word of "$ac_prog", so it can be a program name with args.
4973 set dummy $ac_prog; ac_word=$2
4974 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4977   $as_echo_n "(cached) " >&6
4978 else
4979   if test -n "$ac_ct_CXX"; then
4980   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987   for ac_exec_ext in '' $ac_executable_extensions; do
4988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989     ac_cv_prog_ac_ct_CXX="$ac_prog"
4990     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994 done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5000 if test -n "$ac_ct_CXX"; then
5001   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5002 $as_echo "$ac_ct_CXX" >&6; }
5003 else
5004   { $as_echo "$as_me:$LINENO: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009   test -n "$ac_ct_CXX" && break
5010 done
5011
5012   if test "x$ac_ct_CXX" = x; then
5013     CXX="g++"
5014   else
5015     case $cross_compiling:$ac_tool_warned in
5016 yes:)
5017 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5018 whose name does not start with the host triplet.  If you think this
5019 configuration is useful to you, please write to autoconf@gnu.org." >&5
5020 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5021 whose name does not start with the host triplet.  If you think this
5022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5023 ac_tool_warned=yes ;;
5024 esac
5025     CXX=$ac_ct_CXX
5026   fi
5027 fi
5028
5029   fi
5030 fi
5031 # Provide some information about the compiler.
5032 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5033 set X $ac_compile
5034 ac_compiler=$2
5035 { (ac_try="$ac_compiler --version >&5"
5036 case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041 $as_echo "$ac_try_echo") >&5
5042   (eval "$ac_compiler --version >&5") 2>&5
5043   ac_status=$?
5044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }
5046 { (ac_try="$ac_compiler -v >&5"
5047 case "(($ac_try" in
5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049   *) ac_try_echo=$ac_try;;
5050 esac
5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5052 $as_echo "$ac_try_echo") >&5
5053   (eval "$ac_compiler -v >&5") 2>&5
5054   ac_status=$?
5055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }
5057 { (ac_try="$ac_compiler -V >&5"
5058 case "(($ac_try" in
5059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060   *) ac_try_echo=$ac_try;;
5061 esac
5062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5063 $as_echo "$ac_try_echo") >&5
5064   (eval "$ac_compiler -V >&5") 2>&5
5065   ac_status=$?
5066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }
5068
5069 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5070 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5071 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5072   $as_echo_n "(cached) " >&6
5073 else
5074   cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080
5081 int
5082 main ()
5083 {
5084 #ifndef __GNUC__
5085        choke me
5086 #endif
5087
5088   ;
5089   return 0;
5090 }
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5094 case "(($ac_try" in
5095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096   *) ac_try_echo=$ac_try;;
5097 esac
5098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5099 $as_echo "$ac_try_echo") >&5
5100   (eval "$ac_compile") 2>conftest.er1
5101   ac_status=$?
5102   grep -v '^ *+' conftest.er1 >conftest.err
5103   rm -f conftest.er1
5104   cat conftest.err >&5
5105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } && {
5107          test -z "$ac_cxx_werror_flag" ||
5108          test ! -s conftest.err
5109        } && test -s conftest.$ac_objext; then
5110   ac_compiler_gnu=yes
5111 else
5112   $as_echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115         ac_compiler_gnu=no
5116 fi
5117
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5120
5121 fi
5122 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5123 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5124 if test $ac_compiler_gnu = yes; then
5125   GXX=yes
5126 else
5127   GXX=
5128 fi
5129 ac_test_CXXFLAGS=${CXXFLAGS+set}
5130 ac_save_CXXFLAGS=$CXXFLAGS
5131 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5132 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5133 if test "${ac_cv_prog_cxx_g+set}" = set; then
5134   $as_echo_n "(cached) " >&6
5135 else
5136   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5137    ac_cxx_werror_flag=yes
5138    ac_cv_prog_cxx_g=no
5139    CXXFLAGS="-g"
5140    cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h.  */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h.  */
5146
5147 int
5148 main ()
5149 {
5150
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (ac_try="$ac_compile"
5157 case "(($ac_try" in
5158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159   *) ac_try_echo=$ac_try;;
5160 esac
5161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5162 $as_echo "$ac_try_echo") >&5
5163   (eval "$ac_compile") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } && {
5170          test -z "$ac_cxx_werror_flag" ||
5171          test ! -s conftest.err
5172        } && test -s conftest.$ac_objext; then
5173   ac_cv_prog_cxx_g=yes
5174 else
5175   $as_echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178         CXXFLAGS=""
5179       cat >conftest.$ac_ext <<_ACEOF
5180 /* confdefs.h.  */
5181 _ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h.  */
5185
5186 int
5187 main ()
5188 {
5189
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 rm -f conftest.$ac_objext
5195 if { (ac_try="$ac_compile"
5196 case "(($ac_try" in
5197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198   *) ac_try_echo=$ac_try;;
5199 esac
5200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202   (eval "$ac_compile") 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } && {
5209          test -z "$ac_cxx_werror_flag" ||
5210          test ! -s conftest.err
5211        } && test -s conftest.$ac_objext; then
5212   :
5213 else
5214   $as_echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5218          CXXFLAGS="-g"
5219          cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225
5226 int
5227 main ()
5228 {
5229
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5236 case "(($ac_try" in
5237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238   *) ac_try_echo=$ac_try;;
5239 esac
5240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5241 $as_echo "$ac_try_echo") >&5
5242   (eval "$ac_compile") 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } && {
5249          test -z "$ac_cxx_werror_flag" ||
5250          test ! -s conftest.err
5251        } && test -s conftest.$ac_objext; then
5252   ac_cv_prog_cxx_g=yes
5253 else
5254   $as_echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257
5258 fi
5259
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 fi
5262
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 fi
5265
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5268 fi
5269 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5270 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5271 if test "$ac_test_CXXFLAGS" = set; then
5272   CXXFLAGS=$ac_save_CXXFLAGS
5273 elif test $ac_cv_prog_cxx_g = yes; then
5274   if test "$GXX" = yes; then
5275     CXXFLAGS="-g -O2"
5276   else
5277     CXXFLAGS="-g"
5278   fi
5279 else
5280   if test "$GXX" = yes; then
5281     CXXFLAGS="-O2"
5282   else
5283     CXXFLAGS=
5284   fi
5285 fi
5286 ac_ext=cpp
5287 ac_cpp='$CXXCPP $CPPFLAGS'
5288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5291
5292
5293
5294 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5295     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5296     (test "X$CXX" != "Xg++"))) ; then
5297   ac_ext=cpp
5298 ac_cpp='$CXXCPP $CPPFLAGS'
5299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5302 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5303 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5304 if test -z "$CXXCPP"; then
5305   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5306   $as_echo_n "(cached) " >&6
5307 else
5308       # Double quotes because CXXCPP needs to be expanded
5309     for CXXCPP in "$CXX -E" "/lib/cpp"
5310     do
5311       ac_preproc_ok=false
5312 for ac_cxx_preproc_warn_flag in '' yes
5313 do
5314   # Use a header file that comes with gcc, so configuring glibc
5315   # with a fresh cross-compiler works.
5316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5317   # <limits.h> exists even on freestanding compilers.
5318   # On the NeXT, cc -E runs the code through the compiler's parser,
5319   # not just through cpp. "Syntax error" is here to catch this case.
5320   cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h.  */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h.  */
5326 #ifdef __STDC__
5327 # include <limits.h>
5328 #else
5329 # include <assert.h>
5330 #endif
5331                      Syntax error
5332 _ACEOF
5333 if { (ac_try="$ac_cpp conftest.$ac_ext"
5334 case "(($ac_try" in
5335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336   *) ac_try_echo=$ac_try;;
5337 esac
5338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5339 $as_echo "$ac_try_echo") >&5
5340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } >/dev/null && {
5347          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5348          test ! -s conftest.err
5349        }; then
5350   :
5351 else
5352   $as_echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355   # Broken: fails on valid input.
5356 continue
5357 fi
5358
5359 rm -f conftest.err conftest.$ac_ext
5360
5361   # OK, works on sane cases.  Now check whether nonexistent headers
5362   # can be detected and how.
5363   cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 #include <ac_nonexistent.h>
5370 _ACEOF
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5372 case "(($ac_try" in
5373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374   *) ac_try_echo=$ac_try;;
5375 esac
5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5377 $as_echo "$ac_try_echo") >&5
5378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379   ac_status=$?
5380   grep -v '^ *+' conftest.er1 >conftest.err
5381   rm -f conftest.er1
5382   cat conftest.err >&5
5383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } >/dev/null && {
5385          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5386          test ! -s conftest.err
5387        }; then
5388   # Broken: success on invalid input.
5389 continue
5390 else
5391   $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394   # Passes both tests.
5395 ac_preproc_ok=:
5396 break
5397 fi
5398
5399 rm -f conftest.err conftest.$ac_ext
5400
5401 done
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then
5405   break
5406 fi
5407
5408     done
5409     ac_cv_prog_CXXCPP=$CXXCPP
5410
5411 fi
5412   CXXCPP=$ac_cv_prog_CXXCPP
5413 else
5414   ac_cv_prog_CXXCPP=$CXXCPP
5415 fi
5416 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5417 $as_echo "$CXXCPP" >&6; }
5418 ac_preproc_ok=false
5419 for ac_cxx_preproc_warn_flag in '' yes
5420 do
5421   # Use a header file that comes with gcc, so configuring glibc
5422   # with a fresh cross-compiler works.
5423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424   # <limits.h> exists even on freestanding compilers.
5425   # On the NeXT, cc -E runs the code through the compiler's parser,
5426   # not just through cpp. "Syntax error" is here to catch this case.
5427   cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h.  */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h.  */
5433 #ifdef __STDC__
5434 # include <limits.h>
5435 #else
5436 # include <assert.h>
5437 #endif
5438                      Syntax error
5439 _ACEOF
5440 if { (ac_try="$ac_cpp conftest.$ac_ext"
5441 case "(($ac_try" in
5442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443   *) ac_try_echo=$ac_try;;
5444 esac
5445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5446 $as_echo "$ac_try_echo") >&5
5447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5448   ac_status=$?
5449   grep -v '^ *+' conftest.er1 >conftest.err
5450   rm -f conftest.er1
5451   cat conftest.err >&5
5452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } >/dev/null && {
5454          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5455          test ! -s conftest.err
5456        }; then
5457   :
5458 else
5459   $as_echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462   # Broken: fails on valid input.
5463 continue
5464 fi
5465
5466 rm -f conftest.err conftest.$ac_ext
5467
5468   # OK, works on sane cases.  Now check whether nonexistent headers
5469   # can be detected and how.
5470   cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476 #include <ac_nonexistent.h>
5477 _ACEOF
5478 if { (ac_try="$ac_cpp conftest.$ac_ext"
5479 case "(($ac_try" in
5480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481   *) ac_try_echo=$ac_try;;
5482 esac
5483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5484 $as_echo "$ac_try_echo") >&5
5485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } >/dev/null && {
5492          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5493          test ! -s conftest.err
5494        }; then
5495   # Broken: success on invalid input.
5496 continue
5497 else
5498   $as_echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501   # Passes both tests.
5502 ac_preproc_ok=:
5503 break
5504 fi
5505
5506 rm -f conftest.err conftest.$ac_ext
5507
5508 done
5509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5510 rm -f conftest.err conftest.$ac_ext
5511 if $ac_preproc_ok; then
5512   :
5513 else
5514   { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5515 See \`config.log' for more details." >&5
5516 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5517 See \`config.log' for more details." >&2;}
5518    { (exit 1); exit 1; }; }
5519 fi
5520
5521 ac_ext=cpp
5522 ac_cpp='$CXXCPP $CPPFLAGS'
5523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5526
5527 fi
5528
5529
5530 ac_ext=f
5531 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5532 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5534 if test -n "$ac_tool_prefix"; then
5535   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 pgf95 lf95 ftn
5536   do
5537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_prog_F77+set}" = set; then
5542   $as_echo_n "(cached) " >&6
5543 else
5544   if test -n "$F77"; then
5545   ac_cv_prog_F77="$F77" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552   for ac_exec_ext in '' $ac_executable_extensions; do
5553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 F77=$ac_cv_prog_F77
5565 if test -n "$F77"; then
5566   { $as_echo "$as_me:$LINENO: result: $F77" >&5
5567 $as_echo "$F77" >&6; }
5568 else
5569   { $as_echo "$as_me:$LINENO: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574     test -n "$F77" && break
5575   done
5576 fi
5577 if test -z "$F77"; then
5578   ac_ct_F77=$F77
5579   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 pgf95 lf95 ftn
5580 do
5581   # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$ac_ct_F77"; then
5589   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596   for ac_exec_ext in '' $ac_executable_extensions; do
5597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598     ac_cv_prog_ac_ct_F77="$ac_prog"
5599     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603 done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5609 if test -n "$ac_ct_F77"; then
5610   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5611 $as_echo "$ac_ct_F77" >&6; }
5612 else
5613   { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618   test -n "$ac_ct_F77" && break
5619 done
5620
5621   if test "x$ac_ct_F77" = x; then
5622     F77=""
5623   else
5624     case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5627 whose name does not start with the host triplet.  If you think this
5628 configuration is useful to you, please write to autoconf@gnu.org." >&5
5629 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5630 whose name does not start with the host triplet.  If you think this
5631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5632 ac_tool_warned=yes ;;
5633 esac
5634     F77=$ac_ct_F77
5635   fi
5636 fi
5637
5638
5639 # Provide some information about the compiler.
5640 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5641 set X $ac_compile
5642 ac_compiler=$2
5643 { (ac_try="$ac_compiler --version >&5"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650   (eval "$ac_compiler --version >&5") 2>&5
5651   ac_status=$?
5652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }
5654 { (ac_try="$ac_compiler -v >&5"
5655 case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661   (eval "$ac_compiler -v >&5") 2>&5
5662   ac_status=$?
5663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }
5665 { (ac_try="$ac_compiler -V >&5"
5666 case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5671 $as_echo "$ac_try_echo") >&5
5672   (eval "$ac_compiler -V >&5") 2>&5
5673   ac_status=$?
5674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }
5676 rm -f a.out
5677
5678 # If we don't use `.F' as extension, the preprocessor is not run on the
5679 # input file.  (Note that this only needs to work for GNU compilers.)
5680 ac_save_ext=$ac_ext
5681 ac_ext=F
5682 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5683 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5684 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5685   $as_echo_n "(cached) " >&6
5686 else
5687   cat >conftest.$ac_ext <<_ACEOF
5688       program main
5689 #ifndef __GNUC__
5690        choke me
5691 #endif
5692
5693       end
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5697 case "(($ac_try" in
5698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699   *) ac_try_echo=$ac_try;;
5700 esac
5701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5702 $as_echo "$ac_try_echo") >&5
5703   (eval "$ac_compile") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } && {
5710          test -z "$ac_f77_werror_flag" ||
5711          test ! -s conftest.err
5712        } && test -s conftest.$ac_objext; then
5713   ac_compiler_gnu=yes
5714 else
5715   $as_echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718         ac_compiler_gnu=no
5719 fi
5720
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5723
5724 fi
5725 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5726 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5727 ac_ext=$ac_save_ext
5728 ac_test_FFLAGS=${FFLAGS+set}
5729 ac_save_FFLAGS=$FFLAGS
5730 FFLAGS=
5731 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5732 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5733 if test "${ac_cv_prog_f77_g+set}" = set; then
5734   $as_echo_n "(cached) " >&6
5735 else
5736   FFLAGS=-g
5737 cat >conftest.$ac_ext <<_ACEOF
5738       program main
5739
5740       end
5741 _ACEOF
5742 rm -f conftest.$ac_objext
5743 if { (ac_try="$ac_compile"
5744 case "(($ac_try" in
5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746   *) ac_try_echo=$ac_try;;
5747 esac
5748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5749 $as_echo "$ac_try_echo") >&5
5750   (eval "$ac_compile") 2>conftest.er1
5751   ac_status=$?
5752   grep -v '^ *+' conftest.er1 >conftest.err
5753   rm -f conftest.er1
5754   cat conftest.err >&5
5755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); } && {
5757          test -z "$ac_f77_werror_flag" ||
5758          test ! -s conftest.err
5759        } && test -s conftest.$ac_objext; then
5760   ac_cv_prog_f77_g=yes
5761 else
5762   $as_echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765         ac_cv_prog_f77_g=no
5766 fi
5767
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769
5770 fi
5771 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5772 $as_echo "$ac_cv_prog_f77_g" >&6; }
5773 if test "$ac_test_FFLAGS" = set; then
5774   FFLAGS=$ac_save_FFLAGS
5775 elif test $ac_cv_prog_f77_g = yes; then
5776   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5777     FFLAGS="-g -O2"
5778   else
5779     FFLAGS="-g"
5780   fi
5781 else
5782   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5783     FFLAGS="-O2"
5784   else
5785     FFLAGS=
5786   fi
5787 fi
5788
5789 if test $ac_compiler_gnu = yes; then
5790   G77=yes
5791 else
5792   G77=
5793 fi
5794 ac_ext=c
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799
5800
5801
5802 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5803 # find the maximum length of command line arguments
5804 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5806 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5807   $as_echo_n "(cached) " >&6
5808 else
5809     i=0
5810   teststring="ABCD"
5811
5812   case $build_os in
5813   msdosdjgpp*)
5814     # On DJGPP, this test can blow up pretty badly due to problems in libc
5815     # (any single argument exceeding 2000 bytes causes a buffer overrun
5816     # during glob expansion).  Even if it were fixed, the result of this
5817     # check would be larger than it should be.
5818     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5819     ;;
5820
5821   gnu*)
5822     # Under GNU Hurd, this test is not required because there is
5823     # no limit to the length of command line arguments.
5824     # Libtool will interpret -1 as no limit whatsoever
5825     lt_cv_sys_max_cmd_len=-1;
5826     ;;
5827
5828   cygwin* | mingw*)
5829     # On Win9x/ME, this test blows up -- it succeeds, but takes
5830     # about 5 minutes as the teststring grows exponentially.
5831     # Worse, since 9x/ME are not pre-emptively multitasking,
5832     # you end up with a "frozen" computer, even though with patience
5833     # the test eventually succeeds (with a max line length of 256k).
5834     # Instead, let's just punt: use the minimum linelength reported by
5835     # all of the supported platforms: 8192 (on NT/2K/XP).
5836     lt_cv_sys_max_cmd_len=8192;
5837     ;;
5838
5839   amigaos*)
5840     # On AmigaOS with pdksh, this test takes hours, literally.
5841     # So we just punt and use a minimum line length of 8192.
5842     lt_cv_sys_max_cmd_len=8192;
5843     ;;
5844
5845   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5846     # This has been around since 386BSD, at least.  Likely further.
5847     if test -x /sbin/sysctl; then
5848       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5849     elif test -x /usr/sbin/sysctl; then
5850       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5851     else
5852       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5853     fi
5854     # And add a safety zone
5855     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5856     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5857     ;;
5858
5859   interix*)
5860     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5861     lt_cv_sys_max_cmd_len=196608
5862     ;;
5863
5864   osf*)
5865     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5866     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5867     # nice to cause kernel panics so lets avoid the loop below.
5868     # First set a reasonable default.
5869     lt_cv_sys_max_cmd_len=16384
5870     #
5871     if test -x /sbin/sysconfig; then
5872       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5873         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5874       esac
5875     fi
5876     ;;
5877   sco3.2v5*)
5878     lt_cv_sys_max_cmd_len=102400
5879     ;;
5880   sysv5* | sco5v6* | sysv4.2uw2*)
5881     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5882     if test -n "$kargmax"; then
5883       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5884     else
5885       lt_cv_sys_max_cmd_len=32768
5886     fi
5887     ;;
5888   *)
5889     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5890     if test -n "$lt_cv_sys_max_cmd_len"; then
5891       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5892       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5893     else
5894       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5895       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5896                = "XX$teststring") >/dev/null 2>&1 &&
5897               new_result=`expr "X$teststring" : ".*" 2>&1` &&
5898               lt_cv_sys_max_cmd_len=$new_result &&
5899               test $i != 17 # 1/2 MB should be enough
5900       do
5901         i=`expr $i + 1`
5902         teststring=$teststring$teststring
5903       done
5904       teststring=
5905       # Add a significant safety factor because C++ compilers can tack on massive
5906       # amounts of additional arguments before passing them to the linker.
5907       # It appears as though 1/2 is a usable value.
5908       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5909     fi
5910     ;;
5911   esac
5912
5913 fi
5914
5915 if test -n $lt_cv_sys_max_cmd_len ; then
5916   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5917 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5918 else
5919   { $as_echo "$as_me:$LINENO: result: none" >&5
5920 $as_echo "none" >&6; }
5921 fi
5922
5923
5924
5925
5926
5927 # Check for command to grab the raw symbol name followed by C symbol from nm.
5928 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5929 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5930 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5931   $as_echo_n "(cached) " >&6
5932 else
5933
5934 # These are sane defaults that work on at least a few old systems.
5935 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5936
5937 # Character class describing NM global symbol codes.
5938 symcode='[BCDEGRST]'
5939
5940 # Regexp to match symbols that can be accessed directly from C.
5941 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5942
5943 # Transform an extracted symbol line into a proper C declaration
5944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5945
5946 # Transform an extracted symbol line into symbol name and symbol address
5947 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'"
5948
5949 # Define system-specific variables.
5950 case $host_os in
5951 aix*)
5952   symcode='[BCDT]'
5953   ;;
5954 cygwin* | mingw* | pw32*)
5955   symcode='[ABCDGISTW]'
5956   ;;
5957 hpux*) # Its linker distinguishes data from code symbols
5958   if test "$host_cpu" = ia64; then
5959     symcode='[ABCDEGRST]'
5960   fi
5961   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5962   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'"
5963   ;;
5964 linux* | k*bsd*-gnu)
5965   if test "$host_cpu" = ia64; then
5966     symcode='[ABCDGIRSTW]'
5967     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5968     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'"
5969   fi
5970   ;;
5971 irix* | nonstopux*)
5972   symcode='[BCDEGRST]'
5973   ;;
5974 osf*)
5975   symcode='[BCDEGQRST]'
5976   ;;
5977 solaris*)
5978   symcode='[BDRT]'
5979   ;;
5980 sco3.2v5*)
5981   symcode='[DT]'
5982   ;;
5983 sysv4.2uw2*)
5984   symcode='[DT]'
5985   ;;
5986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5987   symcode='[ABDT]'
5988   ;;
5989 sysv4)
5990   symcode='[DFNSTU]'
5991   ;;
5992 esac
5993
5994 # Handle CRLF in mingw tool chain
5995 opt_cr=
5996 case $build_os in
5997 mingw*)
5998   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5999   ;;
6000 esac
6001
6002 # If we're using GNU nm, then use its standard symbol codes.
6003 case `$NM -V 2>&1` in
6004 *GNU* | *'with BFD'*)
6005   symcode='[ABCDGIRSTW]' ;;
6006 esac
6007
6008 # Try without a prefix undercore, then with it.
6009 for ac_symprfx in "" "_"; do
6010
6011   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6012   symxfrm="\\1 $ac_symprfx\\2 \\2"
6013
6014   # Write the raw and C identifiers.
6015   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6016
6017   # Check to see that the pipe works correctly.
6018   pipe_works=no
6019
6020   rm -f conftest*
6021   cat > conftest.$ac_ext <<EOF
6022 #ifdef __cplusplus
6023 extern "C" {
6024 #endif
6025 char nm_test_var;
6026 void nm_test_func(){}
6027 #ifdef __cplusplus
6028 }
6029 #endif
6030 int main(){nm_test_var='a';nm_test_func();return(0);}
6031 EOF
6032
6033   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034   (eval $ac_compile) 2>&5
6035   ac_status=$?
6036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; then
6038     # Now try to grab the symbols.
6039     nlist=conftest.nm
6040     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6041   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6042   ac_status=$?
6043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } && test -s "$nlist"; then
6045       # Try sorting and uniquifying the output.
6046       if sort "$nlist" | uniq > "$nlist"T; then
6047         mv -f "$nlist"T "$nlist"
6048       else
6049         rm -f "$nlist"T
6050       fi
6051
6052       # Make sure that we snagged all the symbols we need.
6053       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6054         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6055           cat <<EOF > conftest.$ac_ext
6056 #ifdef __cplusplus
6057 extern "C" {
6058 #endif
6059
6060 EOF
6061           # Now generate the symbol file.
6062           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6063
6064           cat <<EOF >> conftest.$ac_ext
6065 #if defined (__STDC__) && __STDC__
6066 # define lt_ptr_t void *
6067 #else
6068 # define lt_ptr_t char *
6069 # define const
6070 #endif
6071
6072 /* The mapping between symbol names and symbols. */
6073 const struct {
6074   const char *name;
6075   lt_ptr_t address;
6076 }
6077 lt_preloaded_symbols[] =
6078 {
6079 EOF
6080           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6081           cat <<\EOF >> conftest.$ac_ext
6082   {0, (lt_ptr_t) 0}
6083 };
6084
6085 #ifdef __cplusplus
6086 }
6087 #endif
6088 EOF
6089           # Now try linking the two files.
6090           mv conftest.$ac_objext conftstm.$ac_objext
6091           lt_save_LIBS="$LIBS"
6092           lt_save_CFLAGS="$CFLAGS"
6093           LIBS="conftstm.$ac_objext"
6094           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6095           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6096   (eval $ac_link) 2>&5
6097   ac_status=$?
6098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6100             pipe_works=yes
6101           fi
6102           LIBS="$lt_save_LIBS"
6103           CFLAGS="$lt_save_CFLAGS"
6104         else
6105           echo "cannot find nm_test_func in $nlist" >&5
6106         fi
6107       else
6108         echo "cannot find nm_test_var in $nlist" >&5
6109       fi
6110     else
6111       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6112     fi
6113   else
6114     echo "$progname: failed program was:" >&5
6115     cat conftest.$ac_ext >&5
6116   fi
6117   rm -rf conftest* conftst*
6118
6119   # Do not use the global_symbol_pipe unless it works.
6120   if test "$pipe_works" = yes; then
6121     break
6122   else
6123     lt_cv_sys_global_symbol_pipe=
6124   fi
6125 done
6126
6127 fi
6128
6129 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6130   lt_cv_sys_global_symbol_to_cdecl=
6131 fi
6132 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6133   { $as_echo "$as_me:$LINENO: result: failed" >&5
6134 $as_echo "failed" >&6; }
6135 else
6136   { $as_echo "$as_me:$LINENO: result: ok" >&5
6137 $as_echo "ok" >&6; }
6138 fi
6139
6140 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6141 $as_echo_n "checking for objdir... " >&6; }
6142 if test "${lt_cv_objdir+set}" = set; then
6143   $as_echo_n "(cached) " >&6
6144 else
6145   rm -f .libs 2>/dev/null
6146 mkdir .libs 2>/dev/null
6147 if test -d .libs; then
6148   lt_cv_objdir=.libs
6149 else
6150   # MS-DOS does not allow filenames that begin with a dot.
6151   lt_cv_objdir=_libs
6152 fi
6153 rmdir .libs 2>/dev/null
6154 fi
6155 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6156 $as_echo "$lt_cv_objdir" >&6; }
6157 objdir=$lt_cv_objdir
6158
6159
6160
6161
6162
6163 case $host_os in
6164 aix3*)
6165   # AIX sometimes has problems with the GCC collect2 program.  For some
6166   # reason, if we set the COLLECT_NAMES environment variable, the problems
6167   # vanish in a puff of smoke.
6168   if test "X${COLLECT_NAMES+set}" != Xset; then
6169     COLLECT_NAMES=
6170     export COLLECT_NAMES
6171   fi
6172   ;;
6173 esac
6174
6175 # Sed substitution that helps us do robust quoting.  It backslashifies
6176 # metacharacters that are still active within double-quoted strings.
6177 Xsed='sed -e 1s/^X//'
6178 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6179
6180 # Same as above, but do not quote variable references.
6181 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6182
6183 # Sed substitution to delay expansion of an escaped shell variable in a
6184 # double_quote_subst'ed string.
6185 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6186
6187 # Sed substitution to avoid accidental globbing in evaled expressions
6188 no_glob_subst='s/\*/\\\*/g'
6189
6190 # Constants:
6191 rm="rm -f"
6192
6193 # Global variables:
6194 default_ofile=libtool
6195 can_build_shared=yes
6196
6197 # All known linkers require a `.a' archive for static linking (except MSVC,
6198 # which needs '.lib').
6199 libext=a
6200 ltmain="$ac_aux_dir/ltmain.sh"
6201 ofile="$default_ofile"
6202 with_gnu_ld="$lt_cv_prog_gnu_ld"
6203
6204 if test -n "$ac_tool_prefix"; then
6205   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}ar; ac_word=$2
6207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_AR+set}" = set; then
6210   $as_echo_n "(cached) " >&6
6211 else
6212   if test -n "$AR"; then
6213   ac_cv_prog_AR="$AR" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218   IFS=$as_save_IFS
6219   test -z "$as_dir" && as_dir=.
6220   for ac_exec_ext in '' $ac_executable_extensions; do
6221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222     ac_cv_prog_AR="${ac_tool_prefix}ar"
6223     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224     break 2
6225   fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 AR=$ac_cv_prog_AR
6233 if test -n "$AR"; then
6234   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6235 $as_echo "$AR" >&6; }
6236 else
6237   { $as_echo "$as_me:$LINENO: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241
6242 fi
6243 if test -z "$ac_cv_prog_AR"; then
6244   ac_ct_AR=$AR
6245   # Extract the first word of "ar", so it can be a program name with args.
6246 set dummy ar; ac_word=$2
6247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6250   $as_echo_n "(cached) " >&6
6251 else
6252   if test -n "$ac_ct_AR"; then
6253   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260   for ac_exec_ext in '' $ac_executable_extensions; do
6261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262     ac_cv_prog_ac_ct_AR="ar"
6263     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6273 if test -n "$ac_ct_AR"; then
6274   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6275 $as_echo "$ac_ct_AR" >&6; }
6276 else
6277   { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281   if test "x$ac_ct_AR" = x; then
6282     AR="false"
6283   else
6284     case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6287 whose name does not start with the host triplet.  If you think this
6288 configuration is useful to you, please write to autoconf@gnu.org." >&5
6289 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6290 whose name does not start with the host triplet.  If you think this
6291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294     AR=$ac_ct_AR
6295   fi
6296 else
6297   AR="$ac_cv_prog_AR"
6298 fi
6299
6300 if test -n "$ac_tool_prefix"; then
6301   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_RANLIB+set}" = set; then
6306   $as_echo_n "(cached) " >&6
6307 else
6308   if test -n "$RANLIB"; then
6309   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316   for ac_exec_ext in '' $ac_executable_extensions; do
6317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6319     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 RANLIB=$ac_cv_prog_RANLIB
6329 if test -n "$RANLIB"; then
6330   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6331 $as_echo "$RANLIB" >&6; }
6332 else
6333   { $as_echo "$as_me:$LINENO: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 fi
6339 if test -z "$ac_cv_prog_RANLIB"; then
6340   ac_ct_RANLIB=$RANLIB
6341   # Extract the first word of "ranlib", so it can be a program name with args.
6342 set dummy ranlib; ac_word=$2
6343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6346   $as_echo_n "(cached) " >&6
6347 else
6348   if test -n "$ac_ct_RANLIB"; then
6349   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356   for ac_exec_ext in '' $ac_executable_extensions; do
6357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358     ac_cv_prog_ac_ct_RANLIB="ranlib"
6359     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6369 if test -n "$ac_ct_RANLIB"; then
6370   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6371 $as_echo "$ac_ct_RANLIB" >&6; }
6372 else
6373   { $as_echo "$as_me:$LINENO: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377   if test "x$ac_ct_RANLIB" = x; then
6378     RANLIB=":"
6379   else
6380     case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6383 whose name does not start with the host triplet.  If you think this
6384 configuration is useful to you, please write to autoconf@gnu.org." >&5
6385 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6386 whose name does not start with the host triplet.  If you think this
6387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390     RANLIB=$ac_ct_RANLIB
6391   fi
6392 else
6393   RANLIB="$ac_cv_prog_RANLIB"
6394 fi
6395
6396 if test -n "$ac_tool_prefix"; then
6397   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}strip; ac_word=$2
6399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_STRIP+set}" = set; then
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$STRIP"; then
6405   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6415     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 STRIP=$ac_cv_prog_STRIP
6425 if test -n "$STRIP"; then
6426   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6427 $as_echo "$STRIP" >&6; }
6428 else
6429   { $as_echo "$as_me:$LINENO: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434 fi
6435 if test -z "$ac_cv_prog_STRIP"; then
6436   ac_ct_STRIP=$STRIP
6437   # Extract the first word of "strip", so it can be a program name with args.
6438 set dummy strip; ac_word=$2
6439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6442   $as_echo_n "(cached) " >&6
6443 else
6444   if test -n "$ac_ct_STRIP"; then
6445   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450   IFS=$as_save_IFS
6451   test -z "$as_dir" && as_dir=.
6452   for ac_exec_ext in '' $ac_executable_extensions; do
6453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454     ac_cv_prog_ac_ct_STRIP="strip"
6455     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 fi
6463 fi
6464 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6465 if test -n "$ac_ct_STRIP"; then
6466   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6467 $as_echo "$ac_ct_STRIP" >&6; }
6468 else
6469   { $as_echo "$as_me:$LINENO: result: no" >&5
6470 $as_echo "no" >&6; }
6471 fi
6472
6473   if test "x$ac_ct_STRIP" = x; then
6474     STRIP=":"
6475   else
6476     case $cross_compiling:$ac_tool_warned in
6477 yes:)
6478 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6479 whose name does not start with the host triplet.  If you think this
6480 configuration is useful to you, please write to autoconf@gnu.org." >&5
6481 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6482 whose name does not start with the host triplet.  If you think this
6483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486     STRIP=$ac_ct_STRIP
6487   fi
6488 else
6489   STRIP="$ac_cv_prog_STRIP"
6490 fi
6491
6492
6493 old_CC="$CC"
6494 old_CFLAGS="$CFLAGS"
6495
6496 # Set sane defaults for various variables
6497 test -z "$AR" && AR=ar
6498 test -z "$AR_FLAGS" && AR_FLAGS=cru
6499 test -z "$AS" && AS=as
6500 test -z "$CC" && CC=cc
6501 test -z "$LTCC" && LTCC=$CC
6502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6503 test -z "$DLLTOOL" && DLLTOOL=dlltool
6504 test -z "$LD" && LD=ld
6505 test -z "$LN_S" && LN_S="ln -s"
6506 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6507 test -z "$NM" && NM=nm
6508 test -z "$SED" && SED=sed
6509 test -z "$OBJDUMP" && OBJDUMP=objdump
6510 test -z "$RANLIB" && RANLIB=:
6511 test -z "$STRIP" && STRIP=:
6512 test -z "$ac_objext" && ac_objext=o
6513
6514 # Determine commands to create old-style static archives.
6515 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6516 old_postinstall_cmds='chmod 644 $oldlib'
6517 old_postuninstall_cmds=
6518
6519 if test -n "$RANLIB"; then
6520   case $host_os in
6521   openbsd*)
6522     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6523     ;;
6524   *)
6525     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6526     ;;
6527   esac
6528   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6529 fi
6530
6531 for cc_temp in $compiler""; do
6532   case $cc_temp in
6533     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6534     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6535     \-*) ;;
6536     *) break;;
6537   esac
6538 done
6539 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6540
6541
6542 # Only perform the check for file, if the check method requires it
6543 case $deplibs_check_method in
6544 file_magic*)
6545   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6546     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6547 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6548 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6549   $as_echo_n "(cached) " >&6
6550 else
6551   case $MAGIC_CMD in
6552 [\\/*] |  ?:[\\/]*)
6553   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6554   ;;
6555 *)
6556   lt_save_MAGIC_CMD="$MAGIC_CMD"
6557   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6558   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6559   for ac_dir in $ac_dummy; do
6560     IFS="$lt_save_ifs"
6561     test -z "$ac_dir" && ac_dir=.
6562     if test -f $ac_dir/${ac_tool_prefix}file; then
6563       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6564       if test -n "$file_magic_test_file"; then
6565         case $deplibs_check_method in
6566         "file_magic "*)
6567           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6568           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6570             $EGREP "$file_magic_regex" > /dev/null; then
6571             :
6572           else
6573             cat <<EOF 1>&2
6574
6575 *** Warning: the command libtool uses to detect shared libraries,
6576 *** $file_magic_cmd, produces output that libtool cannot recognize.
6577 *** The result is that libtool may fail to recognize shared libraries
6578 *** as such.  This will affect the creation of libtool libraries that
6579 *** depend on shared libraries, but programs linked with such libtool
6580 *** libraries will work regardless of this problem.  Nevertheless, you
6581 *** may want to report the problem to your system manager and/or to
6582 *** bug-libtool@gnu.org
6583
6584 EOF
6585           fi ;;
6586         esac
6587       fi
6588       break
6589     fi
6590   done
6591   IFS="$lt_save_ifs"
6592   MAGIC_CMD="$lt_save_MAGIC_CMD"
6593   ;;
6594 esac
6595 fi
6596
6597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6598 if test -n "$MAGIC_CMD"; then
6599   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6600 $as_echo "$MAGIC_CMD" >&6; }
6601 else
6602   { $as_echo "$as_me:$LINENO: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606 if test -z "$lt_cv_path_MAGIC_CMD"; then
6607   if test -n "$ac_tool_prefix"; then
6608     { $as_echo "$as_me:$LINENO: checking for file" >&5
6609 $as_echo_n "checking for file... " >&6; }
6610 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6611   $as_echo_n "(cached) " >&6
6612 else
6613   case $MAGIC_CMD in
6614 [\\/*] |  ?:[\\/]*)
6615   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6616   ;;
6617 *)
6618   lt_save_MAGIC_CMD="$MAGIC_CMD"
6619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6621   for ac_dir in $ac_dummy; do
6622     IFS="$lt_save_ifs"
6623     test -z "$ac_dir" && ac_dir=.
6624     if test -f $ac_dir/file; then
6625       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6626       if test -n "$file_magic_test_file"; then
6627         case $deplibs_check_method in
6628         "file_magic "*)
6629           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6630           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6631           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6632             $EGREP "$file_magic_regex" > /dev/null; then
6633             :
6634           else
6635             cat <<EOF 1>&2
6636
6637 *** Warning: the command libtool uses to detect shared libraries,
6638 *** $file_magic_cmd, produces output that libtool cannot recognize.
6639 *** The result is that libtool may fail to recognize shared libraries
6640 *** as such.  This will affect the creation of libtool libraries that
6641 *** depend on shared libraries, but programs linked with such libtool
6642 *** libraries will work regardless of this problem.  Nevertheless, you
6643 *** may want to report the problem to your system manager and/or to
6644 *** bug-libtool@gnu.org
6645
6646 EOF
6647           fi ;;
6648         esac
6649       fi
6650       break
6651     fi
6652   done
6653   IFS="$lt_save_ifs"
6654   MAGIC_CMD="$lt_save_MAGIC_CMD"
6655   ;;
6656 esac
6657 fi
6658
6659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6660 if test -n "$MAGIC_CMD"; then
6661   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6662 $as_echo "$MAGIC_CMD" >&6; }
6663 else
6664   { $as_echo "$as_me:$LINENO: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668   else
6669     MAGIC_CMD=:
6670   fi
6671 fi
6672
6673   fi
6674   ;;
6675 esac
6676
6677
6678   case $host_os in
6679     rhapsody* | darwin*)
6680     if test -n "$ac_tool_prefix"; then
6681   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6686   $as_echo_n "(cached) " >&6
6687 else
6688   if test -n "$DSYMUTIL"; then
6689   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696   for ac_exec_ext in '' $ac_executable_extensions; do
6697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6699     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6709 if test -n "$DSYMUTIL"; then
6710   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6711 $as_echo "$DSYMUTIL" >&6; }
6712 else
6713   { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718 fi
6719 if test -z "$ac_cv_prog_DSYMUTIL"; then
6720   ac_ct_DSYMUTIL=$DSYMUTIL
6721   # Extract the first word of "dsymutil", so it can be a program name with args.
6722 set dummy dsymutil; ac_word=$2
6723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6726   $as_echo_n "(cached) " >&6
6727 else
6728   if test -n "$ac_ct_DSYMUTIL"; then
6729   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736   for ac_exec_ext in '' $ac_executable_extensions; do
6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6739     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6749 if test -n "$ac_ct_DSYMUTIL"; then
6750   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6751 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6752 else
6753   { $as_echo "$as_me:$LINENO: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757   if test "x$ac_ct_DSYMUTIL" = x; then
6758     DSYMUTIL=":"
6759   else
6760     case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet.  If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet.  If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770     DSYMUTIL=$ac_ct_DSYMUTIL
6771   fi
6772 else
6773   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6774 fi
6775
6776     if test -n "$ac_tool_prefix"; then
6777   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6782   $as_echo_n "(cached) " >&6
6783 else
6784   if test -n "$NMEDIT"; then
6785   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6795     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 NMEDIT=$ac_cv_prog_NMEDIT
6805 if test -n "$NMEDIT"; then
6806   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6807 $as_echo "$NMEDIT" >&6; }
6808 else
6809   { $as_echo "$as_me:$LINENO: result: no" >&5
6810 $as_echo "no" >&6; }
6811 fi
6812
6813
6814 fi
6815 if test -z "$ac_cv_prog_NMEDIT"; then
6816   ac_ct_NMEDIT=$NMEDIT
6817   # Extract the first word of "nmedit", so it can be a program name with args.
6818 set dummy nmedit; ac_word=$2
6819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -n "$ac_ct_NMEDIT"; then
6825   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6835     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6845 if test -n "$ac_ct_NMEDIT"; then
6846   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6847 $as_echo "$ac_ct_NMEDIT" >&6; }
6848 else
6849   { $as_echo "$as_me:$LINENO: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853   if test "x$ac_ct_NMEDIT" = x; then
6854     NMEDIT=":"
6855   else
6856     case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet.  If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet.  If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     NMEDIT=$ac_ct_NMEDIT
6867   fi
6868 else
6869   NMEDIT="$ac_cv_prog_NMEDIT"
6870 fi
6871
6872
6873     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6874 $as_echo_n "checking for -single_module linker flag... " >&6; }
6875 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6876   $as_echo_n "(cached) " >&6
6877 else
6878   lt_cv_apple_cc_single_mod=no
6879       if test -z "${LT_MULTI_MODULE}"; then
6880    # By default we will add the -single_module flag. You can override
6881    # by either setting the environment variable LT_MULTI_MODULE
6882    # non-empty at configure time, or by adding -multi_module to the
6883    # link flags.
6884    echo "int foo(void){return 1;}" > conftest.c
6885    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6886      -dynamiclib ${wl}-single_module conftest.c
6887    if test -f libconftest.dylib; then
6888      lt_cv_apple_cc_single_mod=yes
6889      rm -rf libconftest.dylib*
6890    fi
6891    rm conftest.c
6892       fi
6893 fi
6894 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6895 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6896     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6897 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6898 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6899   $as_echo_n "(cached) " >&6
6900 else
6901   lt_cv_ld_exported_symbols_list=no
6902       save_LDFLAGS=$LDFLAGS
6903       echo "_main" > conftest.sym
6904       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6905       cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h.  */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h.  */
6911
6912 int
6913 main ()
6914 {
6915
6916   ;
6917   return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext conftest$ac_exeext
6921 if { (ac_try="$ac_link"
6922 case "(($ac_try" in
6923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924   *) ac_try_echo=$ac_try;;
6925 esac
6926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6927 $as_echo "$ac_try_echo") >&5
6928   (eval "$ac_link") 2>conftest.er1
6929   ac_status=$?
6930   grep -v '^ *+' conftest.er1 >conftest.err
6931   rm -f conftest.er1
6932   cat conftest.err >&5
6933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); } && {
6935          test -z "$ac_c_werror_flag" ||
6936          test ! -s conftest.err
6937        } && test -s conftest$ac_exeext && {
6938          test "$cross_compiling" = yes ||
6939          $as_test_x conftest$ac_exeext
6940        }; then
6941   lt_cv_ld_exported_symbols_list=yes
6942 else
6943   $as_echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946         lt_cv_ld_exported_symbols_list=no
6947 fi
6948
6949 rm -rf conftest.dSYM
6950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6951       conftest$ac_exeext conftest.$ac_ext
6952    LDFLAGS="$save_LDFLAGS"
6953
6954 fi
6955 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6956 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6957     case $host_os in
6958     rhapsody* | darwin1.[0123])
6959       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6960     darwin1.*)
6961      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6962     darwin*)
6963       # if running on 10.5 or later, the deployment target defaults
6964       # to the OS version, if on x86, and 10.4, the deployment
6965       # target defaults to 10.4. Don't you love it?
6966       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6967    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6968      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6969    10.[012]*)
6970      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6971    10.*)
6972      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6973       esac
6974     ;;
6975   esac
6976     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6977       _lt_dar_single_mod='$single_module'
6978     fi
6979     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6980       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6981     else
6982       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6983     fi
6984     if test "$DSYMUTIL" != ":"; then
6985       _lt_dsymutil="~$DSYMUTIL \$lib || :"
6986     else
6987       _lt_dsymutil=
6988     fi
6989     ;;
6990   esac
6991
6992
6993 enable_dlopen=no
6994 enable_win32_dll=no
6995
6996 # Check whether --enable-libtool-lock was given.
6997 if test "${enable_libtool_lock+set}" = set; then
6998   enableval=$enable_libtool_lock;
6999 fi
7000
7001 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7002
7003
7004 # Check whether --with-pic was given.
7005 if test "${with_pic+set}" = set; then
7006   withval=$with_pic; pic_mode="$withval"
7007 else
7008   pic_mode=default
7009 fi
7010
7011 test -z "$pic_mode" && pic_mode=default
7012
7013 # Use C for the default configuration in the libtool script
7014 tagname=
7015 lt_save_CC="$CC"
7016 ac_ext=c
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022
7023 # Source file extension for C test sources.
7024 ac_ext=c
7025
7026 # Object file extension for compiled C test sources.
7027 objext=o
7028 objext=$objext
7029
7030 # Code to be used in simple compile tests
7031 lt_simple_compile_test_code="int some_variable = 0;"
7032
7033 # Code to be used in simple link tests
7034 lt_simple_link_test_code='int main(){return(0);}'
7035
7036
7037 # If no C compiler was specified, use CC.
7038 LTCC=${LTCC-"$CC"}
7039
7040 # If no C compiler flags were specified, use CFLAGS.
7041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7042
7043 # Allow CC to be a program name with arguments.
7044 compiler=$CC
7045
7046
7047 # save warnings/boilerplate of simple test code
7048 ac_outfile=conftest.$ac_objext
7049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7051 _lt_compiler_boilerplate=`cat conftest.err`
7052 $rm conftest*
7053
7054 ac_outfile=conftest.$ac_objext
7055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7057 _lt_linker_boilerplate=`cat conftest.err`
7058 $rm -r conftest*
7059
7060
7061 ## CAVEAT EMPTOR:
7062 ## There is no encapsulation within the following macros, do not change
7063 ## the running order or otherwise move them around unless you know exactly
7064 ## what you are doing...
7065
7066 lt_prog_compiler_no_builtin_flag=
7067
7068 if test "$GCC" = yes; then
7069   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7070
7071
7072 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7073 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7074 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7075   $as_echo_n "(cached) " >&6
7076 else
7077   lt_cv_prog_compiler_rtti_exceptions=no
7078   ac_outfile=conftest.$ac_objext
7079    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7080    lt_compiler_flag="-fno-rtti -fno-exceptions"
7081    # Insert the option either (1) after the last *FLAGS variable, or
7082    # (2) before a word containing "conftest.", or (3) at the end.
7083    # Note that $ac_compile itself does not contain backslashes and begins
7084    # with a dollar sign (not a hyphen), so the echo should work correctly.
7085    # The option is referenced via a variable to avoid confusing sed.
7086    lt_compile=`echo "$ac_compile" | $SED \
7087    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7088    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7089    -e 's:$: $lt_compiler_flag:'`
7090    (eval echo "\"\$as_me:7090: $lt_compile\"" >&5)
7091    (eval "$lt_compile" 2>conftest.err)
7092    ac_status=$?
7093    cat conftest.err >&5
7094    echo "$as_me:7094: \$? = $ac_status" >&5
7095    if (exit $ac_status) && test -s "$ac_outfile"; then
7096      # The compiler can only warn and ignore the option if not recognized
7097      # So say no if there are warnings other than the usual output.
7098      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7099      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7100      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7101        lt_cv_prog_compiler_rtti_exceptions=yes
7102      fi
7103    fi
7104    $rm conftest*
7105
7106 fi
7107 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7108 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7109
7110 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7111     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7112 else
7113     :
7114 fi
7115
7116 fi
7117
7118 lt_prog_compiler_wl=
7119 lt_prog_compiler_pic=
7120 lt_prog_compiler_static=
7121
7122 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7123 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7124
7125   if test "$GCC" = yes; then
7126     lt_prog_compiler_wl='-Wl,'
7127     lt_prog_compiler_static='-static'
7128
7129     case $host_os in
7130       aix*)
7131       # All AIX code is PIC.
7132       if test "$host_cpu" = ia64; then
7133         # AIX 5 now supports IA64 processor
7134         lt_prog_compiler_static='-Bstatic'
7135       fi
7136       ;;
7137
7138     amigaos*)
7139       # FIXME: we need at least 68020 code to build shared libraries, but
7140       # adding the `-m68020' flag to GCC prevents building anything better,
7141       # like `-m68040'.
7142       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7143       ;;
7144
7145     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7146       # PIC is the default for these OSes.
7147       ;;
7148
7149     mingw* | cygwin* | pw32* | os2*)
7150       # This hack is so that the source file can tell whether it is being
7151       # built for inclusion in a dll (and should export symbols for example).
7152       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7153       # (--disable-auto-import) libraries
7154       lt_prog_compiler_pic='-DDLL_EXPORT'
7155       ;;
7156
7157     darwin* | rhapsody*)
7158       # PIC is the default on this platform
7159       # Common symbols not allowed in MH_DYLIB files
7160       lt_prog_compiler_pic='-fno-common'
7161       ;;
7162
7163     interix[3-9]*)
7164       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7165       # Instead, we relocate shared libraries at runtime.
7166       ;;
7167
7168     msdosdjgpp*)
7169       # Just because we use GCC doesn't mean we suddenly get shared libraries
7170       # on systems that don't support them.
7171       lt_prog_compiler_can_build_shared=no
7172       enable_shared=no
7173       ;;
7174
7175     sysv4*MP*)
7176       if test -d /usr/nec; then
7177         lt_prog_compiler_pic=-Kconform_pic
7178       fi
7179       ;;
7180
7181     hpux*)
7182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7183       # not for PA HP-UX.
7184       case $host_cpu in
7185       hppa*64*|ia64*)
7186         # +Z the default
7187         ;;
7188       *)
7189         lt_prog_compiler_pic='-fPIC'
7190         ;;
7191       esac
7192       ;;
7193
7194     *)
7195       lt_prog_compiler_pic='-fPIC'
7196       ;;
7197     esac
7198   else
7199     # PORTME Check for flag to pass linker flags through the system compiler.
7200     case $host_os in
7201     aix*)
7202       lt_prog_compiler_wl='-Wl,'
7203       if test "$host_cpu" = ia64; then
7204         # AIX 5 now supports IA64 processor
7205         lt_prog_compiler_static='-Bstatic'
7206       else
7207         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7208       fi
7209       ;;
7210       darwin*)
7211         # PIC is the default on this platform
7212         # Common symbols not allowed in MH_DYLIB files
7213        case $cc_basename in
7214          xlc*)
7215          lt_prog_compiler_pic='-qnocommon'
7216          lt_prog_compiler_wl='-Wl,'
7217          ;;
7218        esac
7219        ;;
7220
7221     mingw* | cygwin* | pw32* | os2*)
7222       # This hack is so that the source file can tell whether it is being
7223       # built for inclusion in a dll (and should export symbols for example).
7224       lt_prog_compiler_pic='-DDLL_EXPORT'
7225       ;;
7226
7227     hpux9* | hpux10* | hpux11*)
7228       lt_prog_compiler_wl='-Wl,'
7229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7230       # not for PA HP-UX.
7231       case $host_cpu in
7232       hppa*64*|ia64*)
7233         # +Z the default
7234         ;;
7235       *)
7236         lt_prog_compiler_pic='+Z'
7237         ;;
7238       esac
7239       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7240       lt_prog_compiler_static='${wl}-a ${wl}archive'
7241       ;;
7242
7243     irix5* | irix6* | nonstopux*)
7244       lt_prog_compiler_wl='-Wl,'
7245       # PIC (with -KPIC) is the default.
7246       lt_prog_compiler_static='-non_shared'
7247       ;;
7248
7249     newsos6)
7250       lt_prog_compiler_pic='-KPIC'
7251       lt_prog_compiler_static='-Bstatic'
7252       ;;
7253
7254     linux* | k*bsd*-gnu)
7255       case $cc_basename in
7256       icc* | ecc*)
7257         lt_prog_compiler_wl='-Wl,'
7258         lt_prog_compiler_pic='-KPIC'
7259         lt_prog_compiler_static='-static'
7260         ;;
7261       pgcc* | pgf77* | pgf90* | pgf95*)
7262         # Portland Group compilers (*not* the Pentium gcc compiler,
7263         # which looks to be a dead project)
7264         lt_prog_compiler_wl='-Wl,'
7265         lt_prog_compiler_pic='-fpic'
7266         lt_prog_compiler_static='-Bstatic'
7267         ;;
7268       ccc*)
7269         lt_prog_compiler_wl='-Wl,'
7270         # All Alpha code is PIC.
7271         lt_prog_compiler_static='-non_shared'
7272         ;;
7273       *)
7274         case `$CC -V 2>&1 | sed 5q` in
7275         *Sun\ C*)
7276           # Sun C 5.9
7277           lt_prog_compiler_pic='-KPIC'
7278           lt_prog_compiler_static='-Bstatic'
7279           lt_prog_compiler_wl='-Wl,'
7280           ;;
7281         *Sun\ F*)
7282           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7283           lt_prog_compiler_pic='-KPIC'
7284           lt_prog_compiler_static='-Bstatic'
7285           lt_prog_compiler_wl=''
7286           ;;
7287         esac
7288         ;;
7289       esac
7290       ;;
7291
7292     osf3* | osf4* | osf5*)
7293       lt_prog_compiler_wl='-Wl,'
7294       # All OSF/1 code is PIC.
7295       lt_prog_compiler_static='-non_shared'
7296       ;;
7297
7298     rdos*)
7299       lt_prog_compiler_static='-non_shared'
7300       ;;
7301
7302     solaris*)
7303       lt_prog_compiler_pic='-KPIC'
7304       lt_prog_compiler_static='-Bstatic'
7305       case $cc_basename in
7306       f77* | f90* | f95*)
7307         lt_prog_compiler_wl='-Qoption ld ';;
7308       *)
7309         lt_prog_compiler_wl='-Wl,';;
7310       esac
7311       ;;
7312
7313     sunos4*)
7314       lt_prog_compiler_wl='-Qoption ld '
7315       lt_prog_compiler_pic='-PIC'
7316       lt_prog_compiler_static='-Bstatic'
7317       ;;
7318
7319     sysv4 | sysv4.2uw2* | sysv4.3*)
7320       lt_prog_compiler_wl='-Wl,'
7321       lt_prog_compiler_pic='-KPIC'
7322       lt_prog_compiler_static='-Bstatic'
7323       ;;
7324
7325     sysv4*MP*)
7326       if test -d /usr/nec ;then
7327         lt_prog_compiler_pic='-Kconform_pic'
7328         lt_prog_compiler_static='-Bstatic'
7329       fi
7330       ;;
7331
7332     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7333       lt_prog_compiler_wl='-Wl,'
7334       lt_prog_compiler_pic='-KPIC'
7335       lt_prog_compiler_static='-Bstatic'
7336       ;;
7337
7338     unicos*)
7339       lt_prog_compiler_wl='-Wl,'
7340       lt_prog_compiler_can_build_shared=no
7341       ;;
7342
7343     uts4*)
7344       lt_prog_compiler_pic='-pic'
7345       lt_prog_compiler_static='-Bstatic'
7346       ;;
7347
7348     *)
7349       lt_prog_compiler_can_build_shared=no
7350       ;;
7351     esac
7352   fi
7353
7354 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7355 $as_echo "$lt_prog_compiler_pic" >&6; }
7356
7357 #
7358 # Check to make sure the PIC flag actually works.
7359 #
7360 if test -n "$lt_prog_compiler_pic"; then
7361
7362 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7363 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7364 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7365   $as_echo_n "(cached) " >&6
7366 else
7367   lt_cv_prog_compiler_pic_works=no
7368   ac_outfile=conftest.$ac_objext
7369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7370    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7371    # Insert the option either (1) after the last *FLAGS variable, or
7372    # (2) before a word containing "conftest.", or (3) at the end.
7373    # Note that $ac_compile itself does not contain backslashes and begins
7374    # with a dollar sign (not a hyphen), so the echo should work correctly.
7375    # The option is referenced via a variable to avoid confusing sed.
7376    lt_compile=`echo "$ac_compile" | $SED \
7377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7379    -e 's:$: $lt_compiler_flag:'`
7380    (eval echo "\"\$as_me:7380: $lt_compile\"" >&5)
7381    (eval "$lt_compile" 2>conftest.err)
7382    ac_status=$?
7383    cat conftest.err >&5
7384    echo "$as_me:7384: \$? = $ac_status" >&5
7385    if (exit $ac_status) && test -s "$ac_outfile"; then
7386      # The compiler can only warn and ignore the option if not recognized
7387      # So say no if there are warnings other than the usual output.
7388      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7389      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7390      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7391        lt_cv_prog_compiler_pic_works=yes
7392      fi
7393    fi
7394    $rm conftest*
7395
7396 fi
7397 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7398 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7399
7400 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7401     case $lt_prog_compiler_pic in
7402      "" | " "*) ;;
7403      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7404      esac
7405 else
7406     lt_prog_compiler_pic=
7407      lt_prog_compiler_can_build_shared=no
7408 fi
7409
7410 fi
7411 case $host_os in
7412   # For platforms which do not support PIC, -DPIC is meaningless:
7413   *djgpp*)
7414     lt_prog_compiler_pic=
7415     ;;
7416   *)
7417     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7418     ;;
7419 esac
7420
7421 #
7422 # Check to make sure the static flag actually works.
7423 #
7424 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7425 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7427 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7428   $as_echo_n "(cached) " >&6
7429 else
7430   lt_cv_prog_compiler_static_works=no
7431    save_LDFLAGS="$LDFLAGS"
7432    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7433    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7434    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7435      # The linker can only warn and ignore the option if not recognized
7436      # So say no if there are warnings
7437      if test -s conftest.err; then
7438        # Append any errors to the config.log.
7439        cat conftest.err 1>&5
7440        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7441        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442        if diff conftest.exp conftest.er2 >/dev/null; then
7443          lt_cv_prog_compiler_static_works=yes
7444        fi
7445      else
7446        lt_cv_prog_compiler_static_works=yes
7447      fi
7448    fi
7449    $rm -r conftest*
7450    LDFLAGS="$save_LDFLAGS"
7451
7452 fi
7453 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7454 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7455
7456 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7457     :
7458 else
7459     lt_prog_compiler_static=
7460 fi
7461
7462
7463 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7465 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7466   $as_echo_n "(cached) " >&6
7467 else
7468   lt_cv_prog_compiler_c_o=no
7469    $rm -r conftest 2>/dev/null
7470    mkdir conftest
7471    cd conftest
7472    mkdir out
7473    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7474
7475    lt_compiler_flag="-o out/conftest2.$ac_objext"
7476    # Insert the option either (1) after the last *FLAGS variable, or
7477    # (2) before a word containing "conftest.", or (3) at the end.
7478    # Note that $ac_compile itself does not contain backslashes and begins
7479    # with a dollar sign (not a hyphen), so the echo should work correctly.
7480    lt_compile=`echo "$ac_compile" | $SED \
7481    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7482    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7483    -e 's:$: $lt_compiler_flag:'`
7484    (eval echo "\"\$as_me:7484: $lt_compile\"" >&5)
7485    (eval "$lt_compile" 2>out/conftest.err)
7486    ac_status=$?
7487    cat out/conftest.err >&5
7488    echo "$as_me:7488: \$? = $ac_status" >&5
7489    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7490    then
7491      # The compiler can only warn and ignore the option if not recognized
7492      # So say no if there are warnings
7493      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7494      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7495      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7496        lt_cv_prog_compiler_c_o=yes
7497      fi
7498    fi
7499    chmod u+w . 2>&5
7500    $rm conftest*
7501    # SGI C++ compiler will create directory out/ii_files/ for
7502    # template instantiation
7503    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7504    $rm out/* && rmdir out
7505    cd ..
7506    rmdir conftest
7507    $rm conftest*
7508
7509 fi
7510 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7512
7513
7514 hard_links="nottested"
7515 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7516   # do not overwrite the value of need_locks provided by the user
7517   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7518 $as_echo_n "checking if we can lock with hard links... " >&6; }
7519   hard_links=yes
7520   $rm conftest*
7521   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7522   touch conftest.a
7523   ln conftest.a conftest.b 2>&5 || hard_links=no
7524   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7525   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7526 $as_echo "$hard_links" >&6; }
7527   if test "$hard_links" = no; then
7528     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7530     need_locks=warn
7531   fi
7532 else
7533   need_locks=no
7534 fi
7535
7536 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7537 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7538
7539   runpath_var=
7540   allow_undefined_flag=
7541   enable_shared_with_static_runtimes=no
7542   archive_cmds=
7543   archive_expsym_cmds=
7544   old_archive_From_new_cmds=
7545   old_archive_from_expsyms_cmds=
7546   export_dynamic_flag_spec=
7547   whole_archive_flag_spec=
7548   thread_safe_flag_spec=
7549   hardcode_libdir_flag_spec=
7550   hardcode_libdir_flag_spec_ld=
7551   hardcode_libdir_separator=
7552   hardcode_direct=no
7553   hardcode_minus_L=no
7554   hardcode_shlibpath_var=unsupported
7555   link_all_deplibs=unknown
7556   hardcode_automatic=no
7557   module_cmds=
7558   module_expsym_cmds=
7559   always_export_symbols=no
7560   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7561   # include_expsyms should be a list of space-separated symbols to be *always*
7562   # included in the symbol list
7563   include_expsyms=
7564   # exclude_expsyms can be an extended regexp of symbols to exclude
7565   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7566   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7567   # as well as any symbol that contains `d'.
7568   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7569   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7570   # platforms (ab)use it in PIC code, but their linkers get confused if
7571   # the symbol is explicitly referenced.  Since portable code cannot
7572   # rely on this symbol name, it's probably fine to never include it in
7573   # preloaded symbol tables.
7574   # Exclude shared library initialization/finalization symbols.
7575   extract_expsyms_cmds=
7576   # Just being paranoid about ensuring that cc_basename is set.
7577   for cc_temp in $compiler""; do
7578   case $cc_temp in
7579     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7580     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7581     \-*) ;;
7582     *) break;;
7583   esac
7584 done
7585 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7586
7587   case $host_os in
7588   cygwin* | mingw* | pw32*)
7589     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7590     # When not using gcc, we currently assume that we are using
7591     # Microsoft Visual C++.
7592     if test "$GCC" != yes; then
7593       with_gnu_ld=no
7594     fi
7595     ;;
7596   interix*)
7597     # we just hope/assume this is gcc and not c89 (= MSVC++)
7598     with_gnu_ld=yes
7599     ;;
7600   openbsd*)
7601     with_gnu_ld=no
7602     ;;
7603   esac
7604
7605   ld_shlibs=yes
7606   if test "$with_gnu_ld" = yes; then
7607     # If archive_cmds runs LD, not CC, wlarc should be empty
7608     wlarc='${wl}'
7609
7610     # Set some defaults for GNU ld with shared library support. These
7611     # are reset later if shared libraries are not supported. Putting them
7612     # here allows them to be overridden if necessary.
7613     runpath_var=LD_RUN_PATH
7614     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7615     export_dynamic_flag_spec='${wl}--export-dynamic'
7616     # ancient GNU ld didn't support --whole-archive et. al.
7617     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7618         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7619       else
7620         whole_archive_flag_spec=
7621     fi
7622     supports_anon_versioning=no
7623     case `$LD -v 2>/dev/null` in
7624       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7625       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7626       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7627       *\ 2.11.*) ;; # other 2.11 versions
7628       *) supports_anon_versioning=yes ;;
7629     esac
7630
7631     # See if GNU ld supports shared libraries.
7632     case $host_os in
7633     aix[3-9]*)
7634       # On AIX/PPC, the GNU linker is very broken
7635       if test "$host_cpu" != ia64; then
7636         ld_shlibs=no
7637         cat <<EOF 1>&2
7638
7639 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7640 *** to be unable to reliably create shared libraries on AIX.
7641 *** Therefore, libtool is disabling shared libraries support.  If you
7642 *** really care for shared libraries, you may want to modify your PATH
7643 *** so that a non-GNU linker is found, and then restart.
7644
7645 EOF
7646       fi
7647       ;;
7648
7649     amigaos*)
7650       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)'
7651       hardcode_libdir_flag_spec='-L$libdir'
7652       hardcode_minus_L=yes
7653
7654       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7655       # that the semantics of dynamic libraries on AmigaOS, at least up
7656       # to version 4, is to share data among multiple programs linked
7657       # with the same dynamic library.  Since this doesn't match the
7658       # behavior of shared libraries on other platforms, we can't use
7659       # them.
7660       ld_shlibs=no
7661       ;;
7662
7663     beos*)
7664       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7665         allow_undefined_flag=unsupported
7666         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7667         # support --undefined.  This deserves some investigation.  FIXME
7668         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7669       else
7670         ld_shlibs=no
7671       fi
7672       ;;
7673
7674     cygwin* | mingw* | pw32*)
7675       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7676       # as there is no search path for DLLs.
7677       hardcode_libdir_flag_spec='-L$libdir'
7678       allow_undefined_flag=unsupported
7679       always_export_symbols=no
7680       enable_shared_with_static_runtimes=yes
7681       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7682
7683       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7684         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7685         # If the export-symbols file already is a .def file (1st line
7686         # is EXPORTS), use it as is; otherwise, prepend...
7687         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7688           cp $export_symbols $output_objdir/$soname.def;
7689         else
7690           echo EXPORTS > $output_objdir/$soname.def;
7691           cat $export_symbols >> $output_objdir/$soname.def;
7692         fi~
7693         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7694       else
7695         ld_shlibs=no
7696       fi
7697       ;;
7698
7699     interix[3-9]*)
7700       hardcode_direct=no
7701       hardcode_shlibpath_var=no
7702       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7703       export_dynamic_flag_spec='${wl}-E'
7704       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7705       # Instead, shared libraries are loaded at an image base (0x10000000 by
7706       # default) and relocated if they conflict, which is a slow very memory
7707       # consuming and fragmenting process.  To avoid this, we pick a random,
7708       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7709       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7710       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7711       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'
7712       ;;
7713
7714     gnu* | linux* | k*bsd*-gnu)
7715       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7716         tmp_addflag=
7717         case $cc_basename,$host_cpu in
7718         pgcc*)                          # Portland Group C compiler
7719           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'
7720           tmp_addflag=' $pic_flag'
7721           ;;
7722         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7723           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'
7724           tmp_addflag=' $pic_flag -Mnomain' ;;
7725         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7726           tmp_addflag=' -i_dynamic' ;;
7727         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7728           tmp_addflag=' -i_dynamic -nofor_main' ;;
7729         ifc* | ifort*)                  # Intel Fortran compiler
7730           tmp_addflag=' -nofor_main' ;;
7731         esac
7732         case `$CC -V 2>&1 | sed 5q` in
7733         *Sun\ C*)                       # Sun C 5.9
7734           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'
7735           tmp_sharedflag='-G' ;;
7736         *Sun\ F*)                       # Sun Fortran 8.3
7737           tmp_sharedflag='-G' ;;
7738         *)
7739           tmp_sharedflag='-shared' ;;
7740         esac
7741         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7742
7743         if test $supports_anon_versioning = yes; then
7744           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7745   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7746   $echo "local: *; };" >> $output_objdir/$libname.ver~
7747           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7748         fi
7749       else
7750         ld_shlibs=no
7751       fi
7752       ;;
7753
7754     netbsd*)
7755       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7756         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7757         wlarc=
7758       else
7759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7760         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7761       fi
7762       ;;
7763
7764     solaris*)
7765       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7766         ld_shlibs=no
7767         cat <<EOF 1>&2
7768
7769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7770 *** create shared libraries on Solaris systems.  Therefore, libtool
7771 *** is disabling shared libraries support.  We urge you to upgrade GNU
7772 *** binutils to release 2.9.1 or newer.  Another option is to modify
7773 *** your PATH or compiler configuration so that the native linker is
7774 *** used, and then restart.
7775
7776 EOF
7777       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7778         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7779         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7780       else
7781         ld_shlibs=no
7782       fi
7783       ;;
7784
7785     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7786       case `$LD -v 2>&1` in
7787         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7788         ld_shlibs=no
7789         cat <<_LT_EOF 1>&2
7790
7791 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7792 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7793 *** is disabling shared libraries support.  We urge you to upgrade GNU
7794 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7795 *** your PATH or compiler configuration so that the native linker is
7796 *** used, and then restart.
7797
7798 _LT_EOF
7799         ;;
7800         *)
7801           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7802             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7803             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7804             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7805           else
7806             ld_shlibs=no
7807           fi
7808         ;;
7809       esac
7810       ;;
7811
7812     sunos4*)
7813       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7814       wlarc=
7815       hardcode_direct=yes
7816       hardcode_shlibpath_var=no
7817       ;;
7818
7819     *)
7820       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7821         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7822         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7823       else
7824         ld_shlibs=no
7825       fi
7826       ;;
7827     esac
7828
7829     if test "$ld_shlibs" = no; then
7830       runpath_var=
7831       hardcode_libdir_flag_spec=
7832       export_dynamic_flag_spec=
7833       whole_archive_flag_spec=
7834     fi
7835   else
7836     # PORTME fill in a description of your system's linker (not GNU ld)
7837     case $host_os in
7838     aix3*)
7839       allow_undefined_flag=unsupported
7840       always_export_symbols=yes
7841       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'
7842       # Note: this linker hardcodes the directories in LIBPATH if there
7843       # are no directories specified by -L.
7844       hardcode_minus_L=yes
7845       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7846         # Neither direct hardcoding nor static linking is supported with a
7847         # broken collect2.
7848         hardcode_direct=unsupported
7849       fi
7850       ;;
7851
7852     aix[4-9]*)
7853       if test "$host_cpu" = ia64; then
7854         # On IA64, the linker does run time linking by default, so we don't
7855         # have to do anything special.
7856         aix_use_runtimelinking=no
7857         exp_sym_flag='-Bexport'
7858         no_entry_flag=""
7859       else
7860         # If we're using GNU nm, then we don't want the "-C" option.
7861         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7862         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7863           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'
7864         else
7865           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'
7866         fi
7867         aix_use_runtimelinking=no
7868
7869         # Test if we are trying to use run time linking or normal
7870         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7871         # need to do runtime linking.
7872         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7873           for ld_flag in $LDFLAGS; do
7874           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7875             aix_use_runtimelinking=yes
7876             break
7877           fi
7878           done
7879           ;;
7880         esac
7881
7882         exp_sym_flag='-bexport'
7883         no_entry_flag='-bnoentry'
7884       fi
7885
7886       # When large executables or shared objects are built, AIX ld can
7887       # have problems creating the table of contents.  If linking a library
7888       # or program results in "error TOC overflow" add -mminimal-toc to
7889       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7890       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7891
7892       archive_cmds=''
7893       hardcode_direct=yes
7894       hardcode_libdir_separator=':'
7895       link_all_deplibs=yes
7896
7897       if test "$GCC" = yes; then
7898         case $host_os in aix4.[012]|aix4.[012].*)
7899         # We only want to do this on AIX 4.2 and lower, the check
7900         # below for broken collect2 doesn't work under 4.3+
7901           collect2name=`${CC} -print-prog-name=collect2`
7902           if test -f "$collect2name" && \
7903            strings "$collect2name" | grep resolve_lib_name >/dev/null
7904           then
7905           # We have reworked collect2
7906           :
7907           else
7908           # We have old collect2
7909           hardcode_direct=unsupported
7910           # It fails to find uninstalled libraries when the uninstalled
7911           # path is not listed in the libpath.  Setting hardcode_minus_L
7912           # to unsupported forces relinking
7913           hardcode_minus_L=yes
7914           hardcode_libdir_flag_spec='-L$libdir'
7915           hardcode_libdir_separator=
7916           fi
7917           ;;
7918         esac
7919         shared_flag='-shared'
7920         if test "$aix_use_runtimelinking" = yes; then
7921           shared_flag="$shared_flag "'${wl}-G'
7922         fi
7923       else
7924         # not using gcc
7925         if test "$host_cpu" = ia64; then
7926         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7927         # chokes on -Wl,-G. The following line is correct:
7928           shared_flag='-G'
7929         else
7930           if test "$aix_use_runtimelinking" = yes; then
7931             shared_flag='${wl}-G'
7932           else
7933             shared_flag='${wl}-bM:SRE'
7934           fi
7935         fi
7936       fi
7937
7938       # It seems that -bexpall does not export symbols beginning with
7939       # underscore (_), so it is better to generate a list of symbols to export.
7940       always_export_symbols=yes
7941       if test "$aix_use_runtimelinking" = yes; then
7942         # Warning - without using the other runtime loading flags (-brtl),
7943         # -berok will link without error, but may produce a broken library.
7944         allow_undefined_flag='-berok'
7945        # Determine the default libpath from the value encoded in an empty executable.
7946        cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952
7953 int
7954 main ()
7955 {
7956
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969   (eval "$ac_link") 2>conftest.er1
7970   ac_status=$?
7971   grep -v '^ *+' conftest.er1 >conftest.err
7972   rm -f conftest.er1
7973   cat conftest.err >&5
7974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } && {
7976          test -z "$ac_c_werror_flag" ||
7977          test ! -s conftest.err
7978        } && test -s conftest$ac_exeext && {
7979          test "$cross_compiling" = yes ||
7980          $as_test_x conftest$ac_exeext
7981        }; then
7982
7983 lt_aix_libpath_sed='
7984     /Import File Strings/,/^$/ {
7985         /^0/ {
7986             s/^0  *\(.*\)$/\1/
7987             p
7988         }
7989     }'
7990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7991 # Check for a 64-bit object if we didn't find anything.
7992 if test -z "$aix_libpath"; then
7993   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7994 fi
7995 else
7996   $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999
8000 fi
8001
8002 rm -rf conftest.dSYM
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004       conftest$ac_exeext conftest.$ac_ext
8005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8006
8007        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8008         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"
8009        else
8010         if test "$host_cpu" = ia64; then
8011           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8012           allow_undefined_flag="-z nodefs"
8013           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"
8014         else
8015          # Determine the default libpath from the value encoded in an empty executable.
8016          cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022
8023 int
8024 main ()
8025 {
8026
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039   (eval "$ac_link") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && {
8046          test -z "$ac_c_werror_flag" ||
8047          test ! -s conftest.err
8048        } && test -s conftest$ac_exeext && {
8049          test "$cross_compiling" = yes ||
8050          $as_test_x conftest$ac_exeext
8051        }; then
8052
8053 lt_aix_libpath_sed='
8054     /Import File Strings/,/^$/ {
8055         /^0/ {
8056             s/^0  *\(.*\)$/\1/
8057             p
8058         }
8059     }'
8060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8061 # Check for a 64-bit object if we didn't find anything.
8062 if test -z "$aix_libpath"; then
8063   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8064 fi
8065 else
8066   $as_echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069
8070 fi
8071
8072 rm -rf conftest.dSYM
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074       conftest$ac_exeext conftest.$ac_ext
8075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8076
8077          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8078           # Warning - without using the other run time loading flags,
8079           # -berok will link without error, but may produce a broken library.
8080           no_undefined_flag=' ${wl}-bernotok'
8081           allow_undefined_flag=' ${wl}-berok'
8082           # Exported symbols can be pulled into shared objects from archives
8083           whole_archive_flag_spec='$convenience'
8084           archive_cmds_need_lc=yes
8085           # This is similar to how AIX traditionally builds its shared libraries.
8086           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'
8087         fi
8088       fi
8089       ;;
8090
8091     amigaos*)
8092       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)'
8093       hardcode_libdir_flag_spec='-L$libdir'
8094       hardcode_minus_L=yes
8095       # see comment about different semantics on the GNU ld section
8096       ld_shlibs=no
8097       ;;
8098
8099     bsdi[45]*)
8100       export_dynamic_flag_spec=-rdynamic
8101       ;;
8102
8103     cygwin* | mingw* | pw32*)
8104       # When not using gcc, we currently assume that we are using
8105       # Microsoft Visual C++.
8106       # hardcode_libdir_flag_spec is actually meaningless, as there is
8107       # no search path for DLLs.
8108       hardcode_libdir_flag_spec=' '
8109       allow_undefined_flag=unsupported
8110       # Tell ltmain to make .lib files, not .a files.
8111       libext=lib
8112       # Tell ltmain to make .dll files, not .so files.
8113       shrext_cmds=".dll"
8114       # FIXME: Setting linknames here is a bad hack.
8115       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8116       # The linker will automatically build a .lib file if we build a DLL.
8117       old_archive_From_new_cmds='true'
8118       # FIXME: Should let the user specify the lib program.
8119       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8120       fix_srcfile_path='`cygpath -w "$srcfile"`'
8121       enable_shared_with_static_runtimes=yes
8122       ;;
8123
8124     darwin* | rhapsody*)
8125       case $host_os in
8126         rhapsody* | darwin1.[012])
8127          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8128          ;;
8129        *) # Darwin 1.3 on
8130          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8131            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8132          else
8133            case ${MACOSX_DEPLOYMENT_TARGET} in
8134              10.[012])
8135                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8136                ;;
8137              10.*)
8138                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8139                ;;
8140            esac
8141          fi
8142          ;;
8143       esac
8144       archive_cmds_need_lc=no
8145       hardcode_direct=no
8146       hardcode_automatic=yes
8147       hardcode_shlibpath_var=unsupported
8148       whole_archive_flag_spec=''
8149       link_all_deplibs=yes
8150     if test "$GCC" = yes ; then
8151         output_verbose_link_cmd='echo'
8152         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8153         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8154         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}"
8155         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}"
8156     else
8157       case $cc_basename in
8158         xlc*)
8159          output_verbose_link_cmd='echo'
8160          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8161          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8162           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8163          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}'
8164           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}'
8165           ;;
8166        *)
8167          ld_shlibs=no
8168           ;;
8169       esac
8170     fi
8171       ;;
8172
8173     dgux*)
8174       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8175       hardcode_libdir_flag_spec='-L$libdir'
8176       hardcode_shlibpath_var=no
8177       ;;
8178
8179     freebsd1*)
8180       ld_shlibs=no
8181       ;;
8182
8183     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8184     # support.  Future versions do this automatically, but an explicit c++rt0.o
8185     # does not break anything, and helps significantly (at the cost of a little
8186     # extra space).
8187     freebsd2.2*)
8188       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8189       hardcode_libdir_flag_spec='-R$libdir'
8190       hardcode_direct=yes
8191       hardcode_shlibpath_var=no
8192       ;;
8193
8194     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8195     freebsd2*)
8196       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8197       hardcode_direct=yes
8198       hardcode_minus_L=yes
8199       hardcode_shlibpath_var=no
8200       ;;
8201
8202     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8203     freebsd* | dragonfly*)
8204       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8205       hardcode_libdir_flag_spec='-R$libdir'
8206       hardcode_direct=yes
8207       hardcode_shlibpath_var=no
8208       ;;
8209
8210     hpux9*)
8211       if test "$GCC" = yes; then
8212         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'
8213       else
8214         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'
8215       fi
8216       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8217       hardcode_libdir_separator=:
8218       hardcode_direct=yes
8219
8220       # hardcode_minus_L: Not really in the search PATH,
8221       # but as the default location of the library.
8222       hardcode_minus_L=yes
8223       export_dynamic_flag_spec='${wl}-E'
8224       ;;
8225
8226     hpux10*)
8227       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8228         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8229       else
8230         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8231       fi
8232       if test "$with_gnu_ld" = no; then
8233         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8234         hardcode_libdir_separator=:
8235
8236         hardcode_direct=yes
8237         export_dynamic_flag_spec='${wl}-E'
8238
8239         # hardcode_minus_L: Not really in the search PATH,
8240         # but as the default location of the library.
8241         hardcode_minus_L=yes
8242       fi
8243       ;;
8244
8245     hpux11*)
8246       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8247         case $host_cpu in
8248         hppa*64*)
8249           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8250           ;;
8251         ia64*)
8252           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8253           ;;
8254         *)
8255           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8256           ;;
8257         esac
8258       else
8259         case $host_cpu in
8260         hppa*64*)
8261           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8262           ;;
8263         ia64*)
8264           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8265           ;;
8266         *)
8267           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8268           ;;
8269         esac
8270       fi
8271       if test "$with_gnu_ld" = no; then
8272         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8273         hardcode_libdir_separator=:
8274
8275         case $host_cpu in
8276         hppa*64*|ia64*)
8277           hardcode_libdir_flag_spec_ld='+b $libdir'
8278           hardcode_direct=no
8279           hardcode_shlibpath_var=no
8280           ;;
8281         *)
8282           hardcode_direct=yes
8283           export_dynamic_flag_spec='${wl}-E'
8284
8285           # hardcode_minus_L: Not really in the search PATH,
8286           # but as the default location of the library.
8287           hardcode_minus_L=yes
8288           ;;
8289         esac
8290       fi
8291       ;;
8292
8293     irix5* | irix6* | nonstopux*)
8294       if test "$GCC" = yes; then
8295         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'
8296       else
8297         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'
8298         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8299       fi
8300       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8301       hardcode_libdir_separator=:
8302       link_all_deplibs=yes
8303       ;;
8304
8305     netbsd*)
8306       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8307         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8308       else
8309         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8310       fi
8311       hardcode_libdir_flag_spec='-R$libdir'
8312       hardcode_direct=yes
8313       hardcode_shlibpath_var=no
8314       ;;
8315
8316     newsos6)
8317       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318       hardcode_direct=yes
8319       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320       hardcode_libdir_separator=:
8321       hardcode_shlibpath_var=no
8322       ;;
8323
8324     openbsd*)
8325       if test -f /usr/libexec/ld.so; then
8326         hardcode_direct=yes
8327         hardcode_shlibpath_var=no
8328         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8329           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8330           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8331           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8332           export_dynamic_flag_spec='${wl}-E'
8333         else
8334           case $host_os in
8335            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8336              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8337              hardcode_libdir_flag_spec='-R$libdir'
8338              ;;
8339            *)
8340              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8341              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8342              ;;
8343           esac
8344         fi
8345       else
8346         ld_shlibs=no
8347       fi
8348       ;;
8349
8350     os2*)
8351       hardcode_libdir_flag_spec='-L$libdir'
8352       hardcode_minus_L=yes
8353       allow_undefined_flag=unsupported
8354       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'
8355       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8356       ;;
8357
8358     osf3*)
8359       if test "$GCC" = yes; then
8360         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8361         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'
8362       else
8363         allow_undefined_flag=' -expect_unresolved \*'
8364         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'
8365       fi
8366       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367       hardcode_libdir_separator=:
8368       ;;
8369
8370     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8371       if test "$GCC" = yes; then
8372         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8373         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'
8374         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8375       else
8376         allow_undefined_flag=' -expect_unresolved \*'
8377         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'
8378         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8379         $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'
8380
8381         # Both c and cxx compiler support -rpath directly
8382         hardcode_libdir_flag_spec='-rpath $libdir'
8383       fi
8384       hardcode_libdir_separator=:
8385       ;;
8386
8387     solaris*)
8388       no_undefined_flag=' -z text'
8389       if test "$GCC" = yes; then
8390         wlarc='${wl}'
8391         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8392         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8393           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8394       else
8395         wlarc=''
8396         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8398         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8399       fi
8400       hardcode_libdir_flag_spec='-R$libdir'
8401       hardcode_shlibpath_var=no
8402       case $host_os in
8403       solaris2.[0-5] | solaris2.[0-5].*) ;;
8404       *)
8405         # The compiler driver will combine and reorder linker options,
8406         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8407         # but is careful enough not to reorder.
8408         # Supported since Solaris 2.6 (maybe 2.5.1?)
8409         if test "$GCC" = yes; then
8410           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8411         else
8412           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8413         fi
8414         ;;
8415       esac
8416       link_all_deplibs=yes
8417       ;;
8418
8419     sunos4*)
8420       if test "x$host_vendor" = xsequent; then
8421         # Use $CC to link under sequent, because it throws in some extra .o
8422         # files that make .init and .fini sections work.
8423         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8424       else
8425         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8426       fi
8427       hardcode_libdir_flag_spec='-L$libdir'
8428       hardcode_direct=yes
8429       hardcode_minus_L=yes
8430       hardcode_shlibpath_var=no
8431       ;;
8432
8433     sysv4)
8434       case $host_vendor in
8435         sni)
8436           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8437           hardcode_direct=yes # is this really true???
8438         ;;
8439         siemens)
8440           ## LD is ld it makes a PLAMLIB
8441           ## CC just makes a GrossModule.
8442           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8443           reload_cmds='$CC -r -o $output$reload_objs'
8444           hardcode_direct=no
8445         ;;
8446         motorola)
8447           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8449         ;;
8450       esac
8451       runpath_var='LD_RUN_PATH'
8452       hardcode_shlibpath_var=no
8453       ;;
8454
8455     sysv4.3*)
8456       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457       hardcode_shlibpath_var=no
8458       export_dynamic_flag_spec='-Bexport'
8459       ;;
8460
8461     sysv4*MP*)
8462       if test -d /usr/nec; then
8463         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8464         hardcode_shlibpath_var=no
8465         runpath_var=LD_RUN_PATH
8466         hardcode_runpath_var=yes
8467         ld_shlibs=yes
8468       fi
8469       ;;
8470
8471     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8472       no_undefined_flag='${wl}-z,text'
8473       archive_cmds_need_lc=no
8474       hardcode_shlibpath_var=no
8475       runpath_var='LD_RUN_PATH'
8476
8477       if test "$GCC" = yes; then
8478         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8479         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480       else
8481         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8482         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483       fi
8484       ;;
8485
8486     sysv5* | sco3.2v5* | sco5v6*)
8487       # Note: We can NOT use -z defs as we might desire, because we do not
8488       # link with -lc, and that would cause any symbols used from libc to
8489       # always be unresolved, which means just about no library would
8490       # ever link correctly.  If we're not using GNU ld we use -z text
8491       # though, which does catch some bad symbols but isn't as heavy-handed
8492       # as -z defs.
8493       no_undefined_flag='${wl}-z,text'
8494       allow_undefined_flag='${wl}-z,nodefs'
8495       archive_cmds_need_lc=no
8496       hardcode_shlibpath_var=no
8497       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8498       hardcode_libdir_separator=':'
8499       link_all_deplibs=yes
8500       export_dynamic_flag_spec='${wl}-Bexport'
8501       runpath_var='LD_RUN_PATH'
8502
8503       if test "$GCC" = yes; then
8504         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506       else
8507         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8508         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8509       fi
8510       ;;
8511
8512     uts4*)
8513       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514       hardcode_libdir_flag_spec='-L$libdir'
8515       hardcode_shlibpath_var=no
8516       ;;
8517
8518     *)
8519       ld_shlibs=no
8520       ;;
8521     esac
8522   fi
8523
8524 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8525 $as_echo "$ld_shlibs" >&6; }
8526 test "$ld_shlibs" = no && can_build_shared=no
8527
8528 #
8529 # Do we need to explicitly link libc?
8530 #
8531 case "x$archive_cmds_need_lc" in
8532 x|xyes)
8533   # Assume -lc should be added
8534   archive_cmds_need_lc=yes
8535
8536   if test "$enable_shared" = yes && test "$GCC" = yes; then
8537     case $archive_cmds in
8538     *'~'*)
8539       # FIXME: we may have to deal with multi-command sequences.
8540       ;;
8541     '$CC '*)
8542       # Test whether the compiler implicitly links with -lc since on some
8543       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8544       # to ld, don't add -lc before -lgcc.
8545       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8547       $rm conftest*
8548       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549
8550       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551   (eval $ac_compile) 2>&5
8552   ac_status=$?
8553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } 2>conftest.err; then
8555         soname=conftest
8556         lib=conftest
8557         libobjs=conftest.$ac_objext
8558         deplibs=
8559         wl=$lt_prog_compiler_wl
8560         pic_flag=$lt_prog_compiler_pic
8561         compiler_flags=-v
8562         linker_flags=-v
8563         verstring=
8564         output_objdir=.
8565         libname=conftest
8566         lt_save_allow_undefined_flag=$allow_undefined_flag
8567         allow_undefined_flag=
8568         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8569   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8570   ac_status=$?
8571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }
8573         then
8574           archive_cmds_need_lc=no
8575         else
8576           archive_cmds_need_lc=yes
8577         fi
8578         allow_undefined_flag=$lt_save_allow_undefined_flag
8579       else
8580         cat conftest.err 1>&5
8581       fi
8582       $rm conftest*
8583       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8584 $as_echo "$archive_cmds_need_lc" >&6; }
8585       ;;
8586     esac
8587   fi
8588   ;;
8589 esac
8590
8591 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8592 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8593 library_names_spec=
8594 libname_spec='lib$name'
8595 soname_spec=
8596 shrext_cmds=".so"
8597 postinstall_cmds=
8598 postuninstall_cmds=
8599 finish_cmds=
8600 finish_eval=
8601 shlibpath_var=
8602 shlibpath_overrides_runpath=unknown
8603 version_type=none
8604 dynamic_linker="$host_os ld.so"
8605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8606
8607 if test "$GCC" = yes; then
8608   case $host_os in
8609     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8610     *) lt_awk_arg="/^libraries:/" ;;
8611   esac
8612   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8613   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8614     # if the path contains ";" then we assume it to be the separator
8615     # otherwise default to the standard path separator (i.e. ":") - it is
8616     # assumed that no part of a normal pathname contains ";" but that should
8617     # okay in the real world where ";" in dirpaths is itself problematic.
8618     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8619   else
8620     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8621   fi
8622   # Ok, now we have the path, separated by spaces, we can step through it
8623   # and add multilib dir if necessary.
8624   lt_tmp_lt_search_path_spec=
8625   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8626   for lt_sys_path in $lt_search_path_spec; do
8627     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8628       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8629     else
8630       test -d "$lt_sys_path" && \
8631         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8632     fi
8633   done
8634   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8635 BEGIN {RS=" "; FS="/|\n";} {
8636   lt_foo="";
8637   lt_count=0;
8638   for (lt_i = NF; lt_i > 0; lt_i--) {
8639     if ($lt_i != "" && $lt_i != ".") {
8640       if ($lt_i == "..") {
8641         lt_count++;
8642       } else {
8643         if (lt_count == 0) {
8644           lt_foo="/" $lt_i lt_foo;
8645         } else {
8646           lt_count--;
8647         }
8648       }
8649     }
8650   }
8651   if (lt_foo != "") { lt_freq[lt_foo]++; }
8652   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8653 }'`
8654   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8655 else
8656   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8657 fi
8658 need_lib_prefix=unknown
8659 hardcode_into_libs=no
8660
8661 # when you set need_version to no, make sure it does not cause -set_version
8662 # flags to be left without arguments
8663 need_version=unknown
8664
8665 case $host_os in
8666 aix3*)
8667   version_type=linux
8668   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8669   shlibpath_var=LIBPATH
8670
8671   # AIX 3 has no versioning support, so we append a major version to the name.
8672   soname_spec='${libname}${release}${shared_ext}$major'
8673   ;;
8674
8675 aix[4-9]*)
8676   version_type=linux
8677   need_lib_prefix=no
8678   need_version=no
8679   hardcode_into_libs=yes
8680   if test "$host_cpu" = ia64; then
8681     # AIX 5 supports IA64
8682     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8683     shlibpath_var=LD_LIBRARY_PATH
8684   else
8685     # With GCC up to 2.95.x, collect2 would create an import file
8686     # for dependence libraries.  The import file would start with
8687     # the line `#! .'.  This would cause the generated library to
8688     # depend on `.', always an invalid library.  This was fixed in
8689     # development snapshots of GCC prior to 3.0.
8690     case $host_os in
8691       aix4 | aix4.[01] | aix4.[01].*)
8692       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8693            echo ' yes '
8694            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8695         :
8696       else
8697         can_build_shared=no
8698       fi
8699       ;;
8700     esac
8701     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8702     # soname into executable. Probably we can add versioning support to
8703     # collect2, so additional links can be useful in future.
8704     if test "$aix_use_runtimelinking" = yes; then
8705       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8706       # instead of lib<name>.a to let people know that these are not
8707       # typical AIX shared libraries.
8708       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709     else
8710       # We preserve .a as extension for shared libraries through AIX4.2
8711       # and later when we are not doing run time linking.
8712       library_names_spec='${libname}${release}.a $libname.a'
8713       soname_spec='${libname}${release}${shared_ext}$major'
8714     fi
8715     shlibpath_var=LIBPATH
8716   fi
8717   ;;
8718
8719 amigaos*)
8720   library_names_spec='$libname.ixlibrary $libname.a'
8721   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8722   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'
8723   ;;
8724
8725 beos*)
8726   library_names_spec='${libname}${shared_ext}'
8727   dynamic_linker="$host_os ld.so"
8728   shlibpath_var=LIBRARY_PATH
8729   ;;
8730
8731 bsdi[45]*)
8732   version_type=linux
8733   need_version=no
8734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735   soname_spec='${libname}${release}${shared_ext}$major'
8736   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8737   shlibpath_var=LD_LIBRARY_PATH
8738   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8739   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8740   # the default ld.so.conf also contains /usr/contrib/lib and
8741   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8742   # libtool to hard-code these into programs
8743   ;;
8744
8745 cygwin* | mingw* | pw32*)
8746   version_type=windows
8747   shrext_cmds=".dll"
8748   need_version=no
8749   need_lib_prefix=no
8750
8751   case $GCC,$host_os in
8752   yes,cygwin* | yes,mingw* | yes,pw32*)
8753     library_names_spec='$libname.dll.a'
8754     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8755     postinstall_cmds='base_file=`basename \${file}`~
8756       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8757       dldir=$destdir/`dirname \$dlpath`~
8758       test -d \$dldir || mkdir -p \$dldir~
8759       $install_prog $dir/$dlname \$dldir/$dlname~
8760       chmod a+x \$dldir/$dlname'
8761     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8762       dlpath=$dir/\$dldll~
8763        $rm \$dlpath'
8764     shlibpath_overrides_runpath=yes
8765
8766     case $host_os in
8767     cygwin*)
8768       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8769       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8771       ;;
8772     mingw*)
8773       # MinGW DLLs use traditional 'lib' prefix
8774       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8775       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8776       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8777         # It is most probably a Windows format PATH printed by
8778         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8779         # path with ; separators, and with drive letters. We can handle the
8780         # drive letters (cygwin fileutils understands them), so leave them,
8781         # especially as we might pass files found there to a mingw objdump,
8782         # which wouldn't understand a cygwinified path. Ahh.
8783         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8784       else
8785         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8786       fi
8787       ;;
8788     pw32*)
8789       # pw32 DLLs use 'pw' prefix rather than 'lib'
8790       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8791       ;;
8792     esac
8793     ;;
8794
8795   *)
8796     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8797     ;;
8798   esac
8799   dynamic_linker='Win32 ld.exe'
8800   # FIXME: first we should search . and the directory the executable is in
8801   shlibpath_var=PATH
8802   ;;
8803
8804 darwin* | rhapsody*)
8805   dynamic_linker="$host_os dyld"
8806   version_type=darwin
8807   need_lib_prefix=no
8808   need_version=no
8809   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8810   soname_spec='${libname}${release}${major}$shared_ext'
8811   shlibpath_overrides_runpath=yes
8812   shlibpath_var=DYLD_LIBRARY_PATH
8813   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8814
8815   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8816   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8817   ;;
8818
8819 dgux*)
8820   version_type=linux
8821   need_lib_prefix=no
8822   need_version=no
8823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8824   soname_spec='${libname}${release}${shared_ext}$major'
8825   shlibpath_var=LD_LIBRARY_PATH
8826   ;;
8827
8828 freebsd1*)
8829   dynamic_linker=no
8830   ;;
8831
8832 freebsd* | dragonfly*)
8833   # DragonFly does not have aout.  When/if they implement a new
8834   # versioning mechanism, adjust this.
8835   if test -x /usr/bin/objformat; then
8836     objformat=`/usr/bin/objformat`
8837   else
8838     case $host_os in
8839     freebsd[123]*) objformat=aout ;;
8840     *) objformat=elf ;;
8841     esac
8842   fi
8843   version_type=freebsd-$objformat
8844   case $version_type in
8845     freebsd-elf*)
8846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8847       need_version=no
8848       need_lib_prefix=no
8849       ;;
8850     freebsd-*)
8851       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8852       need_version=yes
8853       ;;
8854   esac
8855   shlibpath_var=LD_LIBRARY_PATH
8856   case $host_os in
8857   freebsd2*)
8858     shlibpath_overrides_runpath=yes
8859     ;;
8860   freebsd3.[01]* | freebsdelf3.[01]*)
8861     shlibpath_overrides_runpath=yes
8862     hardcode_into_libs=yes
8863     ;;
8864   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8865   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8866     shlibpath_overrides_runpath=no
8867     hardcode_into_libs=yes
8868     ;;
8869   *) # from 4.6 on, and DragonFly
8870     shlibpath_overrides_runpath=yes
8871     hardcode_into_libs=yes
8872     ;;
8873   esac
8874   ;;
8875
8876 gnu*)
8877   version_type=linux
8878   need_lib_prefix=no
8879   need_version=no
8880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8881   soname_spec='${libname}${release}${shared_ext}$major'
8882   shlibpath_var=LD_LIBRARY_PATH
8883   hardcode_into_libs=yes
8884   ;;
8885
8886 hpux9* | hpux10* | hpux11*)
8887   # Give a soname corresponding to the major version so that dld.sl refuses to
8888   # link against other versions.
8889   version_type=sunos
8890   need_lib_prefix=no
8891   need_version=no
8892   case $host_cpu in
8893   ia64*)
8894     shrext_cmds='.so'
8895     hardcode_into_libs=yes
8896     dynamic_linker="$host_os dld.so"
8897     shlibpath_var=LD_LIBRARY_PATH
8898     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900     soname_spec='${libname}${release}${shared_ext}$major'
8901     if test "X$HPUX_IA64_MODE" = X32; then
8902       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8903     else
8904       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8905     fi
8906     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8907     ;;
8908    hppa*64*)
8909      shrext_cmds='.sl'
8910      hardcode_into_libs=yes
8911      dynamic_linker="$host_os dld.sl"
8912      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8913      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8914      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915      soname_spec='${libname}${release}${shared_ext}$major'
8916      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8917      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8918      ;;
8919    *)
8920     shrext_cmds='.sl'
8921     dynamic_linker="$host_os dld.sl"
8922     shlibpath_var=SHLIB_PATH
8923     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925     soname_spec='${libname}${release}${shared_ext}$major'
8926     ;;
8927   esac
8928   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8929   postinstall_cmds='chmod 555 $lib'
8930   ;;
8931
8932 interix[3-9]*)
8933   version_type=linux
8934   need_lib_prefix=no
8935   need_version=no
8936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8937   soname_spec='${libname}${release}${shared_ext}$major'
8938   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8939   shlibpath_var=LD_LIBRARY_PATH
8940   shlibpath_overrides_runpath=no
8941   hardcode_into_libs=yes
8942   ;;
8943
8944 irix5* | irix6* | nonstopux*)
8945   case $host_os in
8946     nonstopux*) version_type=nonstopux ;;
8947     *)
8948         if test "$lt_cv_prog_gnu_ld" = yes; then
8949                 version_type=linux
8950         else
8951                 version_type=irix
8952         fi ;;
8953   esac
8954   need_lib_prefix=no
8955   need_version=no
8956   soname_spec='${libname}${release}${shared_ext}$major'
8957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8958   case $host_os in
8959   irix5* | nonstopux*)
8960     libsuff= shlibsuff=
8961     ;;
8962   *)
8963     case $LD in # libtool.m4 will add one of these switches to LD
8964     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8965       libsuff= shlibsuff= libmagic=32-bit;;
8966     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8967       libsuff=32 shlibsuff=N32 libmagic=N32;;
8968     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8969       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8970     *) libsuff= shlibsuff= libmagic=never-match;;
8971     esac
8972     ;;
8973   esac
8974   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8975   shlibpath_overrides_runpath=no
8976   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8977   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8978   hardcode_into_libs=yes
8979   ;;
8980
8981 # No shared lib support for Linux oldld, aout, or coff.
8982 linux*oldld* | linux*aout* | linux*coff*)
8983   dynamic_linker=no
8984   ;;
8985
8986 # This must be Linux ELF.
8987 linux* | k*bsd*-gnu)
8988   version_type=linux
8989   need_lib_prefix=no
8990   need_version=no
8991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992   soname_spec='${libname}${release}${shared_ext}$major'
8993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8994   shlibpath_var=LD_LIBRARY_PATH
8995   shlibpath_overrides_runpath=no
8996   # This implies no fast_install, which is unacceptable.
8997   # Some rework will be needed to allow for fast_install
8998   # before this can be enabled.
8999   hardcode_into_libs=yes
9000
9001   # Append ld.so.conf contents to the search path
9002   if test -f /etc/ld.so.conf; then
9003     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' ' '`
9004     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9005   fi
9006
9007   # We used to test for /lib/ld.so.1 and disable shared libraries on
9008   # powerpc, because MkLinux only supported shared libraries with the
9009   # GNU dynamic linker.  Since this was broken with cross compilers,
9010   # most powerpc-linux boxes support dynamic linking these days and
9011   # people can always --disable-shared, the test was removed, and we
9012   # assume the GNU/Linux dynamic linker is in use.
9013   dynamic_linker='GNU/Linux ld.so'
9014   ;;
9015
9016 netbsd*)
9017   version_type=sunos
9018   need_lib_prefix=no
9019   need_version=no
9020   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9022     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9023     dynamic_linker='NetBSD (a.out) ld.so'
9024   else
9025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026     soname_spec='${libname}${release}${shared_ext}$major'
9027     dynamic_linker='NetBSD ld.elf_so'
9028   fi
9029   shlibpath_var=LD_LIBRARY_PATH
9030   shlibpath_overrides_runpath=yes
9031   hardcode_into_libs=yes
9032   ;;
9033
9034 newsos6)
9035   version_type=linux
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037   shlibpath_var=LD_LIBRARY_PATH
9038   shlibpath_overrides_runpath=yes
9039   ;;
9040
9041 nto-qnx*)
9042   version_type=linux
9043   need_lib_prefix=no
9044   need_version=no
9045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046   soname_spec='${libname}${release}${shared_ext}$major'
9047   shlibpath_var=LD_LIBRARY_PATH
9048   shlibpath_overrides_runpath=yes
9049   ;;
9050
9051 openbsd*)
9052   version_type=sunos
9053   sys_lib_dlsearch_path_spec="/usr/lib"
9054   need_lib_prefix=no
9055   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9056   case $host_os in
9057     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9058     *)                         need_version=no  ;;
9059   esac
9060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9061   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9062   shlibpath_var=LD_LIBRARY_PATH
9063   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9064     case $host_os in
9065       openbsd2.[89] | openbsd2.[89].*)
9066         shlibpath_overrides_runpath=no
9067         ;;
9068       *)
9069         shlibpath_overrides_runpath=yes
9070         ;;
9071       esac
9072   else
9073     shlibpath_overrides_runpath=yes
9074   fi
9075   ;;
9076
9077 os2*)
9078   libname_spec='$name'
9079   shrext_cmds=".dll"
9080   need_lib_prefix=no
9081   library_names_spec='$libname${shared_ext} $libname.a'
9082   dynamic_linker='OS/2 ld.exe'
9083   shlibpath_var=LIBPATH
9084   ;;
9085
9086 osf3* | osf4* | osf5*)
9087   version_type=osf
9088   need_lib_prefix=no
9089   need_version=no
9090   soname_spec='${libname}${release}${shared_ext}$major'
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092   shlibpath_var=LD_LIBRARY_PATH
9093   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9094   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9095   ;;
9096
9097 rdos*)
9098   dynamic_linker=no
9099   ;;
9100
9101 solaris*)
9102   version_type=linux
9103   need_lib_prefix=no
9104   need_version=no
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106   soname_spec='${libname}${release}${shared_ext}$major'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   shlibpath_overrides_runpath=yes
9109   hardcode_into_libs=yes
9110   # ldd complains unless libraries are executable
9111   postinstall_cmds='chmod +x $lib'
9112   ;;
9113
9114 sunos4*)
9115   version_type=sunos
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   shlibpath_overrides_runpath=yes
9120   if test "$with_gnu_ld" = yes; then
9121     need_lib_prefix=no
9122   fi
9123   need_version=yes
9124   ;;
9125
9126 sysv4 | sysv4.3*)
9127   version_type=linux
9128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129   soname_spec='${libname}${release}${shared_ext}$major'
9130   shlibpath_var=LD_LIBRARY_PATH
9131   case $host_vendor in
9132     sni)
9133       shlibpath_overrides_runpath=no
9134       need_lib_prefix=no
9135       export_dynamic_flag_spec='${wl}-Blargedynsym'
9136       runpath_var=LD_RUN_PATH
9137       ;;
9138     siemens)
9139       need_lib_prefix=no
9140       ;;
9141     motorola)
9142       need_lib_prefix=no
9143       need_version=no
9144       shlibpath_overrides_runpath=no
9145       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9146       ;;
9147   esac
9148   ;;
9149
9150 sysv4*MP*)
9151   if test -d /usr/nec ;then
9152     version_type=linux
9153     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9154     soname_spec='$libname${shared_ext}.$major'
9155     shlibpath_var=LD_LIBRARY_PATH
9156   fi
9157   ;;
9158
9159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9160   version_type=freebsd-elf
9161   need_lib_prefix=no
9162   need_version=no
9163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9164   soname_spec='${libname}${release}${shared_ext}$major'
9165   shlibpath_var=LD_LIBRARY_PATH
9166   hardcode_into_libs=yes
9167   if test "$with_gnu_ld" = yes; then
9168     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9169     shlibpath_overrides_runpath=no
9170   else
9171     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9172     shlibpath_overrides_runpath=yes
9173     case $host_os in
9174       sco3.2v5*)
9175         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9176         ;;
9177     esac
9178   fi
9179   sys_lib_dlsearch_path_spec='/usr/lib'
9180   ;;
9181
9182 uts4*)
9183   version_type=linux
9184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185   soname_spec='${libname}${release}${shared_ext}$major'
9186   shlibpath_var=LD_LIBRARY_PATH
9187   ;;
9188
9189 *)
9190   dynamic_linker=no
9191   ;;
9192 esac
9193 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9194 $as_echo "$dynamic_linker" >&6; }
9195 test "$dynamic_linker" = no && can_build_shared=no
9196
9197 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9198   $as_echo_n "(cached) " >&6
9199 else
9200   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9201 fi
9202
9203 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9204 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9205   $as_echo_n "(cached) " >&6
9206 else
9207   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9208 fi
9209
9210 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9211
9212 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9213 if test "$GCC" = yes; then
9214   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9215 fi
9216
9217 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9219 hardcode_action=
9220 if test -n "$hardcode_libdir_flag_spec" || \
9221    test -n "$runpath_var" || \
9222    test "X$hardcode_automatic" = "Xyes" ; then
9223
9224   # We can hardcode non-existant directories.
9225   if test "$hardcode_direct" != no &&
9226      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9227      # have to relink, otherwise we might link with an installed library
9228      # when we should be linking with a yet-to-be-installed one
9229      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9230      test "$hardcode_minus_L" != no; then
9231     # Linking always hardcodes the temporary library directory.
9232     hardcode_action=relink
9233   else
9234     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9235     hardcode_action=immediate
9236   fi
9237 else
9238   # We cannot hardcode anything, or else we can only hardcode existing
9239   # directories.
9240   hardcode_action=unsupported
9241 fi
9242 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9243 $as_echo "$hardcode_action" >&6; }
9244
9245 if test "$hardcode_action" = relink; then
9246   # Fast installation is not supported
9247   enable_fast_install=no
9248 elif test "$shlibpath_overrides_runpath" = yes ||
9249      test "$enable_shared" = no; then
9250   # Fast installation is not necessary
9251   enable_fast_install=needless
9252 fi
9253
9254 striplib=
9255 old_striplib=
9256 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9257 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9258 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9259   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9260   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9261   { $as_echo "$as_me:$LINENO: result: yes" >&5
9262 $as_echo "yes" >&6; }
9263 else
9264 # FIXME - insert some real tests, host_os isn't really good enough
9265   case $host_os in
9266    darwin*)
9267        if test -n "$STRIP" ; then
9268          striplib="$STRIP -x"
9269          old_striplib="$STRIP -S"
9270          { $as_echo "$as_me:$LINENO: result: yes" >&5
9271 $as_echo "yes" >&6; }
9272        else
9273   { $as_echo "$as_me:$LINENO: result: no" >&5
9274 $as_echo "no" >&6; }
9275 fi
9276        ;;
9277    *)
9278   { $as_echo "$as_me:$LINENO: result: no" >&5
9279 $as_echo "no" >&6; }
9280     ;;
9281   esac
9282 fi
9283
9284 if test "x$enable_dlopen" != xyes; then
9285   enable_dlopen=unknown
9286   enable_dlopen_self=unknown
9287   enable_dlopen_self_static=unknown
9288 else
9289   lt_cv_dlopen=no
9290   lt_cv_dlopen_libs=
9291
9292   case $host_os in
9293   beos*)
9294     lt_cv_dlopen="load_add_on"
9295     lt_cv_dlopen_libs=
9296     lt_cv_dlopen_self=yes
9297     ;;
9298
9299   mingw* | pw32*)
9300     lt_cv_dlopen="LoadLibrary"
9301     lt_cv_dlopen_libs=
9302    ;;
9303
9304   cygwin*)
9305     lt_cv_dlopen="dlopen"
9306     lt_cv_dlopen_libs=
9307    ;;
9308
9309   darwin*)
9310   # if libdl is installed we need to link against it
9311     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9312 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9314   $as_echo_n "(cached) " >&6
9315 else
9316   ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-ldl  $LIBS"
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324
9325 /* Override any GCC internal prototype to avoid an error.
9326    Use char because int might match the return type of a GCC
9327    builtin and then its argument prototype would still apply.  */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char dlopen ();
9332 int
9333 main ()
9334 {
9335 return dlopen ();
9336   ;
9337   return 0;
9338 }
9339 _ACEOF
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9347 $as_echo "$ac_try_echo") >&5
9348   (eval "$ac_link") 2>conftest.er1
9349   ac_status=$?
9350   grep -v '^ *+' conftest.er1 >conftest.err
9351   rm -f conftest.er1
9352   cat conftest.err >&5
9353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } && {
9355          test -z "$ac_c_werror_flag" ||
9356          test ! -s conftest.err
9357        } && test -s conftest$ac_exeext && {
9358          test "$cross_compiling" = yes ||
9359          $as_test_x conftest$ac_exeext
9360        }; then
9361   ac_cv_lib_dl_dlopen=yes
9362 else
9363   $as_echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366         ac_cv_lib_dl_dlopen=no
9367 fi
9368
9369 rm -rf conftest.dSYM
9370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9371       conftest$ac_exeext conftest.$ac_ext
9372 LIBS=$ac_check_lib_save_LIBS
9373 fi
9374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9375 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9376 if test $ac_cv_lib_dl_dlopen = yes; then
9377   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9378 else
9379
9380     lt_cv_dlopen="dyld"
9381     lt_cv_dlopen_libs=
9382     lt_cv_dlopen_self=yes
9383
9384 fi
9385
9386    ;;
9387
9388   *)
9389     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9390 $as_echo_n "checking for shl_load... " >&6; }
9391 if test "${ac_cv_func_shl_load+set}" = set; then
9392   $as_echo_n "(cached) " >&6
9393 else
9394   cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9402 #define shl_load innocuous_shl_load
9403
9404 /* System header to define __stub macros and hopefully few prototypes,
9405     which can conflict with char shl_load (); below.
9406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407     <limits.h> exists even on freestanding compilers.  */
9408
9409 #ifdef __STDC__
9410 # include <limits.h>
9411 #else
9412 # include <assert.h>
9413 #endif
9414
9415 #undef shl_load
9416
9417 /* Override any GCC internal prototype to avoid an error.
9418    Use char because int might match the return type of a GCC
9419    builtin and then its argument prototype would still apply.  */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 char shl_load ();
9424 /* The GNU C library defines this for functions which it implements
9425     to always fail with ENOSYS.  Some functions are actually named
9426     something starting with __ and the normal name is an alias.  */
9427 #if defined __stub_shl_load || defined __stub___shl_load
9428 choke me
9429 #endif
9430
9431 int
9432 main ()
9433 {
9434 return shl_load ();
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (ac_try="$ac_link"
9441 case "(($ac_try" in
9442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443   *) ac_try_echo=$ac_try;;
9444 esac
9445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9446 $as_echo "$ac_try_echo") >&5
9447   (eval "$ac_link") 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } && {
9454          test -z "$ac_c_werror_flag" ||
9455          test ! -s conftest.err
9456        } && test -s conftest$ac_exeext && {
9457          test "$cross_compiling" = yes ||
9458          $as_test_x conftest$ac_exeext
9459        }; then
9460   ac_cv_func_shl_load=yes
9461 else
9462   $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465         ac_cv_func_shl_load=no
9466 fi
9467
9468 rm -rf conftest.dSYM
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470       conftest$ac_exeext conftest.$ac_ext
9471 fi
9472 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9473 $as_echo "$ac_cv_func_shl_load" >&6; }
9474 if test $ac_cv_func_shl_load = yes; then
9475   lt_cv_dlopen="shl_load"
9476 else
9477   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9478 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9479 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9480   $as_echo_n "(cached) " >&6
9481 else
9482   ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-ldld  $LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h.  */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h.  */
9490
9491 /* Override any GCC internal prototype to avoid an error.
9492    Use char because int might match the return type of a GCC
9493    builtin and then its argument prototype would still apply.  */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char shl_load ();
9498 int
9499 main ()
9500 {
9501 return shl_load ();
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9508 case "(($ac_try" in
9509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510   *) ac_try_echo=$ac_try;;
9511 esac
9512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9513 $as_echo "$ac_try_echo") >&5
9514   (eval "$ac_link") 2>conftest.er1
9515   ac_status=$?
9516   grep -v '^ *+' conftest.er1 >conftest.err
9517   rm -f conftest.er1
9518   cat conftest.err >&5
9519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } && {
9521          test -z "$ac_c_werror_flag" ||
9522          test ! -s conftest.err
9523        } && test -s conftest$ac_exeext && {
9524          test "$cross_compiling" = yes ||
9525          $as_test_x conftest$ac_exeext
9526        }; then
9527   ac_cv_lib_dld_shl_load=yes
9528 else
9529   $as_echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532         ac_cv_lib_dld_shl_load=no
9533 fi
9534
9535 rm -rf conftest.dSYM
9536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9537       conftest$ac_exeext conftest.$ac_ext
9538 LIBS=$ac_check_lib_save_LIBS
9539 fi
9540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9541 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9542 if test $ac_cv_lib_dld_shl_load = yes; then
9543   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9544 else
9545   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9546 $as_echo_n "checking for dlopen... " >&6; }
9547 if test "${ac_cv_func_dlopen+set}" = set; then
9548   $as_echo_n "(cached) " >&6
9549 else
9550   cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9558 #define dlopen innocuous_dlopen
9559
9560 /* System header to define __stub macros and hopefully few prototypes,
9561     which can conflict with char dlopen (); below.
9562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563     <limits.h> exists even on freestanding compilers.  */
9564
9565 #ifdef __STDC__
9566 # include <limits.h>
9567 #else
9568 # include <assert.h>
9569 #endif
9570
9571 #undef dlopen
9572
9573 /* Override any GCC internal prototype to avoid an error.
9574    Use char because int might match the return type of a GCC
9575    builtin and then its argument prototype would still apply.  */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 char dlopen ();
9580 /* The GNU C library defines this for functions which it implements
9581     to always fail with ENOSYS.  Some functions are actually named
9582     something starting with __ and the normal name is an alias.  */
9583 #if defined __stub_dlopen || defined __stub___dlopen
9584 choke me
9585 #endif
9586
9587 int
9588 main ()
9589 {
9590 return dlopen ();
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9597 case "(($ac_try" in
9598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599   *) ac_try_echo=$ac_try;;
9600 esac
9601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9602 $as_echo "$ac_try_echo") >&5
9603   (eval "$ac_link") 2>conftest.er1
9604   ac_status=$?
9605   grep -v '^ *+' conftest.er1 >conftest.err
9606   rm -f conftest.er1
9607   cat conftest.err >&5
9608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } && {
9610          test -z "$ac_c_werror_flag" ||
9611          test ! -s conftest.err
9612        } && test -s conftest$ac_exeext && {
9613          test "$cross_compiling" = yes ||
9614          $as_test_x conftest$ac_exeext
9615        }; then
9616   ac_cv_func_dlopen=yes
9617 else
9618   $as_echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621         ac_cv_func_dlopen=no
9622 fi
9623
9624 rm -rf conftest.dSYM
9625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9626       conftest$ac_exeext conftest.$ac_ext
9627 fi
9628 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9629 $as_echo "$ac_cv_func_dlopen" >&6; }
9630 if test $ac_cv_func_dlopen = yes; then
9631   lt_cv_dlopen="dlopen"
9632 else
9633   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9635 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9636   $as_echo_n "(cached) " >&6
9637 else
9638   ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-ldl  $LIBS"
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646
9647 /* Override any GCC internal prototype to avoid an error.
9648    Use char because int might match the return type of a GCC
9649    builtin and then its argument prototype would still apply.  */
9650 #ifdef __cplusplus
9651 extern "C"
9652 #endif
9653 char dlopen ();
9654 int
9655 main ()
9656 {
9657 return dlopen ();
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666   *) ac_try_echo=$ac_try;;
9667 esac
9668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9669 $as_echo "$ac_try_echo") >&5
9670   (eval "$ac_link") 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } && {
9677          test -z "$ac_c_werror_flag" ||
9678          test ! -s conftest.err
9679        } && test -s conftest$ac_exeext && {
9680          test "$cross_compiling" = yes ||
9681          $as_test_x conftest$ac_exeext
9682        }; then
9683   ac_cv_lib_dl_dlopen=yes
9684 else
9685   $as_echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688         ac_cv_lib_dl_dlopen=no
9689 fi
9690
9691 rm -rf conftest.dSYM
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693       conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9695 fi
9696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9698 if test $ac_cv_lib_dl_dlopen = yes; then
9699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9700 else
9701   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9702 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9703 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9704   $as_echo_n "(cached) " >&6
9705 else
9706   ac_check_lib_save_LIBS=$LIBS
9707 LIBS="-lsvld  $LIBS"
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h.  */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h.  */
9714
9715 /* Override any GCC internal prototype to avoid an error.
9716    Use char because int might match the return type of a GCC
9717    builtin and then its argument prototype would still apply.  */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 char dlopen ();
9722 int
9723 main ()
9724 {
9725 return dlopen ();
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9732 case "(($ac_try" in
9733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734   *) ac_try_echo=$ac_try;;
9735 esac
9736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737 $as_echo "$ac_try_echo") >&5
9738   (eval "$ac_link") 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } && {
9745          test -z "$ac_c_werror_flag" ||
9746          test ! -s conftest.err
9747        } && test -s conftest$ac_exeext && {
9748          test "$cross_compiling" = yes ||
9749          $as_test_x conftest$ac_exeext
9750        }; then
9751   ac_cv_lib_svld_dlopen=yes
9752 else
9753   $as_echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9755
9756         ac_cv_lib_svld_dlopen=no
9757 fi
9758
9759 rm -rf conftest.dSYM
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761       conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9763 fi
9764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9765 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9766 if test $ac_cv_lib_svld_dlopen = yes; then
9767   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9768 else
9769   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9770 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9771 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9772   $as_echo_n "(cached) " >&6
9773 else
9774   ac_check_lib_save_LIBS=$LIBS
9775 LIBS="-ldld  $LIBS"
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 /* Override any GCC internal prototype to avoid an error.
9784    Use char because int might match the return type of a GCC
9785    builtin and then its argument prototype would still apply.  */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char dld_link ();
9790 int
9791 main ()
9792 {
9793 return dld_link ();
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9800 case "(($ac_try" in
9801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802   *) ac_try_echo=$ac_try;;
9803 esac
9804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805 $as_echo "$ac_try_echo") >&5
9806   (eval "$ac_link") 2>conftest.er1
9807   ac_status=$?
9808   grep -v '^ *+' conftest.er1 >conftest.err
9809   rm -f conftest.er1
9810   cat conftest.err >&5
9811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } && {
9813          test -z "$ac_c_werror_flag" ||
9814          test ! -s conftest.err
9815        } && test -s conftest$ac_exeext && {
9816          test "$cross_compiling" = yes ||
9817          $as_test_x conftest$ac_exeext
9818        }; then
9819   ac_cv_lib_dld_dld_link=yes
9820 else
9821   $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824         ac_cv_lib_dld_dld_link=no
9825 fi
9826
9827 rm -rf conftest.dSYM
9828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9829       conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9833 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9834 if test $ac_cv_lib_dld_dld_link = yes; then
9835   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9836 fi
9837
9838
9839 fi
9840
9841
9842 fi
9843
9844
9845 fi
9846
9847
9848 fi
9849
9850
9851 fi
9852
9853     ;;
9854   esac
9855
9856   if test "x$lt_cv_dlopen" != xno; then
9857     enable_dlopen=yes
9858   else
9859     enable_dlopen=no
9860   fi
9861
9862   case $lt_cv_dlopen in
9863   dlopen)
9864     save_CPPFLAGS="$CPPFLAGS"
9865     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9866
9867     save_LDFLAGS="$LDFLAGS"
9868     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9869
9870     save_LIBS="$LIBS"
9871     LIBS="$lt_cv_dlopen_libs $LIBS"
9872
9873     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9874 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9875 if test "${lt_cv_dlopen_self+set}" = set; then
9876   $as_echo_n "(cached) " >&6
9877 else
9878           if test "$cross_compiling" = yes; then :
9879   lt_cv_dlopen_self=cross
9880 else
9881   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882   lt_status=$lt_dlunknown
9883   cat > conftest.$ac_ext <<EOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9886
9887 #if HAVE_DLFCN_H
9888 #include <dlfcn.h>
9889 #endif
9890
9891 #include <stdio.h>
9892
9893 #ifdef RTLD_GLOBAL
9894 #  define LT_DLGLOBAL           RTLD_GLOBAL
9895 #else
9896 #  ifdef DL_GLOBAL
9897 #    define LT_DLGLOBAL         DL_GLOBAL
9898 #  else
9899 #    define LT_DLGLOBAL         0
9900 #  endif
9901 #endif
9902
9903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904    find out it does not work in some platform. */
9905 #ifndef LT_DLLAZY_OR_NOW
9906 #  ifdef RTLD_LAZY
9907 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9908 #  else
9909 #    ifdef DL_LAZY
9910 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9911 #    else
9912 #      ifdef RTLD_NOW
9913 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9914 #      else
9915 #        ifdef DL_NOW
9916 #          define LT_DLLAZY_OR_NOW      DL_NOW
9917 #        else
9918 #          define LT_DLLAZY_OR_NOW      0
9919 #        endif
9920 #      endif
9921 #    endif
9922 #  endif
9923 #endif
9924
9925 #ifdef __cplusplus
9926 extern "C" void exit (int);
9927 #endif
9928
9929 void fnord() { int i=42;}
9930 int main ()
9931 {
9932   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933   int status = $lt_dlunknown;
9934
9935   if (self)
9936     {
9937       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9938       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939       /* dlclose (self); */
9940     }
9941   else
9942     puts (dlerror ());
9943
9944     exit (status);
9945 }
9946 EOF
9947   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948   (eval $ac_link) 2>&5
9949   ac_status=$?
9950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952     (./conftest; exit; ) >&5 2>/dev/null
9953     lt_status=$?
9954     case x$lt_status in
9955       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9956       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9957       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9958     esac
9959   else :
9960     # compilation failed
9961     lt_cv_dlopen_self=no
9962   fi
9963 fi
9964 rm -fr conftest*
9965
9966
9967 fi
9968 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9969 $as_echo "$lt_cv_dlopen_self" >&6; }
9970
9971     if test "x$lt_cv_dlopen_self" = xyes; then
9972       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9973       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9974 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9975 if test "${lt_cv_dlopen_self_static+set}" = set; then
9976   $as_echo_n "(cached) " >&6
9977 else
9978           if test "$cross_compiling" = yes; then :
9979   lt_cv_dlopen_self_static=cross
9980 else
9981   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9982   lt_status=$lt_dlunknown
9983   cat > conftest.$ac_ext <<EOF
9984 #line 9984 "configure"
9985 #include "confdefs.h"
9986
9987 #if HAVE_DLFCN_H
9988 #include <dlfcn.h>
9989 #endif
9990
9991 #include <stdio.h>
9992
9993 #ifdef RTLD_GLOBAL
9994 #  define LT_DLGLOBAL           RTLD_GLOBAL
9995 #else
9996 #  ifdef DL_GLOBAL
9997 #    define LT_DLGLOBAL         DL_GLOBAL
9998 #  else
9999 #    define LT_DLGLOBAL         0
10000 #  endif
10001 #endif
10002
10003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10004    find out it does not work in some platform. */
10005 #ifndef LT_DLLAZY_OR_NOW
10006 #  ifdef RTLD_LAZY
10007 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10008 #  else
10009 #    ifdef DL_LAZY
10010 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10011 #    else
10012 #      ifdef RTLD_NOW
10013 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10014 #      else
10015 #        ifdef DL_NOW
10016 #          define LT_DLLAZY_OR_NOW      DL_NOW
10017 #        else
10018 #          define LT_DLLAZY_OR_NOW      0
10019 #        endif
10020 #      endif
10021 #    endif
10022 #  endif
10023 #endif
10024
10025 #ifdef __cplusplus
10026 extern "C" void exit (int);
10027 #endif
10028
10029 void fnord() { int i=42;}
10030 int main ()
10031 {
10032   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10033   int status = $lt_dlunknown;
10034
10035   if (self)
10036     {
10037       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10038       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10039       /* dlclose (self); */
10040     }
10041   else
10042     puts (dlerror ());
10043
10044     exit (status);
10045 }
10046 EOF
10047   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048   (eval $ac_link) 2>&5
10049   ac_status=$?
10050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10052     (./conftest; exit; ) >&5 2>/dev/null
10053     lt_status=$?
10054     case x$lt_status in
10055       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10056       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10057       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10058     esac
10059   else :
10060     # compilation failed
10061     lt_cv_dlopen_self_static=no
10062   fi
10063 fi
10064 rm -fr conftest*
10065
10066
10067 fi
10068 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10070     fi
10071
10072     CPPFLAGS="$save_CPPFLAGS"
10073     LDFLAGS="$save_LDFLAGS"
10074     LIBS="$save_LIBS"
10075     ;;
10076   esac
10077
10078   case $lt_cv_dlopen_self in
10079   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10080   *) enable_dlopen_self=unknown ;;
10081   esac
10082
10083   case $lt_cv_dlopen_self_static in
10084   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10085   *) enable_dlopen_self_static=unknown ;;
10086   esac
10087 fi
10088
10089
10090 # Report which library types will actually be built
10091 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10092 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10093 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10094 $as_echo "$can_build_shared" >&6; }
10095
10096 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10097 $as_echo_n "checking whether to build shared libraries... " >&6; }
10098 test "$can_build_shared" = "no" && enable_shared=no
10099
10100 # On AIX, shared libraries and static libraries use the same namespace, and
10101 # are all built from PIC.
10102 case $host_os in
10103 aix3*)
10104   test "$enable_shared" = yes && enable_static=no
10105   if test -n "$RANLIB"; then
10106     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10107     postinstall_cmds='$RANLIB $lib'
10108   fi
10109   ;;
10110
10111 aix[4-9]*)
10112   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10113     test "$enable_shared" = yes && enable_static=no
10114   fi
10115     ;;
10116 esac
10117 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10118 $as_echo "$enable_shared" >&6; }
10119
10120 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10121 $as_echo_n "checking whether to build static libraries... " >&6; }
10122 # Make sure either enable_shared or enable_static is yes.
10123 test "$enable_shared" = yes || enable_static=yes
10124 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10125 $as_echo "$enable_static" >&6; }
10126
10127 # The else clause should only fire when bootstrapping the
10128 # libtool distribution, otherwise you forgot to ship ltmain.sh
10129 # with your package, and you will get complaints that there are
10130 # no rules to generate ltmain.sh.
10131 if test -f "$ltmain"; then
10132   # See if we are running on zsh, and set the options which allow our commands through
10133   # without removal of \ escapes.
10134   if test -n "${ZSH_VERSION+set}" ; then
10135     setopt NO_GLOB_SUBST
10136   fi
10137   # Now quote all the things that may contain metacharacters while being
10138   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10139   # variables and quote the copies for generation of the libtool script.
10140   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10141     SED SHELL STRIP \
10142     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10143     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10144     deplibs_check_method reload_flag reload_cmds need_locks \
10145     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10146     lt_cv_sys_global_symbol_to_c_name_address \
10147     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10148     old_postinstall_cmds old_postuninstall_cmds \
10149     compiler \
10150     CC \
10151     LD \
10152     lt_prog_compiler_wl \
10153     lt_prog_compiler_pic \
10154     lt_prog_compiler_static \
10155     lt_prog_compiler_no_builtin_flag \
10156     export_dynamic_flag_spec \
10157     thread_safe_flag_spec \
10158     whole_archive_flag_spec \
10159     enable_shared_with_static_runtimes \
10160     old_archive_cmds \
10161     old_archive_from_new_cmds \
10162     predep_objects \
10163     postdep_objects \
10164     predeps \
10165     postdeps \
10166     compiler_lib_search_path \
10167     compiler_lib_search_dirs \
10168     archive_cmds \
10169     archive_expsym_cmds \
10170     postinstall_cmds \
10171     postuninstall_cmds \
10172     old_archive_from_expsyms_cmds \
10173     allow_undefined_flag \
10174     no_undefined_flag \
10175     export_symbols_cmds \
10176     hardcode_libdir_flag_spec \
10177     hardcode_libdir_flag_spec_ld \
10178     hardcode_libdir_separator \
10179     hardcode_automatic \
10180     module_cmds \
10181     module_expsym_cmds \
10182     lt_cv_prog_compiler_c_o \
10183     fix_srcfile_path \
10184     exclude_expsyms \
10185     include_expsyms; do
10186
10187     case $var in
10188     old_archive_cmds | \
10189     old_archive_from_new_cmds | \
10190     archive_cmds | \
10191     archive_expsym_cmds | \
10192     module_cmds | \
10193     module_expsym_cmds | \
10194     old_archive_from_expsyms_cmds | \
10195     export_symbols_cmds | \
10196     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10197     postinstall_cmds | postuninstall_cmds | \
10198     old_postinstall_cmds | old_postuninstall_cmds | \
10199     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10200       # Double-quote double-evaled strings.
10201       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10202       ;;
10203     *)
10204       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10205       ;;
10206     esac
10207   done
10208
10209   case $lt_echo in
10210   *'\$0 --fallback-echo"')
10211     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10212     ;;
10213   esac
10214
10215 cfgfile="${ofile}T"
10216   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10217   $rm -f "$cfgfile"
10218   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10219 $as_echo "$as_me: creating $ofile" >&6;}
10220
10221   cat <<__EOF__ >> "$cfgfile"
10222 #! $SHELL
10223
10224 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10225 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10226 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10227 #
10228 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10229 # Free Software Foundation, Inc.
10230 #
10231 # This file is part of GNU Libtool:
10232 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10233 #
10234 # This program is free software; you can redistribute it and/or modify
10235 # it under the terms of the GNU General Public License as published by
10236 # the Free Software Foundation; either version 2 of the License, or
10237 # (at your option) any later version.
10238 #
10239 # This program is distributed in the hope that it will be useful, but
10240 # WITHOUT ANY WARRANTY; without even the implied warranty of
10241 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10242 # General Public License for more details.
10243 #
10244 # You should have received a copy of the GNU General Public License
10245 # along with this program; if not, write to the Free Software
10246 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10247 #
10248 # As a special exception to the GNU General Public License, if you
10249 # distribute this file as part of a program that contains a
10250 # configuration script generated by Autoconf, you may include it under
10251 # the same distribution terms that you use for the rest of that program.
10252
10253 # A sed program that does not truncate output.
10254 SED=$lt_SED
10255
10256 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10257 Xsed="$SED -e 1s/^X//"
10258
10259 # The HP-UX ksh and POSIX shell print the target directory to stdout
10260 # if CDPATH is set.
10261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10262
10263 # The names of the tagged configurations supported by this script.
10264 available_tags=
10265
10266 # ### BEGIN LIBTOOL CONFIG
10267
10268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10269
10270 # Shell to use when invoking shell scripts.
10271 SHELL=$lt_SHELL
10272
10273 # Whether or not to build shared libraries.
10274 build_libtool_libs=$enable_shared
10275
10276 # Whether or not to build static libraries.
10277 build_old_libs=$enable_static
10278
10279 # Whether or not to add -lc for building shared libraries.
10280 build_libtool_need_lc=$archive_cmds_need_lc
10281
10282 # Whether or not to disallow shared libs when runtime libs are static
10283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10284
10285 # Whether or not to optimize for fast installation.
10286 fast_install=$enable_fast_install
10287
10288 # The host system.
10289 host_alias=$host_alias
10290 host=$host
10291 host_os=$host_os
10292
10293 # The build system.
10294 build_alias=$build_alias
10295 build=$build
10296 build_os=$build_os
10297
10298 # An echo program that does not interpret backslashes.
10299 echo=$lt_echo
10300
10301 # The archiver.
10302 AR=$lt_AR
10303 AR_FLAGS=$lt_AR_FLAGS
10304
10305 # A C compiler.
10306 LTCC=$lt_LTCC
10307
10308 # LTCC compiler flags.
10309 LTCFLAGS=$lt_LTCFLAGS
10310
10311 # A language-specific compiler.
10312 CC=$lt_compiler
10313
10314 # Is the compiler the GNU C compiler?
10315 with_gcc=$GCC
10316
10317 # An ERE matcher.
10318 EGREP=$lt_EGREP
10319
10320 # The linker used to build libraries.
10321 LD=$lt_LD
10322
10323 # Whether we need hard or soft links.
10324 LN_S=$lt_LN_S
10325
10326 # A BSD-compatible nm program.
10327 NM=$lt_NM
10328
10329 # A symbol stripping program
10330 STRIP=$lt_STRIP
10331
10332 # Used to examine libraries when file_magic_cmd begins "file"
10333 MAGIC_CMD=$MAGIC_CMD
10334
10335 # Used on cygwin: DLL creation program.
10336 DLLTOOL="$DLLTOOL"
10337
10338 # Used on cygwin: object dumper.
10339 OBJDUMP="$OBJDUMP"
10340
10341 # Used on cygwin: assembler.
10342 AS="$AS"
10343
10344 # The name of the directory that contains temporary libtool files.
10345 objdir=$objdir
10346
10347 # How to create reloadable object files.
10348 reload_flag=$lt_reload_flag
10349 reload_cmds=$lt_reload_cmds
10350
10351 # How to pass a linker flag through the compiler.
10352 wl=$lt_lt_prog_compiler_wl
10353
10354 # Object file suffix (normally "o").
10355 objext="$ac_objext"
10356
10357 # Old archive suffix (normally "a").
10358 libext="$libext"
10359
10360 # Shared library suffix (normally ".so").
10361 shrext_cmds='$shrext_cmds'
10362
10363 # Executable file suffix (normally "").
10364 exeext="$exeext"
10365
10366 # Additional compiler flags for building library objects.
10367 pic_flag=$lt_lt_prog_compiler_pic
10368 pic_mode=$pic_mode
10369
10370 # What is the maximum length of a command?
10371 max_cmd_len=$lt_cv_sys_max_cmd_len
10372
10373 # Does compiler simultaneously support -c and -o options?
10374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10375
10376 # Must we lock files when doing compilation?
10377 need_locks=$lt_need_locks
10378
10379 # Do we need the lib prefix for modules?
10380 need_lib_prefix=$need_lib_prefix
10381
10382 # Do we need a version for libraries?
10383 need_version=$need_version
10384
10385 # Whether dlopen is supported.
10386 dlopen_support=$enable_dlopen
10387
10388 # Whether dlopen of programs is supported.
10389 dlopen_self=$enable_dlopen_self
10390
10391 # Whether dlopen of statically linked programs is supported.
10392 dlopen_self_static=$enable_dlopen_self_static
10393
10394 # Compiler flag to prevent dynamic linking.
10395 link_static_flag=$lt_lt_prog_compiler_static
10396
10397 # Compiler flag to turn off builtin functions.
10398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10399
10400 # Compiler flag to allow reflexive dlopens.
10401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10402
10403 # Compiler flag to generate shared objects directly from archives.
10404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10405
10406 # Compiler flag to generate thread-safe objects.
10407 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10408
10409 # Library versioning type.
10410 version_type=$version_type
10411
10412 # Format of library name prefix.
10413 libname_spec=$lt_libname_spec
10414
10415 # List of archive names.  First name is the real one, the rest are links.
10416 # The last name is the one that the linker finds with -lNAME.
10417 library_names_spec=$lt_library_names_spec
10418
10419 # The coded name of the library, if different from the real name.
10420 soname_spec=$lt_soname_spec
10421
10422 # Commands used to build and install an old-style archive.
10423 RANLIB=$lt_RANLIB
10424 old_archive_cmds=$lt_old_archive_cmds
10425 old_postinstall_cmds=$lt_old_postinstall_cmds
10426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10427
10428 # Create an old-style archive from a shared archive.
10429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10430
10431 # Create a temporary old-style archive to link instead of a shared archive.
10432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10433
10434 # Commands used to build and install a shared archive.
10435 archive_cmds=$lt_archive_cmds
10436 archive_expsym_cmds=$lt_archive_expsym_cmds
10437 postinstall_cmds=$lt_postinstall_cmds
10438 postuninstall_cmds=$lt_postuninstall_cmds
10439
10440 # Commands used to build a loadable module (assumed same as above if empty)
10441 module_cmds=$lt_module_cmds
10442 module_expsym_cmds=$lt_module_expsym_cmds
10443
10444 # Commands to strip libraries.
10445 old_striplib=$lt_old_striplib
10446 striplib=$lt_striplib
10447
10448 # Dependencies to place before the objects being linked to create a
10449 # shared library.
10450 predep_objects=$lt_predep_objects
10451
10452 # Dependencies to place after the objects being linked to create a
10453 # shared library.
10454 postdep_objects=$lt_postdep_objects
10455
10456 # Dependencies to place before the objects being linked to create a
10457 # shared library.
10458 predeps=$lt_predeps
10459
10460 # Dependencies to place after the objects being linked to create a
10461 # shared library.
10462 postdeps=$lt_postdeps
10463
10464 # The directories searched by this compiler when creating a shared
10465 # library
10466 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10467
10468 # The library search path used internally by the compiler when linking
10469 # a shared library.
10470 compiler_lib_search_path=$lt_compiler_lib_search_path
10471
10472 # Method to check whether dependent libraries are shared objects.
10473 deplibs_check_method=$lt_deplibs_check_method
10474
10475 # Command to use when deplibs_check_method == file_magic.
10476 file_magic_cmd=$lt_file_magic_cmd
10477
10478 # Flag that allows shared libraries with undefined symbols to be built.
10479 allow_undefined_flag=$lt_allow_undefined_flag
10480
10481 # Flag that forces no undefined symbols.
10482 no_undefined_flag=$lt_no_undefined_flag
10483
10484 # Commands used to finish a libtool library installation in a directory.
10485 finish_cmds=$lt_finish_cmds
10486
10487 # Same as above, but a single script fragment to be evaled but not shown.
10488 finish_eval=$lt_finish_eval
10489
10490 # Take the output of nm and produce a listing of raw symbols and C names.
10491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10492
10493 # Transform the output of nm in a proper C declaration
10494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10495
10496 # Transform the output of nm in a C name address pair
10497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10498
10499 # This is the shared library runtime path variable.
10500 runpath_var=$runpath_var
10501
10502 # This is the shared library path variable.
10503 shlibpath_var=$shlibpath_var
10504
10505 # Is shlibpath searched before the hard-coded library search path?
10506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10507
10508 # How to hardcode a shared library path into an executable.
10509 hardcode_action=$hardcode_action
10510
10511 # Whether we should hardcode library paths into libraries.
10512 hardcode_into_libs=$hardcode_into_libs
10513
10514 # Flag to hardcode \$libdir into a binary during linking.
10515 # This must work even if \$libdir does not exist.
10516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10517
10518 # If ld is used when linking, flag to hardcode \$libdir into
10519 # a binary during linking. This must work even if \$libdir does
10520 # not exist.
10521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10522
10523 # Whether we need a single -rpath flag with a separated argument.
10524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10525
10526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10527 # resulting binary.
10528 hardcode_direct=$hardcode_direct
10529
10530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10531 # resulting binary.
10532 hardcode_minus_L=$hardcode_minus_L
10533
10534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10535 # the resulting binary.
10536 hardcode_shlibpath_var=$hardcode_shlibpath_var
10537
10538 # Set to yes if building a shared library automatically hardcodes DIR into the library
10539 # and all subsequent libraries and executables linked against it.
10540 hardcode_automatic=$hardcode_automatic
10541
10542 # Variables whose values should be saved in libtool wrapper scripts and
10543 # restored at relink time.
10544 variables_saved_for_relink="$variables_saved_for_relink"
10545
10546 # Whether libtool must link a program against all its dependency libraries.
10547 link_all_deplibs=$link_all_deplibs
10548
10549 # Compile-time system search path for libraries
10550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10551
10552 # Run-time system search path for libraries
10553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10554
10555 # Fix the shell variable \$srcfile for the compiler.
10556 fix_srcfile_path=$lt_fix_srcfile_path
10557
10558 # Set to yes if exported symbols are required.
10559 always_export_symbols=$always_export_symbols
10560
10561 # The commands to list exported symbols.
10562 export_symbols_cmds=$lt_export_symbols_cmds
10563
10564 # The commands to extract the exported symbol list from a shared archive.
10565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10566
10567 # Symbols that should not be listed in the preloaded symbols.
10568 exclude_expsyms=$lt_exclude_expsyms
10569
10570 # Symbols that must always be exported.
10571 include_expsyms=$lt_include_expsyms
10572
10573 # ### END LIBTOOL CONFIG
10574
10575 __EOF__
10576
10577
10578   case $host_os in
10579   aix3*)
10580     cat <<\EOF >> "$cfgfile"
10581
10582 # AIX sometimes has problems with the GCC collect2 program.  For some
10583 # reason, if we set the COLLECT_NAMES environment variable, the problems
10584 # vanish in a puff of smoke.
10585 if test "X${COLLECT_NAMES+set}" != Xset; then
10586   COLLECT_NAMES=
10587   export COLLECT_NAMES
10588 fi
10589 EOF
10590     ;;
10591   esac
10592
10593   # We use sed instead of cat because bash on DJGPP gets confused if
10594   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10595   # text mode, it properly converts lines to CR/LF.  This bash problem
10596   # is reportedly fixed, but why not run on old versions too?
10597   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10598
10599   mv -f "$cfgfile" "$ofile" || \
10600     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10601   chmod +x "$ofile"
10602
10603 else
10604   # If there is no Makefile yet, we rely on a make rule to execute
10605   # `config.status --recheck' to rerun these tests and create the
10606   # libtool script then.
10607   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10608   if test -f "$ltmain_in"; then
10609     test -f Makefile && make "$ltmain"
10610   fi
10611 fi
10612
10613
10614 ac_ext=c
10615 ac_cpp='$CPP $CPPFLAGS'
10616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10619
10620 CC="$lt_save_CC"
10621
10622
10623 # Check whether --with-tags was given.
10624 if test "${with_tags+set}" = set; then
10625   withval=$with_tags; tagnames="$withval"
10626 fi
10627
10628
10629 if test -f "$ltmain" && test -n "$tagnames"; then
10630   if test ! -f "${ofile}"; then
10631     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10632 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10633   fi
10634
10635   if test -z "$LTCC"; then
10636     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10637     if test -z "$LTCC"; then
10638       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10639 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10640     else
10641       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10642 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10643     fi
10644   fi
10645   if test -z "$LTCFLAGS"; then
10646     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10647   fi
10648
10649   # Extract list of available tagged configurations in $ofile.
10650   # Note that this assumes the entire list is on one line.
10651   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10652
10653   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10654   for tagname in $tagnames; do
10655     IFS="$lt_save_ifs"
10656     # Check whether tagname contains only valid characters
10657     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10658     "") ;;
10659     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10660 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10661    { (exit 1); exit 1; }; }
10662         ;;
10663     esac
10664
10665     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10666     then
10667       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10668 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10669    { (exit 1); exit 1; }; }
10670     fi
10671
10672     # Update the list of available tags.
10673     if test -n "$tagname"; then
10674       echo appending configuration tag \"$tagname\" to $ofile
10675
10676       case $tagname in
10677       CXX)
10678         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10679             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10680             (test "X$CXX" != "Xg++"))) ; then
10681           ac_ext=cpp
10682 ac_cpp='$CXXCPP $CPPFLAGS'
10683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10686
10687
10688
10689
10690 archive_cmds_need_lc_CXX=no
10691 allow_undefined_flag_CXX=
10692 always_export_symbols_CXX=no
10693 archive_expsym_cmds_CXX=
10694 export_dynamic_flag_spec_CXX=
10695 hardcode_direct_CXX=no
10696 hardcode_libdir_flag_spec_CXX=
10697 hardcode_libdir_flag_spec_ld_CXX=
10698 hardcode_libdir_separator_CXX=
10699 hardcode_minus_L_CXX=no
10700 hardcode_shlibpath_var_CXX=unsupported
10701 hardcode_automatic_CXX=no
10702 module_cmds_CXX=
10703 module_expsym_cmds_CXX=
10704 link_all_deplibs_CXX=unknown
10705 old_archive_cmds_CXX=$old_archive_cmds
10706 no_undefined_flag_CXX=
10707 whole_archive_flag_spec_CXX=
10708 enable_shared_with_static_runtimes_CXX=no
10709
10710 # Dependencies to place before and after the object being linked:
10711 predep_objects_CXX=
10712 postdep_objects_CXX=
10713 predeps_CXX=
10714 postdeps_CXX=
10715 compiler_lib_search_path_CXX=
10716 compiler_lib_search_dirs_CXX=
10717
10718 # Source file extension for C++ test sources.
10719 ac_ext=cpp
10720
10721 # Object file extension for compiled C++ test sources.
10722 objext=o
10723 objext_CXX=$objext
10724
10725 # Code to be used in simple compile tests
10726 lt_simple_compile_test_code="int some_variable = 0;"
10727
10728 # Code to be used in simple link tests
10729 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10730
10731 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10732
10733 # If no C compiler was specified, use CC.
10734 LTCC=${LTCC-"$CC"}
10735
10736 # If no C compiler flags were specified, use CFLAGS.
10737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10738
10739 # Allow CC to be a program name with arguments.
10740 compiler=$CC
10741
10742
10743 # save warnings/boilerplate of simple test code
10744 ac_outfile=conftest.$ac_objext
10745 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10746 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10747 _lt_compiler_boilerplate=`cat conftest.err`
10748 $rm conftest*
10749
10750 ac_outfile=conftest.$ac_objext
10751 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10752 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10753 _lt_linker_boilerplate=`cat conftest.err`
10754 $rm -r conftest*
10755
10756
10757 # Allow CC to be a program name with arguments.
10758 lt_save_CC=$CC
10759 lt_save_LD=$LD
10760 lt_save_GCC=$GCC
10761 GCC=$GXX
10762 lt_save_with_gnu_ld=$with_gnu_ld
10763 lt_save_path_LD=$lt_cv_path_LD
10764 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10765   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10766 else
10767   $as_unset lt_cv_prog_gnu_ld
10768 fi
10769 if test -n "${lt_cv_path_LDCXX+set}"; then
10770   lt_cv_path_LD=$lt_cv_path_LDCXX
10771 else
10772   $as_unset lt_cv_path_LD
10773 fi
10774 test -z "${LDCXX+set}" || LD=$LDCXX
10775 CC=${CXX-"c++"}
10776 compiler=$CC
10777 compiler_CXX=$CC
10778 for cc_temp in $compiler""; do
10779   case $cc_temp in
10780     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10781     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10782     \-*) ;;
10783     *) break;;
10784   esac
10785 done
10786 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10787
10788
10789 # We don't want -fno-exception wen compiling C++ code, so set the
10790 # no_builtin_flag separately
10791 if test "$GXX" = yes; then
10792   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10793 else
10794   lt_prog_compiler_no_builtin_flag_CXX=
10795 fi
10796
10797 if test "$GXX" = yes; then
10798   # Set up default GNU C++ configuration
10799
10800
10801 # Check whether --with-gnu-ld was given.
10802 if test "${with_gnu_ld+set}" = set; then
10803   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10804 else
10805   with_gnu_ld=no
10806 fi
10807
10808 ac_prog=ld
10809 if test "$GCC" = yes; then
10810   # Check if gcc -print-prog-name=ld gives a path.
10811   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10812 $as_echo_n "checking for ld used by $CC... " >&6; }
10813   case $host in
10814   *-*-mingw*)
10815     # gcc leaves a trailing carriage return which upsets mingw
10816     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10817   *)
10818     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10819   esac
10820   case $ac_prog in
10821     # Accept absolute paths.
10822     [\\/]* | ?:[\\/]*)
10823       re_direlt='/[^/][^/]*/\.\./'
10824       # Canonicalize the pathname of ld
10825       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10826       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10827         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10828       done
10829       test -z "$LD" && LD="$ac_prog"
10830       ;;
10831   "")
10832     # If it fails, then pretend we aren't using GCC.
10833     ac_prog=ld
10834     ;;
10835   *)
10836     # If it is relative, then search for the first ld in PATH.
10837     with_gnu_ld=unknown
10838     ;;
10839   esac
10840 elif test "$with_gnu_ld" = yes; then
10841   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10842 $as_echo_n "checking for GNU ld... " >&6; }
10843 else
10844   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10845 $as_echo_n "checking for non-GNU ld... " >&6; }
10846 fi
10847 if test "${lt_cv_path_LD+set}" = set; then
10848   $as_echo_n "(cached) " >&6
10849 else
10850   if test -z "$LD"; then
10851   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10852   for ac_dir in $PATH; do
10853     IFS="$lt_save_ifs"
10854     test -z "$ac_dir" && ac_dir=.
10855     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10856       lt_cv_path_LD="$ac_dir/$ac_prog"
10857       # Check to see if the program is GNU ld.  I'd rather use --version,
10858       # but apparently some variants of GNU ld only accept -v.
10859       # Break only if it was the GNU/non-GNU ld that we prefer.
10860       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10861       *GNU* | *'with BFD'*)
10862         test "$with_gnu_ld" != no && break
10863         ;;
10864       *)
10865         test "$with_gnu_ld" != yes && break
10866         ;;
10867       esac
10868     fi
10869   done
10870   IFS="$lt_save_ifs"
10871 else
10872   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10873 fi
10874 fi
10875
10876 LD="$lt_cv_path_LD"
10877 if test -n "$LD"; then
10878   { $as_echo "$as_me:$LINENO: result: $LD" >&5
10879 $as_echo "$LD" >&6; }
10880 else
10881   { $as_echo "$as_me:$LINENO: result: no" >&5
10882 $as_echo "no" >&6; }
10883 fi
10884 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10885 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10886    { (exit 1); exit 1; }; }
10887 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10888 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10889 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10890   $as_echo_n "(cached) " >&6
10891 else
10892   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10893 case `$LD -v 2>&1 </dev/null` in
10894 *GNU* | *'with BFD'*)
10895   lt_cv_prog_gnu_ld=yes
10896   ;;
10897 *)
10898   lt_cv_prog_gnu_ld=no
10899   ;;
10900 esac
10901 fi
10902 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10903 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10904 with_gnu_ld=$lt_cv_prog_gnu_ld
10905
10906
10907
10908   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10909   # archiving commands below assume that GNU ld is being used.
10910   if test "$with_gnu_ld" = yes; then
10911     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10912     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'
10913
10914     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10915     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10916
10917     # If archive_cmds runs LD, not CC, wlarc should be empty
10918     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10919     #     investigate it a little bit more. (MM)
10920     wlarc='${wl}'
10921
10922     # ancient GNU ld didn't support --whole-archive et. al.
10923     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10924         grep 'no-whole-archive' > /dev/null; then
10925       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10926     else
10927       whole_archive_flag_spec_CXX=
10928     fi
10929   else
10930     with_gnu_ld=no
10931     wlarc=
10932
10933     # A generic and very simple default shared library creation
10934     # command for GNU C++ for the case where it uses the native
10935     # linker, instead of GNU ld.  If possible, this setting should
10936     # overridden to take advantage of the native linker features on
10937     # the platform it is being used on.
10938     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10939   fi
10940
10941   # Commands to make compiler produce verbose output that lists
10942   # what "hidden" libraries, object files and flags are used when
10943   # linking a shared library.
10944   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10945
10946 else
10947   GXX=no
10948   with_gnu_ld=no
10949   wlarc=
10950 fi
10951
10952 # PORTME: fill in a description of your system's C++ link characteristics
10953 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10955 ld_shlibs_CXX=yes
10956 case $host_os in
10957   aix3*)
10958     # FIXME: insert proper C++ library support
10959     ld_shlibs_CXX=no
10960     ;;
10961   aix[4-9]*)
10962     if test "$host_cpu" = ia64; then
10963       # On IA64, the linker does run time linking by default, so we don't
10964       # have to do anything special.
10965       aix_use_runtimelinking=no
10966       exp_sym_flag='-Bexport'
10967       no_entry_flag=""
10968     else
10969       aix_use_runtimelinking=no
10970
10971       # Test if we are trying to use run time linking or normal
10972       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10973       # need to do runtime linking.
10974       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10975         for ld_flag in $LDFLAGS; do
10976           case $ld_flag in
10977           *-brtl*)
10978             aix_use_runtimelinking=yes
10979             break
10980             ;;
10981           esac
10982         done
10983         ;;
10984       esac
10985
10986       exp_sym_flag='-bexport'
10987       no_entry_flag='-bnoentry'
10988     fi
10989
10990     # When large executables or shared objects are built, AIX ld can
10991     # have problems creating the table of contents.  If linking a library
10992     # or program results in "error TOC overflow" add -mminimal-toc to
10993     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10994     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10995
10996     archive_cmds_CXX=''
10997     hardcode_direct_CXX=yes
10998     hardcode_libdir_separator_CXX=':'
10999     link_all_deplibs_CXX=yes
11000
11001     if test "$GXX" = yes; then
11002       case $host_os in aix4.[012]|aix4.[012].*)
11003       # We only want to do this on AIX 4.2 and lower, the check
11004       # below for broken collect2 doesn't work under 4.3+
11005         collect2name=`${CC} -print-prog-name=collect2`
11006         if test -f "$collect2name" && \
11007            strings "$collect2name" | grep resolve_lib_name >/dev/null
11008         then
11009           # We have reworked collect2
11010           :
11011         else
11012           # We have old collect2
11013           hardcode_direct_CXX=unsupported
11014           # It fails to find uninstalled libraries when the uninstalled
11015           # path is not listed in the libpath.  Setting hardcode_minus_L
11016           # to unsupported forces relinking
11017           hardcode_minus_L_CXX=yes
11018           hardcode_libdir_flag_spec_CXX='-L$libdir'
11019           hardcode_libdir_separator_CXX=
11020         fi
11021         ;;
11022       esac
11023       shared_flag='-shared'
11024       if test "$aix_use_runtimelinking" = yes; then
11025         shared_flag="$shared_flag "'${wl}-G'
11026       fi
11027     else
11028       # not using gcc
11029       if test "$host_cpu" = ia64; then
11030         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11031         # chokes on -Wl,-G. The following line is correct:
11032         shared_flag='-G'
11033       else
11034         if test "$aix_use_runtimelinking" = yes; then
11035           shared_flag='${wl}-G'
11036         else
11037           shared_flag='${wl}-bM:SRE'
11038         fi
11039       fi
11040     fi
11041
11042     # It seems that -bexpall does not export symbols beginning with
11043     # underscore (_), so it is better to generate a list of symbols to export.
11044     always_export_symbols_CXX=yes
11045     if test "$aix_use_runtimelinking" = yes; then
11046       # Warning - without using the other runtime loading flags (-brtl),
11047       # -berok will link without error, but may produce a broken library.
11048       allow_undefined_flag_CXX='-berok'
11049       # Determine the default libpath from the value encoded in an empty executable.
11050       cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056
11057 int
11058 main ()
11059 {
11060
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 rm -f conftest.$ac_objext conftest$ac_exeext
11066 if { (ac_try="$ac_link"
11067 case "(($ac_try" in
11068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069   *) ac_try_echo=$ac_try;;
11070 esac
11071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11072 $as_echo "$ac_try_echo") >&5
11073   (eval "$ac_link") 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } && {
11080          test -z "$ac_cxx_werror_flag" ||
11081          test ! -s conftest.err
11082        } && test -s conftest$ac_exeext && {
11083          test "$cross_compiling" = yes ||
11084          $as_test_x conftest$ac_exeext
11085        }; then
11086
11087 lt_aix_libpath_sed='
11088     /Import File Strings/,/^$/ {
11089         /^0/ {
11090             s/^0  *\(.*\)$/\1/
11091             p
11092         }
11093     }'
11094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11095 # Check for a 64-bit object if we didn't find anything.
11096 if test -z "$aix_libpath"; then
11097   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11098 fi
11099 else
11100   $as_echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103
11104 fi
11105
11106 rm -rf conftest.dSYM
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108       conftest$ac_exeext conftest.$ac_ext
11109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11110
11111       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11112
11113       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"
11114      else
11115       if test "$host_cpu" = ia64; then
11116         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11117         allow_undefined_flag_CXX="-z nodefs"
11118         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"
11119       else
11120         # Determine the default libpath from the value encoded in an empty executable.
11121         cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h.  */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h.  */
11127
11128 int
11129 main ()
11130 {
11131
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (ac_try="$ac_link"
11138 case "(($ac_try" in
11139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140   *) ac_try_echo=$ac_try;;
11141 esac
11142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11143 $as_echo "$ac_try_echo") >&5
11144   (eval "$ac_link") 2>conftest.er1
11145   ac_status=$?
11146   grep -v '^ *+' conftest.er1 >conftest.err
11147   rm -f conftest.er1
11148   cat conftest.err >&5
11149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); } && {
11151          test -z "$ac_cxx_werror_flag" ||
11152          test ! -s conftest.err
11153        } && test -s conftest$ac_exeext && {
11154          test "$cross_compiling" = yes ||
11155          $as_test_x conftest$ac_exeext
11156        }; then
11157
11158 lt_aix_libpath_sed='
11159     /Import File Strings/,/^$/ {
11160         /^0/ {
11161             s/^0  *\(.*\)$/\1/
11162             p
11163         }
11164     }'
11165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11166 # Check for a 64-bit object if we didn't find anything.
11167 if test -z "$aix_libpath"; then
11168   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11169 fi
11170 else
11171   $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174
11175 fi
11176
11177 rm -rf conftest.dSYM
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179       conftest$ac_exeext conftest.$ac_ext
11180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11181
11182         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11183         # Warning - without using the other run time loading flags,
11184         # -berok will link without error, but may produce a broken library.
11185         no_undefined_flag_CXX=' ${wl}-bernotok'
11186         allow_undefined_flag_CXX=' ${wl}-berok'
11187         # Exported symbols can be pulled into shared objects from archives
11188         whole_archive_flag_spec_CXX='$convenience'
11189         archive_cmds_need_lc_CXX=yes
11190         # This is similar to how AIX traditionally builds its shared libraries.
11191         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'
11192       fi
11193     fi
11194     ;;
11195
11196   beos*)
11197     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11198       allow_undefined_flag_CXX=unsupported
11199       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11200       # support --undefined.  This deserves some investigation.  FIXME
11201       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11202     else
11203       ld_shlibs_CXX=no
11204     fi
11205     ;;
11206
11207   chorus*)
11208     case $cc_basename in
11209       *)
11210         # FIXME: insert proper C++ library support
11211         ld_shlibs_CXX=no
11212         ;;
11213     esac
11214     ;;
11215
11216   cygwin* | mingw* | pw32*)
11217     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11218     # as there is no search path for DLLs.
11219     hardcode_libdir_flag_spec_CXX='-L$libdir'
11220     allow_undefined_flag_CXX=unsupported
11221     always_export_symbols_CXX=no
11222     enable_shared_with_static_runtimes_CXX=yes
11223
11224     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11225       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'
11226       # If the export-symbols file already is a .def file (1st line
11227       # is EXPORTS), use it as is; otherwise, prepend...
11228       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11229         cp $export_symbols $output_objdir/$soname.def;
11230       else
11231         echo EXPORTS > $output_objdir/$soname.def;
11232         cat $export_symbols >> $output_objdir/$soname.def;
11233       fi~
11234       $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'
11235     else
11236       ld_shlibs_CXX=no
11237     fi
11238   ;;
11239       darwin* | rhapsody*)
11240       archive_cmds_need_lc_CXX=no
11241       hardcode_direct_CXX=no
11242       hardcode_automatic_CXX=yes
11243       hardcode_shlibpath_var_CXX=unsupported
11244       whole_archive_flag_spec_CXX=''
11245       link_all_deplibs_CXX=yes
11246       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11247       if test "$GXX" = yes ; then
11248       output_verbose_link_cmd='echo'
11249       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}"
11250       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11251       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}"
11252       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}"
11253       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11254         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}"
11255         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}"
11256       fi
11257       else
11258       case $cc_basename in
11259         xlc*)
11260          output_verbose_link_cmd='echo'
11261           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'
11262           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11263           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11264           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}'
11265           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}'
11266           ;;
11267        *)
11268          ld_shlibs_CXX=no
11269           ;;
11270       esac
11271       fi
11272         ;;
11273
11274   dgux*)
11275     case $cc_basename in
11276       ec++*)
11277         # FIXME: insert proper C++ library support
11278         ld_shlibs_CXX=no
11279         ;;
11280       ghcx*)
11281         # Green Hills C++ Compiler
11282         # FIXME: insert proper C++ library support
11283         ld_shlibs_CXX=no
11284         ;;
11285       *)
11286         # FIXME: insert proper C++ library support
11287         ld_shlibs_CXX=no
11288         ;;
11289     esac
11290     ;;
11291   freebsd[12]*)
11292     # C++ shared libraries reported to be fairly broken before switch to ELF
11293     ld_shlibs_CXX=no
11294     ;;
11295   freebsd-elf*)
11296     archive_cmds_need_lc_CXX=no
11297     ;;
11298   freebsd* | dragonfly*)
11299     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11300     # conventions
11301     ld_shlibs_CXX=yes
11302     ;;
11303   gnu*)
11304     ;;
11305   hpux9*)
11306     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11307     hardcode_libdir_separator_CXX=:
11308     export_dynamic_flag_spec_CXX='${wl}-E'
11309     hardcode_direct_CXX=yes
11310     hardcode_minus_L_CXX=yes # Not in the search PATH,
11311                                 # but as the default
11312                                 # location of the library.
11313
11314     case $cc_basename in
11315     CC*)
11316       # FIXME: insert proper C++ library support
11317       ld_shlibs_CXX=no
11318       ;;
11319     aCC*)
11320       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'
11321       # Commands to make compiler produce verbose output that lists
11322       # what "hidden" libraries, object files and flags are used when
11323       # linking a shared library.
11324       #
11325       # There doesn't appear to be a way to prevent this compiler from
11326       # explicitly linking system object files so we need to strip them
11327       # from the output so that they don't get included in the library
11328       # dependencies.
11329       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'
11330       ;;
11331     *)
11332       if test "$GXX" = yes; then
11333         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'
11334       else
11335         # FIXME: insert proper C++ library support
11336         ld_shlibs_CXX=no
11337       fi
11338       ;;
11339     esac
11340     ;;
11341   hpux10*|hpux11*)
11342     if test $with_gnu_ld = no; then
11343       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11344       hardcode_libdir_separator_CXX=:
11345
11346       case $host_cpu in
11347       hppa*64*|ia64*) ;;
11348       *)
11349         export_dynamic_flag_spec_CXX='${wl}-E'
11350         ;;
11351       esac
11352     fi
11353     case $host_cpu in
11354     hppa*64*|ia64*)
11355       hardcode_direct_CXX=no
11356       hardcode_shlibpath_var_CXX=no
11357       ;;
11358     *)
11359       hardcode_direct_CXX=yes
11360       hardcode_minus_L_CXX=yes # Not in the search PATH,
11361                                               # but as the default
11362                                               # location of the library.
11363       ;;
11364     esac
11365
11366     case $cc_basename in
11367       CC*)
11368         # FIXME: insert proper C++ library support
11369         ld_shlibs_CXX=no
11370         ;;
11371       aCC*)
11372         case $host_cpu in
11373         hppa*64*)
11374           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11375           ;;
11376         ia64*)
11377           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11378           ;;
11379         *)
11380           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11381           ;;
11382         esac
11383         # Commands to make compiler produce verbose output that lists
11384         # what "hidden" libraries, object files and flags are used when
11385         # linking a shared library.
11386         #
11387         # There doesn't appear to be a way to prevent this compiler from
11388         # explicitly linking system object files so we need to strip them
11389         # from the output so that they don't get included in the library
11390         # dependencies.
11391         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'
11392         ;;
11393       *)
11394         if test "$GXX" = yes; then
11395           if test $with_gnu_ld = no; then
11396             case $host_cpu in
11397             hppa*64*)
11398               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11399               ;;
11400             ia64*)
11401               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11402               ;;
11403             *)
11404               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'
11405               ;;
11406             esac
11407           fi
11408         else
11409           # FIXME: insert proper C++ library support
11410           ld_shlibs_CXX=no
11411         fi
11412         ;;
11413     esac
11414     ;;
11415   interix[3-9]*)
11416     hardcode_direct_CXX=no
11417     hardcode_shlibpath_var_CXX=no
11418     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11419     export_dynamic_flag_spec_CXX='${wl}-E'
11420     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11421     # Instead, shared libraries are loaded at an image base (0x10000000 by
11422     # default) and relocated if they conflict, which is a slow very memory
11423     # consuming and fragmenting process.  To avoid this, we pick a random,
11424     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11425     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11426     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'
11427     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'
11428     ;;
11429   irix5* | irix6*)
11430     case $cc_basename in
11431       CC*)
11432         # SGI C++
11433         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'
11434
11435         # Archives containing C++ object files must be created using
11436         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11437         # necessary to make sure instantiated templates are included
11438         # in the archive.
11439         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11440         ;;
11441       *)
11442         if test "$GXX" = yes; then
11443           if test "$with_gnu_ld" = no; then
11444             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'
11445           else
11446             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'
11447           fi
11448         fi
11449         link_all_deplibs_CXX=yes
11450         ;;
11451     esac
11452     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11453     hardcode_libdir_separator_CXX=:
11454     ;;
11455   linux* | k*bsd*-gnu)
11456     case $cc_basename in
11457       KCC*)
11458         # Kuck and Associates, Inc. (KAI) C++ Compiler
11459
11460         # KCC will only create a shared library if the output file
11461         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11462         # to its proper name (with version) after linking.
11463         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'
11464         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'
11465         # Commands to make compiler produce verbose output that lists
11466         # what "hidden" libraries, object files and flags are used when
11467         # linking a shared library.
11468         #
11469         # There doesn't appear to be a way to prevent this compiler from
11470         # explicitly linking system object files so we need to strip them
11471         # from the output so that they don't get included in the library
11472         # dependencies.
11473         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'
11474
11475         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11476         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11477
11478         # Archives containing C++ object files must be created using
11479         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11480         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11481         ;;
11482       icpc*)
11483         # Intel C++
11484         with_gnu_ld=yes
11485         # version 8.0 and above of icpc choke on multiply defined symbols
11486         # if we add $predep_objects and $postdep_objects, however 7.1 and
11487         # earlier do not add the objects themselves.
11488         case `$CC -V 2>&1` in
11489         *"Version 7."*)
11490           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11491           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'
11492           ;;
11493         *)  # Version 8.0 or newer
11494           tmp_idyn=
11495           case $host_cpu in
11496             ia64*) tmp_idyn=' -i_dynamic';;
11497           esac
11498           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11499           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'
11500           ;;
11501         esac
11502         archive_cmds_need_lc_CXX=no
11503         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11504         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11505         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11506         ;;
11507       pgCC* | pgcpp*)
11508         # Portland Group C++ compiler
11509         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11510         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'
11511
11512         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11513         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11514         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'
11515         ;;
11516       cxx*)
11517         # Compaq C++
11518         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11519         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'
11520
11521         runpath_var=LD_RUN_PATH
11522         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11523         hardcode_libdir_separator_CXX=:
11524
11525         # Commands to make compiler produce verbose output that lists
11526         # what "hidden" libraries, object files and flags are used when
11527         # linking a shared library.
11528         #
11529         # There doesn't appear to be a way to prevent this compiler from
11530         # explicitly linking system object files so we need to strip them
11531         # from the output so that they don't get included in the library
11532         # dependencies.
11533         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'
11534         ;;
11535       *)
11536         case `$CC -V 2>&1 | sed 5q` in
11537         *Sun\ C*)
11538           # Sun C++ 5.9
11539           no_undefined_flag_CXX=' -zdefs'
11540           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11541           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'
11542           hardcode_libdir_flag_spec_CXX='-R$libdir'
11543           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'
11544
11545           # Not sure whether something based on
11546           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11547           # would be better.
11548           output_verbose_link_cmd='echo'
11549
11550           # Archives containing C++ object files must be created using
11551           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11552           # necessary to make sure instantiated templates are included
11553           # in the archive.
11554           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11555           ;;
11556         esac
11557         ;;
11558     esac
11559     ;;
11560   lynxos*)
11561     # FIXME: insert proper C++ library support
11562     ld_shlibs_CXX=no
11563     ;;
11564   m88k*)
11565     # FIXME: insert proper C++ library support
11566     ld_shlibs_CXX=no
11567     ;;
11568   mvs*)
11569     case $cc_basename in
11570       cxx*)
11571         # FIXME: insert proper C++ library support
11572         ld_shlibs_CXX=no
11573         ;;
11574       *)
11575         # FIXME: insert proper C++ library support
11576         ld_shlibs_CXX=no
11577         ;;
11578     esac
11579     ;;
11580   netbsd*)
11581     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11582       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11583       wlarc=
11584       hardcode_libdir_flag_spec_CXX='-R$libdir'
11585       hardcode_direct_CXX=yes
11586       hardcode_shlibpath_var_CXX=no
11587     fi
11588     # Workaround some broken pre-1.5 toolchains
11589     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11590     ;;
11591   openbsd2*)
11592     # C++ shared libraries are fairly broken
11593     ld_shlibs_CXX=no
11594     ;;
11595   openbsd*)
11596     if test -f /usr/libexec/ld.so; then
11597       hardcode_direct_CXX=yes
11598       hardcode_shlibpath_var_CXX=no
11599       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11600       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11601       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11602         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11603         export_dynamic_flag_spec_CXX='${wl}-E'
11604         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11605       fi
11606       output_verbose_link_cmd='echo'
11607     else
11608       ld_shlibs_CXX=no
11609     fi
11610     ;;
11611   osf3*)
11612     case $cc_basename in
11613       KCC*)
11614         # Kuck and Associates, Inc. (KAI) C++ Compiler
11615
11616         # KCC will only create a shared library if the output file
11617         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11618         # to its proper name (with version) after linking.
11619         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'
11620
11621         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11622         hardcode_libdir_separator_CXX=:
11623
11624         # Archives containing C++ object files must be created using
11625         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11626         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11627
11628         ;;
11629       RCC*)
11630         # Rational C++ 2.4.1
11631         # FIXME: insert proper C++ library support
11632         ld_shlibs_CXX=no
11633         ;;
11634       cxx*)
11635         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11636         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'
11637
11638         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11639         hardcode_libdir_separator_CXX=:
11640
11641         # Commands to make compiler produce verbose output that lists
11642         # what "hidden" libraries, object files and flags are used when
11643         # linking a shared library.
11644         #
11645         # There doesn't appear to be a way to prevent this compiler from
11646         # explicitly linking system object files so we need to strip them
11647         # from the output so that they don't get included in the library
11648         # dependencies.
11649         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'
11650         ;;
11651       *)
11652         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11653           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11654           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'
11655
11656           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11657           hardcode_libdir_separator_CXX=:
11658
11659           # Commands to make compiler produce verbose output that lists
11660           # what "hidden" libraries, object files and flags are used when
11661           # linking a shared library.
11662           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11663
11664         else
11665           # FIXME: insert proper C++ library support
11666           ld_shlibs_CXX=no
11667         fi
11668         ;;
11669     esac
11670     ;;
11671   osf4* | osf5*)
11672     case $cc_basename in
11673       KCC*)
11674         # Kuck and Associates, Inc. (KAI) C++ Compiler
11675
11676         # KCC will only create a shared library if the output file
11677         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11678         # to its proper name (with version) after linking.
11679         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'
11680
11681         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11682         hardcode_libdir_separator_CXX=:
11683
11684         # Archives containing C++ object files must be created using
11685         # the KAI C++ compiler.
11686         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11687         ;;
11688       RCC*)
11689         # Rational C++ 2.4.1
11690         # FIXME: insert proper C++ library support
11691         ld_shlibs_CXX=no
11692         ;;
11693       cxx*)
11694         allow_undefined_flag_CXX=' -expect_unresolved \*'
11695         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'
11696         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11697           echo "-hidden">> $lib.exp~
11698           $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~
11699           $rm $lib.exp'
11700
11701         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11702         hardcode_libdir_separator_CXX=:
11703
11704         # Commands to make compiler produce verbose output that lists
11705         # what "hidden" libraries, object files and flags are used when
11706         # linking a shared library.
11707         #
11708         # There doesn't appear to be a way to prevent this compiler from
11709         # explicitly linking system object files so we need to strip them
11710         # from the output so that they don't get included in the library
11711         # dependencies.
11712         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'
11713         ;;
11714       *)
11715         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11716           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11717          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'
11718
11719           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11720           hardcode_libdir_separator_CXX=:
11721
11722           # Commands to make compiler produce verbose output that lists
11723           # what "hidden" libraries, object files and flags are used when
11724           # linking a shared library.
11725           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11726
11727         else
11728           # FIXME: insert proper C++ library support
11729           ld_shlibs_CXX=no
11730         fi
11731         ;;
11732     esac
11733     ;;
11734   psos*)
11735     # FIXME: insert proper C++ library support
11736     ld_shlibs_CXX=no
11737     ;;
11738   sunos4*)
11739     case $cc_basename in
11740       CC*)
11741         # Sun C++ 4.x
11742         # FIXME: insert proper C++ library support
11743         ld_shlibs_CXX=no
11744         ;;
11745       lcc*)
11746         # Lucid
11747         # FIXME: insert proper C++ library support
11748         ld_shlibs_CXX=no
11749         ;;
11750       *)
11751         # FIXME: insert proper C++ library support
11752         ld_shlibs_CXX=no
11753         ;;
11754     esac
11755     ;;
11756   solaris*)
11757     case $cc_basename in
11758       CC*)
11759         # Sun C++ 4.2, 5.x and Centerline C++
11760         archive_cmds_need_lc_CXX=yes
11761         no_undefined_flag_CXX=' -zdefs'
11762         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11763         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11764         $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'
11765
11766         hardcode_libdir_flag_spec_CXX='-R$libdir'
11767         hardcode_shlibpath_var_CXX=no
11768         case $host_os in
11769           solaris2.[0-5] | solaris2.[0-5].*) ;;
11770           *)
11771             # The compiler driver will combine and reorder linker options,
11772             # but understands `-z linker_flag'.
11773             # Supported since Solaris 2.6 (maybe 2.5.1?)
11774             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11775             ;;
11776         esac
11777         link_all_deplibs_CXX=yes
11778
11779         output_verbose_link_cmd='echo'
11780
11781         # Archives containing C++ object files must be created using
11782         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11783         # necessary to make sure instantiated templates are included
11784         # in the archive.
11785         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11786         ;;
11787       gcx*)
11788         # Green Hills C++ Compiler
11789         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11790
11791         # The C++ compiler must be used to create the archive.
11792         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11793         ;;
11794       *)
11795         # GNU C++ compiler with Solaris linker
11796         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11797           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11798           if $CC --version | grep -v '^2\.7' > /dev/null; then
11799             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11800             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11801                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11802
11803             # Commands to make compiler produce verbose output that lists
11804             # what "hidden" libraries, object files and flags are used when
11805             # linking a shared library.
11806             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11807           else
11808             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11809             # platform.
11810             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11811             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11812                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11813
11814             # Commands to make compiler produce verbose output that lists
11815             # what "hidden" libraries, object files and flags are used when
11816             # linking a shared library.
11817             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11818           fi
11819
11820           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11821           case $host_os in
11822           solaris2.[0-5] | solaris2.[0-5].*) ;;
11823           *)
11824             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11825             ;;
11826           esac
11827         fi
11828         ;;
11829     esac
11830     ;;
11831   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11832     no_undefined_flag_CXX='${wl}-z,text'
11833     archive_cmds_need_lc_CXX=no
11834     hardcode_shlibpath_var_CXX=no
11835     runpath_var='LD_RUN_PATH'
11836
11837     case $cc_basename in
11838       CC*)
11839         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11840         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11841         ;;
11842       *)
11843         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11845         ;;
11846     esac
11847     ;;
11848   sysv5* | sco3.2v5* | sco5v6*)
11849     # Note: We can NOT use -z defs as we might desire, because we do not
11850     # link with -lc, and that would cause any symbols used from libc to
11851     # always be unresolved, which means just about no library would
11852     # ever link correctly.  If we're not using GNU ld we use -z text
11853     # though, which does catch some bad symbols but isn't as heavy-handed
11854     # as -z defs.
11855     # For security reasons, it is highly recommended that you always
11856     # use absolute paths for naming shared libraries, and exclude the
11857     # DT_RUNPATH tag from executables and libraries.  But doing so
11858     # requires that you compile everything twice, which is a pain.
11859     # So that behaviour is only enabled if SCOABSPATH is set to a
11860     # non-empty value in the environment.  Most likely only useful for
11861     # creating official distributions of packages.
11862     # This is a hack until libtool officially supports absolute path
11863     # names for shared libraries.
11864     no_undefined_flag_CXX='${wl}-z,text'
11865     allow_undefined_flag_CXX='${wl}-z,nodefs'
11866     archive_cmds_need_lc_CXX=no
11867     hardcode_shlibpath_var_CXX=no
11868     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11869     hardcode_libdir_separator_CXX=':'
11870     link_all_deplibs_CXX=yes
11871     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11872     runpath_var='LD_RUN_PATH'
11873
11874     case $cc_basename in
11875       CC*)
11876         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11877         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11878         ;;
11879       *)
11880         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11881         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11882         ;;
11883     esac
11884     ;;
11885   tandem*)
11886     case $cc_basename in
11887       NCC*)
11888         # NonStop-UX NCC 3.20
11889         # FIXME: insert proper C++ library support
11890         ld_shlibs_CXX=no
11891         ;;
11892       *)
11893         # FIXME: insert proper C++ library support
11894         ld_shlibs_CXX=no
11895         ;;
11896     esac
11897     ;;
11898   vxworks*)
11899     # FIXME: insert proper C++ library support
11900     ld_shlibs_CXX=no
11901     ;;
11902   *)
11903     # FIXME: insert proper C++ library support
11904     ld_shlibs_CXX=no
11905     ;;
11906 esac
11907 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11908 $as_echo "$ld_shlibs_CXX" >&6; }
11909 test "$ld_shlibs_CXX" = no && can_build_shared=no
11910
11911 GCC_CXX="$GXX"
11912 LD_CXX="$LD"
11913
11914 ## CAVEAT EMPTOR:
11915 ## There is no encapsulation within the following macros, do not change
11916 ## the running order or otherwise move them around unless you know exactly
11917 ## what you are doing...
11918 cat > conftest.$ac_ext <<EOF
11919 class Foo
11920 {
11921 public:
11922   Foo (void) { a = 0; }
11923 private:
11924   int a;
11925 };
11926 EOF
11927
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929   (eval $ac_compile) 2>&5
11930   ac_status=$?
11931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; then
11933   # Parse the compiler output and extract the necessary
11934   # objects, libraries and library flags.
11935
11936   # Sentinel used to keep track of whether or not we are before
11937   # the conftest object file.
11938   pre_test_object_deps_done=no
11939
11940   # The `*' in the case matches for architectures that use `case' in
11941   # $output_verbose_cmd can trigger glob expansion during the loop
11942   # eval without this substitution.
11943   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11944
11945   for p in `eval $output_verbose_link_cmd`; do
11946     case $p in
11947
11948     -L* | -R* | -l*)
11949        # Some compilers place space between "-{L,R}" and the path.
11950        # Remove the space.
11951        if test $p = "-L" \
11952           || test $p = "-R"; then
11953          prev=$p
11954          continue
11955        else
11956          prev=
11957        fi
11958
11959        if test "$pre_test_object_deps_done" = no; then
11960          case $p in
11961          -L* | -R*)
11962            # Internal compiler library paths should come after those
11963            # provided the user.  The postdeps already come after the
11964            # user supplied libs so there is no need to process them.
11965            if test -z "$compiler_lib_search_path_CXX"; then
11966              compiler_lib_search_path_CXX="${prev}${p}"
11967            else
11968              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11969            fi
11970            ;;
11971          # The "-l" case would never come before the object being
11972          # linked, so don't bother handling this case.
11973          esac
11974        else
11975          if test -z "$postdeps_CXX"; then
11976            postdeps_CXX="${prev}${p}"
11977          else
11978            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11979          fi
11980        fi
11981        ;;
11982
11983     *.$objext)
11984        # This assumes that the test object file only shows up
11985        # once in the compiler output.
11986        if test "$p" = "conftest.$objext"; then
11987          pre_test_object_deps_done=yes
11988          continue
11989        fi
11990
11991        if test "$pre_test_object_deps_done" = no; then
11992          if test -z "$predep_objects_CXX"; then
11993            predep_objects_CXX="$p"
11994          else
11995            predep_objects_CXX="$predep_objects_CXX $p"
11996          fi
11997        else
11998          if test -z "$postdep_objects_CXX"; then
11999            postdep_objects_CXX="$p"
12000          else
12001            postdep_objects_CXX="$postdep_objects_CXX $p"
12002          fi
12003        fi
12004        ;;
12005
12006     *) ;; # Ignore the rest.
12007
12008     esac
12009   done
12010
12011   # Clean up.
12012   rm -f a.out a.exe
12013 else
12014   echo "libtool.m4: error: problem compiling CXX test program"
12015 fi
12016
12017 $rm -f confest.$objext
12018
12019 compiler_lib_search_dirs_CXX=
12020 if test -n "$compiler_lib_search_path_CXX"; then
12021   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12022 fi
12023
12024 # PORTME: override above test on systems where it is broken
12025 case $host_os in
12026 interix[3-9]*)
12027   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12028   # hack all around it, let's just trust "g++" to DTRT.
12029   predep_objects_CXX=
12030   postdep_objects_CXX=
12031   postdeps_CXX=
12032   ;;
12033
12034 linux*)
12035   case `$CC -V 2>&1 | sed 5q` in
12036   *Sun\ C*)
12037     # Sun C++ 5.9
12038     #
12039     # The more standards-conforming stlport4 library is
12040     # incompatible with the Cstd library. Avoid specifying
12041     # it if it's in CXXFLAGS. Ignore libCrun as
12042     # -library=stlport4 depends on it.
12043     case " $CXX $CXXFLAGS " in
12044     *" -library=stlport4 "*)
12045       solaris_use_stlport4=yes
12046       ;;
12047     esac
12048     if test "$solaris_use_stlport4" != yes; then
12049       postdeps_CXX='-library=Cstd -library=Crun'
12050     fi
12051     ;;
12052   esac
12053   ;;
12054
12055 solaris*)
12056   case $cc_basename in
12057   CC*)
12058     # The more standards-conforming stlport4 library is
12059     # incompatible with the Cstd library. Avoid specifying
12060     # it if it's in CXXFLAGS. Ignore libCrun as
12061     # -library=stlport4 depends on it.
12062     case " $CXX $CXXFLAGS " in
12063     *" -library=stlport4 "*)
12064       solaris_use_stlport4=yes
12065       ;;
12066     esac
12067
12068     # Adding this requires a known-good setup of shared libraries for
12069     # Sun compiler versions before 5.6, else PIC objects from an old
12070     # archive will be linked into the output, leading to subtle bugs.
12071     if test "$solaris_use_stlport4" != yes; then
12072       postdeps_CXX='-library=Cstd -library=Crun'
12073     fi
12074     ;;
12075   esac
12076   ;;
12077 esac
12078
12079 case " $postdeps_CXX " in
12080 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12081 esac
12082
12083 lt_prog_compiler_wl_CXX=
12084 lt_prog_compiler_pic_CXX=
12085 lt_prog_compiler_static_CXX=
12086
12087 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12088 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12089
12090   # C++ specific cases for pic, static, wl, etc.
12091   if test "$GXX" = yes; then
12092     lt_prog_compiler_wl_CXX='-Wl,'
12093     lt_prog_compiler_static_CXX='-static'
12094
12095     case $host_os in
12096     aix*)
12097       # All AIX code is PIC.
12098       if test "$host_cpu" = ia64; then
12099         # AIX 5 now supports IA64 processor
12100         lt_prog_compiler_static_CXX='-Bstatic'
12101       fi
12102       ;;
12103     amigaos*)
12104       # FIXME: we need at least 68020 code to build shared libraries, but
12105       # adding the `-m68020' flag to GCC prevents building anything better,
12106       # like `-m68040'.
12107       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12108       ;;
12109     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12110       # PIC is the default for these OSes.
12111       ;;
12112     mingw* | cygwin* | os2* | pw32*)
12113       # This hack is so that the source file can tell whether it is being
12114       # built for inclusion in a dll (and should export symbols for example).
12115       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12116       # (--disable-auto-import) libraries
12117       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12118       ;;
12119     darwin* | rhapsody*)
12120       # PIC is the default on this platform
12121       # Common symbols not allowed in MH_DYLIB files
12122       lt_prog_compiler_pic_CXX='-fno-common'
12123       ;;
12124     *djgpp*)
12125       # DJGPP does not support shared libraries at all
12126       lt_prog_compiler_pic_CXX=
12127       ;;
12128     interix[3-9]*)
12129       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12130       # Instead, we relocate shared libraries at runtime.
12131       ;;
12132     sysv4*MP*)
12133       if test -d /usr/nec; then
12134         lt_prog_compiler_pic_CXX=-Kconform_pic
12135       fi
12136       ;;
12137     hpux*)
12138       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12139       # not for PA HP-UX.
12140       case $host_cpu in
12141       hppa*64*|ia64*)
12142         ;;
12143       *)
12144         lt_prog_compiler_pic_CXX='-fPIC'
12145         ;;
12146       esac
12147       ;;
12148     *)
12149       lt_prog_compiler_pic_CXX='-fPIC'
12150       ;;
12151     esac
12152   else
12153     case $host_os in
12154       aix[4-9]*)
12155         # All AIX code is PIC.
12156         if test "$host_cpu" = ia64; then
12157           # AIX 5 now supports IA64 processor
12158           lt_prog_compiler_static_CXX='-Bstatic'
12159         else
12160           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12161         fi
12162         ;;
12163       chorus*)
12164         case $cc_basename in
12165         cxch68*)
12166           # Green Hills C++ Compiler
12167           # _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"
12168           ;;
12169         esac
12170         ;;
12171        darwin*)
12172          # PIC is the default on this platform
12173          # Common symbols not allowed in MH_DYLIB files
12174          case $cc_basename in
12175            xlc*)
12176            lt_prog_compiler_pic_CXX='-qnocommon'
12177            lt_prog_compiler_wl_CXX='-Wl,'
12178            ;;
12179          esac
12180        ;;
12181       dgux*)
12182         case $cc_basename in
12183           ec++*)
12184             lt_prog_compiler_pic_CXX='-KPIC'
12185             ;;
12186           ghcx*)
12187             # Green Hills C++ Compiler
12188             lt_prog_compiler_pic_CXX='-pic'
12189             ;;
12190           *)
12191             ;;
12192         esac
12193         ;;
12194       freebsd* | dragonfly*)
12195         # FreeBSD uses GNU C++
12196         ;;
12197       hpux9* | hpux10* | hpux11*)
12198         case $cc_basename in
12199           CC*)
12200             lt_prog_compiler_wl_CXX='-Wl,'
12201             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12202             if test "$host_cpu" != ia64; then
12203               lt_prog_compiler_pic_CXX='+Z'
12204             fi
12205             ;;
12206           aCC*)
12207             lt_prog_compiler_wl_CXX='-Wl,'
12208             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12209             case $host_cpu in
12210             hppa*64*|ia64*)
12211               # +Z the default
12212               ;;
12213             *)
12214               lt_prog_compiler_pic_CXX='+Z'
12215               ;;
12216             esac
12217             ;;
12218           *)
12219             ;;
12220         esac
12221         ;;
12222       interix*)
12223         # This is c89, which is MS Visual C++ (no shared libs)
12224         # Anyone wants to do a port?
12225         ;;
12226       irix5* | irix6* | nonstopux*)
12227         case $cc_basename in
12228           CC*)
12229             lt_prog_compiler_wl_CXX='-Wl,'
12230             lt_prog_compiler_static_CXX='-non_shared'
12231             # CC pic flag -KPIC is the default.
12232             ;;
12233           *)
12234             ;;
12235         esac
12236         ;;
12237       linux* | k*bsd*-gnu)
12238         case $cc_basename in
12239           KCC*)
12240             # KAI C++ Compiler
12241             lt_prog_compiler_wl_CXX='--backend -Wl,'
12242             lt_prog_compiler_pic_CXX='-fPIC'
12243             ;;
12244           icpc* | ecpc*)
12245             # Intel C++
12246             lt_prog_compiler_wl_CXX='-Wl,'
12247             lt_prog_compiler_pic_CXX='-KPIC'
12248             lt_prog_compiler_static_CXX='-static'
12249             ;;
12250           pgCC* | pgcpp*)
12251             # Portland Group C++ compiler.
12252             lt_prog_compiler_wl_CXX='-Wl,'
12253             lt_prog_compiler_pic_CXX='-fpic'
12254             lt_prog_compiler_static_CXX='-Bstatic'
12255             ;;
12256           cxx*)
12257             # Compaq C++
12258             # Make sure the PIC flag is empty.  It appears that all Alpha
12259             # Linux and Compaq Tru64 Unix objects are PIC.
12260             lt_prog_compiler_pic_CXX=
12261             lt_prog_compiler_static_CXX='-non_shared'
12262             ;;
12263           *)
12264             case `$CC -V 2>&1 | sed 5q` in
12265             *Sun\ C*)
12266               # Sun C++ 5.9
12267               lt_prog_compiler_pic_CXX='-KPIC'
12268               lt_prog_compiler_static_CXX='-Bstatic'
12269               lt_prog_compiler_wl_CXX='-Qoption ld '
12270               ;;
12271             esac
12272             ;;
12273         esac
12274         ;;
12275       lynxos*)
12276         ;;
12277       m88k*)
12278         ;;
12279       mvs*)
12280         case $cc_basename in
12281           cxx*)
12282             lt_prog_compiler_pic_CXX='-W c,exportall'
12283             ;;
12284           *)
12285             ;;
12286         esac
12287         ;;
12288       netbsd*)
12289         ;;
12290       osf3* | osf4* | osf5*)
12291         case $cc_basename in
12292           KCC*)
12293             lt_prog_compiler_wl_CXX='--backend -Wl,'
12294             ;;
12295           RCC*)
12296             # Rational C++ 2.4.1
12297             lt_prog_compiler_pic_CXX='-pic'
12298             ;;
12299           cxx*)
12300             # Digital/Compaq C++
12301             lt_prog_compiler_wl_CXX='-Wl,'
12302             # Make sure the PIC flag is empty.  It appears that all Alpha
12303             # Linux and Compaq Tru64 Unix objects are PIC.
12304             lt_prog_compiler_pic_CXX=
12305             lt_prog_compiler_static_CXX='-non_shared'
12306             ;;
12307           *)
12308             ;;
12309         esac
12310         ;;
12311       psos*)
12312         ;;
12313       solaris*)
12314         case $cc_basename in
12315           CC*)
12316             # Sun C++ 4.2, 5.x and Centerline C++
12317             lt_prog_compiler_pic_CXX='-KPIC'
12318             lt_prog_compiler_static_CXX='-Bstatic'
12319             lt_prog_compiler_wl_CXX='-Qoption ld '
12320             ;;
12321           gcx*)
12322             # Green Hills C++ Compiler
12323             lt_prog_compiler_pic_CXX='-PIC'
12324             ;;
12325           *)
12326             ;;
12327         esac
12328         ;;
12329       sunos4*)
12330         case $cc_basename in
12331           CC*)
12332             # Sun C++ 4.x
12333             lt_prog_compiler_pic_CXX='-pic'
12334             lt_prog_compiler_static_CXX='-Bstatic'
12335             ;;
12336           lcc*)
12337             # Lucid
12338             lt_prog_compiler_pic_CXX='-pic'
12339             ;;
12340           *)
12341             ;;
12342         esac
12343         ;;
12344       tandem*)
12345         case $cc_basename in
12346           NCC*)
12347             # NonStop-UX NCC 3.20
12348             lt_prog_compiler_pic_CXX='-KPIC'
12349             ;;
12350           *)
12351             ;;
12352         esac
12353         ;;
12354       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12355         case $cc_basename in
12356           CC*)
12357             lt_prog_compiler_wl_CXX='-Wl,'
12358             lt_prog_compiler_pic_CXX='-KPIC'
12359             lt_prog_compiler_static_CXX='-Bstatic'
12360             ;;
12361         esac
12362         ;;
12363       vxworks*)
12364         ;;
12365       *)
12366         lt_prog_compiler_can_build_shared_CXX=no
12367         ;;
12368     esac
12369   fi
12370
12371 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12372 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12373
12374 #
12375 # Check to make sure the PIC flag actually works.
12376 #
12377 if test -n "$lt_prog_compiler_pic_CXX"; then
12378
12379 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12380 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12381 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12382   $as_echo_n "(cached) " >&6
12383 else
12384   lt_cv_prog_compiler_pic_works_CXX=no
12385   ac_outfile=conftest.$ac_objext
12386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12387    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12388    # Insert the option either (1) after the last *FLAGS variable, or
12389    # (2) before a word containing "conftest.", or (3) at the end.
12390    # Note that $ac_compile itself does not contain backslashes and begins
12391    # with a dollar sign (not a hyphen), so the echo should work correctly.
12392    # The option is referenced via a variable to avoid confusing sed.
12393    lt_compile=`echo "$ac_compile" | $SED \
12394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12396    -e 's:$: $lt_compiler_flag:'`
12397    (eval echo "\"\$as_me:12397: $lt_compile\"" >&5)
12398    (eval "$lt_compile" 2>conftest.err)
12399    ac_status=$?
12400    cat conftest.err >&5
12401    echo "$as_me:12401: \$? = $ac_status" >&5
12402    if (exit $ac_status) && test -s "$ac_outfile"; then
12403      # The compiler can only warn and ignore the option if not recognized
12404      # So say no if there are warnings other than the usual output.
12405      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12406      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12407      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12408        lt_cv_prog_compiler_pic_works_CXX=yes
12409      fi
12410    fi
12411    $rm conftest*
12412
12413 fi
12414 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12415 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12416
12417 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12418     case $lt_prog_compiler_pic_CXX in
12419      "" | " "*) ;;
12420      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12421      esac
12422 else
12423     lt_prog_compiler_pic_CXX=
12424      lt_prog_compiler_can_build_shared_CXX=no
12425 fi
12426
12427 fi
12428 case $host_os in
12429   # For platforms which do not support PIC, -DPIC is meaningless:
12430   *djgpp*)
12431     lt_prog_compiler_pic_CXX=
12432     ;;
12433   *)
12434     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12435     ;;
12436 esac
12437
12438 #
12439 # Check to make sure the static flag actually works.
12440 #
12441 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12442 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12443 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12444 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12445   $as_echo_n "(cached) " >&6
12446 else
12447   lt_cv_prog_compiler_static_works_CXX=no
12448    save_LDFLAGS="$LDFLAGS"
12449    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12450    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12451    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12452      # The linker can only warn and ignore the option if not recognized
12453      # So say no if there are warnings
12454      if test -s conftest.err; then
12455        # Append any errors to the config.log.
12456        cat conftest.err 1>&5
12457        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12458        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12459        if diff conftest.exp conftest.er2 >/dev/null; then
12460          lt_cv_prog_compiler_static_works_CXX=yes
12461        fi
12462      else
12463        lt_cv_prog_compiler_static_works_CXX=yes
12464      fi
12465    fi
12466    $rm -r conftest*
12467    LDFLAGS="$save_LDFLAGS"
12468
12469 fi
12470 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12471 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12472
12473 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12474     :
12475 else
12476     lt_prog_compiler_static_CXX=
12477 fi
12478
12479
12480 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12482 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12483   $as_echo_n "(cached) " >&6
12484 else
12485   lt_cv_prog_compiler_c_o_CXX=no
12486    $rm -r conftest 2>/dev/null
12487    mkdir conftest
12488    cd conftest
12489    mkdir out
12490    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12491
12492    lt_compiler_flag="-o out/conftest2.$ac_objext"
12493    # Insert the option either (1) after the last *FLAGS variable, or
12494    # (2) before a word containing "conftest.", or (3) at the end.
12495    # Note that $ac_compile itself does not contain backslashes and begins
12496    # with a dollar sign (not a hyphen), so the echo should work correctly.
12497    lt_compile=`echo "$ac_compile" | $SED \
12498    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12500    -e 's:$: $lt_compiler_flag:'`
12501    (eval echo "\"\$as_me:12501: $lt_compile\"" >&5)
12502    (eval "$lt_compile" 2>out/conftest.err)
12503    ac_status=$?
12504    cat out/conftest.err >&5
12505    echo "$as_me:12505: \$? = $ac_status" >&5
12506    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12507    then
12508      # The compiler can only warn and ignore the option if not recognized
12509      # So say no if there are warnings
12510      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12511      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12512      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12513        lt_cv_prog_compiler_c_o_CXX=yes
12514      fi
12515    fi
12516    chmod u+w . 2>&5
12517    $rm conftest*
12518    # SGI C++ compiler will create directory out/ii_files/ for
12519    # template instantiation
12520    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12521    $rm out/* && rmdir out
12522    cd ..
12523    rmdir conftest
12524    $rm conftest*
12525
12526 fi
12527 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12528 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12529
12530
12531 hard_links="nottested"
12532 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12533   # do not overwrite the value of need_locks provided by the user
12534   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12535 $as_echo_n "checking if we can lock with hard links... " >&6; }
12536   hard_links=yes
12537   $rm conftest*
12538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12539   touch conftest.a
12540   ln conftest.a conftest.b 2>&5 || hard_links=no
12541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12542   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12543 $as_echo "$hard_links" >&6; }
12544   if test "$hard_links" = no; then
12545     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12546 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12547     need_locks=warn
12548   fi
12549 else
12550   need_locks=no
12551 fi
12552
12553 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12554 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12555
12556   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12557   case $host_os in
12558   aix[4-9]*)
12559     # If we're using GNU nm, then we don't want the "-C" option.
12560     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12561     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12562       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'
12563     else
12564       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'
12565     fi
12566     ;;
12567   pw32*)
12568     export_symbols_cmds_CXX="$ltdll_cmds"
12569   ;;
12570   cygwin* | mingw*)
12571     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'
12572   ;;
12573   *)
12574     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12575   ;;
12576   esac
12577   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12578
12579 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12580 $as_echo "$ld_shlibs_CXX" >&6; }
12581 test "$ld_shlibs_CXX" = no && can_build_shared=no
12582
12583 #
12584 # Do we need to explicitly link libc?
12585 #
12586 case "x$archive_cmds_need_lc_CXX" in
12587 x|xyes)
12588   # Assume -lc should be added
12589   archive_cmds_need_lc_CXX=yes
12590
12591   if test "$enable_shared" = yes && test "$GCC" = yes; then
12592     case $archive_cmds_CXX in
12593     *'~'*)
12594       # FIXME: we may have to deal with multi-command sequences.
12595       ;;
12596     '$CC '*)
12597       # Test whether the compiler implicitly links with -lc since on some
12598       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12599       # to ld, don't add -lc before -lgcc.
12600       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12601 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12602       $rm conftest*
12603       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12604
12605       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606   (eval $ac_compile) 2>&5
12607   ac_status=$?
12608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); } 2>conftest.err; then
12610         soname=conftest
12611         lib=conftest
12612         libobjs=conftest.$ac_objext
12613         deplibs=
12614         wl=$lt_prog_compiler_wl_CXX
12615         pic_flag=$lt_prog_compiler_pic_CXX
12616         compiler_flags=-v
12617         linker_flags=-v
12618         verstring=
12619         output_objdir=.
12620         libname=conftest
12621         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12622         allow_undefined_flag_CXX=
12623         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12624   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12625   ac_status=$?
12626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }
12628         then
12629           archive_cmds_need_lc_CXX=no
12630         else
12631           archive_cmds_need_lc_CXX=yes
12632         fi
12633         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12634       else
12635         cat conftest.err 1>&5
12636       fi
12637       $rm conftest*
12638       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12639 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12640       ;;
12641     esac
12642   fi
12643   ;;
12644 esac
12645
12646 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12647 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12648 library_names_spec=
12649 libname_spec='lib$name'
12650 soname_spec=
12651 shrext_cmds=".so"
12652 postinstall_cmds=
12653 postuninstall_cmds=
12654 finish_cmds=
12655 finish_eval=
12656 shlibpath_var=
12657 shlibpath_overrides_runpath=unknown
12658 version_type=none
12659 dynamic_linker="$host_os ld.so"
12660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12661
12662 need_lib_prefix=unknown
12663 hardcode_into_libs=no
12664
12665 # when you set need_version to no, make sure it does not cause -set_version
12666 # flags to be left without arguments
12667 need_version=unknown
12668
12669 case $host_os in
12670 aix3*)
12671   version_type=linux
12672   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12673   shlibpath_var=LIBPATH
12674
12675   # AIX 3 has no versioning support, so we append a major version to the name.
12676   soname_spec='${libname}${release}${shared_ext}$major'
12677   ;;
12678
12679 aix[4-9]*)
12680   version_type=linux
12681   need_lib_prefix=no
12682   need_version=no
12683   hardcode_into_libs=yes
12684   if test "$host_cpu" = ia64; then
12685     # AIX 5 supports IA64
12686     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12687     shlibpath_var=LD_LIBRARY_PATH
12688   else
12689     # With GCC up to 2.95.x, collect2 would create an import file
12690     # for dependence libraries.  The import file would start with
12691     # the line `#! .'.  This would cause the generated library to
12692     # depend on `.', always an invalid library.  This was fixed in
12693     # development snapshots of GCC prior to 3.0.
12694     case $host_os in
12695       aix4 | aix4.[01] | aix4.[01].*)
12696       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12697            echo ' yes '
12698            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12699         :
12700       else
12701         can_build_shared=no
12702       fi
12703       ;;
12704     esac
12705     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12706     # soname into executable. Probably we can add versioning support to
12707     # collect2, so additional links can be useful in future.
12708     if test "$aix_use_runtimelinking" = yes; then
12709       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12710       # instead of lib<name>.a to let people know that these are not
12711       # typical AIX shared libraries.
12712       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713     else
12714       # We preserve .a as extension for shared libraries through AIX4.2
12715       # and later when we are not doing run time linking.
12716       library_names_spec='${libname}${release}.a $libname.a'
12717       soname_spec='${libname}${release}${shared_ext}$major'
12718     fi
12719     shlibpath_var=LIBPATH
12720   fi
12721   ;;
12722
12723 amigaos*)
12724   library_names_spec='$libname.ixlibrary $libname.a'
12725   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12726   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'
12727   ;;
12728
12729 beos*)
12730   library_names_spec='${libname}${shared_ext}'
12731   dynamic_linker="$host_os ld.so"
12732   shlibpath_var=LIBRARY_PATH
12733   ;;
12734
12735 bsdi[45]*)
12736   version_type=linux
12737   need_version=no
12738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739   soname_spec='${libname}${release}${shared_ext}$major'
12740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12741   shlibpath_var=LD_LIBRARY_PATH
12742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12744   # the default ld.so.conf also contains /usr/contrib/lib and
12745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12746   # libtool to hard-code these into programs
12747   ;;
12748
12749 cygwin* | mingw* | pw32*)
12750   version_type=windows
12751   shrext_cmds=".dll"
12752   need_version=no
12753   need_lib_prefix=no
12754
12755   case $GCC,$host_os in
12756   yes,cygwin* | yes,mingw* | yes,pw32*)
12757     library_names_spec='$libname.dll.a'
12758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12759     postinstall_cmds='base_file=`basename \${file}`~
12760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12761       dldir=$destdir/`dirname \$dlpath`~
12762       test -d \$dldir || mkdir -p \$dldir~
12763       $install_prog $dir/$dlname \$dldir/$dlname~
12764       chmod a+x \$dldir/$dlname'
12765     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12766       dlpath=$dir/\$dldll~
12767        $rm \$dlpath'
12768     shlibpath_overrides_runpath=yes
12769
12770     case $host_os in
12771     cygwin*)
12772       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12773       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12774       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12775       ;;
12776     mingw*)
12777       # MinGW DLLs use traditional 'lib' prefix
12778       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12779       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12780       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12781         # It is most probably a Windows format PATH printed by
12782         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12783         # path with ; separators, and with drive letters. We can handle the
12784         # drive letters (cygwin fileutils understands them), so leave them,
12785         # especially as we might pass files found there to a mingw objdump,
12786         # which wouldn't understand a cygwinified path. Ahh.
12787         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12788       else
12789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12790       fi
12791       ;;
12792     pw32*)
12793       # pw32 DLLs use 'pw' prefix rather than 'lib'
12794       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12795       ;;
12796     esac
12797     ;;
12798
12799   *)
12800     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12801     ;;
12802   esac
12803   dynamic_linker='Win32 ld.exe'
12804   # FIXME: first we should search . and the directory the executable is in
12805   shlibpath_var=PATH
12806   ;;
12807
12808 darwin* | rhapsody*)
12809   dynamic_linker="$host_os dyld"
12810   version_type=darwin
12811   need_lib_prefix=no
12812   need_version=no
12813   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12814   soname_spec='${libname}${release}${major}$shared_ext'
12815   shlibpath_overrides_runpath=yes
12816   shlibpath_var=DYLD_LIBRARY_PATH
12817   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12818
12819   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12820   ;;
12821
12822 dgux*)
12823   version_type=linux
12824   need_lib_prefix=no
12825   need_version=no
12826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12827   soname_spec='${libname}${release}${shared_ext}$major'
12828   shlibpath_var=LD_LIBRARY_PATH
12829   ;;
12830
12831 freebsd1*)
12832   dynamic_linker=no
12833   ;;
12834
12835 freebsd* | dragonfly*)
12836   # DragonFly does not have aout.  When/if they implement a new
12837   # versioning mechanism, adjust this.
12838   if test -x /usr/bin/objformat; then
12839     objformat=`/usr/bin/objformat`
12840   else
12841     case $host_os in
12842     freebsd[123]*) objformat=aout ;;
12843     *) objformat=elf ;;
12844     esac
12845   fi
12846   version_type=freebsd-$objformat
12847   case $version_type in
12848     freebsd-elf*)
12849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12850       need_version=no
12851       need_lib_prefix=no
12852       ;;
12853     freebsd-*)
12854       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12855       need_version=yes
12856       ;;
12857   esac
12858   shlibpath_var=LD_LIBRARY_PATH
12859   case $host_os in
12860   freebsd2*)
12861     shlibpath_overrides_runpath=yes
12862     ;;
12863   freebsd3.[01]* | freebsdelf3.[01]*)
12864     shlibpath_overrides_runpath=yes
12865     hardcode_into_libs=yes
12866     ;;
12867   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12868   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12869     shlibpath_overrides_runpath=no
12870     hardcode_into_libs=yes
12871     ;;
12872   *) # from 4.6 on, and DragonFly
12873     shlibpath_overrides_runpath=yes
12874     hardcode_into_libs=yes
12875     ;;
12876   esac
12877   ;;
12878
12879 gnu*)
12880   version_type=linux
12881   need_lib_prefix=no
12882   need_version=no
12883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12884   soname_spec='${libname}${release}${shared_ext}$major'
12885   shlibpath_var=LD_LIBRARY_PATH
12886   hardcode_into_libs=yes
12887   ;;
12888
12889 hpux9* | hpux10* | hpux11*)
12890   # Give a soname corresponding to the major version so that dld.sl refuses to
12891   # link against other versions.
12892   version_type=sunos
12893   need_lib_prefix=no
12894   need_version=no
12895   case $host_cpu in
12896   ia64*)
12897     shrext_cmds='.so'
12898     hardcode_into_libs=yes
12899     dynamic_linker="$host_os dld.so"
12900     shlibpath_var=LD_LIBRARY_PATH
12901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12903     soname_spec='${libname}${release}${shared_ext}$major'
12904     if test "X$HPUX_IA64_MODE" = X32; then
12905       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12906     else
12907       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12908     fi
12909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12910     ;;
12911    hppa*64*)
12912      shrext_cmds='.sl'
12913      hardcode_into_libs=yes
12914      dynamic_linker="$host_os dld.sl"
12915      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12916      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12917      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918      soname_spec='${libname}${release}${shared_ext}$major'
12919      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12920      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12921      ;;
12922    *)
12923     shrext_cmds='.sl'
12924     dynamic_linker="$host_os dld.sl"
12925     shlibpath_var=SHLIB_PATH
12926     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928     soname_spec='${libname}${release}${shared_ext}$major'
12929     ;;
12930   esac
12931   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12932   postinstall_cmds='chmod 555 $lib'
12933   ;;
12934
12935 interix[3-9]*)
12936   version_type=linux
12937   need_lib_prefix=no
12938   need_version=no
12939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12940   soname_spec='${libname}${release}${shared_ext}$major'
12941   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12942   shlibpath_var=LD_LIBRARY_PATH
12943   shlibpath_overrides_runpath=no
12944   hardcode_into_libs=yes
12945   ;;
12946
12947 irix5* | irix6* | nonstopux*)
12948   case $host_os in
12949     nonstopux*) version_type=nonstopux ;;
12950     *)
12951         if test "$lt_cv_prog_gnu_ld" = yes; then
12952                 version_type=linux
12953         else
12954                 version_type=irix
12955         fi ;;
12956   esac
12957   need_lib_prefix=no
12958   need_version=no
12959   soname_spec='${libname}${release}${shared_ext}$major'
12960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12961   case $host_os in
12962   irix5* | nonstopux*)
12963     libsuff= shlibsuff=
12964     ;;
12965   *)
12966     case $LD in # libtool.m4 will add one of these switches to LD
12967     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12968       libsuff= shlibsuff= libmagic=32-bit;;
12969     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12970       libsuff=32 shlibsuff=N32 libmagic=N32;;
12971     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12972       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12973     *) libsuff= shlibsuff= libmagic=never-match;;
12974     esac
12975     ;;
12976   esac
12977   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12978   shlibpath_overrides_runpath=no
12979   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12980   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12981   hardcode_into_libs=yes
12982   ;;
12983
12984 # No shared lib support for Linux oldld, aout, or coff.
12985 linux*oldld* | linux*aout* | linux*coff*)
12986   dynamic_linker=no
12987   ;;
12988
12989 # This must be Linux ELF.
12990 linux* | k*bsd*-gnu)
12991   version_type=linux
12992   need_lib_prefix=no
12993   need_version=no
12994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995   soname_spec='${libname}${release}${shared_ext}$major'
12996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12997   shlibpath_var=LD_LIBRARY_PATH
12998   shlibpath_overrides_runpath=no
12999   # This implies no fast_install, which is unacceptable.
13000   # Some rework will be needed to allow for fast_install
13001   # before this can be enabled.
13002   hardcode_into_libs=yes
13003
13004   # Append ld.so.conf contents to the search path
13005   if test -f /etc/ld.so.conf; then
13006     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' ' '`
13007     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13008   fi
13009
13010   # We used to test for /lib/ld.so.1 and disable shared libraries on
13011   # powerpc, because MkLinux only supported shared libraries with the
13012   # GNU dynamic linker.  Since this was broken with cross compilers,
13013   # most powerpc-linux boxes support dynamic linking these days and
13014   # people can always --disable-shared, the test was removed, and we
13015   # assume the GNU/Linux dynamic linker is in use.
13016   dynamic_linker='GNU/Linux ld.so'
13017   ;;
13018
13019 netbsd*)
13020   version_type=sunos
13021   need_lib_prefix=no
13022   need_version=no
13023   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13025     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13026     dynamic_linker='NetBSD (a.out) ld.so'
13027   else
13028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13029     soname_spec='${libname}${release}${shared_ext}$major'
13030     dynamic_linker='NetBSD ld.elf_so'
13031   fi
13032   shlibpath_var=LD_LIBRARY_PATH
13033   shlibpath_overrides_runpath=yes
13034   hardcode_into_libs=yes
13035   ;;
13036
13037 newsos6)
13038   version_type=linux
13039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040   shlibpath_var=LD_LIBRARY_PATH
13041   shlibpath_overrides_runpath=yes
13042   ;;
13043
13044 nto-qnx*)
13045   version_type=linux
13046   need_lib_prefix=no
13047   need_version=no
13048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049   soname_spec='${libname}${release}${shared_ext}$major'
13050   shlibpath_var=LD_LIBRARY_PATH
13051   shlibpath_overrides_runpath=yes
13052   ;;
13053
13054 openbsd*)
13055   version_type=sunos
13056   sys_lib_dlsearch_path_spec="/usr/lib"
13057   need_lib_prefix=no
13058   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13059   case $host_os in
13060     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13061     *)                         need_version=no  ;;
13062   esac
13063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13065   shlibpath_var=LD_LIBRARY_PATH
13066   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13067     case $host_os in
13068       openbsd2.[89] | openbsd2.[89].*)
13069         shlibpath_overrides_runpath=no
13070         ;;
13071       *)
13072         shlibpath_overrides_runpath=yes
13073         ;;
13074       esac
13075   else
13076     shlibpath_overrides_runpath=yes
13077   fi
13078   ;;
13079
13080 os2*)
13081   libname_spec='$name'
13082   shrext_cmds=".dll"
13083   need_lib_prefix=no
13084   library_names_spec='$libname${shared_ext} $libname.a'
13085   dynamic_linker='OS/2 ld.exe'
13086   shlibpath_var=LIBPATH
13087   ;;
13088
13089 osf3* | osf4* | osf5*)
13090   version_type=osf
13091   need_lib_prefix=no
13092   need_version=no
13093   soname_spec='${libname}${release}${shared_ext}$major'
13094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095   shlibpath_var=LD_LIBRARY_PATH
13096   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13097   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13098   ;;
13099
13100 rdos*)
13101   dynamic_linker=no
13102   ;;
13103
13104 solaris*)
13105   version_type=linux
13106   need_lib_prefix=no
13107   need_version=no
13108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109   soname_spec='${libname}${release}${shared_ext}$major'
13110   shlibpath_var=LD_LIBRARY_PATH
13111   shlibpath_overrides_runpath=yes
13112   hardcode_into_libs=yes
13113   # ldd complains unless libraries are executable
13114   postinstall_cmds='chmod +x $lib'
13115   ;;
13116
13117 sunos4*)
13118   version_type=sunos
13119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13120   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13121   shlibpath_var=LD_LIBRARY_PATH
13122   shlibpath_overrides_runpath=yes
13123   if test "$with_gnu_ld" = yes; then
13124     need_lib_prefix=no
13125   fi
13126   need_version=yes
13127   ;;
13128
13129 sysv4 | sysv4.3*)
13130   version_type=linux
13131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132   soname_spec='${libname}${release}${shared_ext}$major'
13133   shlibpath_var=LD_LIBRARY_PATH
13134   case $host_vendor in
13135     sni)
13136       shlibpath_overrides_runpath=no
13137       need_lib_prefix=no
13138       export_dynamic_flag_spec='${wl}-Blargedynsym'
13139       runpath_var=LD_RUN_PATH
13140       ;;
13141     siemens)
13142       need_lib_prefix=no
13143       ;;
13144     motorola)
13145       need_lib_prefix=no
13146       need_version=no
13147       shlibpath_overrides_runpath=no
13148       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13149       ;;
13150   esac
13151   ;;
13152
13153 sysv4*MP*)
13154   if test -d /usr/nec ;then
13155     version_type=linux
13156     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13157     soname_spec='$libname${shared_ext}.$major'
13158     shlibpath_var=LD_LIBRARY_PATH
13159   fi
13160   ;;
13161
13162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13163   version_type=freebsd-elf
13164   need_lib_prefix=no
13165   need_version=no
13166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13167   soname_spec='${libname}${release}${shared_ext}$major'
13168   shlibpath_var=LD_LIBRARY_PATH
13169   hardcode_into_libs=yes
13170   if test "$with_gnu_ld" = yes; then
13171     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13172     shlibpath_overrides_runpath=no
13173   else
13174     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13175     shlibpath_overrides_runpath=yes
13176     case $host_os in
13177       sco3.2v5*)
13178         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13179         ;;
13180     esac
13181   fi
13182   sys_lib_dlsearch_path_spec='/usr/lib'
13183   ;;
13184
13185 uts4*)
13186   version_type=linux
13187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188   soname_spec='${libname}${release}${shared_ext}$major'
13189   shlibpath_var=LD_LIBRARY_PATH
13190   ;;
13191
13192 *)
13193   dynamic_linker=no
13194   ;;
13195 esac
13196 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13197 $as_echo "$dynamic_linker" >&6; }
13198 test "$dynamic_linker" = no && can_build_shared=no
13199
13200 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13201   $as_echo_n "(cached) " >&6
13202 else
13203   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13204 fi
13205
13206 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13207 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13208   $as_echo_n "(cached) " >&6
13209 else
13210   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13211 fi
13212
13213 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13214
13215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13216 if test "$GCC" = yes; then
13217   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13218 fi
13219
13220 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13222 hardcode_action_CXX=
13223 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13224    test -n "$runpath_var_CXX" || \
13225    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13226
13227   # We can hardcode non-existant directories.
13228   if test "$hardcode_direct_CXX" != no &&
13229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230      # have to relink, otherwise we might link with an installed library
13231      # when we should be linking with a yet-to-be-installed one
13232      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13233      test "$hardcode_minus_L_CXX" != no; then
13234     # Linking always hardcodes the temporary library directory.
13235     hardcode_action_CXX=relink
13236   else
13237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238     hardcode_action_CXX=immediate
13239   fi
13240 else
13241   # We cannot hardcode anything, or else we can only hardcode existing
13242   # directories.
13243   hardcode_action_CXX=unsupported
13244 fi
13245 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13246 $as_echo "$hardcode_action_CXX" >&6; }
13247
13248 if test "$hardcode_action_CXX" = relink; then
13249   # Fast installation is not supported
13250   enable_fast_install=no
13251 elif test "$shlibpath_overrides_runpath" = yes ||
13252      test "$enable_shared" = no; then
13253   # Fast installation is not necessary
13254   enable_fast_install=needless
13255 fi
13256
13257
13258 # The else clause should only fire when bootstrapping the
13259 # libtool distribution, otherwise you forgot to ship ltmain.sh
13260 # with your package, and you will get complaints that there are
13261 # no rules to generate ltmain.sh.
13262 if test -f "$ltmain"; then
13263   # See if we are running on zsh, and set the options which allow our commands through
13264   # without removal of \ escapes.
13265   if test -n "${ZSH_VERSION+set}" ; then
13266     setopt NO_GLOB_SUBST
13267   fi
13268   # Now quote all the things that may contain metacharacters while being
13269   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13270   # variables and quote the copies for generation of the libtool script.
13271   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13272     SED SHELL STRIP \
13273     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13274     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13275     deplibs_check_method reload_flag reload_cmds need_locks \
13276     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13277     lt_cv_sys_global_symbol_to_c_name_address \
13278     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13279     old_postinstall_cmds old_postuninstall_cmds \
13280     compiler_CXX \
13281     CC_CXX \
13282     LD_CXX \
13283     lt_prog_compiler_wl_CXX \
13284     lt_prog_compiler_pic_CXX \
13285     lt_prog_compiler_static_CXX \
13286     lt_prog_compiler_no_builtin_flag_CXX \
13287     export_dynamic_flag_spec_CXX \
13288     thread_safe_flag_spec_CXX \
13289     whole_archive_flag_spec_CXX \
13290     enable_shared_with_static_runtimes_CXX \
13291     old_archive_cmds_CXX \
13292     old_archive_from_new_cmds_CXX \
13293     predep_objects_CXX \
13294     postdep_objects_CXX \
13295     predeps_CXX \
13296     postdeps_CXX \
13297     compiler_lib_search_path_CXX \
13298     compiler_lib_search_dirs_CXX \
13299     archive_cmds_CXX \
13300     archive_expsym_cmds_CXX \
13301     postinstall_cmds_CXX \
13302     postuninstall_cmds_CXX \
13303     old_archive_from_expsyms_cmds_CXX \
13304     allow_undefined_flag_CXX \
13305     no_undefined_flag_CXX \
13306     export_symbols_cmds_CXX \
13307     hardcode_libdir_flag_spec_CXX \
13308     hardcode_libdir_flag_spec_ld_CXX \
13309     hardcode_libdir_separator_CXX \
13310     hardcode_automatic_CXX \
13311     module_cmds_CXX \
13312     module_expsym_cmds_CXX \
13313     lt_cv_prog_compiler_c_o_CXX \
13314     fix_srcfile_path_CXX \
13315     exclude_expsyms_CXX \
13316     include_expsyms_CXX; do
13317
13318     case $var in
13319     old_archive_cmds_CXX | \
13320     old_archive_from_new_cmds_CXX | \
13321     archive_cmds_CXX | \
13322     archive_expsym_cmds_CXX | \
13323     module_cmds_CXX | \
13324     module_expsym_cmds_CXX | \
13325     old_archive_from_expsyms_cmds_CXX | \
13326     export_symbols_cmds_CXX | \
13327     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13328     postinstall_cmds | postuninstall_cmds | \
13329     old_postinstall_cmds | old_postuninstall_cmds | \
13330     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13331       # Double-quote double-evaled strings.
13332       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13333       ;;
13334     *)
13335       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13336       ;;
13337     esac
13338   done
13339
13340   case $lt_echo in
13341   *'\$0 --fallback-echo"')
13342     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13343     ;;
13344   esac
13345
13346 cfgfile="$ofile"
13347
13348   cat <<__EOF__ >> "$cfgfile"
13349 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13350
13351 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13352
13353 # Shell to use when invoking shell scripts.
13354 SHELL=$lt_SHELL
13355
13356 # Whether or not to build shared libraries.
13357 build_libtool_libs=$enable_shared
13358
13359 # Whether or not to build static libraries.
13360 build_old_libs=$enable_static
13361
13362 # Whether or not to add -lc for building shared libraries.
13363 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13364
13365 # Whether or not to disallow shared libs when runtime libs are static
13366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13367
13368 # Whether or not to optimize for fast installation.
13369 fast_install=$enable_fast_install
13370
13371 # The host system.
13372 host_alias=$host_alias
13373 host=$host
13374 host_os=$host_os
13375
13376 # The build system.
13377 build_alias=$build_alias
13378 build=$build
13379 build_os=$build_os
13380
13381 # An echo program that does not interpret backslashes.
13382 echo=$lt_echo
13383
13384 # The archiver.
13385 AR=$lt_AR
13386 AR_FLAGS=$lt_AR_FLAGS
13387
13388 # A C compiler.
13389 LTCC=$lt_LTCC
13390
13391 # LTCC compiler flags.
13392 LTCFLAGS=$lt_LTCFLAGS
13393
13394 # A language-specific compiler.
13395 CC=$lt_compiler_CXX
13396
13397 # Is the compiler the GNU C compiler?
13398 with_gcc=$GCC_CXX
13399
13400 # An ERE matcher.
13401 EGREP=$lt_EGREP
13402
13403 # The linker used to build libraries.
13404 LD=$lt_LD_CXX
13405
13406 # Whether we need hard or soft links.
13407 LN_S=$lt_LN_S
13408
13409 # A BSD-compatible nm program.
13410 NM=$lt_NM
13411
13412 # A symbol stripping program
13413 STRIP=$lt_STRIP
13414
13415 # Used to examine libraries when file_magic_cmd begins "file"
13416 MAGIC_CMD=$MAGIC_CMD
13417
13418 # Used on cygwin: DLL creation program.
13419 DLLTOOL="$DLLTOOL"
13420
13421 # Used on cygwin: object dumper.
13422 OBJDUMP="$OBJDUMP"
13423
13424 # Used on cygwin: assembler.
13425 AS="$AS"
13426
13427 # The name of the directory that contains temporary libtool files.
13428 objdir=$objdir
13429
13430 # How to create reloadable object files.
13431 reload_flag=$lt_reload_flag
13432 reload_cmds=$lt_reload_cmds
13433
13434 # How to pass a linker flag through the compiler.
13435 wl=$lt_lt_prog_compiler_wl_CXX
13436
13437 # Object file suffix (normally "o").
13438 objext="$ac_objext"
13439
13440 # Old archive suffix (normally "a").
13441 libext="$libext"
13442
13443 # Shared library suffix (normally ".so").
13444 shrext_cmds='$shrext_cmds'
13445
13446 # Executable file suffix (normally "").
13447 exeext="$exeext"
13448
13449 # Additional compiler flags for building library objects.
13450 pic_flag=$lt_lt_prog_compiler_pic_CXX
13451 pic_mode=$pic_mode
13452
13453 # What is the maximum length of a command?
13454 max_cmd_len=$lt_cv_sys_max_cmd_len
13455
13456 # Does compiler simultaneously support -c and -o options?
13457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13458
13459 # Must we lock files when doing compilation?
13460 need_locks=$lt_need_locks
13461
13462 # Do we need the lib prefix for modules?
13463 need_lib_prefix=$need_lib_prefix
13464
13465 # Do we need a version for libraries?
13466 need_version=$need_version
13467
13468 # Whether dlopen is supported.
13469 dlopen_support=$enable_dlopen
13470
13471 # Whether dlopen of programs is supported.
13472 dlopen_self=$enable_dlopen_self
13473
13474 # Whether dlopen of statically linked programs is supported.
13475 dlopen_self_static=$enable_dlopen_self_static
13476
13477 # Compiler flag to prevent dynamic linking.
13478 link_static_flag=$lt_lt_prog_compiler_static_CXX
13479
13480 # Compiler flag to turn off builtin functions.
13481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13482
13483 # Compiler flag to allow reflexive dlopens.
13484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13485
13486 # Compiler flag to generate shared objects directly from archives.
13487 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13488
13489 # Compiler flag to generate thread-safe objects.
13490 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13491
13492 # Library versioning type.
13493 version_type=$version_type
13494
13495 # Format of library name prefix.
13496 libname_spec=$lt_libname_spec
13497
13498 # List of archive names.  First name is the real one, the rest are links.
13499 # The last name is the one that the linker finds with -lNAME.
13500 library_names_spec=$lt_library_names_spec
13501
13502 # The coded name of the library, if different from the real name.
13503 soname_spec=$lt_soname_spec
13504
13505 # Commands used to build and install an old-style archive.
13506 RANLIB=$lt_RANLIB
13507 old_archive_cmds=$lt_old_archive_cmds_CXX
13508 old_postinstall_cmds=$lt_old_postinstall_cmds
13509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13510
13511 # Create an old-style archive from a shared archive.
13512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13513
13514 # Create a temporary old-style archive to link instead of a shared archive.
13515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13516
13517 # Commands used to build and install a shared archive.
13518 archive_cmds=$lt_archive_cmds_CXX
13519 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13520 postinstall_cmds=$lt_postinstall_cmds
13521 postuninstall_cmds=$lt_postuninstall_cmds
13522
13523 # Commands used to build a loadable module (assumed same as above if empty)
13524 module_cmds=$lt_module_cmds_CXX
13525 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13526
13527 # Commands to strip libraries.
13528 old_striplib=$lt_old_striplib
13529 striplib=$lt_striplib
13530
13531 # Dependencies to place before the objects being linked to create a
13532 # shared library.
13533 predep_objects=$lt_predep_objects_CXX
13534
13535 # Dependencies to place after the objects being linked to create a
13536 # shared library.
13537 postdep_objects=$lt_postdep_objects_CXX
13538
13539 # Dependencies to place before the objects being linked to create a
13540 # shared library.
13541 predeps=$lt_predeps_CXX
13542
13543 # Dependencies to place after the objects being linked to create a
13544 # shared library.
13545 postdeps=$lt_postdeps_CXX
13546
13547 # The directories searched by this compiler when creating a shared
13548 # library
13549 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13550
13551 # The library search path used internally by the compiler when linking
13552 # a shared library.
13553 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13554
13555 # Method to check whether dependent libraries are shared objects.
13556 deplibs_check_method=$lt_deplibs_check_method
13557
13558 # Command to use when deplibs_check_method == file_magic.
13559 file_magic_cmd=$lt_file_magic_cmd
13560
13561 # Flag that allows shared libraries with undefined symbols to be built.
13562 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13563
13564 # Flag that forces no undefined symbols.
13565 no_undefined_flag=$lt_no_undefined_flag_CXX
13566
13567 # Commands used to finish a libtool library installation in a directory.
13568 finish_cmds=$lt_finish_cmds
13569
13570 # Same as above, but a single script fragment to be evaled but not shown.
13571 finish_eval=$lt_finish_eval
13572
13573 # Take the output of nm and produce a listing of raw symbols and C names.
13574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13575
13576 # Transform the output of nm in a proper C declaration
13577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13578
13579 # Transform the output of nm in a C name address pair
13580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13581
13582 # This is the shared library runtime path variable.
13583 runpath_var=$runpath_var
13584
13585 # This is the shared library path variable.
13586 shlibpath_var=$shlibpath_var
13587
13588 # Is shlibpath searched before the hard-coded library search path?
13589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13590
13591 # How to hardcode a shared library path into an executable.
13592 hardcode_action=$hardcode_action_CXX
13593
13594 # Whether we should hardcode library paths into libraries.
13595 hardcode_into_libs=$hardcode_into_libs
13596
13597 # Flag to hardcode \$libdir into a binary during linking.
13598 # This must work even if \$libdir does not exist.
13599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13600
13601 # If ld is used when linking, flag to hardcode \$libdir into
13602 # a binary during linking. This must work even if \$libdir does
13603 # not exist.
13604 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13605
13606 # Whether we need a single -rpath flag with a separated argument.
13607 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13608
13609 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13610 # resulting binary.
13611 hardcode_direct=$hardcode_direct_CXX
13612
13613 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13614 # resulting binary.
13615 hardcode_minus_L=$hardcode_minus_L_CXX
13616
13617 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13618 # the resulting binary.
13619 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13620
13621 # Set to yes if building a shared library automatically hardcodes DIR into the library
13622 # and all subsequent libraries and executables linked against it.
13623 hardcode_automatic=$hardcode_automatic_CXX
13624
13625 # Variables whose values should be saved in libtool wrapper scripts and
13626 # restored at relink time.
13627 variables_saved_for_relink="$variables_saved_for_relink"
13628
13629 # Whether libtool must link a program against all its dependency libraries.
13630 link_all_deplibs=$link_all_deplibs_CXX
13631
13632 # Compile-time system search path for libraries
13633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13634
13635 # Run-time system search path for libraries
13636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13637
13638 # Fix the shell variable \$srcfile for the compiler.
13639 fix_srcfile_path=$lt_fix_srcfile_path
13640
13641 # Set to yes if exported symbols are required.
13642 always_export_symbols=$always_export_symbols_CXX
13643
13644 # The commands to list exported symbols.
13645 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13646
13647 # The commands to extract the exported symbol list from a shared archive.
13648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13649
13650 # Symbols that should not be listed in the preloaded symbols.
13651 exclude_expsyms=$lt_exclude_expsyms_CXX
13652
13653 # Symbols that must always be exported.
13654 include_expsyms=$lt_include_expsyms_CXX
13655
13656 # ### END LIBTOOL TAG CONFIG: $tagname
13657
13658 __EOF__
13659
13660
13661 else
13662   # If there is no Makefile yet, we rely on a make rule to execute
13663   # `config.status --recheck' to rerun these tests and create the
13664   # libtool script then.
13665   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13666   if test -f "$ltmain_in"; then
13667     test -f Makefile && make "$ltmain"
13668   fi
13669 fi
13670
13671
13672 ac_ext=c
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13677
13678 CC=$lt_save_CC
13679 LDCXX=$LD
13680 LD=$lt_save_LD
13681 GCC=$lt_save_GCC
13682 with_gnu_ldcxx=$with_gnu_ld
13683 with_gnu_ld=$lt_save_with_gnu_ld
13684 lt_cv_path_LDCXX=$lt_cv_path_LD
13685 lt_cv_path_LD=$lt_save_path_LD
13686 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13687 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13688
13689         else
13690           tagname=""
13691         fi
13692         ;;
13693
13694       F77)
13695         if test -n "$F77" && test "X$F77" != "Xno"; then
13696
13697 ac_ext=f
13698 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13699 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13700 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13701
13702
13703 archive_cmds_need_lc_F77=no
13704 allow_undefined_flag_F77=
13705 always_export_symbols_F77=no
13706 archive_expsym_cmds_F77=
13707 export_dynamic_flag_spec_F77=
13708 hardcode_direct_F77=no
13709 hardcode_libdir_flag_spec_F77=
13710 hardcode_libdir_flag_spec_ld_F77=
13711 hardcode_libdir_separator_F77=
13712 hardcode_minus_L_F77=no
13713 hardcode_automatic_F77=no
13714 module_cmds_F77=
13715 module_expsym_cmds_F77=
13716 link_all_deplibs_F77=unknown
13717 old_archive_cmds_F77=$old_archive_cmds
13718 no_undefined_flag_F77=
13719 whole_archive_flag_spec_F77=
13720 enable_shared_with_static_runtimes_F77=no
13721
13722 # Source file extension for f77 test sources.
13723 ac_ext=f
13724
13725 # Object file extension for compiled f77 test sources.
13726 objext=o
13727 objext_F77=$objext
13728
13729 # Code to be used in simple compile tests
13730 lt_simple_compile_test_code="\
13731       subroutine t
13732       return
13733       end
13734 "
13735
13736 # Code to be used in simple link tests
13737 lt_simple_link_test_code="\
13738       program t
13739       end
13740 "
13741
13742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13743
13744 # If no C compiler was specified, use CC.
13745 LTCC=${LTCC-"$CC"}
13746
13747 # If no C compiler flags were specified, use CFLAGS.
13748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13749
13750 # Allow CC to be a program name with arguments.
13751 compiler=$CC
13752
13753
13754 # save warnings/boilerplate of simple test code
13755 ac_outfile=conftest.$ac_objext
13756 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13758 _lt_compiler_boilerplate=`cat conftest.err`
13759 $rm conftest*
13760
13761 ac_outfile=conftest.$ac_objext
13762 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13764 _lt_linker_boilerplate=`cat conftest.err`
13765 $rm -r conftest*
13766
13767
13768 # Allow CC to be a program name with arguments.
13769 lt_save_CC="$CC"
13770 CC=${F77-"f77"}
13771 compiler=$CC
13772 compiler_F77=$CC
13773 for cc_temp in $compiler""; do
13774   case $cc_temp in
13775     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13776     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13777     \-*) ;;
13778     *) break;;
13779   esac
13780 done
13781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13782
13783
13784 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13785 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13786 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13787 $as_echo "$can_build_shared" >&6; }
13788
13789 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13790 $as_echo_n "checking whether to build shared libraries... " >&6; }
13791 test "$can_build_shared" = "no" && enable_shared=no
13792
13793 # On AIX, shared libraries and static libraries use the same namespace, and
13794 # are all built from PIC.
13795 case $host_os in
13796 aix3*)
13797   test "$enable_shared" = yes && enable_static=no
13798   if test -n "$RANLIB"; then
13799     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13800     postinstall_cmds='$RANLIB $lib'
13801   fi
13802   ;;
13803 aix[4-9]*)
13804   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13805     test "$enable_shared" = yes && enable_static=no
13806   fi
13807   ;;
13808 esac
13809 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13810 $as_echo "$enable_shared" >&6; }
13811
13812 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13813 $as_echo_n "checking whether to build static libraries... " >&6; }
13814 # Make sure either enable_shared or enable_static is yes.
13815 test "$enable_shared" = yes || enable_static=yes
13816 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13817 $as_echo "$enable_static" >&6; }
13818
13819 GCC_F77="$G77"
13820 LD_F77="$LD"
13821
13822 lt_prog_compiler_wl_F77=
13823 lt_prog_compiler_pic_F77=
13824 lt_prog_compiler_static_F77=
13825
13826 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13827 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13828
13829   if test "$GCC" = yes; then
13830     lt_prog_compiler_wl_F77='-Wl,'
13831     lt_prog_compiler_static_F77='-static'
13832
13833     case $host_os in
13834       aix*)
13835       # All AIX code is PIC.
13836       if test "$host_cpu" = ia64; then
13837         # AIX 5 now supports IA64 processor
13838         lt_prog_compiler_static_F77='-Bstatic'
13839       fi
13840       ;;
13841
13842     amigaos*)
13843       # FIXME: we need at least 68020 code to build shared libraries, but
13844       # adding the `-m68020' flag to GCC prevents building anything better,
13845       # like `-m68040'.
13846       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13847       ;;
13848
13849     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13850       # PIC is the default for these OSes.
13851       ;;
13852
13853     mingw* | cygwin* | pw32* | os2*)
13854       # This hack is so that the source file can tell whether it is being
13855       # built for inclusion in a dll (and should export symbols for example).
13856       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13857       # (--disable-auto-import) libraries
13858       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13859       ;;
13860
13861     darwin* | rhapsody*)
13862       # PIC is the default on this platform
13863       # Common symbols not allowed in MH_DYLIB files
13864       lt_prog_compiler_pic_F77='-fno-common'
13865       ;;
13866
13867     interix[3-9]*)
13868       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13869       # Instead, we relocate shared libraries at runtime.
13870       ;;
13871
13872     msdosdjgpp*)
13873       # Just because we use GCC doesn't mean we suddenly get shared libraries
13874       # on systems that don't support them.
13875       lt_prog_compiler_can_build_shared_F77=no
13876       enable_shared=no
13877       ;;
13878
13879     sysv4*MP*)
13880       if test -d /usr/nec; then
13881         lt_prog_compiler_pic_F77=-Kconform_pic
13882       fi
13883       ;;
13884
13885     hpux*)
13886       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13887       # not for PA HP-UX.
13888       case $host_cpu in
13889       hppa*64*|ia64*)
13890         # +Z the default
13891         ;;
13892       *)
13893         lt_prog_compiler_pic_F77='-fPIC'
13894         ;;
13895       esac
13896       ;;
13897
13898     *)
13899       lt_prog_compiler_pic_F77='-fPIC'
13900       ;;
13901     esac
13902   else
13903     # PORTME Check for flag to pass linker flags through the system compiler.
13904     case $host_os in
13905     aix*)
13906       lt_prog_compiler_wl_F77='-Wl,'
13907       if test "$host_cpu" = ia64; then
13908         # AIX 5 now supports IA64 processor
13909         lt_prog_compiler_static_F77='-Bstatic'
13910       else
13911         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13912       fi
13913       ;;
13914       darwin*)
13915         # PIC is the default on this platform
13916         # Common symbols not allowed in MH_DYLIB files
13917        case $cc_basename in
13918          xlc*)
13919          lt_prog_compiler_pic_F77='-qnocommon'
13920          lt_prog_compiler_wl_F77='-Wl,'
13921          ;;
13922        esac
13923        ;;
13924
13925     mingw* | cygwin* | pw32* | os2*)
13926       # This hack is so that the source file can tell whether it is being
13927       # built for inclusion in a dll (and should export symbols for example).
13928       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13929       ;;
13930
13931     hpux9* | hpux10* | hpux11*)
13932       lt_prog_compiler_wl_F77='-Wl,'
13933       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13934       # not for PA HP-UX.
13935       case $host_cpu in
13936       hppa*64*|ia64*)
13937         # +Z the default
13938         ;;
13939       *)
13940         lt_prog_compiler_pic_F77='+Z'
13941         ;;
13942       esac
13943       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13944       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13945       ;;
13946
13947     irix5* | irix6* | nonstopux*)
13948       lt_prog_compiler_wl_F77='-Wl,'
13949       # PIC (with -KPIC) is the default.
13950       lt_prog_compiler_static_F77='-non_shared'
13951       ;;
13952
13953     newsos6)
13954       lt_prog_compiler_pic_F77='-KPIC'
13955       lt_prog_compiler_static_F77='-Bstatic'
13956       ;;
13957
13958     linux* | k*bsd*-gnu)
13959       case $cc_basename in
13960       icc* | ecc*)
13961         lt_prog_compiler_wl_F77='-Wl,'
13962         lt_prog_compiler_pic_F77='-KPIC'
13963         lt_prog_compiler_static_F77='-static'
13964         ;;
13965       pgcc* | pgf77* | pgf90* | pgf95*)
13966         # Portland Group compilers (*not* the Pentium gcc compiler,
13967         # which looks to be a dead project)
13968         lt_prog_compiler_wl_F77='-Wl,'
13969         lt_prog_compiler_pic_F77='-fpic'
13970         lt_prog_compiler_static_F77='-Bstatic'
13971         ;;
13972       ccc*)
13973         lt_prog_compiler_wl_F77='-Wl,'
13974         # All Alpha code is PIC.
13975         lt_prog_compiler_static_F77='-non_shared'
13976         ;;
13977       *)
13978         case `$CC -V 2>&1 | sed 5q` in
13979         *Sun\ C*)
13980           # Sun C 5.9
13981           lt_prog_compiler_pic_F77='-KPIC'
13982           lt_prog_compiler_static_F77='-Bstatic'
13983           lt_prog_compiler_wl_F77='-Wl,'
13984           ;;
13985         *Sun\ F*)
13986           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13987           lt_prog_compiler_pic_F77='-KPIC'
13988           lt_prog_compiler_static_F77='-Bstatic'
13989           lt_prog_compiler_wl_F77=''
13990           ;;
13991         esac
13992         ;;
13993       esac
13994       ;;
13995
13996     osf3* | osf4* | osf5*)
13997       lt_prog_compiler_wl_F77='-Wl,'
13998       # All OSF/1 code is PIC.
13999       lt_prog_compiler_static_F77='-non_shared'
14000       ;;
14001
14002     rdos*)
14003       lt_prog_compiler_static_F77='-non_shared'
14004       ;;
14005
14006     solaris*)
14007       lt_prog_compiler_pic_F77='-KPIC'
14008       lt_prog_compiler_static_F77='-Bstatic'
14009       case $cc_basename in
14010       f77* | f90* | f95*)
14011         lt_prog_compiler_wl_F77='-Qoption ld ';;
14012       *)
14013         lt_prog_compiler_wl_F77='-Wl,';;
14014       esac
14015       ;;
14016
14017     sunos4*)
14018       lt_prog_compiler_wl_F77='-Qoption ld '
14019       lt_prog_compiler_pic_F77='-PIC'
14020       lt_prog_compiler_static_F77='-Bstatic'
14021       ;;
14022
14023     sysv4 | sysv4.2uw2* | sysv4.3*)
14024       lt_prog_compiler_wl_F77='-Wl,'
14025       lt_prog_compiler_pic_F77='-KPIC'
14026       lt_prog_compiler_static_F77='-Bstatic'
14027       ;;
14028
14029     sysv4*MP*)
14030       if test -d /usr/nec ;then
14031         lt_prog_compiler_pic_F77='-Kconform_pic'
14032         lt_prog_compiler_static_F77='-Bstatic'
14033       fi
14034       ;;
14035
14036     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14037       lt_prog_compiler_wl_F77='-Wl,'
14038       lt_prog_compiler_pic_F77='-KPIC'
14039       lt_prog_compiler_static_F77='-Bstatic'
14040       ;;
14041
14042     unicos*)
14043       lt_prog_compiler_wl_F77='-Wl,'
14044       lt_prog_compiler_can_build_shared_F77=no
14045       ;;
14046
14047     uts4*)
14048       lt_prog_compiler_pic_F77='-pic'
14049       lt_prog_compiler_static_F77='-Bstatic'
14050       ;;
14051
14052     *)
14053       lt_prog_compiler_can_build_shared_F77=no
14054       ;;
14055     esac
14056   fi
14057
14058 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14059 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14060
14061 #
14062 # Check to make sure the PIC flag actually works.
14063 #
14064 if test -n "$lt_prog_compiler_pic_F77"; then
14065
14066 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14067 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14068 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14069   $as_echo_n "(cached) " >&6
14070 else
14071   lt_cv_prog_compiler_pic_works_F77=no
14072   ac_outfile=conftest.$ac_objext
14073    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14075    # Insert the option either (1) after the last *FLAGS variable, or
14076    # (2) before a word containing "conftest.", or (3) at the end.
14077    # Note that $ac_compile itself does not contain backslashes and begins
14078    # with a dollar sign (not a hyphen), so the echo should work correctly.
14079    # The option is referenced via a variable to avoid confusing sed.
14080    lt_compile=`echo "$ac_compile" | $SED \
14081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083    -e 's:$: $lt_compiler_flag:'`
14084    (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085    (eval "$lt_compile" 2>conftest.err)
14086    ac_status=$?
14087    cat conftest.err >&5
14088    echo "$as_me:14088: \$? = $ac_status" >&5
14089    if (exit $ac_status) && test -s "$ac_outfile"; then
14090      # The compiler can only warn and ignore the option if not recognized
14091      # So say no if there are warnings other than the usual output.
14092      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14095        lt_cv_prog_compiler_pic_works_F77=yes
14096      fi
14097    fi
14098    $rm conftest*
14099
14100 fi
14101 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14102 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14103
14104 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14105     case $lt_prog_compiler_pic_F77 in
14106      "" | " "*) ;;
14107      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14108      esac
14109 else
14110     lt_prog_compiler_pic_F77=
14111      lt_prog_compiler_can_build_shared_F77=no
14112 fi
14113
14114 fi
14115 case $host_os in
14116   # For platforms which do not support PIC, -DPIC is meaningless:
14117   *djgpp*)
14118     lt_prog_compiler_pic_F77=
14119     ;;
14120   *)
14121     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14122     ;;
14123 esac
14124
14125 #
14126 # Check to make sure the static flag actually works.
14127 #
14128 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14129 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14130 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14131 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14132   $as_echo_n "(cached) " >&6
14133 else
14134   lt_cv_prog_compiler_static_works_F77=no
14135    save_LDFLAGS="$LDFLAGS"
14136    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14137    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14138    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14139      # The linker can only warn and ignore the option if not recognized
14140      # So say no if there are warnings
14141      if test -s conftest.err; then
14142        # Append any errors to the config.log.
14143        cat conftest.err 1>&5
14144        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14145        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14146        if diff conftest.exp conftest.er2 >/dev/null; then
14147          lt_cv_prog_compiler_static_works_F77=yes
14148        fi
14149      else
14150        lt_cv_prog_compiler_static_works_F77=yes
14151      fi
14152    fi
14153    $rm -r conftest*
14154    LDFLAGS="$save_LDFLAGS"
14155
14156 fi
14157 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14158 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14159
14160 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14161     :
14162 else
14163     lt_prog_compiler_static_F77=
14164 fi
14165
14166
14167 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14168 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14169 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14170   $as_echo_n "(cached) " >&6
14171 else
14172   lt_cv_prog_compiler_c_o_F77=no
14173    $rm -r conftest 2>/dev/null
14174    mkdir conftest
14175    cd conftest
14176    mkdir out
14177    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14178
14179    lt_compiler_flag="-o out/conftest2.$ac_objext"
14180    # Insert the option either (1) after the last *FLAGS variable, or
14181    # (2) before a word containing "conftest.", or (3) at the end.
14182    # Note that $ac_compile itself does not contain backslashes and begins
14183    # with a dollar sign (not a hyphen), so the echo should work correctly.
14184    lt_compile=`echo "$ac_compile" | $SED \
14185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14187    -e 's:$: $lt_compiler_flag:'`
14188    (eval echo "\"\$as_me:14188: $lt_compile\"" >&5)
14189    (eval "$lt_compile" 2>out/conftest.err)
14190    ac_status=$?
14191    cat out/conftest.err >&5
14192    echo "$as_me:14192: \$? = $ac_status" >&5
14193    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14194    then
14195      # The compiler can only warn and ignore the option if not recognized
14196      # So say no if there are warnings
14197      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14198      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14199      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14200        lt_cv_prog_compiler_c_o_F77=yes
14201      fi
14202    fi
14203    chmod u+w . 2>&5
14204    $rm conftest*
14205    # SGI C++ compiler will create directory out/ii_files/ for
14206    # template instantiation
14207    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14208    $rm out/* && rmdir out
14209    cd ..
14210    rmdir conftest
14211    $rm conftest*
14212
14213 fi
14214 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14215 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14216
14217
14218 hard_links="nottested"
14219 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14220   # do not overwrite the value of need_locks provided by the user
14221   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14222 $as_echo_n "checking if we can lock with hard links... " >&6; }
14223   hard_links=yes
14224   $rm conftest*
14225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14226   touch conftest.a
14227   ln conftest.a conftest.b 2>&5 || hard_links=no
14228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14229   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14230 $as_echo "$hard_links" >&6; }
14231   if test "$hard_links" = no; then
14232     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14233 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14234     need_locks=warn
14235   fi
14236 else
14237   need_locks=no
14238 fi
14239
14240 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14241 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14242
14243   runpath_var=
14244   allow_undefined_flag_F77=
14245   enable_shared_with_static_runtimes_F77=no
14246   archive_cmds_F77=
14247   archive_expsym_cmds_F77=
14248   old_archive_From_new_cmds_F77=
14249   old_archive_from_expsyms_cmds_F77=
14250   export_dynamic_flag_spec_F77=
14251   whole_archive_flag_spec_F77=
14252   thread_safe_flag_spec_F77=
14253   hardcode_libdir_flag_spec_F77=
14254   hardcode_libdir_flag_spec_ld_F77=
14255   hardcode_libdir_separator_F77=
14256   hardcode_direct_F77=no
14257   hardcode_minus_L_F77=no
14258   hardcode_shlibpath_var_F77=unsupported
14259   link_all_deplibs_F77=unknown
14260   hardcode_automatic_F77=no
14261   module_cmds_F77=
14262   module_expsym_cmds_F77=
14263   always_export_symbols_F77=no
14264   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14265   # include_expsyms should be a list of space-separated symbols to be *always*
14266   # included in the symbol list
14267   include_expsyms_F77=
14268   # exclude_expsyms can be an extended regexp of symbols to exclude
14269   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14270   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14271   # as well as any symbol that contains `d'.
14272   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14273   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14274   # platforms (ab)use it in PIC code, but their linkers get confused if
14275   # the symbol is explicitly referenced.  Since portable code cannot
14276   # rely on this symbol name, it's probably fine to never include it in
14277   # preloaded symbol tables.
14278   # Exclude shared library initialization/finalization symbols.
14279   extract_expsyms_cmds=
14280   # Just being paranoid about ensuring that cc_basename is set.
14281   for cc_temp in $compiler""; do
14282   case $cc_temp in
14283     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14284     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14285     \-*) ;;
14286     *) break;;
14287   esac
14288 done
14289 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14290
14291   case $host_os in
14292   cygwin* | mingw* | pw32*)
14293     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14294     # When not using gcc, we currently assume that we are using
14295     # Microsoft Visual C++.
14296     if test "$GCC" != yes; then
14297       with_gnu_ld=no
14298     fi
14299     ;;
14300   interix*)
14301     # we just hope/assume this is gcc and not c89 (= MSVC++)
14302     with_gnu_ld=yes
14303     ;;
14304   openbsd*)
14305     with_gnu_ld=no
14306     ;;
14307   esac
14308
14309   ld_shlibs_F77=yes
14310   if test "$with_gnu_ld" = yes; then
14311     # If archive_cmds runs LD, not CC, wlarc should be empty
14312     wlarc='${wl}'
14313
14314     # Set some defaults for GNU ld with shared library support. These
14315     # are reset later if shared libraries are not supported. Putting them
14316     # here allows them to be overridden if necessary.
14317     runpath_var=LD_RUN_PATH
14318     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14319     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14320     # ancient GNU ld didn't support --whole-archive et. al.
14321     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14322         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14323       else
14324         whole_archive_flag_spec_F77=
14325     fi
14326     supports_anon_versioning=no
14327     case `$LD -v 2>/dev/null` in
14328       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14329       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14330       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14331       *\ 2.11.*) ;; # other 2.11 versions
14332       *) supports_anon_versioning=yes ;;
14333     esac
14334
14335     # See if GNU ld supports shared libraries.
14336     case $host_os in
14337     aix[3-9]*)
14338       # On AIX/PPC, the GNU linker is very broken
14339       if test "$host_cpu" != ia64; then
14340         ld_shlibs_F77=no
14341         cat <<EOF 1>&2
14342
14343 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14344 *** to be unable to reliably create shared libraries on AIX.
14345 *** Therefore, libtool is disabling shared libraries support.  If you
14346 *** really care for shared libraries, you may want to modify your PATH
14347 *** so that a non-GNU linker is found, and then restart.
14348
14349 EOF
14350       fi
14351       ;;
14352
14353     amigaos*)
14354       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)'
14355       hardcode_libdir_flag_spec_F77='-L$libdir'
14356       hardcode_minus_L_F77=yes
14357
14358       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14359       # that the semantics of dynamic libraries on AmigaOS, at least up
14360       # to version 4, is to share data among multiple programs linked
14361       # with the same dynamic library.  Since this doesn't match the
14362       # behavior of shared libraries on other platforms, we can't use
14363       # them.
14364       ld_shlibs_F77=no
14365       ;;
14366
14367     beos*)
14368       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14369         allow_undefined_flag_F77=unsupported
14370         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14371         # support --undefined.  This deserves some investigation.  FIXME
14372         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14373       else
14374         ld_shlibs_F77=no
14375       fi
14376       ;;
14377
14378     cygwin* | mingw* | pw32*)
14379       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14380       # as there is no search path for DLLs.
14381       hardcode_libdir_flag_spec_F77='-L$libdir'
14382       allow_undefined_flag_F77=unsupported
14383       always_export_symbols_F77=no
14384       enable_shared_with_static_runtimes_F77=yes
14385       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14386
14387       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14388         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14389         # If the export-symbols file already is a .def file (1st line
14390         # is EXPORTS), use it as is; otherwise, prepend...
14391         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14392           cp $export_symbols $output_objdir/$soname.def;
14393         else
14394           echo EXPORTS > $output_objdir/$soname.def;
14395           cat $export_symbols >> $output_objdir/$soname.def;
14396         fi~
14397         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14398       else
14399         ld_shlibs_F77=no
14400       fi
14401       ;;
14402
14403     interix[3-9]*)
14404       hardcode_direct_F77=no
14405       hardcode_shlibpath_var_F77=no
14406       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14407       export_dynamic_flag_spec_F77='${wl}-E'
14408       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14409       # Instead, shared libraries are loaded at an image base (0x10000000 by
14410       # default) and relocated if they conflict, which is a slow very memory
14411       # consuming and fragmenting process.  To avoid this, we pick a random,
14412       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14413       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14414       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'
14415       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'
14416       ;;
14417
14418     gnu* | linux* | k*bsd*-gnu)
14419       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14420         tmp_addflag=
14421         case $cc_basename,$host_cpu in
14422         pgcc*)                          # Portland Group C compiler
14423           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'
14424           tmp_addflag=' $pic_flag'
14425           ;;
14426         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14427           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'
14428           tmp_addflag=' $pic_flag -Mnomain' ;;
14429         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14430           tmp_addflag=' -i_dynamic' ;;
14431         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14432           tmp_addflag=' -i_dynamic -nofor_main' ;;
14433         ifc* | ifort*)                  # Intel Fortran compiler
14434           tmp_addflag=' -nofor_main' ;;
14435         esac
14436         case `$CC -V 2>&1 | sed 5q` in
14437         *Sun\ C*)                       # Sun C 5.9
14438           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'
14439           tmp_sharedflag='-G' ;;
14440         *Sun\ F*)                       # Sun Fortran 8.3
14441           tmp_sharedflag='-G' ;;
14442         *)
14443           tmp_sharedflag='-shared' ;;
14444         esac
14445         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14446
14447         if test $supports_anon_versioning = yes; then
14448           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14449   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14450   $echo "local: *; };" >> $output_objdir/$libname.ver~
14451           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14452         fi
14453       else
14454         ld_shlibs_F77=no
14455       fi
14456       ;;
14457
14458     netbsd*)
14459       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14460         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14461         wlarc=
14462       else
14463         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14464         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14465       fi
14466       ;;
14467
14468     solaris*)
14469       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14470         ld_shlibs_F77=no
14471         cat <<EOF 1>&2
14472
14473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14474 *** create shared libraries on Solaris systems.  Therefore, libtool
14475 *** is disabling shared libraries support.  We urge you to upgrade GNU
14476 *** binutils to release 2.9.1 or newer.  Another option is to modify
14477 *** your PATH or compiler configuration so that the native linker is
14478 *** used, and then restart.
14479
14480 EOF
14481       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14482         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14483         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14484       else
14485         ld_shlibs_F77=no
14486       fi
14487       ;;
14488
14489     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14490       case `$LD -v 2>&1` in
14491         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14492         ld_shlibs_F77=no
14493         cat <<_LT_EOF 1>&2
14494
14495 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14496 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14497 *** is disabling shared libraries support.  We urge you to upgrade GNU
14498 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14499 *** your PATH or compiler configuration so that the native linker is
14500 *** used, and then restart.
14501
14502 _LT_EOF
14503         ;;
14504         *)
14505           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14507             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14508             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14509           else
14510             ld_shlibs_F77=no
14511           fi
14512         ;;
14513       esac
14514       ;;
14515
14516     sunos4*)
14517       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14518       wlarc=
14519       hardcode_direct_F77=yes
14520       hardcode_shlibpath_var_F77=no
14521       ;;
14522
14523     *)
14524       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14525         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14526         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14527       else
14528         ld_shlibs_F77=no
14529       fi
14530       ;;
14531     esac
14532
14533     if test "$ld_shlibs_F77" = no; then
14534       runpath_var=
14535       hardcode_libdir_flag_spec_F77=
14536       export_dynamic_flag_spec_F77=
14537       whole_archive_flag_spec_F77=
14538     fi
14539   else
14540     # PORTME fill in a description of your system's linker (not GNU ld)
14541     case $host_os in
14542     aix3*)
14543       allow_undefined_flag_F77=unsupported
14544       always_export_symbols_F77=yes
14545       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'
14546       # Note: this linker hardcodes the directories in LIBPATH if there
14547       # are no directories specified by -L.
14548       hardcode_minus_L_F77=yes
14549       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14550         # Neither direct hardcoding nor static linking is supported with a
14551         # broken collect2.
14552         hardcode_direct_F77=unsupported
14553       fi
14554       ;;
14555
14556     aix[4-9]*)
14557       if test "$host_cpu" = ia64; then
14558         # On IA64, the linker does run time linking by default, so we don't
14559         # have to do anything special.
14560         aix_use_runtimelinking=no
14561         exp_sym_flag='-Bexport'
14562         no_entry_flag=""
14563       else
14564         # If we're using GNU nm, then we don't want the "-C" option.
14565         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14566         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14567           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'
14568         else
14569           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'
14570         fi
14571         aix_use_runtimelinking=no
14572
14573         # Test if we are trying to use run time linking or normal
14574         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14575         # need to do runtime linking.
14576         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14577           for ld_flag in $LDFLAGS; do
14578           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14579             aix_use_runtimelinking=yes
14580             break
14581           fi
14582           done
14583           ;;
14584         esac
14585
14586         exp_sym_flag='-bexport'
14587         no_entry_flag='-bnoentry'
14588       fi
14589
14590       # When large executables or shared objects are built, AIX ld can
14591       # have problems creating the table of contents.  If linking a library
14592       # or program results in "error TOC overflow" add -mminimal-toc to
14593       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14594       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14595
14596       archive_cmds_F77=''
14597       hardcode_direct_F77=yes
14598       hardcode_libdir_separator_F77=':'
14599       link_all_deplibs_F77=yes
14600
14601       if test "$GCC" = yes; then
14602         case $host_os in aix4.[012]|aix4.[012].*)
14603         # We only want to do this on AIX 4.2 and lower, the check
14604         # below for broken collect2 doesn't work under 4.3+
14605           collect2name=`${CC} -print-prog-name=collect2`
14606           if test -f "$collect2name" && \
14607            strings "$collect2name" | grep resolve_lib_name >/dev/null
14608           then
14609           # We have reworked collect2
14610           :
14611           else
14612           # We have old collect2
14613           hardcode_direct_F77=unsupported
14614           # It fails to find uninstalled libraries when the uninstalled
14615           # path is not listed in the libpath.  Setting hardcode_minus_L
14616           # to unsupported forces relinking
14617           hardcode_minus_L_F77=yes
14618           hardcode_libdir_flag_spec_F77='-L$libdir'
14619           hardcode_libdir_separator_F77=
14620           fi
14621           ;;
14622         esac
14623         shared_flag='-shared'
14624         if test "$aix_use_runtimelinking" = yes; then
14625           shared_flag="$shared_flag "'${wl}-G'
14626         fi
14627       else
14628         # not using gcc
14629         if test "$host_cpu" = ia64; then
14630         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14631         # chokes on -Wl,-G. The following line is correct:
14632           shared_flag='-G'
14633         else
14634           if test "$aix_use_runtimelinking" = yes; then
14635             shared_flag='${wl}-G'
14636           else
14637             shared_flag='${wl}-bM:SRE'
14638           fi
14639         fi
14640       fi
14641
14642       # It seems that -bexpall does not export symbols beginning with
14643       # underscore (_), so it is better to generate a list of symbols to export.
14644       always_export_symbols_F77=yes
14645       if test "$aix_use_runtimelinking" = yes; then
14646         # Warning - without using the other runtime loading flags (-brtl),
14647         # -berok will link without error, but may produce a broken library.
14648         allow_undefined_flag_F77='-berok'
14649        # Determine the default libpath from the value encoded in an empty executable.
14650        cat >conftest.$ac_ext <<_ACEOF
14651       program main
14652
14653       end
14654 _ACEOF
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (ac_try="$ac_link"
14657 case "(($ac_try" in
14658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659   *) ac_try_echo=$ac_try;;
14660 esac
14661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14662 $as_echo "$ac_try_echo") >&5
14663   (eval "$ac_link") 2>conftest.er1
14664   ac_status=$?
14665   grep -v '^ *+' conftest.er1 >conftest.err
14666   rm -f conftest.er1
14667   cat conftest.err >&5
14668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); } && {
14670          test -z "$ac_f77_werror_flag" ||
14671          test ! -s conftest.err
14672        } && test -s conftest$ac_exeext && {
14673          test "$cross_compiling" = yes ||
14674          $as_test_x conftest$ac_exeext
14675        }; then
14676
14677 lt_aix_libpath_sed='
14678     /Import File Strings/,/^$/ {
14679         /^0/ {
14680             s/^0  *\(.*\)$/\1/
14681             p
14682         }
14683     }'
14684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14685 # Check for a 64-bit object if we didn't find anything.
14686 if test -z "$aix_libpath"; then
14687   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14688 fi
14689 else
14690   $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14692
14693
14694 fi
14695
14696 rm -rf conftest.dSYM
14697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14698       conftest$ac_exeext conftest.$ac_ext
14699 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14700
14701        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14702         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"
14703        else
14704         if test "$host_cpu" = ia64; then
14705           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14706           allow_undefined_flag_F77="-z nodefs"
14707           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"
14708         else
14709          # Determine the default libpath from the value encoded in an empty executable.
14710          cat >conftest.$ac_ext <<_ACEOF
14711       program main
14712
14713       end
14714 _ACEOF
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (ac_try="$ac_link"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723   (eval "$ac_link") 2>conftest.er1
14724   ac_status=$?
14725   grep -v '^ *+' conftest.er1 >conftest.err
14726   rm -f conftest.er1
14727   cat conftest.err >&5
14728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } && {
14730          test -z "$ac_f77_werror_flag" ||
14731          test ! -s conftest.err
14732        } && test -s conftest$ac_exeext && {
14733          test "$cross_compiling" = yes ||
14734          $as_test_x conftest$ac_exeext
14735        }; then
14736
14737 lt_aix_libpath_sed='
14738     /Import File Strings/,/^$/ {
14739         /^0/ {
14740             s/^0  *\(.*\)$/\1/
14741             p
14742         }
14743     }'
14744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14745 # Check for a 64-bit object if we didn't find anything.
14746 if test -z "$aix_libpath"; then
14747   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14748 fi
14749 else
14750   $as_echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753
14754 fi
14755
14756 rm -rf conftest.dSYM
14757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14758       conftest$ac_exeext conftest.$ac_ext
14759 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14760
14761          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14762           # Warning - without using the other run time loading flags,
14763           # -berok will link without error, but may produce a broken library.
14764           no_undefined_flag_F77=' ${wl}-bernotok'
14765           allow_undefined_flag_F77=' ${wl}-berok'
14766           # Exported symbols can be pulled into shared objects from archives
14767           whole_archive_flag_spec_F77='$convenience'
14768           archive_cmds_need_lc_F77=yes
14769           # This is similar to how AIX traditionally builds its shared libraries.
14770           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'
14771         fi
14772       fi
14773       ;;
14774
14775     amigaos*)
14776       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)'
14777       hardcode_libdir_flag_spec_F77='-L$libdir'
14778       hardcode_minus_L_F77=yes
14779       # see comment about different semantics on the GNU ld section
14780       ld_shlibs_F77=no
14781       ;;
14782
14783     bsdi[45]*)
14784       export_dynamic_flag_spec_F77=-rdynamic
14785       ;;
14786
14787     cygwin* | mingw* | pw32*)
14788       # When not using gcc, we currently assume that we are using
14789       # Microsoft Visual C++.
14790       # hardcode_libdir_flag_spec is actually meaningless, as there is
14791       # no search path for DLLs.
14792       hardcode_libdir_flag_spec_F77=' '
14793       allow_undefined_flag_F77=unsupported
14794       # Tell ltmain to make .lib files, not .a files.
14795       libext=lib
14796       # Tell ltmain to make .dll files, not .so files.
14797       shrext_cmds=".dll"
14798       # FIXME: Setting linknames here is a bad hack.
14799       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14800       # The linker will automatically build a .lib file if we build a DLL.
14801       old_archive_From_new_cmds_F77='true'
14802       # FIXME: Should let the user specify the lib program.
14803       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14804       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14805       enable_shared_with_static_runtimes_F77=yes
14806       ;;
14807
14808     darwin* | rhapsody*)
14809       case $host_os in
14810         rhapsody* | darwin1.[012])
14811          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14812          ;;
14813        *) # Darwin 1.3 on
14814          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14815            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14816          else
14817            case ${MACOSX_DEPLOYMENT_TARGET} in
14818              10.[012])
14819                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14820                ;;
14821              10.*)
14822                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14823                ;;
14824            esac
14825          fi
14826          ;;
14827       esac
14828       archive_cmds_need_lc_F77=no
14829       hardcode_direct_F77=no
14830       hardcode_automatic_F77=yes
14831       hardcode_shlibpath_var_F77=unsupported
14832       whole_archive_flag_spec_F77=''
14833       link_all_deplibs_F77=yes
14834     if test "$GCC" = yes ; then
14835         output_verbose_link_cmd='echo'
14836         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}"
14837         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14838         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}"
14839         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}"
14840     else
14841       case $cc_basename in
14842         xlc*)
14843          output_verbose_link_cmd='echo'
14844          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14845          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14846           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14847          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}'
14848           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}'
14849           ;;
14850        *)
14851          ld_shlibs_F77=no
14852           ;;
14853       esac
14854     fi
14855       ;;
14856
14857     dgux*)
14858       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14859       hardcode_libdir_flag_spec_F77='-L$libdir'
14860       hardcode_shlibpath_var_F77=no
14861       ;;
14862
14863     freebsd1*)
14864       ld_shlibs_F77=no
14865       ;;
14866
14867     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14868     # support.  Future versions do this automatically, but an explicit c++rt0.o
14869     # does not break anything, and helps significantly (at the cost of a little
14870     # extra space).
14871     freebsd2.2*)
14872       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14873       hardcode_libdir_flag_spec_F77='-R$libdir'
14874       hardcode_direct_F77=yes
14875       hardcode_shlibpath_var_F77=no
14876       ;;
14877
14878     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14879     freebsd2*)
14880       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14881       hardcode_direct_F77=yes
14882       hardcode_minus_L_F77=yes
14883       hardcode_shlibpath_var_F77=no
14884       ;;
14885
14886     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14887     freebsd* | dragonfly*)
14888       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14889       hardcode_libdir_flag_spec_F77='-R$libdir'
14890       hardcode_direct_F77=yes
14891       hardcode_shlibpath_var_F77=no
14892       ;;
14893
14894     hpux9*)
14895       if test "$GCC" = yes; then
14896         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'
14897       else
14898         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'
14899       fi
14900       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14901       hardcode_libdir_separator_F77=:
14902       hardcode_direct_F77=yes
14903
14904       # hardcode_minus_L: Not really in the search PATH,
14905       # but as the default location of the library.
14906       hardcode_minus_L_F77=yes
14907       export_dynamic_flag_spec_F77='${wl}-E'
14908       ;;
14909
14910     hpux10*)
14911       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14912         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14913       else
14914         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14915       fi
14916       if test "$with_gnu_ld" = no; then
14917         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14918         hardcode_libdir_separator_F77=:
14919
14920         hardcode_direct_F77=yes
14921         export_dynamic_flag_spec_F77='${wl}-E'
14922
14923         # hardcode_minus_L: Not really in the search PATH,
14924         # but as the default location of the library.
14925         hardcode_minus_L_F77=yes
14926       fi
14927       ;;
14928
14929     hpux11*)
14930       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14931         case $host_cpu in
14932         hppa*64*)
14933           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14934           ;;
14935         ia64*)
14936           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14937           ;;
14938         *)
14939           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14940           ;;
14941         esac
14942       else
14943         case $host_cpu in
14944         hppa*64*)
14945           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14946           ;;
14947         ia64*)
14948           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14949           ;;
14950         *)
14951           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14952           ;;
14953         esac
14954       fi
14955       if test "$with_gnu_ld" = no; then
14956         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14957         hardcode_libdir_separator_F77=:
14958
14959         case $host_cpu in
14960         hppa*64*|ia64*)
14961           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14962           hardcode_direct_F77=no
14963           hardcode_shlibpath_var_F77=no
14964           ;;
14965         *)
14966           hardcode_direct_F77=yes
14967           export_dynamic_flag_spec_F77='${wl}-E'
14968
14969           # hardcode_minus_L: Not really in the search PATH,
14970           # but as the default location of the library.
14971           hardcode_minus_L_F77=yes
14972           ;;
14973         esac
14974       fi
14975       ;;
14976
14977     irix5* | irix6* | nonstopux*)
14978       if test "$GCC" = yes; then
14979         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'
14980       else
14981         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'
14982         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14983       fi
14984       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14985       hardcode_libdir_separator_F77=:
14986       link_all_deplibs_F77=yes
14987       ;;
14988
14989     netbsd*)
14990       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14991         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14992       else
14993         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14994       fi
14995       hardcode_libdir_flag_spec_F77='-R$libdir'
14996       hardcode_direct_F77=yes
14997       hardcode_shlibpath_var_F77=no
14998       ;;
14999
15000     newsos6)
15001       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15002       hardcode_direct_F77=yes
15003       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15004       hardcode_libdir_separator_F77=:
15005       hardcode_shlibpath_var_F77=no
15006       ;;
15007
15008     openbsd*)
15009       if test -f /usr/libexec/ld.so; then
15010         hardcode_direct_F77=yes
15011         hardcode_shlibpath_var_F77=no
15012         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15013           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15014           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15015           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15016           export_dynamic_flag_spec_F77='${wl}-E'
15017         else
15018           case $host_os in
15019            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15020              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15021              hardcode_libdir_flag_spec_F77='-R$libdir'
15022              ;;
15023            *)
15024              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15025              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15026              ;;
15027           esac
15028         fi
15029       else
15030         ld_shlibs_F77=no
15031       fi
15032       ;;
15033
15034     os2*)
15035       hardcode_libdir_flag_spec_F77='-L$libdir'
15036       hardcode_minus_L_F77=yes
15037       allow_undefined_flag_F77=unsupported
15038       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'
15039       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15040       ;;
15041
15042     osf3*)
15043       if test "$GCC" = yes; then
15044         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15045         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'
15046       else
15047         allow_undefined_flag_F77=' -expect_unresolved \*'
15048         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'
15049       fi
15050       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15051       hardcode_libdir_separator_F77=:
15052       ;;
15053
15054     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15055       if test "$GCC" = yes; then
15056         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15057         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'
15058         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15059       else
15060         allow_undefined_flag_F77=' -expect_unresolved \*'
15061         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'
15062         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~
15063         $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'
15064
15065         # Both c and cxx compiler support -rpath directly
15066         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15067       fi
15068       hardcode_libdir_separator_F77=:
15069       ;;
15070
15071     solaris*)
15072       no_undefined_flag_F77=' -z text'
15073       if test "$GCC" = yes; then
15074         wlarc='${wl}'
15075         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15078       else
15079         wlarc=''
15080         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15082         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15083       fi
15084       hardcode_libdir_flag_spec_F77='-R$libdir'
15085       hardcode_shlibpath_var_F77=no
15086       case $host_os in
15087       solaris2.[0-5] | solaris2.[0-5].*) ;;
15088       *)
15089         # The compiler driver will combine and reorder linker options,
15090         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15091         # but is careful enough not to reorder.
15092         # Supported since Solaris 2.6 (maybe 2.5.1?)
15093         if test "$GCC" = yes; then
15094           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15095         else
15096           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15097         fi
15098         ;;
15099       esac
15100       link_all_deplibs_F77=yes
15101       ;;
15102
15103     sunos4*)
15104       if test "x$host_vendor" = xsequent; then
15105         # Use $CC to link under sequent, because it throws in some extra .o
15106         # files that make .init and .fini sections work.
15107         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15108       else
15109         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15110       fi
15111       hardcode_libdir_flag_spec_F77='-L$libdir'
15112       hardcode_direct_F77=yes
15113       hardcode_minus_L_F77=yes
15114       hardcode_shlibpath_var_F77=no
15115       ;;
15116
15117     sysv4)
15118       case $host_vendor in
15119         sni)
15120           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121           hardcode_direct_F77=yes # is this really true???
15122         ;;
15123         siemens)
15124           ## LD is ld it makes a PLAMLIB
15125           ## CC just makes a GrossModule.
15126           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15127           reload_cmds_F77='$CC -r -o $output$reload_objs'
15128           hardcode_direct_F77=no
15129         ;;
15130         motorola)
15131           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15133         ;;
15134       esac
15135       runpath_var='LD_RUN_PATH'
15136       hardcode_shlibpath_var_F77=no
15137       ;;
15138
15139     sysv4.3*)
15140       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15141       hardcode_shlibpath_var_F77=no
15142       export_dynamic_flag_spec_F77='-Bexport'
15143       ;;
15144
15145     sysv4*MP*)
15146       if test -d /usr/nec; then
15147         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15148         hardcode_shlibpath_var_F77=no
15149         runpath_var=LD_RUN_PATH
15150         hardcode_runpath_var=yes
15151         ld_shlibs_F77=yes
15152       fi
15153       ;;
15154
15155     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15156       no_undefined_flag_F77='${wl}-z,text'
15157       archive_cmds_need_lc_F77=no
15158       hardcode_shlibpath_var_F77=no
15159       runpath_var='LD_RUN_PATH'
15160
15161       if test "$GCC" = yes; then
15162         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15163         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15164       else
15165         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167       fi
15168       ;;
15169
15170     sysv5* | sco3.2v5* | sco5v6*)
15171       # Note: We can NOT use -z defs as we might desire, because we do not
15172       # link with -lc, and that would cause any symbols used from libc to
15173       # always be unresolved, which means just about no library would
15174       # ever link correctly.  If we're not using GNU ld we use -z text
15175       # though, which does catch some bad symbols but isn't as heavy-handed
15176       # as -z defs.
15177       no_undefined_flag_F77='${wl}-z,text'
15178       allow_undefined_flag_F77='${wl}-z,nodefs'
15179       archive_cmds_need_lc_F77=no
15180       hardcode_shlibpath_var_F77=no
15181       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15182       hardcode_libdir_separator_F77=':'
15183       link_all_deplibs_F77=yes
15184       export_dynamic_flag_spec_F77='${wl}-Bexport'
15185       runpath_var='LD_RUN_PATH'
15186
15187       if test "$GCC" = yes; then
15188         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15189         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15190       else
15191         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193       fi
15194       ;;
15195
15196     uts4*)
15197       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198       hardcode_libdir_flag_spec_F77='-L$libdir'
15199       hardcode_shlibpath_var_F77=no
15200       ;;
15201
15202     *)
15203       ld_shlibs_F77=no
15204       ;;
15205     esac
15206   fi
15207
15208 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15209 $as_echo "$ld_shlibs_F77" >&6; }
15210 test "$ld_shlibs_F77" = no && can_build_shared=no
15211
15212 #
15213 # Do we need to explicitly link libc?
15214 #
15215 case "x$archive_cmds_need_lc_F77" in
15216 x|xyes)
15217   # Assume -lc should be added
15218   archive_cmds_need_lc_F77=yes
15219
15220   if test "$enable_shared" = yes && test "$GCC" = yes; then
15221     case $archive_cmds_F77 in
15222     *'~'*)
15223       # FIXME: we may have to deal with multi-command sequences.
15224       ;;
15225     '$CC '*)
15226       # Test whether the compiler implicitly links with -lc since on some
15227       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15228       # to ld, don't add -lc before -lgcc.
15229       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15230 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15231       $rm conftest*
15232       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15233
15234       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235   (eval $ac_compile) 2>&5
15236   ac_status=$?
15237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } 2>conftest.err; then
15239         soname=conftest
15240         lib=conftest
15241         libobjs=conftest.$ac_objext
15242         deplibs=
15243         wl=$lt_prog_compiler_wl_F77
15244         pic_flag=$lt_prog_compiler_pic_F77
15245         compiler_flags=-v
15246         linker_flags=-v
15247         verstring=
15248         output_objdir=.
15249         libname=conftest
15250         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15251         allow_undefined_flag_F77=
15252         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15253   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15254   ac_status=$?
15255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }
15257         then
15258           archive_cmds_need_lc_F77=no
15259         else
15260           archive_cmds_need_lc_F77=yes
15261         fi
15262         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15263       else
15264         cat conftest.err 1>&5
15265       fi
15266       $rm conftest*
15267       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15268 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15269       ;;
15270     esac
15271   fi
15272   ;;
15273 esac
15274
15275 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15276 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15277 library_names_spec=
15278 libname_spec='lib$name'
15279 soname_spec=
15280 shrext_cmds=".so"
15281 postinstall_cmds=
15282 postuninstall_cmds=
15283 finish_cmds=
15284 finish_eval=
15285 shlibpath_var=
15286 shlibpath_overrides_runpath=unknown
15287 version_type=none
15288 dynamic_linker="$host_os ld.so"
15289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15290
15291 need_lib_prefix=unknown
15292 hardcode_into_libs=no
15293
15294 # when you set need_version to no, make sure it does not cause -set_version
15295 # flags to be left without arguments
15296 need_version=unknown
15297
15298 case $host_os in
15299 aix3*)
15300   version_type=linux
15301   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15302   shlibpath_var=LIBPATH
15303
15304   # AIX 3 has no versioning support, so we append a major version to the name.
15305   soname_spec='${libname}${release}${shared_ext}$major'
15306   ;;
15307
15308 aix[4-9]*)
15309   version_type=linux
15310   need_lib_prefix=no
15311   need_version=no
15312   hardcode_into_libs=yes
15313   if test "$host_cpu" = ia64; then
15314     # AIX 5 supports IA64
15315     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15316     shlibpath_var=LD_LIBRARY_PATH
15317   else
15318     # With GCC up to 2.95.x, collect2 would create an import file
15319     # for dependence libraries.  The import file would start with
15320     # the line `#! .'.  This would cause the generated library to
15321     # depend on `.', always an invalid library.  This was fixed in
15322     # development snapshots of GCC prior to 3.0.
15323     case $host_os in
15324       aix4 | aix4.[01] | aix4.[01].*)
15325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15326            echo ' yes '
15327            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15328         :
15329       else
15330         can_build_shared=no
15331       fi
15332       ;;
15333     esac
15334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15335     # soname into executable. Probably we can add versioning support to
15336     # collect2, so additional links can be useful in future.
15337     if test "$aix_use_runtimelinking" = yes; then
15338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15339       # instead of lib<name>.a to let people know that these are not
15340       # typical AIX shared libraries.
15341       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342     else
15343       # We preserve .a as extension for shared libraries through AIX4.2
15344       # and later when we are not doing run time linking.
15345       library_names_spec='${libname}${release}.a $libname.a'
15346       soname_spec='${libname}${release}${shared_ext}$major'
15347     fi
15348     shlibpath_var=LIBPATH
15349   fi
15350   ;;
15351
15352 amigaos*)
15353   library_names_spec='$libname.ixlibrary $libname.a'
15354   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15355   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'
15356   ;;
15357
15358 beos*)
15359   library_names_spec='${libname}${shared_ext}'
15360   dynamic_linker="$host_os ld.so"
15361   shlibpath_var=LIBRARY_PATH
15362   ;;
15363
15364 bsdi[45]*)
15365   version_type=linux
15366   need_version=no
15367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368   soname_spec='${libname}${release}${shared_ext}$major'
15369   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15372   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15373   # the default ld.so.conf also contains /usr/contrib/lib and
15374   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15375   # libtool to hard-code these into programs
15376   ;;
15377
15378 cygwin* | mingw* | pw32*)
15379   version_type=windows
15380   shrext_cmds=".dll"
15381   need_version=no
15382   need_lib_prefix=no
15383
15384   case $GCC,$host_os in
15385   yes,cygwin* | yes,mingw* | yes,pw32*)
15386     library_names_spec='$libname.dll.a'
15387     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15388     postinstall_cmds='base_file=`basename \${file}`~
15389       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15390       dldir=$destdir/`dirname \$dlpath`~
15391       test -d \$dldir || mkdir -p \$dldir~
15392       $install_prog $dir/$dlname \$dldir/$dlname~
15393       chmod a+x \$dldir/$dlname'
15394     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15395       dlpath=$dir/\$dldll~
15396        $rm \$dlpath'
15397     shlibpath_overrides_runpath=yes
15398
15399     case $host_os in
15400     cygwin*)
15401       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15402       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15403       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15404       ;;
15405     mingw*)
15406       # MinGW DLLs use traditional 'lib' prefix
15407       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15408       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15409       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15410         # It is most probably a Windows format PATH printed by
15411         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15412         # path with ; separators, and with drive letters. We can handle the
15413         # drive letters (cygwin fileutils understands them), so leave them,
15414         # especially as we might pass files found there to a mingw objdump,
15415         # which wouldn't understand a cygwinified path. Ahh.
15416         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15417       else
15418         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15419       fi
15420       ;;
15421     pw32*)
15422       # pw32 DLLs use 'pw' prefix rather than 'lib'
15423       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424       ;;
15425     esac
15426     ;;
15427
15428   *)
15429     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15430     ;;
15431   esac
15432   dynamic_linker='Win32 ld.exe'
15433   # FIXME: first we should search . and the directory the executable is in
15434   shlibpath_var=PATH
15435   ;;
15436
15437 darwin* | rhapsody*)
15438   dynamic_linker="$host_os dyld"
15439   version_type=darwin
15440   need_lib_prefix=no
15441   need_version=no
15442   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15443   soname_spec='${libname}${release}${major}$shared_ext'
15444   shlibpath_overrides_runpath=yes
15445   shlibpath_var=DYLD_LIBRARY_PATH
15446   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15447
15448   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15449   ;;
15450
15451 dgux*)
15452   version_type=linux
15453   need_lib_prefix=no
15454   need_version=no
15455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15456   soname_spec='${libname}${release}${shared_ext}$major'
15457   shlibpath_var=LD_LIBRARY_PATH
15458   ;;
15459
15460 freebsd1*)
15461   dynamic_linker=no
15462   ;;
15463
15464 freebsd* | dragonfly*)
15465   # DragonFly does not have aout.  When/if they implement a new
15466   # versioning mechanism, adjust this.
15467   if test -x /usr/bin/objformat; then
15468     objformat=`/usr/bin/objformat`
15469   else
15470     case $host_os in
15471     freebsd[123]*) objformat=aout ;;
15472     *) objformat=elf ;;
15473     esac
15474   fi
15475   version_type=freebsd-$objformat
15476   case $version_type in
15477     freebsd-elf*)
15478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15479       need_version=no
15480       need_lib_prefix=no
15481       ;;
15482     freebsd-*)
15483       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15484       need_version=yes
15485       ;;
15486   esac
15487   shlibpath_var=LD_LIBRARY_PATH
15488   case $host_os in
15489   freebsd2*)
15490     shlibpath_overrides_runpath=yes
15491     ;;
15492   freebsd3.[01]* | freebsdelf3.[01]*)
15493     shlibpath_overrides_runpath=yes
15494     hardcode_into_libs=yes
15495     ;;
15496   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15497   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15498     shlibpath_overrides_runpath=no
15499     hardcode_into_libs=yes
15500     ;;
15501   *) # from 4.6 on, and DragonFly
15502     shlibpath_overrides_runpath=yes
15503     hardcode_into_libs=yes
15504     ;;
15505   esac
15506   ;;
15507
15508 gnu*)
15509   version_type=linux
15510   need_lib_prefix=no
15511   need_version=no
15512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15513   soname_spec='${libname}${release}${shared_ext}$major'
15514   shlibpath_var=LD_LIBRARY_PATH
15515   hardcode_into_libs=yes
15516   ;;
15517
15518 hpux9* | hpux10* | hpux11*)
15519   # Give a soname corresponding to the major version so that dld.sl refuses to
15520   # link against other versions.
15521   version_type=sunos
15522   need_lib_prefix=no
15523   need_version=no
15524   case $host_cpu in
15525   ia64*)
15526     shrext_cmds='.so'
15527     hardcode_into_libs=yes
15528     dynamic_linker="$host_os dld.so"
15529     shlibpath_var=LD_LIBRARY_PATH
15530     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532     soname_spec='${libname}${release}${shared_ext}$major'
15533     if test "X$HPUX_IA64_MODE" = X32; then
15534       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15535     else
15536       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15537     fi
15538     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15539     ;;
15540    hppa*64*)
15541      shrext_cmds='.sl'
15542      hardcode_into_libs=yes
15543      dynamic_linker="$host_os dld.sl"
15544      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15545      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15546      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547      soname_spec='${libname}${release}${shared_ext}$major'
15548      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15549      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15550      ;;
15551    *)
15552     shrext_cmds='.sl'
15553     dynamic_linker="$host_os dld.sl"
15554     shlibpath_var=SHLIB_PATH
15555     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557     soname_spec='${libname}${release}${shared_ext}$major'
15558     ;;
15559   esac
15560   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15561   postinstall_cmds='chmod 555 $lib'
15562   ;;
15563
15564 interix[3-9]*)
15565   version_type=linux
15566   need_lib_prefix=no
15567   need_version=no
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15569   soname_spec='${libname}${release}${shared_ext}$major'
15570   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15571   shlibpath_var=LD_LIBRARY_PATH
15572   shlibpath_overrides_runpath=no
15573   hardcode_into_libs=yes
15574   ;;
15575
15576 irix5* | irix6* | nonstopux*)
15577   case $host_os in
15578     nonstopux*) version_type=nonstopux ;;
15579     *)
15580         if test "$lt_cv_prog_gnu_ld" = yes; then
15581                 version_type=linux
15582         else
15583                 version_type=irix
15584         fi ;;
15585   esac
15586   need_lib_prefix=no
15587   need_version=no
15588   soname_spec='${libname}${release}${shared_ext}$major'
15589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15590   case $host_os in
15591   irix5* | nonstopux*)
15592     libsuff= shlibsuff=
15593     ;;
15594   *)
15595     case $LD in # libtool.m4 will add one of these switches to LD
15596     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15597       libsuff= shlibsuff= libmagic=32-bit;;
15598     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15599       libsuff=32 shlibsuff=N32 libmagic=N32;;
15600     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15601       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15602     *) libsuff= shlibsuff= libmagic=never-match;;
15603     esac
15604     ;;
15605   esac
15606   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15607   shlibpath_overrides_runpath=no
15608   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15609   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15610   hardcode_into_libs=yes
15611   ;;
15612
15613 # No shared lib support for Linux oldld, aout, or coff.
15614 linux*oldld* | linux*aout* | linux*coff*)
15615   dynamic_linker=no
15616   ;;
15617
15618 # This must be Linux ELF.
15619 linux* | k*bsd*-gnu)
15620   version_type=linux
15621   need_lib_prefix=no
15622   need_version=no
15623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624   soname_spec='${libname}${release}${shared_ext}$major'
15625   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   shlibpath_overrides_runpath=no
15628   # This implies no fast_install, which is unacceptable.
15629   # Some rework will be needed to allow for fast_install
15630   # before this can be enabled.
15631   hardcode_into_libs=yes
15632
15633   # Append ld.so.conf contents to the search path
15634   if test -f /etc/ld.so.conf; then
15635     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' ' '`
15636     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15637   fi
15638
15639   # We used to test for /lib/ld.so.1 and disable shared libraries on
15640   # powerpc, because MkLinux only supported shared libraries with the
15641   # GNU dynamic linker.  Since this was broken with cross compilers,
15642   # most powerpc-linux boxes support dynamic linking these days and
15643   # people can always --disable-shared, the test was removed, and we
15644   # assume the GNU/Linux dynamic linker is in use.
15645   dynamic_linker='GNU/Linux ld.so'
15646   ;;
15647
15648 netbsd*)
15649   version_type=sunos
15650   need_lib_prefix=no
15651   need_version=no
15652   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15655     dynamic_linker='NetBSD (a.out) ld.so'
15656   else
15657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15658     soname_spec='${libname}${release}${shared_ext}$major'
15659     dynamic_linker='NetBSD ld.elf_so'
15660   fi
15661   shlibpath_var=LD_LIBRARY_PATH
15662   shlibpath_overrides_runpath=yes
15663   hardcode_into_libs=yes
15664   ;;
15665
15666 newsos6)
15667   version_type=linux
15668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   shlibpath_overrides_runpath=yes
15671   ;;
15672
15673 nto-qnx*)
15674   version_type=linux
15675   need_lib_prefix=no
15676   need_version=no
15677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678   soname_spec='${libname}${release}${shared_ext}$major'
15679   shlibpath_var=LD_LIBRARY_PATH
15680   shlibpath_overrides_runpath=yes
15681   ;;
15682
15683 openbsd*)
15684   version_type=sunos
15685   sys_lib_dlsearch_path_spec="/usr/lib"
15686   need_lib_prefix=no
15687   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15688   case $host_os in
15689     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15690     *)                         need_version=no  ;;
15691   esac
15692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15693   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15694   shlibpath_var=LD_LIBRARY_PATH
15695   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15696     case $host_os in
15697       openbsd2.[89] | openbsd2.[89].*)
15698         shlibpath_overrides_runpath=no
15699         ;;
15700       *)
15701         shlibpath_overrides_runpath=yes
15702         ;;
15703       esac
15704   else
15705     shlibpath_overrides_runpath=yes
15706   fi
15707   ;;
15708
15709 os2*)
15710   libname_spec='$name'
15711   shrext_cmds=".dll"
15712   need_lib_prefix=no
15713   library_names_spec='$libname${shared_ext} $libname.a'
15714   dynamic_linker='OS/2 ld.exe'
15715   shlibpath_var=LIBPATH
15716   ;;
15717
15718 osf3* | osf4* | osf5*)
15719   version_type=osf
15720   need_lib_prefix=no
15721   need_version=no
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15726   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15727   ;;
15728
15729 rdos*)
15730   dynamic_linker=no
15731   ;;
15732
15733 solaris*)
15734   version_type=linux
15735   need_lib_prefix=no
15736   need_version=no
15737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15738   soname_spec='${libname}${release}${shared_ext}$major'
15739   shlibpath_var=LD_LIBRARY_PATH
15740   shlibpath_overrides_runpath=yes
15741   hardcode_into_libs=yes
15742   # ldd complains unless libraries are executable
15743   postinstall_cmds='chmod +x $lib'
15744   ;;
15745
15746 sunos4*)
15747   version_type=sunos
15748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15749   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15750   shlibpath_var=LD_LIBRARY_PATH
15751   shlibpath_overrides_runpath=yes
15752   if test "$with_gnu_ld" = yes; then
15753     need_lib_prefix=no
15754   fi
15755   need_version=yes
15756   ;;
15757
15758 sysv4 | sysv4.3*)
15759   version_type=linux
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15761   soname_spec='${libname}${release}${shared_ext}$major'
15762   shlibpath_var=LD_LIBRARY_PATH
15763   case $host_vendor in
15764     sni)
15765       shlibpath_overrides_runpath=no
15766       need_lib_prefix=no
15767       export_dynamic_flag_spec='${wl}-Blargedynsym'
15768       runpath_var=LD_RUN_PATH
15769       ;;
15770     siemens)
15771       need_lib_prefix=no
15772       ;;
15773     motorola)
15774       need_lib_prefix=no
15775       need_version=no
15776       shlibpath_overrides_runpath=no
15777       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15778       ;;
15779   esac
15780   ;;
15781
15782 sysv4*MP*)
15783   if test -d /usr/nec ;then
15784     version_type=linux
15785     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15786     soname_spec='$libname${shared_ext}.$major'
15787     shlibpath_var=LD_LIBRARY_PATH
15788   fi
15789   ;;
15790
15791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15792   version_type=freebsd-elf
15793   need_lib_prefix=no
15794   need_version=no
15795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15796   soname_spec='${libname}${release}${shared_ext}$major'
15797   shlibpath_var=LD_LIBRARY_PATH
15798   hardcode_into_libs=yes
15799   if test "$with_gnu_ld" = yes; then
15800     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15801     shlibpath_overrides_runpath=no
15802   else
15803     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15804     shlibpath_overrides_runpath=yes
15805     case $host_os in
15806       sco3.2v5*)
15807         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15808         ;;
15809     esac
15810   fi
15811   sys_lib_dlsearch_path_spec='/usr/lib'
15812   ;;
15813
15814 uts4*)
15815   version_type=linux
15816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817   soname_spec='${libname}${release}${shared_ext}$major'
15818   shlibpath_var=LD_LIBRARY_PATH
15819   ;;
15820
15821 *)
15822   dynamic_linker=no
15823   ;;
15824 esac
15825 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15826 $as_echo "$dynamic_linker" >&6; }
15827 test "$dynamic_linker" = no && can_build_shared=no
15828
15829 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15830   $as_echo_n "(cached) " >&6
15831 else
15832   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15833 fi
15834
15835 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15836 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15837   $as_echo_n "(cached) " >&6
15838 else
15839   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15840 fi
15841
15842 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15843
15844 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15845 if test "$GCC" = yes; then
15846   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15847 fi
15848
15849 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15850 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15851 hardcode_action_F77=
15852 if test -n "$hardcode_libdir_flag_spec_F77" || \
15853    test -n "$runpath_var_F77" || \
15854    test "X$hardcode_automatic_F77" = "Xyes" ; then
15855
15856   # We can hardcode non-existant directories.
15857   if test "$hardcode_direct_F77" != no &&
15858      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15859      # have to relink, otherwise we might link with an installed library
15860      # when we should be linking with a yet-to-be-installed one
15861      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15862      test "$hardcode_minus_L_F77" != no; then
15863     # Linking always hardcodes the temporary library directory.
15864     hardcode_action_F77=relink
15865   else
15866     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15867     hardcode_action_F77=immediate
15868   fi
15869 else
15870   # We cannot hardcode anything, or else we can only hardcode existing
15871   # directories.
15872   hardcode_action_F77=unsupported
15873 fi
15874 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15875 $as_echo "$hardcode_action_F77" >&6; }
15876
15877 if test "$hardcode_action_F77" = relink; then
15878   # Fast installation is not supported
15879   enable_fast_install=no
15880 elif test "$shlibpath_overrides_runpath" = yes ||
15881      test "$enable_shared" = no; then
15882   # Fast installation is not necessary
15883   enable_fast_install=needless
15884 fi
15885
15886
15887 # The else clause should only fire when bootstrapping the
15888 # libtool distribution, otherwise you forgot to ship ltmain.sh
15889 # with your package, and you will get complaints that there are
15890 # no rules to generate ltmain.sh.
15891 if test -f "$ltmain"; then
15892   # See if we are running on zsh, and set the options which allow our commands through
15893   # without removal of \ escapes.
15894   if test -n "${ZSH_VERSION+set}" ; then
15895     setopt NO_GLOB_SUBST
15896   fi
15897   # Now quote all the things that may contain metacharacters while being
15898   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15899   # variables and quote the copies for generation of the libtool script.
15900   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15901     SED SHELL STRIP \
15902     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15903     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15904     deplibs_check_method reload_flag reload_cmds need_locks \
15905     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15906     lt_cv_sys_global_symbol_to_c_name_address \
15907     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15908     old_postinstall_cmds old_postuninstall_cmds \
15909     compiler_F77 \
15910     CC_F77 \
15911     LD_F77 \
15912     lt_prog_compiler_wl_F77 \
15913     lt_prog_compiler_pic_F77 \
15914     lt_prog_compiler_static_F77 \
15915     lt_prog_compiler_no_builtin_flag_F77 \
15916     export_dynamic_flag_spec_F77 \
15917     thread_safe_flag_spec_F77 \
15918     whole_archive_flag_spec_F77 \
15919     enable_shared_with_static_runtimes_F77 \
15920     old_archive_cmds_F77 \
15921     old_archive_from_new_cmds_F77 \
15922     predep_objects_F77 \
15923     postdep_objects_F77 \
15924     predeps_F77 \
15925     postdeps_F77 \
15926     compiler_lib_search_path_F77 \
15927     compiler_lib_search_dirs_F77 \
15928     archive_cmds_F77 \
15929     archive_expsym_cmds_F77 \
15930     postinstall_cmds_F77 \
15931     postuninstall_cmds_F77 \
15932     old_archive_from_expsyms_cmds_F77 \
15933     allow_undefined_flag_F77 \
15934     no_undefined_flag_F77 \
15935     export_symbols_cmds_F77 \
15936     hardcode_libdir_flag_spec_F77 \
15937     hardcode_libdir_flag_spec_ld_F77 \
15938     hardcode_libdir_separator_F77 \
15939     hardcode_automatic_F77 \
15940     module_cmds_F77 \
15941     module_expsym_cmds_F77 \
15942     lt_cv_prog_compiler_c_o_F77 \
15943     fix_srcfile_path_F77 \
15944     exclude_expsyms_F77 \
15945     include_expsyms_F77; do
15946
15947     case $var in
15948     old_archive_cmds_F77 | \
15949     old_archive_from_new_cmds_F77 | \
15950     archive_cmds_F77 | \
15951     archive_expsym_cmds_F77 | \
15952     module_cmds_F77 | \
15953     module_expsym_cmds_F77 | \
15954     old_archive_from_expsyms_cmds_F77 | \
15955     export_symbols_cmds_F77 | \
15956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15957     postinstall_cmds | postuninstall_cmds | \
15958     old_postinstall_cmds | old_postuninstall_cmds | \
15959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15960       # Double-quote double-evaled strings.
15961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15962       ;;
15963     *)
15964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15965       ;;
15966     esac
15967   done
15968
15969   case $lt_echo in
15970   *'\$0 --fallback-echo"')
15971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15972     ;;
15973   esac
15974
15975 cfgfile="$ofile"
15976
15977   cat <<__EOF__ >> "$cfgfile"
15978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15979
15980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15981
15982 # Shell to use when invoking shell scripts.
15983 SHELL=$lt_SHELL
15984
15985 # Whether or not to build shared libraries.
15986 build_libtool_libs=$enable_shared
15987
15988 # Whether or not to build static libraries.
15989 build_old_libs=$enable_static
15990
15991 # Whether or not to add -lc for building shared libraries.
15992 build_libtool_need_lc=$archive_cmds_need_lc_F77
15993
15994 # Whether or not to disallow shared libs when runtime libs are static
15995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15996
15997 # Whether or not to optimize for fast installation.
15998 fast_install=$enable_fast_install
15999
16000 # The host system.
16001 host_alias=$host_alias
16002 host=$host
16003 host_os=$host_os
16004
16005 # The build system.
16006 build_alias=$build_alias
16007 build=$build
16008 build_os=$build_os
16009
16010 # An echo program that does not interpret backslashes.
16011 echo=$lt_echo
16012
16013 # The archiver.
16014 AR=$lt_AR
16015 AR_FLAGS=$lt_AR_FLAGS
16016
16017 # A C compiler.
16018 LTCC=$lt_LTCC
16019
16020 # LTCC compiler flags.
16021 LTCFLAGS=$lt_LTCFLAGS
16022
16023 # A language-specific compiler.
16024 CC=$lt_compiler_F77
16025
16026 # Is the compiler the GNU C compiler?
16027 with_gcc=$GCC_F77
16028
16029 # An ERE matcher.
16030 EGREP=$lt_EGREP
16031
16032 # The linker used to build libraries.
16033 LD=$lt_LD_F77
16034
16035 # Whether we need hard or soft links.
16036 LN_S=$lt_LN_S
16037
16038 # A BSD-compatible nm program.
16039 NM=$lt_NM
16040
16041 # A symbol stripping program
16042 STRIP=$lt_STRIP
16043
16044 # Used to examine libraries when file_magic_cmd begins "file"
16045 MAGIC_CMD=$MAGIC_CMD
16046
16047 # Used on cygwin: DLL creation program.
16048 DLLTOOL="$DLLTOOL"
16049
16050 # Used on cygwin: object dumper.
16051 OBJDUMP="$OBJDUMP"
16052
16053 # Used on cygwin: assembler.
16054 AS="$AS"
16055
16056 # The name of the directory that contains temporary libtool files.
16057 objdir=$objdir
16058
16059 # How to create reloadable object files.
16060 reload_flag=$lt_reload_flag
16061 reload_cmds=$lt_reload_cmds
16062
16063 # How to pass a linker flag through the compiler.
16064 wl=$lt_lt_prog_compiler_wl_F77
16065
16066 # Object file suffix (normally "o").
16067 objext="$ac_objext"
16068
16069 # Old archive suffix (normally "a").
16070 libext="$libext"
16071
16072 # Shared library suffix (normally ".so").
16073 shrext_cmds='$shrext_cmds'
16074
16075 # Executable file suffix (normally "").
16076 exeext="$exeext"
16077
16078 # Additional compiler flags for building library objects.
16079 pic_flag=$lt_lt_prog_compiler_pic_F77
16080 pic_mode=$pic_mode
16081
16082 # What is the maximum length of a command?
16083 max_cmd_len=$lt_cv_sys_max_cmd_len
16084
16085 # Does compiler simultaneously support -c and -o options?
16086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16087
16088 # Must we lock files when doing compilation?
16089 need_locks=$lt_need_locks
16090
16091 # Do we need the lib prefix for modules?
16092 need_lib_prefix=$need_lib_prefix
16093
16094 # Do we need a version for libraries?
16095 need_version=$need_version
16096
16097 # Whether dlopen is supported.
16098 dlopen_support=$enable_dlopen
16099
16100 # Whether dlopen of programs is supported.
16101 dlopen_self=$enable_dlopen_self
16102
16103 # Whether dlopen of statically linked programs is supported.
16104 dlopen_self_static=$enable_dlopen_self_static
16105
16106 # Compiler flag to prevent dynamic linking.
16107 link_static_flag=$lt_lt_prog_compiler_static_F77
16108
16109 # Compiler flag to turn off builtin functions.
16110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16111
16112 # Compiler flag to allow reflexive dlopens.
16113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16114
16115 # Compiler flag to generate shared objects directly from archives.
16116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16117
16118 # Compiler flag to generate thread-safe objects.
16119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16120
16121 # Library versioning type.
16122 version_type=$version_type
16123
16124 # Format of library name prefix.
16125 libname_spec=$lt_libname_spec
16126
16127 # List of archive names.  First name is the real one, the rest are links.
16128 # The last name is the one that the linker finds with -lNAME.
16129 library_names_spec=$lt_library_names_spec
16130
16131 # The coded name of the library, if different from the real name.
16132 soname_spec=$lt_soname_spec
16133
16134 # Commands used to build and install an old-style archive.
16135 RANLIB=$lt_RANLIB
16136 old_archive_cmds=$lt_old_archive_cmds_F77
16137 old_postinstall_cmds=$lt_old_postinstall_cmds
16138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16139
16140 # Create an old-style archive from a shared archive.
16141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16142
16143 # Create a temporary old-style archive to link instead of a shared archive.
16144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16145
16146 # Commands used to build and install a shared archive.
16147 archive_cmds=$lt_archive_cmds_F77
16148 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16149 postinstall_cmds=$lt_postinstall_cmds
16150 postuninstall_cmds=$lt_postuninstall_cmds
16151
16152 # Commands used to build a loadable module (assumed same as above if empty)
16153 module_cmds=$lt_module_cmds_F77
16154 module_expsym_cmds=$lt_module_expsym_cmds_F77
16155
16156 # Commands to strip libraries.
16157 old_striplib=$lt_old_striplib
16158 striplib=$lt_striplib
16159
16160 # Dependencies to place before the objects being linked to create a
16161 # shared library.
16162 predep_objects=$lt_predep_objects_F77
16163
16164 # Dependencies to place after the objects being linked to create a
16165 # shared library.
16166 postdep_objects=$lt_postdep_objects_F77
16167
16168 # Dependencies to place before the objects being linked to create a
16169 # shared library.
16170 predeps=$lt_predeps_F77
16171
16172 # Dependencies to place after the objects being linked to create a
16173 # shared library.
16174 postdeps=$lt_postdeps_F77
16175
16176 # The directories searched by this compiler when creating a shared
16177 # library
16178 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16179
16180 # The library search path used internally by the compiler when linking
16181 # a shared library.
16182 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16183
16184 # Method to check whether dependent libraries are shared objects.
16185 deplibs_check_method=$lt_deplibs_check_method
16186
16187 # Command to use when deplibs_check_method == file_magic.
16188 file_magic_cmd=$lt_file_magic_cmd
16189
16190 # Flag that allows shared libraries with undefined symbols to be built.
16191 allow_undefined_flag=$lt_allow_undefined_flag_F77
16192
16193 # Flag that forces no undefined symbols.
16194 no_undefined_flag=$lt_no_undefined_flag_F77
16195
16196 # Commands used to finish a libtool library installation in a directory.
16197 finish_cmds=$lt_finish_cmds
16198
16199 # Same as above, but a single script fragment to be evaled but not shown.
16200 finish_eval=$lt_finish_eval
16201
16202 # Take the output of nm and produce a listing of raw symbols and C names.
16203 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16204
16205 # Transform the output of nm in a proper C declaration
16206 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16207
16208 # Transform the output of nm in a C name address pair
16209 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16210
16211 # This is the shared library runtime path variable.
16212 runpath_var=$runpath_var
16213
16214 # This is the shared library path variable.
16215 shlibpath_var=$shlibpath_var
16216
16217 # Is shlibpath searched before the hard-coded library search path?
16218 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16219
16220 # How to hardcode a shared library path into an executable.
16221 hardcode_action=$hardcode_action_F77
16222
16223 # Whether we should hardcode library paths into libraries.
16224 hardcode_into_libs=$hardcode_into_libs
16225
16226 # Flag to hardcode \$libdir into a binary during linking.
16227 # This must work even if \$libdir does not exist.
16228 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16229
16230 # If ld is used when linking, flag to hardcode \$libdir into
16231 # a binary during linking. This must work even if \$libdir does
16232 # not exist.
16233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16234
16235 # Whether we need a single -rpath flag with a separated argument.
16236 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16237
16238 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16239 # resulting binary.
16240 hardcode_direct=$hardcode_direct_F77
16241
16242 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16243 # resulting binary.
16244 hardcode_minus_L=$hardcode_minus_L_F77
16245
16246 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16247 # the resulting binary.
16248 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16249
16250 # Set to yes if building a shared library automatically hardcodes DIR into the library
16251 # and all subsequent libraries and executables linked against it.
16252 hardcode_automatic=$hardcode_automatic_F77
16253
16254 # Variables whose values should be saved in libtool wrapper scripts and
16255 # restored at relink time.
16256 variables_saved_for_relink="$variables_saved_for_relink"
16257
16258 # Whether libtool must link a program against all its dependency libraries.
16259 link_all_deplibs=$link_all_deplibs_F77
16260
16261 # Compile-time system search path for libraries
16262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16263
16264 # Run-time system search path for libraries
16265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16266
16267 # Fix the shell variable \$srcfile for the compiler.
16268 fix_srcfile_path=$lt_fix_srcfile_path
16269
16270 # Set to yes if exported symbols are required.
16271 always_export_symbols=$always_export_symbols_F77
16272
16273 # The commands to list exported symbols.
16274 export_symbols_cmds=$lt_export_symbols_cmds_F77
16275
16276 # The commands to extract the exported symbol list from a shared archive.
16277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16278
16279 # Symbols that should not be listed in the preloaded symbols.
16280 exclude_expsyms=$lt_exclude_expsyms_F77
16281
16282 # Symbols that must always be exported.
16283 include_expsyms=$lt_include_expsyms_F77
16284
16285 # ### END LIBTOOL TAG CONFIG: $tagname
16286
16287 __EOF__
16288
16289
16290 else
16291   # If there is no Makefile yet, we rely on a make rule to execute
16292   # `config.status --recheck' to rerun these tests and create the
16293   # libtool script then.
16294   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16295   if test -f "$ltmain_in"; then
16296     test -f Makefile && make "$ltmain"
16297   fi
16298 fi
16299
16300
16301 ac_ext=c
16302 ac_cpp='$CPP $CPPFLAGS'
16303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16306
16307 CC="$lt_save_CC"
16308
16309         else
16310           tagname=""
16311         fi
16312         ;;
16313
16314       GCJ)
16315         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16316
16317
16318 # Source file extension for Java test sources.
16319 ac_ext=java
16320
16321 # Object file extension for compiled Java test sources.
16322 objext=o
16323 objext_GCJ=$objext
16324
16325 # Code to be used in simple compile tests
16326 lt_simple_compile_test_code="class foo {}"
16327
16328 # Code to be used in simple link tests
16329 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16330
16331 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16332
16333 # If no C compiler was specified, use CC.
16334 LTCC=${LTCC-"$CC"}
16335
16336 # If no C compiler flags were specified, use CFLAGS.
16337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16338
16339 # Allow CC to be a program name with arguments.
16340 compiler=$CC
16341
16342
16343 # save warnings/boilerplate of simple test code
16344 ac_outfile=conftest.$ac_objext
16345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16347 _lt_compiler_boilerplate=`cat conftest.err`
16348 $rm conftest*
16349
16350 ac_outfile=conftest.$ac_objext
16351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16353 _lt_linker_boilerplate=`cat conftest.err`
16354 $rm -r conftest*
16355
16356
16357 # Allow CC to be a program name with arguments.
16358 lt_save_CC="$CC"
16359 CC=${GCJ-"gcj"}
16360 compiler=$CC
16361 compiler_GCJ=$CC
16362 for cc_temp in $compiler""; do
16363   case $cc_temp in
16364     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16365     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16366     \-*) ;;
16367     *) break;;
16368   esac
16369 done
16370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16371
16372
16373 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16374 archive_cmds_need_lc_GCJ=no
16375
16376 old_archive_cmds_GCJ=$old_archive_cmds
16377
16378 ## CAVEAT EMPTOR:
16379 ## There is no encapsulation within the following macros, do not change
16380 ## the running order or otherwise move them around unless you know exactly
16381 ## what you are doing...
16382
16383 lt_prog_compiler_no_builtin_flag_GCJ=
16384
16385 if test "$GCC" = yes; then
16386   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16387
16388
16389 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16390 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16392   $as_echo_n "(cached) " >&6
16393 else
16394   lt_cv_prog_compiler_rtti_exceptions=no
16395   ac_outfile=conftest.$ac_objext
16396    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16397    lt_compiler_flag="-fno-rtti -fno-exceptions"
16398    # Insert the option either (1) after the last *FLAGS variable, or
16399    # (2) before a word containing "conftest.", or (3) at the end.
16400    # Note that $ac_compile itself does not contain backslashes and begins
16401    # with a dollar sign (not a hyphen), so the echo should work correctly.
16402    # The option is referenced via a variable to avoid confusing sed.
16403    lt_compile=`echo "$ac_compile" | $SED \
16404    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16406    -e 's:$: $lt_compiler_flag:'`
16407    (eval echo "\"\$as_me:16407: $lt_compile\"" >&5)
16408    (eval "$lt_compile" 2>conftest.err)
16409    ac_status=$?
16410    cat conftest.err >&5
16411    echo "$as_me:16411: \$? = $ac_status" >&5
16412    if (exit $ac_status) && test -s "$ac_outfile"; then
16413      # The compiler can only warn and ignore the option if not recognized
16414      # So say no if there are warnings other than the usual output.
16415      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16416      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16417      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16418        lt_cv_prog_compiler_rtti_exceptions=yes
16419      fi
16420    fi
16421    $rm conftest*
16422
16423 fi
16424 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16425 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16426
16427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16428     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16429 else
16430     :
16431 fi
16432
16433 fi
16434
16435 lt_prog_compiler_wl_GCJ=
16436 lt_prog_compiler_pic_GCJ=
16437 lt_prog_compiler_static_GCJ=
16438
16439 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16441
16442   if test "$GCC" = yes; then
16443     lt_prog_compiler_wl_GCJ='-Wl,'
16444     lt_prog_compiler_static_GCJ='-static'
16445
16446     case $host_os in
16447       aix*)
16448       # All AIX code is PIC.
16449       if test "$host_cpu" = ia64; then
16450         # AIX 5 now supports IA64 processor
16451         lt_prog_compiler_static_GCJ='-Bstatic'
16452       fi
16453       ;;
16454
16455     amigaos*)
16456       # FIXME: we need at least 68020 code to build shared libraries, but
16457       # adding the `-m68020' flag to GCC prevents building anything better,
16458       # like `-m68040'.
16459       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16460       ;;
16461
16462     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16463       # PIC is the default for these OSes.
16464       ;;
16465
16466     mingw* | cygwin* | pw32* | os2*)
16467       # This hack is so that the source file can tell whether it is being
16468       # built for inclusion in a dll (and should export symbols for example).
16469       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16470       # (--disable-auto-import) libraries
16471
16472       ;;
16473
16474     darwin* | rhapsody*)
16475       # PIC is the default on this platform
16476       # Common symbols not allowed in MH_DYLIB files
16477       lt_prog_compiler_pic_GCJ='-fno-common'
16478       ;;
16479
16480     interix[3-9]*)
16481       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16482       # Instead, we relocate shared libraries at runtime.
16483       ;;
16484
16485     msdosdjgpp*)
16486       # Just because we use GCC doesn't mean we suddenly get shared libraries
16487       # on systems that don't support them.
16488       lt_prog_compiler_can_build_shared_GCJ=no
16489       enable_shared=no
16490       ;;
16491
16492     sysv4*MP*)
16493       if test -d /usr/nec; then
16494         lt_prog_compiler_pic_GCJ=-Kconform_pic
16495       fi
16496       ;;
16497
16498     hpux*)
16499       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16500       # not for PA HP-UX.
16501       case $host_cpu in
16502       hppa*64*|ia64*)
16503         # +Z the default
16504         ;;
16505       *)
16506         lt_prog_compiler_pic_GCJ='-fPIC'
16507         ;;
16508       esac
16509       ;;
16510
16511     *)
16512       lt_prog_compiler_pic_GCJ='-fPIC'
16513       ;;
16514     esac
16515   else
16516     # PORTME Check for flag to pass linker flags through the system compiler.
16517     case $host_os in
16518     aix*)
16519       lt_prog_compiler_wl_GCJ='-Wl,'
16520       if test "$host_cpu" = ia64; then
16521         # AIX 5 now supports IA64 processor
16522         lt_prog_compiler_static_GCJ='-Bstatic'
16523       else
16524         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16525       fi
16526       ;;
16527       darwin*)
16528         # PIC is the default on this platform
16529         # Common symbols not allowed in MH_DYLIB files
16530        case $cc_basename in
16531          xlc*)
16532          lt_prog_compiler_pic_GCJ='-qnocommon'
16533          lt_prog_compiler_wl_GCJ='-Wl,'
16534          ;;
16535        esac
16536        ;;
16537
16538     mingw* | cygwin* | pw32* | os2*)
16539       # This hack is so that the source file can tell whether it is being
16540       # built for inclusion in a dll (and should export symbols for example).
16541
16542       ;;
16543
16544     hpux9* | hpux10* | hpux11*)
16545       lt_prog_compiler_wl_GCJ='-Wl,'
16546       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16547       # not for PA HP-UX.
16548       case $host_cpu in
16549       hppa*64*|ia64*)
16550         # +Z the default
16551         ;;
16552       *)
16553         lt_prog_compiler_pic_GCJ='+Z'
16554         ;;
16555       esac
16556       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16557       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16558       ;;
16559
16560     irix5* | irix6* | nonstopux*)
16561       lt_prog_compiler_wl_GCJ='-Wl,'
16562       # PIC (with -KPIC) is the default.
16563       lt_prog_compiler_static_GCJ='-non_shared'
16564       ;;
16565
16566     newsos6)
16567       lt_prog_compiler_pic_GCJ='-KPIC'
16568       lt_prog_compiler_static_GCJ='-Bstatic'
16569       ;;
16570
16571     linux* | k*bsd*-gnu)
16572       case $cc_basename in
16573       icc* | ecc*)
16574         lt_prog_compiler_wl_GCJ='-Wl,'
16575         lt_prog_compiler_pic_GCJ='-KPIC'
16576         lt_prog_compiler_static_GCJ='-static'
16577         ;;
16578       pgcc* | pgf77* | pgf90* | pgf95*)
16579         # Portland Group compilers (*not* the Pentium gcc compiler,
16580         # which looks to be a dead project)
16581         lt_prog_compiler_wl_GCJ='-Wl,'
16582         lt_prog_compiler_pic_GCJ='-fpic'
16583         lt_prog_compiler_static_GCJ='-Bstatic'
16584         ;;
16585       ccc*)
16586         lt_prog_compiler_wl_GCJ='-Wl,'
16587         # All Alpha code is PIC.
16588         lt_prog_compiler_static_GCJ='-non_shared'
16589         ;;
16590       *)
16591         case `$CC -V 2>&1 | sed 5q` in
16592         *Sun\ C*)
16593           # Sun C 5.9
16594           lt_prog_compiler_pic_GCJ='-KPIC'
16595           lt_prog_compiler_static_GCJ='-Bstatic'
16596           lt_prog_compiler_wl_GCJ='-Wl,'
16597           ;;
16598         *Sun\ F*)
16599           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16600           lt_prog_compiler_pic_GCJ='-KPIC'
16601           lt_prog_compiler_static_GCJ='-Bstatic'
16602           lt_prog_compiler_wl_GCJ=''
16603           ;;
16604         esac
16605         ;;
16606       esac
16607       ;;
16608
16609     osf3* | osf4* | osf5*)
16610       lt_prog_compiler_wl_GCJ='-Wl,'
16611       # All OSF/1 code is PIC.
16612       lt_prog_compiler_static_GCJ='-non_shared'
16613       ;;
16614
16615     rdos*)
16616       lt_prog_compiler_static_GCJ='-non_shared'
16617       ;;
16618
16619     solaris*)
16620       lt_prog_compiler_pic_GCJ='-KPIC'
16621       lt_prog_compiler_static_GCJ='-Bstatic'
16622       case $cc_basename in
16623       f77* | f90* | f95*)
16624         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16625       *)
16626         lt_prog_compiler_wl_GCJ='-Wl,';;
16627       esac
16628       ;;
16629
16630     sunos4*)
16631       lt_prog_compiler_wl_GCJ='-Qoption ld '
16632       lt_prog_compiler_pic_GCJ='-PIC'
16633       lt_prog_compiler_static_GCJ='-Bstatic'
16634       ;;
16635
16636     sysv4 | sysv4.2uw2* | sysv4.3*)
16637       lt_prog_compiler_wl_GCJ='-Wl,'
16638       lt_prog_compiler_pic_GCJ='-KPIC'
16639       lt_prog_compiler_static_GCJ='-Bstatic'
16640       ;;
16641
16642     sysv4*MP*)
16643       if test -d /usr/nec ;then
16644         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16645         lt_prog_compiler_static_GCJ='-Bstatic'
16646       fi
16647       ;;
16648
16649     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16650       lt_prog_compiler_wl_GCJ='-Wl,'
16651       lt_prog_compiler_pic_GCJ='-KPIC'
16652       lt_prog_compiler_static_GCJ='-Bstatic'
16653       ;;
16654
16655     unicos*)
16656       lt_prog_compiler_wl_GCJ='-Wl,'
16657       lt_prog_compiler_can_build_shared_GCJ=no
16658       ;;
16659
16660     uts4*)
16661       lt_prog_compiler_pic_GCJ='-pic'
16662       lt_prog_compiler_static_GCJ='-Bstatic'
16663       ;;
16664
16665     *)
16666       lt_prog_compiler_can_build_shared_GCJ=no
16667       ;;
16668     esac
16669   fi
16670
16671 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16672 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16673
16674 #
16675 # Check to make sure the PIC flag actually works.
16676 #
16677 if test -n "$lt_prog_compiler_pic_GCJ"; then
16678
16679 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16680 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16681 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16682   $as_echo_n "(cached) " >&6
16683 else
16684   lt_cv_prog_compiler_pic_works_GCJ=no
16685   ac_outfile=conftest.$ac_objext
16686    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16687    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16688    # Insert the option either (1) after the last *FLAGS variable, or
16689    # (2) before a word containing "conftest.", or (3) at the end.
16690    # Note that $ac_compile itself does not contain backslashes and begins
16691    # with a dollar sign (not a hyphen), so the echo should work correctly.
16692    # The option is referenced via a variable to avoid confusing sed.
16693    lt_compile=`echo "$ac_compile" | $SED \
16694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16696    -e 's:$: $lt_compiler_flag:'`
16697    (eval echo "\"\$as_me:16697: $lt_compile\"" >&5)
16698    (eval "$lt_compile" 2>conftest.err)
16699    ac_status=$?
16700    cat conftest.err >&5
16701    echo "$as_me:16701: \$? = $ac_status" >&5
16702    if (exit $ac_status) && test -s "$ac_outfile"; then
16703      # The compiler can only warn and ignore the option if not recognized
16704      # So say no if there are warnings other than the usual output.
16705      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16708        lt_cv_prog_compiler_pic_works_GCJ=yes
16709      fi
16710    fi
16711    $rm conftest*
16712
16713 fi
16714 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16715 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16716
16717 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16718     case $lt_prog_compiler_pic_GCJ in
16719      "" | " "*) ;;
16720      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16721      esac
16722 else
16723     lt_prog_compiler_pic_GCJ=
16724      lt_prog_compiler_can_build_shared_GCJ=no
16725 fi
16726
16727 fi
16728 case $host_os in
16729   # For platforms which do not support PIC, -DPIC is meaningless:
16730   *djgpp*)
16731     lt_prog_compiler_pic_GCJ=
16732     ;;
16733   *)
16734     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16735     ;;
16736 esac
16737
16738 #
16739 # Check to make sure the static flag actually works.
16740 #
16741 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16742 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16743 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16744 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16745   $as_echo_n "(cached) " >&6
16746 else
16747   lt_cv_prog_compiler_static_works_GCJ=no
16748    save_LDFLAGS="$LDFLAGS"
16749    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16750    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16751    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16752      # The linker can only warn and ignore the option if not recognized
16753      # So say no if there are warnings
16754      if test -s conftest.err; then
16755        # Append any errors to the config.log.
16756        cat conftest.err 1>&5
16757        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16758        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16759        if diff conftest.exp conftest.er2 >/dev/null; then
16760          lt_cv_prog_compiler_static_works_GCJ=yes
16761        fi
16762      else
16763        lt_cv_prog_compiler_static_works_GCJ=yes
16764      fi
16765    fi
16766    $rm -r conftest*
16767    LDFLAGS="$save_LDFLAGS"
16768
16769 fi
16770 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16771 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16772
16773 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16774     :
16775 else
16776     lt_prog_compiler_static_GCJ=
16777 fi
16778
16779
16780 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16782 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16783   $as_echo_n "(cached) " >&6
16784 else
16785   lt_cv_prog_compiler_c_o_GCJ=no
16786    $rm -r conftest 2>/dev/null
16787    mkdir conftest
16788    cd conftest
16789    mkdir out
16790    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16791
16792    lt_compiler_flag="-o out/conftest2.$ac_objext"
16793    # Insert the option either (1) after the last *FLAGS variable, or
16794    # (2) before a word containing "conftest.", or (3) at the end.
16795    # Note that $ac_compile itself does not contain backslashes and begins
16796    # with a dollar sign (not a hyphen), so the echo should work correctly.
16797    lt_compile=`echo "$ac_compile" | $SED \
16798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16800    -e 's:$: $lt_compiler_flag:'`
16801    (eval echo "\"\$as_me:16801: $lt_compile\"" >&5)
16802    (eval "$lt_compile" 2>out/conftest.err)
16803    ac_status=$?
16804    cat out/conftest.err >&5
16805    echo "$as_me:16805: \$? = $ac_status" >&5
16806    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16807    then
16808      # The compiler can only warn and ignore the option if not recognized
16809      # So say no if there are warnings
16810      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16811      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16812      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16813        lt_cv_prog_compiler_c_o_GCJ=yes
16814      fi
16815    fi
16816    chmod u+w . 2>&5
16817    $rm conftest*
16818    # SGI C++ compiler will create directory out/ii_files/ for
16819    # template instantiation
16820    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16821    $rm out/* && rmdir out
16822    cd ..
16823    rmdir conftest
16824    $rm conftest*
16825
16826 fi
16827 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16828 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16829
16830
16831 hard_links="nottested"
16832 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16833   # do not overwrite the value of need_locks provided by the user
16834   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16835 $as_echo_n "checking if we can lock with hard links... " >&6; }
16836   hard_links=yes
16837   $rm conftest*
16838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16839   touch conftest.a
16840   ln conftest.a conftest.b 2>&5 || hard_links=no
16841   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16842   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16843 $as_echo "$hard_links" >&6; }
16844   if test "$hard_links" = no; then
16845     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16846 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16847     need_locks=warn
16848   fi
16849 else
16850   need_locks=no
16851 fi
16852
16853 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16855
16856   runpath_var=
16857   allow_undefined_flag_GCJ=
16858   enable_shared_with_static_runtimes_GCJ=no
16859   archive_cmds_GCJ=
16860   archive_expsym_cmds_GCJ=
16861   old_archive_From_new_cmds_GCJ=
16862   old_archive_from_expsyms_cmds_GCJ=
16863   export_dynamic_flag_spec_GCJ=
16864   whole_archive_flag_spec_GCJ=
16865   thread_safe_flag_spec_GCJ=
16866   hardcode_libdir_flag_spec_GCJ=
16867   hardcode_libdir_flag_spec_ld_GCJ=
16868   hardcode_libdir_separator_GCJ=
16869   hardcode_direct_GCJ=no
16870   hardcode_minus_L_GCJ=no
16871   hardcode_shlibpath_var_GCJ=unsupported
16872   link_all_deplibs_GCJ=unknown
16873   hardcode_automatic_GCJ=no
16874   module_cmds_GCJ=
16875   module_expsym_cmds_GCJ=
16876   always_export_symbols_GCJ=no
16877   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16878   # include_expsyms should be a list of space-separated symbols to be *always*
16879   # included in the symbol list
16880   include_expsyms_GCJ=
16881   # exclude_expsyms can be an extended regexp of symbols to exclude
16882   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16883   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16884   # as well as any symbol that contains `d'.
16885   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16886   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16887   # platforms (ab)use it in PIC code, but their linkers get confused if
16888   # the symbol is explicitly referenced.  Since portable code cannot
16889   # rely on this symbol name, it's probably fine to never include it in
16890   # preloaded symbol tables.
16891   # Exclude shared library initialization/finalization symbols.
16892   extract_expsyms_cmds=
16893   # Just being paranoid about ensuring that cc_basename is set.
16894   for cc_temp in $compiler""; do
16895   case $cc_temp in
16896     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16897     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16898     \-*) ;;
16899     *) break;;
16900   esac
16901 done
16902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16903
16904   case $host_os in
16905   cygwin* | mingw* | pw32*)
16906     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16907     # When not using gcc, we currently assume that we are using
16908     # Microsoft Visual C++.
16909     if test "$GCC" != yes; then
16910       with_gnu_ld=no
16911     fi
16912     ;;
16913   interix*)
16914     # we just hope/assume this is gcc and not c89 (= MSVC++)
16915     with_gnu_ld=yes
16916     ;;
16917   openbsd*)
16918     with_gnu_ld=no
16919     ;;
16920   esac
16921
16922   ld_shlibs_GCJ=yes
16923   if test "$with_gnu_ld" = yes; then
16924     # If archive_cmds runs LD, not CC, wlarc should be empty
16925     wlarc='${wl}'
16926
16927     # Set some defaults for GNU ld with shared library support. These
16928     # are reset later if shared libraries are not supported. Putting them
16929     # here allows them to be overridden if necessary.
16930     runpath_var=LD_RUN_PATH
16931     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16932     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16933     # ancient GNU ld didn't support --whole-archive et. al.
16934     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16935         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16936       else
16937         whole_archive_flag_spec_GCJ=
16938     fi
16939     supports_anon_versioning=no
16940     case `$LD -v 2>/dev/null` in
16941       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16942       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16943       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16944       *\ 2.11.*) ;; # other 2.11 versions
16945       *) supports_anon_versioning=yes ;;
16946     esac
16947
16948     # See if GNU ld supports shared libraries.
16949     case $host_os in
16950     aix[3-9]*)
16951       # On AIX/PPC, the GNU linker is very broken
16952       if test "$host_cpu" != ia64; then
16953         ld_shlibs_GCJ=no
16954         cat <<EOF 1>&2
16955
16956 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16957 *** to be unable to reliably create shared libraries on AIX.
16958 *** Therefore, libtool is disabling shared libraries support.  If you
16959 *** really care for shared libraries, you may want to modify your PATH
16960 *** so that a non-GNU linker is found, and then restart.
16961
16962 EOF
16963       fi
16964       ;;
16965
16966     amigaos*)
16967       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)'
16968       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16969       hardcode_minus_L_GCJ=yes
16970
16971       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16972       # that the semantics of dynamic libraries on AmigaOS, at least up
16973       # to version 4, is to share data among multiple programs linked
16974       # with the same dynamic library.  Since this doesn't match the
16975       # behavior of shared libraries on other platforms, we can't use
16976       # them.
16977       ld_shlibs_GCJ=no
16978       ;;
16979
16980     beos*)
16981       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16982         allow_undefined_flag_GCJ=unsupported
16983         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16984         # support --undefined.  This deserves some investigation.  FIXME
16985         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16986       else
16987         ld_shlibs_GCJ=no
16988       fi
16989       ;;
16990
16991     cygwin* | mingw* | pw32*)
16992       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16993       # as there is no search path for DLLs.
16994       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16995       allow_undefined_flag_GCJ=unsupported
16996       always_export_symbols_GCJ=no
16997       enable_shared_with_static_runtimes_GCJ=yes
16998       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16999
17000       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17001         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17002         # If the export-symbols file already is a .def file (1st line
17003         # is EXPORTS), use it as is; otherwise, prepend...
17004         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17005           cp $export_symbols $output_objdir/$soname.def;
17006         else
17007           echo EXPORTS > $output_objdir/$soname.def;
17008           cat $export_symbols >> $output_objdir/$soname.def;
17009         fi~
17010         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17011       else
17012         ld_shlibs_GCJ=no
17013       fi
17014       ;;
17015
17016     interix[3-9]*)
17017       hardcode_direct_GCJ=no
17018       hardcode_shlibpath_var_GCJ=no
17019       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17020       export_dynamic_flag_spec_GCJ='${wl}-E'
17021       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17022       # Instead, shared libraries are loaded at an image base (0x10000000 by
17023       # default) and relocated if they conflict, which is a slow very memory
17024       # consuming and fragmenting process.  To avoid this, we pick a random,
17025       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17026       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17027       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'
17028       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'
17029       ;;
17030
17031     gnu* | linux* | k*bsd*-gnu)
17032       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17033         tmp_addflag=
17034         case $cc_basename,$host_cpu in
17035         pgcc*)                          # Portland Group C compiler
17036           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'
17037           tmp_addflag=' $pic_flag'
17038           ;;
17039         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17040           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'
17041           tmp_addflag=' $pic_flag -Mnomain' ;;
17042         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17043           tmp_addflag=' -i_dynamic' ;;
17044         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17045           tmp_addflag=' -i_dynamic -nofor_main' ;;
17046         ifc* | ifort*)                  # Intel Fortran compiler
17047           tmp_addflag=' -nofor_main' ;;
17048         esac
17049         case `$CC -V 2>&1 | sed 5q` in
17050         *Sun\ C*)                       # Sun C 5.9
17051           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'
17052           tmp_sharedflag='-G' ;;
17053         *Sun\ F*)                       # Sun Fortran 8.3
17054           tmp_sharedflag='-G' ;;
17055         *)
17056           tmp_sharedflag='-shared' ;;
17057         esac
17058         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17059
17060         if test $supports_anon_versioning = yes; then
17061           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17062   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17063   $echo "local: *; };" >> $output_objdir/$libname.ver~
17064           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17065         fi
17066       else
17067         ld_shlibs_GCJ=no
17068       fi
17069       ;;
17070
17071     netbsd*)
17072       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17073         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17074         wlarc=
17075       else
17076         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17078       fi
17079       ;;
17080
17081     solaris*)
17082       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17083         ld_shlibs_GCJ=no
17084         cat <<EOF 1>&2
17085
17086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17087 *** create shared libraries on Solaris systems.  Therefore, libtool
17088 *** is disabling shared libraries support.  We urge you to upgrade GNU
17089 *** binutils to release 2.9.1 or newer.  Another option is to modify
17090 *** your PATH or compiler configuration so that the native linker is
17091 *** used, and then restart.
17092
17093 EOF
17094       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17095         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17096         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17097       else
17098         ld_shlibs_GCJ=no
17099       fi
17100       ;;
17101
17102     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17103       case `$LD -v 2>&1` in
17104         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17105         ld_shlibs_GCJ=no
17106         cat <<_LT_EOF 1>&2
17107
17108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17109 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17110 *** is disabling shared libraries support.  We urge you to upgrade GNU
17111 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17112 *** your PATH or compiler configuration so that the native linker is
17113 *** used, and then restart.
17114
17115 _LT_EOF
17116         ;;
17117         *)
17118           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17120             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17121             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17122           else
17123             ld_shlibs_GCJ=no
17124           fi
17125         ;;
17126       esac
17127       ;;
17128
17129     sunos4*)
17130       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17131       wlarc=
17132       hardcode_direct_GCJ=yes
17133       hardcode_shlibpath_var_GCJ=no
17134       ;;
17135
17136     *)
17137       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17138         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17139         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17140       else
17141         ld_shlibs_GCJ=no
17142       fi
17143       ;;
17144     esac
17145
17146     if test "$ld_shlibs_GCJ" = no; then
17147       runpath_var=
17148       hardcode_libdir_flag_spec_GCJ=
17149       export_dynamic_flag_spec_GCJ=
17150       whole_archive_flag_spec_GCJ=
17151     fi
17152   else
17153     # PORTME fill in a description of your system's linker (not GNU ld)
17154     case $host_os in
17155     aix3*)
17156       allow_undefined_flag_GCJ=unsupported
17157       always_export_symbols_GCJ=yes
17158       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'
17159       # Note: this linker hardcodes the directories in LIBPATH if there
17160       # are no directories specified by -L.
17161       hardcode_minus_L_GCJ=yes
17162       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17163         # Neither direct hardcoding nor static linking is supported with a
17164         # broken collect2.
17165         hardcode_direct_GCJ=unsupported
17166       fi
17167       ;;
17168
17169     aix[4-9]*)
17170       if test "$host_cpu" = ia64; then
17171         # On IA64, the linker does run time linking by default, so we don't
17172         # have to do anything special.
17173         aix_use_runtimelinking=no
17174         exp_sym_flag='-Bexport'
17175         no_entry_flag=""
17176       else
17177         # If we're using GNU nm, then we don't want the "-C" option.
17178         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17179         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17180           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'
17181         else
17182           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'
17183         fi
17184         aix_use_runtimelinking=no
17185
17186         # Test if we are trying to use run time linking or normal
17187         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17188         # need to do runtime linking.
17189         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17190           for ld_flag in $LDFLAGS; do
17191           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17192             aix_use_runtimelinking=yes
17193             break
17194           fi
17195           done
17196           ;;
17197         esac
17198
17199         exp_sym_flag='-bexport'
17200         no_entry_flag='-bnoentry'
17201       fi
17202
17203       # When large executables or shared objects are built, AIX ld can
17204       # have problems creating the table of contents.  If linking a library
17205       # or program results in "error TOC overflow" add -mminimal-toc to
17206       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17207       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17208
17209       archive_cmds_GCJ=''
17210       hardcode_direct_GCJ=yes
17211       hardcode_libdir_separator_GCJ=':'
17212       link_all_deplibs_GCJ=yes
17213
17214       if test "$GCC" = yes; then
17215         case $host_os in aix4.[012]|aix4.[012].*)
17216         # We only want to do this on AIX 4.2 and lower, the check
17217         # below for broken collect2 doesn't work under 4.3+
17218           collect2name=`${CC} -print-prog-name=collect2`
17219           if test -f "$collect2name" && \
17220            strings "$collect2name" | grep resolve_lib_name >/dev/null
17221           then
17222           # We have reworked collect2
17223           :
17224           else
17225           # We have old collect2
17226           hardcode_direct_GCJ=unsupported
17227           # It fails to find uninstalled libraries when the uninstalled
17228           # path is not listed in the libpath.  Setting hardcode_minus_L
17229           # to unsupported forces relinking
17230           hardcode_minus_L_GCJ=yes
17231           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17232           hardcode_libdir_separator_GCJ=
17233           fi
17234           ;;
17235         esac
17236         shared_flag='-shared'
17237         if test "$aix_use_runtimelinking" = yes; then
17238           shared_flag="$shared_flag "'${wl}-G'
17239         fi
17240       else
17241         # not using gcc
17242         if test "$host_cpu" = ia64; then
17243         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17244         # chokes on -Wl,-G. The following line is correct:
17245           shared_flag='-G'
17246         else
17247           if test "$aix_use_runtimelinking" = yes; then
17248             shared_flag='${wl}-G'
17249           else
17250             shared_flag='${wl}-bM:SRE'
17251           fi
17252         fi
17253       fi
17254
17255       # It seems that -bexpall does not export symbols beginning with
17256       # underscore (_), so it is better to generate a list of symbols to export.
17257       always_export_symbols_GCJ=yes
17258       if test "$aix_use_runtimelinking" = yes; then
17259         # Warning - without using the other runtime loading flags (-brtl),
17260         # -berok will link without error, but may produce a broken library.
17261         allow_undefined_flag_GCJ='-berok'
17262        # Determine the default libpath from the value encoded in an empty executable.
17263        cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h.  */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h.  */
17269
17270 int
17271 main ()
17272 {
17273
17274   ;
17275   return 0;
17276 }
17277 _ACEOF
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (ac_try="$ac_link"
17280 case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17285 $as_echo "$ac_try_echo") >&5
17286   (eval "$ac_link") 2>conftest.er1
17287   ac_status=$?
17288   grep -v '^ *+' conftest.er1 >conftest.err
17289   rm -f conftest.er1
17290   cat conftest.err >&5
17291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } && {
17293          test -z "$ac_c_werror_flag" ||
17294          test ! -s conftest.err
17295        } && test -s conftest$ac_exeext && {
17296          test "$cross_compiling" = yes ||
17297          $as_test_x conftest$ac_exeext
17298        }; then
17299
17300 lt_aix_libpath_sed='
17301     /Import File Strings/,/^$/ {
17302         /^0/ {
17303             s/^0  *\(.*\)$/\1/
17304             p
17305         }
17306     }'
17307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17308 # Check for a 64-bit object if we didn't find anything.
17309 if test -z "$aix_libpath"; then
17310   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17311 fi
17312 else
17313   $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316
17317 fi
17318
17319 rm -rf conftest.dSYM
17320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17321       conftest$ac_exeext conftest.$ac_ext
17322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17323
17324        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17325         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"
17326        else
17327         if test "$host_cpu" = ia64; then
17328           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17329           allow_undefined_flag_GCJ="-z nodefs"
17330           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"
17331         else
17332          # Determine the default libpath from the value encoded in an empty executable.
17333          cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h.  */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h.  */
17339
17340 int
17341 main ()
17342 {
17343
17344   ;
17345   return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (ac_try="$ac_link"
17350 case "(($ac_try" in
17351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352   *) ac_try_echo=$ac_try;;
17353 esac
17354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17355 $as_echo "$ac_try_echo") >&5
17356   (eval "$ac_link") 2>conftest.er1
17357   ac_status=$?
17358   grep -v '^ *+' conftest.er1 >conftest.err
17359   rm -f conftest.er1
17360   cat conftest.err >&5
17361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); } && {
17363          test -z "$ac_c_werror_flag" ||
17364          test ! -s conftest.err
17365        } && test -s conftest$ac_exeext && {
17366          test "$cross_compiling" = yes ||
17367          $as_test_x conftest$ac_exeext
17368        }; then
17369
17370 lt_aix_libpath_sed='
17371     /Import File Strings/,/^$/ {
17372         /^0/ {
17373             s/^0  *\(.*\)$/\1/
17374             p
17375         }
17376     }'
17377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17378 # Check for a 64-bit object if we didn't find anything.
17379 if test -z "$aix_libpath"; then
17380   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17381 fi
17382 else
17383   $as_echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386
17387 fi
17388
17389 rm -rf conftest.dSYM
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391       conftest$ac_exeext conftest.$ac_ext
17392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17393
17394          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17395           # Warning - without using the other run time loading flags,
17396           # -berok will link without error, but may produce a broken library.
17397           no_undefined_flag_GCJ=' ${wl}-bernotok'
17398           allow_undefined_flag_GCJ=' ${wl}-berok'
17399           # Exported symbols can be pulled into shared objects from archives
17400           whole_archive_flag_spec_GCJ='$convenience'
17401           archive_cmds_need_lc_GCJ=yes
17402           # This is similar to how AIX traditionally builds its shared libraries.
17403           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'
17404         fi
17405       fi
17406       ;;
17407
17408     amigaos*)
17409       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)'
17410       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411       hardcode_minus_L_GCJ=yes
17412       # see comment about different semantics on the GNU ld section
17413       ld_shlibs_GCJ=no
17414       ;;
17415
17416     bsdi[45]*)
17417       export_dynamic_flag_spec_GCJ=-rdynamic
17418       ;;
17419
17420     cygwin* | mingw* | pw32*)
17421       # When not using gcc, we currently assume that we are using
17422       # Microsoft Visual C++.
17423       # hardcode_libdir_flag_spec is actually meaningless, as there is
17424       # no search path for DLLs.
17425       hardcode_libdir_flag_spec_GCJ=' '
17426       allow_undefined_flag_GCJ=unsupported
17427       # Tell ltmain to make .lib files, not .a files.
17428       libext=lib
17429       # Tell ltmain to make .dll files, not .so files.
17430       shrext_cmds=".dll"
17431       # FIXME: Setting linknames here is a bad hack.
17432       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17433       # The linker will automatically build a .lib file if we build a DLL.
17434       old_archive_From_new_cmds_GCJ='true'
17435       # FIXME: Should let the user specify the lib program.
17436       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17437       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17438       enable_shared_with_static_runtimes_GCJ=yes
17439       ;;
17440
17441     darwin* | rhapsody*)
17442       case $host_os in
17443         rhapsody* | darwin1.[012])
17444          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17445          ;;
17446        *) # Darwin 1.3 on
17447          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17448            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17449          else
17450            case ${MACOSX_DEPLOYMENT_TARGET} in
17451              10.[012])
17452                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17453                ;;
17454              10.*)
17455                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17456                ;;
17457            esac
17458          fi
17459          ;;
17460       esac
17461       archive_cmds_need_lc_GCJ=no
17462       hardcode_direct_GCJ=no
17463       hardcode_automatic_GCJ=yes
17464       hardcode_shlibpath_var_GCJ=unsupported
17465       whole_archive_flag_spec_GCJ=''
17466       link_all_deplibs_GCJ=yes
17467     if test "$GCC" = yes ; then
17468         output_verbose_link_cmd='echo'
17469         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}"
17470         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17471         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}"
17472         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}"
17473     else
17474       case $cc_basename in
17475         xlc*)
17476          output_verbose_link_cmd='echo'
17477          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17478          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17479           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17480          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}'
17481           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}'
17482           ;;
17483        *)
17484          ld_shlibs_GCJ=no
17485           ;;
17486       esac
17487     fi
17488       ;;
17489
17490     dgux*)
17491       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17492       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17493       hardcode_shlibpath_var_GCJ=no
17494       ;;
17495
17496     freebsd1*)
17497       ld_shlibs_GCJ=no
17498       ;;
17499
17500     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17501     # support.  Future versions do this automatically, but an explicit c++rt0.o
17502     # does not break anything, and helps significantly (at the cost of a little
17503     # extra space).
17504     freebsd2.2*)
17505       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17506       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17507       hardcode_direct_GCJ=yes
17508       hardcode_shlibpath_var_GCJ=no
17509       ;;
17510
17511     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17512     freebsd2*)
17513       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17514       hardcode_direct_GCJ=yes
17515       hardcode_minus_L_GCJ=yes
17516       hardcode_shlibpath_var_GCJ=no
17517       ;;
17518
17519     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17520     freebsd* | dragonfly*)
17521       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17522       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17523       hardcode_direct_GCJ=yes
17524       hardcode_shlibpath_var_GCJ=no
17525       ;;
17526
17527     hpux9*)
17528       if test "$GCC" = yes; then
17529         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'
17530       else
17531         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'
17532       fi
17533       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17534       hardcode_libdir_separator_GCJ=:
17535       hardcode_direct_GCJ=yes
17536
17537       # hardcode_minus_L: Not really in the search PATH,
17538       # but as the default location of the library.
17539       hardcode_minus_L_GCJ=yes
17540       export_dynamic_flag_spec_GCJ='${wl}-E'
17541       ;;
17542
17543     hpux10*)
17544       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17545         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17546       else
17547         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17548       fi
17549       if test "$with_gnu_ld" = no; then
17550         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17551         hardcode_libdir_separator_GCJ=:
17552
17553         hardcode_direct_GCJ=yes
17554         export_dynamic_flag_spec_GCJ='${wl}-E'
17555
17556         # hardcode_minus_L: Not really in the search PATH,
17557         # but as the default location of the library.
17558         hardcode_minus_L_GCJ=yes
17559       fi
17560       ;;
17561
17562     hpux11*)
17563       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17564         case $host_cpu in
17565         hppa*64*)
17566           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17567           ;;
17568         ia64*)
17569           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17570           ;;
17571         *)
17572           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17573           ;;
17574         esac
17575       else
17576         case $host_cpu in
17577         hppa*64*)
17578           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17579           ;;
17580         ia64*)
17581           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17582           ;;
17583         *)
17584           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17585           ;;
17586         esac
17587       fi
17588       if test "$with_gnu_ld" = no; then
17589         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17590         hardcode_libdir_separator_GCJ=:
17591
17592         case $host_cpu in
17593         hppa*64*|ia64*)
17594           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17595           hardcode_direct_GCJ=no
17596           hardcode_shlibpath_var_GCJ=no
17597           ;;
17598         *)
17599           hardcode_direct_GCJ=yes
17600           export_dynamic_flag_spec_GCJ='${wl}-E'
17601
17602           # hardcode_minus_L: Not really in the search PATH,
17603           # but as the default location of the library.
17604           hardcode_minus_L_GCJ=yes
17605           ;;
17606         esac
17607       fi
17608       ;;
17609
17610     irix5* | irix6* | nonstopux*)
17611       if test "$GCC" = yes; then
17612         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'
17613       else
17614         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'
17615         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17616       fi
17617       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17618       hardcode_libdir_separator_GCJ=:
17619       link_all_deplibs_GCJ=yes
17620       ;;
17621
17622     netbsd*)
17623       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17624         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17625       else
17626         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17627       fi
17628       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17629       hardcode_direct_GCJ=yes
17630       hardcode_shlibpath_var_GCJ=no
17631       ;;
17632
17633     newsos6)
17634       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17635       hardcode_direct_GCJ=yes
17636       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17637       hardcode_libdir_separator_GCJ=:
17638       hardcode_shlibpath_var_GCJ=no
17639       ;;
17640
17641     openbsd*)
17642       if test -f /usr/libexec/ld.so; then
17643         hardcode_direct_GCJ=yes
17644         hardcode_shlibpath_var_GCJ=no
17645         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17646           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17647           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17648           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17649           export_dynamic_flag_spec_GCJ='${wl}-E'
17650         else
17651           case $host_os in
17652            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17653              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17654              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17655              ;;
17656            *)
17657              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17658              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17659              ;;
17660           esac
17661         fi
17662       else
17663         ld_shlibs_GCJ=no
17664       fi
17665       ;;
17666
17667     os2*)
17668       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17669       hardcode_minus_L_GCJ=yes
17670       allow_undefined_flag_GCJ=unsupported
17671       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'
17672       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17673       ;;
17674
17675     osf3*)
17676       if test "$GCC" = yes; then
17677         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17678         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'
17679       else
17680         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17681         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'
17682       fi
17683       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17684       hardcode_libdir_separator_GCJ=:
17685       ;;
17686
17687     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17688       if test "$GCC" = yes; then
17689         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17690         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'
17691         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17692       else
17693         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17694         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'
17695         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~
17696         $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'
17697
17698         # Both c and cxx compiler support -rpath directly
17699         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17700       fi
17701       hardcode_libdir_separator_GCJ=:
17702       ;;
17703
17704     solaris*)
17705       no_undefined_flag_GCJ=' -z text'
17706       if test "$GCC" = yes; then
17707         wlarc='${wl}'
17708         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17709         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17710           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17711       else
17712         wlarc=''
17713         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17714         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17715         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17716       fi
17717       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17718       hardcode_shlibpath_var_GCJ=no
17719       case $host_os in
17720       solaris2.[0-5] | solaris2.[0-5].*) ;;
17721       *)
17722         # The compiler driver will combine and reorder linker options,
17723         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17724         # but is careful enough not to reorder.
17725         # Supported since Solaris 2.6 (maybe 2.5.1?)
17726         if test "$GCC" = yes; then
17727           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17728         else
17729           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17730         fi
17731         ;;
17732       esac
17733       link_all_deplibs_GCJ=yes
17734       ;;
17735
17736     sunos4*)
17737       if test "x$host_vendor" = xsequent; then
17738         # Use $CC to link under sequent, because it throws in some extra .o
17739         # files that make .init and .fini sections work.
17740         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17741       else
17742         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17743       fi
17744       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17745       hardcode_direct_GCJ=yes
17746       hardcode_minus_L_GCJ=yes
17747       hardcode_shlibpath_var_GCJ=no
17748       ;;
17749
17750     sysv4)
17751       case $host_vendor in
17752         sni)
17753           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17754           hardcode_direct_GCJ=yes # is this really true???
17755         ;;
17756         siemens)
17757           ## LD is ld it makes a PLAMLIB
17758           ## CC just makes a GrossModule.
17759           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17760           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17761           hardcode_direct_GCJ=no
17762         ;;
17763         motorola)
17764           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17766         ;;
17767       esac
17768       runpath_var='LD_RUN_PATH'
17769       hardcode_shlibpath_var_GCJ=no
17770       ;;
17771
17772     sysv4.3*)
17773       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17774       hardcode_shlibpath_var_GCJ=no
17775       export_dynamic_flag_spec_GCJ='-Bexport'
17776       ;;
17777
17778     sysv4*MP*)
17779       if test -d /usr/nec; then
17780         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781         hardcode_shlibpath_var_GCJ=no
17782         runpath_var=LD_RUN_PATH
17783         hardcode_runpath_var=yes
17784         ld_shlibs_GCJ=yes
17785       fi
17786       ;;
17787
17788     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17789       no_undefined_flag_GCJ='${wl}-z,text'
17790       archive_cmds_need_lc_GCJ=no
17791       hardcode_shlibpath_var_GCJ=no
17792       runpath_var='LD_RUN_PATH'
17793
17794       if test "$GCC" = yes; then
17795         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17796         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17797       else
17798         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17799         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17800       fi
17801       ;;
17802
17803     sysv5* | sco3.2v5* | sco5v6*)
17804       # Note: We can NOT use -z defs as we might desire, because we do not
17805       # link with -lc, and that would cause any symbols used from libc to
17806       # always be unresolved, which means just about no library would
17807       # ever link correctly.  If we're not using GNU ld we use -z text
17808       # though, which does catch some bad symbols but isn't as heavy-handed
17809       # as -z defs.
17810       no_undefined_flag_GCJ='${wl}-z,text'
17811       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17812       archive_cmds_need_lc_GCJ=no
17813       hardcode_shlibpath_var_GCJ=no
17814       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17815       hardcode_libdir_separator_GCJ=':'
17816       link_all_deplibs_GCJ=yes
17817       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17818       runpath_var='LD_RUN_PATH'
17819
17820       if test "$GCC" = yes; then
17821         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17823       else
17824         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17826       fi
17827       ;;
17828
17829     uts4*)
17830       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17831       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17832       hardcode_shlibpath_var_GCJ=no
17833       ;;
17834
17835     *)
17836       ld_shlibs_GCJ=no
17837       ;;
17838     esac
17839   fi
17840
17841 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17842 $as_echo "$ld_shlibs_GCJ" >&6; }
17843 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17844
17845 #
17846 # Do we need to explicitly link libc?
17847 #
17848 case "x$archive_cmds_need_lc_GCJ" in
17849 x|xyes)
17850   # Assume -lc should be added
17851   archive_cmds_need_lc_GCJ=yes
17852
17853   if test "$enable_shared" = yes && test "$GCC" = yes; then
17854     case $archive_cmds_GCJ in
17855     *'~'*)
17856       # FIXME: we may have to deal with multi-command sequences.
17857       ;;
17858     '$CC '*)
17859       # Test whether the compiler implicitly links with -lc since on some
17860       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17861       # to ld, don't add -lc before -lgcc.
17862       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17864       $rm conftest*
17865       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17866
17867       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17868   (eval $ac_compile) 2>&5
17869   ac_status=$?
17870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); } 2>conftest.err; then
17872         soname=conftest
17873         lib=conftest
17874         libobjs=conftest.$ac_objext
17875         deplibs=
17876         wl=$lt_prog_compiler_wl_GCJ
17877         pic_flag=$lt_prog_compiler_pic_GCJ
17878         compiler_flags=-v
17879         linker_flags=-v
17880         verstring=
17881         output_objdir=.
17882         libname=conftest
17883         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17884         allow_undefined_flag_GCJ=
17885         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17886   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17887   ac_status=$?
17888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); }
17890         then
17891           archive_cmds_need_lc_GCJ=no
17892         else
17893           archive_cmds_need_lc_GCJ=yes
17894         fi
17895         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17896       else
17897         cat conftest.err 1>&5
17898       fi
17899       $rm conftest*
17900       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17901 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17902       ;;
17903     esac
17904   fi
17905   ;;
17906 esac
17907
17908 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17909 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17910 library_names_spec=
17911 libname_spec='lib$name'
17912 soname_spec=
17913 shrext_cmds=".so"
17914 postinstall_cmds=
17915 postuninstall_cmds=
17916 finish_cmds=
17917 finish_eval=
17918 shlibpath_var=
17919 shlibpath_overrides_runpath=unknown
17920 version_type=none
17921 dynamic_linker="$host_os ld.so"
17922 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17923
17924 need_lib_prefix=unknown
17925 hardcode_into_libs=no
17926
17927 # when you set need_version to no, make sure it does not cause -set_version
17928 # flags to be left without arguments
17929 need_version=unknown
17930
17931 case $host_os in
17932 aix3*)
17933   version_type=linux
17934   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17935   shlibpath_var=LIBPATH
17936
17937   # AIX 3 has no versioning support, so we append a major version to the name.
17938   soname_spec='${libname}${release}${shared_ext}$major'
17939   ;;
17940
17941 aix[4-9]*)
17942   version_type=linux
17943   need_lib_prefix=no
17944   need_version=no
17945   hardcode_into_libs=yes
17946   if test "$host_cpu" = ia64; then
17947     # AIX 5 supports IA64
17948     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17949     shlibpath_var=LD_LIBRARY_PATH
17950   else
17951     # With GCC up to 2.95.x, collect2 would create an import file
17952     # for dependence libraries.  The import file would start with
17953     # the line `#! .'.  This would cause the generated library to
17954     # depend on `.', always an invalid library.  This was fixed in
17955     # development snapshots of GCC prior to 3.0.
17956     case $host_os in
17957       aix4 | aix4.[01] | aix4.[01].*)
17958       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17959            echo ' yes '
17960            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17961         :
17962       else
17963         can_build_shared=no
17964       fi
17965       ;;
17966     esac
17967     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17968     # soname into executable. Probably we can add versioning support to
17969     # collect2, so additional links can be useful in future.
17970     if test "$aix_use_runtimelinking" = yes; then
17971       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17972       # instead of lib<name>.a to let people know that these are not
17973       # typical AIX shared libraries.
17974       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975     else
17976       # We preserve .a as extension for shared libraries through AIX4.2
17977       # and later when we are not doing run time linking.
17978       library_names_spec='${libname}${release}.a $libname.a'
17979       soname_spec='${libname}${release}${shared_ext}$major'
17980     fi
17981     shlibpath_var=LIBPATH
17982   fi
17983   ;;
17984
17985 amigaos*)
17986   library_names_spec='$libname.ixlibrary $libname.a'
17987   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17988   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'
17989   ;;
17990
17991 beos*)
17992   library_names_spec='${libname}${shared_ext}'
17993   dynamic_linker="$host_os ld.so"
17994   shlibpath_var=LIBRARY_PATH
17995   ;;
17996
17997 bsdi[45]*)
17998   version_type=linux
17999   need_version=no
18000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18001   soname_spec='${libname}${release}${shared_ext}$major'
18002   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18003   shlibpath_var=LD_LIBRARY_PATH
18004   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18005   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18006   # the default ld.so.conf also contains /usr/contrib/lib and
18007   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18008   # libtool to hard-code these into programs
18009   ;;
18010
18011 cygwin* | mingw* | pw32*)
18012   version_type=windows
18013   shrext_cmds=".dll"
18014   need_version=no
18015   need_lib_prefix=no
18016
18017   case $GCC,$host_os in
18018   yes,cygwin* | yes,mingw* | yes,pw32*)
18019     library_names_spec='$libname.dll.a'
18020     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18021     postinstall_cmds='base_file=`basename \${file}`~
18022       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18023       dldir=$destdir/`dirname \$dlpath`~
18024       test -d \$dldir || mkdir -p \$dldir~
18025       $install_prog $dir/$dlname \$dldir/$dlname~
18026       chmod a+x \$dldir/$dlname'
18027     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18028       dlpath=$dir/\$dldll~
18029        $rm \$dlpath'
18030     shlibpath_overrides_runpath=yes
18031
18032     case $host_os in
18033     cygwin*)
18034       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18035       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18036       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18037       ;;
18038     mingw*)
18039       # MinGW DLLs use traditional 'lib' prefix
18040       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18041       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18042       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18043         # It is most probably a Windows format PATH printed by
18044         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18045         # path with ; separators, and with drive letters. We can handle the
18046         # drive letters (cygwin fileutils understands them), so leave them,
18047         # especially as we might pass files found there to a mingw objdump,
18048         # which wouldn't understand a cygwinified path. Ahh.
18049         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18050       else
18051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18052       fi
18053       ;;
18054     pw32*)
18055       # pw32 DLLs use 'pw' prefix rather than 'lib'
18056       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18057       ;;
18058     esac
18059     ;;
18060
18061   *)
18062     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18063     ;;
18064   esac
18065   dynamic_linker='Win32 ld.exe'
18066   # FIXME: first we should search . and the directory the executable is in
18067   shlibpath_var=PATH
18068   ;;
18069
18070 darwin* | rhapsody*)
18071   dynamic_linker="$host_os dyld"
18072   version_type=darwin
18073   need_lib_prefix=no
18074   need_version=no
18075   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18076   soname_spec='${libname}${release}${major}$shared_ext'
18077   shlibpath_overrides_runpath=yes
18078   shlibpath_var=DYLD_LIBRARY_PATH
18079   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18080
18081   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18082   ;;
18083
18084 dgux*)
18085   version_type=linux
18086   need_lib_prefix=no
18087   need_version=no
18088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18089   soname_spec='${libname}${release}${shared_ext}$major'
18090   shlibpath_var=LD_LIBRARY_PATH
18091   ;;
18092
18093 freebsd1*)
18094   dynamic_linker=no
18095   ;;
18096
18097 freebsd* | dragonfly*)
18098   # DragonFly does not have aout.  When/if they implement a new
18099   # versioning mechanism, adjust this.
18100   if test -x /usr/bin/objformat; then
18101     objformat=`/usr/bin/objformat`
18102   else
18103     case $host_os in
18104     freebsd[123]*) objformat=aout ;;
18105     *) objformat=elf ;;
18106     esac
18107   fi
18108   version_type=freebsd-$objformat
18109   case $version_type in
18110     freebsd-elf*)
18111       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18112       need_version=no
18113       need_lib_prefix=no
18114       ;;
18115     freebsd-*)
18116       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18117       need_version=yes
18118       ;;
18119   esac
18120   shlibpath_var=LD_LIBRARY_PATH
18121   case $host_os in
18122   freebsd2*)
18123     shlibpath_overrides_runpath=yes
18124     ;;
18125   freebsd3.[01]* | freebsdelf3.[01]*)
18126     shlibpath_overrides_runpath=yes
18127     hardcode_into_libs=yes
18128     ;;
18129   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18130   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18131     shlibpath_overrides_runpath=no
18132     hardcode_into_libs=yes
18133     ;;
18134   *) # from 4.6 on, and DragonFly
18135     shlibpath_overrides_runpath=yes
18136     hardcode_into_libs=yes
18137     ;;
18138   esac
18139   ;;
18140
18141 gnu*)
18142   version_type=linux
18143   need_lib_prefix=no
18144   need_version=no
18145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18146   soname_spec='${libname}${release}${shared_ext}$major'
18147   shlibpath_var=LD_LIBRARY_PATH
18148   hardcode_into_libs=yes
18149   ;;
18150
18151 hpux9* | hpux10* | hpux11*)
18152   # Give a soname corresponding to the major version so that dld.sl refuses to
18153   # link against other versions.
18154   version_type=sunos
18155   need_lib_prefix=no
18156   need_version=no
18157   case $host_cpu in
18158   ia64*)
18159     shrext_cmds='.so'
18160     hardcode_into_libs=yes
18161     dynamic_linker="$host_os dld.so"
18162     shlibpath_var=LD_LIBRARY_PATH
18163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18164     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18165     soname_spec='${libname}${release}${shared_ext}$major'
18166     if test "X$HPUX_IA64_MODE" = X32; then
18167       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18168     else
18169       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18170     fi
18171     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18172     ;;
18173    hppa*64*)
18174      shrext_cmds='.sl'
18175      hardcode_into_libs=yes
18176      dynamic_linker="$host_os dld.sl"
18177      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18178      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18179      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18180      soname_spec='${libname}${release}${shared_ext}$major'
18181      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18182      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18183      ;;
18184    *)
18185     shrext_cmds='.sl'
18186     dynamic_linker="$host_os dld.sl"
18187     shlibpath_var=SHLIB_PATH
18188     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190     soname_spec='${libname}${release}${shared_ext}$major'
18191     ;;
18192   esac
18193   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18194   postinstall_cmds='chmod 555 $lib'
18195   ;;
18196
18197 interix[3-9]*)
18198   version_type=linux
18199   need_lib_prefix=no
18200   need_version=no
18201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18202   soname_spec='${libname}${release}${shared_ext}$major'
18203   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18204   shlibpath_var=LD_LIBRARY_PATH
18205   shlibpath_overrides_runpath=no
18206   hardcode_into_libs=yes
18207   ;;
18208
18209 irix5* | irix6* | nonstopux*)
18210   case $host_os in
18211     nonstopux*) version_type=nonstopux ;;
18212     *)
18213         if test "$lt_cv_prog_gnu_ld" = yes; then
18214                 version_type=linux
18215         else
18216                 version_type=irix
18217         fi ;;
18218   esac
18219   need_lib_prefix=no
18220   need_version=no
18221   soname_spec='${libname}${release}${shared_ext}$major'
18222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18223   case $host_os in
18224   irix5* | nonstopux*)
18225     libsuff= shlibsuff=
18226     ;;
18227   *)
18228     case $LD in # libtool.m4 will add one of these switches to LD
18229     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18230       libsuff= shlibsuff= libmagic=32-bit;;
18231     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18232       libsuff=32 shlibsuff=N32 libmagic=N32;;
18233     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18234       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18235     *) libsuff= shlibsuff= libmagic=never-match;;
18236     esac
18237     ;;
18238   esac
18239   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18240   shlibpath_overrides_runpath=no
18241   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18242   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18243   hardcode_into_libs=yes
18244   ;;
18245
18246 # No shared lib support for Linux oldld, aout, or coff.
18247 linux*oldld* | linux*aout* | linux*coff*)
18248   dynamic_linker=no
18249   ;;
18250
18251 # This must be Linux ELF.
18252 linux* | k*bsd*-gnu)
18253   version_type=linux
18254   need_lib_prefix=no
18255   need_version=no
18256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18257   soname_spec='${libname}${release}${shared_ext}$major'
18258   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18259   shlibpath_var=LD_LIBRARY_PATH
18260   shlibpath_overrides_runpath=no
18261   # This implies no fast_install, which is unacceptable.
18262   # Some rework will be needed to allow for fast_install
18263   # before this can be enabled.
18264   hardcode_into_libs=yes
18265
18266   # Append ld.so.conf contents to the search path
18267   if test -f /etc/ld.so.conf; then
18268     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' ' '`
18269     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18270   fi
18271
18272   # We used to test for /lib/ld.so.1 and disable shared libraries on
18273   # powerpc, because MkLinux only supported shared libraries with the
18274   # GNU dynamic linker.  Since this was broken with cross compilers,
18275   # most powerpc-linux boxes support dynamic linking these days and
18276   # people can always --disable-shared, the test was removed, and we
18277   # assume the GNU/Linux dynamic linker is in use.
18278   dynamic_linker='GNU/Linux ld.so'
18279   ;;
18280
18281 netbsd*)
18282   version_type=sunos
18283   need_lib_prefix=no
18284   need_version=no
18285   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18287     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18288     dynamic_linker='NetBSD (a.out) ld.so'
18289   else
18290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18291     soname_spec='${libname}${release}${shared_ext}$major'
18292     dynamic_linker='NetBSD ld.elf_so'
18293   fi
18294   shlibpath_var=LD_LIBRARY_PATH
18295   shlibpath_overrides_runpath=yes
18296   hardcode_into_libs=yes
18297   ;;
18298
18299 newsos6)
18300   version_type=linux
18301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302   shlibpath_var=LD_LIBRARY_PATH
18303   shlibpath_overrides_runpath=yes
18304   ;;
18305
18306 nto-qnx*)
18307   version_type=linux
18308   need_lib_prefix=no
18309   need_version=no
18310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18311   soname_spec='${libname}${release}${shared_ext}$major'
18312   shlibpath_var=LD_LIBRARY_PATH
18313   shlibpath_overrides_runpath=yes
18314   ;;
18315
18316 openbsd*)
18317   version_type=sunos
18318   sys_lib_dlsearch_path_spec="/usr/lib"
18319   need_lib_prefix=no
18320   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18321   case $host_os in
18322     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18323     *)                         need_version=no  ;;
18324   esac
18325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18327   shlibpath_var=LD_LIBRARY_PATH
18328   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18329     case $host_os in
18330       openbsd2.[89] | openbsd2.[89].*)
18331         shlibpath_overrides_runpath=no
18332         ;;
18333       *)
18334         shlibpath_overrides_runpath=yes
18335         ;;
18336       esac
18337   else
18338     shlibpath_overrides_runpath=yes
18339   fi
18340   ;;
18341
18342 os2*)
18343   libname_spec='$name'
18344   shrext_cmds=".dll"
18345   need_lib_prefix=no
18346   library_names_spec='$libname${shared_ext} $libname.a'
18347   dynamic_linker='OS/2 ld.exe'
18348   shlibpath_var=LIBPATH
18349   ;;
18350
18351 osf3* | osf4* | osf5*)
18352   version_type=osf
18353   need_lib_prefix=no
18354   need_version=no
18355   soname_spec='${libname}${release}${shared_ext}$major'
18356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357   shlibpath_var=LD_LIBRARY_PATH
18358   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18359   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18360   ;;
18361
18362 rdos*)
18363   dynamic_linker=no
18364   ;;
18365
18366 solaris*)
18367   version_type=linux
18368   need_lib_prefix=no
18369   need_version=no
18370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371   soname_spec='${libname}${release}${shared_ext}$major'
18372   shlibpath_var=LD_LIBRARY_PATH
18373   shlibpath_overrides_runpath=yes
18374   hardcode_into_libs=yes
18375   # ldd complains unless libraries are executable
18376   postinstall_cmds='chmod +x $lib'
18377   ;;
18378
18379 sunos4*)
18380   version_type=sunos
18381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18383   shlibpath_var=LD_LIBRARY_PATH
18384   shlibpath_overrides_runpath=yes
18385   if test "$with_gnu_ld" = yes; then
18386     need_lib_prefix=no
18387   fi
18388   need_version=yes
18389   ;;
18390
18391 sysv4 | sysv4.3*)
18392   version_type=linux
18393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394   soname_spec='${libname}${release}${shared_ext}$major'
18395   shlibpath_var=LD_LIBRARY_PATH
18396   case $host_vendor in
18397     sni)
18398       shlibpath_overrides_runpath=no
18399       need_lib_prefix=no
18400       export_dynamic_flag_spec='${wl}-Blargedynsym'
18401       runpath_var=LD_RUN_PATH
18402       ;;
18403     siemens)
18404       need_lib_prefix=no
18405       ;;
18406     motorola)
18407       need_lib_prefix=no
18408       need_version=no
18409       shlibpath_overrides_runpath=no
18410       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18411       ;;
18412   esac
18413   ;;
18414
18415 sysv4*MP*)
18416   if test -d /usr/nec ;then
18417     version_type=linux
18418     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18419     soname_spec='$libname${shared_ext}.$major'
18420     shlibpath_var=LD_LIBRARY_PATH
18421   fi
18422   ;;
18423
18424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18425   version_type=freebsd-elf
18426   need_lib_prefix=no
18427   need_version=no
18428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18429   soname_spec='${libname}${release}${shared_ext}$major'
18430   shlibpath_var=LD_LIBRARY_PATH
18431   hardcode_into_libs=yes
18432   if test "$with_gnu_ld" = yes; then
18433     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18434     shlibpath_overrides_runpath=no
18435   else
18436     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18437     shlibpath_overrides_runpath=yes
18438     case $host_os in
18439       sco3.2v5*)
18440         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18441         ;;
18442     esac
18443   fi
18444   sys_lib_dlsearch_path_spec='/usr/lib'
18445   ;;
18446
18447 uts4*)
18448   version_type=linux
18449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450   soname_spec='${libname}${release}${shared_ext}$major'
18451   shlibpath_var=LD_LIBRARY_PATH
18452   ;;
18453
18454 *)
18455   dynamic_linker=no
18456   ;;
18457 esac
18458 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18459 $as_echo "$dynamic_linker" >&6; }
18460 test "$dynamic_linker" = no && can_build_shared=no
18461
18462 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18463   $as_echo_n "(cached) " >&6
18464 else
18465   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18466 fi
18467
18468 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18469 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18470   $as_echo_n "(cached) " >&6
18471 else
18472   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18473 fi
18474
18475 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18476
18477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18478 if test "$GCC" = yes; then
18479   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18480 fi
18481
18482 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18483 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18484 hardcode_action_GCJ=
18485 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18486    test -n "$runpath_var_GCJ" || \
18487    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18488
18489   # We can hardcode non-existant directories.
18490   if test "$hardcode_direct_GCJ" != no &&
18491      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18492      # have to relink, otherwise we might link with an installed library
18493      # when we should be linking with a yet-to-be-installed one
18494      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18495      test "$hardcode_minus_L_GCJ" != no; then
18496     # Linking always hardcodes the temporary library directory.
18497     hardcode_action_GCJ=relink
18498   else
18499     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18500     hardcode_action_GCJ=immediate
18501   fi
18502 else
18503   # We cannot hardcode anything, or else we can only hardcode existing
18504   # directories.
18505   hardcode_action_GCJ=unsupported
18506 fi
18507 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18508 $as_echo "$hardcode_action_GCJ" >&6; }
18509
18510 if test "$hardcode_action_GCJ" = relink; then
18511   # Fast installation is not supported
18512   enable_fast_install=no
18513 elif test "$shlibpath_overrides_runpath" = yes ||
18514      test "$enable_shared" = no; then
18515   # Fast installation is not necessary
18516   enable_fast_install=needless
18517 fi
18518
18519
18520 # The else clause should only fire when bootstrapping the
18521 # libtool distribution, otherwise you forgot to ship ltmain.sh
18522 # with your package, and you will get complaints that there are
18523 # no rules to generate ltmain.sh.
18524 if test -f "$ltmain"; then
18525   # See if we are running on zsh, and set the options which allow our commands through
18526   # without removal of \ escapes.
18527   if test -n "${ZSH_VERSION+set}" ; then
18528     setopt NO_GLOB_SUBST
18529   fi
18530   # Now quote all the things that may contain metacharacters while being
18531   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18532   # variables and quote the copies for generation of the libtool script.
18533   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18534     SED SHELL STRIP \
18535     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18536     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18537     deplibs_check_method reload_flag reload_cmds need_locks \
18538     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18539     lt_cv_sys_global_symbol_to_c_name_address \
18540     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18541     old_postinstall_cmds old_postuninstall_cmds \
18542     compiler_GCJ \
18543     CC_GCJ \
18544     LD_GCJ \
18545     lt_prog_compiler_wl_GCJ \
18546     lt_prog_compiler_pic_GCJ \
18547     lt_prog_compiler_static_GCJ \
18548     lt_prog_compiler_no_builtin_flag_GCJ \
18549     export_dynamic_flag_spec_GCJ \
18550     thread_safe_flag_spec_GCJ \
18551     whole_archive_flag_spec_GCJ \
18552     enable_shared_with_static_runtimes_GCJ \
18553     old_archive_cmds_GCJ \
18554     old_archive_from_new_cmds_GCJ \
18555     predep_objects_GCJ \
18556     postdep_objects_GCJ \
18557     predeps_GCJ \
18558     postdeps_GCJ \
18559     compiler_lib_search_path_GCJ \
18560     compiler_lib_search_dirs_GCJ \
18561     archive_cmds_GCJ \
18562     archive_expsym_cmds_GCJ \
18563     postinstall_cmds_GCJ \
18564     postuninstall_cmds_GCJ \
18565     old_archive_from_expsyms_cmds_GCJ \
18566     allow_undefined_flag_GCJ \
18567     no_undefined_flag_GCJ \
18568     export_symbols_cmds_GCJ \
18569     hardcode_libdir_flag_spec_GCJ \
18570     hardcode_libdir_flag_spec_ld_GCJ \
18571     hardcode_libdir_separator_GCJ \
18572     hardcode_automatic_GCJ \
18573     module_cmds_GCJ \
18574     module_expsym_cmds_GCJ \
18575     lt_cv_prog_compiler_c_o_GCJ \
18576     fix_srcfile_path_GCJ \
18577     exclude_expsyms_GCJ \
18578     include_expsyms_GCJ; do
18579
18580     case $var in
18581     old_archive_cmds_GCJ | \
18582     old_archive_from_new_cmds_GCJ | \
18583     archive_cmds_GCJ | \
18584     archive_expsym_cmds_GCJ | \
18585     module_cmds_GCJ | \
18586     module_expsym_cmds_GCJ | \
18587     old_archive_from_expsyms_cmds_GCJ | \
18588     export_symbols_cmds_GCJ | \
18589     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18590     postinstall_cmds | postuninstall_cmds | \
18591     old_postinstall_cmds | old_postuninstall_cmds | \
18592     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18593       # Double-quote double-evaled strings.
18594       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18595       ;;
18596     *)
18597       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18598       ;;
18599     esac
18600   done
18601
18602   case $lt_echo in
18603   *'\$0 --fallback-echo"')
18604     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18605     ;;
18606   esac
18607
18608 cfgfile="$ofile"
18609
18610   cat <<__EOF__ >> "$cfgfile"
18611 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18612
18613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18614
18615 # Shell to use when invoking shell scripts.
18616 SHELL=$lt_SHELL
18617
18618 # Whether or not to build shared libraries.
18619 build_libtool_libs=$enable_shared
18620
18621 # Whether or not to build static libraries.
18622 build_old_libs=$enable_static
18623
18624 # Whether or not to add -lc for building shared libraries.
18625 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18626
18627 # Whether or not to disallow shared libs when runtime libs are static
18628 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18629
18630 # Whether or not to optimize for fast installation.
18631 fast_install=$enable_fast_install
18632
18633 # The host system.
18634 host_alias=$host_alias
18635 host=$host
18636 host_os=$host_os
18637
18638 # The build system.
18639 build_alias=$build_alias
18640 build=$build
18641 build_os=$build_os
18642
18643 # An echo program that does not interpret backslashes.
18644 echo=$lt_echo
18645
18646 # The archiver.
18647 AR=$lt_AR
18648 AR_FLAGS=$lt_AR_FLAGS
18649
18650 # A C compiler.
18651 LTCC=$lt_LTCC
18652
18653 # LTCC compiler flags.
18654 LTCFLAGS=$lt_LTCFLAGS
18655
18656 # A language-specific compiler.
18657 CC=$lt_compiler_GCJ
18658
18659 # Is the compiler the GNU C compiler?
18660 with_gcc=$GCC_GCJ
18661
18662 # An ERE matcher.
18663 EGREP=$lt_EGREP
18664
18665 # The linker used to build libraries.
18666 LD=$lt_LD_GCJ
18667
18668 # Whether we need hard or soft links.
18669 LN_S=$lt_LN_S
18670
18671 # A BSD-compatible nm program.
18672 NM=$lt_NM
18673
18674 # A symbol stripping program
18675 STRIP=$lt_STRIP
18676
18677 # Used to examine libraries when file_magic_cmd begins "file"
18678 MAGIC_CMD=$MAGIC_CMD
18679
18680 # Used on cygwin: DLL creation program.
18681 DLLTOOL="$DLLTOOL"
18682
18683 # Used on cygwin: object dumper.
18684 OBJDUMP="$OBJDUMP"
18685
18686 # Used on cygwin: assembler.
18687 AS="$AS"
18688
18689 # The name of the directory that contains temporary libtool files.
18690 objdir=$objdir
18691
18692 # How to create reloadable object files.
18693 reload_flag=$lt_reload_flag
18694 reload_cmds=$lt_reload_cmds
18695
18696 # How to pass a linker flag through the compiler.
18697 wl=$lt_lt_prog_compiler_wl_GCJ
18698
18699 # Object file suffix (normally "o").
18700 objext="$ac_objext"
18701
18702 # Old archive suffix (normally "a").
18703 libext="$libext"
18704
18705 # Shared library suffix (normally ".so").
18706 shrext_cmds='$shrext_cmds'
18707
18708 # Executable file suffix (normally "").
18709 exeext="$exeext"
18710
18711 # Additional compiler flags for building library objects.
18712 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18713 pic_mode=$pic_mode
18714
18715 # What is the maximum length of a command?
18716 max_cmd_len=$lt_cv_sys_max_cmd_len
18717
18718 # Does compiler simultaneously support -c and -o options?
18719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18720
18721 # Must we lock files when doing compilation?
18722 need_locks=$lt_need_locks
18723
18724 # Do we need the lib prefix for modules?
18725 need_lib_prefix=$need_lib_prefix
18726
18727 # Do we need a version for libraries?
18728 need_version=$need_version
18729
18730 # Whether dlopen is supported.
18731 dlopen_support=$enable_dlopen
18732
18733 # Whether dlopen of programs is supported.
18734 dlopen_self=$enable_dlopen_self
18735
18736 # Whether dlopen of statically linked programs is supported.
18737 dlopen_self_static=$enable_dlopen_self_static
18738
18739 # Compiler flag to prevent dynamic linking.
18740 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18741
18742 # Compiler flag to turn off builtin functions.
18743 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18744
18745 # Compiler flag to allow reflexive dlopens.
18746 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18747
18748 # Compiler flag to generate shared objects directly from archives.
18749 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18750
18751 # Compiler flag to generate thread-safe objects.
18752 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18753
18754 # Library versioning type.
18755 version_type=$version_type
18756
18757 # Format of library name prefix.
18758 libname_spec=$lt_libname_spec
18759
18760 # List of archive names.  First name is the real one, the rest are links.
18761 # The last name is the one that the linker finds with -lNAME.
18762 library_names_spec=$lt_library_names_spec
18763
18764 # The coded name of the library, if different from the real name.
18765 soname_spec=$lt_soname_spec
18766
18767 # Commands used to build and install an old-style archive.
18768 RANLIB=$lt_RANLIB
18769 old_archive_cmds=$lt_old_archive_cmds_GCJ
18770 old_postinstall_cmds=$lt_old_postinstall_cmds
18771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18772
18773 # Create an old-style archive from a shared archive.
18774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18775
18776 # Create a temporary old-style archive to link instead of a shared archive.
18777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18778
18779 # Commands used to build and install a shared archive.
18780 archive_cmds=$lt_archive_cmds_GCJ
18781 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18782 postinstall_cmds=$lt_postinstall_cmds
18783 postuninstall_cmds=$lt_postuninstall_cmds
18784
18785 # Commands used to build a loadable module (assumed same as above if empty)
18786 module_cmds=$lt_module_cmds_GCJ
18787 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18788
18789 # Commands to strip libraries.
18790 old_striplib=$lt_old_striplib
18791 striplib=$lt_striplib
18792
18793 # Dependencies to place before the objects being linked to create a
18794 # shared library.
18795 predep_objects=$lt_predep_objects_GCJ
18796
18797 # Dependencies to place after the objects being linked to create a
18798 # shared library.
18799 postdep_objects=$lt_postdep_objects_GCJ
18800
18801 # Dependencies to place before the objects being linked to create a
18802 # shared library.
18803 predeps=$lt_predeps_GCJ
18804
18805 # Dependencies to place after the objects being linked to create a
18806 # shared library.
18807 postdeps=$lt_postdeps_GCJ
18808
18809 # The directories searched by this compiler when creating a shared
18810 # library
18811 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18812
18813 # The library search path used internally by the compiler when linking
18814 # a shared library.
18815 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18816
18817 # Method to check whether dependent libraries are shared objects.
18818 deplibs_check_method=$lt_deplibs_check_method
18819
18820 # Command to use when deplibs_check_method == file_magic.
18821 file_magic_cmd=$lt_file_magic_cmd
18822
18823 # Flag that allows shared libraries with undefined symbols to be built.
18824 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18825
18826 # Flag that forces no undefined symbols.
18827 no_undefined_flag=$lt_no_undefined_flag_GCJ
18828
18829 # Commands used to finish a libtool library installation in a directory.
18830 finish_cmds=$lt_finish_cmds
18831
18832 # Same as above, but a single script fragment to be evaled but not shown.
18833 finish_eval=$lt_finish_eval
18834
18835 # Take the output of nm and produce a listing of raw symbols and C names.
18836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18837
18838 # Transform the output of nm in a proper C declaration
18839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18840
18841 # Transform the output of nm in a C name address pair
18842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18843
18844 # This is the shared library runtime path variable.
18845 runpath_var=$runpath_var
18846
18847 # This is the shared library path variable.
18848 shlibpath_var=$shlibpath_var
18849
18850 # Is shlibpath searched before the hard-coded library search path?
18851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18852
18853 # How to hardcode a shared library path into an executable.
18854 hardcode_action=$hardcode_action_GCJ
18855
18856 # Whether we should hardcode library paths into libraries.
18857 hardcode_into_libs=$hardcode_into_libs
18858
18859 # Flag to hardcode \$libdir into a binary during linking.
18860 # This must work even if \$libdir does not exist.
18861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18862
18863 # If ld is used when linking, flag to hardcode \$libdir into
18864 # a binary during linking. This must work even if \$libdir does
18865 # not exist.
18866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18867
18868 # Whether we need a single -rpath flag with a separated argument.
18869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18870
18871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18872 # resulting binary.
18873 hardcode_direct=$hardcode_direct_GCJ
18874
18875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18876 # resulting binary.
18877 hardcode_minus_L=$hardcode_minus_L_GCJ
18878
18879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18880 # the resulting binary.
18881 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18882
18883 # Set to yes if building a shared library automatically hardcodes DIR into the library
18884 # and all subsequent libraries and executables linked against it.
18885 hardcode_automatic=$hardcode_automatic_GCJ
18886
18887 # Variables whose values should be saved in libtool wrapper scripts and
18888 # restored at relink time.
18889 variables_saved_for_relink="$variables_saved_for_relink"
18890
18891 # Whether libtool must link a program against all its dependency libraries.
18892 link_all_deplibs=$link_all_deplibs_GCJ
18893
18894 # Compile-time system search path for libraries
18895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18896
18897 # Run-time system search path for libraries
18898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18899
18900 # Fix the shell variable \$srcfile for the compiler.
18901 fix_srcfile_path=$lt_fix_srcfile_path
18902
18903 # Set to yes if exported symbols are required.
18904 always_export_symbols=$always_export_symbols_GCJ
18905
18906 # The commands to list exported symbols.
18907 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18908
18909 # The commands to extract the exported symbol list from a shared archive.
18910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18911
18912 # Symbols that should not be listed in the preloaded symbols.
18913 exclude_expsyms=$lt_exclude_expsyms_GCJ
18914
18915 # Symbols that must always be exported.
18916 include_expsyms=$lt_include_expsyms_GCJ
18917
18918 # ### END LIBTOOL TAG CONFIG: $tagname
18919
18920 __EOF__
18921
18922
18923 else
18924   # If there is no Makefile yet, we rely on a make rule to execute
18925   # `config.status --recheck' to rerun these tests and create the
18926   # libtool script then.
18927   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18928   if test -f "$ltmain_in"; then
18929     test -f Makefile && make "$ltmain"
18930   fi
18931 fi
18932
18933
18934 ac_ext=c
18935 ac_cpp='$CPP $CPPFLAGS'
18936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18939
18940 CC="$lt_save_CC"
18941
18942         else
18943           tagname=""
18944         fi
18945         ;;
18946
18947       RC)
18948
18949
18950 # Source file extension for RC test sources.
18951 ac_ext=rc
18952
18953 # Object file extension for compiled RC test sources.
18954 objext=o
18955 objext_RC=$objext
18956
18957 # Code to be used in simple compile tests
18958 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18959
18960 # Code to be used in simple link tests
18961 lt_simple_link_test_code="$lt_simple_compile_test_code"
18962
18963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18964
18965 # If no C compiler was specified, use CC.
18966 LTCC=${LTCC-"$CC"}
18967
18968 # If no C compiler flags were specified, use CFLAGS.
18969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18970
18971 # Allow CC to be a program name with arguments.
18972 compiler=$CC
18973
18974
18975 # save warnings/boilerplate of simple test code
18976 ac_outfile=conftest.$ac_objext
18977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18979 _lt_compiler_boilerplate=`cat conftest.err`
18980 $rm conftest*
18981
18982 ac_outfile=conftest.$ac_objext
18983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18985 _lt_linker_boilerplate=`cat conftest.err`
18986 $rm -r conftest*
18987
18988
18989 # Allow CC to be a program name with arguments.
18990 lt_save_CC="$CC"
18991 CC=${RC-"windres"}
18992 compiler=$CC
18993 compiler_RC=$CC
18994 for cc_temp in $compiler""; do
18995   case $cc_temp in
18996     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18997     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18998     \-*) ;;
18999     *) break;;
19000   esac
19001 done
19002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19003
19004 lt_cv_prog_compiler_c_o_RC=yes
19005
19006 # The else clause should only fire when bootstrapping the
19007 # libtool distribution, otherwise you forgot to ship ltmain.sh
19008 # with your package, and you will get complaints that there are
19009 # no rules to generate ltmain.sh.
19010 if test -f "$ltmain"; then
19011   # See if we are running on zsh, and set the options which allow our commands through
19012   # without removal of \ escapes.
19013   if test -n "${ZSH_VERSION+set}" ; then
19014     setopt NO_GLOB_SUBST
19015   fi
19016   # Now quote all the things that may contain metacharacters while being
19017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19018   # variables and quote the copies for generation of the libtool script.
19019   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19020     SED SHELL STRIP \
19021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19023     deplibs_check_method reload_flag reload_cmds need_locks \
19024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19025     lt_cv_sys_global_symbol_to_c_name_address \
19026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19027     old_postinstall_cmds old_postuninstall_cmds \
19028     compiler_RC \
19029     CC_RC \
19030     LD_RC \
19031     lt_prog_compiler_wl_RC \
19032     lt_prog_compiler_pic_RC \
19033     lt_prog_compiler_static_RC \
19034     lt_prog_compiler_no_builtin_flag_RC \
19035     export_dynamic_flag_spec_RC \
19036     thread_safe_flag_spec_RC \
19037     whole_archive_flag_spec_RC \
19038     enable_shared_with_static_runtimes_RC \
19039     old_archive_cmds_RC \
19040     old_archive_from_new_cmds_RC \
19041     predep_objects_RC \
19042     postdep_objects_RC \
19043     predeps_RC \
19044     postdeps_RC \
19045     compiler_lib_search_path_RC \
19046     compiler_lib_search_dirs_RC \
19047     archive_cmds_RC \
19048     archive_expsym_cmds_RC \
19049     postinstall_cmds_RC \
19050     postuninstall_cmds_RC \
19051     old_archive_from_expsyms_cmds_RC \
19052     allow_undefined_flag_RC \
19053     no_undefined_flag_RC \
19054     export_symbols_cmds_RC \
19055     hardcode_libdir_flag_spec_RC \
19056     hardcode_libdir_flag_spec_ld_RC \
19057     hardcode_libdir_separator_RC \
19058     hardcode_automatic_RC \
19059     module_cmds_RC \
19060     module_expsym_cmds_RC \
19061     lt_cv_prog_compiler_c_o_RC \
19062     fix_srcfile_path_RC \
19063     exclude_expsyms_RC \
19064     include_expsyms_RC; do
19065
19066     case $var in
19067     old_archive_cmds_RC | \
19068     old_archive_from_new_cmds_RC | \
19069     archive_cmds_RC | \
19070     archive_expsym_cmds_RC | \
19071     module_cmds_RC | \
19072     module_expsym_cmds_RC | \
19073     old_archive_from_expsyms_cmds_RC | \
19074     export_symbols_cmds_RC | \
19075     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19076     postinstall_cmds | postuninstall_cmds | \
19077     old_postinstall_cmds | old_postuninstall_cmds | \
19078     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19079       # Double-quote double-evaled strings.
19080       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19081       ;;
19082     *)
19083       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19084       ;;
19085     esac
19086   done
19087
19088   case $lt_echo in
19089   *'\$0 --fallback-echo"')
19090     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19091     ;;
19092   esac
19093
19094 cfgfile="$ofile"
19095
19096   cat <<__EOF__ >> "$cfgfile"
19097 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19098
19099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19100
19101 # Shell to use when invoking shell scripts.
19102 SHELL=$lt_SHELL
19103
19104 # Whether or not to build shared libraries.
19105 build_libtool_libs=$enable_shared
19106
19107 # Whether or not to build static libraries.
19108 build_old_libs=$enable_static
19109
19110 # Whether or not to add -lc for building shared libraries.
19111 build_libtool_need_lc=$archive_cmds_need_lc_RC
19112
19113 # Whether or not to disallow shared libs when runtime libs are static
19114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19115
19116 # Whether or not to optimize for fast installation.
19117 fast_install=$enable_fast_install
19118
19119 # The host system.
19120 host_alias=$host_alias
19121 host=$host
19122 host_os=$host_os
19123
19124 # The build system.
19125 build_alias=$build_alias
19126 build=$build
19127 build_os=$build_os
19128
19129 # An echo program that does not interpret backslashes.
19130 echo=$lt_echo
19131
19132 # The archiver.
19133 AR=$lt_AR
19134 AR_FLAGS=$lt_AR_FLAGS
19135
19136 # A C compiler.
19137 LTCC=$lt_LTCC
19138
19139 # LTCC compiler flags.
19140 LTCFLAGS=$lt_LTCFLAGS
19141
19142 # A language-specific compiler.
19143 CC=$lt_compiler_RC
19144
19145 # Is the compiler the GNU C compiler?
19146 with_gcc=$GCC_RC
19147
19148 # An ERE matcher.
19149 EGREP=$lt_EGREP
19150
19151 # The linker used to build libraries.
19152 LD=$lt_LD_RC
19153
19154 # Whether we need hard or soft links.
19155 LN_S=$lt_LN_S
19156
19157 # A BSD-compatible nm program.
19158 NM=$lt_NM
19159
19160 # A symbol stripping program
19161 STRIP=$lt_STRIP
19162
19163 # Used to examine libraries when file_magic_cmd begins "file"
19164 MAGIC_CMD=$MAGIC_CMD
19165
19166 # Used on cygwin: DLL creation program.
19167 DLLTOOL="$DLLTOOL"
19168
19169 # Used on cygwin: object dumper.
19170 OBJDUMP="$OBJDUMP"
19171
19172 # Used on cygwin: assembler.
19173 AS="$AS"
19174
19175 # The name of the directory that contains temporary libtool files.
19176 objdir=$objdir
19177
19178 # How to create reloadable object files.
19179 reload_flag=$lt_reload_flag
19180 reload_cmds=$lt_reload_cmds
19181
19182 # How to pass a linker flag through the compiler.
19183 wl=$lt_lt_prog_compiler_wl_RC
19184
19185 # Object file suffix (normally "o").
19186 objext="$ac_objext"
19187
19188 # Old archive suffix (normally "a").
19189 libext="$libext"
19190
19191 # Shared library suffix (normally ".so").
19192 shrext_cmds='$shrext_cmds'
19193
19194 # Executable file suffix (normally "").
19195 exeext="$exeext"
19196
19197 # Additional compiler flags for building library objects.
19198 pic_flag=$lt_lt_prog_compiler_pic_RC
19199 pic_mode=$pic_mode
19200
19201 # What is the maximum length of a command?
19202 max_cmd_len=$lt_cv_sys_max_cmd_len
19203
19204 # Does compiler simultaneously support -c and -o options?
19205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19206
19207 # Must we lock files when doing compilation?
19208 need_locks=$lt_need_locks
19209
19210 # Do we need the lib prefix for modules?
19211 need_lib_prefix=$need_lib_prefix
19212
19213 # Do we need a version for libraries?
19214 need_version=$need_version
19215
19216 # Whether dlopen is supported.
19217 dlopen_support=$enable_dlopen
19218
19219 # Whether dlopen of programs is supported.
19220 dlopen_self=$enable_dlopen_self
19221
19222 # Whether dlopen of statically linked programs is supported.
19223 dlopen_self_static=$enable_dlopen_self_static
19224
19225 # Compiler flag to prevent dynamic linking.
19226 link_static_flag=$lt_lt_prog_compiler_static_RC
19227
19228 # Compiler flag to turn off builtin functions.
19229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19230
19231 # Compiler flag to allow reflexive dlopens.
19232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19233
19234 # Compiler flag to generate shared objects directly from archives.
19235 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19236
19237 # Compiler flag to generate thread-safe objects.
19238 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19239
19240 # Library versioning type.
19241 version_type=$version_type
19242
19243 # Format of library name prefix.
19244 libname_spec=$lt_libname_spec
19245
19246 # List of archive names.  First name is the real one, the rest are links.
19247 # The last name is the one that the linker finds with -lNAME.
19248 library_names_spec=$lt_library_names_spec
19249
19250 # The coded name of the library, if different from the real name.
19251 soname_spec=$lt_soname_spec
19252
19253 # Commands used to build and install an old-style archive.
19254 RANLIB=$lt_RANLIB
19255 old_archive_cmds=$lt_old_archive_cmds_RC
19256 old_postinstall_cmds=$lt_old_postinstall_cmds
19257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19258
19259 # Create an old-style archive from a shared archive.
19260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19261
19262 # Create a temporary old-style archive to link instead of a shared archive.
19263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19264
19265 # Commands used to build and install a shared archive.
19266 archive_cmds=$lt_archive_cmds_RC
19267 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19268 postinstall_cmds=$lt_postinstall_cmds
19269 postuninstall_cmds=$lt_postuninstall_cmds
19270
19271 # Commands used to build a loadable module (assumed same as above if empty)
19272 module_cmds=$lt_module_cmds_RC
19273 module_expsym_cmds=$lt_module_expsym_cmds_RC
19274
19275 # Commands to strip libraries.
19276 old_striplib=$lt_old_striplib
19277 striplib=$lt_striplib
19278
19279 # Dependencies to place before the objects being linked to create a
19280 # shared library.
19281 predep_objects=$lt_predep_objects_RC
19282
19283 # Dependencies to place after the objects being linked to create a
19284 # shared library.
19285 postdep_objects=$lt_postdep_objects_RC
19286
19287 # Dependencies to place before the objects being linked to create a
19288 # shared library.
19289 predeps=$lt_predeps_RC
19290
19291 # Dependencies to place after the objects being linked to create a
19292 # shared library.
19293 postdeps=$lt_postdeps_RC
19294
19295 # The directories searched by this compiler when creating a shared
19296 # library
19297 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19298
19299 # The library search path used internally by the compiler when linking
19300 # a shared library.
19301 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19302
19303 # Method to check whether dependent libraries are shared objects.
19304 deplibs_check_method=$lt_deplibs_check_method
19305
19306 # Command to use when deplibs_check_method == file_magic.
19307 file_magic_cmd=$lt_file_magic_cmd
19308
19309 # Flag that allows shared libraries with undefined symbols to be built.
19310 allow_undefined_flag=$lt_allow_undefined_flag_RC
19311
19312 # Flag that forces no undefined symbols.
19313 no_undefined_flag=$lt_no_undefined_flag_RC
19314
19315 # Commands used to finish a libtool library installation in a directory.
19316 finish_cmds=$lt_finish_cmds
19317
19318 # Same as above, but a single script fragment to be evaled but not shown.
19319 finish_eval=$lt_finish_eval
19320
19321 # Take the output of nm and produce a listing of raw symbols and C names.
19322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19323
19324 # Transform the output of nm in a proper C declaration
19325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19326
19327 # Transform the output of nm in a C name address pair
19328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19329
19330 # This is the shared library runtime path variable.
19331 runpath_var=$runpath_var
19332
19333 # This is the shared library path variable.
19334 shlibpath_var=$shlibpath_var
19335
19336 # Is shlibpath searched before the hard-coded library search path?
19337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19338
19339 # How to hardcode a shared library path into an executable.
19340 hardcode_action=$hardcode_action_RC
19341
19342 # Whether we should hardcode library paths into libraries.
19343 hardcode_into_libs=$hardcode_into_libs
19344
19345 # Flag to hardcode \$libdir into a binary during linking.
19346 # This must work even if \$libdir does not exist.
19347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19348
19349 # If ld is used when linking, flag to hardcode \$libdir into
19350 # a binary during linking. This must work even if \$libdir does
19351 # not exist.
19352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19353
19354 # Whether we need a single -rpath flag with a separated argument.
19355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19356
19357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19358 # resulting binary.
19359 hardcode_direct=$hardcode_direct_RC
19360
19361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19362 # resulting binary.
19363 hardcode_minus_L=$hardcode_minus_L_RC
19364
19365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19366 # the resulting binary.
19367 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19368
19369 # Set to yes if building a shared library automatically hardcodes DIR into the library
19370 # and all subsequent libraries and executables linked against it.
19371 hardcode_automatic=$hardcode_automatic_RC
19372
19373 # Variables whose values should be saved in libtool wrapper scripts and
19374 # restored at relink time.
19375 variables_saved_for_relink="$variables_saved_for_relink"
19376
19377 # Whether libtool must link a program against all its dependency libraries.
19378 link_all_deplibs=$link_all_deplibs_RC
19379
19380 # Compile-time system search path for libraries
19381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19382
19383 # Run-time system search path for libraries
19384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19385
19386 # Fix the shell variable \$srcfile for the compiler.
19387 fix_srcfile_path=$lt_fix_srcfile_path
19388
19389 # Set to yes if exported symbols are required.
19390 always_export_symbols=$always_export_symbols_RC
19391
19392 # The commands to list exported symbols.
19393 export_symbols_cmds=$lt_export_symbols_cmds_RC
19394
19395 # The commands to extract the exported symbol list from a shared archive.
19396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19397
19398 # Symbols that should not be listed in the preloaded symbols.
19399 exclude_expsyms=$lt_exclude_expsyms_RC
19400
19401 # Symbols that must always be exported.
19402 include_expsyms=$lt_include_expsyms_RC
19403
19404 # ### END LIBTOOL TAG CONFIG: $tagname
19405
19406 __EOF__
19407
19408
19409 else
19410   # If there is no Makefile yet, we rely on a make rule to execute
19411   # `config.status --recheck' to rerun these tests and create the
19412   # libtool script then.
19413   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19414   if test -f "$ltmain_in"; then
19415     test -f Makefile && make "$ltmain"
19416   fi
19417 fi
19418
19419
19420 ac_ext=c
19421 ac_cpp='$CPP $CPPFLAGS'
19422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19425
19426 CC="$lt_save_CC"
19427
19428         ;;
19429
19430       *)
19431         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19432 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19433    { (exit 1); exit 1; }; }
19434         ;;
19435       esac
19436
19437       # Append the new tag name to the list of available tags.
19438       if test -n "$tagname" ; then
19439       available_tags="$available_tags $tagname"
19440     fi
19441     fi
19442   done
19443   IFS="$lt_save_ifs"
19444
19445   # Now substitute the updated list of available tags.
19446   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19447     mv "${ofile}T" "$ofile"
19448     chmod +x "$ofile"
19449   else
19450     rm -f "${ofile}T"
19451     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19452 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19453    { (exit 1); exit 1; }; }
19454   fi
19455 fi
19456
19457
19458
19459 # This can be used to rebuild libtool when needed
19460 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19461
19462 # Always use our own libtool.
19463 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19464
19465 # Prevent multiple expansion
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486 # Find a good install program.  We prefer a C program (faster),
19487 # so one script is as good as another.  But avoid the broken or
19488 # incompatible versions:
19489 # SysV /etc/install, /usr/sbin/install
19490 # SunOS /usr/etc/install
19491 # IRIX /sbin/install
19492 # AIX /bin/install
19493 # AmigaOS /C/install, which installs bootblocks on floppy discs
19494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19497 # OS/2's system install, which has a completely different semantic
19498 # ./install, which can be erroneously created by make from ./install.sh.
19499 # Reject install programs that cannot install multiple files.
19500 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19502 if test -z "$INSTALL"; then
19503 if test "${ac_cv_path_install+set}" = set; then
19504   $as_echo_n "(cached) " >&6
19505 else
19506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19507 for as_dir in $PATH
19508 do
19509   IFS=$as_save_IFS
19510   test -z "$as_dir" && as_dir=.
19511   # Account for people who put trailing slashes in PATH elements.
19512 case $as_dir/ in
19513   ./ | .// | /cC/* | \
19514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19515   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19516   /usr/ucb/* ) ;;
19517   *)
19518     # OSF1 and SCO ODT 3.0 have their own names for install.
19519     # Don't use installbsd from OSF since it installs stuff as root
19520     # by default.
19521     for ac_prog in ginstall scoinst install; do
19522       for ac_exec_ext in '' $ac_executable_extensions; do
19523         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19524           if test $ac_prog = install &&
19525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19526             # AIX install.  It has an incompatible calling convention.
19527             :
19528           elif test $ac_prog = install &&
19529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19530             # program-specific install script used by HP pwplus--don't use.
19531             :
19532           else
19533             rm -rf conftest.one conftest.two conftest.dir
19534             echo one > conftest.one
19535             echo two > conftest.two
19536             mkdir conftest.dir
19537             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19538               test -s conftest.one && test -s conftest.two &&
19539               test -s conftest.dir/conftest.one &&
19540               test -s conftest.dir/conftest.two
19541             then
19542               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19543               break 3
19544             fi
19545           fi
19546         fi
19547       done
19548     done
19549     ;;
19550 esac
19551
19552 done
19553 IFS=$as_save_IFS
19554
19555 rm -rf conftest.one conftest.two conftest.dir
19556
19557 fi
19558   if test "${ac_cv_path_install+set}" = set; then
19559     INSTALL=$ac_cv_path_install
19560   else
19561     # As a last resort, use the slow shell script.  Don't cache a
19562     # value for INSTALL within a source directory, because that will
19563     # break other packages using the cache if that directory is
19564     # removed, or if the value is a relative name.
19565     INSTALL=$ac_install_sh
19566   fi
19567 fi
19568 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
19569 $as_echo "$INSTALL" >&6; }
19570
19571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19572 # It thinks the first close brace ends the variable substitution.
19573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19574
19575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19576
19577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19578
19579 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
19580 $as_echo_n "checking whether ln -s works... " >&6; }
19581 LN_S=$as_ln_s
19582 if test "$LN_S" = "ln -s"; then
19583   { $as_echo "$as_me:$LINENO: result: yes" >&5
19584 $as_echo "yes" >&6; }
19585 else
19586   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19587 $as_echo "no, using $LN_S" >&6; }
19588 fi
19589
19590
19591
19592
19593
19594
19595
19596 # Warn if the user specified libbind, which is now deprecated
19597 # Check whether --enable-libbind was given.
19598 if test "${enable_libbind+set}" = set; then
19599   enableval=$enable_libbind;
19600 fi
19601
19602
19603 case "$enable_libbind" in
19604         yes)
19605                 { { $as_echo "$as_me:$LINENO: error: 'libbind' is no longer part of the BIND 9 distribution.
19606 It is available from http://www.isc.org as a separate download." >&5
19607 $as_echo "$as_me: error: 'libbind' is no longer part of the BIND 9 distribution.
19608 It is available from http://www.isc.org as a separate download." >&2;}
19609    { (exit 1); exit 1; }; }
19610                 ;;
19611         no|'')
19612                 ;;
19613 esac
19614
19615 #
19616 # Make very sure that these are the first files processed by
19617 # config.status, since we use the processed output as the input for
19618 # AC_SUBST_FILE() substitutions in other files.
19619 #
19620 ac_config_files="$ac_config_files make/rules make/includes"
19621
19622
19623 # Extract the first word of "ar", so it can be a program name with args.
19624 set dummy ar; ac_word=$2
19625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19626 $as_echo_n "checking for $ac_word... " >&6; }
19627 if test "${ac_cv_path_AR+set}" = set; then
19628   $as_echo_n "(cached) " >&6
19629 else
19630   case $AR in
19631   [\\/]* | ?:[\\/]*)
19632   ac_cv_path_AR="$AR" # Let the user override the test with a path.
19633   ;;
19634   *)
19635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636 for as_dir in $PATH
19637 do
19638   IFS=$as_save_IFS
19639   test -z "$as_dir" && as_dir=.
19640   for ac_exec_ext in '' $ac_executable_extensions; do
19641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19642     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19643     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19644     break 2
19645   fi
19646 done
19647 done
19648 IFS=$as_save_IFS
19649
19650   ;;
19651 esac
19652 fi
19653 AR=$ac_cv_path_AR
19654 if test -n "$AR"; then
19655   { $as_echo "$as_me:$LINENO: result: $AR" >&5
19656 $as_echo "$AR" >&6; }
19657 else
19658   { $as_echo "$as_me:$LINENO: result: no" >&5
19659 $as_echo "no" >&6; }
19660 fi
19661
19662
19663 ARFLAGS="cruv"
19664
19665
19666
19667 # The POSIX ln(1) program.  Non-POSIX systems may substitute
19668 # "copy" or something.
19669 LN=ln
19670
19671
19672 case "$AR" in
19673         "")
19674                 { { $as_echo "$as_me:$LINENO: error:
19675 ar program not found.  Please fix your PATH to include the directory in
19676 which ar resides, or set AR in the environment with the full path to ar.
19677 " >&5
19678 $as_echo "$as_me: error:
19679 ar program not found.  Please fix your PATH to include the directory in
19680 which ar resides, or set AR in the environment with the full path to ar.
19681 " >&2;}
19682    { (exit 1); exit 1; }; }
19683
19684                 ;;
19685 esac
19686
19687 #
19688 # Etags.
19689 #
19690 for ac_prog in etags emacs-etags
19691 do
19692   # Extract the first word of "$ac_prog", so it can be a program name with args.
19693 set dummy $ac_prog; ac_word=$2
19694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19695 $as_echo_n "checking for $ac_word... " >&6; }
19696 if test "${ac_cv_path_ETAGS+set}" = set; then
19697   $as_echo_n "(cached) " >&6
19698 else
19699   case $ETAGS in
19700   [\\/]* | ?:[\\/]*)
19701   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19702   ;;
19703   *)
19704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19705 for as_dir in $PATH
19706 do
19707   IFS=$as_save_IFS
19708   test -z "$as_dir" && as_dir=.
19709   for ac_exec_ext in '' $ac_executable_extensions; do
19710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19711     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19713     break 2
19714   fi
19715 done
19716 done
19717 IFS=$as_save_IFS
19718
19719   ;;
19720 esac
19721 fi
19722 ETAGS=$ac_cv_path_ETAGS
19723 if test -n "$ETAGS"; then
19724   { $as_echo "$as_me:$LINENO: result: $ETAGS" >&5
19725 $as_echo "$ETAGS" >&6; }
19726 else
19727   { $as_echo "$as_me:$LINENO: result: no" >&5
19728 $as_echo "no" >&6; }
19729 fi
19730
19731
19732   test -n "$ETAGS" && break
19733 done
19734
19735
19736 #
19737 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
19738 # GNU emacs etags, and it requires the -L flag.
19739 #
19740 if test "X$ETAGS" != "X"; then
19741         { $as_echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5
19742 $as_echo_n "checking for Exuberant Ctags etags... " >&6; }
19743         if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
19744                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19745 $as_echo "yes" >&6; }
19746                 ETAGS="$ETAGS -L"
19747         else
19748                 { $as_echo "$as_me:$LINENO: result: no" >&5
19749 $as_echo "no" >&6; }
19750         fi
19751 fi
19752
19753
19754 #
19755 # Perl is optional; it is used only by some of the system test scripts.
19756 # Note: the backtrace feature (see below) uses perl to build the symbol table,
19757 # but it still compiles without perl, in which case an empty table will be used.
19758 #
19759 for ac_prog in perl5 perl
19760 do
19761   # Extract the first word of "$ac_prog", so it can be a program name with args.
19762 set dummy $ac_prog; ac_word=$2
19763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19764 $as_echo_n "checking for $ac_word... " >&6; }
19765 if test "${ac_cv_path_PERL+set}" = set; then
19766   $as_echo_n "(cached) " >&6
19767 else
19768   case $PERL in
19769   [\\/]* | ?:[\\/]*)
19770   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19771   ;;
19772   *)
19773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19774 for as_dir in $PATH
19775 do
19776   IFS=$as_save_IFS
19777   test -z "$as_dir" && as_dir=.
19778   for ac_exec_ext in '' $ac_executable_extensions; do
19779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19780     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19781     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19782     break 2
19783   fi
19784 done
19785 done
19786 IFS=$as_save_IFS
19787
19788   ;;
19789 esac
19790 fi
19791 PERL=$ac_cv_path_PERL
19792 if test -n "$PERL"; then
19793   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
19794 $as_echo "$PERL" >&6; }
19795 else
19796   { $as_echo "$as_me:$LINENO: result: no" >&5
19797 $as_echo "no" >&6; }
19798 fi
19799
19800
19801   test -n "$PERL" && break
19802 done
19803
19804
19805
19806 #
19807 # Special processing of paths depending on whether --prefix,
19808 # --sysconfdir or --localstatedir arguments were given.  What's
19809 # desired is some compatibility with the way previous versions
19810 # of BIND built; they defaulted to /usr/local for most parts of
19811 # the installation, but named.boot/named.conf was in /etc
19812 # and named.pid was in /var/run.
19813 #
19814 # So ... if none of --prefix, --sysconfdir or --localstatedir are
19815 # specified, set things up that way.  If --prefix is given, use
19816 # it for sysconfdir and localstatedir the way configure normally
19817 # would.  To change the prefix for everything but leave named.conf
19818 # in /etc or named.pid in /var/run, then do this the usual configure way:
19819 # ./configure --prefix=/somewhere --sysconfdir=/etc
19820 # ./configure --prefix=/somewhere --localstatedir=/var
19821 #
19822 # To put named.conf and named.pid in /usr/local with everything else,
19823 # set the prefix explicitly to /usr/local even though that's the default:
19824 # ./configure --prefix=/usr/local
19825 #
19826 case "$prefix" in
19827         NONE)
19828                 case "$sysconfdir" in
19829                         '${prefix}/etc')
19830                                 sysconfdir=/etc
19831                                 ;;
19832                 esac
19833                 case "$localstatedir" in
19834                         '${prefix}/var')
19835                                 localstatedir=/var
19836                                 ;;
19837                 esac
19838                 ;;
19839 esac
19840
19841 #
19842 # Make sure INSTALL uses an absolute path, else it will be wrong in all
19843 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
19844 # configure based on the location of the file where it is substituted.
19845 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
19846 # subdirectory of install-sh, This relative path will be wrong for all
19847 # directories more than one level down from install-sh.
19848 #
19849 case "$INSTALL" in
19850         /*)
19851                 ;;
19852         *)
19853                 #
19854                 # Not all systems have dirname.
19855                 #
19856
19857                 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
19858
19859
19860                 ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
19861                 test "$ac_dir" = "$ac_prog" && ac_dir=.
19862                 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
19863                 INSTALL="$ac_dir/$ac_prog"
19864                 ;;
19865 esac
19866
19867 #
19868 # On these hosts, we really want to use cc, not gcc, even if it is
19869 # found.  The gcc that these systems have will not correctly handle
19870 # pthreads.
19871 #
19872 # However, if the user sets $CC to be something, let that override
19873 # our change.
19874 #
19875 if test "X$CC" = "X" ; then
19876         case "$host" in
19877                 *-dec-osf*)
19878                         CC="cc"
19879                         ;;
19880                 *-solaris*)
19881                         # Use Sun's cc if it is available, but watch
19882                         # out for /usr/ucb/cc; it will never be the right
19883                         # compiler to use.
19884                         #
19885                         # If setting CC here fails, the AC_PROG_CC done
19886                         # below might still find gcc.
19887                         IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
19888                         for ac_dir in $PATH; do
19889                                 test -z "$ac_dir" && ac_dir=.
19890                                 case "$ac_dir" in
19891                                 /usr/ucb)
19892                                         # exclude
19893                                         ;;
19894                                 *)
19895                                         if test -f "$ac_dir/cc"; then
19896                                                 CC="$ac_dir/cc"
19897                                                 break
19898                                         fi
19899                                         ;;
19900                                 esac
19901                         done
19902                         IFS="$ac_save_ifs"
19903                         ;;
19904                 *-hp-hpux*)
19905                         CC="cc"
19906                         ;;
19907                 mips-sgi-irix*)
19908                         CC="cc"
19909                         ;;
19910         esac
19911 fi
19912
19913 ac_ext=c
19914 ac_cpp='$CPP $CPPFLAGS'
19915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19918 if test -n "$ac_tool_prefix"; then
19919   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19922 $as_echo_n "checking for $ac_word... " >&6; }
19923 if test "${ac_cv_prog_CC+set}" = set; then
19924   $as_echo_n "(cached) " >&6
19925 else
19926   if test -n "$CC"; then
19927   ac_cv_prog_CC="$CC" # Let the user override the test.
19928 else
19929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19930 for as_dir in $PATH
19931 do
19932   IFS=$as_save_IFS
19933   test -z "$as_dir" && as_dir=.
19934   for ac_exec_ext in '' $ac_executable_extensions; do
19935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19936     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19937     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19938     break 2
19939   fi
19940 done
19941 done
19942 IFS=$as_save_IFS
19943
19944 fi
19945 fi
19946 CC=$ac_cv_prog_CC
19947 if test -n "$CC"; then
19948   { $as_echo "$as_me:$LINENO: result: $CC" >&5
19949 $as_echo "$CC" >&6; }
19950 else
19951   { $as_echo "$as_me:$LINENO: result: no" >&5
19952 $as_echo "no" >&6; }
19953 fi
19954
19955
19956 fi
19957 if test -z "$ac_cv_prog_CC"; then
19958   ac_ct_CC=$CC
19959   # Extract the first word of "gcc", so it can be a program name with args.
19960 set dummy gcc; ac_word=$2
19961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19962 $as_echo_n "checking for $ac_word... " >&6; }
19963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19964   $as_echo_n "(cached) " >&6
19965 else
19966   if test -n "$ac_ct_CC"; then
19967   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19968 else
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19971 do
19972   IFS=$as_save_IFS
19973   test -z "$as_dir" && as_dir=.
19974   for ac_exec_ext in '' $ac_executable_extensions; do
19975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19976     ac_cv_prog_ac_ct_CC="gcc"
19977     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19978     break 2
19979   fi
19980 done
19981 done
19982 IFS=$as_save_IFS
19983
19984 fi
19985 fi
19986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19987 if test -n "$ac_ct_CC"; then
19988   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19989 $as_echo "$ac_ct_CC" >&6; }
19990 else
19991   { $as_echo "$as_me:$LINENO: result: no" >&5
19992 $as_echo "no" >&6; }
19993 fi
19994
19995   if test "x$ac_ct_CC" = x; then
19996     CC=""
19997   else
19998     case $cross_compiling:$ac_tool_warned in
19999 yes:)
20000 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20001 whose name does not start with the host triplet.  If you think this
20002 configuration is useful to you, please write to autoconf@gnu.org." >&5
20003 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20004 whose name does not start with the host triplet.  If you think this
20005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20006 ac_tool_warned=yes ;;
20007 esac
20008     CC=$ac_ct_CC
20009   fi
20010 else
20011   CC="$ac_cv_prog_CC"
20012 fi
20013
20014 if test -z "$CC"; then
20015           if test -n "$ac_tool_prefix"; then
20016     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20017 set dummy ${ac_tool_prefix}cc; ac_word=$2
20018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20019 $as_echo_n "checking for $ac_word... " >&6; }
20020 if test "${ac_cv_prog_CC+set}" = set; then
20021   $as_echo_n "(cached) " >&6
20022 else
20023   if test -n "$CC"; then
20024   ac_cv_prog_CC="$CC" # Let the user override the test.
20025 else
20026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20027 for as_dir in $PATH
20028 do
20029   IFS=$as_save_IFS
20030   test -z "$as_dir" && as_dir=.
20031   for ac_exec_ext in '' $ac_executable_extensions; do
20032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20033     ac_cv_prog_CC="${ac_tool_prefix}cc"
20034     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20035     break 2
20036   fi
20037 done
20038 done
20039 IFS=$as_save_IFS
20040
20041 fi
20042 fi
20043 CC=$ac_cv_prog_CC
20044 if test -n "$CC"; then
20045   { $as_echo "$as_me:$LINENO: result: $CC" >&5
20046 $as_echo "$CC" >&6; }
20047 else
20048   { $as_echo "$as_me:$LINENO: result: no" >&5
20049 $as_echo "no" >&6; }
20050 fi
20051
20052
20053   fi
20054 fi
20055 if test -z "$CC"; then
20056   # Extract the first word of "cc", so it can be a program name with args.
20057 set dummy cc; ac_word=$2
20058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20059 $as_echo_n "checking for $ac_word... " >&6; }
20060 if test "${ac_cv_prog_CC+set}" = set; then
20061   $as_echo_n "(cached) " >&6
20062 else
20063   if test -n "$CC"; then
20064   ac_cv_prog_CC="$CC" # Let the user override the test.
20065 else
20066   ac_prog_rejected=no
20067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20068 for as_dir in $PATH
20069 do
20070   IFS=$as_save_IFS
20071   test -z "$as_dir" && as_dir=.
20072   for ac_exec_ext in '' $ac_executable_extensions; do
20073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20074     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20075        ac_prog_rejected=yes
20076        continue
20077      fi
20078     ac_cv_prog_CC="cc"
20079     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20080     break 2
20081   fi
20082 done
20083 done
20084 IFS=$as_save_IFS
20085
20086 if test $ac_prog_rejected = yes; then
20087   # We found a bogon in the path, so make sure we never use it.
20088   set dummy $ac_cv_prog_CC
20089   shift
20090   if test $# != 0; then
20091     # We chose a different compiler from the bogus one.
20092     # However, it has the same basename, so the bogon will be chosen
20093     # first if we set CC to just the basename; use the full file name.
20094     shift
20095     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20096   fi
20097 fi
20098 fi
20099 fi
20100 CC=$ac_cv_prog_CC
20101 if test -n "$CC"; then
20102   { $as_echo "$as_me:$LINENO: result: $CC" >&5
20103 $as_echo "$CC" >&6; }
20104 else
20105   { $as_echo "$as_me:$LINENO: result: no" >&5
20106 $as_echo "no" >&6; }
20107 fi
20108
20109
20110 fi
20111 if test -z "$CC"; then
20112   if test -n "$ac_tool_prefix"; then
20113   for ac_prog in cl.exe
20114   do
20115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20118 $as_echo_n "checking for $ac_word... " >&6; }
20119 if test "${ac_cv_prog_CC+set}" = set; then
20120   $as_echo_n "(cached) " >&6
20121 else
20122   if test -n "$CC"; then
20123   ac_cv_prog_CC="$CC" # Let the user override the test.
20124 else
20125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20127 do
20128   IFS=$as_save_IFS
20129   test -z "$as_dir" && as_dir=.
20130   for ac_exec_ext in '' $ac_executable_extensions; do
20131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20132     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20133     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20134     break 2
20135   fi
20136 done
20137 done
20138 IFS=$as_save_IFS
20139
20140 fi
20141 fi
20142 CC=$ac_cv_prog_CC
20143 if test -n "$CC"; then
20144   { $as_echo "$as_me:$LINENO: result: $CC" >&5
20145 $as_echo "$CC" >&6; }
20146 else
20147   { $as_echo "$as_me:$LINENO: result: no" >&5
20148 $as_echo "no" >&6; }
20149 fi
20150
20151
20152     test -n "$CC" && break
20153   done
20154 fi
20155 if test -z "$CC"; then
20156   ac_ct_CC=$CC
20157   for ac_prog in cl.exe
20158 do
20159   # Extract the first word of "$ac_prog", so it can be a program name with args.
20160 set dummy $ac_prog; ac_word=$2
20161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20162 $as_echo_n "checking for $ac_word... " >&6; }
20163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20164   $as_echo_n "(cached) " >&6
20165 else
20166   if test -n "$ac_ct_CC"; then
20167   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20168 else
20169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20170 for as_dir in $PATH
20171 do
20172   IFS=$as_save_IFS
20173   test -z "$as_dir" && as_dir=.
20174   for ac_exec_ext in '' $ac_executable_extensions; do
20175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20176     ac_cv_prog_ac_ct_CC="$ac_prog"
20177     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20178     break 2
20179   fi
20180 done
20181 done
20182 IFS=$as_save_IFS
20183
20184 fi
20185 fi
20186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20187 if test -n "$ac_ct_CC"; then
20188   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20189 $as_echo "$ac_ct_CC" >&6; }
20190 else
20191   { $as_echo "$as_me:$LINENO: result: no" >&5
20192 $as_echo "no" >&6; }
20193 fi
20194
20195
20196   test -n "$ac_ct_CC" && break
20197 done
20198
20199   if test "x$ac_ct_CC" = x; then
20200     CC=""
20201   else
20202     case $cross_compiling:$ac_tool_warned in
20203 yes:)
20204 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20205 whose name does not start with the host triplet.  If you think this
20206 configuration is useful to you, please write to autoconf@gnu.org." >&5
20207 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20208 whose name does not start with the host triplet.  If you think this
20209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20210 ac_tool_warned=yes ;;
20211 esac
20212     CC=$ac_ct_CC
20213   fi
20214 fi
20215
20216 fi
20217
20218
20219 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20220 See \`config.log' for more details." >&5
20221 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20222 See \`config.log' for more details." >&2;}
20223    { (exit 1); exit 1; }; }
20224
20225 # Provide some information about the compiler.
20226 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20227 set X $ac_compile
20228 ac_compiler=$2
20229 { (ac_try="$ac_compiler --version >&5"
20230 case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235 $as_echo "$ac_try_echo") >&5
20236   (eval "$ac_compiler --version >&5") 2>&5
20237   ac_status=$?
20238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }
20240 { (ac_try="$ac_compiler -v >&5"
20241 case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20246 $as_echo "$ac_try_echo") >&5
20247   (eval "$ac_compiler -v >&5") 2>&5
20248   ac_status=$?
20249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); }
20251 { (ac_try="$ac_compiler -V >&5"
20252 case "(($ac_try" in
20253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254   *) ac_try_echo=$ac_try;;
20255 esac
20256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20257 $as_echo "$ac_try_echo") >&5
20258   (eval "$ac_compiler -V >&5") 2>&5
20259   ac_status=$?
20260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }
20262
20263 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20264 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20265 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20266   $as_echo_n "(cached) " >&6
20267 else
20268   cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274
20275 int
20276 main ()
20277 {
20278 #ifndef __GNUC__
20279        choke me
20280 #endif
20281
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290   *) ac_try_echo=$ac_try;;
20291 esac
20292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20293 $as_echo "$ac_try_echo") >&5
20294   (eval "$ac_compile") 2>conftest.er1
20295   ac_status=$?
20296   grep -v '^ *+' conftest.er1 >conftest.err
20297   rm -f conftest.er1
20298   cat conftest.err >&5
20299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); } && {
20301          test -z "$ac_c_werror_flag" ||
20302          test ! -s conftest.err
20303        } && test -s conftest.$ac_objext; then
20304   ac_compiler_gnu=yes
20305 else
20306   $as_echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309         ac_compiler_gnu=no
20310 fi
20311
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20314
20315 fi
20316 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20317 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20318 if test $ac_compiler_gnu = yes; then
20319   GCC=yes
20320 else
20321   GCC=
20322 fi
20323 ac_test_CFLAGS=${CFLAGS+set}
20324 ac_save_CFLAGS=$CFLAGS
20325 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20326 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20327 if test "${ac_cv_prog_cc_g+set}" = set; then
20328   $as_echo_n "(cached) " >&6
20329 else
20330   ac_save_c_werror_flag=$ac_c_werror_flag
20331    ac_c_werror_flag=yes
20332    ac_cv_prog_cc_g=no
20333    CFLAGS="-g"
20334    cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h.  */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h.  */
20340
20341 int
20342 main ()
20343 {
20344
20345   ;
20346   return 0;
20347 }
20348 _ACEOF
20349 rm -f conftest.$ac_objext
20350 if { (ac_try="$ac_compile"
20351 case "(($ac_try" in
20352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353   *) ac_try_echo=$ac_try;;
20354 esac
20355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20356 $as_echo "$ac_try_echo") >&5
20357   (eval "$ac_compile") 2>conftest.er1
20358   ac_status=$?
20359   grep -v '^ *+' conftest.er1 >conftest.err
20360   rm -f conftest.er1
20361   cat conftest.err >&5
20362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } && {
20364          test -z "$ac_c_werror_flag" ||
20365          test ! -s conftest.err
20366        } && test -s conftest.$ac_objext; then
20367   ac_cv_prog_cc_g=yes
20368 else
20369   $as_echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372         CFLAGS=""
20373       cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h.  */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h.  */
20379
20380 int
20381 main ()
20382 {
20383
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392   *) ac_try_echo=$ac_try;;
20393 esac
20394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20395 $as_echo "$ac_try_echo") >&5
20396   (eval "$ac_compile") 2>conftest.er1
20397   ac_status=$?
20398   grep -v '^ *+' conftest.er1 >conftest.err
20399   rm -f conftest.er1
20400   cat conftest.err >&5
20401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); } && {
20403          test -z "$ac_c_werror_flag" ||
20404          test ! -s conftest.err
20405        } && test -s conftest.$ac_objext; then
20406   :
20407 else
20408   $as_echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20410
20411         ac_c_werror_flag=$ac_save_c_werror_flag
20412          CFLAGS="-g"
20413          cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419
20420 int
20421 main ()
20422 {
20423
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432   *) ac_try_echo=$ac_try;;
20433 esac
20434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20435 $as_echo "$ac_try_echo") >&5
20436   (eval "$ac_compile") 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } && {
20443          test -z "$ac_c_werror_flag" ||
20444          test ! -s conftest.err
20445        } && test -s conftest.$ac_objext; then
20446   ac_cv_prog_cc_g=yes
20447 else
20448   $as_echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451
20452 fi
20453
20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 fi
20456
20457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20458 fi
20459
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20461    ac_c_werror_flag=$ac_save_c_werror_flag
20462 fi
20463 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20464 $as_echo "$ac_cv_prog_cc_g" >&6; }
20465 if test "$ac_test_CFLAGS" = set; then
20466   CFLAGS=$ac_save_CFLAGS
20467 elif test $ac_cv_prog_cc_g = yes; then
20468   if test "$GCC" = yes; then
20469     CFLAGS="-g -O2"
20470   else
20471     CFLAGS="-g"
20472   fi
20473 else
20474   if test "$GCC" = yes; then
20475     CFLAGS="-O2"
20476   else
20477     CFLAGS=
20478   fi
20479 fi
20480 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20482 if test "${ac_cv_prog_cc_c89+set}" = set; then
20483   $as_echo_n "(cached) " >&6
20484 else
20485   ac_cv_prog_cc_c89=no
20486 ac_save_CC=$CC
20487 cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 #include <stdarg.h>
20494 #include <stdio.h>
20495 #include <sys/types.h>
20496 #include <sys/stat.h>
20497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20498 struct buf { int x; };
20499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20500 static char *e (p, i)
20501      char **p;
20502      int i;
20503 {
20504   return p[i];
20505 }
20506 static char *f (char * (*g) (char **, int), char **p, ...)
20507 {
20508   char *s;
20509   va_list v;
20510   va_start (v,p);
20511   s = g (p, va_arg (v,int));
20512   va_end (v);
20513   return s;
20514 }
20515
20516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20517    function prototypes and stuff, but not '\xHH' hex character constants.
20518    These don't provoke an error unfortunately, instead are silently treated
20519    as 'x'.  The following induces an error, until -std is added to get
20520    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20521    array size at least.  It's necessary to write '\x00'==0 to get something
20522    that's true only with -std.  */
20523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20524
20525 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20526    inside strings and character constants.  */
20527 #define FOO(x) 'x'
20528 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20529
20530 int test (int i, double x);
20531 struct s1 {int (*f) (int a);};
20532 struct s2 {int (*f) (double a);};
20533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20534 int argc;
20535 char **argv;
20536 int
20537 main ()
20538 {
20539 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20540   ;
20541   return 0;
20542 }
20543 _ACEOF
20544 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20545         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20546 do
20547   CC="$ac_save_CC $ac_arg"
20548   rm -f conftest.$ac_objext
20549 if { (ac_try="$ac_compile"
20550 case "(($ac_try" in
20551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552   *) ac_try_echo=$ac_try;;
20553 esac
20554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20555 $as_echo "$ac_try_echo") >&5
20556   (eval "$ac_compile") 2>conftest.er1
20557   ac_status=$?
20558   grep -v '^ *+' conftest.er1 >conftest.err
20559   rm -f conftest.er1
20560   cat conftest.err >&5
20561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } && {
20563          test -z "$ac_c_werror_flag" ||
20564          test ! -s conftest.err
20565        } && test -s conftest.$ac_objext; then
20566   ac_cv_prog_cc_c89=$ac_arg
20567 else
20568   $as_echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571
20572 fi
20573
20574 rm -f core conftest.err conftest.$ac_objext
20575   test "x$ac_cv_prog_cc_c89" != "xno" && break
20576 done
20577 rm -f conftest.$ac_ext
20578 CC=$ac_save_CC
20579
20580 fi
20581 # AC_CACHE_VAL
20582 case "x$ac_cv_prog_cc_c89" in
20583   x)
20584     { $as_echo "$as_me:$LINENO: result: none needed" >&5
20585 $as_echo "none needed" >&6; } ;;
20586   xno)
20587     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20588 $as_echo "unsupported" >&6; } ;;
20589   *)
20590     CC="$CC $ac_cv_prog_cc_c89"
20591     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20592 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20593 esac
20594
20595
20596 ac_ext=c
20597 ac_cpp='$CPP $CPPFLAGS'
20598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601
20602
20603 #
20604 # gcc's optimiser is broken at -02 for ultrasparc
20605 #
20606 if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then
20607         case "$host" in
20608         sparc-*)
20609                 CCFLAGS="-g -O1"
20610                 ;;
20611         esac
20612 fi
20613
20614 #
20615 # OS dependent CC flags
20616 #
20617 case "$host" in
20618         # OSF 5.0: recv/send are only available with -D_POSIX_PII_SOCKET or
20619         # -D_XOPEN_SOURCE_EXTENDED.
20620         *-dec-osf*)
20621                 STD_CDEFINES="$STD_CDEFINES -D_POSIX_PII_SOCKET"
20622                 CPPFLAGS="$CPPFLAGS -D_POSIX_PII_SOCKET"
20623                 ;;
20624         #HP-UX: need -D_XOPEN_SOURCE_EXTENDED and -lxnet for CMSG macros
20625         *-hp-hpux*)
20626                 STD_CDEFINES="$STD_CDEFINES -D_XOPEN_SOURCE_EXTENDED"
20627                 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
20628                 LIBS="-lxnet $LIBS"
20629                 ;;
20630         # Solaris: need -D_XPG4_2 and -D__EXTENSIONS__ for CMSG macros
20631         *-solaris*)
20632                 STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
20633                 CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
20634                 ;;
20635         # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
20636         # parts of the IPv6 Advanced Socket API as a result.  This is stupid
20637         # as it breaks how the two halves (Basic and Advanced) of the IPv6
20638         # Socket API were designed to be used but we have to live with it.
20639         # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
20640         *-linux*)
20641                 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
20642                 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20643                 ;;
20644 esac
20645
20646 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20647 $as_echo_n "checking for ANSI C header files... " >&6; }
20648 if test "${ac_cv_header_stdc+set}" = set; then
20649   $as_echo_n "(cached) " >&6
20650 else
20651   cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #include <stdlib.h>
20658 #include <stdarg.h>
20659 #include <string.h>
20660 #include <float.h>
20661
20662 int
20663 main ()
20664 {
20665
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 rm -f conftest.$ac_objext
20671 if { (ac_try="$ac_compile"
20672 case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20677 $as_echo "$ac_try_echo") >&5
20678   (eval "$ac_compile") 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } && {
20685          test -z "$ac_c_werror_flag" ||
20686          test ! -s conftest.err
20687        } && test -s conftest.$ac_objext; then
20688   ac_cv_header_stdc=yes
20689 else
20690   $as_echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693         ac_cv_header_stdc=no
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697
20698 if test $ac_cv_header_stdc = yes; then
20699   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20700   cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 #include <string.h>
20707
20708 _ACEOF
20709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20710   $EGREP "memchr" >/dev/null 2>&1; then
20711   :
20712 else
20713   ac_cv_header_stdc=no
20714 fi
20715 rm -f conftest*
20716
20717 fi
20718
20719 if test $ac_cv_header_stdc = yes; then
20720   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20721   cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 #include <stdlib.h>
20728
20729 _ACEOF
20730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20731   $EGREP "free" >/dev/null 2>&1; then
20732   :
20733 else
20734   ac_cv_header_stdc=no
20735 fi
20736 rm -f conftest*
20737
20738 fi
20739
20740 if test $ac_cv_header_stdc = yes; then
20741   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20742   if test "$cross_compiling" = yes; then
20743   :
20744 else
20745   cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 #include <ctype.h>
20752 #include <stdlib.h>
20753 #if ((' ' & 0x0FF) == 0x020)
20754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20756 #else
20757 # define ISLOWER(c) \
20758                    (('a' <= (c) && (c) <= 'i') \
20759                      || ('j' <= (c) && (c) <= 'r') \
20760                      || ('s' <= (c) && (c) <= 'z'))
20761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20762 #endif
20763
20764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20765 int
20766 main ()
20767 {
20768   int i;
20769   for (i = 0; i < 256; i++)
20770     if (XOR (islower (i), ISLOWER (i))
20771         || toupper (i) != TOUPPER (i))
20772       return 2;
20773   return 0;
20774 }
20775 _ACEOF
20776 rm -f conftest$ac_exeext
20777 if { (ac_try="$ac_link"
20778 case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20783 $as_echo "$ac_try_echo") >&5
20784   (eval "$ac_link") 2>&5
20785   ac_status=$?
20786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20788   { (case "(($ac_try" in
20789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790   *) ac_try_echo=$ac_try;;
20791 esac
20792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20793 $as_echo "$ac_try_echo") >&5
20794   (eval "$ac_try") 2>&5
20795   ac_status=$?
20796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); }; }; then
20798   :
20799 else
20800   $as_echo "$as_me: program exited with status $ac_status" >&5
20801 $as_echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ( exit $ac_status )
20805 ac_cv_header_stdc=no
20806 fi
20807 rm -rf conftest.dSYM
20808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20809 fi
20810
20811
20812 fi
20813 fi
20814 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20815 $as_echo "$ac_cv_header_stdc" >&6; }
20816 if test $ac_cv_header_stdc = yes; then
20817
20818 cat >>confdefs.h <<\_ACEOF
20819 #define STDC_HEADERS 1
20820 _ACEOF
20821
20822 fi
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834 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
20835 do
20836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20838 $as_echo_n "checking for $ac_header... " >&6; }
20839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20840   $as_echo_n "(cached) " >&6
20841 else
20842   cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h.  */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h.  */
20848 $ac_includes_default
20849 #ifdef HAVE_SYS_PARAM_H
20850 # include <sys/param.h>
20851 #endif
20852
20853
20854 #include <$ac_header>
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860   *) ac_try_echo=$ac_try;;
20861 esac
20862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20863 $as_echo "$ac_try_echo") >&5
20864   (eval "$ac_compile") 2>conftest.er1
20865   ac_status=$?
20866   grep -v '^ *+' conftest.er1 >conftest.err
20867   rm -f conftest.er1
20868   cat conftest.err >&5
20869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); } && {
20871          test -z "$ac_c_werror_flag" ||
20872          test ! -s conftest.err
20873        } && test -s conftest.$ac_objext; then
20874   eval "$as_ac_Header=yes"
20875 else
20876   $as_echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879         eval "$as_ac_Header=no"
20880 fi
20881
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 fi
20884 ac_res=`eval 'as_val=${'$as_ac_Header'}
20885                  $as_echo "$as_val"'`
20886                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20887 $as_echo "$ac_res" >&6; }
20888 if test `eval 'as_val=${'$as_ac_Header'}
20889                  $as_echo "$as_val"'` = yes; then
20890   cat >>confdefs.h <<_ACEOF
20891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20892 _ACEOF
20893
20894 fi
20895
20896 done
20897
20898
20899 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20900 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20901 if test "${ac_cv_c_const+set}" = set; then
20902   $as_echo_n "(cached) " >&6
20903 else
20904   cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910
20911 int
20912 main ()
20913 {
20914 /* FIXME: Include the comments suggested by Paul. */
20915 #ifndef __cplusplus
20916   /* Ultrix mips cc rejects this.  */
20917   typedef int charset[2];
20918   const charset cs;
20919   /* SunOS 4.1.1 cc rejects this.  */
20920   char const *const *pcpcc;
20921   char **ppc;
20922   /* NEC SVR4.0.2 mips cc rejects this.  */
20923   struct point {int x, y;};
20924   static struct point const zero = {0,0};
20925   /* AIX XL C 1.02.0.0 rejects this.
20926      It does not let you subtract one const X* pointer from another in
20927      an arm of an if-expression whose if-part is not a constant
20928      expression */
20929   const char *g = "string";
20930   pcpcc = &g + (g ? g-g : 0);
20931   /* HPUX 7.0 cc rejects these. */
20932   ++pcpcc;
20933   ppc = (char**) pcpcc;
20934   pcpcc = (char const *const *) ppc;
20935   { /* SCO 3.2v4 cc rejects this.  */
20936     char *t;
20937     char const *s = 0 ? (char *) 0 : (char const *) 0;
20938
20939     *t++ = 0;
20940     if (s) return 0;
20941   }
20942   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20943     int x[] = {25, 17};
20944     const int *foo = &x[0];
20945     ++foo;
20946   }
20947   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20948     typedef const int *iptr;
20949     iptr p = 0;
20950     ++p;
20951   }
20952   { /* AIX XL C 1.02.0.0 rejects this saying
20953        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20954     struct s { int j; const int *ap[3]; };
20955     struct s *b; b->j = 5;
20956   }
20957   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20958     const int foo = 10;
20959     if (!foo) return 0;
20960   }
20961   return !cs[0] && !zero.x;
20962 #endif
20963
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20975 $as_echo "$ac_try_echo") >&5
20976   (eval "$ac_compile") 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } && {
20983          test -z "$ac_c_werror_flag" ||
20984          test ! -s conftest.err
20985        } && test -s conftest.$ac_objext; then
20986   ac_cv_c_const=yes
20987 else
20988   $as_echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991         ac_cv_c_const=no
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 fi
20996 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20997 $as_echo "$ac_cv_c_const" >&6; }
20998 if test $ac_cv_c_const = no; then
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define const /**/
21002 _ACEOF
21003
21004 fi
21005
21006 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21007 $as_echo_n "checking for inline... " >&6; }
21008 if test "${ac_cv_c_inline+set}" = set; then
21009   $as_echo_n "(cached) " >&6
21010 else
21011   ac_cv_c_inline=no
21012 for ac_kw in inline __inline__ __inline; do
21013   cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 #ifndef __cplusplus
21020 typedef int foo_t;
21021 static $ac_kw foo_t static_foo () {return 0; }
21022 $ac_kw foo_t foo () {return 0; }
21023 #endif
21024
21025 _ACEOF
21026 rm -f conftest.$ac_objext
21027 if { (ac_try="$ac_compile"
21028 case "(($ac_try" in
21029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030   *) ac_try_echo=$ac_try;;
21031 esac
21032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21033 $as_echo "$ac_try_echo") >&5
21034   (eval "$ac_compile") 2>conftest.er1
21035   ac_status=$?
21036   grep -v '^ *+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } && {
21041          test -z "$ac_c_werror_flag" ||
21042          test ! -s conftest.err
21043        } && test -s conftest.$ac_objext; then
21044   ac_cv_c_inline=$ac_kw
21045 else
21046   $as_echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049
21050 fi
21051
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053   test "$ac_cv_c_inline" != no && break
21054 done
21055
21056 fi
21057 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21058 $as_echo "$ac_cv_c_inline" >&6; }
21059
21060
21061 case $ac_cv_c_inline in
21062   inline | yes) ;;
21063   *)
21064     case $ac_cv_c_inline in
21065       no) ac_val=;;
21066       *) ac_val=$ac_cv_c_inline;;
21067     esac
21068     cat >>confdefs.h <<_ACEOF
21069 #ifndef __cplusplus
21070 #define inline $ac_val
21071 #endif
21072 _ACEOF
21073     ;;
21074 esac
21075
21076 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
21077 $as_echo_n "checking for working volatile... " >&6; }
21078 if test "${ac_cv_c_volatile+set}" = set; then
21079   $as_echo_n "(cached) " >&6
21080 else
21081   cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087
21088 int
21089 main ()
21090 {
21091
21092 volatile int x;
21093 int * volatile y = (int *) 0;
21094 return !x && !y;
21095   ;
21096   return 0;
21097 }
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103   *) ac_try_echo=$ac_try;;
21104 esac
21105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21106 $as_echo "$ac_try_echo") >&5
21107   (eval "$ac_compile") 2>conftest.er1
21108   ac_status=$?
21109   grep -v '^ *+' conftest.er1 >conftest.err
21110   rm -f conftest.er1
21111   cat conftest.err >&5
21112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } && {
21114          test -z "$ac_c_werror_flag" ||
21115          test ! -s conftest.err
21116        } && test -s conftest.$ac_objext; then
21117   ac_cv_c_volatile=yes
21118 else
21119   $as_echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122         ac_cv_c_volatile=no
21123 fi
21124
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 fi
21127 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
21128 $as_echo "$ac_cv_c_volatile" >&6; }
21129 if test $ac_cv_c_volatile = no; then
21130
21131 cat >>confdefs.h <<\_ACEOF
21132 #define volatile /**/
21133 _ACEOF
21134
21135 fi
21136
21137 { $as_echo "$as_me:$LINENO: checking for sysctlbyname" >&5
21138 $as_echo_n "checking for sysctlbyname... " >&6; }
21139 if test "${ac_cv_func_sysctlbyname+set}" = set; then
21140   $as_echo_n "(cached) " >&6
21141 else
21142   cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 /* Define sysctlbyname to an innocuous variant, in case <limits.h> declares sysctlbyname.
21149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21150 #define sysctlbyname innocuous_sysctlbyname
21151
21152 /* System header to define __stub macros and hopefully few prototypes,
21153     which can conflict with char sysctlbyname (); below.
21154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21155     <limits.h> exists even on freestanding compilers.  */
21156
21157 #ifdef __STDC__
21158 # include <limits.h>
21159 #else
21160 # include <assert.h>
21161 #endif
21162
21163 #undef sysctlbyname
21164
21165 /* Override any GCC internal prototype to avoid an error.
21166    Use char because int might match the return type of a GCC
21167    builtin and then its argument prototype would still apply.  */
21168 #ifdef __cplusplus
21169 extern "C"
21170 #endif
21171 char sysctlbyname ();
21172 /* The GNU C library defines this for functions which it implements
21173     to always fail with ENOSYS.  Some functions are actually named
21174     something starting with __ and the normal name is an alias.  */
21175 #if defined __stub_sysctlbyname || defined __stub___sysctlbyname
21176 choke me
21177 #endif
21178
21179 int
21180 main ()
21181 {
21182 return sysctlbyname ();
21183   ;
21184   return 0;
21185 }
21186 _ACEOF
21187 rm -f conftest.$ac_objext conftest$ac_exeext
21188 if { (ac_try="$ac_link"
21189 case "(($ac_try" in
21190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191   *) ac_try_echo=$ac_try;;
21192 esac
21193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21194 $as_echo "$ac_try_echo") >&5
21195   (eval "$ac_link") 2>conftest.er1
21196   ac_status=$?
21197   grep -v '^ *+' conftest.er1 >conftest.err
21198   rm -f conftest.er1
21199   cat conftest.err >&5
21200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } && {
21202          test -z "$ac_c_werror_flag" ||
21203          test ! -s conftest.err
21204        } && test -s conftest$ac_exeext && {
21205          test "$cross_compiling" = yes ||
21206          $as_test_x conftest$ac_exeext
21207        }; then
21208   ac_cv_func_sysctlbyname=yes
21209 else
21210   $as_echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21212
21213         ac_cv_func_sysctlbyname=no
21214 fi
21215
21216 rm -rf conftest.dSYM
21217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21218       conftest$ac_exeext conftest.$ac_ext
21219 fi
21220 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sysctlbyname" >&5
21221 $as_echo "$ac_cv_func_sysctlbyname" >&6; }
21222 if test $ac_cv_func_sysctlbyname = yes; then
21223   cat >>confdefs.h <<\_ACEOF
21224 #define HAVE_SYSCTLBYNAME 1
21225 _ACEOF
21226
21227 fi
21228
21229
21230   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
21231 $as_echo_n "checking for flexible array members... " >&6; }
21232 if test "${ac_cv_c_flexmember+set}" = set; then
21233   $as_echo_n "(cached) " >&6
21234 else
21235   cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h.  */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h.  */
21241 #include <stdlib.h>
21242             #include <stdio.h>
21243             #include <stddef.h>
21244             struct s { int n; double d[]; };
21245 int
21246 main ()
21247 {
21248 int m = getchar ();
21249             struct s *p = malloc (offsetof (struct s, d)
21250                                   + m * sizeof (double));
21251             p->d[0] = 0.0;
21252             return p->d != (double *) NULL;
21253   ;
21254   return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (ac_try="$ac_compile"
21259 case "(($ac_try" in
21260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261   *) ac_try_echo=$ac_try;;
21262 esac
21263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21264 $as_echo "$ac_try_echo") >&5
21265   (eval "$ac_compile") 2>conftest.er1
21266   ac_status=$?
21267   grep -v '^ *+' conftest.er1 >conftest.err
21268   rm -f conftest.er1
21269   cat conftest.err >&5
21270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } && {
21272          test -z "$ac_c_werror_flag" ||
21273          test ! -s conftest.err
21274        } && test -s conftest.$ac_objext; then
21275   ac_cv_c_flexmember=yes
21276 else
21277   $as_echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280         ac_cv_c_flexmember=no
21281 fi
21282
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 fi
21285 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
21286 $as_echo "$ac_cv_c_flexmember" >&6; }
21287   if test $ac_cv_c_flexmember = yes; then
21288
21289 cat >>confdefs.h <<\_ACEOF
21290 #define FLEXIBLE_ARRAY_MEMBER /**/
21291 _ACEOF
21292
21293   else
21294     cat >>confdefs.h <<\_ACEOF
21295 #define FLEXIBLE_ARRAY_MEMBER 1
21296 _ACEOF
21297
21298   fi
21299
21300
21301 #
21302 # Older versions of HP/UX don't define seteuid() and setegid()
21303 #
21304
21305
21306 for ac_func in seteuid setresuid
21307 do
21308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21310 $as_echo_n "checking for $ac_func... " >&6; }
21311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21312   $as_echo_n "(cached) " >&6
21313 else
21314   cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21322 #define $ac_func innocuous_$ac_func
21323
21324 /* System header to define __stub macros and hopefully few prototypes,
21325     which can conflict with char $ac_func (); below.
21326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21327     <limits.h> exists even on freestanding compilers.  */
21328
21329 #ifdef __STDC__
21330 # include <limits.h>
21331 #else
21332 # include <assert.h>
21333 #endif
21334
21335 #undef $ac_func
21336
21337 /* Override any GCC internal prototype to avoid an error.
21338    Use char because int might match the return type of a GCC
21339    builtin and then its argument prototype would still apply.  */
21340 #ifdef __cplusplus
21341 extern "C"
21342 #endif
21343 char $ac_func ();
21344 /* The GNU C library defines this for functions which it implements
21345     to always fail with ENOSYS.  Some functions are actually named
21346     something starting with __ and the normal name is an alias.  */
21347 #if defined __stub_$ac_func || defined __stub___$ac_func
21348 choke me
21349 #endif
21350
21351 int
21352 main ()
21353 {
21354 return $ac_func ();
21355   ;
21356   return 0;
21357 }
21358 _ACEOF
21359 rm -f conftest.$ac_objext conftest$ac_exeext
21360 if { (ac_try="$ac_link"
21361 case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21366 $as_echo "$ac_try_echo") >&5
21367   (eval "$ac_link") 2>conftest.er1
21368   ac_status=$?
21369   grep -v '^ *+' conftest.er1 >conftest.err
21370   rm -f conftest.er1
21371   cat conftest.err >&5
21372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); } && {
21374          test -z "$ac_c_werror_flag" ||
21375          test ! -s conftest.err
21376        } && test -s conftest$ac_exeext && {
21377          test "$cross_compiling" = yes ||
21378          $as_test_x conftest$ac_exeext
21379        }; then
21380   eval "$as_ac_var=yes"
21381 else
21382   $as_echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385         eval "$as_ac_var=no"
21386 fi
21387
21388 rm -rf conftest.dSYM
21389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21390       conftest$ac_exeext conftest.$ac_ext
21391 fi
21392 ac_res=`eval 'as_val=${'$as_ac_var'}
21393                  $as_echo "$as_val"'`
21394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21395 $as_echo "$ac_res" >&6; }
21396 if test `eval 'as_val=${'$as_ac_var'}
21397                  $as_echo "$as_val"'` = yes; then
21398   cat >>confdefs.h <<_ACEOF
21399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21400 _ACEOF
21401
21402 fi
21403 done
21404
21405
21406
21407 for ac_func in setegid setresgid
21408 do
21409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21410 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21411 $as_echo_n "checking for $ac_func... " >&6; }
21412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21413   $as_echo_n "(cached) " >&6
21414 else
21415   cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21423 #define $ac_func innocuous_$ac_func
21424
21425 /* System header to define __stub macros and hopefully few prototypes,
21426     which can conflict with char $ac_func (); below.
21427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428     <limits.h> exists even on freestanding compilers.  */
21429
21430 #ifdef __STDC__
21431 # include <limits.h>
21432 #else
21433 # include <assert.h>
21434 #endif
21435
21436 #undef $ac_func
21437
21438 /* Override any GCC internal prototype to avoid an error.
21439    Use char because int might match the return type of a GCC
21440    builtin and then its argument prototype would still apply.  */
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 char $ac_func ();
21445 /* The GNU C library defines this for functions which it implements
21446     to always fail with ENOSYS.  Some functions are actually named
21447     something starting with __ and the normal name is an alias.  */
21448 #if defined __stub_$ac_func || defined __stub___$ac_func
21449 choke me
21450 #endif
21451
21452 int
21453 main ()
21454 {
21455 return $ac_func ();
21456   ;
21457   return 0;
21458 }
21459 _ACEOF
21460 rm -f conftest.$ac_objext conftest$ac_exeext
21461 if { (ac_try="$ac_link"
21462 case "(($ac_try" in
21463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464   *) ac_try_echo=$ac_try;;
21465 esac
21466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21467 $as_echo "$ac_try_echo") >&5
21468   (eval "$ac_link") 2>conftest.er1
21469   ac_status=$?
21470   grep -v '^ *+' conftest.er1 >conftest.err
21471   rm -f conftest.er1
21472   cat conftest.err >&5
21473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); } && {
21475          test -z "$ac_c_werror_flag" ||
21476          test ! -s conftest.err
21477        } && test -s conftest$ac_exeext && {
21478          test "$cross_compiling" = yes ||
21479          $as_test_x conftest$ac_exeext
21480        }; then
21481   eval "$as_ac_var=yes"
21482 else
21483   $as_echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486         eval "$as_ac_var=no"
21487 fi
21488
21489 rm -rf conftest.dSYM
21490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491       conftest$ac_exeext conftest.$ac_ext
21492 fi
21493 ac_res=`eval 'as_val=${'$as_ac_var'}
21494                  $as_echo "$as_val"'`
21495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21496 $as_echo "$ac_res" >&6; }
21497 if test `eval 'as_val=${'$as_ac_var'}
21498                  $as_echo "$as_val"'` = yes; then
21499   cat >>confdefs.h <<_ACEOF
21500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21501 _ACEOF
21502
21503 fi
21504 done
21505
21506
21507 #
21508 # UnixWare 7.1.1 with the feature supplement to the UDK compiler
21509 # is reported to not support "static inline" (RT #1212).
21510 #
21511 { $as_echo "$as_me:$LINENO: checking for static inline breakage" >&5
21512 $as_echo_n "checking for static inline breakage... " >&6; }
21513 cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519
21520 int
21521 main ()
21522 {
21523
21524                 foo1();
21525         }
21526
21527         static inline int foo1() {
21528                 return 0;
21529         }
21530
21531         static inline int foo2() {
21532                 return foo1();
21533
21534   ;
21535   return 0;
21536 }
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542   *) ac_try_echo=$ac_try;;
21543 esac
21544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21545 $as_echo "$ac_try_echo") >&5
21546   (eval "$ac_compile") 2>conftest.er1
21547   ac_status=$?
21548   grep -v '^ *+' conftest.er1 >conftest.err
21549   rm -f conftest.er1
21550   cat conftest.err >&5
21551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } && {
21553          test -z "$ac_c_werror_flag" ||
21554          test ! -s conftest.err
21555        } && test -s conftest.$ac_objext; then
21556   { $as_echo "$as_me:$LINENO: result: no" >&5
21557 $as_echo "no" >&6; }
21558 else
21559   $as_echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562         { $as_echo "$as_me:$LINENO: result: yes" >&5
21563 $as_echo "yes" >&6; }
21564          cat >>confdefs.h <<\_ACEOF
21565 #define inline /**/
21566 _ACEOF
21567
21568 fi
21569
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571
21572 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21573 $as_echo_n "checking for size_t... " >&6; }
21574 if test "${ac_cv_type_size_t+set}" = set; then
21575   $as_echo_n "(cached) " >&6
21576 else
21577   ac_cv_type_size_t=no
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 $ac_includes_default
21585 int
21586 main ()
21587 {
21588 if (sizeof (size_t))
21589        return 0;
21590   ;
21591   return 0;
21592 }
21593 _ACEOF
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21601 $as_echo "$ac_try_echo") >&5
21602   (eval "$ac_compile") 2>conftest.er1
21603   ac_status=$?
21604   grep -v '^ *+' conftest.er1 >conftest.err
21605   rm -f conftest.er1
21606   cat conftest.err >&5
21607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && {
21609          test -z "$ac_c_werror_flag" ||
21610          test ! -s conftest.err
21611        } && test -s conftest.$ac_objext; then
21612   cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618 $ac_includes_default
21619 int
21620 main ()
21621 {
21622 if (sizeof ((size_t)))
21623           return 0;
21624   ;
21625   return 0;
21626 }
21627 _ACEOF
21628 rm -f conftest.$ac_objext
21629 if { (ac_try="$ac_compile"
21630 case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21635 $as_echo "$ac_try_echo") >&5
21636   (eval "$ac_compile") 2>conftest.er1
21637   ac_status=$?
21638   grep -v '^ *+' conftest.er1 >conftest.err
21639   rm -f conftest.er1
21640   cat conftest.err >&5
21641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && {
21643          test -z "$ac_c_werror_flag" ||
21644          test ! -s conftest.err
21645        } && test -s conftest.$ac_objext; then
21646   :
21647 else
21648   $as_echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         ac_cv_type_size_t=yes
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 else
21656   $as_echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21658
21659
21660 fi
21661
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663 fi
21664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21665 $as_echo "$ac_cv_type_size_t" >&6; }
21666 if test $ac_cv_type_size_t = yes; then
21667   :
21668 else
21669
21670 cat >>confdefs.h <<_ACEOF
21671 #define size_t unsigned int
21672 _ACEOF
21673
21674 fi
21675
21676 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
21677 $as_echo_n "checking for ssize_t... " >&6; }
21678 if test "${ac_cv_type_ssize_t+set}" = set; then
21679   $as_echo_n "(cached) " >&6
21680 else
21681   ac_cv_type_ssize_t=no
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688 $ac_includes_default
21689 int
21690 main ()
21691 {
21692 if (sizeof (ssize_t))
21693        return 0;
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21705 $as_echo "$ac_try_echo") >&5
21706   (eval "$ac_compile") 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } && {
21713          test -z "$ac_c_werror_flag" ||
21714          test ! -s conftest.err
21715        } && test -s conftest.$ac_objext; then
21716   cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722 $ac_includes_default
21723 int
21724 main ()
21725 {
21726 if (sizeof ((ssize_t)))
21727           return 0;
21728   ;
21729   return 0;
21730 }
21731 _ACEOF
21732 rm -f conftest.$ac_objext
21733 if { (ac_try="$ac_compile"
21734 case "(($ac_try" in
21735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736   *) ac_try_echo=$ac_try;;
21737 esac
21738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21739 $as_echo "$ac_try_echo") >&5
21740   (eval "$ac_compile") 2>conftest.er1
21741   ac_status=$?
21742   grep -v '^ *+' conftest.er1 >conftest.err
21743   rm -f conftest.er1
21744   cat conftest.err >&5
21745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); } && {
21747          test -z "$ac_c_werror_flag" ||
21748          test ! -s conftest.err
21749        } && test -s conftest.$ac_objext; then
21750   :
21751 else
21752   $as_echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755         ac_cv_type_ssize_t=yes
21756 fi
21757
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759 else
21760   $as_echo "$as_me: failed program was:" >&5
21761 sed 's/^/| /' conftest.$ac_ext >&5
21762
21763
21764 fi
21765
21766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21767 fi
21768 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21769 $as_echo "$ac_cv_type_ssize_t" >&6; }
21770 if test $ac_cv_type_ssize_t = yes; then
21771   :
21772 else
21773
21774 cat >>confdefs.h <<_ACEOF
21775 #define ssize_t int
21776 _ACEOF
21777
21778 fi
21779
21780 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
21781 $as_echo_n "checking for uintptr_t... " >&6; }
21782 if test "${ac_cv_type_uintptr_t+set}" = set; then
21783   $as_echo_n "(cached) " >&6
21784 else
21785   ac_cv_type_uintptr_t=no
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 $ac_includes_default
21793 int
21794 main ()
21795 {
21796 if (sizeof (uintptr_t))
21797        return 0;
21798   ;
21799   return 0;
21800 }
21801 _ACEOF
21802 rm -f conftest.$ac_objext
21803 if { (ac_try="$ac_compile"
21804 case "(($ac_try" in
21805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806   *) ac_try_echo=$ac_try;;
21807 esac
21808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21809 $as_echo "$ac_try_echo") >&5
21810   (eval "$ac_compile") 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } && {
21817          test -z "$ac_c_werror_flag" ||
21818          test ! -s conftest.err
21819        } && test -s conftest.$ac_objext; then
21820   cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826 $ac_includes_default
21827 int
21828 main ()
21829 {
21830 if (sizeof ((uintptr_t)))
21831           return 0;
21832   ;
21833   return 0;
21834 }
21835 _ACEOF
21836 rm -f conftest.$ac_objext
21837 if { (ac_try="$ac_compile"
21838 case "(($ac_try" in
21839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840   *) ac_try_echo=$ac_try;;
21841 esac
21842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21843 $as_echo "$ac_try_echo") >&5
21844   (eval "$ac_compile") 2>conftest.er1
21845   ac_status=$?
21846   grep -v '^ *+' conftest.er1 >conftest.err
21847   rm -f conftest.er1
21848   cat conftest.err >&5
21849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); } && {
21851          test -z "$ac_c_werror_flag" ||
21852          test ! -s conftest.err
21853        } && test -s conftest.$ac_objext; then
21854   :
21855 else
21856   $as_echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859         ac_cv_type_uintptr_t=yes
21860 fi
21861
21862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21863 else
21864   $as_echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21866
21867
21868 fi
21869
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21871 fi
21872 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21873 $as_echo "$ac_cv_type_uintptr_t" >&6; }
21874 if test $ac_cv_type_uintptr_t = yes; then
21875   :
21876 else
21877
21878 cat >>confdefs.h <<_ACEOF
21879 #define uintptr_t unsigned long
21880 _ACEOF
21881
21882 fi
21883
21884 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
21885 $as_echo_n "checking for socklen_t... " >&6; }
21886 if test "${ac_cv_type_socklen_t+set}" = set; then
21887   $as_echo_n "(cached) " >&6
21888 else
21889   ac_cv_type_socklen_t=no
21890 cat >conftest.$ac_ext <<_ACEOF
21891 /* confdefs.h.  */
21892 _ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h.  */
21896
21897 #include <sys/types.h>
21898 #include <sys/socket.h>
21899
21900
21901 int
21902 main ()
21903 {
21904 if (sizeof (socklen_t))
21905        return 0;
21906   ;
21907   return 0;
21908 }
21909 _ACEOF
21910 rm -f conftest.$ac_objext
21911 if { (ac_try="$ac_compile"
21912 case "(($ac_try" in
21913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914   *) ac_try_echo=$ac_try;;
21915 esac
21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918   (eval "$ac_compile") 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } && {
21925          test -z "$ac_c_werror_flag" ||
21926          test ! -s conftest.err
21927        } && test -s conftest.$ac_objext; then
21928   cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h.  */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h.  */
21934
21935 #include <sys/types.h>
21936 #include <sys/socket.h>
21937
21938
21939 int
21940 main ()
21941 {
21942 if (sizeof ((socklen_t)))
21943           return 0;
21944   ;
21945   return 0;
21946 }
21947 _ACEOF
21948 rm -f conftest.$ac_objext
21949 if { (ac_try="$ac_compile"
21950 case "(($ac_try" in
21951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952   *) ac_try_echo=$ac_try;;
21953 esac
21954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21955 $as_echo "$ac_try_echo") >&5
21956   (eval "$ac_compile") 2>conftest.er1
21957   ac_status=$?
21958   grep -v '^ *+' conftest.er1 >conftest.err
21959   rm -f conftest.er1
21960   cat conftest.err >&5
21961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); } && {
21963          test -z "$ac_c_werror_flag" ||
21964          test ! -s conftest.err
21965        } && test -s conftest.$ac_objext; then
21966   :
21967 else
21968   $as_echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21970
21971         ac_cv_type_socklen_t=yes
21972 fi
21973
21974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975 else
21976   $as_echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979
21980 fi
21981
21982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21983 fi
21984 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21985 $as_echo "$ac_cv_type_socklen_t" >&6; }
21986 if test $ac_cv_type_socklen_t = yes; then
21987   cat >>confdefs.h <<\_ACEOF
21988 #define ISC_SOCKADDR_LEN_T socklen_t
21989 _ACEOF
21990
21991 else
21992
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999
22000 #include <sys/types.h>
22001 #include <sys/socket.h>
22002 int getsockname(int, struct sockaddr *, size_t *);
22003
22004 int
22005 main ()
22006 {
22007
22008   ;
22009   return 0;
22010 }
22011 _ACEOF
22012 rm -f conftest.$ac_objext
22013 if { (ac_try="$ac_compile"
22014 case "(($ac_try" in
22015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22016   *) ac_try_echo=$ac_try;;
22017 esac
22018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22019 $as_echo "$ac_try_echo") >&5
22020   (eval "$ac_compile") 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } && {
22027          test -z "$ac_c_werror_flag" ||
22028          test ! -s conftest.err
22029        } && test -s conftest.$ac_objext; then
22030   cat >>confdefs.h <<\_ACEOF
22031 #define ISC_SOCKADDR_LEN_T size_t
22032 _ACEOF
22033
22034 else
22035   $as_echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038         cat >>confdefs.h <<\_ACEOF
22039 #define ISC_SOCKADDR_LEN_T int
22040 _ACEOF
22041
22042 fi
22043
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045
22046 fi
22047
22048
22049 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22050 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22051 if test "${ac_cv_header_time+set}" = set; then
22052   $as_echo_n "(cached) " >&6
22053 else
22054   cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h.  */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h.  */
22060 #include <sys/types.h>
22061 #include <sys/time.h>
22062 #include <time.h>
22063
22064 int
22065 main ()
22066 {
22067 if ((struct tm *) 0)
22068 return 0;
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 rm -f conftest.$ac_objext
22074 if { (ac_try="$ac_compile"
22075 case "(($ac_try" in
22076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077   *) ac_try_echo=$ac_try;;
22078 esac
22079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22080 $as_echo "$ac_try_echo") >&5
22081   (eval "$ac_compile") 2>conftest.er1
22082   ac_status=$?
22083   grep -v '^ *+' conftest.er1 >conftest.err
22084   rm -f conftest.er1
22085   cat conftest.err >&5
22086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); } && {
22088          test -z "$ac_c_werror_flag" ||
22089          test ! -s conftest.err
22090        } && test -s conftest.$ac_objext; then
22091   ac_cv_header_time=yes
22092 else
22093   $as_echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096         ac_cv_header_time=no
22097 fi
22098
22099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22100 fi
22101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22102 $as_echo "$ac_cv_header_time" >&6; }
22103 if test $ac_cv_header_time = yes; then
22104
22105 cat >>confdefs.h <<\_ACEOF
22106 #define TIME_WITH_SYS_TIME 1
22107 _ACEOF
22108
22109 fi
22110
22111 { $as_echo "$as_me:$LINENO: checking for long long" >&5
22112 $as_echo_n "checking for long long... " >&6; }
22113 cat >conftest.$ac_ext <<_ACEOF
22114 /* confdefs.h.  */
22115 _ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h.  */
22119
22120 int
22121 main ()
22122 {
22123 long long i = 0; return (0);
22124   ;
22125   return 0;
22126 }
22127 _ACEOF
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132   *) ac_try_echo=$ac_try;;
22133 esac
22134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22135 $as_echo "$ac_try_echo") >&5
22136   (eval "$ac_compile") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } && {
22143          test -z "$ac_c_werror_flag" ||
22144          test ! -s conftest.err
22145        } && test -s conftest.$ac_objext; then
22146   { $as_echo "$as_me:$LINENO: result: yes" >&5
22147 $as_echo "yes" >&6; }
22148                 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
22149 else
22150   $as_echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22152
22153         { $as_echo "$as_me:$LINENO: result: no" >&5
22154 $as_echo "no" >&6; }
22155                 ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"
22156 fi
22157
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159
22160
22161 #
22162 # check for GCC noreturn attribute
22163 #
22164 { $as_echo "$as_me:$LINENO: checking for GCC noreturn attribute" >&5
22165 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
22166 cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172
22173 int
22174 main ()
22175 {
22176 void foo() __attribute__((noreturn));
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 rm -f conftest.$ac_objext
22182 if { (ac_try="$ac_compile"
22183 case "(($ac_try" in
22184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185   *) ac_try_echo=$ac_try;;
22186 esac
22187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22188 $as_echo "$ac_try_echo") >&5
22189   (eval "$ac_compile") 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } && {
22196          test -z "$ac_c_werror_flag" ||
22197          test ! -s conftest.err
22198        } && test -s conftest.$ac_objext; then
22199   { $as_echo "$as_me:$LINENO: result: yes" >&5
22200 $as_echo "yes" >&6; }
22201                 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
22202                 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
22203 else
22204   $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207         { $as_echo "$as_me:$LINENO: result: no" >&5
22208 $as_echo "no" >&6; }
22209                 ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
22210                 ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
22211 fi
22212
22213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214
22215
22216
22217 #
22218 # check if we have lifconf
22219 #
22220 { $as_echo "$as_me:$LINENO: checking for struct lifconf" >&5
22221 $as_echo_n "checking for struct lifconf... " >&6; }
22222 cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228
22229 #include <sys/types.h>
22230 #include <sys/socket.h>
22231 #include <net/if.h>
22232
22233 int
22234 main ()
22235 {
22236
22237 struct lifconf lifconf;
22238 lifconf.lifc_len = 0;
22239
22240
22241   ;
22242   return 0;
22243 }
22244 _ACEOF
22245 rm -f conftest.$ac_objext
22246 if { (ac_try="$ac_compile"
22247 case "(($ac_try" in
22248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249   *) ac_try_echo=$ac_try;;
22250 esac
22251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22252 $as_echo "$ac_try_echo") >&5
22253   (eval "$ac_compile") 2>conftest.er1
22254   ac_status=$?
22255   grep -v '^ *+' conftest.er1 >conftest.err
22256   rm -f conftest.er1
22257   cat conftest.err >&5
22258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259   (exit $ac_status); } && {
22260          test -z "$ac_c_werror_flag" ||
22261          test ! -s conftest.err
22262        } && test -s conftest.$ac_objext; then
22263   { $as_echo "$as_me:$LINENO: result: yes" >&5
22264 $as_echo "yes" >&6; }
22265                 ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"
22266 else
22267   $as_echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270         { $as_echo "$as_me:$LINENO: result: no" >&5
22271 $as_echo "no" >&6; }
22272                 ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"
22273 fi
22274
22275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22276
22277
22278 #
22279 # check if we have kqueue
22280 #
22281 # Check whether --enable-kqueue was given.
22282 if test "${enable_kqueue+set}" = set; then
22283   enableval=$enable_kqueue; want_kqueue="$enableval"
22284 else
22285   want_kqueue="yes"
22286 fi
22287
22288 case $want_kqueue in
22289 yes)
22290         { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
22291 $as_echo_n "checking for kqueue... " >&6; }
22292 if test "${ac_cv_func_kqueue+set}" = set; then
22293   $as_echo_n "(cached) " >&6
22294 else
22295   cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h.  */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h.  */
22301 /* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
22302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22303 #define kqueue innocuous_kqueue
22304
22305 /* System header to define __stub macros and hopefully few prototypes,
22306     which can conflict with char kqueue (); below.
22307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22308     <limits.h> exists even on freestanding compilers.  */
22309
22310 #ifdef __STDC__
22311 # include <limits.h>
22312 #else
22313 # include <assert.h>
22314 #endif
22315
22316 #undef kqueue
22317
22318 /* Override any GCC internal prototype to avoid an error.
22319    Use char because int might match the return type of a GCC
22320    builtin and then its argument prototype would still apply.  */
22321 #ifdef __cplusplus
22322 extern "C"
22323 #endif
22324 char kqueue ();
22325 /* The GNU C library defines this for functions which it implements
22326     to always fail with ENOSYS.  Some functions are actually named
22327     something starting with __ and the normal name is an alias.  */
22328 #if defined __stub_kqueue || defined __stub___kqueue
22329 choke me
22330 #endif
22331
22332 int
22333 main ()
22334 {
22335 return kqueue ();
22336   ;
22337   return 0;
22338 }
22339 _ACEOF
22340 rm -f conftest.$ac_objext conftest$ac_exeext
22341 if { (ac_try="$ac_link"
22342 case "(($ac_try" in
22343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344   *) ac_try_echo=$ac_try;;
22345 esac
22346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22347 $as_echo "$ac_try_echo") >&5
22348   (eval "$ac_link") 2>conftest.er1
22349   ac_status=$?
22350   grep -v '^ *+' conftest.er1 >conftest.err
22351   rm -f conftest.er1
22352   cat conftest.err >&5
22353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } && {
22355          test -z "$ac_c_werror_flag" ||
22356          test ! -s conftest.err
22357        } && test -s conftest$ac_exeext && {
22358          test "$cross_compiling" = yes ||
22359          $as_test_x conftest$ac_exeext
22360        }; then
22361   ac_cv_func_kqueue=yes
22362 else
22363   $as_echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366         ac_cv_func_kqueue=no
22367 fi
22368
22369 rm -rf conftest.dSYM
22370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22371       conftest$ac_exeext conftest.$ac_ext
22372 fi
22373 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5
22374 $as_echo "$ac_cv_func_kqueue" >&6; }
22375 if test $ac_cv_func_kqueue = yes; then
22376   ac_cv_have_kqueue=yes
22377 else
22378   ac_cv_have_kqueue=no
22379 fi
22380
22381         case $ac_cv_have_kqueue in
22382         yes)
22383                 ISC_PLATFORM_HAVEKQUEUE="#define ISC_PLATFORM_HAVEKQUEUE 1"
22384                 ;;
22385         *)
22386                 ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
22387                 ;;
22388         esac
22389         ;;
22390 *)
22391         ISC_PLATFORM_HAVEKQUEUE="#undef ISC_PLATFORM_HAVEKQUEUE"
22392         ;;
22393 esac
22394
22395
22396 #
22397 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
22398 # so we need to try running the code, not just test its existence.
22399 #
22400 # Check whether --enable-epoll was given.
22401 if test "${enable_epoll+set}" = set; then
22402   enableval=$enable_epoll; want_epoll="$enableval"
22403 else
22404   want_epoll="auto"
22405 fi
22406
22407 case $want_epoll in
22408 auto)
22409         { $as_echo "$as_me:$LINENO: checking epoll support" >&5
22410 $as_echo_n "checking epoll support... " >&6; }
22411         if test "$cross_compiling" = yes; then
22412   { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22413 See \`config.log' for more details." >&5
22414 $as_echo "$as_me: error: cannot run test program while cross compiling
22415 See \`config.log' for more details." >&2;}
22416    { (exit 1); exit 1; }; }
22417 else
22418   cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424
22425 #include <sys/epoll.h>
22426 int main() {
22427         if (epoll_create(1) < 0)
22428                 return (1);
22429         return (0);
22430 }
22431
22432 _ACEOF
22433 rm -f conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22440 $as_echo "$ac_try_echo") >&5
22441   (eval "$ac_link") 2>&5
22442   ac_status=$?
22443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22445   { (case "(($ac_try" in
22446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447   *) ac_try_echo=$ac_try;;
22448 esac
22449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22450 $as_echo "$ac_try_echo") >&5
22451   (eval "$ac_try") 2>&5
22452   ac_status=$?
22453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); }; }; then
22455   { $as_echo "$as_me:$LINENO: result: yes" >&5
22456 $as_echo "yes" >&6; }
22457         ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
22458 else
22459   $as_echo "$as_me: program exited with status $ac_status" >&5
22460 $as_echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22462
22463 ( exit $ac_status )
22464 { $as_echo "$as_me:$LINENO: result: no" >&5
22465 $as_echo "no" >&6; }
22466         ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
22467 fi
22468 rm -rf conftest.dSYM
22469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22470 fi
22471
22472
22473         ;;
22474 yes)
22475         ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
22476         ;;
22477 *)
22478         ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
22479         ;;
22480 esac
22481
22482
22483 #
22484 # check if we support /dev/poll
22485 #
22486 # Check whether --enable-devpoll was given.
22487 if test "${enable_devpoll+set}" = set; then
22488   enableval=$enable_devpoll; want_devpoll="$enableval"
22489 else
22490   want_devpoll="yes"
22491 fi
22492
22493 case $want_devpoll in
22494 yes)
22495
22496 for ac_header in sys/devpoll.h
22497 do
22498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22500   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22501 $as_echo_n "checking for $ac_header... " >&6; }
22502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22503   $as_echo_n "(cached) " >&6
22504 fi
22505 ac_res=`eval 'as_val=${'$as_ac_Header'}
22506                  $as_echo "$as_val"'`
22507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22508 $as_echo "$ac_res" >&6; }
22509 else
22510   # Is the header compilable?
22511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22512 $as_echo_n "checking $ac_header usability... " >&6; }
22513 cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 $ac_includes_default
22520 #include <$ac_header>
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530   (eval "$ac_compile") 2>conftest.er1
22531   ac_status=$?
22532   grep -v '^ *+' conftest.er1 >conftest.err
22533   rm -f conftest.er1
22534   cat conftest.err >&5
22535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); } && {
22537          test -z "$ac_c_werror_flag" ||
22538          test ! -s conftest.err
22539        } && test -s conftest.$ac_objext; then
22540   ac_header_compiler=yes
22541 else
22542   $as_echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22544
22545         ac_header_compiler=no
22546 fi
22547
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22550 $as_echo "$ac_header_compiler" >&6; }
22551
22552 # Is the header present?
22553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22554 $as_echo_n "checking $ac_header presence... " >&6; }
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h.  */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h.  */
22561 #include <$ac_header>
22562 _ACEOF
22563 if { (ac_try="$ac_cpp conftest.$ac_ext"
22564 case "(($ac_try" in
22565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566   *) ac_try_echo=$ac_try;;
22567 esac
22568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22569 $as_echo "$ac_try_echo") >&5
22570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22571   ac_status=$?
22572   grep -v '^ *+' conftest.er1 >conftest.err
22573   rm -f conftest.er1
22574   cat conftest.err >&5
22575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); } >/dev/null && {
22577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22578          test ! -s conftest.err
22579        }; then
22580   ac_header_preproc=yes
22581 else
22582   $as_echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585   ac_header_preproc=no
22586 fi
22587
22588 rm -f conftest.err conftest.$ac_ext
22589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22590 $as_echo "$ac_header_preproc" >&6; }
22591
22592 # So?  What about this header?
22593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22594   yes:no: )
22595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22599     ac_header_preproc=yes
22600     ;;
22601   no:yes:* )
22602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22605 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22609 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22614
22615     ;;
22616 esac
22617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22618 $as_echo_n "checking for $ac_header... " >&6; }
22619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22620   $as_echo_n "(cached) " >&6
22621 else
22622   eval "$as_ac_Header=\$ac_header_preproc"
22623 fi
22624 ac_res=`eval 'as_val=${'$as_ac_Header'}
22625                  $as_echo "$as_val"'`
22626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22627 $as_echo "$ac_res" >&6; }
22628
22629 fi
22630 if test `eval 'as_val=${'$as_ac_Header'}
22631                  $as_echo "$as_val"'` = yes; then
22632   cat >>confdefs.h <<_ACEOF
22633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22634 _ACEOF
22635  ISC_PLATFORM_HAVEDEVPOLL="#define ISC_PLATFORM_HAVEDEVPOLL 1"
22636
22637 else
22638   ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
22639
22640 fi
22641
22642 done
22643
22644         ;;
22645 *)
22646         ISC_PLATFORM_HAVEDEVPOLL="#undef ISC_PLATFORM_HAVEDEVPOLL"
22647         ;;
22648 esac
22649
22650
22651 #
22652 # check if we need to #include sys/select.h explicitly
22653 #
22654 case $ac_cv_header_unistd_h in
22655 yes)
22656 { $as_echo "$as_me:$LINENO: checking if unistd.h or sys/types.h defines fd_set" >&5
22657 $as_echo_n "checking if unistd.h or sys/types.h defines fd_set... " >&6; }
22658 cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h.  */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h.  */
22664
22665 #include <sys/types.h> /* Ultrix */
22666 #include <unistd.h>
22667 int
22668 main ()
22669 {
22670 fd_set read_set; return (0);
22671   ;
22672   return 0;
22673 }
22674 _ACEOF
22675 rm -f conftest.$ac_objext
22676 if { (ac_try="$ac_compile"
22677 case "(($ac_try" in
22678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679   *) ac_try_echo=$ac_try;;
22680 esac
22681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22682 $as_echo "$ac_try_echo") >&5
22683   (eval "$ac_compile") 2>conftest.er1
22684   ac_status=$?
22685   grep -v '^ *+' conftest.er1 >conftest.err
22686   rm -f conftest.er1
22687   cat conftest.err >&5
22688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } && {
22690          test -z "$ac_c_werror_flag" ||
22691          test ! -s conftest.err
22692        } && test -s conftest.$ac_objext; then
22693   { $as_echo "$as_me:$LINENO: result: yes" >&5
22694 $as_echo "yes" >&6; }
22695          ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
22696          LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"
22697 else
22698   $as_echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22700
22701         { $as_echo "$as_me:$LINENO: result: no" >&5
22702 $as_echo "no" >&6; }
22703         case $ac_cv_header_sys_select_h in
22704         yes)
22705          ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22706          LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22707                 ;;
22708         no)
22709                 { { $as_echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5
22710 $as_echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;}
22711    { (exit 1); exit 1; }; }
22712                 ;;
22713         esac
22714
22715 fi
22716
22717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22718         ;;
22719 no)
22720         case $ac_cv_header_sys_select_h in
22721         yes)
22722              ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
22723              LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
22724                 ;;
22725         no)
22726                 { { $as_echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5
22727 $as_echo "$as_me: error: need either unistd.h or sys/select.h" >&2;}
22728    { (exit 1); exit 1; }; }
22729                 ;;
22730         esac
22731         ;;
22732 esac
22733
22734
22735
22736 #
22737 # Find the machine's endian flavor.
22738 #
22739
22740  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22741 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22742 if test "${ac_cv_c_bigendian+set}" = set; then
22743   $as_echo_n "(cached) " >&6
22744 else
22745   ac_cv_c_bigendian=unknown
22746     # See if __BIG_ENDIAN__ or __LITTLE_ENDIAN__ is defined.
22747        cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753 #if ! (defined __BIG_ENDIAN__ || defined __LITTLE_ENDIAN__)
22754                neither is defined;
22755              #endif
22756              typedef int dummy;
22757
22758 _ACEOF
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763   *) ac_try_echo=$ac_try;;
22764 esac
22765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22766 $as_echo "$ac_try_echo") >&5
22767   (eval "$ac_compile") 2>conftest.er1
22768   ac_status=$?
22769   grep -v '^ *+' conftest.er1 >conftest.err
22770   rm -f conftest.er1
22771   cat conftest.err >&5
22772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); } && {
22774          test -z "$ac_c_werror_flag" ||
22775          test ! -s conftest.err
22776        } && test -s conftest.$ac_objext; then
22777   ac_cv_c_bigendian=universal
22778 else
22779   $as_echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22781
22782
22783 fi
22784
22785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786     if test $ac_cv_c_bigendian = unknown; then
22787       # See if sys/param.h defines the BYTE_ORDER macro.
22788       cat >conftest.$ac_ext <<_ACEOF
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 #include <sys/types.h>
22795              #include <sys/param.h>
22796
22797 int
22798 main ()
22799 {
22800 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22801                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22802                      && LITTLE_ENDIAN)
22803               bogus endian macros
22804              #endif
22805
22806   ;
22807   return 0;
22808 }
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814   *) ac_try_echo=$ac_try;;
22815 esac
22816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22817 $as_echo "$ac_try_echo") >&5
22818   (eval "$ac_compile") 2>conftest.er1
22819   ac_status=$?
22820   grep -v '^ *+' conftest.er1 >conftest.err
22821   rm -f conftest.er1
22822   cat conftest.err >&5
22823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); } && {
22825          test -z "$ac_c_werror_flag" ||
22826          test ! -s conftest.err
22827        } && test -s conftest.$ac_objext; then
22828   # It does; now see whether it defined to BIG_ENDIAN or not.
22829          cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h.  */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h.  */
22835 #include <sys/types.h>
22836                 #include <sys/param.h>
22837
22838 int
22839 main ()
22840 {
22841 #if BYTE_ORDER != BIG_ENDIAN
22842                  not big endian
22843                 #endif
22844
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 rm -f conftest.$ac_objext
22850 if { (ac_try="$ac_compile"
22851 case "(($ac_try" in
22852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853   *) ac_try_echo=$ac_try;;
22854 esac
22855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22856 $as_echo "$ac_try_echo") >&5
22857   (eval "$ac_compile") 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } && {
22864          test -z "$ac_c_werror_flag" ||
22865          test ! -s conftest.err
22866        } && test -s conftest.$ac_objext; then
22867   ac_cv_c_bigendian=yes
22868 else
22869   $as_echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         ac_cv_c_bigendian=no
22873 fi
22874
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876 else
22877   $as_echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22879
22880
22881 fi
22882
22883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884     fi
22885     if test $ac_cv_c_bigendian = unknown; then
22886       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22887       cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h.  */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h.  */
22893 #include <limits.h>
22894
22895 int
22896 main ()
22897 {
22898 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22899               bogus endian macros
22900              #endif
22901
22902   ;
22903   return 0;
22904 }
22905 _ACEOF
22906 rm -f conftest.$ac_objext
22907 if { (ac_try="$ac_compile"
22908 case "(($ac_try" in
22909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910   *) ac_try_echo=$ac_try;;
22911 esac
22912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22913 $as_echo "$ac_try_echo") >&5
22914   (eval "$ac_compile") 2>conftest.er1
22915   ac_status=$?
22916   grep -v '^ *+' conftest.er1 >conftest.err
22917   rm -f conftest.er1
22918   cat conftest.err >&5
22919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); } && {
22921          test -z "$ac_c_werror_flag" ||
22922          test ! -s conftest.err
22923        } && test -s conftest.$ac_objext; then
22924   # It does; now see whether it defined to _BIG_ENDIAN or not.
22925          cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931 #include <limits.h>
22932
22933 int
22934 main ()
22935 {
22936 #ifndef _BIG_ENDIAN
22937                  not big endian
22938                 #endif
22939
22940   ;
22941   return 0;
22942 }
22943 _ACEOF
22944 rm -f conftest.$ac_objext
22945 if { (ac_try="$ac_compile"
22946 case "(($ac_try" in
22947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948   *) ac_try_echo=$ac_try;;
22949 esac
22950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22951 $as_echo "$ac_try_echo") >&5
22952   (eval "$ac_compile") 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } && {
22959          test -z "$ac_c_werror_flag" ||
22960          test ! -s conftest.err
22961        } && test -s conftest.$ac_objext; then
22962   ac_cv_c_bigendian=yes
22963 else
22964   $as_echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967         ac_cv_c_bigendian=no
22968 fi
22969
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 else
22972   $as_echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975
22976 fi
22977
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979     fi
22980     if test $ac_cv_c_bigendian = unknown; then
22981       # Compile a test program.
22982       if test "$cross_compiling" = yes; then
22983   # Try to guess by grepping values from an object file.
22984          cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990 short int ascii_mm[] =
22991                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22992                 short int ascii_ii[] =
22993                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22994                 int use_ascii (int i) {
22995                   return ascii_mm[i] + ascii_ii[i];
22996                 }
22997                 short int ebcdic_ii[] =
22998                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22999                 short int ebcdic_mm[] =
23000                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23001                 int use_ebcdic (int i) {
23002                   return ebcdic_mm[i] + ebcdic_ii[i];
23003                 }
23004                 extern int foo;
23005
23006 int
23007 main ()
23008 {
23009 return use_ascii (foo) == use_ebcdic (foo);
23010   ;
23011   return 0;
23012 }
23013 _ACEOF
23014 rm -f conftest.$ac_objext
23015 if { (ac_try="$ac_compile"
23016 case "(($ac_try" in
23017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018   *) ac_try_echo=$ac_try;;
23019 esac
23020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23021 $as_echo "$ac_try_echo") >&5
23022   (eval "$ac_compile") 2>conftest.er1
23023   ac_status=$?
23024   grep -v '^ *+' conftest.er1 >conftest.err
23025   rm -f conftest.er1
23026   cat conftest.err >&5
23027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); } && {
23029          test -z "$ac_c_werror_flag" ||
23030          test ! -s conftest.err
23031        } && test -s conftest.$ac_objext; then
23032   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23033               ac_cv_c_bigendian=yes
23034             fi
23035             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23036               if test "$ac_cv_c_bigendian" = unknown; then
23037                 ac_cv_c_bigendian=no
23038               else
23039                 # finding both strings is unlikely to happen, but who knows?
23040                 ac_cv_c_bigendian=unknown
23041               fi
23042             fi
23043 else
23044   $as_echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047
23048 fi
23049
23050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051 else
23052   cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h.  */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h.  */
23058 $ac_includes_default
23059 int
23060 main ()
23061 {
23062
23063              /* Are we little or big endian?  From Harbison&Steele.  */
23064              union
23065              {
23066                long int l;
23067                char c[sizeof (long int)];
23068              } u;
23069              u.l = 1;
23070              return u.c[sizeof (long int) - 1] == 1;
23071
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 rm -f conftest$ac_exeext
23077 if { (ac_try="$ac_link"
23078 case "(($ac_try" in
23079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23080   *) ac_try_echo=$ac_try;;
23081 esac
23082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23083 $as_echo "$ac_try_echo") >&5
23084   (eval "$ac_link") 2>&5
23085   ac_status=$?
23086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23088   { (case "(($ac_try" in
23089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090   *) ac_try_echo=$ac_try;;
23091 esac
23092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23093 $as_echo "$ac_try_echo") >&5
23094   (eval "$ac_try") 2>&5
23095   ac_status=$?
23096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); }; }; then
23098   ac_cv_c_bigendian=no
23099 else
23100   $as_echo "$as_me: program exited with status $ac_status" >&5
23101 $as_echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104 ( exit $ac_status )
23105 ac_cv_c_bigendian=yes
23106 fi
23107 rm -rf conftest.dSYM
23108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23109 fi
23110
23111
23112     fi
23113 fi
23114 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23115 $as_echo "$ac_cv_c_bigendian" >&6; }
23116  case $ac_cv_c_bigendian in #(
23117    yes)
23118      cat >>confdefs.h <<\_ACEOF
23119 #define WORDS_BIGENDIAN 1
23120 _ACEOF
23121 ;; #(
23122    no)
23123       ;; #(
23124    universal)
23125       ;; #(
23126    *)
23127      { { $as_echo "$as_me:$LINENO: error: unknown endianness
23128  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23129 $as_echo "$as_me: error: unknown endianness
23130  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23131    { (exit 1); exit 1; }; } ;;
23132  esac
23133
23134
23135
23136 #
23137 # was --with-openssl specified?
23138 #
23139 OPENSSL_WARNING=
23140 { $as_echo "$as_me:$LINENO: checking for OpenSSL library" >&5
23141 $as_echo_n "checking for OpenSSL library... " >&6; }
23142
23143 # Check whether --with-openssl was given.
23144 if test "${with_openssl+set}" = set; then
23145   withval=$with_openssl; use_openssl="$withval"
23146 else
23147   use_openssl="auto"
23148 fi
23149
23150
23151 openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw"
23152 if test "$use_openssl" = "auto"
23153 then
23154         for d in $openssldirs
23155         do
23156                 if test -f $d/include/openssl/opensslv.h
23157                 then
23158                         use_openssl=$d
23159                         break
23160                 fi
23161         done
23162 fi
23163 case "$use_openssl" in
23164         no)
23165                 { $as_echo "$as_me:$LINENO: result: no" >&5
23166 $as_echo "no" >&6; }
23167                 DST_OPENSSL_INC=""
23168                 USE_OPENSSL=""
23169                 ;;
23170         auto)
23171                 DST_OPENSSL_INC=""
23172                 USE_OPENSSL=""
23173                 { { $as_echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
23174 If you don't want OpenSSL, use --without-openssl" >&5
23175 $as_echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path
23176 If you don't want OpenSSL, use --without-openssl" >&2;}
23177    { (exit 1); exit 1; }; }
23178                 ;;
23179         *)
23180                 if test "$use_openssl" = "yes"
23181                 then
23182                         # User did not specify a path - guess it
23183                         for d in $openssldirs
23184                         do
23185                                 if test -f $d/include/openssl/opensslv.h
23186                                 then
23187                                         use_openssl=$d
23188                                         break
23189                                 fi
23190                         done
23191                         if test "$use_openssl" = "yes"
23192                         then
23193                                 { $as_echo "$as_me:$LINENO: result: not found" >&5
23194 $as_echo "not found" >&6; }
23195                                 { { $as_echo "$as_me:$LINENO: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&5
23196 $as_echo "$as_me: error: OpenSSL was not found in any of $openssldirs; use --with-openssl=/path" >&2;}
23197    { (exit 1); exit 1; }; }
23198                         fi
23199                 elif ! test -f "$use_openssl"/include/openssl/opensslv.h
23200                 then
23201                         { { $as_echo "$as_me:$LINENO: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&5
23202 $as_echo "$as_me: error: \"$use_openssl/include/openssl/opensslv.h\" not found" >&2;}
23203    { (exit 1); exit 1; }; }
23204                 fi
23205                 USE_OPENSSL='-DOPENSSL'
23206                 if test "$use_openssl" = "/usr"
23207                 then
23208                         DST_OPENSSL_INC=""
23209                         DNS_OPENSSL_LIBS="-lcrypto"
23210                 else
23211                         DST_OPENSSL_INC="-I$use_openssl/include"
23212                         case $host in
23213                         *-solaris*)
23214                                 DNS_OPENSSL_LIBS="-L$use_openssl/lib -R$use_openssl/lib -lcrypto"
23215                                 ;;
23216                         *-hp-hpux*)
23217                                 DNS_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lcrypto"
23218                                 ;;
23219                         *-apple-darwin*)
23220                                 #
23221                                 # Apple's ld seaches for serially for dynamic
23222                                 # then static libraries.  This means you can't
23223                                 # use -L to override dynamic system libraries
23224                                 # with static ones when linking.  Instead
23225                                 # we specify a absolute path.
23226                                 #
23227                                 if test -f "$use_openssl/lib/libcrypto.dylib"
23228                                 then
23229                                         DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
23230                                 else
23231                                         DNS_OPENSSL_LIBS="$use_openssl/lib/libcrypto.a"
23232                                 fi
23233                                 ;;
23234                         *)
23235                                 DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
23236                                 ;;
23237                         esac
23238                 fi
23239                 { $as_echo "$as_me:$LINENO: result: using OpenSSL from $use_openssl/lib and $use_openssl/include" >&5
23240 $as_echo "using OpenSSL from $use_openssl/lib and $use_openssl/include" >&6; }
23241
23242                 saved_cflags="$CFLAGS"
23243                 saved_libs="$LIBS"
23244                 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
23245                 LIBS="$LIBS $DNS_OPENSSL_LIBS"
23246                 { $as_echo "$as_me:$LINENO: checking whether linking with OpenSSL works" >&5
23247 $as_echo_n "checking whether linking with OpenSSL works... " >&6; }
23248                 if test "$cross_compiling" = yes; then
23249   { $as_echo "$as_me:$LINENO: result: assuming it does work on target platform" >&5
23250 $as_echo "assuming it does work on target platform" >&6; }
23251 else
23252   cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258
23259 #include <openssl/err.h>
23260 int main() {
23261         ERR_clear_error();
23262         return (0);
23263 }
23264
23265 _ACEOF
23266 rm -f conftest$ac_exeext
23267 if { (ac_try="$ac_link"
23268 case "(($ac_try" in
23269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270   *) ac_try_echo=$ac_try;;
23271 esac
23272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23273 $as_echo "$ac_try_echo") >&5
23274   (eval "$ac_link") 2>&5
23275   ac_status=$?
23276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23278   { (case "(($ac_try" in
23279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280   *) ac_try_echo=$ac_try;;
23281 esac
23282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23283 $as_echo "$ac_try_echo") >&5
23284   (eval "$ac_try") 2>&5
23285   ac_status=$?
23286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; }; then
23288   { $as_echo "$as_me:$LINENO: result: yes" >&5
23289 $as_echo "yes" >&6; }
23290 else
23291   $as_echo "$as_me: program exited with status $ac_status" >&5
23292 $as_echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23294
23295 ( exit $ac_status )
23296 { $as_echo "$as_me:$LINENO: result: no" >&5
23297 $as_echo "no" >&6; }
23298                  { { $as_echo "$as_me:$LINENO: error: Could not run test program using OpenSSL from
23299 $use_openssl/lib and $use_openssl/include.
23300 Please check the argument to --with-openssl and your
23301 shared library configuration (e.g., LD_LIBRARY_PATH)." >&5
23302 $as_echo "$as_me: error: Could not run test program using OpenSSL from
23303 $use_openssl/lib and $use_openssl/include.
23304 Please check the argument to --with-openssl and your
23305 shared library configuration (e.g., LD_LIBRARY_PATH)." >&2;}
23306    { (exit 1); exit 1; }; }
23307 fi
23308 rm -rf conftest.dSYM
23309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23310 fi
23311
23312
23313
23314                 { $as_echo "$as_me:$LINENO: checking whether linking with OpenSSL requires -ldl" >&5
23315 $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
23316                 cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h.  */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h.  */
23322
23323 #include <openssl/err.h>
23324 int
23325 main ()
23326 {
23327  DSO_METHOD_dlfcn();
23328   ;
23329   return 0;
23330 }
23331 _ACEOF
23332 rm -f conftest.$ac_objext conftest$ac_exeext
23333 if { (ac_try="$ac_link"
23334 case "(($ac_try" in
23335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336   *) ac_try_echo=$ac_try;;
23337 esac
23338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23339 $as_echo "$ac_try_echo") >&5
23340   (eval "$ac_link") 2>conftest.er1
23341   ac_status=$?
23342   grep -v '^ *+' conftest.er1 >conftest.err
23343   rm -f conftest.er1
23344   cat conftest.err >&5
23345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } && {
23347          test -z "$ac_c_werror_flag" ||
23348          test ! -s conftest.err
23349        } && test -s conftest$ac_exeext && {
23350          test "$cross_compiling" = yes ||
23351          $as_test_x conftest$ac_exeext
23352        }; then
23353   { $as_echo "$as_me:$LINENO: result: no" >&5
23354 $as_echo "no" >&6; }
23355 else
23356   $as_echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359         LIBS="$LIBS -ldl"
23360                 cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366
23367 #include <openssl/err.h>
23368
23369 int
23370 main ()
23371 {
23372  DSO_METHOD_dlfcn();
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext conftest$ac_exeext
23378 if { (ac_try="$ac_link"
23379 case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23384 $as_echo "$ac_try_echo") >&5
23385   (eval "$ac_link") 2>conftest.er1
23386   ac_status=$?
23387   grep -v '^ *+' conftest.er1 >conftest.err
23388   rm -f conftest.er1
23389   cat conftest.err >&5
23390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); } && {
23392          test -z "$ac_c_werror_flag" ||
23393          test ! -s conftest.err
23394        } && test -s conftest$ac_exeext && {
23395          test "$cross_compiling" = yes ||
23396          $as_test_x conftest$ac_exeext
23397        }; then
23398   { $as_echo "$as_me:$LINENO: result: yes" >&5
23399 $as_echo "yes" >&6; }
23400                 DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl"
23401
23402 else
23403   $as_echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406         { $as_echo "$as_me:$LINENO: result: unknown" >&5
23407 $as_echo "unknown" >&6; }
23408                  { { $as_echo "$as_me:$LINENO: error: OpenSSL has unsupported dynamic loading" >&5
23409 $as_echo "$as_me: error: OpenSSL has unsupported dynamic loading" >&2;}
23410    { (exit 1); exit 1; }; }
23411 fi
23412
23413 rm -rf conftest.dSYM
23414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23415       conftest$ac_exeext conftest.$ac_ext
23416
23417 fi
23418
23419 rm -rf conftest.dSYM
23420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23421       conftest$ac_exeext conftest.$ac_ext
23422
23423 # Check whether --enable-openssl-version-check was given.
23424 if test "${enable_openssl_version_check+set}" = set; then
23425   enableval=$enable_openssl_version_check;
23426 fi
23427
23428 case "$enable_openssl_version_check" in
23429 yes|'')
23430                 { $as_echo "$as_me:$LINENO: checking OpenSSL library version" >&5
23431 $as_echo_n "checking OpenSSL library version... " >&6; }
23432                 if test "$cross_compiling" = yes; then
23433   { $as_echo "$as_me:$LINENO: result: assuming target platform has compatible version" >&5
23434 $as_echo "assuming target platform has compatible version" >&6; }
23435 else
23436   cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442
23443 #include <stdio.h>
23444 #include <openssl/opensslv.h>
23445 int main() {
23446         if ((OPENSSL_VERSION_NUMBER >= 0x009070cfL &&
23447              OPENSSL_VERSION_NUMBER < 0x00908000L) ||
23448              OPENSSL_VERSION_NUMBER >= 0x0090804fL)
23449                 return (0);
23450         printf("\n\nFound   OPENSSL_VERSION_NUMBER %#010x\n",
23451                 OPENSSL_VERSION_NUMBER);
23452         printf("Require OPENSSL_VERSION_NUMBER 0x009070cf or greater (0.9.7l)\n"
23453                "Require OPENSSL_VERSION_NUMBER 0x0090804f or greater (0.9.8d)\n\n");
23454         return (1);
23455 }
23456
23457 _ACEOF
23458 rm -f conftest$ac_exeext
23459 if { (ac_try="$ac_link"
23460 case "(($ac_try" in
23461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462   *) ac_try_echo=$ac_try;;
23463 esac
23464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23465 $as_echo "$ac_try_echo") >&5
23466   (eval "$ac_link") 2>&5
23467   ac_status=$?
23468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23470   { (case "(($ac_try" in
23471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472   *) ac_try_echo=$ac_try;;
23473 esac
23474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23475 $as_echo "$ac_try_echo") >&5
23476   (eval "$ac_try") 2>&5
23477   ac_status=$?
23478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); }; }; then
23480   { $as_echo "$as_me:$LINENO: result: ok" >&5
23481 $as_echo "ok" >&6; }
23482 else
23483   $as_echo "$as_me: program exited with status $ac_status" >&5
23484 $as_echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487 ( exit $ac_status )
23488 { $as_echo "$as_me:$LINENO: result: not compatible" >&5
23489 $as_echo "not compatible" >&6; }
23490                  OPENSSL_WARNING=yes
23491
23492 fi
23493 rm -rf conftest.dSYM
23494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23495 fi
23496
23497
23498 ;;
23499 no)
23500         { $as_echo "$as_me:$LINENO: result: Skipped OpenSSL version check" >&5
23501 $as_echo "Skipped OpenSSL version check" >&6; }
23502 ;;
23503 esac
23504
23505                 { $as_echo "$as_me:$LINENO: checking for OpenSSL DSA support" >&5
23506 $as_echo_n "checking for OpenSSL DSA support... " >&6; }
23507                 if test -f $use_openssl/include/openssl/dsa.h
23508                 then
23509                         cat >>confdefs.h <<\_ACEOF
23510 #define HAVE_OPENSSL_DSA 1
23511 _ACEOF
23512
23513                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23514 $as_echo "yes" >&6; }
23515                 else
23516                         { $as_echo "$as_me:$LINENO: result: no" >&5
23517 $as_echo "no" >&6; }
23518                 fi
23519
23520
23521 for ac_func in EVP_sha256 EVP_sha512
23522 do
23523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23524 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23525 $as_echo_n "checking for $ac_func... " >&6; }
23526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23527   $as_echo_n "(cached) " >&6
23528 else
23529   cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h.  */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h.  */
23535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23537 #define $ac_func innocuous_$ac_func
23538
23539 /* System header to define __stub macros and hopefully few prototypes,
23540     which can conflict with char $ac_func (); below.
23541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23542     <limits.h> exists even on freestanding compilers.  */
23543
23544 #ifdef __STDC__
23545 # include <limits.h>
23546 #else
23547 # include <assert.h>
23548 #endif
23549
23550 #undef $ac_func
23551
23552 /* Override any GCC internal prototype to avoid an error.
23553    Use char because int might match the return type of a GCC
23554    builtin and then its argument prototype would still apply.  */
23555 #ifdef __cplusplus
23556 extern "C"
23557 #endif
23558 char $ac_func ();
23559 /* The GNU C library defines this for functions which it implements
23560     to always fail with ENOSYS.  Some functions are actually named
23561     something starting with __ and the normal name is an alias.  */
23562 #if defined __stub_$ac_func || defined __stub___$ac_func
23563 choke me
23564 #endif
23565
23566 int
23567 main ()
23568 {
23569 return $ac_func ();
23570   ;
23571   return 0;
23572 }
23573 _ACEOF
23574 rm -f conftest.$ac_objext conftest$ac_exeext
23575 if { (ac_try="$ac_link"
23576 case "(($ac_try" in
23577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578   *) ac_try_echo=$ac_try;;
23579 esac
23580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23581 $as_echo "$ac_try_echo") >&5
23582   (eval "$ac_link") 2>conftest.er1
23583   ac_status=$?
23584   grep -v '^ *+' conftest.er1 >conftest.err
23585   rm -f conftest.er1
23586   cat conftest.err >&5
23587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588   (exit $ac_status); } && {
23589          test -z "$ac_c_werror_flag" ||
23590          test ! -s conftest.err
23591        } && test -s conftest$ac_exeext && {
23592          test "$cross_compiling" = yes ||
23593          $as_test_x conftest$ac_exeext
23594        }; then
23595   eval "$as_ac_var=yes"
23596 else
23597   $as_echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23599
23600         eval "$as_ac_var=no"
23601 fi
23602
23603 rm -rf conftest.dSYM
23604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23605       conftest$ac_exeext conftest.$ac_ext
23606 fi
23607 ac_res=`eval 'as_val=${'$as_ac_var'}
23608                  $as_echo "$as_val"'`
23609                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23610 $as_echo "$ac_res" >&6; }
23611 if test `eval 'as_val=${'$as_ac_var'}
23612                  $as_echo "$as_val"'` = yes; then
23613   cat >>confdefs.h <<_ACEOF
23614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23615 _ACEOF
23616
23617 fi
23618 done
23619
23620                 CFLAGS="$saved_cflags"
23621                 LIBS="$saved_libs"
23622
23623                 ;;
23624 esac
23625
23626 #
23627 # This would include the system openssl path (and linker options to use
23628 # it as needed) if it is found.
23629 #
23630
23631
23632
23633 DNS_CRYPTO_LIBS="$DNS_CRYPTO_LIBS $DNS_OPENSSL_LIBS"
23634
23635 #
23636 # Use OpenSSL for hash functions
23637 #
23638
23639 # Check whether --enable-openssl-hash was given.
23640 if test "${enable_openssl_hash+set}" = set; then
23641   enableval=$enable_openssl_hash; want_openssl_hash="$enableval"
23642 else
23643   want_openssl_hash="no"
23644 fi
23645
23646 case $want_openssl_hash in
23647         yes)
23648                 if test "$USE_OPENSSL" = ""
23649                 then
23650                         { { $as_echo "$as_me:$LINENO: error: No OpenSSL for hash functions" >&5
23651 $as_echo "$as_me: error: No OpenSSL for hash functions" >&2;}
23652    { (exit 1); exit 1; }; }
23653                 fi
23654                 ISC_PLATFORM_OPENSSLHASH="#define ISC_PLATFORM_OPENSSLHASH 1"
23655                 ISC_OPENSSL_INC="$DST_OPENSSL_INC"
23656                 ;;
23657         no)
23658                 ISC_PLATFORM_OPENSSLHASH="#undef ISC_PLATFORM_OPENSSLHASH"
23659                 ISC_OPENSSL_INC=""
23660                 ;;
23661 esac
23662
23663
23664
23665 #
23666 # PKCS11 (aka crypto hardware) support
23667 #
23668 # This works only with the right OpenSSL with PKCS11 engine!
23669 #
23670
23671 { $as_echo "$as_me:$LINENO: checking for PKCS11 support" >&5
23672 $as_echo_n "checking for PKCS11 support... " >&6; }
23673
23674 # Check whether --with-pkcs11 was given.
23675 if test "${with_pkcs11+set}" = set; then
23676   withval=$with_pkcs11; use_pkcs11="$withval"
23677 else
23678   use_pkcs11="no"
23679 fi
23680
23681
23682 case "$use_pkcs11" in
23683         no|'')
23684                 { $as_echo "$as_me:$LINENO: result: disabled" >&5
23685 $as_echo "disabled" >&6; }
23686                 USE_PKCS11=''
23687                 PKCS11_TOOLS=''
23688                 ;;
23689         yes|*)
23690                 { $as_echo "$as_me:$LINENO: result: using OpenSSL with PKCS11 support" >&5
23691 $as_echo "using OpenSSL with PKCS11 support" >&6; }
23692                 USE_PKCS11='-DUSE_PKCS11'
23693                 PKCS11_TOOLS=pkcs11
23694                 ;;
23695 esac
23696
23697
23698
23699 { $as_echo "$as_me:$LINENO: checking for PKCS11 tools" >&5
23700 $as_echo_n "checking for PKCS11 tools... " >&6; }
23701 case "$use_pkcs11" in
23702         no|yes|'')
23703                 { $as_echo "$as_me:$LINENO: result: disabled" >&5
23704 $as_echo "disabled" >&6; }
23705                 PKCS11_PROVIDER="undefined"
23706                 ;;
23707        *)
23708                 { $as_echo "$as_me:$LINENO: result: PKCS11 provider is \"$use_pkcs11\"" >&5
23709 $as_echo "PKCS11 provider is \"$use_pkcs11\"" >&6; }
23710                 PKCS11_PROVIDER="$use_pkcs11"
23711                 ;;
23712 esac
23713
23714
23715 { $as_echo "$as_me:$LINENO: checking for GSSAPI library" >&5
23716 $as_echo_n "checking for GSSAPI library... " >&6; }
23717
23718 # Check whether --with-gssapi was given.
23719 if test "${with_gssapi+set}" = set; then
23720   withval=$with_gssapi; use_gssapi="$withval"
23721 else
23722   use_gssapi="no"
23723 fi
23724
23725
23726 gssapidirs="/usr/local /usr/pkg /usr/kerberos /usr"
23727 if test "$use_gssapi" = "yes"
23728 then
23729         for d in $gssapidirs
23730         do
23731                 if test -f $d/include/gssapi/gssapi.h -o -f $d/include/gssapi.h
23732                 then
23733                         use_gssapi=$d
23734                         break
23735                 fi
23736         done
23737 fi
23738
23739 case "$use_gssapi" in
23740         no)
23741                 { $as_echo "$as_me:$LINENO: result: disabled" >&5
23742 $as_echo "disabled" >&6; }
23743                 USE_GSSAPI=''
23744                 ;;
23745         yes)
23746                 { { $as_echo "$as_me:$LINENO: error: --with-gssapi must specify a path" >&5
23747 $as_echo "$as_me: error: --with-gssapi must specify a path" >&2;}
23748    { (exit 1); exit 1; }; }
23749                 ;;
23750         *)
23751                 { $as_echo "$as_me:$LINENO: result: looking in $use_gssapi/lib" >&5
23752 $as_echo "looking in $use_gssapi/lib" >&6; }
23753                 USE_GSSAPI='-DGSSAPI'
23754                 saved_cppflags="$CPPFLAGS"
23755                 CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
23756
23757
23758 for ac_header in gssapi.h gssapi/gssapi.h
23759 do
23760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23762   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23763 $as_echo_n "checking for $ac_header... " >&6; }
23764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23765   $as_echo_n "(cached) " >&6
23766 fi
23767 ac_res=`eval 'as_val=${'$as_ac_Header'}
23768                  $as_echo "$as_val"'`
23769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23770 $as_echo "$ac_res" >&6; }
23771 else
23772   # Is the header compilable?
23773 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23774 $as_echo_n "checking $ac_header usability... " >&6; }
23775 cat >conftest.$ac_ext <<_ACEOF
23776 /* confdefs.h.  */
23777 _ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h.  */
23781 $ac_includes_default
23782 #include <$ac_header>
23783 _ACEOF
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788   *) ac_try_echo=$ac_try;;
23789 esac
23790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23791 $as_echo "$ac_try_echo") >&5
23792   (eval "$ac_compile") 2>conftest.er1
23793   ac_status=$?
23794   grep -v '^ *+' conftest.er1 >conftest.err
23795   rm -f conftest.er1
23796   cat conftest.err >&5
23797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); } && {
23799          test -z "$ac_c_werror_flag" ||
23800          test ! -s conftest.err
23801        } && test -s conftest.$ac_objext; then
23802   ac_header_compiler=yes
23803 else
23804   $as_echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23806
23807         ac_header_compiler=no
23808 fi
23809
23810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23811 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23812 $as_echo "$ac_header_compiler" >&6; }
23813
23814 # Is the header present?
23815 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23816 $as_echo_n "checking $ac_header presence... " >&6; }
23817 cat >conftest.$ac_ext <<_ACEOF
23818 /* confdefs.h.  */
23819 _ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h.  */
23823 #include <$ac_header>
23824 _ACEOF
23825 if { (ac_try="$ac_cpp conftest.$ac_ext"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23831 $as_echo "$ac_try_echo") >&5
23832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } >/dev/null && {
23839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23840          test ! -s conftest.err
23841        }; then
23842   ac_header_preproc=yes
23843 else
23844   $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847   ac_header_preproc=no
23848 fi
23849
23850 rm -f conftest.err conftest.$ac_ext
23851 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23852 $as_echo "$ac_header_preproc" >&6; }
23853
23854 # So?  What about this header?
23855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23856   yes:no: )
23857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23858 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23861     ac_header_preproc=yes
23862     ;;
23863   no:yes:* )
23864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23867 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23869 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23871 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23872     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23875 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23876
23877     ;;
23878 esac
23879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23880 $as_echo_n "checking for $ac_header... " >&6; }
23881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23882   $as_echo_n "(cached) " >&6
23883 else
23884   eval "$as_ac_Header=\$ac_header_preproc"
23885 fi
23886 ac_res=`eval 'as_val=${'$as_ac_Header'}
23887                  $as_echo "$as_val"'`
23888                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23889 $as_echo "$ac_res" >&6; }
23890
23891 fi
23892 if test `eval 'as_val=${'$as_ac_Header'}
23893                  $as_echo "$as_val"'` = yes; then
23894   cat >>confdefs.h <<_ACEOF
23895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23896 _ACEOF
23897  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
23898 fi
23899
23900 done
23901
23902
23903                 if test "$ISC_PLATFORM_GSSAPIHEADER" = ""; then
23904                     { { $as_echo "$as_me:$LINENO: error: gssapi.h not found" >&5
23905 $as_echo "$as_me: error: gssapi.h not found" >&2;}
23906    { (exit 1); exit 1; }; }
23907                 fi
23908
23909                 CPPFLAGS="$saved_cppflags"
23910
23911                 #
23912                 # XXXDCL This probably doesn't work right on all systems.
23913                 # It will need to be worked on as problems become evident.
23914                 #
23915                 # Essentially the problems here relate to two different
23916                 # areas.  The first area is building with either KTH
23917                 # or MIT Kerberos, particularly when both are present on
23918                 # the machine.  The other is static versus dynamic linking.
23919                 #
23920                 # On the KTH vs MIT issue, Both have libkrb5 that can mess
23921                 # up the works if one implementation ends up trying to
23922                 # use the other's krb.  This is unfortunately a situation
23923                 # that very easily arises.
23924                 #
23925                 # Dynamic linking when the dependency information is built
23926                 # into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
23927                 # all such problems go away, but when that setup is not
23928                 # present, because either the dynamic libraries lack
23929                 # dependencies or static linking is being done, then the
23930                 # problems start to show up.
23931                 saved_libs="$LIBS"
23932                 for TRY_LIBS in \
23933                     "-lgssapi_krb5" \
23934                     "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
23935                     "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
23936                     "-lgssapi" \
23937                     "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
23938                     "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \
23939                     "-lgss"
23940                 do
23941                     # Note that this does not include $saved_libs, because
23942                     # on FreeBSD machines this configure script has added
23943                     # -L/usr/local/lib to LIBS, which can make the
23944                     # -lgssapi_krb5 test succeed with shared libraries even
23945                     # when you are trying to build with KTH in /usr/lib.
23946                     LIBS="-L$use_gssapi/lib $TRY_LIBS"
23947                     { $as_echo "$as_me:$LINENO: checking linking as $TRY_LIBS" >&5
23948 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
23949                     cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h.  */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h.  */
23955
23956 int
23957 main ()
23958 {
23959 gss_acquire_cred();
23960   ;
23961   return 0;
23962 }
23963 _ACEOF
23964 rm -f conftest.$ac_objext conftest$ac_exeext
23965 if { (ac_try="$ac_link"
23966 case "(($ac_try" in
23967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968   *) ac_try_echo=$ac_try;;
23969 esac
23970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23971 $as_echo "$ac_try_echo") >&5
23972   (eval "$ac_link") 2>conftest.er1
23973   ac_status=$?
23974   grep -v '^ *+' conftest.er1 >conftest.err
23975   rm -f conftest.er1
23976   cat conftest.err >&5
23977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); } && {
23979          test -z "$ac_c_werror_flag" ||
23980          test ! -s conftest.err
23981        } && test -s conftest$ac_exeext && {
23982          test "$cross_compiling" = yes ||
23983          $as_test_x conftest$ac_exeext
23984        }; then
23985   gssapi_linked=yes
23986 else
23987   $as_echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23989
23990         gssapi_linked=no
23991 fi
23992
23993 rm -rf conftest.dSYM
23994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23995       conftest$ac_exeext conftest.$ac_ext
23996                     case $gssapi_linked in
23997                     yes) { $as_echo "$as_me:$LINENO: result: yes" >&5
23998 $as_echo "yes" >&6; }; break ;;
23999                     no)  { $as_echo "$as_me:$LINENO: result: no" >&5
24000 $as_echo "no" >&6; } ;;
24001                     esac
24002                 done
24003
24004                 case $gssapi_linked in
24005                 no) { { $as_echo "$as_me:$LINENO: error: could not determine proper GSSAPI linkage" >&5
24006 $as_echo "$as_me: error: could not determine proper GSSAPI linkage" >&2;}
24007    { (exit 1); exit 1; }; } ;;
24008                 esac
24009
24010                 #
24011                 # XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
24012                 # but MIT in /usr/local/lib and trying to build with KTH.
24013                 # /usr/local/lib can end up earlier on the link lines.
24014                 # Like most kludges, this one is not only inelegant it
24015                 # is also likely to be the wrong thing to do at least as
24016                 # many times as it is the right thing.  Something better
24017                 # needs to be done.
24018                 #
24019                 if test "$use_gssapi" = "/usr" -a \
24020                         -f /usr/local/lib/libkrb5.a; then
24021                     FIX_KTH_VS_MIT=yes
24022                 fi
24023
24024                 case "$FIX_KTH_VS_MIT" in
24025                 yes)
24026                     case "$enable_static_linking" in
24027                     yes) gssapi_lib_suffix=".a"  ;;
24028                     *)   gssapi_lib_suffix=".so" ;;
24029                     esac
24030
24031                     for lib in $LIBS; do
24032                         case $lib in
24033                         -L*)
24034                             ;;
24035                         -l*)
24036                             new_lib=`echo $lib |
24037                                      sed -e s%^-l%$use_gssapi/lib/lib% \
24038                                          -e s%$%$gssapi_lib_suffix%`
24039                             NEW_LIBS="$NEW_LIBS $new_lib"
24040                             ;;
24041                         *)
24042                            { { $as_echo "$as_me:$LINENO: error: KTH vs MIT Kerberos confusion!" >&5
24043 $as_echo "$as_me: error: KTH vs MIT Kerberos confusion!" >&2;}
24044    { (exit 1); exit 1; }; }
24045                             ;;
24046                         esac
24047                     done
24048                     LIBS="$NEW_LIBS"
24049                     ;;
24050                 esac
24051
24052                 DST_GSSAPI_INC="-I$use_gssapi/include"
24053                 DNS_GSSAPI_LIBS="$LIBS"
24054
24055                 { $as_echo "$as_me:$LINENO: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
24056 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
24057                 LIBS="$saved_libs"
24058                 ;;
24059 esac
24060
24061
24062
24063
24064
24065
24066
24067 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS"
24068
24069 #
24070 # Applications linking with libdns also need to link with these libraries.
24071 #
24072
24073
24074
24075 #
24076 # was --with-randomdev specified?
24077 #
24078 { $as_echo "$as_me:$LINENO: checking for random device" >&5
24079 $as_echo_n "checking for random device... " >&6; }
24080
24081 # Check whether --with-randomdev was given.
24082 if test "${with_randomdev+set}" = set; then
24083   withval=$with_randomdev; use_randomdev="$withval"
24084 else
24085   use_randomdev="unspec"
24086 fi
24087
24088
24089 case "$use_randomdev" in
24090         unspec)
24091                 case "$host" in
24092                         *-openbsd*)
24093                                 devrandom=/dev/arandom
24094                                 ;;
24095                         *)
24096                                 devrandom=/dev/random
24097                                 ;;
24098                 esac
24099                 { $as_echo "$as_me:$LINENO: result: $devrandom" >&5
24100 $as_echo "$devrandom" >&6; }
24101                 as_ac_File=`$as_echo "ac_cv_file_$devrandom" | $as_tr_sh`
24102 { $as_echo "$as_me:$LINENO: checking for $devrandom" >&5
24103 $as_echo_n "checking for $devrandom... " >&6; }
24104 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24105   $as_echo_n "(cached) " >&6
24106 else
24107   test "$cross_compiling" = yes &&
24108   { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24109 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24110    { (exit 1); exit 1; }; }
24111 if test -r "$devrandom"; then
24112   eval "$as_ac_File=yes"
24113 else
24114   eval "$as_ac_File=no"
24115 fi
24116 fi
24117 ac_res=`eval 'as_val=${'$as_ac_File'}
24118                  $as_echo "$as_val"'`
24119                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24120 $as_echo "$ac_res" >&6; }
24121 if test `eval 'as_val=${'$as_ac_File'}
24122                  $as_echo "$as_val"'` = yes; then
24123   cat >>confdefs.h <<_ACEOF
24124 #define PATH_RANDOMDEV "$devrandom"
24125 _ACEOF
24126
24127 fi
24128
24129                 ;;
24130         yes)
24131                 { { $as_echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5
24132 $as_echo "$as_me: error: --with-randomdev must specify a path" >&2;}
24133    { (exit 1); exit 1; }; }
24134                 ;;
24135         no)
24136                 { $as_echo "$as_me:$LINENO: result: disabled" >&5
24137 $as_echo "disabled" >&6; }
24138                 ;;
24139         *)
24140                 cat >>confdefs.h <<_ACEOF
24141 #define PATH_RANDOMDEV "$use_randomdev"
24142 _ACEOF
24143
24144                 { $as_echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5
24145 $as_echo "using \"$use_randomdev\"" >&6; }
24146                 ;;
24147 esac
24148
24149 #
24150 # Do we have arc4random() ?
24151 #
24152 { $as_echo "$as_me:$LINENO: checking for arc4random" >&5
24153 $as_echo_n "checking for arc4random... " >&6; }
24154 if test "${ac_cv_func_arc4random+set}" = set; then
24155   $as_echo_n "(cached) " >&6
24156 else
24157   cat >conftest.$ac_ext <<_ACEOF
24158 /* confdefs.h.  */
24159 _ACEOF
24160 cat confdefs.h >>conftest.$ac_ext
24161 cat >>conftest.$ac_ext <<_ACEOF
24162 /* end confdefs.h.  */
24163 /* Define arc4random to an innocuous variant, in case <limits.h> declares arc4random.
24164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24165 #define arc4random innocuous_arc4random
24166
24167 /* System header to define __stub macros and hopefully few prototypes,
24168     which can conflict with char arc4random (); below.
24169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24170     <limits.h> exists even on freestanding compilers.  */
24171
24172 #ifdef __STDC__
24173 # include <limits.h>
24174 #else
24175 # include <assert.h>
24176 #endif
24177
24178 #undef arc4random
24179
24180 /* Override any GCC internal prototype to avoid an error.
24181    Use char because int might match the return type of a GCC
24182    builtin and then its argument prototype would still apply.  */
24183 #ifdef __cplusplus
24184 extern "C"
24185 #endif
24186 char arc4random ();
24187 /* The GNU C library defines this for functions which it implements
24188     to always fail with ENOSYS.  Some functions are actually named
24189     something starting with __ and the normal name is an alias.  */
24190 #if defined __stub_arc4random || defined __stub___arc4random
24191 choke me
24192 #endif
24193
24194 int
24195 main ()
24196 {
24197 return arc4random ();
24198   ;
24199   return 0;
24200 }
24201 _ACEOF
24202 rm -f conftest.$ac_objext conftest$ac_exeext
24203 if { (ac_try="$ac_link"
24204 case "(($ac_try" in
24205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206   *) ac_try_echo=$ac_try;;
24207 esac
24208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24209 $as_echo "$ac_try_echo") >&5
24210   (eval "$ac_link") 2>conftest.er1
24211   ac_status=$?
24212   grep -v '^ *+' conftest.er1 >conftest.err
24213   rm -f conftest.er1
24214   cat conftest.err >&5
24215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216   (exit $ac_status); } && {
24217          test -z "$ac_c_werror_flag" ||
24218          test ! -s conftest.err
24219        } && test -s conftest$ac_exeext && {
24220          test "$cross_compiling" = yes ||
24221          $as_test_x conftest$ac_exeext
24222        }; then
24223   ac_cv_func_arc4random=yes
24224 else
24225   $as_echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24227
24228         ac_cv_func_arc4random=no
24229 fi
24230
24231 rm -rf conftest.dSYM
24232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24233       conftest$ac_exeext conftest.$ac_ext
24234 fi
24235 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_arc4random" >&5
24236 $as_echo "$ac_cv_func_arc4random" >&6; }
24237 if test $ac_cv_func_arc4random = yes; then
24238   cat >>confdefs.h <<\_ACEOF
24239 #define HAVE_ARC4RANDOM 1
24240 _ACEOF
24241
24242 fi
24243
24244
24245 #
24246 # Begin pthreads checking.
24247 #
24248 # First, decide whether to use multithreading or not.
24249 #
24250 # Enable multithreading by default on systems where it is known
24251 # to work well, and where debugging of multithreaded programs
24252 # is supported.
24253 #
24254
24255 { $as_echo "$as_me:$LINENO: checking whether to build with thread support" >&5
24256 $as_echo_n "checking whether to build with thread support... " >&6; }
24257
24258 case $host in
24259 *-dec-osf*)
24260         use_threads=true ;;
24261 *-solaris2.[0-6])
24262         # Thread signals are broken on Solaris 2.6; they are sometimes
24263         # delivered to the wrong thread.
24264         use_threads=false ;;
24265 *-solaris*)
24266         use_threads=true ;;
24267 *-ibm-aix*)
24268         use_threads=true ;;
24269 *-hp-hpux10*)
24270         use_threads=false ;;
24271 *-hp-hpux11*)
24272         use_threads=true ;;
24273 *-sgi-irix*)
24274         use_threads=true ;;
24275 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
24276         # UnixWare
24277         use_threads=false ;;
24278 *-*-sysv*OpenUNIX*)
24279         # UnixWare
24280         use_threads=true ;;
24281 *-netbsd*)
24282         if test -r /usr/lib/libpthread.so ; then
24283             use_threads=true
24284         else
24285             # Socket I/O optimizations introduced in 9.2 expose a
24286             # bug in unproven-pthreads; see PR #12650
24287             use_threads=false
24288         fi
24289         ;;
24290 *-openbsd*)
24291         # OpenBSD users have reported that named dumps core on
24292         # startup when built with threads.
24293         use_threads=false ;;
24294 *-freebsd*)
24295         use_threads=false ;;
24296 *-bsdi234*)
24297         # Thread signals do not work reliably on some versions of BSD/OS.
24298         use_threads=false ;;
24299 *-bsdi5*)
24300         use_threads=true ;;
24301 *-linux*)
24302         # Threads are disabled on Linux by default because most
24303         # Linux kernels produce unusable core dumps from multithreaded
24304         # programs, and because of limitations in setuid().
24305         use_threads=false ;;
24306 *)
24307         use_threads=false ;;
24308 esac
24309
24310 # Check whether --enable-threads was given.
24311 if test "${enable_threads+set}" = set; then
24312   enableval=$enable_threads;
24313 fi
24314
24315 case "$enable_threads" in
24316         yes)
24317                 use_threads=true
24318                 ;;
24319         no)
24320                 use_threads=false
24321                 ;;
24322         '')
24323                 # Use system-dependent default
24324                 ;;
24325         *)
24326                 { { $as_echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5
24327 $as_echo "$as_me: error: --enable-threads takes yes or no" >&2;}
24328    { (exit 1); exit 1; }; }
24329                 ;;
24330 esac
24331
24332 if $use_threads
24333 then
24334         { $as_echo "$as_me:$LINENO: result: yes" >&5
24335 $as_echo "yes" >&6; }
24336 else
24337         { $as_echo "$as_me:$LINENO: result: no" >&5
24338 $as_echo "no" >&6; }
24339 fi
24340
24341 if $use_threads
24342 then
24343         #
24344         # Search for / configure pthreads in a system-dependent fashion.
24345         #
24346         case "$host" in
24347           *-netbsd*)
24348                 # NetBSD has multiple pthreads implementations.  The
24349                 # recommended one to use is "unproven-pthreads".  The
24350                 # older "mit-pthreads" may also work on some NetBSD
24351                 # versions.  The PTL2 thread library does not
24352                 # currently work with bind9, but can be chosen with
24353                 # the --with-ptl2 option for those who wish to
24354                 # experiment with it.
24355                 CC="gcc"
24356                 { $as_echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5
24357 $as_echo_n "checking which NetBSD thread library to use... " >&6; }
24358
24359
24360 # Check whether --with-ptl2 was given.
24361 if test "${with_ptl2+set}" = set; then
24362   withval=$with_ptl2; use_ptl2="$withval"
24363 else
24364   use_ptl2="no"
24365 fi
24366
24367
24368                 : ${LOCALBASE:=/usr/pkg}
24369
24370                 if test "X$use_ptl2" = "Xyes"
24371                 then
24372                         { $as_echo "$as_me:$LINENO: result: PTL2" >&5
24373 $as_echo "PTL2" >&6; }
24374                         { $as_echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5
24375 $as_echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;}
24376                         CC=ptlgcc
24377                 else
24378                         if test -r /usr/lib/libpthread.so
24379                         then
24380                                 { $as_echo "$as_me:$LINENO: result: native" >&5
24381 $as_echo "native" >&6; }
24382                                 LIBS="-lpthread $LIBS"
24383                         else
24384                                 if test ! -d $LOCALBASE/pthreads
24385                                 then
24386                                         { $as_echo "$as_me:$LINENO: result: none" >&5
24387 $as_echo "none" >&6; }
24388                                         { { $as_echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24389 $as_echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24390    { (exit 1); exit 1; }; }
24391                                 fi
24392
24393                                 if $use_threads
24394                                 then
24395                                         { $as_echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5
24396 $as_echo "mit-pthreads/unproven-pthreads" >&6; }
24397                                         pkg="$LOCALBASE/pthreads"
24398                                         lib1="-L$pkg/lib -Wl,-R$pkg/lib"
24399                                         lib2="-lpthread -lm -lgcc -lpthread"
24400                                         LIBS="$lib1 $lib2 $LIBS"
24401                                         CPPFLAGS="$CPPFLAGS -I$pkg/include"
24402                                         STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
24403                                 fi
24404                         fi
24405                 fi
24406                 ;;
24407                 *-freebsd*)
24408                         # We don't want to set -lpthread as that break
24409                         # the ability to choose threads library at final
24410                         # link time and is not valid for all architectures.
24411
24412                         PTHREAD=
24413                         if test "X$GCC" = "Xyes"; then
24414                                 saved_cc="$CC"
24415                                 CC="$CC -pthread"
24416                                 { $as_echo "$as_me:$LINENO: checking for gcc -pthread support" >&5
24417 $as_echo_n "checking for gcc -pthread support... " >&6; };
24418                                 cat >conftest.$ac_ext <<_ACEOF
24419 /* confdefs.h.  */
24420 _ACEOF
24421 cat confdefs.h >>conftest.$ac_ext
24422 cat >>conftest.$ac_ext <<_ACEOF
24423 /* end confdefs.h.  */
24424 #include <pthread.h>
24425 int
24426 main ()
24427 {
24428 printf("%x\n", pthread_create);
24429   ;
24430   return 0;
24431 }
24432 _ACEOF
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437   *) ac_try_echo=$ac_try;;
24438 esac
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441   (eval "$ac_link") 2>conftest.er1
24442   ac_status=$?
24443   grep -v '^ *+' conftest.er1 >conftest.err
24444   rm -f conftest.er1
24445   cat conftest.err >&5
24446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); } && {
24448          test -z "$ac_c_werror_flag" ||
24449          test ! -s conftest.err
24450        } && test -s conftest$ac_exeext && {
24451          test "$cross_compiling" = yes ||
24452          $as_test_x conftest$ac_exeext
24453        }; then
24454   PTHREAD="yes"
24455                                             { $as_echo "$as_me:$LINENO: result: yes" >&5
24456 $as_echo "yes" >&6; }
24457 else
24458   $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461         { $as_echo "$as_me:$LINENO: result: no" >&5
24462 $as_echo "no" >&6; }
24463 fi
24464
24465 rm -rf conftest.dSYM
24466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24467       conftest$ac_exeext conftest.$ac_ext
24468                                 CC="$saved_cc"
24469                         fi
24470                         if test "X$PTHREAD" != "Xyes"; then
24471
24472 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24473 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
24474 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24475   $as_echo_n "(cached) " >&6
24476 else
24477   ac_check_lib_save_LIBS=$LIBS
24478 LIBS="-lpthread  $LIBS"
24479 cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h.  */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h.  */
24485
24486 /* Override any GCC internal prototype to avoid an error.
24487    Use char because int might match the return type of a GCC
24488    builtin and then its argument prototype would still apply.  */
24489 #ifdef __cplusplus
24490 extern "C"
24491 #endif
24492 char pthread_create ();
24493 int
24494 main ()
24495 {
24496 return pthread_create ();
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (ac_try="$ac_link"
24503 case "(($ac_try" in
24504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505   *) ac_try_echo=$ac_try;;
24506 esac
24507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24508 $as_echo "$ac_try_echo") >&5
24509   (eval "$ac_link") 2>conftest.er1
24510   ac_status=$?
24511   grep -v '^ *+' conftest.er1 >conftest.err
24512   rm -f conftest.er1
24513   cat conftest.err >&5
24514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); } && {
24516          test -z "$ac_c_werror_flag" ||
24517          test ! -s conftest.err
24518        } && test -s conftest$ac_exeext && {
24519          test "$cross_compiling" = yes ||
24520          $as_test_x conftest$ac_exeext
24521        }; then
24522   ac_cv_lib_pthread_pthread_create=yes
24523 else
24524   $as_echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527         ac_cv_lib_pthread_pthread_create=no
24528 fi
24529
24530 rm -rf conftest.dSYM
24531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24532       conftest$ac_exeext conftest.$ac_ext
24533 LIBS=$ac_check_lib_save_LIBS
24534 fi
24535 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24536 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
24537 if test $ac_cv_lib_pthread_pthread_create = yes; then
24538   cat >>confdefs.h <<_ACEOF
24539 #define HAVE_LIBPTHREAD 1
24540 _ACEOF
24541
24542   LIBS="-lpthread $LIBS"
24543
24544 else
24545
24546 { $as_echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5
24547 $as_echo_n "checking for thread_create in -lthr... " >&6; }
24548 if test "${ac_cv_lib_thr_thread_create+set}" = set; then
24549   $as_echo_n "(cached) " >&6
24550 else
24551   ac_check_lib_save_LIBS=$LIBS
24552 LIBS="-lthr  $LIBS"
24553 cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h.  */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h.  */
24559
24560 /* Override any GCC internal prototype to avoid an error.
24561    Use char because int might match the return type of a GCC
24562    builtin and then its argument prototype would still apply.  */
24563 #ifdef __cplusplus
24564 extern "C"
24565 #endif
24566 char thread_create ();
24567 int
24568 main ()
24569 {
24570 return thread_create ();
24571   ;
24572   return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (ac_try="$ac_link"
24577 case "(($ac_try" in
24578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579   *) ac_try_echo=$ac_try;;
24580 esac
24581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24582 $as_echo "$ac_try_echo") >&5
24583   (eval "$ac_link") 2>conftest.er1
24584   ac_status=$?
24585   grep -v '^ *+' conftest.er1 >conftest.err
24586   rm -f conftest.er1
24587   cat conftest.err >&5
24588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); } && {
24590          test -z "$ac_c_werror_flag" ||
24591          test ! -s conftest.err
24592        } && test -s conftest$ac_exeext && {
24593          test "$cross_compiling" = yes ||
24594          $as_test_x conftest$ac_exeext
24595        }; then
24596   ac_cv_lib_thr_thread_create=yes
24597 else
24598   $as_echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24600
24601         ac_cv_lib_thr_thread_create=no
24602 fi
24603
24604 rm -rf conftest.dSYM
24605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24606       conftest$ac_exeext conftest.$ac_ext
24607 LIBS=$ac_check_lib_save_LIBS
24608 fi
24609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5
24610 $as_echo "$ac_cv_lib_thr_thread_create" >&6; }
24611 if test $ac_cv_lib_thr_thread_create = yes; then
24612   cat >>confdefs.h <<_ACEOF
24613 #define HAVE_LIBTHR 1
24614 _ACEOF
24615
24616   LIBS="-lthr $LIBS"
24617
24618 else
24619
24620 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
24621 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
24622 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
24623   $as_echo_n "(cached) " >&6
24624 else
24625   ac_check_lib_save_LIBS=$LIBS
24626 LIBS="-lc_r  $LIBS"
24627 cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h.  */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h.  */
24633
24634 /* Override any GCC internal prototype to avoid an error.
24635    Use char because int might match the return type of a GCC
24636    builtin and then its argument prototype would still apply.  */
24637 #ifdef __cplusplus
24638 extern "C"
24639 #endif
24640 char pthread_create ();
24641 int
24642 main ()
24643 {
24644 return pthread_create ();
24645   ;
24646   return 0;
24647 }
24648 _ACEOF
24649 rm -f conftest.$ac_objext conftest$ac_exeext
24650 if { (ac_try="$ac_link"
24651 case "(($ac_try" in
24652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653   *) ac_try_echo=$ac_try;;
24654 esac
24655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24656 $as_echo "$ac_try_echo") >&5
24657   (eval "$ac_link") 2>conftest.er1
24658   ac_status=$?
24659   grep -v '^ *+' conftest.er1 >conftest.err
24660   rm -f conftest.er1
24661   cat conftest.err >&5
24662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } && {
24664          test -z "$ac_c_werror_flag" ||
24665          test ! -s conftest.err
24666        } && test -s conftest$ac_exeext && {
24667          test "$cross_compiling" = yes ||
24668          $as_test_x conftest$ac_exeext
24669        }; then
24670   ac_cv_lib_c_r_pthread_create=yes
24671 else
24672   $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24674
24675         ac_cv_lib_c_r_pthread_create=no
24676 fi
24677
24678 rm -rf conftest.dSYM
24679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24680       conftest$ac_exeext conftest.$ac_ext
24681 LIBS=$ac_check_lib_save_LIBS
24682 fi
24683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
24684 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
24685 if test $ac_cv_lib_c_r_pthread_create = yes; then
24686   cat >>confdefs.h <<_ACEOF
24687 #define HAVE_LIBC_R 1
24688 _ACEOF
24689
24690   LIBS="-lc_r $LIBS"
24691
24692 else
24693
24694 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
24695 $as_echo_n "checking for pthread_create in -lc... " >&6; }
24696 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
24697   $as_echo_n "(cached) " >&6
24698 else
24699   ac_check_lib_save_LIBS=$LIBS
24700 LIBS="-lc  $LIBS"
24701 cat >conftest.$ac_ext <<_ACEOF
24702 /* confdefs.h.  */
24703 _ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h.  */
24707
24708 /* Override any GCC internal prototype to avoid an error.
24709    Use char because int might match the return type of a GCC
24710    builtin and then its argument prototype would still apply.  */
24711 #ifdef __cplusplus
24712 extern "C"
24713 #endif
24714 char pthread_create ();
24715 int
24716 main ()
24717 {
24718 return pthread_create ();
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext conftest$ac_exeext
24724 if { (ac_try="$ac_link"
24725 case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24730 $as_echo "$ac_try_echo") >&5
24731   (eval "$ac_link") 2>conftest.er1
24732   ac_status=$?
24733   grep -v '^ *+' conftest.er1 >conftest.err
24734   rm -f conftest.er1
24735   cat conftest.err >&5
24736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); } && {
24738          test -z "$ac_c_werror_flag" ||
24739          test ! -s conftest.err
24740        } && test -s conftest$ac_exeext && {
24741          test "$cross_compiling" = yes ||
24742          $as_test_x conftest$ac_exeext
24743        }; then
24744   ac_cv_lib_c_pthread_create=yes
24745 else
24746   $as_echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749         ac_cv_lib_c_pthread_create=no
24750 fi
24751
24752 rm -rf conftest.dSYM
24753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24754       conftest$ac_exeext conftest.$ac_ext
24755 LIBS=$ac_check_lib_save_LIBS
24756 fi
24757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
24758 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
24759 if test $ac_cv_lib_c_pthread_create = yes; then
24760   cat >>confdefs.h <<_ACEOF
24761 #define HAVE_LIBC 1
24762 _ACEOF
24763
24764   LIBS="-lc $LIBS"
24765
24766 else
24767   { { $as_echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
24768 $as_echo "$as_me: error: \"could not find thread libraries\"" >&2;}
24769    { (exit 1); exit 1; }; }
24770 fi
24771
24772 fi
24773
24774 fi
24775
24776 fi
24777
24778                         fi
24779                         ;;
24780                 *)
24781
24782 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24783 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
24784 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24785   $as_echo_n "(cached) " >&6
24786 else
24787   ac_check_lib_save_LIBS=$LIBS
24788 LIBS="-lpthread  $LIBS"
24789 cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h.  */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h.  */
24795
24796 /* Override any GCC internal prototype to avoid an error.
24797    Use char because int might match the return type of a GCC
24798    builtin and then its argument prototype would still apply.  */
24799 #ifdef __cplusplus
24800 extern "C"
24801 #endif
24802 char pthread_create ();
24803 int
24804 main ()
24805 {
24806 return pthread_create ();
24807   ;
24808   return 0;
24809 }
24810 _ACEOF
24811 rm -f conftest.$ac_objext conftest$ac_exeext
24812 if { (ac_try="$ac_link"
24813 case "(($ac_try" in
24814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24815   *) ac_try_echo=$ac_try;;
24816 esac
24817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24818 $as_echo "$ac_try_echo") >&5
24819   (eval "$ac_link") 2>conftest.er1
24820   ac_status=$?
24821   grep -v '^ *+' conftest.er1 >conftest.err
24822   rm -f conftest.er1
24823   cat conftest.err >&5
24824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); } && {
24826          test -z "$ac_c_werror_flag" ||
24827          test ! -s conftest.err
24828        } && test -s conftest$ac_exeext && {
24829          test "$cross_compiling" = yes ||
24830          $as_test_x conftest$ac_exeext
24831        }; then
24832   ac_cv_lib_pthread_pthread_create=yes
24833 else
24834   $as_echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24836
24837         ac_cv_lib_pthread_pthread_create=no
24838 fi
24839
24840 rm -rf conftest.dSYM
24841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24842       conftest$ac_exeext conftest.$ac_ext
24843 LIBS=$ac_check_lib_save_LIBS
24844 fi
24845 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24846 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
24847 if test $ac_cv_lib_pthread_pthread_create = yes; then
24848   cat >>confdefs.h <<_ACEOF
24849 #define HAVE_LIBPTHREAD 1
24850 _ACEOF
24851
24852   LIBS="-lpthread $LIBS"
24853
24854 else
24855
24856 { $as_echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5
24857 $as_echo_n "checking for __pthread_create in -lpthread... " >&6; }
24858 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then
24859   $as_echo_n "(cached) " >&6
24860 else
24861   ac_check_lib_save_LIBS=$LIBS
24862 LIBS="-lpthread  $LIBS"
24863 cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869
24870 /* Override any GCC internal prototype to avoid an error.
24871    Use char because int might match the return type of a GCC
24872    builtin and then its argument prototype would still apply.  */
24873 #ifdef __cplusplus
24874 extern "C"
24875 #endif
24876 char __pthread_create ();
24877 int
24878 main ()
24879 {
24880 return __pthread_create ();
24881   ;
24882   return 0;
24883 }
24884 _ACEOF
24885 rm -f conftest.$ac_objext conftest$ac_exeext
24886 if { (ac_try="$ac_link"
24887 case "(($ac_try" in
24888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24889   *) ac_try_echo=$ac_try;;
24890 esac
24891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24892 $as_echo "$ac_try_echo") >&5
24893   (eval "$ac_link") 2>conftest.er1
24894   ac_status=$?
24895   grep -v '^ *+' conftest.er1 >conftest.err
24896   rm -f conftest.er1
24897   cat conftest.err >&5
24898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); } && {
24900          test -z "$ac_c_werror_flag" ||
24901          test ! -s conftest.err
24902        } && test -s conftest$ac_exeext && {
24903          test "$cross_compiling" = yes ||
24904          $as_test_x conftest$ac_exeext
24905        }; then
24906   ac_cv_lib_pthread___pthread_create=yes
24907 else
24908   $as_echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24910
24911         ac_cv_lib_pthread___pthread_create=no
24912 fi
24913
24914 rm -rf conftest.dSYM
24915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24916       conftest$ac_exeext conftest.$ac_ext
24917 LIBS=$ac_check_lib_save_LIBS
24918 fi
24919 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5
24920 $as_echo "$ac_cv_lib_pthread___pthread_create" >&6; }
24921 if test $ac_cv_lib_pthread___pthread_create = yes; then
24922   cat >>confdefs.h <<_ACEOF
24923 #define HAVE_LIBPTHREAD 1
24924 _ACEOF
24925
24926   LIBS="-lpthread $LIBS"
24927
24928 else
24929
24930 { $as_echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
24931 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
24932 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
24933   $as_echo_n "(cached) " >&6
24934 else
24935   ac_check_lib_save_LIBS=$LIBS
24936 LIBS="-lpthread  $LIBS"
24937 cat >conftest.$ac_ext <<_ACEOF
24938 /* confdefs.h.  */
24939 _ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h.  */
24943
24944 /* Override any GCC internal prototype to avoid an error.
24945    Use char because int might match the return type of a GCC
24946    builtin and then its argument prototype would still apply.  */
24947 #ifdef __cplusplus
24948 extern "C"
24949 #endif
24950 char __pthread_create_system ();
24951 int
24952 main ()
24953 {
24954 return __pthread_create_system ();
24955   ;
24956   return 0;
24957 }
24958 _ACEOF
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (ac_try="$ac_link"
24961 case "(($ac_try" in
24962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963   *) ac_try_echo=$ac_try;;
24964 esac
24965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24966 $as_echo "$ac_try_echo") >&5
24967   (eval "$ac_link") 2>conftest.er1
24968   ac_status=$?
24969   grep -v '^ *+' conftest.er1 >conftest.err
24970   rm -f conftest.er1
24971   cat conftest.err >&5
24972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); } && {
24974          test -z "$ac_c_werror_flag" ||
24975          test ! -s conftest.err
24976        } && test -s conftest$ac_exeext && {
24977          test "$cross_compiling" = yes ||
24978          $as_test_x conftest$ac_exeext
24979        }; then
24980   ac_cv_lib_pthread___pthread_create_system=yes
24981 else
24982   $as_echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985         ac_cv_lib_pthread___pthread_create_system=no
24986 fi
24987
24988 rm -rf conftest.dSYM
24989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24990       conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24992 fi
24993 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
24994 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
24995 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
24996   cat >>confdefs.h <<_ACEOF
24997 #define HAVE_LIBPTHREAD 1
24998 _ACEOF
24999
25000   LIBS="-lpthread $LIBS"
25001
25002 else
25003
25004 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
25005 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
25006 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
25007   $as_echo_n "(cached) " >&6
25008 else
25009   ac_check_lib_save_LIBS=$LIBS
25010 LIBS="-lc_r  $LIBS"
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017
25018 /* Override any GCC internal prototype to avoid an error.
25019    Use char because int might match the return type of a GCC
25020    builtin and then its argument prototype would still apply.  */
25021 #ifdef __cplusplus
25022 extern "C"
25023 #endif
25024 char pthread_create ();
25025 int
25026 main ()
25027 {
25028 return pthread_create ();
25029   ;
25030   return 0;
25031 }
25032 _ACEOF
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (ac_try="$ac_link"
25035 case "(($ac_try" in
25036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037   *) ac_try_echo=$ac_try;;
25038 esac
25039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25040 $as_echo "$ac_try_echo") >&5
25041   (eval "$ac_link") 2>conftest.er1
25042   ac_status=$?
25043   grep -v '^ *+' conftest.er1 >conftest.err
25044   rm -f conftest.er1
25045   cat conftest.err >&5
25046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); } && {
25048          test -z "$ac_c_werror_flag" ||
25049          test ! -s conftest.err
25050        } && test -s conftest$ac_exeext && {
25051          test "$cross_compiling" = yes ||
25052          $as_test_x conftest$ac_exeext
25053        }; then
25054   ac_cv_lib_c_r_pthread_create=yes
25055 else
25056   $as_echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25058
25059         ac_cv_lib_c_r_pthread_create=no
25060 fi
25061
25062 rm -rf conftest.dSYM
25063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25064       conftest$ac_exeext conftest.$ac_ext
25065 LIBS=$ac_check_lib_save_LIBS
25066 fi
25067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
25068 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
25069 if test $ac_cv_lib_c_r_pthread_create = yes; then
25070   cat >>confdefs.h <<_ACEOF
25071 #define HAVE_LIBC_R 1
25072 _ACEOF
25073
25074   LIBS="-lc_r $LIBS"
25075
25076 else
25077
25078 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5
25079 $as_echo_n "checking for pthread_create in -lc... " >&6; }
25080 if test "${ac_cv_lib_c_pthread_create+set}" = set; then
25081   $as_echo_n "(cached) " >&6
25082 else
25083   ac_check_lib_save_LIBS=$LIBS
25084 LIBS="-lc  $LIBS"
25085 cat >conftest.$ac_ext <<_ACEOF
25086 /* confdefs.h.  */
25087 _ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h.  */
25091
25092 /* Override any GCC internal prototype to avoid an error.
25093    Use char because int might match the return type of a GCC
25094    builtin and then its argument prototype would still apply.  */
25095 #ifdef __cplusplus
25096 extern "C"
25097 #endif
25098 char pthread_create ();
25099 int
25100 main ()
25101 {
25102 return pthread_create ();
25103   ;
25104   return 0;
25105 }
25106 _ACEOF
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (ac_try="$ac_link"
25109 case "(($ac_try" in
25110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111   *) ac_try_echo=$ac_try;;
25112 esac
25113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25114 $as_echo "$ac_try_echo") >&5
25115   (eval "$ac_link") 2>conftest.er1
25116   ac_status=$?
25117   grep -v '^ *+' conftest.er1 >conftest.err
25118   rm -f conftest.er1
25119   cat conftest.err >&5
25120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); } && {
25122          test -z "$ac_c_werror_flag" ||
25123          test ! -s conftest.err
25124        } && test -s conftest$ac_exeext && {
25125          test "$cross_compiling" = yes ||
25126          $as_test_x conftest$ac_exeext
25127        }; then
25128   ac_cv_lib_c_pthread_create=yes
25129 else
25130   $as_echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25132
25133         ac_cv_lib_c_pthread_create=no
25134 fi
25135
25136 rm -rf conftest.dSYM
25137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25138       conftest$ac_exeext conftest.$ac_ext
25139 LIBS=$ac_check_lib_save_LIBS
25140 fi
25141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5
25142 $as_echo "$ac_cv_lib_c_pthread_create" >&6; }
25143 if test $ac_cv_lib_c_pthread_create = yes; then
25144   cat >>confdefs.h <<_ACEOF
25145 #define HAVE_LIBC 1
25146 _ACEOF
25147
25148   LIBS="-lc $LIBS"
25149
25150 else
25151   { { $as_echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5
25152 $as_echo "$as_me: error: \"could not find thread libraries\"" >&2;}
25153    { (exit 1); exit 1; }; }
25154 fi
25155
25156 fi
25157
25158 fi
25159
25160 fi
25161
25162 fi
25163
25164                 ;;
25165         esac
25166 fi
25167
25168 if $use_threads
25169 then
25170         if test "X$GCC" = "Xyes"; then
25171                 case "$host" in
25172                 *-freebsd*)
25173                         CC="$CC -pthread"
25174                         CCOPT="$CCOPT -pthread"
25175                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
25176                         ;;
25177                 *-openbsd*)
25178                         CC="$CC -pthread"
25179                         CCOPT="$CCOPT -pthread"
25180                         ;;
25181                 *-solaris*)
25182                         LIBS="$LIBS -lthread"
25183                         ;;
25184                 *-ibm-aix*)
25185                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
25186                         ;;
25187                 esac
25188         else
25189                 case $host in
25190                 *-dec-osf*)
25191                         CC="$CC -pthread"
25192                         CCOPT="$CCOPT -pthread"
25193                         ;;
25194                 *-solaris*)
25195                         CC="$CC -mt"
25196                         CCOPT="$CCOPT -mt"
25197                         ;;
25198                 *-ibm-aix*)
25199                         STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE"
25200                         ;;
25201                 *-sco-sysv*uw*|*-*-sysv*UnixWare*)
25202                         CC="$CC -Kthread"
25203                         CCOPT="$CCOPT -Kthread"
25204                         ;;
25205                 *-*-sysv*OpenUNIX*)
25206                         CC="$CC -Kpthread"
25207                         CCOPT="$CCOPT -Kpthread"
25208                         ;;
25209                 esac
25210         fi
25211         ALWAYS_DEFINES="-D_REENTRANT"
25212         ISC_PLATFORM_USETHREADS="#define ISC_PLATFORM_USETHREADS 1"
25213         thread_dir=pthreads
25214         #
25215         # We'd like to use sigwait() too
25216         #
25217         { $as_echo "$as_me:$LINENO: checking for sigwait" >&5
25218 $as_echo_n "checking for sigwait... " >&6; }
25219 if test "${ac_cv_func_sigwait+set}" = set; then
25220   $as_echo_n "(cached) " >&6
25221 else
25222   cat >conftest.$ac_ext <<_ACEOF
25223 /* confdefs.h.  */
25224 _ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h.  */
25228 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait.
25229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25230 #define sigwait innocuous_sigwait
25231
25232 /* System header to define __stub macros and hopefully few prototypes,
25233     which can conflict with char sigwait (); below.
25234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25235     <limits.h> exists even on freestanding compilers.  */
25236
25237 #ifdef __STDC__
25238 # include <limits.h>
25239 #else
25240 # include <assert.h>
25241 #endif
25242
25243 #undef sigwait
25244
25245 /* Override any GCC internal prototype to avoid an error.
25246    Use char because int might match the return type of a GCC
25247    builtin and then its argument prototype would still apply.  */
25248 #ifdef __cplusplus
25249 extern "C"
25250 #endif
25251 char sigwait ();
25252 /* The GNU C library defines this for functions which it implements
25253     to always fail with ENOSYS.  Some functions are actually named
25254     something starting with __ and the normal name is an alias.  */
25255 #if defined __stub_sigwait || defined __stub___sigwait
25256 choke me
25257 #endif
25258
25259 int
25260 main ()
25261 {
25262 return sigwait ();
25263   ;
25264   return 0;
25265 }
25266 _ACEOF
25267 rm -f conftest.$ac_objext conftest$ac_exeext
25268 if { (ac_try="$ac_link"
25269 case "(($ac_try" in
25270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271   *) ac_try_echo=$ac_try;;
25272 esac
25273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25274 $as_echo "$ac_try_echo") >&5
25275   (eval "$ac_link") 2>conftest.er1
25276   ac_status=$?
25277   grep -v '^ *+' conftest.er1 >conftest.err
25278   rm -f conftest.er1
25279   cat conftest.err >&5
25280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); } && {
25282          test -z "$ac_c_werror_flag" ||
25283          test ! -s conftest.err
25284        } && test -s conftest$ac_exeext && {
25285          test "$cross_compiling" = yes ||
25286          $as_test_x conftest$ac_exeext
25287        }; then
25288   ac_cv_func_sigwait=yes
25289 else
25290   $as_echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25292
25293         ac_cv_func_sigwait=no
25294 fi
25295
25296 rm -rf conftest.dSYM
25297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25298       conftest$ac_exeext conftest.$ac_ext
25299 fi
25300 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5
25301 $as_echo "$ac_cv_func_sigwait" >&6; }
25302 if test $ac_cv_func_sigwait = yes; then
25303   cat >>confdefs.h <<\_ACEOF
25304 #define HAVE_SIGWAIT 1
25305 _ACEOF
25306
25307 else
25308   { $as_echo "$as_me:$LINENO: checking for sigwait in -lc" >&5
25309 $as_echo_n "checking for sigwait in -lc... " >&6; }
25310 if test "${ac_cv_lib_c_sigwait+set}" = set; then
25311   $as_echo_n "(cached) " >&6
25312 else
25313   ac_check_lib_save_LIBS=$LIBS
25314 LIBS="-lc  $LIBS"
25315 cat >conftest.$ac_ext <<_ACEOF
25316 /* confdefs.h.  */
25317 _ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h.  */
25321
25322 /* Override any GCC internal prototype to avoid an error.
25323    Use char because int might match the return type of a GCC
25324    builtin and then its argument prototype would still apply.  */
25325 #ifdef __cplusplus
25326 extern "C"
25327 #endif
25328 char sigwait ();
25329 int
25330 main ()
25331 {
25332 return sigwait ();
25333   ;
25334   return 0;
25335 }
25336 _ACEOF
25337 rm -f conftest.$ac_objext conftest$ac_exeext
25338 if { (ac_try="$ac_link"
25339 case "(($ac_try" in
25340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341   *) ac_try_echo=$ac_try;;
25342 esac
25343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25344 $as_echo "$ac_try_echo") >&5
25345   (eval "$ac_link") 2>conftest.er1
25346   ac_status=$?
25347   grep -v '^ *+' conftest.er1 >conftest.err
25348   rm -f conftest.er1
25349   cat conftest.err >&5
25350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); } && {
25352          test -z "$ac_c_werror_flag" ||
25353          test ! -s conftest.err
25354        } && test -s conftest$ac_exeext && {
25355          test "$cross_compiling" = yes ||
25356          $as_test_x conftest$ac_exeext
25357        }; then
25358   ac_cv_lib_c_sigwait=yes
25359 else
25360   $as_echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363         ac_cv_lib_c_sigwait=no
25364 fi
25365
25366 rm -rf conftest.dSYM
25367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25368       conftest$ac_exeext conftest.$ac_ext
25369 LIBS=$ac_check_lib_save_LIBS
25370 fi
25371 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5
25372 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
25373 if test $ac_cv_lib_c_sigwait = yes; then
25374   cat >>confdefs.h <<\_ACEOF
25375 #define HAVE_SIGWAIT 1
25376 _ACEOF
25377
25378 else
25379   { $as_echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5
25380 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
25381 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then
25382   $as_echo_n "(cached) " >&6
25383 else
25384   ac_check_lib_save_LIBS=$LIBS
25385 LIBS="-lpthread  $LIBS"
25386 cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392
25393 /* Override any GCC internal prototype to avoid an error.
25394    Use char because int might match the return type of a GCC
25395    builtin and then its argument prototype would still apply.  */
25396 #ifdef __cplusplus
25397 extern "C"
25398 #endif
25399 char sigwait ();
25400 int
25401 main ()
25402 {
25403 return sigwait ();
25404   ;
25405   return 0;
25406 }
25407 _ACEOF
25408 rm -f conftest.$ac_objext conftest$ac_exeext
25409 if { (ac_try="$ac_link"
25410 case "(($ac_try" in
25411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412   *) ac_try_echo=$ac_try;;
25413 esac
25414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25415 $as_echo "$ac_try_echo") >&5
25416   (eval "$ac_link") 2>conftest.er1
25417   ac_status=$?
25418   grep -v '^ *+' conftest.er1 >conftest.err
25419   rm -f conftest.er1
25420   cat conftest.err >&5
25421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); } && {
25423          test -z "$ac_c_werror_flag" ||
25424          test ! -s conftest.err
25425        } && test -s conftest$ac_exeext && {
25426          test "$cross_compiling" = yes ||
25427          $as_test_x conftest$ac_exeext
25428        }; then
25429   ac_cv_lib_pthread_sigwait=yes
25430 else
25431   $as_echo "$as_me: failed program was:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25433
25434         ac_cv_lib_pthread_sigwait=no
25435 fi
25436
25437 rm -rf conftest.dSYM
25438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25439       conftest$ac_exeext conftest.$ac_ext
25440 LIBS=$ac_check_lib_save_LIBS
25441 fi
25442 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5
25443 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
25444 if test $ac_cv_lib_pthread_sigwait = yes; then
25445   cat >>confdefs.h <<\_ACEOF
25446 #define HAVE_SIGWAIT 1
25447 _ACEOF
25448
25449 else
25450   { $as_echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5
25451 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
25452 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then
25453   $as_echo_n "(cached) " >&6
25454 else
25455   ac_check_lib_save_LIBS=$LIBS
25456 LIBS="-lpthread  $LIBS"
25457 cat >conftest.$ac_ext <<_ACEOF
25458 /* confdefs.h.  */
25459 _ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h.  */
25463
25464 /* Override any GCC internal prototype to avoid an error.
25465    Use char because int might match the return type of a GCC
25466    builtin and then its argument prototype would still apply.  */
25467 #ifdef __cplusplus
25468 extern "C"
25469 #endif
25470 char _Psigwait ();
25471 int
25472 main ()
25473 {
25474 return _Psigwait ();
25475   ;
25476   return 0;
25477 }
25478 _ACEOF
25479 rm -f conftest.$ac_objext conftest$ac_exeext
25480 if { (ac_try="$ac_link"
25481 case "(($ac_try" in
25482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483   *) ac_try_echo=$ac_try;;
25484 esac
25485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25486 $as_echo "$ac_try_echo") >&5
25487   (eval "$ac_link") 2>conftest.er1
25488   ac_status=$?
25489   grep -v '^ *+' conftest.er1 >conftest.err
25490   rm -f conftest.er1
25491   cat conftest.err >&5
25492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); } && {
25494          test -z "$ac_c_werror_flag" ||
25495          test ! -s conftest.err
25496        } && test -s conftest$ac_exeext && {
25497          test "$cross_compiling" = yes ||
25498          $as_test_x conftest$ac_exeext
25499        }; then
25500   ac_cv_lib_pthread__Psigwait=yes
25501 else
25502   $as_echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25504
25505         ac_cv_lib_pthread__Psigwait=no
25506 fi
25507
25508 rm -rf conftest.dSYM
25509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25510       conftest$ac_exeext conftest.$ac_ext
25511 LIBS=$ac_check_lib_save_LIBS
25512 fi
25513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5
25514 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
25515 if test $ac_cv_lib_pthread__Psigwait = yes; then
25516   cat >>confdefs.h <<\_ACEOF
25517 #define HAVE_SIGWAIT 1
25518 _ACEOF
25519
25520 fi
25521
25522 fi
25523
25524 fi
25525
25526 fi
25527
25528
25529         { $as_echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
25530 $as_echo_n "checking for pthread_attr_getstacksize... " >&6; }
25531 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
25532   $as_echo_n "(cached) " >&6
25533 else
25534   cat >conftest.$ac_ext <<_ACEOF
25535 /* confdefs.h.  */
25536 _ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h.  */
25540 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
25541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25542 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
25543
25544 /* System header to define __stub macros and hopefully few prototypes,
25545     which can conflict with char pthread_attr_getstacksize (); below.
25546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25547     <limits.h> exists even on freestanding compilers.  */
25548
25549 #ifdef __STDC__
25550 # include <limits.h>
25551 #else
25552 # include <assert.h>
25553 #endif
25554
25555 #undef pthread_attr_getstacksize
25556
25557 /* Override any GCC internal prototype to avoid an error.
25558    Use char because int might match the return type of a GCC
25559    builtin and then its argument prototype would still apply.  */
25560 #ifdef __cplusplus
25561 extern "C"
25562 #endif
25563 char pthread_attr_getstacksize ();
25564 /* The GNU C library defines this for functions which it implements
25565     to always fail with ENOSYS.  Some functions are actually named
25566     something starting with __ and the normal name is an alias.  */
25567 #if defined __stub_pthread_attr_getstacksize || defined __stub___pthread_attr_getstacksize
25568 choke me
25569 #endif
25570
25571 int
25572 main ()
25573 {
25574 return pthread_attr_getstacksize ();
25575   ;
25576   return 0;
25577 }
25578 _ACEOF
25579 rm -f conftest.$ac_objext conftest$ac_exeext
25580 if { (ac_try="$ac_link"
25581 case "(($ac_try" in
25582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583   *) ac_try_echo=$ac_try;;
25584 esac
25585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25586 $as_echo "$ac_try_echo") >&5
25587   (eval "$ac_link") 2>conftest.er1
25588   ac_status=$?
25589   grep -v '^ *+' conftest.er1 >conftest.err
25590   rm -f conftest.er1
25591   cat conftest.err >&5
25592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); } && {
25594          test -z "$ac_c_werror_flag" ||
25595          test ! -s conftest.err
25596        } && test -s conftest$ac_exeext && {
25597          test "$cross_compiling" = yes ||
25598          $as_test_x conftest$ac_exeext
25599        }; then
25600   ac_cv_func_pthread_attr_getstacksize=yes
25601 else
25602   $as_echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605         ac_cv_func_pthread_attr_getstacksize=no
25606 fi
25607
25608 rm -rf conftest.dSYM
25609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25610       conftest$ac_exeext conftest.$ac_ext
25611 fi
25612 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
25613 $as_echo "$ac_cv_func_pthread_attr_getstacksize" >&6; }
25614 if test $ac_cv_func_pthread_attr_getstacksize = yes; then
25615   cat >>confdefs.h <<\_ACEOF
25616 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
25617 _ACEOF
25618
25619 fi
25620
25621
25622         { $as_echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
25623 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
25624 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
25625   $as_echo_n "(cached) " >&6
25626 else
25627   cat >conftest.$ac_ext <<_ACEOF
25628 /* confdefs.h.  */
25629 _ACEOF
25630 cat confdefs.h >>conftest.$ac_ext
25631 cat >>conftest.$ac_ext <<_ACEOF
25632 /* end confdefs.h.  */
25633 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
25634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25635 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
25636
25637 /* System header to define __stub macros and hopefully few prototypes,
25638     which can conflict with char pthread_attr_setstacksize (); below.
25639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25640     <limits.h> exists even on freestanding compilers.  */
25641
25642 #ifdef __STDC__
25643 # include <limits.h>
25644 #else
25645 # include <assert.h>
25646 #endif
25647
25648 #undef pthread_attr_setstacksize
25649
25650 /* Override any GCC internal prototype to avoid an error.
25651    Use char because int might match the return type of a GCC
25652    builtin and then its argument prototype would still apply.  */
25653 #ifdef __cplusplus
25654 extern "C"
25655 #endif
25656 char pthread_attr_setstacksize ();
25657 /* The GNU C library defines this for functions which it implements
25658     to always fail with ENOSYS.  Some functions are actually named
25659     something starting with __ and the normal name is an alias.  */
25660 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
25661 choke me
25662 #endif
25663
25664 int
25665 main ()
25666 {
25667 return pthread_attr_setstacksize ();
25668   ;
25669   return 0;
25670 }
25671 _ACEOF
25672 rm -f conftest.$ac_objext conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676   *) ac_try_echo=$ac_try;;
25677 esac
25678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25679 $as_echo "$ac_try_echo") >&5
25680   (eval "$ac_link") 2>conftest.er1
25681   ac_status=$?
25682   grep -v '^ *+' conftest.er1 >conftest.err
25683   rm -f conftest.er1
25684   cat conftest.err >&5
25685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); } && {
25687          test -z "$ac_c_werror_flag" ||
25688          test ! -s conftest.err
25689        } && test -s conftest$ac_exeext && {
25690          test "$cross_compiling" = yes ||
25691          $as_test_x conftest$ac_exeext
25692        }; then
25693   ac_cv_func_pthread_attr_setstacksize=yes
25694 else
25695   $as_echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698         ac_cv_func_pthread_attr_setstacksize=no
25699 fi
25700
25701 rm -rf conftest.dSYM
25702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25703       conftest$ac_exeext conftest.$ac_ext
25704 fi
25705 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
25706 $as_echo "$ac_cv_func_pthread_attr_setstacksize" >&6; }
25707 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
25708   cat >>confdefs.h <<\_ACEOF
25709 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
25710 _ACEOF
25711
25712 fi
25713
25714
25715         #
25716         # Additional OS-specific issues related to pthreads and sigwait.
25717         #
25718         case "$host" in
25719                 #
25720                 # One more place to look for sigwait.
25721                 #
25722                 *-freebsd*)
25723                         { $as_echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5
25724 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
25725 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then
25726   $as_echo_n "(cached) " >&6
25727 else
25728   ac_check_lib_save_LIBS=$LIBS
25729 LIBS="-lc_r  $LIBS"
25730 cat >conftest.$ac_ext <<_ACEOF
25731 /* confdefs.h.  */
25732 _ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h.  */
25736
25737 /* Override any GCC internal prototype to avoid an error.
25738    Use char because int might match the return type of a GCC
25739    builtin and then its argument prototype would still apply.  */
25740 #ifdef __cplusplus
25741 extern "C"
25742 #endif
25743 char sigwait ();
25744 int
25745 main ()
25746 {
25747 return sigwait ();
25748   ;
25749   return 0;
25750 }
25751 _ACEOF
25752 rm -f conftest.$ac_objext conftest$ac_exeext
25753 if { (ac_try="$ac_link"
25754 case "(($ac_try" in
25755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756   *) ac_try_echo=$ac_try;;
25757 esac
25758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25759 $as_echo "$ac_try_echo") >&5
25760   (eval "$ac_link") 2>conftest.er1
25761   ac_status=$?
25762   grep -v '^ *+' conftest.er1 >conftest.err
25763   rm -f conftest.er1
25764   cat conftest.err >&5
25765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); } && {
25767          test -z "$ac_c_werror_flag" ||
25768          test ! -s conftest.err
25769        } && test -s conftest$ac_exeext && {
25770          test "$cross_compiling" = yes ||
25771          $as_test_x conftest$ac_exeext
25772        }; then
25773   ac_cv_lib_c_r_sigwait=yes
25774 else
25775   $as_echo "$as_me: failed program was:" >&5
25776 sed 's/^/| /' conftest.$ac_ext >&5
25777
25778         ac_cv_lib_c_r_sigwait=no
25779 fi
25780
25781 rm -rf conftest.dSYM
25782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25783       conftest$ac_exeext conftest.$ac_ext
25784 LIBS=$ac_check_lib_save_LIBS
25785 fi
25786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5
25787 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
25788 if test $ac_cv_lib_c_r_sigwait = yes; then
25789   cat >>confdefs.h <<\_ACEOF
25790 #define HAVE_SIGWAIT 1
25791 _ACEOF
25792
25793 fi
25794
25795                         case $host in
25796                         *-freebsd5.[012]|*-freebsd5.[012].*);;
25797                         *-freebsd5.[3456789]|*-freebsd5.[3456789].*)
25798                                 cat >>confdefs.h <<\_ACEOF
25799 #define NEED_PTHREAD_SCOPE_SYSTEM 1
25800 _ACEOF
25801
25802                                 ;;
25803                         *-freebsd6.*)
25804                                 cat >>confdefs.h <<\_ACEOF
25805 #define NEED_PTHREAD_SCOPE_SYSTEM 1
25806 _ACEOF
25807
25808                                 ;;
25809                         esac
25810                         ;;
25811                 #
25812                 # BSDI 3.0 through 4.0.1 needs pthread_init() to be
25813                 # called before certain pthreads calls.  This is deprecated
25814                 # in BSD/OS 4.1.
25815                 #
25816                 *-bsdi3.*|*-bsdi4.0*)
25817                         cat >>confdefs.h <<\_ACEOF
25818 #define NEED_PTHREAD_INIT 1
25819 _ACEOF
25820
25821                         ;;
25822                 #
25823                 # LinuxThreads requires some changes to the way we
25824                 # deal with signals.
25825                 #
25826                 *-linux*)
25827                         cat >>confdefs.h <<\_ACEOF
25828 #define HAVE_LINUXTHREADS 1
25829 _ACEOF
25830
25831                         ;;
25832                 #
25833                 # Ensure the right sigwait() semantics on Solaris and make
25834                 # sure we call pthread_setconcurrency.
25835                 #
25836                 *-solaris*)
25837                         cat >>confdefs.h <<\_ACEOF
25838 #define _POSIX_PTHREAD_SEMANTICS 1
25839 _ACEOF
25840
25841                         { $as_echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
25842 $as_echo_n "checking for pthread_setconcurrency... " >&6; }
25843 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
25844   $as_echo_n "(cached) " >&6
25845 else
25846   cat >conftest.$ac_ext <<_ACEOF
25847 /* confdefs.h.  */
25848 _ACEOF
25849 cat confdefs.h >>conftest.$ac_ext
25850 cat >>conftest.$ac_ext <<_ACEOF
25851 /* end confdefs.h.  */
25852 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency.
25853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25854 #define pthread_setconcurrency innocuous_pthread_setconcurrency
25855
25856 /* System header to define __stub macros and hopefully few prototypes,
25857     which can conflict with char pthread_setconcurrency (); below.
25858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25859     <limits.h> exists even on freestanding compilers.  */
25860
25861 #ifdef __STDC__
25862 # include <limits.h>
25863 #else
25864 # include <assert.h>
25865 #endif
25866
25867 #undef pthread_setconcurrency
25868
25869 /* Override any GCC internal prototype to avoid an error.
25870    Use char because int might match the return type of a GCC
25871    builtin and then its argument prototype would still apply.  */
25872 #ifdef __cplusplus
25873 extern "C"
25874 #endif
25875 char pthread_setconcurrency ();
25876 /* The GNU C library defines this for functions which it implements
25877     to always fail with ENOSYS.  Some functions are actually named
25878     something starting with __ and the normal name is an alias.  */
25879 #if defined __stub_pthread_setconcurrency || defined __stub___pthread_setconcurrency
25880 choke me
25881 #endif
25882
25883 int
25884 main ()
25885 {
25886 return pthread_setconcurrency ();
25887   ;
25888   return 0;
25889 }
25890 _ACEOF
25891 rm -f conftest.$ac_objext conftest$ac_exeext
25892 if { (ac_try="$ac_link"
25893 case "(($ac_try" in
25894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25895   *) ac_try_echo=$ac_try;;
25896 esac
25897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25898 $as_echo "$ac_try_echo") >&5
25899   (eval "$ac_link") 2>conftest.er1
25900   ac_status=$?
25901   grep -v '^ *+' conftest.er1 >conftest.err
25902   rm -f conftest.er1
25903   cat conftest.err >&5
25904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905   (exit $ac_status); } && {
25906          test -z "$ac_c_werror_flag" ||
25907          test ! -s conftest.err
25908        } && test -s conftest$ac_exeext && {
25909          test "$cross_compiling" = yes ||
25910          $as_test_x conftest$ac_exeext
25911        }; then
25912   ac_cv_func_pthread_setconcurrency=yes
25913 else
25914   $as_echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25916
25917         ac_cv_func_pthread_setconcurrency=no
25918 fi
25919
25920 rm -rf conftest.dSYM
25921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25922       conftest$ac_exeext conftest.$ac_ext
25923 fi
25924 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
25925 $as_echo "$ac_cv_func_pthread_setconcurrency" >&6; }
25926 if test $ac_cv_func_pthread_setconcurrency = yes; then
25927   cat >>confdefs.h <<\_ACEOF
25928 #define CALL_PTHREAD_SETCONCURRENCY 1
25929 _ACEOF
25930
25931 fi
25932
25933                         ;;
25934                 #
25935                 # UnixWare does things its own way.
25936                 #
25937                 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25938                         cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_UNIXWARE_SIGWAIT 1
25940 _ACEOF
25941
25942                         ;;
25943         esac
25944
25945         #
25946         # Look for sysconf to allow detection of the number of processors.
25947         #
25948         { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
25949 $as_echo_n "checking for sysconf... " >&6; }
25950 if test "${ac_cv_func_sysconf+set}" = set; then
25951   $as_echo_n "(cached) " >&6
25952 else
25953   cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h.  */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h.  */
25959 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
25960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25961 #define sysconf innocuous_sysconf
25962
25963 /* System header to define __stub macros and hopefully few prototypes,
25964     which can conflict with char sysconf (); below.
25965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25966     <limits.h> exists even on freestanding compilers.  */
25967
25968 #ifdef __STDC__
25969 # include <limits.h>
25970 #else
25971 # include <assert.h>
25972 #endif
25973
25974 #undef sysconf
25975
25976 /* Override any GCC internal prototype to avoid an error.
25977    Use char because int might match the return type of a GCC
25978    builtin and then its argument prototype would still apply.  */
25979 #ifdef __cplusplus
25980 extern "C"
25981 #endif
25982 char sysconf ();
25983 /* The GNU C library defines this for functions which it implements
25984     to always fail with ENOSYS.  Some functions are actually named
25985     something starting with __ and the normal name is an alias.  */
25986 #if defined __stub_sysconf || defined __stub___sysconf
25987 choke me
25988 #endif
25989
25990 int
25991 main ()
25992 {
25993 return sysconf ();
25994   ;
25995   return 0;
25996 }
25997 _ACEOF
25998 rm -f conftest.$ac_objext conftest$ac_exeext
25999 if { (ac_try="$ac_link"
26000 case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26005 $as_echo "$ac_try_echo") >&5
26006   (eval "$ac_link") 2>conftest.er1
26007   ac_status=$?
26008   grep -v '^ *+' conftest.er1 >conftest.err
26009   rm -f conftest.er1
26010   cat conftest.err >&5
26011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } && {
26013          test -z "$ac_c_werror_flag" ||
26014          test ! -s conftest.err
26015        } && test -s conftest$ac_exeext && {
26016          test "$cross_compiling" = yes ||
26017          $as_test_x conftest$ac_exeext
26018        }; then
26019   ac_cv_func_sysconf=yes
26020 else
26021   $as_echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024         ac_cv_func_sysconf=no
26025 fi
26026
26027 rm -rf conftest.dSYM
26028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26029       conftest$ac_exeext conftest.$ac_ext
26030 fi
26031 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
26032 $as_echo "$ac_cv_func_sysconf" >&6; }
26033 if test $ac_cv_func_sysconf = yes; then
26034   cat >>confdefs.h <<\_ACEOF
26035 #define HAVE_SYSCONF 1
26036 _ACEOF
26037
26038 fi
26039
26040
26041 else
26042         ISC_PLATFORM_USETHREADS="#undef ISC_PLATFORM_USETHREADS"
26043         thread_dir=nothreads
26044         ALWAYS_DEFINES=""
26045 fi
26046
26047
26048
26049 ISC_THREAD_DIR=$thread_dir
26050
26051
26052 #
26053 # was --with-libxml2 specified?
26054 #
26055 { $as_echo "$as_me:$LINENO: checking for libxml2 library" >&5
26056 $as_echo_n "checking for libxml2 library... " >&6; }
26057
26058 # Check whether --with-libxml2 was given.
26059 if test "${with_libxml2+set}" = set; then
26060   withval=$with_libxml2; use_libxml2="$withval"
26061 else
26062   use_libxml2="auto"
26063 fi
26064
26065
26066 case "$use_libxml2" in
26067         no)
26068                 DST_LIBXML2_INC=""
26069                 ;;
26070         auto|yes)
26071                 case X`(xml2-config --version) 2>/dev/null` in
26072                 X2.[67].*)
26073                         libxml2_libs=`xml2-config --libs`
26074                         libxml2_cflags=`xml2-config --cflags`
26075                         ;;
26076                 *)
26077                         libxml2_libs=
26078                         libxml2_cflags=
26079                         ;;
26080                 esac
26081                 ;;
26082         *)
26083                 if test -f "$use_libxml2/bin/xml2-config" ; then
26084                         libxml2_libs=`$use_libxml2/bin/xml2-config --libs`
26085                         libxml2_cflags=`$use_libxml2/bin/xml2-config --cflags`
26086                 fi
26087                 ;;
26088 esac
26089
26090 if test "X$libxml2_libs" != "X"
26091 then
26092         { $as_echo "$as_me:$LINENO: result: yes" >&5
26093 $as_echo "yes" >&6; }
26094         CFLAGS="$CFLAGS $libxml2_cflags"
26095         LIBS="$LIBS $libxml2_libs"
26096
26097 cat >>confdefs.h <<\_ACEOF
26098 #define HAVE_LIBXML2 1
26099 _ACEOF
26100
26101 else
26102         { $as_echo "$as_me:$LINENO: result: no" >&5
26103 $as_echo "no" >&6; }
26104 fi
26105
26106 #
26107 # In solaris 10, SMF can manage named service
26108 #
26109
26110 { $as_echo "$as_me:$LINENO: checking for smf_enable_instance in -lscf" >&5
26111 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
26112 if test "${ac_cv_lib_scf_smf_enable_instance+set}" = set; then
26113   $as_echo_n "(cached) " >&6
26114 else
26115   ac_check_lib_save_LIBS=$LIBS
26116 LIBS="-lscf  $LIBS"
26117 cat >conftest.$ac_ext <<_ACEOF
26118 /* confdefs.h.  */
26119 _ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h.  */
26123
26124 /* Override any GCC internal prototype to avoid an error.
26125    Use char because int might match the return type of a GCC
26126    builtin and then its argument prototype would still apply.  */
26127 #ifdef __cplusplus
26128 extern "C"
26129 #endif
26130 char smf_enable_instance ();
26131 int
26132 main ()
26133 {
26134 return smf_enable_instance ();
26135   ;
26136   return 0;
26137 }
26138 _ACEOF
26139 rm -f conftest.$ac_objext conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143   *) ac_try_echo=$ac_try;;
26144 esac
26145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26146 $as_echo "$ac_try_echo") >&5
26147   (eval "$ac_link") 2>conftest.er1
26148   ac_status=$?
26149   grep -v '^ *+' conftest.er1 >conftest.err
26150   rm -f conftest.er1
26151   cat conftest.err >&5
26152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153   (exit $ac_status); } && {
26154          test -z "$ac_c_werror_flag" ||
26155          test ! -s conftest.err
26156        } && test -s conftest$ac_exeext && {
26157          test "$cross_compiling" = yes ||
26158          $as_test_x conftest$ac_exeext
26159        }; then
26160   ac_cv_lib_scf_smf_enable_instance=yes
26161 else
26162   $as_echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26164
26165         ac_cv_lib_scf_smf_enable_instance=no
26166 fi
26167
26168 rm -rf conftest.dSYM
26169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26170       conftest$ac_exeext conftest.$ac_ext
26171 LIBS=$ac_check_lib_save_LIBS
26172 fi
26173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_scf_smf_enable_instance" >&5
26174 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
26175 if test $ac_cv_lib_scf_smf_enable_instance = yes; then
26176   cat >>confdefs.h <<_ACEOF
26177 #define HAVE_LIBSCF 1
26178 _ACEOF
26179
26180   LIBS="-lscf $LIBS"
26181
26182 fi
26183
26184
26185 #
26186 # flockfile is usually provided by pthreads, but we may want to use it
26187 # even if compiled with --disable-threads.  getc_unlocked might also not
26188 # be defined.
26189 #
26190 { $as_echo "$as_me:$LINENO: checking for flockfile" >&5
26191 $as_echo_n "checking for flockfile... " >&6; }
26192 if test "${ac_cv_func_flockfile+set}" = set; then
26193   $as_echo_n "(cached) " >&6
26194 else
26195   cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile.
26202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26203 #define flockfile innocuous_flockfile
26204
26205 /* System header to define __stub macros and hopefully few prototypes,
26206     which can conflict with char flockfile (); below.
26207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26208     <limits.h> exists even on freestanding compilers.  */
26209
26210 #ifdef __STDC__
26211 # include <limits.h>
26212 #else
26213 # include <assert.h>
26214 #endif
26215
26216 #undef flockfile
26217
26218 /* Override any GCC internal prototype to avoid an error.
26219    Use char because int might match the return type of a GCC
26220    builtin and then its argument prototype would still apply.  */
26221 #ifdef __cplusplus
26222 extern "C"
26223 #endif
26224 char flockfile ();
26225 /* The GNU C library defines this for functions which it implements
26226     to always fail with ENOSYS.  Some functions are actually named
26227     something starting with __ and the normal name is an alias.  */
26228 #if defined __stub_flockfile || defined __stub___flockfile
26229 choke me
26230 #endif
26231
26232 int
26233 main ()
26234 {
26235 return flockfile ();
26236   ;
26237   return 0;
26238 }
26239 _ACEOF
26240 rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (ac_try="$ac_link"
26242 case "(($ac_try" in
26243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244   *) ac_try_echo=$ac_try;;
26245 esac
26246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26247 $as_echo "$ac_try_echo") >&5
26248   (eval "$ac_link") 2>conftest.er1
26249   ac_status=$?
26250   grep -v '^ *+' conftest.er1 >conftest.err
26251   rm -f conftest.er1
26252   cat conftest.err >&5
26253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } && {
26255          test -z "$ac_c_werror_flag" ||
26256          test ! -s conftest.err
26257        } && test -s conftest$ac_exeext && {
26258          test "$cross_compiling" = yes ||
26259          $as_test_x conftest$ac_exeext
26260        }; then
26261   ac_cv_func_flockfile=yes
26262 else
26263   $as_echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26265
26266         ac_cv_func_flockfile=no
26267 fi
26268
26269 rm -rf conftest.dSYM
26270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26271       conftest$ac_exeext conftest.$ac_ext
26272 fi
26273 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5
26274 $as_echo "$ac_cv_func_flockfile" >&6; }
26275 if test $ac_cv_func_flockfile = yes; then
26276   cat >>confdefs.h <<\_ACEOF
26277 #define HAVE_FLOCKFILE 1
26278 _ACEOF
26279
26280 fi
26281
26282 { $as_echo "$as_me:$LINENO: checking for getc_unlocked" >&5
26283 $as_echo_n "checking for getc_unlocked... " >&6; }
26284 if test "${ac_cv_func_getc_unlocked+set}" = set; then
26285   $as_echo_n "(cached) " >&6
26286 else
26287   cat >conftest.$ac_ext <<_ACEOF
26288 /* confdefs.h.  */
26289 _ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h.  */
26293 /* Define getc_unlocked to an innocuous variant, in case <limits.h> declares getc_unlocked.
26294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26295 #define getc_unlocked innocuous_getc_unlocked
26296
26297 /* System header to define __stub macros and hopefully few prototypes,
26298     which can conflict with char getc_unlocked (); below.
26299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26300     <limits.h> exists even on freestanding compilers.  */
26301
26302 #ifdef __STDC__
26303 # include <limits.h>
26304 #else
26305 # include <assert.h>
26306 #endif
26307
26308 #undef getc_unlocked
26309
26310 /* Override any GCC internal prototype to avoid an error.
26311    Use char because int might match the return type of a GCC
26312    builtin and then its argument prototype would still apply.  */
26313 #ifdef __cplusplus
26314 extern "C"
26315 #endif
26316 char getc_unlocked ();
26317 /* The GNU C library defines this for functions which it implements
26318     to always fail with ENOSYS.  Some functions are actually named
26319     something starting with __ and the normal name is an alias.  */
26320 #if defined __stub_getc_unlocked || defined __stub___getc_unlocked
26321 choke me
26322 #endif
26323
26324 int
26325 main ()
26326 {
26327 return getc_unlocked ();
26328   ;
26329   return 0;
26330 }
26331 _ACEOF
26332 rm -f conftest.$ac_objext conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26336   *) ac_try_echo=$ac_try;;
26337 esac
26338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26339 $as_echo "$ac_try_echo") >&5
26340   (eval "$ac_link") 2>conftest.er1
26341   ac_status=$?
26342   grep -v '^ *+' conftest.er1 >conftest.err
26343   rm -f conftest.er1
26344   cat conftest.err >&5
26345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); } && {
26347          test -z "$ac_c_werror_flag" ||
26348          test ! -s conftest.err
26349        } && test -s conftest$ac_exeext && {
26350          test "$cross_compiling" = yes ||
26351          $as_test_x conftest$ac_exeext
26352        }; then
26353   ac_cv_func_getc_unlocked=yes
26354 else
26355   $as_echo "$as_me: failed program was:" >&5
26356 sed 's/^/| /' conftest.$ac_ext >&5
26357
26358         ac_cv_func_getc_unlocked=no
26359 fi
26360
26361 rm -rf conftest.dSYM
26362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26363       conftest$ac_exeext conftest.$ac_ext
26364 fi
26365 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getc_unlocked" >&5
26366 $as_echo "$ac_cv_func_getc_unlocked" >&6; }
26367 if test $ac_cv_func_getc_unlocked = yes; then
26368   cat >>confdefs.h <<\_ACEOF
26369 #define HAVE_GETCUNLOCKED 1
26370 _ACEOF
26371
26372 fi
26373
26374
26375 #
26376 # Indicate what the final decision was regarding threads.
26377 #
26378 { $as_echo "$as_me:$LINENO: checking whether to build with threads" >&5
26379 $as_echo_n "checking whether to build with threads... " >&6; }
26380 if $use_threads; then
26381         { $as_echo "$as_me:$LINENO: result: yes" >&5
26382 $as_echo "yes" >&6; }
26383 else
26384         { $as_echo "$as_me:$LINENO: result: no" >&5
26385 $as_echo "no" >&6; }
26386 fi
26387
26388 #
26389 # End of pthreads stuff.
26390 #
26391
26392 #
26393 # Large File
26394 #
26395 # Check whether --enable-largefile was given.
26396 if test "${enable_largefile+set}" = set; then
26397   enableval=$enable_largefile; want_largefile="yes"
26398 else
26399   want_largefile="no"
26400 fi
26401
26402 case $want_largefile in
26403         yes)
26404                 ALWAYS_DEFINES="$ALWAYS_DEFINES -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
26405                 ;;
26406         *)
26407                 ;;
26408 esac
26409
26410 #
26411 # Additional compiler settings.
26412 #
26413 MKDEPCC="$CC"
26414 MKDEPCFLAGS="-M"
26415 IRIX_DNSSEC_WARNINGS_HACK=""
26416
26417 if test "X$GCC" = "Xyes"; then
26418         { $as_echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5
26419 $as_echo_n "checking if \"$CC\" supports -fno-strict-aliasing... " >&6; }
26420         SAVE_CFLAGS=$CFLAGS
26421         CFLAGS="$CFLAGS -fno-strict-aliasing"
26422         cat >conftest.$ac_ext <<_ACEOF
26423 /* confdefs.h.  */
26424 _ACEOF
26425 cat confdefs.h >>conftest.$ac_ext
26426 cat >>conftest.$ac_ext <<_ACEOF
26427 /* end confdefs.h.  */
26428
26429 int
26430 main ()
26431 {
26432
26433   ;
26434   return 0;
26435 }
26436 _ACEOF
26437 rm -f conftest.$ac_objext
26438 if { (ac_try="$ac_compile"
26439 case "(($ac_try" in
26440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26441   *) ac_try_echo=$ac_try;;
26442 esac
26443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26444 $as_echo "$ac_try_echo") >&5
26445   (eval "$ac_compile") 2>conftest.er1
26446   ac_status=$?
26447   grep -v '^ *+' conftest.er1 >conftest.err
26448   rm -f conftest.er1
26449   cat conftest.err >&5
26450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451   (exit $ac_status); } && {
26452          test -z "$ac_c_werror_flag" ||
26453          test ! -s conftest.err
26454        } && test -s conftest.$ac_objext; then
26455   FNOSTRICTALIASING=yes
26456 else
26457   $as_echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26459
26460         FNOSTRICTALIASING=no
26461 fi
26462
26463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26464         CFLAGS=$SAVE_CFLAGS
26465         if test "$FNOSTRICTALIASING" = "yes"; then
26466                 { $as_echo "$as_me:$LINENO: result: yes" >&5
26467 $as_echo "yes" >&6; }
26468         STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing"
26469         else
26470                 { $as_echo "$as_me:$LINENO: result: no" >&5
26471 $as_echo "no" >&6; }
26472         STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith"
26473         fi
26474         case "$host" in
26475         *-hp-hpux*)
26476                 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
26477                 ;;
26478         esac
26479 else
26480         case $host in
26481         *-dec-osf*)
26482                 CC="$CC -std"
26483                 CCOPT="$CCOPT -std"
26484                 MKDEPCC="$CC"
26485                 ;;
26486         *-hp-hpux*)
26487                 CC="$CC -Ae -z"
26488                 # The version of the C compiler that constantly warns about
26489                 # 'const' as well as alignment issues is unfortunately not
26490                 # able to be discerned via the version of the operating
26491                 # system, nor does cc have a version flag.
26492                 case "`$CC +W 123 2>&1`" in
26493                 *Unknown?option*)
26494                         STD_CWARNINGS="+w1"
26495                         ;;
26496                 *)
26497                         # Turn off the pointlessly noisy warnings.
26498                         STD_CWARNINGS="+w1 +W 474,530,2193,2236"
26499                         ;;
26500                 esac
26501                 CCOPT="$CCOPT -Ae -z"
26502                 LDFLAGS="-Wl,+vnocompatwarnings $LDFLAGS"
26503                 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
26504                 ;;
26505         *-sgi-irix*)
26506                 STD_CWARNINGS="-fullwarn -woff 1209"
26507                 #
26508                 # Silence more than 250 instances of
26509                 #   "prototyped function redeclared without prototype"
26510                 # and 11 instances of
26511                 #   "variable ... was set but never used"
26512                 # from lib/dns/sec/openssl.
26513                 #
26514                 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552"
26515                 ;;
26516         *-solaris*)
26517                 MKDEPCFLAGS="-xM"
26518                 ;;
26519         *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
26520                 # UnixWare
26521                 CC="$CC -w"
26522                 ;;
26523         esac
26524 fi
26525
26526
26527
26528
26529
26530
26531 #
26532 # NLS
26533 #
26534 { $as_echo "$as_me:$LINENO: checking for catgets" >&5
26535 $as_echo_n "checking for catgets... " >&6; }
26536 if test "${ac_cv_func_catgets+set}" = set; then
26537   $as_echo_n "(cached) " >&6
26538 else
26539   cat >conftest.$ac_ext <<_ACEOF
26540 /* confdefs.h.  */
26541 _ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h.  */
26545 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
26546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26547 #define catgets innocuous_catgets
26548
26549 /* System header to define __stub macros and hopefully few prototypes,
26550     which can conflict with char catgets (); below.
26551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26552     <limits.h> exists even on freestanding compilers.  */
26553
26554 #ifdef __STDC__
26555 # include <limits.h>
26556 #else
26557 # include <assert.h>
26558 #endif
26559
26560 #undef catgets
26561
26562 /* Override any GCC internal prototype to avoid an error.
26563    Use char because int might match the return type of a GCC
26564    builtin and then its argument prototype would still apply.  */
26565 #ifdef __cplusplus
26566 extern "C"
26567 #endif
26568 char catgets ();
26569 /* The GNU C library defines this for functions which it implements
26570     to always fail with ENOSYS.  Some functions are actually named
26571     something starting with __ and the normal name is an alias.  */
26572 #if defined __stub_catgets || defined __stub___catgets
26573 choke me
26574 #endif
26575
26576 int
26577 main ()
26578 {
26579 return catgets ();
26580   ;
26581   return 0;
26582 }
26583 _ACEOF
26584 rm -f conftest.$ac_objext conftest$ac_exeext
26585 if { (ac_try="$ac_link"
26586 case "(($ac_try" in
26587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588   *) ac_try_echo=$ac_try;;
26589 esac
26590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26591 $as_echo "$ac_try_echo") >&5
26592   (eval "$ac_link") 2>conftest.er1
26593   ac_status=$?
26594   grep -v '^ *+' conftest.er1 >conftest.err
26595   rm -f conftest.er1
26596   cat conftest.err >&5
26597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } && {
26599          test -z "$ac_c_werror_flag" ||
26600          test ! -s conftest.err
26601        } && test -s conftest$ac_exeext && {
26602          test "$cross_compiling" = yes ||
26603          $as_test_x conftest$ac_exeext
26604        }; then
26605   ac_cv_func_catgets=yes
26606 else
26607   $as_echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.$ac_ext >&5
26609
26610         ac_cv_func_catgets=no
26611 fi
26612
26613 rm -rf conftest.dSYM
26614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26615       conftest$ac_exeext conftest.$ac_ext
26616 fi
26617 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
26618 $as_echo "$ac_cv_func_catgets" >&6; }
26619 if test $ac_cv_func_catgets = yes; then
26620   cat >>confdefs.h <<\_ACEOF
26621 #define HAVE_CATGETS 1
26622 _ACEOF
26623
26624 fi
26625
26626
26627 #
26628 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
26629 #
26630 # AC_CHECK_LIB(xnet, socket, ,
26631 #    AC_CHECK_LIB(socket, socket)
26632 # )
26633 #
26634 # Use this for now, instead:
26635 #
26636 case "$host" in
26637         mips-sgi-irix*)
26638                 ;;
26639         *-linux*)
26640                 ;;
26641         *)
26642
26643 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26644 $as_echo_n "checking for socket in -lsocket... " >&6; }
26645 if test "${ac_cv_lib_socket_socket+set}" = set; then
26646   $as_echo_n "(cached) " >&6
26647 else
26648   ac_check_lib_save_LIBS=$LIBS
26649 LIBS="-lsocket  $LIBS"
26650 cat >conftest.$ac_ext <<_ACEOF
26651 /* confdefs.h.  */
26652 _ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h.  */
26656
26657 /* Override any GCC internal prototype to avoid an error.
26658    Use char because int might match the return type of a GCC
26659    builtin and then its argument prototype would still apply.  */
26660 #ifdef __cplusplus
26661 extern "C"
26662 #endif
26663 char socket ();
26664 int
26665 main ()
26666 {
26667 return socket ();
26668   ;
26669   return 0;
26670 }
26671 _ACEOF
26672 rm -f conftest.$ac_objext conftest$ac_exeext
26673 if { (ac_try="$ac_link"
26674 case "(($ac_try" in
26675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676   *) ac_try_echo=$ac_try;;
26677 esac
26678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26679 $as_echo "$ac_try_echo") >&5
26680   (eval "$ac_link") 2>conftest.er1
26681   ac_status=$?
26682   grep -v '^ *+' conftest.er1 >conftest.err
26683   rm -f conftest.er1
26684   cat conftest.err >&5
26685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686   (exit $ac_status); } && {
26687          test -z "$ac_c_werror_flag" ||
26688          test ! -s conftest.err
26689        } && test -s conftest$ac_exeext && {
26690          test "$cross_compiling" = yes ||
26691          $as_test_x conftest$ac_exeext
26692        }; then
26693   ac_cv_lib_socket_socket=yes
26694 else
26695   $as_echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698         ac_cv_lib_socket_socket=no
26699 fi
26700
26701 rm -rf conftest.dSYM
26702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26703       conftest$ac_exeext conftest.$ac_ext
26704 LIBS=$ac_check_lib_save_LIBS
26705 fi
26706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26707 $as_echo "$ac_cv_lib_socket_socket" >&6; }
26708 if test $ac_cv_lib_socket_socket = yes; then
26709   cat >>confdefs.h <<_ACEOF
26710 #define HAVE_LIBSOCKET 1
26711 _ACEOF
26712
26713   LIBS="-lsocket $LIBS"
26714
26715 fi
26716
26717
26718 { $as_echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
26719 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
26720 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
26721   $as_echo_n "(cached) " >&6
26722 else
26723   ac_check_lib_save_LIBS=$LIBS
26724 LIBS="-lnsl  $LIBS"
26725 cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731
26732 /* Override any GCC internal prototype to avoid an error.
26733    Use char because int might match the return type of a GCC
26734    builtin and then its argument prototype would still apply.  */
26735 #ifdef __cplusplus
26736 extern "C"
26737 #endif
26738 char inet_addr ();
26739 int
26740 main ()
26741 {
26742 return inet_addr ();
26743   ;
26744   return 0;
26745 }
26746 _ACEOF
26747 rm -f conftest.$ac_objext conftest$ac_exeext
26748 if { (ac_try="$ac_link"
26749 case "(($ac_try" in
26750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26751   *) ac_try_echo=$ac_try;;
26752 esac
26753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26754 $as_echo "$ac_try_echo") >&5
26755   (eval "$ac_link") 2>conftest.er1
26756   ac_status=$?
26757   grep -v '^ *+' conftest.er1 >conftest.err
26758   rm -f conftest.er1
26759   cat conftest.err >&5
26760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); } && {
26762          test -z "$ac_c_werror_flag" ||
26763          test ! -s conftest.err
26764        } && test -s conftest$ac_exeext && {
26765          test "$cross_compiling" = yes ||
26766          $as_test_x conftest$ac_exeext
26767        }; then
26768   ac_cv_lib_nsl_inet_addr=yes
26769 else
26770   $as_echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773         ac_cv_lib_nsl_inet_addr=no
26774 fi
26775
26776 rm -rf conftest.dSYM
26777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26778       conftest$ac_exeext conftest.$ac_ext
26779 LIBS=$ac_check_lib_save_LIBS
26780 fi
26781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
26782 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
26783 if test $ac_cv_lib_nsl_inet_addr = yes; then
26784   cat >>confdefs.h <<_ACEOF
26785 #define HAVE_LIBNSL 1
26786 _ACEOF
26787
26788   LIBS="-lnsl $LIBS"
26789
26790 fi
26791
26792                 ;;
26793 esac
26794
26795 #
26796 # Work around Solaris's select() limitations.
26797 #
26798 case "$host" in
26799         *-solaris2.[89]|*-solaris2.1?)
26800
26801 cat >>confdefs.h <<\_ACEOF
26802 #define FD_SETSIZE 65536
26803 _ACEOF
26804
26805         ;;
26806 esac
26807
26808 #
26809 # Purify support
26810 #
26811 { $as_echo "$as_me:$LINENO: checking whether to use purify" >&5
26812 $as_echo_n "checking whether to use purify... " >&6; }
26813
26814 # Check whether --with-purify was given.
26815 if test "${with_purify+set}" = set; then
26816   withval=$with_purify; use_purify="$withval"
26817 else
26818   use_purify="no"
26819 fi
26820
26821
26822 case "$use_purify" in
26823         no)
26824                 ;;
26825         yes)
26826                 # Extract the first word of "purify", so it can be a program name with args.
26827 set dummy purify; ac_word=$2
26828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26829 $as_echo_n "checking for $ac_word... " >&6; }
26830 if test "${ac_cv_path_purify_path+set}" = set; then
26831   $as_echo_n "(cached) " >&6
26832 else
26833   case $purify_path in
26834   [\\/]* | ?:[\\/]*)
26835   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
26836   ;;
26837   *)
26838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26839 for as_dir in $PATH
26840 do
26841   IFS=$as_save_IFS
26842   test -z "$as_dir" && as_dir=.
26843   for ac_exec_ext in '' $ac_executable_extensions; do
26844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26845     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
26846     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26847     break 2
26848   fi
26849 done
26850 done
26851 IFS=$as_save_IFS
26852
26853   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
26854   ;;
26855 esac
26856 fi
26857 purify_path=$ac_cv_path_purify_path
26858 if test -n "$purify_path"; then
26859   { $as_echo "$as_me:$LINENO: result: $purify_path" >&5
26860 $as_echo "$purify_path" >&6; }
26861 else
26862   { $as_echo "$as_me:$LINENO: result: no" >&5
26863 $as_echo "no" >&6; }
26864 fi
26865
26866
26867                 ;;
26868         *)
26869                 purify_path="$use_purify"
26870                 ;;
26871 esac
26872
26873 case "$use_purify" in
26874         no)
26875                 { $as_echo "$as_me:$LINENO: result: no" >&5
26876 $as_echo "no" >&6; }
26877                 PURIFY=""
26878                 ;;
26879         *)
26880                 if test -f $purify_path || test $purify_path = purify; then
26881                         { $as_echo "$as_me:$LINENO: result: $purify_path" >&5
26882 $as_echo "$purify_path" >&6; }
26883                         PURIFYFLAGS="`echo $PURIFYOPTIONS`"
26884                         PURIFY="$purify_path $PURIFYFLAGS"
26885                 else
26886                         { { $as_echo "$as_me:$LINENO: error: $purify_path not found.
26887
26888 Please choose the proper path with the following command:
26889
26890     configure --with-purify=PATH
26891 " >&5
26892 $as_echo "$as_me: error: $purify_path not found.
26893
26894 Please choose the proper path with the following command:
26895
26896     configure --with-purify=PATH
26897 " >&2;}
26898    { (exit 1); exit 1; }; }
26899                 fi
26900                 ;;
26901 esac
26902
26903
26904
26905
26906
26907 # Check whether --with-libtool was given.
26908 if test "${with_libtool+set}" = set; then
26909   withval=$with_libtool; use_libtool="$withval"
26910 else
26911   use_libtool="no"
26912 fi
26913
26914
26915 case $use_libtool in
26916         yes)
26917
26918                 O=lo
26919                 A=la
26920                 LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
26921                 LIBTOOL_MODE_COMPILE='--mode=compile'
26922                 LIBTOOL_MODE_INSTALL='--mode=install'
26923                 LIBTOOL_MODE_LINK='--mode=link'
26924                 case "$host" in
26925                 *) LIBTOOL_ALLOW_UNDEFINED= ;;
26926                 esac
26927                 case "$host" in
26928                 *-ibm-aix*) LIBTOOL_IN_MAIN="-Wl,-bI:T_testlist.imp" ;;
26929                 *) LIBTOOL_IN_MAIN= ;;
26930                 esac;
26931                 ;;
26932         *)
26933                 O=o
26934                 A=a
26935                 LIBTOOL=
26936
26937                 LIBTOOL_MKDEP_SED=
26938                 LIBTOOL_MODE_COMPILE=
26939                 LIBTOOL_MODE_INSTALL=
26940                 LIBTOOL_MODE_LINK=
26941                 LIBTOOL_ALLOW_UNDEFINED=
26942                 LIBTOOL_IN_MAIN=
26943                 ;;
26944 esac
26945
26946 #
26947 # enable/disable dumping stack backtrace.  Also check if the system supports
26948 # glibc-compatible backtrace() function.
26949 #
26950 # Check whether --enable-backtrace was given.
26951 if test "${enable_backtrace+set}" = set; then
26952   enableval=$enable_backtrace; want_backtrace="$enableval"
26953 else
26954   want_backtrace="yes"
26955 fi
26956
26957 case $want_backtrace in
26958 yes)
26959         ISC_PLATFORM_USEBACKTRACE="#define ISC_PLATFORM_USEBACKTRACE 1"
26960         cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h.  */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h.  */
26966 #include <execinfo.h>
26967 int
26968 main ()
26969 {
26970 return (backtrace((void **)0, 0));
26971   ;
26972   return 0;
26973 }
26974 _ACEOF
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26982 $as_echo "$ac_try_echo") >&5
26983   (eval "$ac_link") 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } && {
26990          test -z "$ac_c_werror_flag" ||
26991          test ! -s conftest.err
26992        } && test -s conftest$ac_exeext && {
26993          test "$cross_compiling" = yes ||
26994          $as_test_x conftest$ac_exeext
26995        }; then
26996
26997 cat >>confdefs.h <<\_ACEOF
26998 #define HAVE_LIBCTRACE /**/
26999 _ACEOF
27000
27001 else
27002   $as_echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27004
27005
27006 fi
27007
27008 rm -rf conftest.dSYM
27009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27010       conftest$ac_exeext conftest.$ac_ext
27011         ;;
27012 *)
27013         ISC_PLATFORM_USEBACKTRACE="#undef ISC_PLATFORM_USEBACKTRACE"
27014         ;;
27015 esac
27016
27017
27018 # Check whether --enable-symtable was given.
27019 if test "${enable_symtable+set}" = set; then
27020   enableval=$enable_symtable; want_symtable="$enableval"
27021 else
27022   want_symtable="minimal"
27023 fi
27024
27025 case $want_symtable in
27026 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
27027         if test "$PERL" = ""
27028         then
27029                 { { $as_echo "$as_me:$LINENO: error: Internal symbol table requires perl but no perl is found.
27030 Install perl or explicitly disable the feature by --disable-symtable." >&5
27031 $as_echo "$as_me: error: Internal symbol table requires perl but no perl is found.
27032 Install perl or explicitly disable the feature by --disable-symtable." >&2;}
27033    { (exit 1); exit 1; }; }
27034         fi
27035         if test "$use_libtool" = "yes"; then
27036                 { $as_echo "$as_me:$LINENO: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
27037 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
27038         else
27039                 # we generate the internal symbol table only for those systems
27040                 # known to work to avoid unexpected build failure.  Also, warn
27041                 # about unsupported systems when the feature is enabled
27042                 #  manually.
27043                 case $host_os in
27044                 freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
27045                         MKSYMTBL_PROGRAM="$PERL"
27046                         if test $want_symtable = all; then
27047                                 ALWAYS_MAKE_SYMTABLE="yes"
27048                         fi
27049                         ;;
27050                 *)
27051                         if test $want_symtable = yes -o $want_symtable = all
27052                         then
27053                                 { $as_echo "$as_me:$LINENO: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
27054 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
27055                         fi
27056                 esac
27057         fi
27058         ;;
27059 *)
27060         ;;
27061 esac
27062
27063
27064
27065 #
27066 # File name extension for static archive files, for those few places
27067 # where they are treated differently from dynamic ones.
27068 #
27069 SA=a
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081 #
27082 # build exportable DNS library?
27083 #
27084 # Check whether --enable-exportlib was given.
27085 if test "${enable_exportlib+set}" = set; then
27086   enableval=$enable_exportlib;
27087 fi
27088
27089 case "$enable_exportlib" in
27090         yes)
27091                 gmake=
27092                 for x in gmake gnumake make; do
27093                         if $x --version 2>/dev/null | grep GNU > /dev/null; then
27094                                 gmake=$x
27095                                 break;
27096                         fi
27097                 done
27098                 if test -z "$gmake"; then
27099                         { { $as_echo "$as_me:$LINENO: error: exportlib requires GNU make.  Install it or disable the feature." >&5
27100 $as_echo "$as_me: error: exportlib requires GNU make.  Install it or disable the feature." >&2;}
27101    { (exit 1); exit 1; }; }
27102                 fi
27103                 LIBEXPORT=lib/export
27104
27105                 BIND9_CO_RULE="%.$O:  \${srcdir}/%.c"
27106                 ;;
27107         no|*)
27108                 BIND9_CO_RULE=".c.$O:"
27109                 ;;
27110 esac
27111
27112
27113
27114 # Check whether --with-export-libdir was given.
27115 if test "${with_export_libdir+set}" = set; then
27116   withval=$with_export_libdir; export_libdir="$withval"
27117 fi
27118
27119 if test -z "$export_libdir"; then
27120         export_libdir="\${exec_prefix}/lib/bind9/"
27121 fi
27122
27123
27124
27125 # Check whether --with-export-includedir was given.
27126 if test "${with_export_includedir+set}" = set; then
27127   withval=$with_export_includedir; export_includedir="$withval"
27128 fi
27129
27130 if test -z "$export_includedir"; then
27131         export_includedir="\${prefix}/include/bind9/"
27132 fi
27133
27134
27135 #
27136 # Here begins a very long section to determine the system's networking
27137 # capabilities.  The order of the tests is significant.
27138 #
27139
27140 #
27141 # IPv6
27142 #
27143 # Check whether --enable-ipv6 was given.
27144 if test "${enable_ipv6+set}" = set; then
27145   enableval=$enable_ipv6;
27146 fi
27147
27148
27149 case "$enable_ipv6" in
27150         yes|''|autodetect)
27151                 cat >>confdefs.h <<\_ACEOF
27152 #define WANT_IPV6 1
27153 _ACEOF
27154
27155                 ;;
27156         no)
27157                 ;;
27158 esac
27159
27160 #
27161 # We do the IPv6 compilation checking after libtool so that we can put
27162 # the right suffix on the files.
27163 #
27164 { $as_echo "$as_me:$LINENO: checking for IPv6 structures" >&5
27165 $as_echo_n "checking for IPv6 structures... " >&6; }
27166 cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h.  */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h.  */
27172
27173 #include <sys/types.h>
27174 #include <sys/socket.h>
27175 #include <netinet/in.h>
27176 int
27177 main ()
27178 {
27179 struct sockaddr_in6 sin6; return (0);
27180   ;
27181   return 0;
27182 }
27183 _ACEOF
27184 rm -f conftest.$ac_objext
27185 if { (ac_try="$ac_compile"
27186 case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27191 $as_echo "$ac_try_echo") >&5
27192   (eval "$ac_compile") 2>conftest.er1
27193   ac_status=$?
27194   grep -v '^ *+' conftest.er1 >conftest.err
27195   rm -f conftest.er1
27196   cat conftest.err >&5
27197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); } && {
27199          test -z "$ac_c_werror_flag" ||
27200          test ! -s conftest.err
27201        } && test -s conftest.$ac_objext; then
27202   { $as_echo "$as_me:$LINENO: result: yes" >&5
27203 $as_echo "yes" >&6; }
27204          found_ipv6=yes
27205 else
27206   $as_echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209         { $as_echo "$as_me:$LINENO: result: no" >&5
27210 $as_echo "no" >&6; }
27211          found_ipv6=no
27212 fi
27213
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215
27216 #
27217 # See whether IPv6 support is provided via a Kame add-on.
27218 # This is done before other IPv6 linking tests to LIBS is properly set.
27219 #
27220 { $as_echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5
27221 $as_echo_n "checking for Kame IPv6 support... " >&6; }
27222
27223 # Check whether --with-kame was given.
27224 if test "${with_kame+set}" = set; then
27225   withval=$with_kame; use_kame="$withval"
27226 else
27227   use_kame="no"
27228 fi
27229
27230
27231 case "$use_kame" in
27232         no)
27233                 ;;
27234         yes)
27235                 kame_path=/usr/local/v6
27236                 ;;
27237         *)
27238                 kame_path="$use_kame"
27239                 ;;
27240 esac
27241
27242 case "$use_kame" in
27243         no)
27244                 { $as_echo "$as_me:$LINENO: result: no" >&5
27245 $as_echo "no" >&6; }
27246                 ;;
27247         *)
27248                 if test -f $kame_path/lib/libinet6.a; then
27249                         { $as_echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5
27250 $as_echo "$kame_path/lib/libinet6.a" >&6; }
27251                         LIBS="-L$kame_path/lib -linet6 $LIBS"
27252                 else
27253                         { { $as_echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found.
27254
27255 Please choose the proper path with the following command:
27256
27257     configure --with-kame=PATH
27258 " >&5
27259 $as_echo "$as_me: error: $kame_path/lib/libinet6.a not found.
27260
27261 Please choose the proper path with the following command:
27262
27263     configure --with-kame=PATH
27264 " >&2;}
27265    { (exit 1); exit 1; }; }
27266                 fi
27267                 ;;
27268 esac
27269
27270 #
27271 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
27272 # Including it on Kame-using platforms is very bad, though, because
27273 # Kame uses #error against direct inclusion.   So include it on only
27274 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
27275 # This is done before the in6_pktinfo check because that's what
27276 # netinet6/in6.h is needed for.
27277 #
27278
27279 case "$host" in
27280 *-bsdi4.[01]*)
27281         ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1"
27282         LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1"
27283         isc_netinet6in6_hack="#include <netinet6/in6.h>"
27284         ;;
27285 *)
27286         ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H"
27287         LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H"
27288         isc_netinet6in6_hack=""
27289         ;;
27290 esac
27291
27292
27293 #
27294 # This is similar to the netinet6/in6.h issue.
27295 #
27296 case "$host" in
27297 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
27298         # UnixWare
27299         ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1"
27300         LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1"
27301         ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1"
27302         isc_netinetin6_hack="#include <netinet/in6.h>"
27303         ;;
27304 *)
27305         ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H"
27306         LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H"
27307         ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR"
27308         isc_netinetin6_hack=""
27309         ;;
27310 esac
27311
27312 #
27313 # Now delve deeper into the suitability of the IPv6 support.
27314 #
27315 case "$found_ipv6" in
27316         yes)
27317                 ISC_PLATFORM_HAVEIPV6="#define ISC_PLATFORM_HAVEIPV6 1"
27318                 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
27319
27320                 { $as_echo "$as_me:$LINENO: checking for in6_addr" >&5
27321 $as_echo_n "checking for in6_addr... " >&6; }
27322                 cat >conftest.$ac_ext <<_ACEOF
27323 /* confdefs.h.  */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h.  */
27328
27329 #include <sys/types.h>
27330 #include <sys/socket.h>
27331 #include <netinet/in.h>
27332 $isc_netinetin6_hack
27333 $isc_netinet6in6_hack
27334
27335 int
27336 main ()
27337 {
27338 struct in6_addr in6; return (0);
27339   ;
27340   return 0;
27341 }
27342 _ACEOF
27343 rm -f conftest.$ac_objext
27344 if { (ac_try="$ac_compile"
27345 case "(($ac_try" in
27346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347   *) ac_try_echo=$ac_try;;
27348 esac
27349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27350 $as_echo "$ac_try_echo") >&5
27351   (eval "$ac_compile") 2>conftest.er1
27352   ac_status=$?
27353   grep -v '^ *+' conftest.er1 >conftest.err
27354   rm -f conftest.er1
27355   cat conftest.err >&5
27356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); } && {
27358          test -z "$ac_c_werror_flag" ||
27359          test ! -s conftest.err
27360        } && test -s conftest.$ac_objext; then
27361   { $as_echo "$as_me:$LINENO: result: yes" >&5
27362 $as_echo "yes" >&6; }
27363                  ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
27364                  LWRES_PLATFORM_HAVEINADDR6="#undef LWRES_PLATFORM_HAVEINADDR6"
27365                  isc_in_addr6_hack=""
27366 else
27367   $as_echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27369
27370         { $as_echo "$as_me:$LINENO: result: no" >&5
27371 $as_echo "no" >&6; }
27372                  ISC_PLATFORM_HAVEINADDR6="#define ISC_PLATFORM_HAVEINADDR6 1"
27373                  LWRES_PLATFORM_HAVEINADDR6="#define LWRES_PLATFORM_HAVEINADDR6 1"
27374                  isc_in_addr6_hack="#define in6_addr in_addr6"
27375 fi
27376
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378
27379                 { $as_echo "$as_me:$LINENO: checking for in6addr_any" >&5
27380 $as_echo_n "checking for in6addr_any... " >&6; }
27381                 cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h.  */
27383 _ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h.  */
27387
27388 #include <sys/types.h>
27389 #include <sys/socket.h>
27390 #include <netinet/in.h>
27391 $isc_netinetin6_hack
27392 $isc_netinet6in6_hack
27393 $isc_in_addr6_hack
27394
27395 int
27396 main ()
27397 {
27398 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
27399   ;
27400   return 0;
27401 }
27402 _ACEOF
27403 rm -f conftest.$ac_objext conftest$ac_exeext
27404 if { (ac_try="$ac_link"
27405 case "(($ac_try" in
27406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407   *) ac_try_echo=$ac_try;;
27408 esac
27409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27410 $as_echo "$ac_try_echo") >&5
27411   (eval "$ac_link") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } && {
27418          test -z "$ac_c_werror_flag" ||
27419          test ! -s conftest.err
27420        } && test -s conftest$ac_exeext && {
27421          test "$cross_compiling" = yes ||
27422          $as_test_x conftest$ac_exeext
27423        }; then
27424   { $as_echo "$as_me:$LINENO: result: yes" >&5
27425 $as_echo "yes" >&6; }
27426                          ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
27427                          LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
27428 else
27429   $as_echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27431
27432         { $as_echo "$as_me:$LINENO: result: no" >&5
27433 $as_echo "no" >&6; }
27434                          ISC_PLATFORM_NEEDIN6ADDRANY="#define ISC_PLATFORM_NEEDIN6ADDRANY 1"
27435                          LWRES_PLATFORM_NEEDIN6ADDRANY="#define LWRES_PLATFORM_NEEDIN6ADDRANY 1"
27436 fi
27437
27438 rm -rf conftest.dSYM
27439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27440       conftest$ac_exeext conftest.$ac_ext
27441
27442                 { $as_echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
27443 $as_echo_n "checking for in6addr_loopback... " >&6; }
27444                 cat >conftest.$ac_ext <<_ACEOF
27445 /* confdefs.h.  */
27446 _ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h.  */
27450
27451 #include <sys/types.h>
27452 #include <sys/socket.h>
27453 #include <netinet/in.h>
27454 $isc_netinetin6_hack
27455 $isc_netinet6in6_hack
27456 $isc_in_addr6_hack
27457
27458 int
27459 main ()
27460 {
27461 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (ac_try="$ac_link"
27468 case "(($ac_try" in
27469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470   *) ac_try_echo=$ac_try;;
27471 esac
27472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27473 $as_echo "$ac_try_echo") >&5
27474   (eval "$ac_link") 2>conftest.er1
27475   ac_status=$?
27476   grep -v '^ *+' conftest.er1 >conftest.err
27477   rm -f conftest.er1
27478   cat conftest.err >&5
27479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); } && {
27481          test -z "$ac_c_werror_flag" ||
27482          test ! -s conftest.err
27483        } && test -s conftest$ac_exeext && {
27484          test "$cross_compiling" = yes ||
27485          $as_test_x conftest$ac_exeext
27486        }; then
27487   { $as_echo "$as_me:$LINENO: result: yes" >&5
27488 $as_echo "yes" >&6; }
27489                          ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
27490                          LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK"
27491 else
27492   $as_echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27494
27495         { $as_echo "$as_me:$LINENO: result: no" >&5
27496 $as_echo "no" >&6; }
27497                          ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#define ISC_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
27498                          LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK="#define LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK 1"
27499 fi
27500
27501 rm -rf conftest.dSYM
27502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27503       conftest$ac_exeext conftest.$ac_ext
27504
27505                 { $as_echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5
27506 $as_echo_n "checking for sin6_scope_id in struct sockaddr_in6... " >&6; }
27507                 cat >conftest.$ac_ext <<_ACEOF
27508 /* confdefs.h.  */
27509 _ACEOF
27510 cat confdefs.h >>conftest.$ac_ext
27511 cat >>conftest.$ac_ext <<_ACEOF
27512 /* end confdefs.h.  */
27513
27514 #include <sys/types.h>
27515 #include <sys/socket.h>
27516 #include <netinet/in.h>
27517 $isc_netinetin6_hack
27518 $isc_netinet6in6_hack
27519
27520 int
27521 main ()
27522 {
27523 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
27524   ;
27525   return 0;
27526 }
27527 _ACEOF
27528 rm -f conftest.$ac_objext
27529 if { (ac_try="$ac_compile"
27530 case "(($ac_try" in
27531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532   *) ac_try_echo=$ac_try;;
27533 esac
27534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27535 $as_echo "$ac_try_echo") >&5
27536   (eval "$ac_compile") 2>conftest.er1
27537   ac_status=$?
27538   grep -v '^ *+' conftest.er1 >conftest.err
27539   rm -f conftest.er1
27540   cat conftest.err >&5
27541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); } && {
27543          test -z "$ac_c_werror_flag" ||
27544          test ! -s conftest.err
27545        } && test -s conftest.$ac_objext; then
27546   { $as_echo "$as_me:$LINENO: result: yes" >&5
27547 $as_echo "yes" >&6; }
27548                          ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
27549                          result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
27550 else
27551   $as_echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27553
27554         { $as_echo "$as_me:$LINENO: result: no" >&5
27555 $as_echo "no" >&6; }
27556                          ISC_PLATFORM_HAVESCOPEID="#undef ISC_PLATFORM_HAVESCOPEID"
27557                          result="#undef LWRES_HAVE_SIN6_SCOPE_ID"
27558 fi
27559
27560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27561                 LWRES_HAVE_SIN6_SCOPE_ID="$result"
27562
27563                 { $as_echo "$as_me:$LINENO: checking for in6_pktinfo" >&5
27564 $as_echo_n "checking for in6_pktinfo... " >&6; }
27565                 cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571
27572 #include <sys/types.h>
27573 #include <sys/socket.h>
27574 #include <netinet/in.h>
27575 $isc_netinetin6_hack
27576 $isc_netinet6in6_hack
27577
27578 int
27579 main ()
27580 {
27581 struct in6_pktinfo xyzzy; return (0);
27582   ;
27583   return 0;
27584 }
27585 _ACEOF
27586 rm -f conftest.$ac_objext
27587 if { (ac_try="$ac_compile"
27588 case "(($ac_try" in
27589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590   *) ac_try_echo=$ac_try;;
27591 esac
27592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27593 $as_echo "$ac_try_echo") >&5
27594   (eval "$ac_compile") 2>conftest.er1
27595   ac_status=$?
27596   grep -v '^ *+' conftest.er1 >conftest.err
27597   rm -f conftest.er1
27598   cat conftest.err >&5
27599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); } && {
27601          test -z "$ac_c_werror_flag" ||
27602          test ! -s conftest.err
27603        } && test -s conftest.$ac_objext; then
27604   { $as_echo "$as_me:$LINENO: result: yes" >&5
27605 $as_echo "yes" >&6; }
27606                          ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
27607 else
27608   $as_echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27610
27611         { $as_echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5
27612 $as_echo "no -- disabling runtime ipv6 support" >&6; }
27613                          ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
27614 fi
27615
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27617                 ;;
27618         no)
27619                 ISC_PLATFORM_HAVEIPV6="#undef ISC_PLATFORM_HAVEIPV6"
27620                 LWRES_PLATFORM_HAVEIPV6="#undef LWRES_PLATFORM_HAVEIPV6"
27621                 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
27622                 LWRES_PLATFORM_NEEDIN6ADDRANY="#undef LWRES_PLATFORM_NEEDIN6ADDRANY"
27623                 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO"
27624                 LWRES_HAVE_SIN6_SCOPE_ID="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
27625                 ISC_PLATFORM_HAVESCOPEID="#define ISC_PLATFORM_HAVESCOPEID 1"
27626                 ISC_IPV6_H="ipv6.h"
27627                 ISC_IPV6_O="ipv6.$O"
27628                 ISC_ISCIPV6_O="unix/ipv6.$O"
27629                 ISC_IPV6_C="ipv6.c"
27630                 ;;
27631 esac
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654 { $as_echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5
27655 $as_echo_n "checking for struct if_laddrreq... " >&6; }
27656 cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662
27663 #include <sys/types.h>
27664 #include <net/if6.h>
27665
27666 int
27667 main ()
27668 {
27669  struct if_laddrreq a;
27670   ;
27671   return 0;
27672 }
27673 _ACEOF
27674 rm -f conftest.$ac_objext conftest$ac_exeext
27675 if { (ac_try="$ac_link"
27676 case "(($ac_try" in
27677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678   *) ac_try_echo=$ac_try;;
27679 esac
27680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27681 $as_echo "$ac_try_echo") >&5
27682   (eval "$ac_link") 2>conftest.er1
27683   ac_status=$?
27684   grep -v '^ *+' conftest.er1 >conftest.err
27685   rm -f conftest.er1
27686   cat conftest.err >&5
27687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); } && {
27689          test -z "$ac_c_werror_flag" ||
27690          test ! -s conftest.err
27691        } && test -s conftest$ac_exeext && {
27692          test "$cross_compiling" = yes ||
27693          $as_test_x conftest$ac_exeext
27694        }; then
27695   { $as_echo "$as_me:$LINENO: result: yes" >&5
27696 $as_echo "yes" >&6; }
27697         ISC_PLATFORM_HAVEIF_LADDRREQ="#define ISC_PLATFORM_HAVEIF_LADDRREQ 1"
27698 else
27699   $as_echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27701
27702         { $as_echo "$as_me:$LINENO: result: no" >&5
27703 $as_echo "no" >&6; }
27704         ISC_PLATFORM_HAVEIF_LADDRREQ="#undef ISC_PLATFORM_HAVEIF_LADDRREQ"
27705 fi
27706
27707 rm -rf conftest.dSYM
27708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27709       conftest$ac_exeext conftest.$ac_ext
27710
27711
27712 { $as_echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5
27713 $as_echo_n "checking for struct if_laddrconf... " >&6; }
27714 cat >conftest.$ac_ext <<_ACEOF
27715 /* confdefs.h.  */
27716 _ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h.  */
27720
27721 #include <sys/types.h>
27722 #include <net/if6.h>
27723
27724 int
27725 main ()
27726 {
27727  struct if_laddrconf a;
27728   ;
27729   return 0;
27730 }
27731 _ACEOF
27732 rm -f conftest.$ac_objext conftest$ac_exeext
27733 if { (ac_try="$ac_link"
27734 case "(($ac_try" in
27735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736   *) ac_try_echo=$ac_try;;
27737 esac
27738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27739 $as_echo "$ac_try_echo") >&5
27740   (eval "$ac_link") 2>conftest.er1
27741   ac_status=$?
27742   grep -v '^ *+' conftest.er1 >conftest.err
27743   rm -f conftest.er1
27744   cat conftest.err >&5
27745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); } && {
27747          test -z "$ac_c_werror_flag" ||
27748          test ! -s conftest.err
27749        } && test -s conftest$ac_exeext && {
27750          test "$cross_compiling" = yes ||
27751          $as_test_x conftest$ac_exeext
27752        }; then
27753   { $as_echo "$as_me:$LINENO: result: yes" >&5
27754 $as_echo "yes" >&6; }
27755         ISC_PLATFORM_HAVEIF_LADDRCONF="#define ISC_PLATFORM_HAVEIF_LADDRCONF 1"
27756 else
27757   $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760         { $as_echo "$as_me:$LINENO: result: no" >&5
27761 $as_echo "no" >&6; }
27762         ISC_PLATFORM_HAVEIF_LADDRCONF="#undef ISC_PLATFORM_HAVEIF_LADDRCONF"
27763 fi
27764
27765 rm -rf conftest.dSYM
27766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27767       conftest$ac_exeext conftest.$ac_ext
27768
27769
27770 #
27771 # Check for network functions that are often missing.  We do this
27772 # after the libtool checking, so we can put the right suffix on
27773 # the files.  It also needs to come after checking for a Kame add-on,
27774 # which provides some (all?) of the desired functions.
27775 #
27776
27777 { $as_echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&5
27778 $as_echo_n "checking for inet_ntop with IPv6 support... " >&6; }
27779 if test "$cross_compiling" = yes; then
27780   { $as_echo "$as_me:$LINENO: result: assuming inet_ntop needed" >&5
27781 $as_echo "assuming inet_ntop needed" >&6; }
27782         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
27783         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
27784         ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
27785 else
27786   cat >conftest.$ac_ext <<_ACEOF
27787 /* confdefs.h.  */
27788 _ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h.  */
27792
27793 #include <sys/types.h>
27794 #include <sys/socket.h>
27795 #include <netinet/in.h>
27796 #include <arpa/inet.h>
27797 main() {
27798 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
27799 _ACEOF
27800 rm -f conftest$ac_exeext
27801 if { (ac_try="$ac_link"
27802 case "(($ac_try" in
27803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804   *) ac_try_echo=$ac_try;;
27805 esac
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808   (eval "$ac_link") 2>&5
27809   ac_status=$?
27810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27812   { (case "(($ac_try" in
27813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814   *) ac_try_echo=$ac_try;;
27815 esac
27816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27817 $as_echo "$ac_try_echo") >&5
27818   (eval "$ac_try") 2>&5
27819   ac_status=$?
27820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); }; }; then
27822   { $as_echo "$as_me:$LINENO: result: yes" >&5
27823 $as_echo "yes" >&6; }
27824         ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
27825 else
27826   $as_echo "$as_me: program exited with status $ac_status" >&5
27827 $as_echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27829
27830 ( exit $ac_status )
27831 { $as_echo "$as_me:$LINENO: result: no" >&5
27832 $as_echo "no" >&6; }
27833         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
27834         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
27835         ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
27836 fi
27837 rm -rf conftest.dSYM
27838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27839 fi
27840
27841
27842
27843
27844 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
27845 # addresses with less than four octets, like "1.2.3".  Also leading
27846 # zeros should also be rejected.
27847
27848 { $as_echo "$as_me:$LINENO: checking for working inet_pton with IPv6 support" >&5
27849 $as_echo_n "checking for working inet_pton with IPv6 support... " >&6; }
27850 if test "$cross_compiling" = yes; then
27851   { $as_echo "$as_me:$LINENO: result: assuming target platform has working inet_pton" >&5
27852 $as_echo "assuming target platform has working inet_pton" >&6; }
27853         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
27854 else
27855   cat >conftest.$ac_ext <<_ACEOF
27856 /* confdefs.h.  */
27857 _ACEOF
27858 cat confdefs.h >>conftest.$ac_ext
27859 cat >>conftest.$ac_ext <<_ACEOF
27860 /* end confdefs.h.  */
27861
27862 #include <sys/types.h>
27863 #include <sys/socket.h>
27864 #include <netinet/in.h>
27865 #include <arpa/inet.h>
27866 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
27867                              inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
27868                              (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
27869 _ACEOF
27870 rm -f conftest$ac_exeext
27871 if { (ac_try="$ac_link"
27872 case "(($ac_try" in
27873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874   *) ac_try_echo=$ac_try;;
27875 esac
27876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27877 $as_echo "$ac_try_echo") >&5
27878   (eval "$ac_link") 2>&5
27879   ac_status=$?
27880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27882   { (case "(($ac_try" in
27883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884   *) ac_try_echo=$ac_try;;
27885 esac
27886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27887 $as_echo "$ac_try_echo") >&5
27888   (eval "$ac_try") 2>&5
27889   ac_status=$?
27890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891   (exit $ac_status); }; }; then
27892   { $as_echo "$as_me:$LINENO: result: yes" >&5
27893 $as_echo "yes" >&6; }
27894         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
27895 else
27896   $as_echo "$as_me: program exited with status $ac_status" >&5
27897 $as_echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27899
27900 ( exit $ac_status )
27901 { $as_echo "$as_me:$LINENO: result: no" >&5
27902 $as_echo "no" >&6; }
27903         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
27904         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
27905         ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
27906 fi
27907 rm -rf conftest.dSYM
27908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27909 fi
27910
27911
27912
27913
27914
27915
27916 #
27917 # Look for a 4.4BSD-style sa_len member in struct sockaddr.
27918 #
27919 case "$host" in
27920         *-dec-osf*)
27921                 # Turn on 4.4BSD style sa_len support.
27922                 cat >>confdefs.h <<\_ACEOF
27923 #define _SOCKADDR_LEN 1
27924 _ACEOF
27925
27926                 ;;
27927 esac
27928
27929 { $as_echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
27930 $as_echo_n "checking for sa_len in struct sockaddr... " >&6; }
27931 cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937
27938 #include <sys/types.h>
27939 #include <sys/socket.h>
27940 int
27941 main ()
27942 {
27943 struct sockaddr sa; sa.sa_len = 0; return (0);
27944   ;
27945   return 0;
27946 }
27947 _ACEOF
27948 rm -f conftest.$ac_objext
27949 if { (ac_try="$ac_compile"
27950 case "(($ac_try" in
27951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27952   *) ac_try_echo=$ac_try;;
27953 esac
27954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27955 $as_echo "$ac_try_echo") >&5
27956   (eval "$ac_compile") 2>conftest.er1
27957   ac_status=$?
27958   grep -v '^ *+' conftest.er1 >conftest.err
27959   rm -f conftest.er1
27960   cat conftest.err >&5
27961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } && {
27963          test -z "$ac_c_werror_flag" ||
27964          test ! -s conftest.err
27965        } && test -s conftest.$ac_objext; then
27966   { $as_echo "$as_me:$LINENO: result: yes" >&5
27967 $as_echo "yes" >&6; }
27968         ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
27969         LWRES_PLATFORM_HAVESALEN="#define LWRES_PLATFORM_HAVESALEN 1"
27970 else
27971   $as_echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27973
27974         { $as_echo "$as_me:$LINENO: result: no" >&5
27975 $as_echo "no" >&6; }
27976         ISC_PLATFORM_HAVESALEN="#undef ISC_PLATFORM_HAVESALEN"
27977         LWRES_PLATFORM_HAVESALEN="#undef LWRES_PLATFORM_HAVESALEN"
27978 fi
27979
27980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27981
27982
27983
27984 #
27985 # Look for a 4.4BSD or 4.3BSD struct msghdr
27986 #
27987 { $as_echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5
27988 $as_echo_n "checking for struct msghdr flavor... " >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995
27996 #include <sys/types.h>
27997 #include <sys/socket.h>
27998 int
27999 main ()
28000 {
28001 struct msghdr msg; msg.msg_flags = 0; return (0);
28002   ;
28003   return 0;
28004 }
28005 _ACEOF
28006 rm -f conftest.$ac_objext
28007 if { (ac_try="$ac_compile"
28008 case "(($ac_try" in
28009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010   *) ac_try_echo=$ac_try;;
28011 esac
28012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28013 $as_echo "$ac_try_echo") >&5
28014   (eval "$ac_compile") 2>conftest.er1
28015   ac_status=$?
28016   grep -v '^ *+' conftest.er1 >conftest.err
28017   rm -f conftest.er1
28018   cat conftest.err >&5
28019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); } && {
28021          test -z "$ac_c_werror_flag" ||
28022          test ! -s conftest.err
28023        } && test -s conftest.$ac_objext; then
28024   { $as_echo "$as_me:$LINENO: result: 4.4BSD" >&5
28025 $as_echo "4.4BSD" >&6; }
28026         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
28027 else
28028   $as_echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28030
28031         { $as_echo "$as_me:$LINENO: result: 4.3BSD" >&5
28032 $as_echo "4.3BSD" >&6; }
28033         ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1"
28034 fi
28035
28036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037
28038
28039 #
28040 # Look for in_port_t.
28041 #
28042 { $as_echo "$as_me:$LINENO: checking for type in_port_t" >&5
28043 $as_echo_n "checking for type in_port_t... " >&6; }
28044 cat >conftest.$ac_ext <<_ACEOF
28045 /* confdefs.h.  */
28046 _ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h.  */
28050
28051 #include <sys/types.h>
28052 #include <netinet/in.h>
28053 int
28054 main ()
28055 {
28056 in_port_t port = 25; return (0);
28057   ;
28058   return 0;
28059 }
28060 _ACEOF
28061 rm -f conftest.$ac_objext
28062 if { (ac_try="$ac_compile"
28063 case "(($ac_try" in
28064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065   *) ac_try_echo=$ac_try;;
28066 esac
28067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068 $as_echo "$ac_try_echo") >&5
28069   (eval "$ac_compile") 2>conftest.er1
28070   ac_status=$?
28071   grep -v '^ *+' conftest.er1 >conftest.err
28072   rm -f conftest.er1
28073   cat conftest.err >&5
28074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); } && {
28076          test -z "$ac_c_werror_flag" ||
28077          test ! -s conftest.err
28078        } && test -s conftest.$ac_objext; then
28079   { $as_echo "$as_me:$LINENO: result: yes" >&5
28080 $as_echo "yes" >&6; }
28081         ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
28082 else
28083   $as_echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28085
28086         { $as_echo "$as_me:$LINENO: result: no" >&5
28087 $as_echo "no" >&6; }
28088         ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1"
28089 fi
28090
28091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28092
28093
28094 #
28095 # Check for addrinfo
28096 #
28097 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
28098 $as_echo_n "checking for struct addrinfo... " >&6; }
28099 cat >conftest.$ac_ext <<_ACEOF
28100 /* confdefs.h.  */
28101 _ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h.  */
28105
28106 #include <netdb.h>
28107 int
28108 main ()
28109 {
28110 struct addrinfo a; return (0);
28111   ;
28112   return 0;
28113 }
28114 _ACEOF
28115 rm -f conftest.$ac_objext
28116 if { (ac_try="$ac_compile"
28117 case "(($ac_try" in
28118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119   *) ac_try_echo=$ac_try;;
28120 esac
28121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28122 $as_echo "$ac_try_echo") >&5
28123   (eval "$ac_compile") 2>conftest.er1
28124   ac_status=$?
28125   grep -v '^ *+' conftest.er1 >conftest.err
28126   rm -f conftest.er1
28127   cat conftest.err >&5
28128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); } && {
28130          test -z "$ac_c_werror_flag" ||
28131          test ! -s conftest.err
28132        } && test -s conftest.$ac_objext; then
28133   { $as_echo "$as_me:$LINENO: result: yes" >&5
28134 $as_echo "yes" >&6; }
28135         ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
28136         ISC_IRS_NEEDADDRINFO="#undef ISC_IRS_NEEDADDRINFO"
28137         cat >>confdefs.h <<\_ACEOF
28138 #define HAVE_ADDRINFO 1
28139 _ACEOF
28140
28141 else
28142   $as_echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145         { $as_echo "$as_me:$LINENO: result: no" >&5
28146 $as_echo "no" >&6; }
28147         ISC_LWRES_NEEDADDRINFO="#define ISC_LWRES_NEEDADDRINFO 1"
28148         ISC_IRS_NEEDADDRINFO="#define ISC_IRS_NEEDADDRINFO 1"
28149 fi
28150
28151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28152
28153
28154
28155 #
28156 # Check for rrsetinfo
28157 #
28158 { $as_echo "$as_me:$LINENO: checking for struct rrsetinfo" >&5
28159 $as_echo_n "checking for struct rrsetinfo... " >&6; }
28160 cat >conftest.$ac_ext <<_ACEOF
28161 /* confdefs.h.  */
28162 _ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h.  */
28166
28167 #include <netdb.h>
28168 int
28169 main ()
28170 {
28171 struct rrsetinfo r; return (0);
28172   ;
28173   return 0;
28174 }
28175 _ACEOF
28176 rm -f conftest.$ac_objext
28177 if { (ac_try="$ac_compile"
28178 case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28183 $as_echo "$ac_try_echo") >&5
28184   (eval "$ac_compile") 2>conftest.er1
28185   ac_status=$?
28186   grep -v '^ *+' conftest.er1 >conftest.err
28187   rm -f conftest.er1
28188   cat conftest.err >&5
28189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); } && {
28191          test -z "$ac_c_werror_flag" ||
28192          test ! -s conftest.err
28193        } && test -s conftest.$ac_objext; then
28194   { $as_echo "$as_me:$LINENO: result: yes" >&5
28195 $as_echo "yes" >&6; }
28196         ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
28197 else
28198   $as_echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28200
28201         { $as_echo "$as_me:$LINENO: result: no" >&5
28202 $as_echo "no" >&6; }
28203         ISC_LWRES_NEEDRRSETINFO="#define ISC_LWRES_NEEDRRSETINFO 1"
28204 fi
28205
28206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28207
28208
28209 { $as_echo "$as_me:$LINENO: checking for int sethostent" >&5
28210 $as_echo_n "checking for int sethostent... " >&6; }
28211 cat >conftest.$ac_ext <<_ACEOF
28212 /* confdefs.h.  */
28213 _ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h.  */
28217
28218 #include <netdb.h>
28219 int
28220 main ()
28221 {
28222 int i = sethostent(0); return(0);
28223   ;
28224   return 0;
28225 }
28226 _ACEOF
28227 rm -f conftest.$ac_objext
28228 if { (ac_try="$ac_compile"
28229 case "(($ac_try" in
28230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231   *) ac_try_echo=$ac_try;;
28232 esac
28233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28234 $as_echo "$ac_try_echo") >&5
28235   (eval "$ac_compile") 2>conftest.er1
28236   ac_status=$?
28237   grep -v '^ *+' conftest.er1 >conftest.err
28238   rm -f conftest.er1
28239   cat conftest.err >&5
28240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241   (exit $ac_status); } && {
28242          test -z "$ac_c_werror_flag" ||
28243          test ! -s conftest.err
28244        } && test -s conftest.$ac_objext; then
28245   { $as_echo "$as_me:$LINENO: result: yes" >&5
28246 $as_echo "yes" >&6; }
28247         ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
28248 else
28249   $as_echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252         { $as_echo "$as_me:$LINENO: result: no" >&5
28253 $as_echo "no" >&6; }
28254         ISC_LWRES_SETHOSTENTINT="#undef ISC_LWRES_SETHOSTENTINT"
28255 fi
28256
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28258
28259
28260 { $as_echo "$as_me:$LINENO: checking for int endhostent" >&5
28261 $as_echo_n "checking for int endhostent... " >&6; }
28262 cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268
28269 #include <netdb.h>
28270 int
28271 main ()
28272 {
28273 int i = endhostent(); return(0);
28274   ;
28275   return 0;
28276 }
28277 _ACEOF
28278 rm -f conftest.$ac_objext
28279 if { (ac_try="$ac_compile"
28280 case "(($ac_try" in
28281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282   *) ac_try_echo=$ac_try;;
28283 esac
28284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28285 $as_echo "$ac_try_echo") >&5
28286   (eval "$ac_compile") 2>conftest.er1
28287   ac_status=$?
28288   grep -v '^ *+' conftest.er1 >conftest.err
28289   rm -f conftest.er1
28290   cat conftest.err >&5
28291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292   (exit $ac_status); } && {
28293          test -z "$ac_c_werror_flag" ||
28294          test ! -s conftest.err
28295        } && test -s conftest.$ac_objext; then
28296   { $as_echo "$as_me:$LINENO: result: yes" >&5
28297 $as_echo "yes" >&6; }
28298         ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
28299 else
28300   $as_echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28302
28303         { $as_echo "$as_me:$LINENO: result: no" >&5
28304 $as_echo "no" >&6; }
28305         ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"
28306 fi
28307
28308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28309
28310
28311 { $as_echo "$as_me:$LINENO: checking for getnetbyaddr(in_addr_t, ...)" >&5
28312 $as_echo_n "checking for getnetbyaddr(in_addr_t, ...)... " >&6; }
28313 cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h.  */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h.  */
28319
28320 #include <netdb.h>
28321 struct netent *getnetbyaddr(in_addr_t, int);
28322 int
28323 main ()
28324 {
28325
28326   ;
28327   return 0;
28328 }
28329 _ACEOF
28330 rm -f conftest.$ac_objext
28331 if { (ac_try="$ac_compile"
28332 case "(($ac_try" in
28333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334   *) ac_try_echo=$ac_try;;
28335 esac
28336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28337 $as_echo "$ac_try_echo") >&5
28338   (eval "$ac_compile") 2>conftest.er1
28339   ac_status=$?
28340   grep -v '^ *+' conftest.er1 >conftest.err
28341   rm -f conftest.er1
28342   cat conftest.err >&5
28343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344   (exit $ac_status); } && {
28345          test -z "$ac_c_werror_flag" ||
28346          test ! -s conftest.err
28347        } && test -s conftest.$ac_objext; then
28348   { $as_echo "$as_me:$LINENO: result: yes" >&5
28349 $as_echo "yes" >&6; }
28350         ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
28351 else
28352   $as_echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28354
28355         { $as_echo "$as_me:$LINENO: result: no" >&5
28356 $as_echo "no" >&6; }
28357         ISC_LWRES_GETNETBYADDRINADDR="#undef ISC_LWRES_GETNETBYADDRINADDR"
28358 fi
28359
28360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28361
28362
28363 { $as_echo "$as_me:$LINENO: checking for int setnetent" >&5
28364 $as_echo_n "checking for int setnetent... " >&6; }
28365 cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371
28372 #include <netdb.h>
28373 int
28374 main ()
28375 {
28376 int i = setnetent(0); return(0);
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext
28382 if { (ac_try="$ac_compile"
28383 case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28388 $as_echo "$ac_try_echo") >&5
28389   (eval "$ac_compile") 2>conftest.er1
28390   ac_status=$?
28391   grep -v '^ *+' conftest.er1 >conftest.err
28392   rm -f conftest.er1
28393   cat conftest.err >&5
28394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395   (exit $ac_status); } && {
28396          test -z "$ac_c_werror_flag" ||
28397          test ! -s conftest.err
28398        } && test -s conftest.$ac_objext; then
28399   { $as_echo "$as_me:$LINENO: result: yes" >&5
28400 $as_echo "yes" >&6; }
28401         ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
28402 else
28403   $as_echo "$as_me: failed program was:" >&5
28404 sed 's/^/| /' conftest.$ac_ext >&5
28405
28406         { $as_echo "$as_me:$LINENO: result: no" >&5
28407 $as_echo "no" >&6; }
28408         ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT"
28409 fi
28410
28411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28412
28413
28414 { $as_echo "$as_me:$LINENO: checking for int endnetent" >&5
28415 $as_echo_n "checking for int endnetent... " >&6; }
28416 cat >conftest.$ac_ext <<_ACEOF
28417 /* confdefs.h.  */
28418 _ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h.  */
28422
28423 #include <netdb.h>
28424 int
28425 main ()
28426 {
28427 int i = endnetent(); return(0);
28428   ;
28429   return 0;
28430 }
28431 _ACEOF
28432 rm -f conftest.$ac_objext
28433 if { (ac_try="$ac_compile"
28434 case "(($ac_try" in
28435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436   *) ac_try_echo=$ac_try;;
28437 esac
28438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28439 $as_echo "$ac_try_echo") >&5
28440   (eval "$ac_compile") 2>conftest.er1
28441   ac_status=$?
28442   grep -v '^ *+' conftest.er1 >conftest.err
28443   rm -f conftest.er1
28444   cat conftest.err >&5
28445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); } && {
28447          test -z "$ac_c_werror_flag" ||
28448          test ! -s conftest.err
28449        } && test -s conftest.$ac_objext; then
28450   { $as_echo "$as_me:$LINENO: result: yes" >&5
28451 $as_echo "yes" >&6; }
28452         ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
28453 else
28454   $as_echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28456
28457         { $as_echo "$as_me:$LINENO: result: no" >&5
28458 $as_echo "no" >&6; }
28459         ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT"
28460 fi
28461
28462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28463
28464
28465 { $as_echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5
28466 $as_echo_n "checking for gethostbyaddr(const void *, size_t, ...)... " >&6; }
28467 cat >conftest.$ac_ext <<_ACEOF
28468 /* confdefs.h.  */
28469 _ACEOF
28470 cat confdefs.h >>conftest.$ac_ext
28471 cat >>conftest.$ac_ext <<_ACEOF
28472 /* end confdefs.h.  */
28473
28474 #include <netdb.h>
28475 struct hostent *gethostbyaddr(const void *, size_t, int);
28476 int
28477 main ()
28478 {
28479 return(0);
28480   ;
28481   return 0;
28482 }
28483 _ACEOF
28484 rm -f conftest.$ac_objext
28485 if { (ac_try="$ac_compile"
28486 case "(($ac_try" in
28487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488   *) ac_try_echo=$ac_try;;
28489 esac
28490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28491 $as_echo "$ac_try_echo") >&5
28492   (eval "$ac_compile") 2>conftest.er1
28493   ac_status=$?
28494   grep -v '^ *+' conftest.er1 >conftest.err
28495   rm -f conftest.er1
28496   cat conftest.err >&5
28497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498   (exit $ac_status); } && {
28499          test -z "$ac_c_werror_flag" ||
28500          test ! -s conftest.err
28501        } && test -s conftest.$ac_objext; then
28502   { $as_echo "$as_me:$LINENO: result: yes" >&5
28503 $as_echo "yes" >&6; }
28504         ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
28505 else
28506   $as_echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509         { $as_echo "$as_me:$LINENO: result: no" >&5
28510 $as_echo "no" >&6; }
28511         ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID"
28512 fi
28513
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28515
28516
28517 { $as_echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
28518 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
28519 cat >conftest.$ac_ext <<_ACEOF
28520 /* confdefs.h.  */
28521 _ACEOF
28522 cat confdefs.h >>conftest.$ac_ext
28523 cat >>conftest.$ac_ext <<_ACEOF
28524 /* end confdefs.h.  */
28525
28526 #include <netdb.h>
28527 int
28528 main ()
28529 {
28530 h_errno = 1; return(0);
28531   ;
28532   return 0;
28533 }
28534 _ACEOF
28535 rm -f conftest.$ac_objext
28536 if { (ac_try="$ac_compile"
28537 case "(($ac_try" in
28538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539   *) ac_try_echo=$ac_try;;
28540 esac
28541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28542 $as_echo "$ac_try_echo") >&5
28543   (eval "$ac_compile") 2>conftest.er1
28544   ac_status=$?
28545   grep -v '^ *+' conftest.er1 >conftest.err
28546   rm -f conftest.er1
28547   cat conftest.err >&5
28548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); } && {
28550          test -z "$ac_c_werror_flag" ||
28551          test ! -s conftest.err
28552        } && test -s conftest.$ac_objext; then
28553   { $as_echo "$as_me:$LINENO: result: yes" >&5
28554 $as_echo "yes" >&6; }
28555         ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
28556 else
28557   $as_echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28559
28560         { $as_echo "$as_me:$LINENO: result: no" >&5
28561 $as_echo "no" >&6; }
28562         ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1"
28563 fi
28564
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28566
28567
28568 #
28569 # Sadly, the definitions of system-supplied getnameinfo(3) vary.  Try to catch
28570 # known variations here:
28571 #
28572 { $as_echo "$as_me:$LINENO: checking for getnameinfo prototype definitions" >&5
28573 $as_echo_n "checking for getnameinfo prototype definitions... " >&6; }
28574 cat >conftest.$ac_ext <<_ACEOF
28575 /* confdefs.h.  */
28576 _ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h.  */
28580
28581 #include <sys/types.h>
28582 #include <sys/socket.h>
28583 #include <netdb.h>
28584 int getnameinfo(const struct sockaddr *, socklen_t, char *,
28585                 socklen_t, char *, socklen_t, unsigned int);
28586 int
28587 main ()
28588 {
28589  return (0);
28590   ;
28591   return 0;
28592 }
28593 _ACEOF
28594 rm -f conftest.$ac_objext
28595 if { (ac_try="$ac_compile"
28596 case "(($ac_try" in
28597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598   *) ac_try_echo=$ac_try;;
28599 esac
28600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28601 $as_echo "$ac_try_echo") >&5
28602   (eval "$ac_compile") 2>conftest.er1
28603   ac_status=$?
28604   grep -v '^ *+' conftest.er1 >conftest.err
28605   rm -f conftest.er1
28606   cat conftest.err >&5
28607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608   (exit $ac_status); } && {
28609          test -z "$ac_c_werror_flag" ||
28610          test ! -s conftest.err
28611        } && test -s conftest.$ac_objext; then
28612   { $as_echo "$as_me:$LINENO: result: socklen_t for buflen; u_int for flags" >&5
28613 $as_echo "socklen_t for buflen; u_int for flags" >&6; }
28614
28615 cat >>confdefs.h <<\_ACEOF
28616 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
28617 _ACEOF
28618
28619
28620 cat >>confdefs.h <<\_ACEOF
28621 #define IRS_GETNAMEINFO_FLAGS_T unsigned int
28622 _ACEOF
28623
28624 else
28625   $as_echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28627
28628         cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h.  */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h.  */
28634
28635 #include <sys/types.h>
28636 #include <sys/socket.h>
28637 #include <netdb.h>
28638 int getnameinfo(const struct sockaddr *, socklen_t, char *,
28639                 size_t, char *, size_t, int);
28640 int
28641 main ()
28642 {
28643  return (0);
28644   ;
28645   return 0;
28646 }
28647 _ACEOF
28648 rm -f conftest.$ac_objext
28649 if { (ac_try="$ac_compile"
28650 case "(($ac_try" in
28651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652   *) ac_try_echo=$ac_try;;
28653 esac
28654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28655 $as_echo "$ac_try_echo") >&5
28656   (eval "$ac_compile") 2>conftest.er1
28657   ac_status=$?
28658   grep -v '^ *+' conftest.er1 >conftest.err
28659   rm -f conftest.er1
28660   cat conftest.err >&5
28661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } && {
28663          test -z "$ac_c_werror_flag" ||
28664          test ! -s conftest.err
28665        } && test -s conftest.$ac_objext; then
28666   { $as_echo "$as_me:$LINENO: result: size_t for buflen; int for flags" >&5
28667 $as_echo "size_t for buflen; int for flags" >&6; }
28668          cat >>confdefs.h <<\_ACEOF
28669 #define IRS_GETNAMEINFO_BUFLEN_T size_t
28670 _ACEOF
28671
28672          cat >>confdefs.h <<\_ACEOF
28673 #define IRS_GETNAMEINFO_FLAGS_T int
28674 _ACEOF
28675
28676 else
28677   $as_echo "$as_me: failed program was:" >&5
28678 sed 's/^/| /' conftest.$ac_ext >&5
28679
28680         { $as_echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
28681 $as_echo "not match any subspecies; assume standard definition" >&6; }
28682 cat >>confdefs.h <<\_ACEOF
28683 #define IRS_GETNAMEINFO_BUFLEN_T socklen_t
28684 _ACEOF
28685
28686 cat >>confdefs.h <<\_ACEOF
28687 #define IRS_GETNAMEINFO_FLAGS_T int
28688 _ACEOF
28689
28690 fi
28691
28692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28693 fi
28694
28695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696
28697 #
28698 # ...and same for gai_strerror().
28699 #
28700 { $as_echo "$as_me:$LINENO: checking for gai_strerror prototype definitions" >&5
28701 $as_echo_n "checking for gai_strerror prototype definitions... " >&6; }
28702 cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h.  */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h.  */
28708
28709 #include <sys/types.h>
28710 #include <sys/socket.h>
28711 #include <netdb.h>
28712 char *gai_strerror(int ecode);
28713 int
28714 main ()
28715 {
28716  return (0);
28717   ;
28718   return 0;
28719 }
28720 _ACEOF
28721 rm -f conftest.$ac_objext
28722 if { (ac_try="$ac_compile"
28723 case "(($ac_try" in
28724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725   *) ac_try_echo=$ac_try;;
28726 esac
28727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28728 $as_echo "$ac_try_echo") >&5
28729   (eval "$ac_compile") 2>conftest.er1
28730   ac_status=$?
28731   grep -v '^ *+' conftest.er1 >conftest.err
28732   rm -f conftest.er1
28733   cat conftest.err >&5
28734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); } && {
28736          test -z "$ac_c_werror_flag" ||
28737          test ! -s conftest.err
28738        } && test -s conftest.$ac_objext; then
28739   { $as_echo "$as_me:$LINENO: result: returning char *" >&5
28740 $as_echo "returning char *" >&6; }
28741
28742 cat >>confdefs.h <<\_ACEOF
28743 #define IRS_GAISTRERROR_RETURN_T char *
28744 _ACEOF
28745
28746 else
28747   $as_echo "$as_me: failed program was:" >&5
28748 sed 's/^/| /' conftest.$ac_ext >&5
28749
28750         { $as_echo "$as_me:$LINENO: result: not match any subspecies; assume standard definition" >&5
28751 $as_echo "not match any subspecies; assume standard definition" >&6; }
28752 cat >>confdefs.h <<\_ACEOF
28753 #define IRS_GAISTRERROR_RETURN_T const char *
28754 _ACEOF
28755
28756 fi
28757
28758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28759
28760 { $as_echo "$as_me:$LINENO: checking for getipnodebyname" >&5
28761 $as_echo_n "checking for getipnodebyname... " >&6; }
28762 if test "${ac_cv_func_getipnodebyname+set}" = set; then
28763   $as_echo_n "(cached) " >&6
28764 else
28765   cat >conftest.$ac_ext <<_ACEOF
28766 /* confdefs.h.  */
28767 _ACEOF
28768 cat confdefs.h >>conftest.$ac_ext
28769 cat >>conftest.$ac_ext <<_ACEOF
28770 /* end confdefs.h.  */
28771 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
28772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28773 #define getipnodebyname innocuous_getipnodebyname
28774
28775 /* System header to define __stub macros and hopefully few prototypes,
28776     which can conflict with char getipnodebyname (); below.
28777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28778     <limits.h> exists even on freestanding compilers.  */
28779
28780 #ifdef __STDC__
28781 # include <limits.h>
28782 #else
28783 # include <assert.h>
28784 #endif
28785
28786 #undef getipnodebyname
28787
28788 /* Override any GCC internal prototype to avoid an error.
28789    Use char because int might match the return type of a GCC
28790    builtin and then its argument prototype would still apply.  */
28791 #ifdef __cplusplus
28792 extern "C"
28793 #endif
28794 char getipnodebyname ();
28795 /* The GNU C library defines this for functions which it implements
28796     to always fail with ENOSYS.  Some functions are actually named
28797     something starting with __ and the normal name is an alias.  */
28798 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname
28799 choke me
28800 #endif
28801
28802 int
28803 main ()
28804 {
28805 return getipnodebyname ();
28806   ;
28807   return 0;
28808 }
28809 _ACEOF
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (ac_try="$ac_link"
28812 case "(($ac_try" in
28813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814   *) ac_try_echo=$ac_try;;
28815 esac
28816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28817 $as_echo "$ac_try_echo") >&5
28818   (eval "$ac_link") 2>conftest.er1
28819   ac_status=$?
28820   grep -v '^ *+' conftest.er1 >conftest.err
28821   rm -f conftest.er1
28822   cat conftest.err >&5
28823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); } && {
28825          test -z "$ac_c_werror_flag" ||
28826          test ! -s conftest.err
28827        } && test -s conftest$ac_exeext && {
28828          test "$cross_compiling" = yes ||
28829          $as_test_x conftest$ac_exeext
28830        }; then
28831   ac_cv_func_getipnodebyname=yes
28832 else
28833   $as_echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836         ac_cv_func_getipnodebyname=no
28837 fi
28838
28839 rm -rf conftest.dSYM
28840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28841       conftest$ac_exeext conftest.$ac_ext
28842 fi
28843 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
28844 $as_echo "$ac_cv_func_getipnodebyname" >&6; }
28845 if test $ac_cv_func_getipnodebyname = yes; then
28846   ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO"
28847 else
28848   ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1"
28849 fi
28850
28851 { $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5
28852 $as_echo_n "checking for getnameinfo... " >&6; }
28853 if test "${ac_cv_func_getnameinfo+set}" = set; then
28854   $as_echo_n "(cached) " >&6
28855 else
28856   cat >conftest.$ac_ext <<_ACEOF
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
28863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28864 #define getnameinfo innocuous_getnameinfo
28865
28866 /* System header to define __stub macros and hopefully few prototypes,
28867     which can conflict with char getnameinfo (); below.
28868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869     <limits.h> exists even on freestanding compilers.  */
28870
28871 #ifdef __STDC__
28872 # include <limits.h>
28873 #else
28874 # include <assert.h>
28875 #endif
28876
28877 #undef getnameinfo
28878
28879 /* Override any GCC internal prototype to avoid an error.
28880    Use char because int might match the return type of a GCC
28881    builtin and then its argument prototype would still apply.  */
28882 #ifdef __cplusplus
28883 extern "C"
28884 #endif
28885 char getnameinfo ();
28886 /* The GNU C library defines this for functions which it implements
28887     to always fail with ENOSYS.  Some functions are actually named
28888     something starting with __ and the normal name is an alias.  */
28889 #if defined __stub_getnameinfo || defined __stub___getnameinfo
28890 choke me
28891 #endif
28892
28893 int
28894 main ()
28895 {
28896 return getnameinfo ();
28897   ;
28898   return 0;
28899 }
28900 _ACEOF
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (ac_try="$ac_link"
28903 case "(($ac_try" in
28904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905   *) ac_try_echo=$ac_try;;
28906 esac
28907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28908 $as_echo "$ac_try_echo") >&5
28909   (eval "$ac_link") 2>conftest.er1
28910   ac_status=$?
28911   grep -v '^ *+' conftest.er1 >conftest.err
28912   rm -f conftest.er1
28913   cat conftest.err >&5
28914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); } && {
28916          test -z "$ac_c_werror_flag" ||
28917          test ! -s conftest.err
28918        } && test -s conftest$ac_exeext && {
28919          test "$cross_compiling" = yes ||
28920          $as_test_x conftest$ac_exeext
28921        }; then
28922   ac_cv_func_getnameinfo=yes
28923 else
28924   $as_echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28926
28927         ac_cv_func_getnameinfo=no
28928 fi
28929
28930 rm -rf conftest.dSYM
28931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28932       conftest$ac_exeext conftest.$ac_ext
28933 fi
28934 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
28935 $as_echo "$ac_cv_func_getnameinfo" >&6; }
28936 if test $ac_cv_func_getnameinfo = yes; then
28937   ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO"
28938 else
28939   ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1"
28940 fi
28941
28942 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
28943 $as_echo_n "checking for getaddrinfo... " >&6; }
28944 if test "${ac_cv_func_getaddrinfo+set}" = set; then
28945   $as_echo_n "(cached) " >&6
28946 else
28947   cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
28954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28955 #define getaddrinfo innocuous_getaddrinfo
28956
28957 /* System header to define __stub macros and hopefully few prototypes,
28958     which can conflict with char getaddrinfo (); below.
28959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28960     <limits.h> exists even on freestanding compilers.  */
28961
28962 #ifdef __STDC__
28963 # include <limits.h>
28964 #else
28965 # include <assert.h>
28966 #endif
28967
28968 #undef getaddrinfo
28969
28970 /* Override any GCC internal prototype to avoid an error.
28971    Use char because int might match the return type of a GCC
28972    builtin and then its argument prototype would still apply.  */
28973 #ifdef __cplusplus
28974 extern "C"
28975 #endif
28976 char getaddrinfo ();
28977 /* The GNU C library defines this for functions which it implements
28978     to always fail with ENOSYS.  Some functions are actually named
28979     something starting with __ and the normal name is an alias.  */
28980 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
28981 choke me
28982 #endif
28983
28984 int
28985 main ()
28986 {
28987 return getaddrinfo ();
28988   ;
28989   return 0;
28990 }
28991 _ACEOF
28992 rm -f conftest.$ac_objext conftest$ac_exeext
28993 if { (ac_try="$ac_link"
28994 case "(($ac_try" in
28995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28996   *) ac_try_echo=$ac_try;;
28997 esac
28998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28999 $as_echo "$ac_try_echo") >&5
29000   (eval "$ac_link") 2>conftest.er1
29001   ac_status=$?
29002   grep -v '^ *+' conftest.er1 >conftest.err
29003   rm -f conftest.er1
29004   cat conftest.err >&5
29005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006   (exit $ac_status); } && {
29007          test -z "$ac_c_werror_flag" ||
29008          test ! -s conftest.err
29009        } && test -s conftest$ac_exeext && {
29010          test "$cross_compiling" = yes ||
29011          $as_test_x conftest$ac_exeext
29012        }; then
29013   ac_cv_func_getaddrinfo=yes
29014 else
29015   $as_echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29017
29018         ac_cv_func_getaddrinfo=no
29019 fi
29020
29021 rm -rf conftest.dSYM
29022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29023       conftest$ac_exeext conftest.$ac_ext
29024 fi
29025 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
29026 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
29027 if test $ac_cv_func_getaddrinfo = yes; then
29028   ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO"
29029         cat >>confdefs.h <<\_ACEOF
29030 #define HAVE_GETADDRINFO 1
29031 _ACEOF
29032
29033 else
29034   ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1"
29035 fi
29036
29037 { $as_echo "$as_me:$LINENO: checking for gai_strerror" >&5
29038 $as_echo_n "checking for gai_strerror... " >&6; }
29039 if test "${ac_cv_func_gai_strerror+set}" = set; then
29040   $as_echo_n "(cached) " >&6
29041 else
29042   cat >conftest.$ac_ext <<_ACEOF
29043 /* confdefs.h.  */
29044 _ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h.  */
29048 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
29049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29050 #define gai_strerror innocuous_gai_strerror
29051
29052 /* System header to define __stub macros and hopefully few prototypes,
29053     which can conflict with char gai_strerror (); below.
29054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29055     <limits.h> exists even on freestanding compilers.  */
29056
29057 #ifdef __STDC__
29058 # include <limits.h>
29059 #else
29060 # include <assert.h>
29061 #endif
29062
29063 #undef gai_strerror
29064
29065 /* Override any GCC internal prototype to avoid an error.
29066    Use char because int might match the return type of a GCC
29067    builtin and then its argument prototype would still apply.  */
29068 #ifdef __cplusplus
29069 extern "C"
29070 #endif
29071 char gai_strerror ();
29072 /* The GNU C library defines this for functions which it implements
29073     to always fail with ENOSYS.  Some functions are actually named
29074     something starting with __ and the normal name is an alias.  */
29075 #if defined __stub_gai_strerror || defined __stub___gai_strerror
29076 choke me
29077 #endif
29078
29079 int
29080 main ()
29081 {
29082 return gai_strerror ();
29083   ;
29084   return 0;
29085 }
29086 _ACEOF
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29094 $as_echo "$ac_try_echo") >&5
29095   (eval "$ac_link") 2>conftest.er1
29096   ac_status=$?
29097   grep -v '^ *+' conftest.er1 >conftest.err
29098   rm -f conftest.er1
29099   cat conftest.err >&5
29100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101   (exit $ac_status); } && {
29102          test -z "$ac_c_werror_flag" ||
29103          test ! -s conftest.err
29104        } && test -s conftest$ac_exeext && {
29105          test "$cross_compiling" = yes ||
29106          $as_test_x conftest$ac_exeext
29107        }; then
29108   ac_cv_func_gai_strerror=yes
29109 else
29110   $as_echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29112
29113         ac_cv_func_gai_strerror=no
29114 fi
29115
29116 rm -rf conftest.dSYM
29117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29118       conftest$ac_exeext conftest.$ac_ext
29119 fi
29120 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
29121 $as_echo "$ac_cv_func_gai_strerror" >&6; }
29122 if test $ac_cv_func_gai_strerror = yes; then
29123   cat >>confdefs.h <<\_ACEOF
29124 #define HAVE_GAISTRERROR 1
29125 _ACEOF
29126
29127 fi
29128
29129
29130
29131
29132
29133
29134 # Check whether --enable-getifaddrs was given.
29135 if test "${enable_getifaddrs+set}" = set; then
29136   enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
29137 else
29138   want_getifaddrs="yes"
29139 fi
29140
29141
29142 #
29143 # This interface iteration code for getifaddrs() will fall back to using
29144 # /proc/net/if_inet6 if getifaddrs() in glibc doesn't return any IPv6
29145 # addresses.
29146 #
29147 case $want_getifaddrs in
29148 glibc)
29149 { $as_echo "$as_me:$LINENO: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&5
29150 $as_echo "$as_me: WARNING: \"--enable-getifaddrs=glibc is no longer required\"" >&2;}
29151 { $as_echo "$as_me:$LINENO: checking for getifaddrs" >&5
29152 $as_echo_n "checking for getifaddrs... " >&6; }
29153 if test "${ac_cv_func_getifaddrs+set}" = set; then
29154   $as_echo_n "(cached) " >&6
29155 else
29156   cat >conftest.$ac_ext <<_ACEOF
29157 /* confdefs.h.  */
29158 _ACEOF
29159 cat confdefs.h >>conftest.$ac_ext
29160 cat >>conftest.$ac_ext <<_ACEOF
29161 /* end confdefs.h.  */
29162 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
29163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29164 #define getifaddrs innocuous_getifaddrs
29165
29166 /* System header to define __stub macros and hopefully few prototypes,
29167     which can conflict with char getifaddrs (); below.
29168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29169     <limits.h> exists even on freestanding compilers.  */
29170
29171 #ifdef __STDC__
29172 # include <limits.h>
29173 #else
29174 # include <assert.h>
29175 #endif
29176
29177 #undef getifaddrs
29178
29179 /* Override any GCC internal prototype to avoid an error.
29180    Use char because int might match the return type of a GCC
29181    builtin and then its argument prototype would still apply.  */
29182 #ifdef __cplusplus
29183 extern "C"
29184 #endif
29185 char getifaddrs ();
29186 /* The GNU C library defines this for functions which it implements
29187     to always fail with ENOSYS.  Some functions are actually named
29188     something starting with __ and the normal name is an alias.  */
29189 #if defined __stub_getifaddrs || defined __stub___getifaddrs
29190 choke me
29191 #endif
29192
29193 int
29194 main ()
29195 {
29196 return getifaddrs ();
29197   ;
29198   return 0;
29199 }
29200 _ACEOF
29201 rm -f conftest.$ac_objext conftest$ac_exeext
29202 if { (ac_try="$ac_link"
29203 case "(($ac_try" in
29204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205   *) ac_try_echo=$ac_try;;
29206 esac
29207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29208 $as_echo "$ac_try_echo") >&5
29209   (eval "$ac_link") 2>conftest.er1
29210   ac_status=$?
29211   grep -v '^ *+' conftest.er1 >conftest.err
29212   rm -f conftest.er1
29213   cat conftest.err >&5
29214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215   (exit $ac_status); } && {
29216          test -z "$ac_c_werror_flag" ||
29217          test ! -s conftest.err
29218        } && test -s conftest$ac_exeext && {
29219          test "$cross_compiling" = yes ||
29220          $as_test_x conftest$ac_exeext
29221        }; then
29222   ac_cv_func_getifaddrs=yes
29223 else
29224   $as_echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29226
29227         ac_cv_func_getifaddrs=no
29228 fi
29229
29230 rm -rf conftest.dSYM
29231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29232       conftest$ac_exeext conftest.$ac_ext
29233 fi
29234 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
29235 $as_echo "$ac_cv_func_getifaddrs" >&6; }
29236 if test $ac_cv_func_getifaddrs = yes; then
29237   cat >>confdefs.h <<\_ACEOF
29238 #define HAVE_GETIFADDRS 1
29239 _ACEOF
29240
29241 fi
29242
29243 ;;
29244 yes)
29245 { $as_echo "$as_me:$LINENO: checking for getifaddrs" >&5
29246 $as_echo_n "checking for getifaddrs... " >&6; }
29247 if test "${ac_cv_func_getifaddrs+set}" = set; then
29248   $as_echo_n "(cached) " >&6
29249 else
29250   cat >conftest.$ac_ext <<_ACEOF
29251 /* confdefs.h.  */
29252 _ACEOF
29253 cat confdefs.h >>conftest.$ac_ext
29254 cat >>conftest.$ac_ext <<_ACEOF
29255 /* end confdefs.h.  */
29256 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
29257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29258 #define getifaddrs innocuous_getifaddrs
29259
29260 /* System header to define __stub macros and hopefully few prototypes,
29261     which can conflict with char getifaddrs (); below.
29262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29263     <limits.h> exists even on freestanding compilers.  */
29264
29265 #ifdef __STDC__
29266 # include <limits.h>
29267 #else
29268 # include <assert.h>
29269 #endif
29270
29271 #undef getifaddrs
29272
29273 /* Override any GCC internal prototype to avoid an error.
29274    Use char because int might match the return type of a GCC
29275    builtin and then its argument prototype would still apply.  */
29276 #ifdef __cplusplus
29277 extern "C"
29278 #endif
29279 char getifaddrs ();
29280 /* The GNU C library defines this for functions which it implements
29281     to always fail with ENOSYS.  Some functions are actually named
29282     something starting with __ and the normal name is an alias.  */
29283 #if defined __stub_getifaddrs || defined __stub___getifaddrs
29284 choke me
29285 #endif
29286
29287 int
29288 main ()
29289 {
29290 return getifaddrs ();
29291   ;
29292   return 0;
29293 }
29294 _ACEOF
29295 rm -f conftest.$ac_objext conftest$ac_exeext
29296 if { (ac_try="$ac_link"
29297 case "(($ac_try" in
29298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299   *) ac_try_echo=$ac_try;;
29300 esac
29301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29302 $as_echo "$ac_try_echo") >&5
29303   (eval "$ac_link") 2>conftest.er1
29304   ac_status=$?
29305   grep -v '^ *+' conftest.er1 >conftest.err
29306   rm -f conftest.er1
29307   cat conftest.err >&5
29308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); } && {
29310          test -z "$ac_c_werror_flag" ||
29311          test ! -s conftest.err
29312        } && test -s conftest$ac_exeext && {
29313          test "$cross_compiling" = yes ||
29314          $as_test_x conftest$ac_exeext
29315        }; then
29316   ac_cv_func_getifaddrs=yes
29317 else
29318   $as_echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321         ac_cv_func_getifaddrs=no
29322 fi
29323
29324 rm -rf conftest.dSYM
29325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29326       conftest$ac_exeext conftest.$ac_ext
29327 fi
29328 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
29329 $as_echo "$ac_cv_func_getifaddrs" >&6; }
29330 if test $ac_cv_func_getifaddrs = yes; then
29331   cat >>confdefs.h <<\_ACEOF
29332 #define HAVE_GETIFADDRS 1
29333 _ACEOF
29334
29335 fi
29336
29337 ;;
29338 no)
29339 ;;
29340 esac
29341
29342 #
29343 # Look for a sysctl call to get the list of network interfaces.
29344 #
29345 case $ac_cv_header_sys_sysctl_h in
29346 yes)
29347 { $as_echo "$as_me:$LINENO: checking for interface list sysctl" >&5
29348 $as_echo_n "checking for interface list sysctl... " >&6; }
29349 cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h.  */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h.  */
29355
29356 #include <sys/param.h>
29357 #include <sys/sysctl.h>
29358 #include <sys/socket.h>
29359 #ifdef NET_RT_IFLIST
29360 found_rt_iflist
29361 #endif
29362
29363 _ACEOF
29364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29365   $EGREP "found_rt_iflist" >/dev/null 2>&1; then
29366   { $as_echo "$as_me:$LINENO: result: yes" >&5
29367 $as_echo "yes" >&6; }
29368          cat >>confdefs.h <<\_ACEOF
29369 #define HAVE_IFLIST_SYSCTL 1
29370 _ACEOF
29371
29372 else
29373   { $as_echo "$as_me:$LINENO: result: no" >&5
29374 $as_echo "no" >&6; }
29375 fi
29376 rm -f conftest*
29377
29378 ;;
29379 esac
29380
29381 #
29382 # Check for some other useful functions that are not ever-present.
29383 #
29384
29385 # We test for strsep() using AC_TRY_LINK instead of AC_CHECK_FUNC
29386 # because AIX 4.3.3 with patches for bos.adt.include to version 4.3.3.77
29387 # reportedly defines strsep() without declaring it in <string.h> when
29388 # -D_LINUX_SOURCE_COMPAT is not defined [RT #2190], and
29389 # AC_CHECK_FUNC() incorrectly succeeds because it declares
29390 # the function itself.
29391 { $as_echo "$as_me:$LINENO: checking for correctly declared strsep()" >&5
29392 $as_echo_n "checking for correctly declared strsep()... " >&6; }
29393 cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399 #include <string.h>
29400 int
29401 main ()
29402 {
29403 char *sp; char *foo = strsep(&sp, ".");
29404   ;
29405   return 0;
29406 }
29407 _ACEOF
29408 rm -f conftest.$ac_objext conftest$ac_exeext
29409 if { (ac_try="$ac_link"
29410 case "(($ac_try" in
29411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29412   *) ac_try_echo=$ac_try;;
29413 esac
29414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29415 $as_echo "$ac_try_echo") >&5
29416   (eval "$ac_link") 2>conftest.er1
29417   ac_status=$?
29418   grep -v '^ *+' conftest.er1 >conftest.err
29419   rm -f conftest.er1
29420   cat conftest.err >&5
29421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422   (exit $ac_status); } && {
29423          test -z "$ac_c_werror_flag" ||
29424          test ! -s conftest.err
29425        } && test -s conftest$ac_exeext && {
29426          test "$cross_compiling" = yes ||
29427          $as_test_x conftest$ac_exeext
29428        }; then
29429   { $as_echo "$as_me:$LINENO: result: yes" >&5
29430 $as_echo "yes" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
29431 else
29432   $as_echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29434
29435         { $as_echo "$as_me:$LINENO: result: no" >&5
29436 $as_echo "no" >&6; }; ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1"
29437 fi
29438
29439 rm -rf conftest.dSYM
29440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29441       conftest$ac_exeext conftest.$ac_ext
29442
29443
29444 { $as_echo "$as_me:$LINENO: checking for memmove" >&5
29445 $as_echo_n "checking for memmove... " >&6; }
29446 if test "${ac_cv_func_memmove+set}" = set; then
29447   $as_echo_n "(cached) " >&6
29448 else
29449   cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h.  */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h.  */
29455 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
29456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29457 #define memmove innocuous_memmove
29458
29459 /* System header to define __stub macros and hopefully few prototypes,
29460     which can conflict with char memmove (); below.
29461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29462     <limits.h> exists even on freestanding compilers.  */
29463
29464 #ifdef __STDC__
29465 # include <limits.h>
29466 #else
29467 # include <assert.h>
29468 #endif
29469
29470 #undef memmove
29471
29472 /* Override any GCC internal prototype to avoid an error.
29473    Use char because int might match the return type of a GCC
29474    builtin and then its argument prototype would still apply.  */
29475 #ifdef __cplusplus
29476 extern "C"
29477 #endif
29478 char memmove ();
29479 /* The GNU C library defines this for functions which it implements
29480     to always fail with ENOSYS.  Some functions are actually named
29481     something starting with __ and the normal name is an alias.  */
29482 #if defined __stub_memmove || defined __stub___memmove
29483 choke me
29484 #endif
29485
29486 int
29487 main ()
29488 {
29489 return memmove ();
29490   ;
29491   return 0;
29492 }
29493 _ACEOF
29494 rm -f conftest.$ac_objext conftest$ac_exeext
29495 if { (ac_try="$ac_link"
29496 case "(($ac_try" in
29497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498   *) ac_try_echo=$ac_try;;
29499 esac
29500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29501 $as_echo "$ac_try_echo") >&5
29502   (eval "$ac_link") 2>conftest.er1
29503   ac_status=$?
29504   grep -v '^ *+' conftest.er1 >conftest.err
29505   rm -f conftest.er1
29506   cat conftest.err >&5
29507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508   (exit $ac_status); } && {
29509          test -z "$ac_c_werror_flag" ||
29510          test ! -s conftest.err
29511        } && test -s conftest$ac_exeext && {
29512          test "$cross_compiling" = yes ||
29513          $as_test_x conftest$ac_exeext
29514        }; then
29515   ac_cv_func_memmove=yes
29516 else
29517   $as_echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29519
29520         ac_cv_func_memmove=no
29521 fi
29522
29523 rm -rf conftest.dSYM
29524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29525       conftest$ac_exeext conftest.$ac_ext
29526 fi
29527 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
29528 $as_echo "$ac_cv_func_memmove" >&6; }
29529 if test $ac_cv_func_memmove = yes; then
29530   ISC_PLATFORM_NEEDMEMMOVE="#undef ISC_PLATFORM_NEEDMEMMOVE"
29531 else
29532   ISC_PLATFORM_NEEDMEMMOVE="#define ISC_PLATFORM_NEEDMEMMOVE 1"
29533 fi
29534
29535
29536
29537 { $as_echo "$as_me:$LINENO: checking for strtoul" >&5
29538 $as_echo_n "checking for strtoul... " >&6; }
29539 if test "${ac_cv_func_strtoul+set}" = set; then
29540   $as_echo_n "(cached) " >&6
29541 else
29542   cat >conftest.$ac_ext <<_ACEOF
29543 /* confdefs.h.  */
29544 _ACEOF
29545 cat confdefs.h >>conftest.$ac_ext
29546 cat >>conftest.$ac_ext <<_ACEOF
29547 /* end confdefs.h.  */
29548 /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul.
29549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29550 #define strtoul innocuous_strtoul
29551
29552 /* System header to define __stub macros and hopefully few prototypes,
29553     which can conflict with char strtoul (); below.
29554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29555     <limits.h> exists even on freestanding compilers.  */
29556
29557 #ifdef __STDC__
29558 # include <limits.h>
29559 #else
29560 # include <assert.h>
29561 #endif
29562
29563 #undef strtoul
29564
29565 /* Override any GCC internal prototype to avoid an error.
29566    Use char because int might match the return type of a GCC
29567    builtin and then its argument prototype would still apply.  */
29568 #ifdef __cplusplus
29569 extern "C"
29570 #endif
29571 char strtoul ();
29572 /* The GNU C library defines this for functions which it implements
29573     to always fail with ENOSYS.  Some functions are actually named
29574     something starting with __ and the normal name is an alias.  */
29575 #if defined __stub_strtoul || defined __stub___strtoul
29576 choke me
29577 #endif
29578
29579 int
29580 main ()
29581 {
29582 return strtoul ();
29583   ;
29584   return 0;
29585 }
29586 _ACEOF
29587 rm -f conftest.$ac_objext conftest$ac_exeext
29588 if { (ac_try="$ac_link"
29589 case "(($ac_try" in
29590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591   *) ac_try_echo=$ac_try;;
29592 esac
29593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29594 $as_echo "$ac_try_echo") >&5
29595   (eval "$ac_link") 2>conftest.er1
29596   ac_status=$?
29597   grep -v '^ *+' conftest.er1 >conftest.err
29598   rm -f conftest.er1
29599   cat conftest.err >&5
29600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601   (exit $ac_status); } && {
29602          test -z "$ac_c_werror_flag" ||
29603          test ! -s conftest.err
29604        } && test -s conftest$ac_exeext && {
29605          test "$cross_compiling" = yes ||
29606          $as_test_x conftest$ac_exeext
29607        }; then
29608   ac_cv_func_strtoul=yes
29609 else
29610   $as_echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613         ac_cv_func_strtoul=no
29614 fi
29615
29616 rm -rf conftest.dSYM
29617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29618       conftest$ac_exeext conftest.$ac_ext
29619 fi
29620 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5
29621 $as_echo "$ac_cv_func_strtoul" >&6; }
29622 if test $ac_cv_func_strtoul = yes; then
29623   ISC_PLATFORM_NEEDSTRTOUL="#undef ISC_PLATFORM_NEEDSTRTOUL"
29624          LWRES_PLATFORM_NEEDSTRTOUL="#undef LWRES_PLATFORM_NEEDSTRTOUL"
29625          GENRANDOMLIB=""
29626 else
29627   ISC_PLATFORM_NEEDSTRTOUL="#define ISC_PLATFORM_NEEDSTRTOUL 1"
29628          LWRES_PLATFORM_NEEDSTRTOUL="#define LWRES_PLATFORM_NEEDSTRTOUL 1"
29629          GENRANDOMLIB='${ISCLIBS}'
29630 fi
29631
29632
29633
29634
29635
29636 { $as_echo "$as_me:$LINENO: checking for strlcpy" >&5
29637 $as_echo_n "checking for strlcpy... " >&6; }
29638 if test "${ac_cv_func_strlcpy+set}" = set; then
29639   $as_echo_n "(cached) " >&6
29640 else
29641   cat >conftest.$ac_ext <<_ACEOF
29642 /* confdefs.h.  */
29643 _ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h.  */
29647 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
29648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29649 #define strlcpy innocuous_strlcpy
29650
29651 /* System header to define __stub macros and hopefully few prototypes,
29652     which can conflict with char strlcpy (); below.
29653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29654     <limits.h> exists even on freestanding compilers.  */
29655
29656 #ifdef __STDC__
29657 # include <limits.h>
29658 #else
29659 # include <assert.h>
29660 #endif
29661
29662 #undef strlcpy
29663
29664 /* Override any GCC internal prototype to avoid an error.
29665    Use char because int might match the return type of a GCC
29666    builtin and then its argument prototype would still apply.  */
29667 #ifdef __cplusplus
29668 extern "C"
29669 #endif
29670 char strlcpy ();
29671 /* The GNU C library defines this for functions which it implements
29672     to always fail with ENOSYS.  Some functions are actually named
29673     something starting with __ and the normal name is an alias.  */
29674 #if defined __stub_strlcpy || defined __stub___strlcpy
29675 choke me
29676 #endif
29677
29678 int
29679 main ()
29680 {
29681 return strlcpy ();
29682   ;
29683   return 0;
29684 }
29685 _ACEOF
29686 rm -f conftest.$ac_objext conftest$ac_exeext
29687 if { (ac_try="$ac_link"
29688 case "(($ac_try" in
29689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690   *) ac_try_echo=$ac_try;;
29691 esac
29692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29693 $as_echo "$ac_try_echo") >&5
29694   (eval "$ac_link") 2>conftest.er1
29695   ac_status=$?
29696   grep -v '^ *+' conftest.er1 >conftest.err
29697   rm -f conftest.er1
29698   cat conftest.err >&5
29699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); } && {
29701          test -z "$ac_c_werror_flag" ||
29702          test ! -s conftest.err
29703        } && test -s conftest$ac_exeext && {
29704          test "$cross_compiling" = yes ||
29705          $as_test_x conftest$ac_exeext
29706        }; then
29707   ac_cv_func_strlcpy=yes
29708 else
29709   $as_echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29711
29712         ac_cv_func_strlcpy=no
29713 fi
29714
29715 rm -rf conftest.dSYM
29716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29717       conftest$ac_exeext conftest.$ac_ext
29718 fi
29719 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
29720 $as_echo "$ac_cv_func_strlcpy" >&6; }
29721 if test $ac_cv_func_strlcpy = yes; then
29722   ISC_PLATFORM_NEEDSTRLCPY="#undef ISC_PLATFORM_NEEDSTRLCPY"
29723 else
29724   ISC_PLATFORM_NEEDSTRLCPY="#define ISC_PLATFORM_NEEDSTRLCPY 1"
29725 fi
29726
29727
29728
29729 { $as_echo "$as_me:$LINENO: checking for strlcat" >&5
29730 $as_echo_n "checking for strlcat... " >&6; }
29731 if test "${ac_cv_func_strlcat+set}" = set; then
29732   $as_echo_n "(cached) " >&6
29733 else
29734   cat >conftest.$ac_ext <<_ACEOF
29735 /* confdefs.h.  */
29736 _ACEOF
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h.  */
29740 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
29741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29742 #define strlcat innocuous_strlcat
29743
29744 /* System header to define __stub macros and hopefully few prototypes,
29745     which can conflict with char strlcat (); below.
29746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29747     <limits.h> exists even on freestanding compilers.  */
29748
29749 #ifdef __STDC__
29750 # include <limits.h>
29751 #else
29752 # include <assert.h>
29753 #endif
29754
29755 #undef strlcat
29756
29757 /* Override any GCC internal prototype to avoid an error.
29758    Use char because int might match the return type of a GCC
29759    builtin and then its argument prototype would still apply.  */
29760 #ifdef __cplusplus
29761 extern "C"
29762 #endif
29763 char strlcat ();
29764 /* The GNU C library defines this for functions which it implements
29765     to always fail with ENOSYS.  Some functions are actually named
29766     something starting with __ and the normal name is an alias.  */
29767 #if defined __stub_strlcat || defined __stub___strlcat
29768 choke me
29769 #endif
29770
29771 int
29772 main ()
29773 {
29774 return strlcat ();
29775   ;
29776   return 0;
29777 }
29778 _ACEOF
29779 rm -f conftest.$ac_objext conftest$ac_exeext
29780 if { (ac_try="$ac_link"
29781 case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29786 $as_echo "$ac_try_echo") >&5
29787   (eval "$ac_link") 2>conftest.er1
29788   ac_status=$?
29789   grep -v '^ *+' conftest.er1 >conftest.err
29790   rm -f conftest.er1
29791   cat conftest.err >&5
29792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793   (exit $ac_status); } && {
29794          test -z "$ac_c_werror_flag" ||
29795          test ! -s conftest.err
29796        } && test -s conftest$ac_exeext && {
29797          test "$cross_compiling" = yes ||
29798          $as_test_x conftest$ac_exeext
29799        }; then
29800   ac_cv_func_strlcat=yes
29801 else
29802   $as_echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29804
29805         ac_cv_func_strlcat=no
29806 fi
29807
29808 rm -rf conftest.dSYM
29809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29810       conftest$ac_exeext conftest.$ac_ext
29811 fi
29812 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
29813 $as_echo "$ac_cv_func_strlcat" >&6; }
29814 if test $ac_cv_func_strlcat = yes; then
29815   ISC_PLATFORM_NEEDSTRLCAT="#undef ISC_PLATFORM_NEEDSTRLCAT"
29816 else
29817   ISC_PLATFORM_NEEDSTRLCAT="#define ISC_PLATFORM_NEEDSTRLCAT 1"
29818 fi
29819
29820
29821
29822 ISC_PRINT_OBJS=
29823 ISC_PRINT_SRCS=
29824 { $as_echo "$as_me:$LINENO: checking sprintf" >&5
29825 $as_echo_n "checking sprintf... " >&6; }
29826 cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h.  */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h.  */
29832
29833 #include <stdio.h>
29834
29835 int
29836 main ()
29837 {
29838  char buf[2]; return(*sprintf(buf,"x"));
29839   ;
29840   return 0;
29841 }
29842 _ACEOF
29843 rm -f conftest.$ac_objext
29844 if { (ac_try="$ac_compile"
29845 case "(($ac_try" in
29846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847   *) ac_try_echo=$ac_try;;
29848 esac
29849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29850 $as_echo "$ac_try_echo") >&5
29851   (eval "$ac_compile") 2>conftest.er1
29852   ac_status=$?
29853   grep -v '^ *+' conftest.er1 >conftest.err
29854   rm -f conftest.er1
29855   cat conftest.err >&5
29856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); } && {
29858          test -z "$ac_c_werror_flag" ||
29859          test ! -s conftest.err
29860        } && test -s conftest.$ac_objext; then
29861
29862 ISC_PRINT_OBJS="print.$O"
29863 ISC_PRINT_SRCS="print.c"
29864 ISC_PLATFORM_NEEDSPRINTF="#define ISC_PLATFORM_NEEDSPRINTF"
29865 LWRES_PLATFORM_NEEDSPRINTF="#define LWRES_PLATFORM_NEEDSPRINTF"
29866
29867 else
29868   $as_echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871         ISC_PLATFORM_NEEDSPRINTF="#undef ISC_PLATFORM_NEEDSPRINTF"
29872  LWRES_PLATFORM_NEEDSPRINTF="#undef LWRES_PLATFORM_NEEDSPRINTF"
29873
29874 fi
29875
29876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29877
29878
29879
29880 { $as_echo "$as_me:$LINENO: checking for vsnprintf" >&5
29881 $as_echo_n "checking for vsnprintf... " >&6; }
29882 if test "${ac_cv_func_vsnprintf+set}" = set; then
29883   $as_echo_n "(cached) " >&6
29884 else
29885   cat >conftest.$ac_ext <<_ACEOF
29886 /* confdefs.h.  */
29887 _ACEOF
29888 cat confdefs.h >>conftest.$ac_ext
29889 cat >>conftest.$ac_ext <<_ACEOF
29890 /* end confdefs.h.  */
29891 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
29892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29893 #define vsnprintf innocuous_vsnprintf
29894
29895 /* System header to define __stub macros and hopefully few prototypes,
29896     which can conflict with char vsnprintf (); below.
29897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29898     <limits.h> exists even on freestanding compilers.  */
29899
29900 #ifdef __STDC__
29901 # include <limits.h>
29902 #else
29903 # include <assert.h>
29904 #endif
29905
29906 #undef vsnprintf
29907
29908 /* Override any GCC internal prototype to avoid an error.
29909    Use char because int might match the return type of a GCC
29910    builtin and then its argument prototype would still apply.  */
29911 #ifdef __cplusplus
29912 extern "C"
29913 #endif
29914 char vsnprintf ();
29915 /* The GNU C library defines this for functions which it implements
29916     to always fail with ENOSYS.  Some functions are actually named
29917     something starting with __ and the normal name is an alias.  */
29918 #if defined __stub_vsnprintf || defined __stub___vsnprintf
29919 choke me
29920 #endif
29921
29922 int
29923 main ()
29924 {
29925 return vsnprintf ();
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29937 $as_echo "$ac_try_echo") >&5
29938   (eval "$ac_link") 2>conftest.er1
29939   ac_status=$?
29940   grep -v '^ *+' conftest.er1 >conftest.err
29941   rm -f conftest.er1
29942   cat conftest.err >&5
29943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); } && {
29945          test -z "$ac_c_werror_flag" ||
29946          test ! -s conftest.err
29947        } && test -s conftest$ac_exeext && {
29948          test "$cross_compiling" = yes ||
29949          $as_test_x conftest$ac_exeext
29950        }; then
29951   ac_cv_func_vsnprintf=yes
29952 else
29953   $as_echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956         ac_cv_func_vsnprintf=no
29957 fi
29958
29959 rm -rf conftest.dSYM
29960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29961       conftest$ac_exeext conftest.$ac_ext
29962 fi
29963 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
29964 $as_echo "$ac_cv_func_vsnprintf" >&6; }
29965 if test $ac_cv_func_vsnprintf = yes; then
29966   ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF"
29967          LWRES_PLATFORM_NEEDVSNPRINTF="#undef LWRES_PLATFORM_NEEDVSNPRINTF"
29968 else
29969   ISC_PRINT_OBJS="print.$O"
29970          ISC_PRINT_SRCS="print.c"
29971          ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1"
29972          LWRES_PLATFORM_NEEDVSNPRINTF="#define LWRES_PLATFORM_NEEDVSNPRINTF 1"
29973 fi
29974
29975
29976
29977 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS $ISC_PRINT_OBJS"
29978 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS $ISC_PRINT_SRCS"
29979
29980 { $as_echo "$as_me:$LINENO: checking for strerror" >&5
29981 $as_echo_n "checking for strerror... " >&6; }
29982 if test "${ac_cv_func_strerror+set}" = set; then
29983   $as_echo_n "(cached) " >&6
29984 else
29985   cat >conftest.$ac_ext <<_ACEOF
29986 /* confdefs.h.  */
29987 _ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h.  */
29991 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
29992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29993 #define strerror innocuous_strerror
29994
29995 /* System header to define __stub macros and hopefully few prototypes,
29996     which can conflict with char strerror (); below.
29997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29998     <limits.h> exists even on freestanding compilers.  */
29999
30000 #ifdef __STDC__
30001 # include <limits.h>
30002 #else
30003 # include <assert.h>
30004 #endif
30005
30006 #undef strerror
30007
30008 /* Override any GCC internal prototype to avoid an error.
30009    Use char because int might match the return type of a GCC
30010    builtin and then its argument prototype would still apply.  */
30011 #ifdef __cplusplus
30012 extern "C"
30013 #endif
30014 char strerror ();
30015 /* The GNU C library defines this for functions which it implements
30016     to always fail with ENOSYS.  Some functions are actually named
30017     something starting with __ and the normal name is an alias.  */
30018 #if defined __stub_strerror || defined __stub___strerror
30019 choke me
30020 #endif
30021
30022 int
30023 main ()
30024 {
30025 return strerror ();
30026   ;
30027   return 0;
30028 }
30029 _ACEOF
30030 rm -f conftest.$ac_objext conftest$ac_exeext
30031 if { (ac_try="$ac_link"
30032 case "(($ac_try" in
30033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034   *) ac_try_echo=$ac_try;;
30035 esac
30036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30037 $as_echo "$ac_try_echo") >&5
30038   (eval "$ac_link") 2>conftest.er1
30039   ac_status=$?
30040   grep -v '^ *+' conftest.er1 >conftest.err
30041   rm -f conftest.er1
30042   cat conftest.err >&5
30043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); } && {
30045          test -z "$ac_c_werror_flag" ||
30046          test ! -s conftest.err
30047        } && test -s conftest$ac_exeext && {
30048          test "$cross_compiling" = yes ||
30049          $as_test_x conftest$ac_exeext
30050        }; then
30051   ac_cv_func_strerror=yes
30052 else
30053   $as_echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30055
30056         ac_cv_func_strerror=no
30057 fi
30058
30059 rm -rf conftest.dSYM
30060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30061       conftest$ac_exeext conftest.$ac_ext
30062 fi
30063 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
30064 $as_echo "$ac_cv_func_strerror" >&6; }
30065 if test $ac_cv_func_strerror = yes; then
30066   cat >>confdefs.h <<\_ACEOF
30067 #define HAVE_STRERROR 1
30068 _ACEOF
30069
30070 fi
30071
30072
30073
30074
30075
30076 #
30077 # Use our own SPNEGO implementation?
30078 #
30079 # Check whether --enable-isc-spnego was given.
30080 if test "${enable_isc_spnego+set}" = set; then
30081   enableval=$enable_isc_spnego;
30082 fi
30083
30084
30085 if test -n "$USE_GSSAPI"
30086 then
30087         case "$enable_isc_spnego" in
30088                 yes|'')
30089                         USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
30090                         DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
30091                         DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
30092                         { $as_echo "$as_me:$LINENO: result: using SPNEGO from lib/dns" >&5
30093 $as_echo "using SPNEGO from lib/dns" >&6; }
30094                         ;;
30095                 no)
30096                         { $as_echo "$as_me:$LINENO: result: using SPNEGO from GSSAPI library" >&5
30097 $as_echo "using SPNEGO from GSSAPI library" >&6; }
30098                         ;;
30099         esac
30100 fi
30101
30102
30103
30104
30105
30106
30107 # Determine the printf format characters to use when printing
30108 # values of type isc_int64_t. This will normally be "ll", but where
30109 # the compiler treats "long long" as a alias for "long" and printf
30110 # doesn't know about "long long" use "l".  Hopefully the sprintf
30111 # will produce a inconsistent result in the later case.  If the compiler
30112 # fails due to seeing "%lld" we fall back to "l".
30113 #
30114 # Digital Unix 4.0 (gcc?) (long long) is 64 bits as is its long. It uses
30115 # %ld even for (long long)/
30116 #
30117 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
30118 # configure on Win32.
30119 #
30120 { $as_echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
30121 $as_echo_n "checking printf format modifier for 64-bit integers... " >&6; }
30122 if test "$cross_compiling" = yes; then
30123   { $as_echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
30124 $as_echo "assuming target platform uses ll" >&6; }
30125         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
30126         LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
30127 else
30128   cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h.  */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h.  */
30134
30135 #include <stdio.h>
30136 main() {
30137         long long int j = 0;
30138         char buf[100];
30139         buf[0] = 0;
30140         sprintf(buf, "%lld", j);
30141         exit((sizeof(long long int) != sizeof(long int))? 0 :
30142              (strcmp(buf, "0") != 0));
30143 }
30144
30145 _ACEOF
30146 rm -f conftest$ac_exeext
30147 if { (ac_try="$ac_link"
30148 case "(($ac_try" in
30149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150   *) ac_try_echo=$ac_try;;
30151 esac
30152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30153 $as_echo "$ac_try_echo") >&5
30154   (eval "$ac_link") 2>&5
30155   ac_status=$?
30156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30158   { (case "(($ac_try" in
30159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160   *) ac_try_echo=$ac_try;;
30161 esac
30162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30163 $as_echo "$ac_try_echo") >&5
30164   (eval "$ac_try") 2>&5
30165   ac_status=$?
30166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); }; }; then
30168   { $as_echo "$as_me:$LINENO: result: ll" >&5
30169 $as_echo "ll" >&6; }
30170         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
30171         LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "ll"'
30172 else
30173   $as_echo "$as_me: program exited with status $ac_status" >&5
30174 $as_echo "$as_me: failed program was:" >&5
30175 sed 's/^/| /' conftest.$ac_ext >&5
30176
30177 ( exit $ac_status )
30178 { $as_echo "$as_me:$LINENO: result: l" >&5
30179 $as_echo "l" >&6; }
30180         ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
30181         LWRES_PLATFORM_QUADFORMAT='#define LWRES_PLATFORM_QUADFORMAT "l"'
30182 fi
30183 rm -rf conftest.dSYM
30184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30185 fi
30186
30187
30188
30189
30190
30191 #
30192 # Security Stuff
30193 #
30194 # Note it is very recommended to *not* disable chroot(),
30195 # this is only because chroot() was made obsolete by Posix.
30196 # Check whether --enable-chroot was given.
30197 if test "${enable_chroot+set}" = set; then
30198   enableval=$enable_chroot;
30199 fi
30200
30201 case "$enable_chroot" in
30202         yes|'')
30203
30204 for ac_func in chroot
30205 do
30206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30207 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30208 $as_echo_n "checking for $ac_func... " >&6; }
30209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30210   $as_echo_n "(cached) " >&6
30211 else
30212   cat >conftest.$ac_ext <<_ACEOF
30213 /* confdefs.h.  */
30214 _ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h.  */
30218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30220 #define $ac_func innocuous_$ac_func
30221
30222 /* System header to define __stub macros and hopefully few prototypes,
30223     which can conflict with char $ac_func (); below.
30224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30225     <limits.h> exists even on freestanding compilers.  */
30226
30227 #ifdef __STDC__
30228 # include <limits.h>
30229 #else
30230 # include <assert.h>
30231 #endif
30232
30233 #undef $ac_func
30234
30235 /* Override any GCC internal prototype to avoid an error.
30236    Use char because int might match the return type of a GCC
30237    builtin and then its argument prototype would still apply.  */
30238 #ifdef __cplusplus
30239 extern "C"
30240 #endif
30241 char $ac_func ();
30242 /* The GNU C library defines this for functions which it implements
30243     to always fail with ENOSYS.  Some functions are actually named
30244     something starting with __ and the normal name is an alias.  */
30245 #if defined __stub_$ac_func || defined __stub___$ac_func
30246 choke me
30247 #endif
30248
30249 int
30250 main ()
30251 {
30252 return $ac_func ();
30253   ;
30254   return 0;
30255 }
30256 _ACEOF
30257 rm -f conftest.$ac_objext conftest$ac_exeext
30258 if { (ac_try="$ac_link"
30259 case "(($ac_try" in
30260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261   *) ac_try_echo=$ac_try;;
30262 esac
30263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30264 $as_echo "$ac_try_echo") >&5
30265   (eval "$ac_link") 2>conftest.er1
30266   ac_status=$?
30267   grep -v '^ *+' conftest.er1 >conftest.err
30268   rm -f conftest.er1
30269   cat conftest.err >&5
30270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); } && {
30272          test -z "$ac_c_werror_flag" ||
30273          test ! -s conftest.err
30274        } && test -s conftest$ac_exeext && {
30275          test "$cross_compiling" = yes ||
30276          $as_test_x conftest$ac_exeext
30277        }; then
30278   eval "$as_ac_var=yes"
30279 else
30280   $as_echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30282
30283         eval "$as_ac_var=no"
30284 fi
30285
30286 rm -rf conftest.dSYM
30287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30288       conftest$ac_exeext conftest.$ac_ext
30289 fi
30290 ac_res=`eval 'as_val=${'$as_ac_var'}
30291                  $as_echo "$as_val"'`
30292                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30293 $as_echo "$ac_res" >&6; }
30294 if test `eval 'as_val=${'$as_ac_var'}
30295                  $as_echo "$as_val"'` = yes; then
30296   cat >>confdefs.h <<_ACEOF
30297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30298 _ACEOF
30299
30300 fi
30301 done
30302
30303                 ;;
30304         no)
30305                 ;;
30306 esac
30307 # Check whether --enable-linux-caps was given.
30308 if test "${enable_linux_caps+set}" = set; then
30309   enableval=$enable_linux_caps;
30310 fi
30311
30312 case "$enable_linux_caps" in
30313         yes|'')
30314
30315
30316 for ac_header in linux/capability.h sys/capability.h
30317 do
30318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30320   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30321 $as_echo_n "checking for $ac_header... " >&6; }
30322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30323   $as_echo_n "(cached) " >&6
30324 fi
30325 ac_res=`eval 'as_val=${'$as_ac_Header'}
30326                  $as_echo "$as_val"'`
30327                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30328 $as_echo "$ac_res" >&6; }
30329 else
30330   # Is the header compilable?
30331 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30332 $as_echo_n "checking $ac_header usability... " >&6; }
30333 cat >conftest.$ac_ext <<_ACEOF
30334 /* confdefs.h.  */
30335 _ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h.  */
30339 $ac_includes_default
30340 #include <$ac_header>
30341 _ACEOF
30342 rm -f conftest.$ac_objext
30343 if { (ac_try="$ac_compile"
30344 case "(($ac_try" in
30345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346   *) ac_try_echo=$ac_try;;
30347 esac
30348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30349 $as_echo "$ac_try_echo") >&5
30350   (eval "$ac_compile") 2>conftest.er1
30351   ac_status=$?
30352   grep -v '^ *+' conftest.er1 >conftest.err
30353   rm -f conftest.er1
30354   cat conftest.err >&5
30355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); } && {
30357          test -z "$ac_c_werror_flag" ||
30358          test ! -s conftest.err
30359        } && test -s conftest.$ac_objext; then
30360   ac_header_compiler=yes
30361 else
30362   $as_echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30364
30365         ac_header_compiler=no
30366 fi
30367
30368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30370 $as_echo "$ac_header_compiler" >&6; }
30371
30372 # Is the header present?
30373 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30374 $as_echo_n "checking $ac_header presence... " >&6; }
30375 cat >conftest.$ac_ext <<_ACEOF
30376 /* confdefs.h.  */
30377 _ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h.  */
30381 #include <$ac_header>
30382 _ACEOF
30383 if { (ac_try="$ac_cpp conftest.$ac_ext"
30384 case "(($ac_try" in
30385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386   *) ac_try_echo=$ac_try;;
30387 esac
30388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30389 $as_echo "$ac_try_echo") >&5
30390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30391   ac_status=$?
30392   grep -v '^ *+' conftest.er1 >conftest.err
30393   rm -f conftest.er1
30394   cat conftest.err >&5
30395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396   (exit $ac_status); } >/dev/null && {
30397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30398          test ! -s conftest.err
30399        }; then
30400   ac_header_preproc=yes
30401 else
30402   $as_echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30404
30405   ac_header_preproc=no
30406 fi
30407
30408 rm -f conftest.err conftest.$ac_ext
30409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30410 $as_echo "$ac_header_preproc" >&6; }
30411
30412 # So?  What about this header?
30413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30414   yes:no: )
30415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30416 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30417     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30419     ac_header_preproc=yes
30420     ;;
30421   no:yes:* )
30422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30423 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30425 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30427 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30429 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30433 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30434
30435     ;;
30436 esac
30437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30438 $as_echo_n "checking for $ac_header... " >&6; }
30439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30440   $as_echo_n "(cached) " >&6
30441 else
30442   eval "$as_ac_Header=\$ac_header_preproc"
30443 fi
30444 ac_res=`eval 'as_val=${'$as_ac_Header'}
30445                  $as_echo "$as_val"'`
30446                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30447 $as_echo "$ac_res" >&6; }
30448
30449 fi
30450 if test `eval 'as_val=${'$as_ac_Header'}
30451                  $as_echo "$as_val"'` = yes; then
30452   cat >>confdefs.h <<_ACEOF
30453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30454 _ACEOF
30455
30456 fi
30457
30458 done
30459
30460
30461 { $as_echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
30462 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30463 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
30464   $as_echo_n "(cached) " >&6
30465 else
30466   ac_check_lib_save_LIBS=$LIBS
30467 LIBS="-lcap  $LIBS"
30468 cat >conftest.$ac_ext <<_ACEOF
30469 /* confdefs.h.  */
30470 _ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h.  */
30474
30475 /* Override any GCC internal prototype to avoid an error.
30476    Use char because int might match the return type of a GCC
30477    builtin and then its argument prototype would still apply.  */
30478 #ifdef __cplusplus
30479 extern "C"
30480 #endif
30481 char cap_set_proc ();
30482 int
30483 main ()
30484 {
30485 return cap_set_proc ();
30486   ;
30487   return 0;
30488 }
30489 _ACEOF
30490 rm -f conftest.$ac_objext conftest$ac_exeext
30491 if { (ac_try="$ac_link"
30492 case "(($ac_try" in
30493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494   *) ac_try_echo=$ac_try;;
30495 esac
30496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30497 $as_echo "$ac_try_echo") >&5
30498   (eval "$ac_link") 2>conftest.er1
30499   ac_status=$?
30500   grep -v '^ *+' conftest.er1 >conftest.err
30501   rm -f conftest.er1
30502   cat conftest.err >&5
30503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504   (exit $ac_status); } && {
30505          test -z "$ac_c_werror_flag" ||
30506          test ! -s conftest.err
30507        } && test -s conftest$ac_exeext && {
30508          test "$cross_compiling" = yes ||
30509          $as_test_x conftest$ac_exeext
30510        }; then
30511   ac_cv_lib_cap_cap_set_proc=yes
30512 else
30513   $as_echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30515
30516         ac_cv_lib_cap_cap_set_proc=no
30517 fi
30518
30519 rm -rf conftest.dSYM
30520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30521       conftest$ac_exeext conftest.$ac_ext
30522 LIBS=$ac_check_lib_save_LIBS
30523 fi
30524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
30525 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30526 if test $ac_cv_lib_cap_cap_set_proc = yes; then
30527   cat >>confdefs.h <<_ACEOF
30528 #define HAVE_LIBCAP 1
30529 _ACEOF
30530
30531   LIBS="-lcap $LIBS"
30532
30533 fi
30534
30535                 ;;
30536         no)
30537                 ;;
30538 esac
30539
30540 for ac_header in sys/prctl.h
30541 do
30542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30544   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30545 $as_echo_n "checking for $ac_header... " >&6; }
30546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30547   $as_echo_n "(cached) " >&6
30548 fi
30549 ac_res=`eval 'as_val=${'$as_ac_Header'}
30550                  $as_echo "$as_val"'`
30551                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30552 $as_echo "$ac_res" >&6; }
30553 else
30554   # Is the header compilable?
30555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30556 $as_echo_n "checking $ac_header usability... " >&6; }
30557 cat >conftest.$ac_ext <<_ACEOF
30558 /* confdefs.h.  */
30559 _ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h.  */
30563 $ac_includes_default
30564 #include <$ac_header>
30565 _ACEOF
30566 rm -f conftest.$ac_objext
30567 if { (ac_try="$ac_compile"
30568 case "(($ac_try" in
30569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30570   *) ac_try_echo=$ac_try;;
30571 esac
30572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30573 $as_echo "$ac_try_echo") >&5
30574   (eval "$ac_compile") 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } && {
30581          test -z "$ac_c_werror_flag" ||
30582          test ! -s conftest.err
30583        } && test -s conftest.$ac_objext; then
30584   ac_header_compiler=yes
30585 else
30586   $as_echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.$ac_ext >&5
30588
30589         ac_header_compiler=no
30590 fi
30591
30592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30594 $as_echo "$ac_header_compiler" >&6; }
30595
30596 # Is the header present?
30597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30598 $as_echo_n "checking $ac_header presence... " >&6; }
30599 cat >conftest.$ac_ext <<_ACEOF
30600 /* confdefs.h.  */
30601 _ACEOF
30602 cat confdefs.h >>conftest.$ac_ext
30603 cat >>conftest.$ac_ext <<_ACEOF
30604 /* end confdefs.h.  */
30605 #include <$ac_header>
30606 _ACEOF
30607 if { (ac_try="$ac_cpp conftest.$ac_ext"
30608 case "(($ac_try" in
30609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30610   *) ac_try_echo=$ac_try;;
30611 esac
30612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30613 $as_echo "$ac_try_echo") >&5
30614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30615   ac_status=$?
30616   grep -v '^ *+' conftest.er1 >conftest.err
30617   rm -f conftest.er1
30618   cat conftest.err >&5
30619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); } >/dev/null && {
30621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30622          test ! -s conftest.err
30623        }; then
30624   ac_header_preproc=yes
30625 else
30626   $as_echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629   ac_header_preproc=no
30630 fi
30631
30632 rm -f conftest.err conftest.$ac_ext
30633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30634 $as_echo "$ac_header_preproc" >&6; }
30635
30636 # So?  What about this header?
30637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30638   yes:no: )
30639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30643     ac_header_preproc=yes
30644     ;;
30645   no:yes:* )
30646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30648     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30649 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30650     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30653 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30656     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30658
30659     ;;
30660 esac
30661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30662 $as_echo_n "checking for $ac_header... " >&6; }
30663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30664   $as_echo_n "(cached) " >&6
30665 else
30666   eval "$as_ac_Header=\$ac_header_preproc"
30667 fi
30668 ac_res=`eval 'as_val=${'$as_ac_Header'}
30669                  $as_echo "$as_val"'`
30670                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30671 $as_echo "$ac_res" >&6; }
30672
30673 fi
30674 if test `eval 'as_val=${'$as_ac_Header'}
30675                  $as_echo "$as_val"'` = yes; then
30676   cat >>confdefs.h <<_ACEOF
30677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30678 _ACEOF
30679
30680 fi
30681
30682 done
30683
30684
30685
30686 for ac_header in sys/un.h
30687 do
30688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30690   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30691 $as_echo_n "checking for $ac_header... " >&6; }
30692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30693   $as_echo_n "(cached) " >&6
30694 fi
30695 ac_res=`eval 'as_val=${'$as_ac_Header'}
30696                  $as_echo "$as_val"'`
30697                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30698 $as_echo "$ac_res" >&6; }
30699 else
30700   # Is the header compilable?
30701 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30702 $as_echo_n "checking $ac_header usability... " >&6; }
30703 cat >conftest.$ac_ext <<_ACEOF
30704 /* confdefs.h.  */
30705 _ACEOF
30706 cat confdefs.h >>conftest.$ac_ext
30707 cat >>conftest.$ac_ext <<_ACEOF
30708 /* end confdefs.h.  */
30709 $ac_includes_default
30710 #include <$ac_header>
30711 _ACEOF
30712 rm -f conftest.$ac_objext
30713 if { (ac_try="$ac_compile"
30714 case "(($ac_try" in
30715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716   *) ac_try_echo=$ac_try;;
30717 esac
30718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30719 $as_echo "$ac_try_echo") >&5
30720   (eval "$ac_compile") 2>conftest.er1
30721   ac_status=$?
30722   grep -v '^ *+' conftest.er1 >conftest.err
30723   rm -f conftest.er1
30724   cat conftest.err >&5
30725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); } && {
30727          test -z "$ac_c_werror_flag" ||
30728          test ! -s conftest.err
30729        } && test -s conftest.$ac_objext; then
30730   ac_header_compiler=yes
30731 else
30732   $as_echo "$as_me: failed program was:" >&5
30733 sed 's/^/| /' conftest.$ac_ext >&5
30734
30735         ac_header_compiler=no
30736 fi
30737
30738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30740 $as_echo "$ac_header_compiler" >&6; }
30741
30742 # Is the header present?
30743 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30744 $as_echo_n "checking $ac_header presence... " >&6; }
30745 cat >conftest.$ac_ext <<_ACEOF
30746 /* confdefs.h.  */
30747 _ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h.  */
30751 #include <$ac_header>
30752 _ACEOF
30753 if { (ac_try="$ac_cpp conftest.$ac_ext"
30754 case "(($ac_try" in
30755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756   *) ac_try_echo=$ac_try;;
30757 esac
30758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30759 $as_echo "$ac_try_echo") >&5
30760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30761   ac_status=$?
30762   grep -v '^ *+' conftest.er1 >conftest.err
30763   rm -f conftest.er1
30764   cat conftest.err >&5
30765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766   (exit $ac_status); } >/dev/null && {
30767          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30768          test ! -s conftest.err
30769        }; then
30770   ac_header_preproc=yes
30771 else
30772   $as_echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30774
30775   ac_header_preproc=no
30776 fi
30777
30778 rm -f conftest.err conftest.$ac_ext
30779 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30780 $as_echo "$ac_header_preproc" >&6; }
30781
30782 # So?  What about this header?
30783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30784   yes:no: )
30785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30786 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30789     ac_header_preproc=yes
30790     ;;
30791   no:yes:* )
30792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30793 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30795 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30797 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30799 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30803 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30804
30805     ;;
30806 esac
30807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30808 $as_echo_n "checking for $ac_header... " >&6; }
30809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30810   $as_echo_n "(cached) " >&6
30811 else
30812   eval "$as_ac_Header=\$ac_header_preproc"
30813 fi
30814 ac_res=`eval 'as_val=${'$as_ac_Header'}
30815                  $as_echo "$as_val"'`
30816                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30817 $as_echo "$ac_res" >&6; }
30818
30819 fi
30820 if test `eval 'as_val=${'$as_ac_Header'}
30821                  $as_echo "$as_val"'` = yes; then
30822   cat >>confdefs.h <<_ACEOF
30823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30824 _ACEOF
30825  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
30826
30827 else
30828   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
30829
30830 fi
30831
30832 done
30833
30834
30835
30836 case "$host" in
30837 *-solaris*)
30838
30839 cat >>confdefs.h <<\_ACEOF
30840 #define NEED_SECURE_DIRECTORY 1
30841 _ACEOF
30842
30843         ;;
30844 *-sunos*)
30845
30846 cat >>confdefs.h <<\_ACEOF
30847 #define NEED_SECURE_DIRECTORY 1
30848 _ACEOF
30849
30850         ;;
30851 esac
30852
30853 #
30854 # Time Zone Stuff
30855 #
30856 { $as_echo "$as_me:$LINENO: checking for tzset" >&5
30857 $as_echo_n "checking for tzset... " >&6; }
30858 if test "${ac_cv_func_tzset+set}" = set; then
30859   $as_echo_n "(cached) " >&6
30860 else
30861   cat >conftest.$ac_ext <<_ACEOF
30862 /* confdefs.h.  */
30863 _ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h.  */
30867 /* Define tzset to an innocuous variant, in case <limits.h> declares tzset.
30868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30869 #define tzset innocuous_tzset
30870
30871 /* System header to define __stub macros and hopefully few prototypes,
30872     which can conflict with char tzset (); below.
30873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30874     <limits.h> exists even on freestanding compilers.  */
30875
30876 #ifdef __STDC__
30877 # include <limits.h>
30878 #else
30879 # include <assert.h>
30880 #endif
30881
30882 #undef tzset
30883
30884 /* Override any GCC internal prototype to avoid an error.
30885    Use char because int might match the return type of a GCC
30886    builtin and then its argument prototype would still apply.  */
30887 #ifdef __cplusplus
30888 extern "C"
30889 #endif
30890 char tzset ();
30891 /* The GNU C library defines this for functions which it implements
30892     to always fail with ENOSYS.  Some functions are actually named
30893     something starting with __ and the normal name is an alias.  */
30894 #if defined __stub_tzset || defined __stub___tzset
30895 choke me
30896 #endif
30897
30898 int
30899 main ()
30900 {
30901 return tzset ();
30902   ;
30903   return 0;
30904 }
30905 _ACEOF
30906 rm -f conftest.$ac_objext conftest$ac_exeext
30907 if { (ac_try="$ac_link"
30908 case "(($ac_try" in
30909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910   *) ac_try_echo=$ac_try;;
30911 esac
30912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30913 $as_echo "$ac_try_echo") >&5
30914   (eval "$ac_link") 2>conftest.er1
30915   ac_status=$?
30916   grep -v '^ *+' conftest.er1 >conftest.err
30917   rm -f conftest.er1
30918   cat conftest.err >&5
30919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920   (exit $ac_status); } && {
30921          test -z "$ac_c_werror_flag" ||
30922          test ! -s conftest.err
30923        } && test -s conftest$ac_exeext && {
30924          test "$cross_compiling" = yes ||
30925          $as_test_x conftest$ac_exeext
30926        }; then
30927   ac_cv_func_tzset=yes
30928 else
30929   $as_echo "$as_me: failed program was:" >&5
30930 sed 's/^/| /' conftest.$ac_ext >&5
30931
30932         ac_cv_func_tzset=no
30933 fi
30934
30935 rm -rf conftest.dSYM
30936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30937       conftest$ac_exeext conftest.$ac_ext
30938 fi
30939 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_tzset" >&5
30940 $as_echo "$ac_cv_func_tzset" >&6; }
30941 if test $ac_cv_func_tzset = yes; then
30942   cat >>confdefs.h <<\_ACEOF
30943 #define HAVE_TZSET 1
30944 _ACEOF
30945
30946 fi
30947
30948
30949 { $as_echo "$as_me:$LINENO: checking for optarg declaration" >&5
30950 $as_echo_n "checking for optarg declaration... " >&6; }
30951 cat >conftest.$ac_ext <<_ACEOF
30952 /* confdefs.h.  */
30953 _ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h.  */
30957
30958 #include <unistd.h>
30959
30960 int
30961 main ()
30962 {
30963 optarg = 0;
30964   ;
30965   return 0;
30966 }
30967 _ACEOF
30968 rm -f conftest.$ac_objext
30969 if { (ac_try="$ac_compile"
30970 case "(($ac_try" in
30971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972   *) ac_try_echo=$ac_try;;
30973 esac
30974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30975 $as_echo "$ac_try_echo") >&5
30976   (eval "$ac_compile") 2>conftest.er1
30977   ac_status=$?
30978   grep -v '^ *+' conftest.er1 >conftest.err
30979   rm -f conftest.er1
30980   cat conftest.err >&5
30981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982   (exit $ac_status); } && {
30983          test -z "$ac_c_werror_flag" ||
30984          test ! -s conftest.err
30985        } && test -s conftest.$ac_objext; then
30986   { $as_echo "$as_me:$LINENO: result: yes" >&5
30987 $as_echo "yes" >&6; }
30988 else
30989   $as_echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30991
30992         { $as_echo "$as_me:$LINENO: result: no" >&5
30993 $as_echo "no" >&6; }
30994 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
30995
30996 cat >>confdefs.h <<\_ACEOF
30997 #define NEED_OPTARG 1
30998 _ACEOF
30999
31000 fi
31001
31002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31003
31004 #
31005 # BSD/OS, and perhaps some others, don't define rlim_t.
31006 #
31007 { $as_echo "$as_me:$LINENO: checking for type rlim_t" >&5
31008 $as_echo_n "checking for type rlim_t... " >&6; }
31009 cat >conftest.$ac_ext <<_ACEOF
31010 /* confdefs.h.  */
31011 _ACEOF
31012 cat confdefs.h >>conftest.$ac_ext
31013 cat >>conftest.$ac_ext <<_ACEOF
31014 /* end confdefs.h.  */
31015
31016 #include <sys/types.h>
31017 #include <sys/time.h>
31018 #include <sys/resource.h>
31019 int
31020 main ()
31021 {
31022 rlim_t rl = 19671212; return (0);
31023   ;
31024   return 0;
31025 }
31026 _ACEOF
31027 rm -f conftest.$ac_objext
31028 if { (ac_try="$ac_compile"
31029 case "(($ac_try" in
31030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31031   *) ac_try_echo=$ac_try;;
31032 esac
31033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31034 $as_echo "$ac_try_echo") >&5
31035   (eval "$ac_compile") 2>conftest.er1
31036   ac_status=$?
31037   grep -v '^ *+' conftest.er1 >conftest.err
31038   rm -f conftest.er1
31039   cat conftest.err >&5
31040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041   (exit $ac_status); } && {
31042          test -z "$ac_c_werror_flag" ||
31043          test ! -s conftest.err
31044        } && test -s conftest.$ac_objext; then
31045   { $as_echo "$as_me:$LINENO: result: yes" >&5
31046 $as_echo "yes" >&6; }
31047  ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
31048 else
31049   $as_echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31051
31052         { $as_echo "$as_me:$LINENO: result: no" >&5
31053 $as_echo "no" >&6; }
31054
31055 { $as_echo "$as_me:$LINENO: checking type of rlim_cur" >&5
31056 $as_echo_n "checking type of rlim_cur... " >&6; }
31057 if test "$cross_compiling" = yes; then
31058
31059 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
31060 { $as_echo "$as_me:$LINENO: result: cannot determine type of rlim_cur when cross compiling - assuming long long int" >&5
31061 $as_echo "cannot determine type of rlim_cur when cross compiling - assuming long long int" >&6; }
31062 else
31063   cat >conftest.$ac_ext <<_ACEOF
31064 /* confdefs.h.  */
31065 _ACEOF
31066 cat confdefs.h >>conftest.$ac_ext
31067 cat >>conftest.$ac_ext <<_ACEOF
31068 /* end confdefs.h.  */
31069
31070 #include <sys/types.h>
31071 #include <sys/time.h>
31072 #include <sys/resource.h>
31073 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
31074 _ACEOF
31075 rm -f conftest$ac_exeext
31076 if { (ac_try="$ac_link"
31077 case "(($ac_try" in
31078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079   *) ac_try_echo=$ac_try;;
31080 esac
31081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31082 $as_echo "$ac_try_echo") >&5
31083   (eval "$ac_link") 2>&5
31084   ac_status=$?
31085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31087   { (case "(($ac_try" in
31088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31089   *) ac_try_echo=$ac_try;;
31090 esac
31091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31092 $as_echo "$ac_try_echo") >&5
31093   (eval "$ac_try") 2>&5
31094   ac_status=$?
31095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096   (exit $ac_status); }; }; then
31097   { $as_echo "$as_me:$LINENO: result: int" >&5
31098 $as_echo "int" >&6; }
31099 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
31100 else
31101   $as_echo "$as_me: program exited with status $ac_status" >&5
31102 $as_echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31104
31105 ( exit $ac_status )
31106
31107 if test "$cross_compiling" = yes; then
31108   { { $as_echo "$as_me:$LINENO: error: this cannot happen" >&5
31109 $as_echo "$as_me: error: this cannot happen" >&2;}
31110    { (exit 1); exit 1; }; }
31111 else
31112   cat >conftest.$ac_ext <<_ACEOF
31113 /* confdefs.h.  */
31114 _ACEOF
31115 cat confdefs.h >>conftest.$ac_ext
31116 cat >>conftest.$ac_ext <<_ACEOF
31117 /* end confdefs.h.  */
31118
31119 #include <sys/types.h>
31120 #include <sys/time.h>
31121 #include <sys/resource.h>
31122 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
31123 _ACEOF
31124 rm -f conftest$ac_exeext
31125 if { (ac_try="$ac_link"
31126 case "(($ac_try" in
31127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128   *) ac_try_echo=$ac_try;;
31129 esac
31130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31131 $as_echo "$ac_try_echo") >&5
31132   (eval "$ac_link") 2>&5
31133   ac_status=$?
31134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31136   { (case "(($ac_try" in
31137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138   *) ac_try_echo=$ac_try;;
31139 esac
31140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31141 $as_echo "$ac_try_echo") >&5
31142   (eval "$ac_try") 2>&5
31143   ac_status=$?
31144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); }; }; then
31146   { $as_echo "$as_me:$LINENO: result: long int" >&5
31147 $as_echo "long int" >&6; }
31148 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
31149 else
31150   $as_echo "$as_me: program exited with status $ac_status" >&5
31151 $as_echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31153
31154 ( exit $ac_status )
31155
31156 if test "$cross_compiling" = yes; then
31157   { { $as_echo "$as_me:$LINENO: error: this cannot happen" >&5
31158 $as_echo "$as_me: error: this cannot happen" >&2;}
31159    { (exit 1); exit 1; }; }
31160 else
31161   cat >conftest.$ac_ext <<_ACEOF
31162 /* confdefs.h.  */
31163 _ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h.  */
31167
31168 #include <sys/types.h>
31169 #include <sys/time.h>
31170 #include <sys/resource.h>
31171 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
31172 _ACEOF
31173 rm -f conftest$ac_exeext
31174 if { (ac_try="$ac_link"
31175 case "(($ac_try" in
31176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177   *) ac_try_echo=$ac_try;;
31178 esac
31179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31180 $as_echo "$ac_try_echo") >&5
31181   (eval "$ac_link") 2>&5
31182   ac_status=$?
31183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31185   { (case "(($ac_try" in
31186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187   *) ac_try_echo=$ac_try;;
31188 esac
31189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31190 $as_echo "$ac_try_echo") >&5
31191   (eval "$ac_try") 2>&5
31192   ac_status=$?
31193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194   (exit $ac_status); }; }; then
31195   { $as_echo "$as_me:$LINENO: result: long long int" >&5
31196 $as_echo "long long int" >&6; }
31197 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
31198 else
31199   $as_echo "$as_me: program exited with status $ac_status" >&5
31200 $as_echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31202
31203 ( exit $ac_status )
31204 { { $as_echo "$as_me:$LINENO: error: unable to determine sizeof rlim_cur" >&5
31205 $as_echo "$as_me: error: unable to determine sizeof rlim_cur" >&2;}
31206    { (exit 1); exit 1; }; }
31207
31208 fi
31209 rm -rf conftest.dSYM
31210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31211 fi
31212
31213
31214
31215 fi
31216 rm -rf conftest.dSYM
31217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31218 fi
31219
31220
31221
31222 fi
31223 rm -rf conftest.dSYM
31224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31225 fi
31226
31227
31228
31229 fi
31230
31231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31232
31233
31234 #
31235 # Older HP-UX doesn't have gettune
31236 #
31237 case "$host" in
31238         *-hp-hpux*)
31239
31240 for ac_header in sys/dyntune.h
31241 do
31242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31244   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31245 $as_echo_n "checking for $ac_header... " >&6; }
31246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31247   $as_echo_n "(cached) " >&6
31248 fi
31249 ac_res=`eval 'as_val=${'$as_ac_Header'}
31250                  $as_echo "$as_val"'`
31251                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31252 $as_echo "$ac_res" >&6; }
31253 else
31254   # Is the header compilable?
31255 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31256 $as_echo_n "checking $ac_header usability... " >&6; }
31257 cat >conftest.$ac_ext <<_ACEOF
31258 /* confdefs.h.  */
31259 _ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h.  */
31263 $ac_includes_default
31264 #include <$ac_header>
31265 _ACEOF
31266 rm -f conftest.$ac_objext
31267 if { (ac_try="$ac_compile"
31268 case "(($ac_try" in
31269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270   *) ac_try_echo=$ac_try;;
31271 esac
31272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31273 $as_echo "$ac_try_echo") >&5
31274   (eval "$ac_compile") 2>conftest.er1
31275   ac_status=$?
31276   grep -v '^ *+' conftest.er1 >conftest.err
31277   rm -f conftest.er1
31278   cat conftest.err >&5
31279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280   (exit $ac_status); } && {
31281          test -z "$ac_c_werror_flag" ||
31282          test ! -s conftest.err
31283        } && test -s conftest.$ac_objext; then
31284   ac_header_compiler=yes
31285 else
31286   $as_echo "$as_me: failed program was:" >&5
31287 sed 's/^/| /' conftest.$ac_ext >&5
31288
31289         ac_header_compiler=no
31290 fi
31291
31292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31294 $as_echo "$ac_header_compiler" >&6; }
31295
31296 # Is the header present?
31297 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31298 $as_echo_n "checking $ac_header presence... " >&6; }
31299 cat >conftest.$ac_ext <<_ACEOF
31300 /* confdefs.h.  */
31301 _ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h.  */
31305 #include <$ac_header>
31306 _ACEOF
31307 if { (ac_try="$ac_cpp conftest.$ac_ext"
31308 case "(($ac_try" in
31309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310   *) ac_try_echo=$ac_try;;
31311 esac
31312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31313 $as_echo "$ac_try_echo") >&5
31314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31315   ac_status=$?
31316   grep -v '^ *+' conftest.er1 >conftest.err
31317   rm -f conftest.er1
31318   cat conftest.err >&5
31319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320   (exit $ac_status); } >/dev/null && {
31321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31322          test ! -s conftest.err
31323        }; then
31324   ac_header_preproc=yes
31325 else
31326   $as_echo "$as_me: failed program was:" >&5
31327 sed 's/^/| /' conftest.$ac_ext >&5
31328
31329   ac_header_preproc=no
31330 fi
31331
31332 rm -f conftest.err conftest.$ac_ext
31333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31334 $as_echo "$ac_header_preproc" >&6; }
31335
31336 # So?  What about this header?
31337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31338   yes:no: )
31339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31340 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31342 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31343     ac_header_preproc=yes
31344     ;;
31345   no:yes:* )
31346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31347 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31349 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31350     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31351 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31353 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31354     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31355 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31356     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31357 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31358
31359     ;;
31360 esac
31361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31362 $as_echo_n "checking for $ac_header... " >&6; }
31363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31364   $as_echo_n "(cached) " >&6
31365 else
31366   eval "$as_ac_Header=\$ac_header_preproc"
31367 fi
31368 ac_res=`eval 'as_val=${'$as_ac_Header'}
31369                  $as_echo "$as_val"'`
31370                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31371 $as_echo "$ac_res" >&6; }
31372
31373 fi
31374 if test `eval 'as_val=${'$as_ac_Header'}
31375                  $as_echo "$as_val"'` = yes; then
31376   cat >>confdefs.h <<_ACEOF
31377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31378 _ACEOF
31379
31380 fi
31381
31382 done
31383
31384                 ;;
31385         *)
31386                 ;;
31387 esac
31388
31389
31390 #
31391 # Compaq TruCluster requires more code for handling cluster IP aliases
31392 #
31393 case "$host" in
31394         *-dec-osf*)
31395                 { $as_echo "$as_me:$LINENO: checking for clua_getaliasaddress in -lclua" >&5
31396 $as_echo_n "checking for clua_getaliasaddress in -lclua... " >&6; }
31397 if test "${ac_cv_lib_clua_clua_getaliasaddress+set}" = set; then
31398   $as_echo_n "(cached) " >&6
31399 else
31400   ac_check_lib_save_LIBS=$LIBS
31401 LIBS="-lclua  $LIBS"
31402 cat >conftest.$ac_ext <<_ACEOF
31403 /* confdefs.h.  */
31404 _ACEOF
31405 cat confdefs.h >>conftest.$ac_ext
31406 cat >>conftest.$ac_ext <<_ACEOF
31407 /* end confdefs.h.  */
31408
31409 /* Override any GCC internal prototype to avoid an error.
31410    Use char because int might match the return type of a GCC
31411    builtin and then its argument prototype would still apply.  */
31412 #ifdef __cplusplus
31413 extern "C"
31414 #endif
31415 char clua_getaliasaddress ();
31416 int
31417 main ()
31418 {
31419 return clua_getaliasaddress ();
31420   ;
31421   return 0;
31422 }
31423 _ACEOF
31424 rm -f conftest.$ac_objext conftest$ac_exeext
31425 if { (ac_try="$ac_link"
31426 case "(($ac_try" in
31427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428   *) ac_try_echo=$ac_try;;
31429 esac
31430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31431 $as_echo "$ac_try_echo") >&5
31432   (eval "$ac_link") 2>conftest.er1
31433   ac_status=$?
31434   grep -v '^ *+' conftest.er1 >conftest.err
31435   rm -f conftest.er1
31436   cat conftest.err >&5
31437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438   (exit $ac_status); } && {
31439          test -z "$ac_c_werror_flag" ||
31440          test ! -s conftest.err
31441        } && test -s conftest$ac_exeext && {
31442          test "$cross_compiling" = yes ||
31443          $as_test_x conftest$ac_exeext
31444        }; then
31445   ac_cv_lib_clua_clua_getaliasaddress=yes
31446 else
31447   $as_echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31449
31450         ac_cv_lib_clua_clua_getaliasaddress=no
31451 fi
31452
31453 rm -rf conftest.dSYM
31454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31455       conftest$ac_exeext conftest.$ac_ext
31456 LIBS=$ac_check_lib_save_LIBS
31457 fi
31458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clua_clua_getaliasaddress" >&5
31459 $as_echo "$ac_cv_lib_clua_clua_getaliasaddress" >&6; }
31460 if test $ac_cv_lib_clua_clua_getaliasaddress = yes; then
31461   LIBS="-lclua $LIBS"
31462 fi
31463
31464                 { $as_echo "$as_me:$LINENO: checking for clua_getaliasaddress" >&5
31465 $as_echo_n "checking for clua_getaliasaddress... " >&6; }
31466 if test "${ac_cv_func_clua_getaliasaddress+set}" = set; then
31467   $as_echo_n "(cached) " >&6
31468 else
31469   cat >conftest.$ac_ext <<_ACEOF
31470 /* confdefs.h.  */
31471 _ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h.  */
31475 /* Define clua_getaliasaddress to an innocuous variant, in case <limits.h> declares clua_getaliasaddress.
31476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31477 #define clua_getaliasaddress innocuous_clua_getaliasaddress
31478
31479 /* System header to define __stub macros and hopefully few prototypes,
31480     which can conflict with char clua_getaliasaddress (); below.
31481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31482     <limits.h> exists even on freestanding compilers.  */
31483
31484 #ifdef __STDC__
31485 # include <limits.h>
31486 #else
31487 # include <assert.h>
31488 #endif
31489
31490 #undef clua_getaliasaddress
31491
31492 /* Override any GCC internal prototype to avoid an error.
31493    Use char because int might match the return type of a GCC
31494    builtin and then its argument prototype would still apply.  */
31495 #ifdef __cplusplus
31496 extern "C"
31497 #endif
31498 char clua_getaliasaddress ();
31499 /* The GNU C library defines this for functions which it implements
31500     to always fail with ENOSYS.  Some functions are actually named
31501     something starting with __ and the normal name is an alias.  */
31502 #if defined __stub_clua_getaliasaddress || defined __stub___clua_getaliasaddress
31503 choke me
31504 #endif
31505
31506 int
31507 main ()
31508 {
31509 return clua_getaliasaddress ();
31510   ;
31511   return 0;
31512 }
31513 _ACEOF
31514 rm -f conftest.$ac_objext conftest$ac_exeext
31515 if { (ac_try="$ac_link"
31516 case "(($ac_try" in
31517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518   *) ac_try_echo=$ac_try;;
31519 esac
31520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31521 $as_echo "$ac_try_echo") >&5
31522   (eval "$ac_link") 2>conftest.er1
31523   ac_status=$?
31524   grep -v '^ *+' conftest.er1 >conftest.err
31525   rm -f conftest.er1
31526   cat conftest.err >&5
31527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528   (exit $ac_status); } && {
31529          test -z "$ac_c_werror_flag" ||
31530          test ! -s conftest.err
31531        } && test -s conftest$ac_exeext && {
31532          test "$cross_compiling" = yes ||
31533          $as_test_x conftest$ac_exeext
31534        }; then
31535   ac_cv_func_clua_getaliasaddress=yes
31536 else
31537   $as_echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31539
31540         ac_cv_func_clua_getaliasaddress=no
31541 fi
31542
31543 rm -rf conftest.dSYM
31544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31545       conftest$ac_exeext conftest.$ac_ext
31546 fi
31547 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_clua_getaliasaddress" >&5
31548 $as_echo "$ac_cv_func_clua_getaliasaddress" >&6; }
31549 if test $ac_cv_func_clua_getaliasaddress = yes; then
31550
31551 cat >>confdefs.h <<\_ACEOF
31552 #define HAVE_TRUCLUSTER 1
31553 _ACEOF
31554
31555 fi
31556
31557                 ;;
31558         *)
31559                 ;;
31560 esac
31561
31562 #
31563 # Some hosts need msg_namelen to match the size of the socket structure.
31564 # Some hosts don't set msg_namelen appropriately on return from recvmsg().
31565 #
31566 case $host in
31567 *os2*|*hp-mpeix*)
31568
31569 cat >>confdefs.h <<\_ACEOF
31570 #define BROKEN_RECVMSG 1
31571 _ACEOF
31572
31573         ;;
31574 esac
31575
31576 #
31577 # Microsoft has their own way of handling shared libraries that requires
31578 # additional qualifiers on extern variables.  Unix systems don't need it.
31579 #
31580
31581 ISC_PLATFORM_USEDECLSPEC="#undef ISC_PLATFORM_USEDECLSPEC"
31582
31583 LWRES_PLATFORM_USEDECLSPEC="#undef LWRES_PLATFORM_USEDECLSPEC"
31584
31585 IRS_PLATFORM_USEDECLSPEC="#undef IRS_PLATFORM_USEDECLSPEC"
31586
31587 #
31588 # Random remaining OS-specific issues involving compiler warnings.
31589 # XXXDCL print messages to indicate some compensation is being done?
31590 #
31591
31592 ISC_PLATFORM_BRACEPTHREADONCEINIT="#undef ISC_PLATFORM_BRACEPTHREADONCEINIT"
31593
31594 case "$host" in
31595         *-aix5.[123].*)
31596                 hack_shutup_pthreadonceinit=yes
31597                 ;;
31598         *-bsdi3.1*)
31599                 hack_shutup_sputaux=yes
31600                 ;;
31601         *-bsdi4.0*)
31602                 hack_shutup_sigwait=yes
31603                 hack_shutup_sputaux=yes
31604                 ;;
31605         *-bsdi4.[12]*)
31606                 hack_shutup_stdargcast=yes
31607                 ;;
31608         *-solaris2.[89])
31609                 hack_shutup_pthreadonceinit=yes
31610                 ;;
31611         *-solaris2.1[0-9])
31612                 cat >conftest.$ac_ext <<_ACEOF
31613 /* confdefs.h.  */
31614 _ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h.  */
31618  #include <pthread.h>
31619 int
31620 main ()
31621 {
31622  static pthread_once_t once_test = { PTHREAD_ONCE_INIT };
31623   ;
31624   return 0;
31625 }
31626 _ACEOF
31627 rm -f conftest.$ac_objext
31628 if { (ac_try="$ac_compile"
31629 case "(($ac_try" in
31630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631   *) ac_try_echo=$ac_try;;
31632 esac
31633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31634 $as_echo "$ac_try_echo") >&5
31635   (eval "$ac_compile") 2>conftest.er1
31636   ac_status=$?
31637   grep -v '^ *+' conftest.er1 >conftest.err
31638   rm -f conftest.er1
31639   cat conftest.err >&5
31640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641   (exit $ac_status); } && {
31642          test -z "$ac_c_werror_flag" ||
31643          test ! -s conftest.err
31644        } && test -s conftest.$ac_objext; then
31645   hack_shutup_pthreadonceinit=yes
31646 else
31647   $as_echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31649
31650
31651 fi
31652
31653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31654                 ;;
31655 esac
31656
31657 case "$hack_shutup_pthreadonceinit" in
31658         yes)
31659                 #
31660                 # Shut up PTHREAD_ONCE_INIT unbraced initializer warnings.
31661                 #
31662                 ISC_PLATFORM_BRACEPTHREADONCEINIT="#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1"
31663                 ;;
31664 esac
31665
31666 case "$hack_shutup_sigwait" in
31667         yes)
31668                 #
31669                 # Shut up a -Wmissing-prototypes warning for sigwait().
31670                 #
31671                 cat >>confdefs.h <<\_ACEOF
31672 #define SHUTUP_SIGWAIT 1
31673 _ACEOF
31674
31675                 ;;
31676 esac
31677
31678 case "$hack_shutup_sputaux" in
31679         yes)
31680                 #
31681                 # Shut up a -Wmissing-prototypes warning from <stdio.h>.
31682                 #
31683                 cat >>confdefs.h <<\_ACEOF
31684 #define SHUTUP_SPUTAUX 1
31685 _ACEOF
31686
31687                 ;;
31688 esac
31689
31690 case "$hack_shutup_stdargcast" in
31691         yes)
31692                 #
31693                 # Shut up a -Wcast-qual warning from va_start().
31694                 #
31695                 cat >>confdefs.h <<\_ACEOF
31696 #define SHUTUP_STDARG_CAST 1
31697 _ACEOF
31698
31699                 ;;
31700 esac
31701
31702
31703 for ac_header in strings.h
31704 do
31705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31707   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31708 $as_echo_n "checking for $ac_header... " >&6; }
31709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31710   $as_echo_n "(cached) " >&6
31711 fi
31712 ac_res=`eval 'as_val=${'$as_ac_Header'}
31713                  $as_echo "$as_val"'`
31714                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31715 $as_echo "$ac_res" >&6; }
31716 else
31717   # Is the header compilable?
31718 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31719 $as_echo_n "checking $ac_header usability... " >&6; }
31720 cat >conftest.$ac_ext <<_ACEOF
31721 /* confdefs.h.  */
31722 _ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h.  */
31726 $ac_includes_default
31727 #include <$ac_header>
31728 _ACEOF
31729 rm -f conftest.$ac_objext
31730 if { (ac_try="$ac_compile"
31731 case "(($ac_try" in
31732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733   *) ac_try_echo=$ac_try;;
31734 esac
31735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31736 $as_echo "$ac_try_echo") >&5
31737   (eval "$ac_compile") 2>conftest.er1
31738   ac_status=$?
31739   grep -v '^ *+' conftest.er1 >conftest.err
31740   rm -f conftest.er1
31741   cat conftest.err >&5
31742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); } && {
31744          test -z "$ac_c_werror_flag" ||
31745          test ! -s conftest.err
31746        } && test -s conftest.$ac_objext; then
31747   ac_header_compiler=yes
31748 else
31749   $as_echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31751
31752         ac_header_compiler=no
31753 fi
31754
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31757 $as_echo "$ac_header_compiler" >&6; }
31758
31759 # Is the header present?
31760 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31761 $as_echo_n "checking $ac_header presence... " >&6; }
31762 cat >conftest.$ac_ext <<_ACEOF
31763 /* confdefs.h.  */
31764 _ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h.  */
31768 #include <$ac_header>
31769 _ACEOF
31770 if { (ac_try="$ac_cpp conftest.$ac_ext"
31771 case "(($ac_try" in
31772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773   *) ac_try_echo=$ac_try;;
31774 esac
31775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31776 $as_echo "$ac_try_echo") >&5
31777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31778   ac_status=$?
31779   grep -v '^ *+' conftest.er1 >conftest.err
31780   rm -f conftest.er1
31781   cat conftest.err >&5
31782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783   (exit $ac_status); } >/dev/null && {
31784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31785          test ! -s conftest.err
31786        }; then
31787   ac_header_preproc=yes
31788 else
31789   $as_echo "$as_me: failed program was:" >&5
31790 sed 's/^/| /' conftest.$ac_ext >&5
31791
31792   ac_header_preproc=no
31793 fi
31794
31795 rm -f conftest.err conftest.$ac_ext
31796 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31797 $as_echo "$ac_header_preproc" >&6; }
31798
31799 # So?  What about this header?
31800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31801   yes:no: )
31802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31803 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31806     ac_header_preproc=yes
31807     ;;
31808   no:yes:* )
31809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31810 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31812 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31813     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31814 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31816 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31818 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31820 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31821
31822     ;;
31823 esac
31824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31825 $as_echo_n "checking for $ac_header... " >&6; }
31826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31827   $as_echo_n "(cached) " >&6
31828 else
31829   eval "$as_ac_Header=\$ac_header_preproc"
31830 fi
31831 ac_res=`eval 'as_val=${'$as_ac_Header'}
31832                  $as_echo "$as_val"'`
31833                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31834 $as_echo "$ac_res" >&6; }
31835
31836 fi
31837 if test `eval 'as_val=${'$as_ac_Header'}
31838                  $as_echo "$as_val"'` = yes; then
31839   cat >>confdefs.h <<_ACEOF
31840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31841 _ACEOF
31842  ISC_PLATFORM_HAVESTRINGSH="#define ISC_PLATFORM_HAVESTRINGSH 1"
31843
31844 else
31845   ISC_PLATFORM_HAVESTRINGSH="#undef ISC_PLATFORM_HAVESTRINGSH"
31846
31847 fi
31848
31849 done
31850
31851
31852
31853 #
31854 # Check for if_nametoindex() for IPv6 scoped addresses support
31855 #
31856 { $as_echo "$as_me:$LINENO: checking for if_nametoindex" >&5
31857 $as_echo_n "checking for if_nametoindex... " >&6; }
31858 if test "${ac_cv_func_if_nametoindex+set}" = set; then
31859   $as_echo_n "(cached) " >&6
31860 else
31861   cat >conftest.$ac_ext <<_ACEOF
31862 /* confdefs.h.  */
31863 _ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h.  */
31867 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex.
31868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31869 #define if_nametoindex innocuous_if_nametoindex
31870
31871 /* System header to define __stub macros and hopefully few prototypes,
31872     which can conflict with char if_nametoindex (); below.
31873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31874     <limits.h> exists even on freestanding compilers.  */
31875
31876 #ifdef __STDC__
31877 # include <limits.h>
31878 #else
31879 # include <assert.h>
31880 #endif
31881
31882 #undef if_nametoindex
31883
31884 /* Override any GCC internal prototype to avoid an error.
31885    Use char because int might match the return type of a GCC
31886    builtin and then its argument prototype would still apply.  */
31887 #ifdef __cplusplus
31888 extern "C"
31889 #endif
31890 char if_nametoindex ();
31891 /* The GNU C library defines this for functions which it implements
31892     to always fail with ENOSYS.  Some functions are actually named
31893     something starting with __ and the normal name is an alias.  */
31894 #if defined __stub_if_nametoindex || defined __stub___if_nametoindex
31895 choke me
31896 #endif
31897
31898 int
31899 main ()
31900 {
31901 return if_nametoindex ();
31902   ;
31903   return 0;
31904 }
31905 _ACEOF
31906 rm -f conftest.$ac_objext conftest$ac_exeext
31907 if { (ac_try="$ac_link"
31908 case "(($ac_try" in
31909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910   *) ac_try_echo=$ac_try;;
31911 esac
31912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31913 $as_echo "$ac_try_echo") >&5
31914   (eval "$ac_link") 2>conftest.er1
31915   ac_status=$?
31916   grep -v '^ *+' conftest.er1 >conftest.err
31917   rm -f conftest.er1
31918   cat conftest.err >&5
31919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920   (exit $ac_status); } && {
31921          test -z "$ac_c_werror_flag" ||
31922          test ! -s conftest.err
31923        } && test -s conftest$ac_exeext && {
31924          test "$cross_compiling" = yes ||
31925          $as_test_x conftest$ac_exeext
31926        }; then
31927   ac_cv_func_if_nametoindex=yes
31928 else
31929   $as_echo "$as_me: failed program was:" >&5
31930 sed 's/^/| /' conftest.$ac_ext >&5
31931
31932         ac_cv_func_if_nametoindex=no
31933 fi
31934
31935 rm -rf conftest.dSYM
31936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31937       conftest$ac_exeext conftest.$ac_ext
31938 fi
31939 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5
31940 $as_echo "$ac_cv_func_if_nametoindex" >&6; }
31941 if test $ac_cv_func_if_nametoindex = yes; then
31942   ac_cv_have_if_nametoindex=yes
31943 else
31944   ac_cv_have_if_nametoindex=no
31945 fi
31946
31947 case $ac_cv_have_if_nametoindex in
31948 no)
31949         case "$host" in
31950         *-hp-hpux*)
31951                 { $as_echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
31952 $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
31953 if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then
31954   $as_echo_n "(cached) " >&6
31955 else
31956   ac_check_lib_save_LIBS=$LIBS
31957 LIBS="-lipv6  $LIBS"
31958 cat >conftest.$ac_ext <<_ACEOF
31959 /* confdefs.h.  */
31960 _ACEOF
31961 cat confdefs.h >>conftest.$ac_ext
31962 cat >>conftest.$ac_ext <<_ACEOF
31963 /* end confdefs.h.  */
31964
31965 /* Override any GCC internal prototype to avoid an error.
31966    Use char because int might match the return type of a GCC
31967    builtin and then its argument prototype would still apply.  */
31968 #ifdef __cplusplus
31969 extern "C"
31970 #endif
31971 char if_nametoindex ();
31972 int
31973 main ()
31974 {
31975 return if_nametoindex ();
31976   ;
31977   return 0;
31978 }
31979 _ACEOF
31980 rm -f conftest.$ac_objext conftest$ac_exeext
31981 if { (ac_try="$ac_link"
31982 case "(($ac_try" in
31983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984   *) ac_try_echo=$ac_try;;
31985 esac
31986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31987 $as_echo "$ac_try_echo") >&5
31988   (eval "$ac_link") 2>conftest.er1
31989   ac_status=$?
31990   grep -v '^ *+' conftest.er1 >conftest.err
31991   rm -f conftest.er1
31992   cat conftest.err >&5
31993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994   (exit $ac_status); } && {
31995          test -z "$ac_c_werror_flag" ||
31996          test ! -s conftest.err
31997        } && test -s conftest$ac_exeext && {
31998          test "$cross_compiling" = yes ||
31999          $as_test_x conftest$ac_exeext
32000        }; then
32001   ac_cv_lib_ipv6_if_nametoindex=yes
32002 else
32003   $as_echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32005
32006         ac_cv_lib_ipv6_if_nametoindex=no
32007 fi
32008
32009 rm -rf conftest.dSYM
32010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32011       conftest$ac_exeext conftest.$ac_ext
32012 LIBS=$ac_check_lib_save_LIBS
32013 fi
32014 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
32015 $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
32016 if test $ac_cv_lib_ipv6_if_nametoindex = yes; then
32017   ac_cv_have_if_nametoindex=yes
32018                                 LIBS="-lipv6 $LIBS"
32019 fi
32020
32021         ;;
32022         esac
32023 esac
32024 case $ac_cv_have_if_nametoindex in
32025 yes)
32026         ISC_PLATFORM_HAVEIFNAMETOINDEX="#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1"
32027         ;;
32028 *)
32029         ISC_PLATFORM_HAVEIFNAMETOINDEX="#undef ISC_PLATFORM_HAVEIFNAMETOINDEX"
32030         ;;
32031 esac
32032
32033
32034
32035 for ac_func in nanosleep
32036 do
32037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32039 $as_echo_n "checking for $ac_func... " >&6; }
32040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32041   $as_echo_n "(cached) " >&6
32042 else
32043   cat >conftest.$ac_ext <<_ACEOF
32044 /* confdefs.h.  */
32045 _ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h.  */
32049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32051 #define $ac_func innocuous_$ac_func
32052
32053 /* System header to define __stub macros and hopefully few prototypes,
32054     which can conflict with char $ac_func (); below.
32055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32056     <limits.h> exists even on freestanding compilers.  */
32057
32058 #ifdef __STDC__
32059 # include <limits.h>
32060 #else
32061 # include <assert.h>
32062 #endif
32063
32064 #undef $ac_func
32065
32066 /* Override any GCC internal prototype to avoid an error.
32067    Use char because int might match the return type of a GCC
32068    builtin and then its argument prototype would still apply.  */
32069 #ifdef __cplusplus
32070 extern "C"
32071 #endif
32072 char $ac_func ();
32073 /* The GNU C library defines this for functions which it implements
32074     to always fail with ENOSYS.  Some functions are actually named
32075     something starting with __ and the normal name is an alias.  */
32076 #if defined __stub_$ac_func || defined __stub___$ac_func
32077 choke me
32078 #endif
32079
32080 int
32081 main ()
32082 {
32083 return $ac_func ();
32084   ;
32085   return 0;
32086 }
32087 _ACEOF
32088 rm -f conftest.$ac_objext conftest$ac_exeext
32089 if { (ac_try="$ac_link"
32090 case "(($ac_try" in
32091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092   *) ac_try_echo=$ac_try;;
32093 esac
32094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32095 $as_echo "$ac_try_echo") >&5
32096   (eval "$ac_link") 2>conftest.er1
32097   ac_status=$?
32098   grep -v '^ *+' conftest.er1 >conftest.err
32099   rm -f conftest.er1
32100   cat conftest.err >&5
32101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102   (exit $ac_status); } && {
32103          test -z "$ac_c_werror_flag" ||
32104          test ! -s conftest.err
32105        } && test -s conftest$ac_exeext && {
32106          test "$cross_compiling" = yes ||
32107          $as_test_x conftest$ac_exeext
32108        }; then
32109   eval "$as_ac_var=yes"
32110 else
32111   $as_echo "$as_me: failed program was:" >&5
32112 sed 's/^/| /' conftest.$ac_ext >&5
32113
32114         eval "$as_ac_var=no"
32115 fi
32116
32117 rm -rf conftest.dSYM
32118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32119       conftest$ac_exeext conftest.$ac_ext
32120 fi
32121 ac_res=`eval 'as_val=${'$as_ac_var'}
32122                  $as_echo "$as_val"'`
32123                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32124 $as_echo "$ac_res" >&6; }
32125 if test `eval 'as_val=${'$as_ac_var'}
32126                  $as_echo "$as_val"'` = yes; then
32127   cat >>confdefs.h <<_ACEOF
32128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32129 _ACEOF
32130
32131 fi
32132 done
32133
32134
32135 #
32136 # Machine architecture dependent features
32137 #
32138 # Check whether --enable-atomic was given.
32139 if test "${enable_atomic+set}" = set; then
32140   enableval=$enable_atomic; enable_atomic="$enableval"
32141 else
32142   enable_atomic="autodetect"
32143 fi
32144
32145 case "$enable_atomic" in
32146         yes|''|autodetect)
32147                 case "$host" in
32148                 powerpc-ibm-aix*)
32149                         if test "X$GCC" = "Xyes"; then
32150                                 { $as_echo "$as_me:$LINENO: checking if asm(\"isc\"); works" >&5
32151 $as_echo_n "checking if asm(\"isc\"); works... " >&6; }
32152                                 cat >conftest.$ac_ext <<_ACEOF
32153 /* confdefs.h.  */
32154 _ACEOF
32155 cat confdefs.h >>conftest.$ac_ext
32156 cat >>conftest.$ac_ext <<_ACEOF
32157 /* end confdefs.h.  */
32158
32159 int
32160 main ()
32161 {
32162
32163                                 main() { asm("ics"); exit(0); }
32164
32165   ;
32166   return 0;
32167 }
32168 _ACEOF
32169 rm -f conftest.$ac_objext
32170 if { (ac_try="$ac_compile"
32171 case "(($ac_try" in
32172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173   *) ac_try_echo=$ac_try;;
32174 esac
32175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32176 $as_echo "$ac_try_echo") >&5
32177   (eval "$ac_compile") 2>conftest.er1
32178   ac_status=$?
32179   grep -v '^ *+' conftest.er1 >conftest.err
32180   rm -f conftest.er1
32181   cat conftest.err >&5
32182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); } && {
32184          test -z "$ac_c_werror_flag" ||
32185          test ! -s conftest.err
32186        } && test -s conftest.$ac_objext; then
32187   { $as_echo "$as_me:$LINENO: result: yes" >&5
32188 $as_echo "yes" >&6; }
32189                                  use_atomic=yes
32190 else
32191   $as_echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32193
32194
32195                                 saved_cflags="$CFLAGS"
32196                                 CFLAGS="$CFLAGS -Wa,-many"
32197                                 if test "$cross_compiling" = yes; then
32198   { $as_echo "$as_me:$LINENO: result: cross compile, assume yes" >&5
32199 $as_echo "cross compile, assume yes" >&6; }
32200                                  CFLAGS="$saved_cflags"
32201                                  use_atomic=yes
32202 else
32203   cat >conftest.$ac_ext <<_ACEOF
32204 /* confdefs.h.  */
32205 _ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h.  */
32209
32210                                 main() { asm("ics"); exit(0); }
32211
32212 _ACEOF
32213 rm -f conftest$ac_exeext
32214 if { (ac_try="$ac_link"
32215 case "(($ac_try" in
32216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32217   *) ac_try_echo=$ac_try;;
32218 esac
32219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32220 $as_echo "$ac_try_echo") >&5
32221   (eval "$ac_link") 2>&5
32222   ac_status=$?
32223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32225   { (case "(($ac_try" in
32226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227   *) ac_try_echo=$ac_try;;
32228 esac
32229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32230 $as_echo "$ac_try_echo") >&5
32231   (eval "$ac_try") 2>&5
32232   ac_status=$?
32233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234   (exit $ac_status); }; }; then
32235   { $as_echo "$as_me:$LINENO: result: yes, required -Wa,-many" >&5
32236 $as_echo "yes, required -Wa,-many" >&6; }
32237                                  use_atomic=yes
32238 else
32239   $as_echo "$as_me: program exited with status $ac_status" >&5
32240 $as_echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32242
32243 ( exit $ac_status )
32244 { $as_echo "$as_me:$LINENO: result: no, use_atomic disabled" >&5
32245 $as_echo "no, use_atomic disabled" >&6; }
32246                                  CFLAGS="$saved_cflags"
32247                                  use_atomic=no
32248 fi
32249 rm -rf conftest.dSYM
32250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32251 fi
32252
32253
32254
32255
32256 fi
32257
32258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32259                         else
32260                                 use_atomic=yes
32261                         fi
32262                         ;;
32263                 *)
32264                         use_atomic=yes
32265                         ;;
32266                 esac
32267                 ;;
32268         no)
32269                 use_atomic=no
32270                 arch=noatomic
32271                 ;;
32272 esac
32273
32274 ISC_PLATFORM_USEOSFASM="#undef ISC_PLATFORM_USEOSFASM"
32275 if test "$use_atomic" = "yes"; then
32276         { $as_echo "$as_me:$LINENO: checking architecture type for atomic operations" >&5
32277 $as_echo_n "checking architecture type for atomic operations... " >&6; }
32278         have_atomic=yes         # set default
32279         case "$host" in
32280         i[3456]86-*)
32281                 # XXX: some old x86 architectures actually do not support
32282                 #      (some of) these operations.  Do we need stricter checks?
32283 if test "$cross_compiling" = yes; then
32284   arch=x86_32
32285 else
32286   cat >conftest.$ac_ext <<_ACEOF
32287 /* confdefs.h.  */
32288 _ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h.  */
32292
32293 main() {
32294         exit((sizeof(void *) == 8) ? 0 : 1);
32295 }
32296
32297 _ACEOF
32298 rm -f conftest$ac_exeext
32299 if { (ac_try="$ac_link"
32300 case "(($ac_try" in
32301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302   *) ac_try_echo=$ac_try;;
32303 esac
32304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32305 $as_echo "$ac_try_echo") >&5
32306   (eval "$ac_link") 2>&5
32307   ac_status=$?
32308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32310   { (case "(($ac_try" in
32311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312   *) ac_try_echo=$ac_try;;
32313 esac
32314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32315 $as_echo "$ac_try_echo") >&5
32316   (eval "$ac_try") 2>&5
32317   ac_status=$?
32318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319   (exit $ac_status); }; }; then
32320   arch=x86_64
32321                 have_xaddq=yes
32322 else
32323   $as_echo "$as_me: program exited with status $ac_status" >&5
32324 $as_echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32326
32327 ( exit $ac_status )
32328 arch=x86_32
32329 fi
32330 rm -rf conftest.dSYM
32331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32332 fi
32333
32334
32335         ;;
32336         x86_64-*|amd64-*)
32337 if test "$cross_compiling" = yes; then
32338   arch=x86_64
32339                have_xaddq=yes
32340 else
32341   cat >conftest.$ac_ext <<_ACEOF
32342 /* confdefs.h.  */
32343 _ACEOF
32344 cat confdefs.h >>conftest.$ac_ext
32345 cat >>conftest.$ac_ext <<_ACEOF
32346 /* end confdefs.h.  */
32347
32348 main() {
32349        exit((sizeof(void *) == 8) ? 0 : 1);
32350 }
32351
32352 _ACEOF
32353 rm -f conftest$ac_exeext
32354 if { (ac_try="$ac_link"
32355 case "(($ac_try" in
32356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357   *) ac_try_echo=$ac_try;;
32358 esac
32359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32360 $as_echo "$ac_try_echo") >&5
32361   (eval "$ac_link") 2>&5
32362   ac_status=$?
32363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32365   { (case "(($ac_try" in
32366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367   *) ac_try_echo=$ac_try;;
32368 esac
32369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32370 $as_echo "$ac_try_echo") >&5
32371   (eval "$ac_try") 2>&5
32372   ac_status=$?
32373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374   (exit $ac_status); }; }; then
32375   arch=x86_64
32376                have_xaddq=yes
32377 else
32378   $as_echo "$as_me: program exited with status $ac_status" >&5
32379 $as_echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32381
32382 ( exit $ac_status )
32383 arch=x86_32
32384 fi
32385 rm -rf conftest.dSYM
32386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32387 fi
32388
32389
32390         ;;
32391         alpha*-*)
32392                 arch=alpha
32393         ;;
32394         powerpc-*)
32395                 arch=powerpc
32396         ;;
32397         mips-*|mipsel-*|mips64-*|mips64el-*)
32398                 arch=mips
32399         ;;
32400         ia64-*)
32401                 arch=ia64
32402         ;;
32403         *)
32404                 have_atomic=no
32405                 arch=noatomic
32406         ;;
32407         esac
32408         { $as_echo "$as_me:$LINENO: result: $arch" >&5
32409 $as_echo "$arch" >&6; }
32410 fi
32411
32412 if test "$have_atomic" = "yes"; then
32413         { $as_echo "$as_me:$LINENO: checking compiler support for inline assembly code" >&5
32414 $as_echo_n "checking compiler support for inline assembly code... " >&6; }
32415
32416         compiler=generic
32417         # Check whether the compiler supports the assembly syntax we provide.
32418         if test "X$GCC" = "Xyes"; then
32419                 # GCC's ASM extension always works
32420                 compiler=gcc
32421                 if test $arch = "x86_64"; then
32422                         # We can share the same code for gcc with x86_32
32423                         arch=x86_32
32424                 fi
32425                 if test $arch = "powerpc"; then
32426                         #
32427                         # The MacOS (and maybe others) uses "r0" for register
32428                         # zero. Under linux/ibm it is "0" for register 0.
32429                         # Probe to see if we have a MacOS style assembler.
32430                         #
32431                         { $as_echo "$as_me:$LINENO: checking Checking for MacOS style assembler syntax" >&5
32432 $as_echo_n "checking Checking for MacOS style assembler syntax... " >&6; }
32433                         cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h.  */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h.  */
32439
32440 int
32441 main ()
32442 {
32443
32444                         __asm__ volatile ("li r0, 0x0\n"::);
32445
32446   ;
32447   return 0;
32448 }
32449 _ACEOF
32450 rm -f conftest.$ac_objext
32451 if { (ac_try="$ac_compile"
32452 case "(($ac_try" in
32453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454   *) ac_try_echo=$ac_try;;
32455 esac
32456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32457 $as_echo "$ac_try_echo") >&5
32458   (eval "$ac_compile") 2>conftest.er1
32459   ac_status=$?
32460   grep -v '^ *+' conftest.er1 >conftest.err
32461   rm -f conftest.er1
32462   cat conftest.err >&5
32463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464   (exit $ac_status); } && {
32465          test -z "$ac_c_werror_flag" ||
32466          test ! -s conftest.err
32467        } && test -s conftest.$ac_objext; then
32468
32469                         { $as_echo "$as_me:$LINENO: result: yes" >&5
32470 $as_echo "yes" >&6; }
32471                         compiler="mac"
32472                         ISC_PLATFORM_USEMACASM="#define ISC_PLATFORM_USEMACASM 1"
32473
32474 else
32475   $as_echo "$as_me: failed program was:" >&5
32476 sed 's/^/| /' conftest.$ac_ext >&5
32477
32478         { $as_echo "$as_me:$LINENO: result: no" >&5
32479 $as_echo "no" >&6; }
32480 fi
32481
32482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32483                 fi
32484         else
32485                 case "$host" in
32486                 alpha*-dec-osf*)
32487                         # Tru64 compiler has its own syntax for inline
32488                         # assembly.
32489                         cat >conftest.$ac_ext <<_ACEOF
32490 /* confdefs.h.  */
32491 _ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h.  */
32495
32496 int
32497 main ()
32498 {
32499
32500 #ifndef __DECC
32501 #error "unexpected compiler"
32502 #endif
32503                                 return (0);
32504   ;
32505   return 0;
32506 }
32507 _ACEOF
32508 rm -f conftest.$ac_objext
32509 if { (ac_try="$ac_compile"
32510 case "(($ac_try" in
32511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512   *) ac_try_echo=$ac_try;;
32513 esac
32514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32515 $as_echo "$ac_try_echo") >&5
32516   (eval "$ac_compile") 2>conftest.er1
32517   ac_status=$?
32518   grep -v '^ *+' conftest.er1 >conftest.err
32519   rm -f conftest.er1
32520   cat conftest.err >&5
32521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522   (exit $ac_status); } && {
32523          test -z "$ac_c_werror_flag" ||
32524          test ! -s conftest.err
32525        } && test -s conftest.$ac_objext; then
32526   compiler=osf
32527 else
32528   $as_echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32530
32531
32532 fi
32533
32534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32535                 ;;
32536                 powerpc-ibm-aix*)
32537                         compiler=aix
32538                 ;;
32539                 esac
32540         fi
32541         case "$compiler" in
32542         gcc)
32543                 ISC_PLATFORM_USEGCCASM="#define ISC_PLATFORM_USEGCCASM 1"
32544                 ;;
32545         osf)
32546                 ISC_PLATFORM_USEOSFASM="#define ISC_PLATFORM_USEOSFASM 1"
32547                 ;;
32548         aix)
32549                 ;;
32550         mac)
32551                 ;;
32552         *)
32553                 # See if the generic __asm function works.  If not,
32554                 # we need to disable the atomic operations.
32555                 cat >conftest.$ac_ext <<_ACEOF
32556 /* confdefs.h.  */
32557 _ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h.  */
32561
32562 int
32563 main ()
32564 {
32565
32566                                         __asm("nop")
32567
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext conftest$ac_exeext
32573 if { (ac_try="$ac_link"
32574 case "(($ac_try" in
32575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576   *) ac_try_echo=$ac_try;;
32577 esac
32578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32579 $as_echo "$ac_try_echo") >&5
32580   (eval "$ac_link") 2>conftest.er1
32581   ac_status=$?
32582   grep -v '^ *+' conftest.er1 >conftest.err
32583   rm -f conftest.er1
32584   cat conftest.err >&5
32585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586   (exit $ac_status); } && {
32587          test -z "$ac_c_werror_flag" ||
32588          test ! -s conftest.err
32589        } && test -s conftest$ac_exeext && {
32590          test "$cross_compiling" = yes ||
32591          $as_test_x conftest$ac_exeext
32592        }; then
32593   compiler="standard"
32594                 ISC_PLATFORM_USESTDASM="#define ISC_PLATFORM_USESTDASM 1"
32595 else
32596   $as_echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32598
32599         compiler="not supported (atomic operations disabled)"
32600                 have_atomic=no
32601                 arch=noatomic
32602 fi
32603
32604 rm -rf conftest.dSYM
32605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32606       conftest$ac_exeext conftest.$ac_ext;
32607                 ;;
32608         esac
32609
32610         { $as_echo "$as_me:$LINENO: result: $compiler" >&5
32611 $as_echo "$compiler" >&6; }
32612 fi
32613
32614 if test "$have_atomic" = "yes"; then
32615         ISC_PLATFORM_HAVEXADD="#define ISC_PLATFORM_HAVEXADD 1"
32616         ISC_PLATFORM_HAVECMPXCHG="#define ISC_PLATFORM_HAVECMPXCHG 1"
32617         ISC_PLATFORM_HAVEATOMICSTORE="#define ISC_PLATFORM_HAVEATOMICSTORE 1"
32618 else
32619         ISC_PLATFORM_HAVEXADD="#undef ISC_PLATFORM_HAVEXADD"
32620         ISC_PLATFORM_HAVECMPXCHG="#undef ISC_PLATFORM_HAVECMPXCHG"
32621         ISC_PLATFORM_HAVEATOMICSTORE="#undef ISC_PLATFORM_HAVEATOMICSTORE"
32622 fi
32623
32624 if test "$have_xaddq" = "yes"; then
32625         ISC_PLATFORM_HAVEXADDQ="#define ISC_PLATFORM_HAVEXADDQ 1"
32626 else
32627         ISC_PLATFORM_HAVEXADDQ="#undef ISC_PLATFORM_HAVEXADDQ"
32628 fi
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640 ISC_ARCH_DIR=$arch
32641
32642
32643 #
32644 # Activate "rrset-order fixed" or not?
32645 #
32646 # Check whether --enable-fixed-rrset was given.
32647 if test "${enable_fixed_rrset+set}" = set; then
32648   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
32649 else
32650   enable_fixed="no"
32651 fi
32652
32653 case "$enable_fixed" in
32654         yes)
32655
32656 cat >>confdefs.h <<\_ACEOF
32657 #define DNS_RDATASET_FIXED 1
32658 _ACEOF
32659
32660                 ;;
32661         no)
32662                 ;;
32663         *)
32664                 ;;
32665 esac
32666
32667 #
32668 # Activate "filter-aaaa-on-v4" or not?
32669 #
32670 # Check whether --enable-filter-aaaa was given.
32671 if test "${enable_filter_aaaa+set}" = set; then
32672   enableval=$enable_filter_aaaa; enable_filter="$enableval"
32673 else
32674   enable_filter="no"
32675 fi
32676
32677 case "$enable_filter" in
32678         yes)
32679
32680 cat >>confdefs.h <<\_ACEOF
32681 #define ALLOW_FILTER_AAAA_ON_V4 1
32682 _ACEOF
32683
32684                 ;;
32685         no)
32686                 ;;
32687         *)
32688                 ;;
32689 esac
32690
32691 #
32692 #  The following sets up how non-blocking i/o is established.
32693 #  Sunos, cygwin and solaris 2.x (x<5) require special handling.
32694 #
32695 case "$host" in
32696 *-sunos*) cat >>confdefs.h <<\_ACEOF
32697 #define PORT_NONBLOCK O_NDELAY
32698 _ACEOF
32699 ;;
32700 *-cygwin*) cat >>confdefs.h <<\_ACEOF
32701 #define PORT_NONBLOCK O_NDELAY
32702 _ACEOF
32703 ;;
32704 *-solaris2.[01234])
32705         cat >>confdefs.h <<\_ACEOF
32706 #define PORT_NONBLOCK O_NONBLOCK
32707 _ACEOF
32708
32709
32710 cat >>confdefs.h <<\_ACEOF
32711 #define USE_FIONBIO_IOCTL 1
32712 _ACEOF
32713
32714         ;;
32715 *)
32716 cat >>confdefs.h <<\_ACEOF
32717 #define PORT_NONBLOCK O_NONBLOCK
32718 _ACEOF
32719
32720         ;;
32721 esac
32722 #
32723 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
32724 # This prevents the source address being set.
32725 #
32726 case "$host" in
32727 *-solaris2.[012345]|*-solaris2.5.1)
32728
32729 cat >>confdefs.h <<\_ACEOF
32730 #define BROKEN_TCP_BIND_BEFORE_CONNECT 1
32731 _ACEOF
32732
32733         ;;
32734 esac
32735 #
32736 # The following sections deal with tools used for formatting
32737 # the documentation.  They are all optional, unless you are
32738 # a developer editing the documentation source.
32739 #
32740
32741 #
32742 # Look for TeX.
32743 #
32744
32745 for ac_prog in latex
32746 do
32747   # Extract the first word of "$ac_prog", so it can be a program name with args.
32748 set dummy $ac_prog; ac_word=$2
32749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32750 $as_echo_n "checking for $ac_word... " >&6; }
32751 if test "${ac_cv_path_LATEX+set}" = set; then
32752   $as_echo_n "(cached) " >&6
32753 else
32754   case $LATEX in
32755   [\\/]* | ?:[\\/]*)
32756   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
32757   ;;
32758   *)
32759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32760 for as_dir in $PATH
32761 do
32762   IFS=$as_save_IFS
32763   test -z "$as_dir" && as_dir=.
32764   for ac_exec_ext in '' $ac_executable_extensions; do
32765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32766     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
32767     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32768     break 2
32769   fi
32770 done
32771 done
32772 IFS=$as_save_IFS
32773
32774   ;;
32775 esac
32776 fi
32777 LATEX=$ac_cv_path_LATEX
32778 if test -n "$LATEX"; then
32779   { $as_echo "$as_me:$LINENO: result: $LATEX" >&5
32780 $as_echo "$LATEX" >&6; }
32781 else
32782   { $as_echo "$as_me:$LINENO: result: no" >&5
32783 $as_echo "no" >&6; }
32784 fi
32785
32786
32787   test -n "$LATEX" && break
32788 done
32789 test -n "$LATEX" || LATEX="latex"
32790
32791
32792
32793 for ac_prog in pdflatex
32794 do
32795   # Extract the first word of "$ac_prog", so it can be a program name with args.
32796 set dummy $ac_prog; ac_word=$2
32797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32798 $as_echo_n "checking for $ac_word... " >&6; }
32799 if test "${ac_cv_path_PDFLATEX+set}" = set; then
32800   $as_echo_n "(cached) " >&6
32801 else
32802   case $PDFLATEX in
32803   [\\/]* | ?:[\\/]*)
32804   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
32805   ;;
32806   *)
32807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32808 for as_dir in $PATH
32809 do
32810   IFS=$as_save_IFS
32811   test -z "$as_dir" && as_dir=.
32812   for ac_exec_ext in '' $ac_executable_extensions; do
32813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32814     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
32815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32816     break 2
32817   fi
32818 done
32819 done
32820 IFS=$as_save_IFS
32821
32822   ;;
32823 esac
32824 fi
32825 PDFLATEX=$ac_cv_path_PDFLATEX
32826 if test -n "$PDFLATEX"; then
32827   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
32828 $as_echo "$PDFLATEX" >&6; }
32829 else
32830   { $as_echo "$as_me:$LINENO: result: no" >&5
32831 $as_echo "no" >&6; }
32832 fi
32833
32834
32835   test -n "$PDFLATEX" && break
32836 done
32837 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
32838
32839
32840
32841 #
32842 # Look for w3m
32843 #
32844
32845 for ac_prog in w3m
32846 do
32847   # Extract the first word of "$ac_prog", so it can be a program name with args.
32848 set dummy $ac_prog; ac_word=$2
32849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32850 $as_echo_n "checking for $ac_word... " >&6; }
32851 if test "${ac_cv_path_W3M+set}" = set; then
32852   $as_echo_n "(cached) " >&6
32853 else
32854   case $W3M in
32855   [\\/]* | ?:[\\/]*)
32856   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
32857   ;;
32858   *)
32859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32860 for as_dir in $PATH
32861 do
32862   IFS=$as_save_IFS
32863   test -z "$as_dir" && as_dir=.
32864   for ac_exec_ext in '' $ac_executable_extensions; do
32865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32866     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
32867     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32868     break 2
32869   fi
32870 done
32871 done
32872 IFS=$as_save_IFS
32873
32874   ;;
32875 esac
32876 fi
32877 W3M=$ac_cv_path_W3M
32878 if test -n "$W3M"; then
32879   { $as_echo "$as_me:$LINENO: result: $W3M" >&5
32880 $as_echo "$W3M" >&6; }
32881 else
32882   { $as_echo "$as_me:$LINENO: result: no" >&5
32883 $as_echo "no" >&6; }
32884 fi
32885
32886
32887   test -n "$W3M" && break
32888 done
32889 test -n "$W3M" || W3M="w3m"
32890
32891
32892
32893 #
32894 # Look for xsltproc (libxslt)
32895 #
32896
32897 # Extract the first word of "xsltproc", so it can be a program name with args.
32898 set dummy xsltproc; ac_word=$2
32899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32900 $as_echo_n "checking for $ac_word... " >&6; }
32901 if test "${ac_cv_path_XSLTPROC+set}" = set; then
32902   $as_echo_n "(cached) " >&6
32903 else
32904   case $XSLTPROC in
32905   [\\/]* | ?:[\\/]*)
32906   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
32907   ;;
32908   *)
32909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32910 for as_dir in $PATH
32911 do
32912   IFS=$as_save_IFS
32913   test -z "$as_dir" && as_dir=.
32914   for ac_exec_ext in '' $ac_executable_extensions; do
32915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32916     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
32917     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32918     break 2
32919   fi
32920 done
32921 done
32922 IFS=$as_save_IFS
32923
32924   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
32925   ;;
32926 esac
32927 fi
32928 XSLTPROC=$ac_cv_path_XSLTPROC
32929 if test -n "$XSLTPROC"; then
32930   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
32931 $as_echo "$XSLTPROC" >&6; }
32932 else
32933   { $as_echo "$as_me:$LINENO: result: no" >&5
32934 $as_echo "no" >&6; }
32935 fi
32936
32937
32938
32939
32940 #
32941 # Look for xmllint (libxml2)
32942 #
32943
32944 # Extract the first word of "xmllint", so it can be a program name with args.
32945 set dummy xmllint; ac_word=$2
32946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32947 $as_echo_n "checking for $ac_word... " >&6; }
32948 if test "${ac_cv_path_XMLLINT+set}" = set; then
32949   $as_echo_n "(cached) " >&6
32950 else
32951   case $XMLLINT in
32952   [\\/]* | ?:[\\/]*)
32953   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
32954   ;;
32955   *)
32956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32957 for as_dir in $PATH
32958 do
32959   IFS=$as_save_IFS
32960   test -z "$as_dir" && as_dir=.
32961   for ac_exec_ext in '' $ac_executable_extensions; do
32962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32963     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
32964     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32965     break 2
32966   fi
32967 done
32968 done
32969 IFS=$as_save_IFS
32970
32971   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
32972   ;;
32973 esac
32974 fi
32975 XMLLINT=$ac_cv_path_XMLLINT
32976 if test -n "$XMLLINT"; then
32977   { $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
32978 $as_echo "$XMLLINT" >&6; }
32979 else
32980   { $as_echo "$as_me:$LINENO: result: no" >&5
32981 $as_echo "no" >&6; }
32982 fi
32983
32984
32985
32986
32987 #
32988 # Look for Doxygen
32989 #
32990
32991 # Extract the first word of "doxygen", so it can be a program name with args.
32992 set dummy doxygen; ac_word=$2
32993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32994 $as_echo_n "checking for $ac_word... " >&6; }
32995 if test "${ac_cv_path_DOXYGEN+set}" = set; then
32996   $as_echo_n "(cached) " >&6
32997 else
32998   case $DOXYGEN in
32999   [\\/]* | ?:[\\/]*)
33000   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
33001   ;;
33002   *)
33003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33004 for as_dir in $PATH
33005 do
33006   IFS=$as_save_IFS
33007   test -z "$as_dir" && as_dir=.
33008   for ac_exec_ext in '' $ac_executable_extensions; do
33009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33010     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
33011     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33012     break 2
33013   fi
33014 done
33015 done
33016 IFS=$as_save_IFS
33017
33018   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
33019   ;;
33020 esac
33021 fi
33022 DOXYGEN=$ac_cv_path_DOXYGEN
33023 if test -n "$DOXYGEN"; then
33024   { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
33025 $as_echo "$DOXYGEN" >&6; }
33026 else
33027   { $as_echo "$as_me:$LINENO: result: no" >&5
33028 $as_echo "no" >&6; }
33029 fi
33030
33031
33032
33033
33034 #
33035 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
33036 # in a number of directories:
33037 #
33038 #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
33039 #
33040 # If the file FILENAME is found in one of the DIRECTORIES, the shell
33041 # variable VARIABLE is defined to its absolute pathname.  Otherwise,
33042 # it is set to FILENAME, with no directory prefix (that's not terribly
33043 # useful, but looks less confusing in substitutions than leaving it
33044 # empty).  The variable VARIABLE will be substituted into output files.
33045 #
33046
33047
33048
33049 #
33050 # Look for Docbook-XSL stylesheets.  Location probably varies by system.
33051 # If it's not explicitly specified, guess where it might be found, based on
33052 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
33053 # of at the moment).
33054 #
33055 { $as_echo "$as_me:$LINENO: checking for Docbook-XSL path" >&5
33056 $as_echo_n "checking for Docbook-XSL path... " >&6; }
33057
33058 # Check whether --with-docbook-xsl was given.
33059 if test "${with_docbook_xsl+set}" = set; then
33060   withval=$with_docbook_xsl; docbook_path="$withval"
33061 else
33062   docbook_path="auto"
33063 fi
33064
33065 case "$docbook_path" in
33066 auto)
33067         { $as_echo "$as_me:$LINENO: result: auto" >&5
33068 $as_echo "auto" >&6; }
33069         docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook /usr/share/xsl/docbook"
33070         ;;
33071 *)
33072         docbook_xsl_trees="$withval"
33073         { $as_echo "$as_me:$LINENO: result: $docbook_xsl_trees" >&5
33074 $as_echo "$docbook_xsl_trees" >&6; }
33075         ;;
33076 esac
33077
33078 #
33079 # Look for stylesheets we need.
33080 #
33081
33082
33083 XSLT_DOCBOOK_STYLE_HTML=""
33084 { $as_echo "$as_me:$LINENO: checking for html/docbook.xsl" >&5
33085 $as_echo_n "checking for html/docbook.xsl... " >&6; }
33086 for d in $docbook_xsl_trees
33087 do
33088         f=$d/html/docbook.xsl
33089         if test -f $f
33090         then
33091                 XSLT_DOCBOOK_STYLE_HTML=$f
33092                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33093 $as_echo "$f" >&6; }
33094                 break
33095         fi
33096 done
33097 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
33098 then
33099         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33100 $as_echo "\"not found\"" >&6; };
33101         XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
33102 fi
33103
33104
33105
33106 XSLT_DOCBOOK_STYLE_XHTML=""
33107 { $as_echo "$as_me:$LINENO: checking for xhtml/docbook.xsl" >&5
33108 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
33109 for d in $docbook_xsl_trees
33110 do
33111         f=$d/xhtml/docbook.xsl
33112         if test -f $f
33113         then
33114                 XSLT_DOCBOOK_STYLE_XHTML=$f
33115                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33116 $as_echo "$f" >&6; }
33117                 break
33118         fi
33119 done
33120 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
33121 then
33122         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33123 $as_echo "\"not found\"" >&6; };
33124         XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
33125 fi
33126
33127
33128
33129 XSLT_DOCBOOK_STYLE_MAN=""
33130 { $as_echo "$as_me:$LINENO: checking for manpages/docbook.xsl" >&5
33131 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
33132 for d in $docbook_xsl_trees
33133 do
33134         f=$d/manpages/docbook.xsl
33135         if test -f $f
33136         then
33137                 XSLT_DOCBOOK_STYLE_MAN=$f
33138                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33139 $as_echo "$f" >&6; }
33140                 break
33141         fi
33142 done
33143 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
33144 then
33145         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33146 $as_echo "\"not found\"" >&6; };
33147         XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
33148 fi
33149
33150
33151
33152 XSLT_DOCBOOK_CHUNK_HTML=""
33153 { $as_echo "$as_me:$LINENO: checking for html/chunk.xsl" >&5
33154 $as_echo_n "checking for html/chunk.xsl... " >&6; }
33155 for d in $docbook_xsl_trees
33156 do
33157         f=$d/html/chunk.xsl
33158         if test -f $f
33159         then
33160                 XSLT_DOCBOOK_CHUNK_HTML=$f
33161                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33162 $as_echo "$f" >&6; }
33163                 break
33164         fi
33165 done
33166 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
33167 then
33168         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33169 $as_echo "\"not found\"" >&6; };
33170         XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
33171 fi
33172
33173
33174
33175 XSLT_DOCBOOK_CHUNK_XHTML=""
33176 { $as_echo "$as_me:$LINENO: checking for xhtml/chunk.xsl" >&5
33177 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
33178 for d in $docbook_xsl_trees
33179 do
33180         f=$d/xhtml/chunk.xsl
33181         if test -f $f
33182         then
33183                 XSLT_DOCBOOK_CHUNK_XHTML=$f
33184                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33185 $as_echo "$f" >&6; }
33186                 break
33187         fi
33188 done
33189 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
33190 then
33191         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33192 $as_echo "\"not found\"" >&6; };
33193         XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
33194 fi
33195
33196
33197
33198 XSLT_DOCBOOK_CHUNKTOC_HTML=""
33199 { $as_echo "$as_me:$LINENO: checking for html/chunktoc.xsl" >&5
33200 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
33201 for d in $docbook_xsl_trees
33202 do
33203         f=$d/html/chunktoc.xsl
33204         if test -f $f
33205         then
33206                 XSLT_DOCBOOK_CHUNKTOC_HTML=$f
33207                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33208 $as_echo "$f" >&6; }
33209                 break
33210         fi
33211 done
33212 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
33213 then
33214         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33215 $as_echo "\"not found\"" >&6; };
33216         XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
33217 fi
33218
33219
33220
33221 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
33222 { $as_echo "$as_me:$LINENO: checking for xhtml/chunktoc.xsl" >&5
33223 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
33224 for d in $docbook_xsl_trees
33225 do
33226         f=$d/xhtml/chunktoc.xsl
33227         if test -f $f
33228         then
33229                 XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
33230                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33231 $as_echo "$f" >&6; }
33232                 break
33233         fi
33234 done
33235 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
33236 then
33237         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33238 $as_echo "\"not found\"" >&6; };
33239         XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
33240 fi
33241
33242
33243
33244 XSLT_DOCBOOK_MAKETOC_HTML=""
33245 { $as_echo "$as_me:$LINENO: checking for html/maketoc.xsl" >&5
33246 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
33247 for d in $docbook_xsl_trees
33248 do
33249         f=$d/html/maketoc.xsl
33250         if test -f $f
33251         then
33252                 XSLT_DOCBOOK_MAKETOC_HTML=$f
33253                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33254 $as_echo "$f" >&6; }
33255                 break
33256         fi
33257 done
33258 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
33259 then
33260         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33261 $as_echo "\"not found\"" >&6; };
33262         XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
33263 fi
33264
33265
33266
33267 XSLT_DOCBOOK_MAKETOC_XHTML=""
33268 { $as_echo "$as_me:$LINENO: checking for xhtml/maketoc.xsl" >&5
33269 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
33270 for d in $docbook_xsl_trees
33271 do
33272         f=$d/xhtml/maketoc.xsl
33273         if test -f $f
33274         then
33275                 XSLT_DOCBOOK_MAKETOC_XHTML=$f
33276                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33277 $as_echo "$f" >&6; }
33278                 break
33279         fi
33280 done
33281 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
33282 then
33283         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33284 $as_echo "\"not found\"" >&6; };
33285         XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
33286 fi
33287
33288
33289
33290 #
33291 # Same dance for db2latex
33292 #
33293 # No idea where this lives except on FreeBSD.
33294 #
33295
33296 db2latex_xsl_trees="/usr/local/share"
33297
33298 #
33299 # Look for stylesheets we need.
33300 #
33301
33302
33303 XSLT_DB2LATEX_STYLE=""
33304 { $as_echo "$as_me:$LINENO: checking for db2latex/xsl/docbook.xsl" >&5
33305 $as_echo_n "checking for db2latex/xsl/docbook.xsl... " >&6; }
33306 for d in $db2latex_xsl_trees
33307 do
33308         f=$d/db2latex/xsl/docbook.xsl
33309         if test -f $f
33310         then
33311                 XSLT_DB2LATEX_STYLE=$f
33312                 { $as_echo "$as_me:$LINENO: result: $f" >&5
33313 $as_echo "$f" >&6; }
33314                 break
33315         fi
33316 done
33317 if test "X$XSLT_DB2LATEX_STYLE" = "X"
33318 then
33319         { $as_echo "$as_me:$LINENO: result: \"not found\"" >&5
33320 $as_echo "\"not found\"" >&6; };
33321         XSLT_DB2LATEX_STYLE=db2latex/xsl/docbook.xsl
33322 fi
33323
33324
33325
33326 #
33327 # Look for "admonition" image directory.  Can't use NOM_PATH_FILE()
33328 # because it's a directory, so just do the same things, inline.
33329 #
33330
33331 { $as_echo "$as_me:$LINENO: checking for db2latex/xsl/figures" >&5
33332 $as_echo_n "checking for db2latex/xsl/figures... " >&6; }
33333 for d in $db2latex_xsl_trees
33334 do
33335         dd=$d/db2latex/xsl/figures
33336         if test -d $dd
33337         then
33338                 XSLT_DB2LATEX_ADMONITIONS=$dd
33339                 { $as_echo "$as_me:$LINENO: result: $dd" >&5
33340 $as_echo "$dd" >&6; }
33341                 break
33342         fi
33343 done
33344 if test "X$XSLT_DB2LATEX_ADMONITIONS" = "X"
33345 then
33346         { $as_echo "$as_me:$LINENO: result: not found" >&5
33347 $as_echo "not found" >&6; }
33348         XSLT_DB2LATEX_ADMONITIONS=db2latex/xsl/figures
33349 fi
33350
33351
33352 #
33353 # IDN support
33354 #
33355
33356 # Check whether --with-idn was given.
33357 if test "${with_idn+set}" = set; then
33358   withval=$with_idn; use_idn="$withval"
33359 else
33360   use_idn="no"
33361 fi
33362
33363 case "$use_idn" in
33364 yes)
33365         if test X$prefix = XNONE ; then
33366                 idn_path=/usr/local
33367         else
33368                 idn_path=$prefix
33369         fi
33370         ;;
33371 no)
33372         ;;
33373 *)
33374         idn_path="$use_idn"
33375         ;;
33376 esac
33377
33378 iconvinc=
33379 iconvlib=
33380
33381 # Check whether --with-libiconv was given.
33382 if test "${with_libiconv+set}" = set; then
33383   withval=$with_libiconv; use_libiconv="$withval"
33384 else
33385   use_libiconv="no"
33386 fi
33387
33388 case "$use_libiconv" in
33389 yes)
33390         if test X$prefix = XNONE ; then
33391                 iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
33392         else
33393                 iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
33394         fi
33395         ;;
33396 no)
33397         iconvlib=
33398         ;;
33399 *)
33400         iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
33401         ;;
33402 esac
33403
33404
33405 # Check whether --with-iconv was given.
33406 if test "${with_iconv+set}" = set; then
33407   withval=$with_iconv; iconvlib="$withval"
33408 fi
33409
33410 case "$iconvlib" in
33411 no)
33412         iconvlib=
33413         ;;
33414 yes)
33415         iconvlib=-liconv
33416         ;;
33417 esac
33418
33419
33420 # Check whether --with-idnlib was given.
33421 if test "${with_idnlib+set}" = set; then
33422   withval=$with_idnlib; idnlib="$withval"
33423 else
33424   idnlib="no"
33425 fi
33426
33427 if test "$idnlib" = yes; then
33428         { { $as_echo "$as_me:$LINENO: error: You must specify ARG for --with-idnlib." >&5
33429 $as_echo "$as_me: error: You must specify ARG for --with-idnlib." >&2;}
33430    { (exit 1); exit 1; }; }
33431 fi
33432
33433 IDNLIBS=
33434 if test "$use_idn" != no; then
33435
33436 cat >>confdefs.h <<\_ACEOF
33437 #define WITH_IDN 1
33438 _ACEOF
33439
33440         STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
33441         if test "$idnlib" != no; then
33442                 IDNLIBS="$idnlib $iconvlib"
33443         else
33444                 IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
33445         fi
33446 fi
33447
33448
33449
33450 for ac_header in locale.h
33451 do
33452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33454   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33455 $as_echo_n "checking for $ac_header... " >&6; }
33456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33457   $as_echo_n "(cached) " >&6
33458 fi
33459 ac_res=`eval 'as_val=${'$as_ac_Header'}
33460                  $as_echo "$as_val"'`
33461                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33462 $as_echo "$ac_res" >&6; }
33463 else
33464   # Is the header compilable?
33465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33466 $as_echo_n "checking $ac_header usability... " >&6; }
33467 cat >conftest.$ac_ext <<_ACEOF
33468 /* confdefs.h.  */
33469 _ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h.  */
33473 $ac_includes_default
33474 #include <$ac_header>
33475 _ACEOF
33476 rm -f conftest.$ac_objext
33477 if { (ac_try="$ac_compile"
33478 case "(($ac_try" in
33479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480   *) ac_try_echo=$ac_try;;
33481 esac
33482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33483 $as_echo "$ac_try_echo") >&5
33484   (eval "$ac_compile") 2>conftest.er1
33485   ac_status=$?
33486   grep -v '^ *+' conftest.er1 >conftest.err
33487   rm -f conftest.er1
33488   cat conftest.err >&5
33489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490   (exit $ac_status); } && {
33491          test -z "$ac_c_werror_flag" ||
33492          test ! -s conftest.err
33493        } && test -s conftest.$ac_objext; then
33494   ac_header_compiler=yes
33495 else
33496   $as_echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33498
33499         ac_header_compiler=no
33500 fi
33501
33502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33504 $as_echo "$ac_header_compiler" >&6; }
33505
33506 # Is the header present?
33507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33508 $as_echo_n "checking $ac_header presence... " >&6; }
33509 cat >conftest.$ac_ext <<_ACEOF
33510 /* confdefs.h.  */
33511 _ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h.  */
33515 #include <$ac_header>
33516 _ACEOF
33517 if { (ac_try="$ac_cpp conftest.$ac_ext"
33518 case "(($ac_try" in
33519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33520   *) ac_try_echo=$ac_try;;
33521 esac
33522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33523 $as_echo "$ac_try_echo") >&5
33524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33525   ac_status=$?
33526   grep -v '^ *+' conftest.er1 >conftest.err
33527   rm -f conftest.er1
33528   cat conftest.err >&5
33529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530   (exit $ac_status); } >/dev/null && {
33531          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33532          test ! -s conftest.err
33533        }; then
33534   ac_header_preproc=yes
33535 else
33536   $as_echo "$as_me: failed program was:" >&5
33537 sed 's/^/| /' conftest.$ac_ext >&5
33538
33539   ac_header_preproc=no
33540 fi
33541
33542 rm -f conftest.err conftest.$ac_ext
33543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33544 $as_echo "$ac_header_preproc" >&6; }
33545
33546 # So?  What about this header?
33547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33548   yes:no: )
33549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33553     ac_header_preproc=yes
33554     ;;
33555   no:yes:* )
33556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33559 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33563 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33568
33569     ;;
33570 esac
33571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33572 $as_echo_n "checking for $ac_header... " >&6; }
33573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33574   $as_echo_n "(cached) " >&6
33575 else
33576   eval "$as_ac_Header=\$ac_header_preproc"
33577 fi
33578 ac_res=`eval 'as_val=${'$as_ac_Header'}
33579                  $as_echo "$as_val"'`
33580                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33581 $as_echo "$ac_res" >&6; }
33582
33583 fi
33584 if test `eval 'as_val=${'$as_ac_Header'}
33585                  $as_echo "$as_val"'` = yes; then
33586   cat >>confdefs.h <<_ACEOF
33587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33588 _ACEOF
33589
33590 fi
33591
33592 done
33593
33594
33595 for ac_func in setlocale
33596 do
33597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33598 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33599 $as_echo_n "checking for $ac_func... " >&6; }
33600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33601   $as_echo_n "(cached) " >&6
33602 else
33603   cat >conftest.$ac_ext <<_ACEOF
33604 /* confdefs.h.  */
33605 _ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h.  */
33609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33611 #define $ac_func innocuous_$ac_func
33612
33613 /* System header to define __stub macros and hopefully few prototypes,
33614     which can conflict with char $ac_func (); below.
33615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33616     <limits.h> exists even on freestanding compilers.  */
33617
33618 #ifdef __STDC__
33619 # include <limits.h>
33620 #else
33621 # include <assert.h>
33622 #endif
33623
33624 #undef $ac_func
33625
33626 /* Override any GCC internal prototype to avoid an error.
33627    Use char because int might match the return type of a GCC
33628    builtin and then its argument prototype would still apply.  */
33629 #ifdef __cplusplus
33630 extern "C"
33631 #endif
33632 char $ac_func ();
33633 /* The GNU C library defines this for functions which it implements
33634     to always fail with ENOSYS.  Some functions are actually named
33635     something starting with __ and the normal name is an alias.  */
33636 #if defined __stub_$ac_func || defined __stub___$ac_func
33637 choke me
33638 #endif
33639
33640 int
33641 main ()
33642 {
33643 return $ac_func ();
33644   ;
33645   return 0;
33646 }
33647 _ACEOF
33648 rm -f conftest.$ac_objext conftest$ac_exeext
33649 if { (ac_try="$ac_link"
33650 case "(($ac_try" in
33651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33652   *) ac_try_echo=$ac_try;;
33653 esac
33654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33655 $as_echo "$ac_try_echo") >&5
33656   (eval "$ac_link") 2>conftest.er1
33657   ac_status=$?
33658   grep -v '^ *+' conftest.er1 >conftest.err
33659   rm -f conftest.er1
33660   cat conftest.err >&5
33661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662   (exit $ac_status); } && {
33663          test -z "$ac_c_werror_flag" ||
33664          test ! -s conftest.err
33665        } && test -s conftest$ac_exeext && {
33666          test "$cross_compiling" = yes ||
33667          $as_test_x conftest$ac_exeext
33668        }; then
33669   eval "$as_ac_var=yes"
33670 else
33671   $as_echo "$as_me: failed program was:" >&5
33672 sed 's/^/| /' conftest.$ac_ext >&5
33673
33674         eval "$as_ac_var=no"
33675 fi
33676
33677 rm -rf conftest.dSYM
33678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33679       conftest$ac_exeext conftest.$ac_ext
33680 fi
33681 ac_res=`eval 'as_val=${'$as_ac_var'}
33682                  $as_echo "$as_val"'`
33683                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33684 $as_echo "$ac_res" >&6; }
33685 if test `eval 'as_val=${'$as_ac_var'}
33686                  $as_echo "$as_val"'` = yes; then
33687   cat >>confdefs.h <<_ACEOF
33688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33689 _ACEOF
33690
33691 fi
33692 done
33693
33694
33695 #
33696 # Substitutions
33697 #
33698
33699 BIND9_TOP_BUILDDIR=`pwd`
33700
33701
33702
33703
33704
33705
33706
33707 if test "X$srcdir" != "X"; then
33708         BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
33709         BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
33710         BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
33711         BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
33712         BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
33713         BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
33714 else
33715         BIND9_ISC_BUILDINCLUDE=""
33716         BIND9_ISCCC_BUILDINCLUDE=""
33717         BIND9_ISCCFG_BUILDINCLUDE=""
33718         BIND9_DNS_BUILDINCLUDE=""
33719         BIND9_LWRES_BUILDINCLUDE=""
33720         BIND9_BIND9_BUILDINCLUDE=""
33721 fi
33722
33723
33724 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
33725
33726
33727 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
33728
33729 . $srcdir/version
33730 BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
33731
33732
33733 if test -z "$ac_configure_args"; then
33734         BIND9_CONFIGARGS="defaults"
33735 else
33736         for a in $ac_configure_args
33737         do
33738                 BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
33739         done
33740 fi
33741 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
33742 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
33743
33744
33745
33746 LIBISC_API=$srcdir/lib/isc/api
33747
33748
33749 LIBISCCC_API=$srcdir/lib/isccc/api
33750
33751
33752 LIBISCCFG_API=$srcdir/lib/isccfg/api
33753
33754
33755 LIBDNS_API=$srcdir/lib/dns/api
33756
33757
33758 LIBBIND9_API=$srcdir/lib/bind9/api
33759
33760
33761 LIBLWRES_API=$srcdir/lib/lwres/api
33762
33763
33764 LIBIRS_API=$srcdir/lib/irs/api
33765
33766 #
33767 # Configure any DLZ drivers.
33768 #
33769 # If config.dlz.in selects one or more DLZ drivers, it will set
33770 # USE_DLZ to a non-empty value, which will be our clue to
33771 # enable the DLZ core functions.
33772 #
33773 # This section has to come after the libtool stuff because it needs to
33774 # know how to name the driver object files.
33775 #
33776
33777 USE_DLZ=""
33778 DLZ_DRIVER_INCLUDES=""
33779 DLZ_DRIVER_LIBS=""
33780 DLZ_DRIVER_SRCS=""
33781 DLZ_DRIVER_OBJS=""
33782
33783 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
33784 #
33785 # Permission to use, copy, modify, and distribute this software for any
33786 # purpose with or without fee is hereby granted, provided that the above
33787 # copyright notice and this permission notice appear in all copies.
33788 #
33789 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
33790 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33791 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
33792 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33793 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
33794 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33795 # PERFORMANCE OF THIS SOFTWARE.
33796
33797 #
33798 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
33799 #
33800 dlzdir='${DLZ_DRIVER_DIR}'
33801
33802 #
33803 # Private autoconf macro to simplify configuring drivers:
33804 #
33805 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
33806 #
33807 # where:
33808 #   DEFINE is FOO (to define -DDLZ_FOO)
33809 #   DRIVER is dlz_foo_driver (sources without the .c)
33810 #   INCLUDES is any necessary include definitions
33811 #   LIBS is any necessary library definitions
33812 #
33813
33814
33815 #
33816 # Check for the various DLZ drivers
33817 #
33818
33819 #
33820 # Was --with-dlz-postgres specified?
33821 #
33822
33823 { $as_echo "$as_me:$LINENO: checking for Postgres DLZ driver" >&5
33824 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
33825
33826 # Check whether --with-dlz_postgres was given.
33827 if test "${with_dlz_postgres+set}" = set; then
33828   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
33829 else
33830   use_dlz_postgres="no"
33831 fi
33832
33833
33834 if test "$use_dlz_postgres" = "yes"
33835 then
33836         # User did not specify a path - guess it
33837         # Ask Postgres to tell us where it is
33838
33839         for ac_prog in pg_config
33840 do
33841   # Extract the first word of "$ac_prog", so it can be a program name with args.
33842 set dummy $ac_prog; ac_word=$2
33843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33844 $as_echo_n "checking for $ac_word... " >&6; }
33845 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
33846   $as_echo_n "(cached) " >&6
33847 else
33848   case $PG_CONFIG in
33849   [\\/]* | ?:[\\/]*)
33850   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
33851   ;;
33852   *)
33853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33854 for as_dir in $PATH
33855 do
33856   IFS=$as_save_IFS
33857   test -z "$as_dir" && as_dir=.
33858   for ac_exec_ext in '' $ac_executable_extensions; do
33859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33860     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33861     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33862     break 2
33863   fi
33864 done
33865 done
33866 IFS=$as_save_IFS
33867
33868   ;;
33869 esac
33870 fi
33871 PG_CONFIG=$ac_cv_path_PG_CONFIG
33872 if test -n "$PG_CONFIG"; then
33873   { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
33874 $as_echo "$PG_CONFIG" >&6; }
33875 else
33876   { $as_echo "$as_me:$LINENO: result: no" >&5
33877 $as_echo "no" >&6; }
33878 fi
33879
33880
33881   test -n "$PG_CONFIG" && break
33882 done
33883 test -n "$PG_CONFIG" || PG_CONFIG="not found"
33884
33885
33886         if test "$PG_CONFIG" != "not found"
33887         then
33888                 use_dlz_postgres=`$PG_CONFIG --includedir`
33889                 use_dlz_postgres_lib=`$PG_CONFIG --libdir`
33890         fi
33891 fi
33892
33893 if test "$use_dlz_postgres" = "yes"
33894 then
33895         # User did not specify path and Postgres didn't say - guess it
33896
33897         pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
33898         for d in $pgdirs
33899         do
33900                 if test -f $d/include/libpq-fe.h
33901                 then
33902                         use_dlz_postgres=$d/include
33903                         use_dlz_postgres_lib=$d/lib
33904                         break
33905                 fi
33906         done
33907 fi
33908
33909 if test "$use_dlz_postgres" = "yes"
33910 then
33911         # Still no joy, give up
33912
33913         { $as_echo "$as_me:$LINENO: result: not found" >&5
33914 $as_echo "not found" >&6; }
33915         { { $as_echo "$as_me:$LINENO: 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" >&5
33916 $as_echo "$as_me: 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" >&2;}
33917    { (exit 1); exit 1; }; }
33918 fi
33919
33920 case "$use_dlz_postgres" in
33921         no)
33922                 { $as_echo "$as_me:$LINENO: result: no" >&5
33923 $as_echo "no" >&6; }
33924                 ;;
33925         *)
33926
33927         USE_DLZ="$USE_DLZ -DDLZ_POSTGRES"
33928         for i in dlz_postgres_driver
33929         do
33930                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
33931                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
33932         done
33933         if test -n "-I$use_dlz_postgres"
33934         then
33935                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
33936         fi
33937         if test -n "-L$use_dlz_postgres_lib -lpq"
33938         then
33939                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
33940         fi
33941
33942
33943                 { $as_echo "$as_me:$LINENO: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
33944 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
33945                 ;;
33946 esac
33947
33948
33949 #
33950 # Was --with-dlz-mysql specified?
33951 #
33952
33953 { $as_echo "$as_me:$LINENO: checking for MySQL DLZ driver" >&5
33954 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
33955
33956 # Check whether --with-dlz_mysql was given.
33957 if test "${with_dlz_mysql+set}" = set; then
33958   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
33959 else
33960   use_dlz_mysql="no"
33961 fi
33962
33963
33964 mysql_include=""
33965 mysql_lib=""
33966 if test "$use_dlz_mysql" = "yes"
33967 then
33968         # User did not specify a path - guess it
33969         mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
33970         for d in $mysqldirs
33971         do
33972                 if test -f $d/include/mysql/mysql.h
33973                 then
33974                         use_dlz_mysql=$d
33975                         mysql_include=$d/include/mysql
33976                         if test -d $d/lib/mysql
33977                         then
33978                                 mysql_lib=$d/lib/mysql
33979                         else
33980                                 mysql_lib=$d/lib
33981                         fi
33982                         break
33983                 elif test -f $d/include/mysql.h
33984                 then
33985                         use_dlz_mysql=$d
33986                         mysql_include=$d/include
33987                         if test -d $d/lib/mysql
33988                         then
33989                                 mysql_lib=$d/lib/mysql
33990                         else
33991                                 mysql_lib=$d/lib
33992                         fi
33993                         break
33994                 fi
33995         done
33996 elif test "$use_dlz_mysql" != "no"
33997 then
33998         d=$use_dlz_mysql
33999         if test -f $d/include/mysql/mysql.h
34000         then
34001                 mysql_include=$d/include/mysql
34002                 if test -d $d/lib/mysql
34003                 then
34004                         mysql_lib=$d/lib/mysql
34005                 else
34006                         mysql_lib=$d/lib
34007                 fi
34008         elif test -f $d/include/mysql.h
34009         then
34010                 mysql_include=$d/include
34011                 if test -d $d/lib/mysql
34012                 then
34013                         mysql_lib=$d/lib/mysql
34014                 else
34015                         mysql_lib=$d/lib
34016                 fi
34017         fi
34018 fi
34019
34020 if test "$use_dlz_mysql" = "yes"
34021 then
34022         { $as_echo "$as_me:$LINENO: result: not found" >&5
34023 $as_echo "not found" >&6; }
34024         { { $as_echo "$as_me:$LINENO: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&5
34025 $as_echo "$as_me: error: MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" >&2;}
34026    { (exit 1); exit 1; }; }
34027 fi
34028
34029 case "$use_dlz_mysql" in
34030         no)
34031                 { $as_echo "$as_me:$LINENO: result: no" >&5
34032 $as_echo "no" >&6; }
34033                 ;;
34034         *)
34035
34036         USE_DLZ="$USE_DLZ -DDLZ_MYSQL"
34037         for i in dlz_mysql_driver
34038         do
34039                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34040                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34041         done
34042         if test -n "-I${mysql_include}"
34043         then
34044                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
34045         fi
34046         if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
34047         then
34048                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
34049         fi
34050
34051
34052                 { $as_echo "$as_me:$LINENO: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
34053 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
34054                 ;;
34055 esac
34056
34057
34058 #
34059 # Was --with-dlz-bdb specified?
34060 #
34061
34062 { $as_echo "$as_me:$LINENO: checking for Berkeley DB DLZ driver" >&5
34063 $as_echo_n "checking for Berkeley DB DLZ driver... " >&6; }
34064
34065 # Check whether --with-dlz_bdb was given.
34066 if test "${with_dlz_bdb+set}" = set; then
34067   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
34068 else
34069   use_dlz_bdb="no"
34070 fi
34071
34072
34073 case "$use_dlz_bdb" in
34074         no)
34075                 { $as_echo "$as_me:$LINENO: result: no" >&5
34076 $as_echo "no" >&6; }
34077                 ;;
34078         *)
34079                 if test "$use_dlz_bdb" = "yes"
34080                 then
34081                         # User did not specify a path - guess directories
34082                         bdbdirs="/usr/local /usr/pkg /usr"
34083                 elif test -d "$use_dlz_bdb"
34084                 then
34085                         # User specified directory and it exists
34086                         bdbdirs="$use_dlz_bdb"
34087                 else
34088                         { $as_echo "$as_me:$LINENO: result: not found" >&5
34089 $as_echo "not found" >&6; }
34090                         { { $as_echo "$as_me:$LINENO: error: path $use_dlz_bdb does not exist" >&5
34091 $as_echo "$as_me: error: path $use_dlz_bdb does not exist" >&2;}
34092    { (exit 1); exit 1; }; }
34093                         bdbdirs=""
34094                 fi
34095
34096                 # Use path we were given or guessed.  This is insanely
34097                 # complicated because we have to search for a bunch of
34098                 # platform-specific variations and have to check
34099                 # separately for include and library directories.
34100
34101                 # Set both to yes, so we can check them later
34102                 dlz_bdb_inc="yes"
34103                 dlz_bdb_libs="yes"
34104
34105                 for dd in $bdbdirs
34106                 do
34107                         # Skip nonexistant directories
34108                         if test ! -d "$dd"
34109                         then
34110                                 continue
34111                         fi
34112
34113                         # Check other locations for includes.
34114                         # Order is important (sigh).
34115
34116                         bdb_incdirs="/ /db42/ /db41/ /db4/ /db/"
34117                         for d in $bdb_incdirs
34118                         do
34119                                 if test -f "$dd/include${d}db.h"
34120                                 then
34121                                         dlz_bdb_inc="-I$dd/include${d}"
34122                                         break
34123                                 fi
34124                         done
34125
34126                         # Give up on this directory if we couldn't
34127                         # find the include subdir
34128
34129                         if test "$dlz_bdb_inc" = "yes"
34130                         then
34131                                 continue
34132                         fi
34133
34134                         # Look for libname other than libdb.so.
34135                         # Order is important (sigh).
34136
34137                         bdb_libnames="db42 db-4.2 db41 db-4.1 db"
34138                         for d in $bdb_libnames
34139                         do
34140                                 if test -f "$dd/lib/lib${d}.so"
34141                                 then
34142                                         if test "$dd" != "/usr"
34143                                         then
34144                                                 dlz_bdb_libs="-L${dd}/lib "
34145                                         else
34146                                                 dlz_bdb_libs=""
34147                                         fi
34148                                         dlz_bdb_libs="${dlz_bdb_libs}-l${d}"
34149                                         break
34150                                 fi
34151                         done
34152
34153                         # If we found both incdir and lib, we're done
34154                         if test "$dlz_bdb_libs" != "yes"
34155                         then
34156                                 break
34157                         fi
34158
34159                         # Otherwise, we're starting over
34160
34161                         dlz_bdb_inc="yes"
34162                         dlz_bdb_libs="yes"
34163                 done
34164
34165                 # Done searching, now make sure we got everything.
34166
34167                 if test "$dlz_bdb_inc" = "yes"
34168                 then
34169                         { $as_echo "$as_me:$LINENO: result: not found" >&5
34170 $as_echo "not found" >&6; }
34171                         { { $as_echo "$as_me:$LINENO: error: could not find Berkeley DB include directory" >&5
34172 $as_echo "$as_me: error: could not find Berkeley DB include directory" >&2;}
34173    { (exit 1); exit 1; }; }
34174                 fi
34175
34176                 if test "$dlz_bdb_libs" = "yes"
34177                 then
34178                         { $as_echo "$as_me:$LINENO: result: not found" >&5
34179 $as_echo "not found" >&6; }
34180                         { { $as_echo "$as_me:$LINENO: error: could not find Berkeley DB library" >&5
34181 $as_echo "$as_me: error: could not find Berkeley DB library" >&2;}
34182    { (exit 1); exit 1; }; }
34183                 fi
34184
34185
34186         USE_DLZ="$USE_DLZ -DDLZ_BDB"
34187         for i in dlz_bdb_driver dlz_bdbhpt_driver
34188         do
34189                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34190                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34191         done
34192         if test -n "$dlz_bdb_inc"
34193         then
34194                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
34195         fi
34196         if test -n "$dlz_bdb_libs"
34197         then
34198                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
34199         fi
34200
34201
34202                 { $as_echo "$as_me:$LINENO: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
34203 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
34204
34205                 ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
34206
34207                 ;;
34208 esac
34209
34210
34211 #
34212 # Was --with-dlz-filesystem specified?
34213 #
34214
34215 { $as_echo "$as_me:$LINENO: checking for file system DLZ driver" >&5
34216 $as_echo_n "checking for file system DLZ driver... " >&6; }
34217
34218 # Check whether --with-dlz_filesystem was given.
34219 if test "${with_dlz_filesystem+set}" = set; then
34220   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
34221 else
34222   use_dlz_filesystem="no"
34223 fi
34224
34225
34226 case "$use_dlz_filesystem" in
34227         no)
34228                 { $as_echo "$as_me:$LINENO: result: no" >&5
34229 $as_echo "no" >&6; }
34230                 ;;
34231         *)
34232
34233         USE_DLZ="$USE_DLZ -DDLZ_FILESYSTEM"
34234         for i in dlz_filesystem_driver
34235         do
34236                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34237                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34238         done
34239         if test -n ""
34240         then
34241                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
34242         fi
34243         if test -n ""
34244         then
34245                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
34246         fi
34247
34248
34249                 { $as_echo "$as_me:$LINENO: result: yes" >&5
34250 $as_echo "yes" >&6; }
34251                 ;;
34252 esac
34253
34254
34255 #
34256 # Was --with-dlz-ldap specified?
34257 #
34258
34259 { $as_echo "$as_me:$LINENO: checking for LDAP DLZ driver" >&5
34260 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
34261
34262 # Check whether --with-dlz_ldap was given.
34263 if test "${with_dlz_ldap+set}" = set; then
34264   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
34265 else
34266   use_dlz_ldap="no"
34267 fi
34268
34269
34270 if test "$use_dlz_ldap" = "yes"
34271 then
34272         # User did not specify a path - guess it
34273         ldapdirs="/usr /usr/local /usr/pkg"
34274         for d in $ldapdirs
34275         do
34276                 if test -f $d/include/ldap.h
34277                 then
34278                         use_dlz_ldap=$d
34279                         break
34280                 fi
34281         done
34282 fi
34283
34284 if test "$use_dlz_ldap" = "yes"
34285 then
34286         { $as_echo "$as_me:$LINENO: result: not found" >&5
34287 $as_echo "not found" >&6; }
34288         { { $as_echo "$as_me:$LINENO: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&5
34289 $as_echo "$as_me: error: LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" >&2;}
34290    { (exit 1); exit 1; }; }
34291 fi
34292
34293 case "$use_dlz_ldap" in
34294         no)
34295                 { $as_echo "$as_me:$LINENO: result: no" >&5
34296 $as_echo "no" >&6; }
34297                 ;;
34298         *)
34299
34300         USE_DLZ="$USE_DLZ -DDLZ_LDAP"
34301         for i in dlz_ldap_driver
34302         do
34303                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34304                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34305         done
34306         if test -n "-I$use_dlz_ldap/include"
34307         then
34308                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
34309         fi
34310         if test -n "-L$use_dlz_ldap/lib -lldap -llber"
34311         then
34312                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
34313         fi
34314
34315
34316                 { $as_echo "$as_me:$LINENO: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
34317 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
34318                 ;;
34319 esac
34320
34321
34322 #
34323 # Was --with-dlz-odbc specified?
34324 #
34325
34326 { $as_echo "$as_me:$LINENO: checking for ODBC DLZ driver" >&5
34327 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
34328
34329 # Check whether --with-dlz_odbc was given.
34330 if test "${with_dlz_odbc+set}" = set; then
34331   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
34332 else
34333   use_dlz_odbc="no"
34334 fi
34335
34336
34337 if test "$use_dlz_odbc" = "yes"
34338 then
34339         # User did not specify a path - guess it
34340         odbcdirs="/usr /usr/local /usr/pkg"
34341         for d in $odbcdirs
34342         do
34343                 if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
34344                 then
34345                         use_dlz_odbc=$d
34346                         break
34347                 fi
34348         done
34349 fi
34350
34351 case "$use_dlz_odbc" in
34352         no)
34353                 { $as_echo "$as_me:$LINENO: result: no" >&5
34354 $as_echo "no" >&6; }
34355                 ;;
34356         yes)
34357                 { $as_echo "$as_me:$LINENO: result: not found" >&5
34358 $as_echo "not found" >&6; }
34359                 { { $as_echo "$as_me:$LINENO: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&5
34360 $as_echo "$as_me: error: ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" >&2;}
34361    { (exit 1); exit 1; }; }
34362                 ;;
34363         *)
34364
34365         USE_DLZ="$USE_DLZ -DDLZ_ODBC"
34366         for i in dlz_odbc_driver
34367         do
34368                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34369                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34370         done
34371         if test -n "-I$use_dlz_odbc/include"
34372         then
34373                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_odbc/include"
34374         fi
34375         if test -n "-L$use_dlz_odbc/lib -lodbc"
34376         then
34377                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_odbc/lib -lodbc"
34378         fi
34379
34380
34381                 { $as_echo "$as_me:$LINENO: result: using ODBC from $use_dlz_odbc" >&5
34382 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
34383                 ;;
34384 esac
34385
34386
34387 #
34388 # Was --with-dlz-stub specified?
34389 #
34390
34391 { $as_echo "$as_me:$LINENO: checking for stub DLZ driver" >&5
34392 $as_echo_n "checking for stub DLZ driver... " >&6; }
34393
34394 # Check whether --with-dlz_stub was given.
34395 if test "${with_dlz_stub+set}" = set; then
34396   withval=$with_dlz_stub; use_dlz_stub="$withval"
34397 else
34398   use_dlz_stub="no"
34399 fi
34400
34401
34402 case "$use_dlz_stub" in
34403         no)
34404                 { $as_echo "$as_me:$LINENO: result: no" >&5
34405 $as_echo "no" >&6; }
34406                 ;;
34407         *)
34408
34409
34410         USE_DLZ="$USE_DLZ -DDLZ_STUB"
34411         for i in dlz_stub_driver
34412         do
34413                 DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
34414                 DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
34415         done
34416         if test -n ""
34417         then
34418                 DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
34419         fi
34420         if test -n ""
34421         then
34422                 DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
34423         fi
34424
34425
34426                 { $as_echo "$as_me:$LINENO: result: yes" >&5
34427 $as_echo "yes" >&6; }
34428                 ;;
34429 esac
34430
34431
34432 # Add any additional DLZ drivers here.
34433
34434 #
34435 # Finally, some generic stuff that applies to all drivers, assuming
34436 # we're compiling DLZ at all.
34437 #
34438 if test -n "$USE_DLZ"
34439 then
34440         #
34441         # Where to find DLZ driver header files.
34442         #
34443         DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
34444
34445         #
34446         # Initialization and shutdown wrappers, helper functions.
34447         #
34448         DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
34449         DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
34450 fi
34451
34452
34453 { $as_echo "$as_me:$LINENO: checking for DLZ" >&5
34454 $as_echo_n "checking for DLZ... " >&6; }
34455
34456 if test -n "$USE_DLZ"
34457 then
34458         { $as_echo "$as_me:$LINENO: result: yes" >&5
34459 $as_echo "yes" >&6; }
34460         USE_DLZ="-DDLZ $USE_DLZ"
34461         DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
34462         ac_config_files="$ac_config_files $DLZ_DRIVER_RULES"
34463
34464 else
34465         { $as_echo "$as_me:$LINENO: result: no" >&5
34466 $as_echo "no" >&6; }
34467         DLZ_DRIVER_RULES=/dev/null
34468 fi
34469
34470
34471
34472
34473
34474
34475
34476
34477 if test "$cross_compiling" = "yes"; then
34478         if test -z "$BUILD_CC"; then
34479                 { { $as_echo "$as_me:$LINENO: error: BUILD_CC not set" >&5
34480 $as_echo "$as_me: error: BUILD_CC not set" >&2;}
34481    { (exit 1); exit 1; }; }
34482         fi
34483         BUILD_CFLAGS="$BUILD_CFLAGS"
34484         BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
34485         BUILD_LDFLAGS="$BUILD_LDFLAGS"
34486         BUILD_LIBS="$BUILD_LIBS"
34487 else
34488         BUILD_CC="$CC"
34489         BUILD_CFLAGS="$CFLAGS"
34490         BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
34491         BUILD_LDFLAGS="$LDFLAGS"
34492         BUILD_LIBS="$LIBS"
34493 fi
34494
34495 NEWFLAGS=""
34496 for e in $BUILD_LDFLAGS ; do
34497     case $e in
34498         -L*)
34499             case $host_os in
34500                 netbsd*)
34501                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34502                     NEWFLAGS="$NEWFLAGS $e $ee"
34503                     ;;
34504                 freebsd*)
34505                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34506                     NEWFLAGS="$NEWFLAGS $e $ee"
34507                     ;;
34508                 solaris*)
34509                     ee=`echo $e | sed -e 's%^-L%-R%'`
34510                     NEWFLAGS="$NEWFLAGS $e $ee"
34511                     ;;
34512                 *)
34513                     NEWFLAGS="$NEWFLAGS $e"
34514                     ;;
34515                 esac
34516             ;;
34517         *)
34518             NEWFLAGS="$NEWFLAGS $e"
34519             ;;
34520     esac
34521 done
34522 BUILD_LDFLAGS="$NEWFLAGS"
34523
34524 NEWFLAGS=""
34525 for e in $DNS_GSSAPI_LIBS ; do
34526     case $e in
34527         -L*)
34528             case $host_os in
34529                 netbsd*)
34530                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34531                     NEWFLAGS="$NEWFLAGS $e $ee"
34532                     ;;
34533                 freebsd*)
34534                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34535                     NEWFLAGS="$NEWFLAGS $e $ee"
34536                     ;;
34537                 solaris*)
34538                     ee=`echo $e | sed -e 's%^-L%-R%'`
34539                     NEWFLAGS="$NEWFLAGS $e $ee"
34540                     ;;
34541                 *)
34542                     NEWFLAGS="$NEWFLAGS $e"
34543                     ;;
34544                 esac
34545             ;;
34546         *)
34547             NEWFLAGS="$NEWFLAGS $e"
34548             ;;
34549     esac
34550 done
34551 DNS_GSSAPI_LIBS="$NEWFLAGS"
34552
34553 NEWFLAGS=""
34554 for e in $DNS_CRYPTO_LIBS ; do
34555     case $e in
34556         -L*)
34557             case $host_os in
34558                 netbsd*)
34559                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34560                     NEWFLAGS="$NEWFLAGS $e $ee"
34561                     ;;
34562                 freebsd*)
34563                     ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
34564                     NEWFLAGS="$NEWFLAGS $e $ee"
34565                     ;;
34566                 solaris*)
34567                     ee=`echo $e | sed -e 's%^-L%-R%'`
34568                     NEWFLAGS="$NEWFLAGS $e $ee"
34569                     ;;
34570                 *)
34571                     NEWFLAGS="$NEWFLAGS $e"
34572                     ;;
34573                 esac
34574             ;;
34575         *)
34576             NEWFLAGS="$NEWFLAGS $e"
34577             ;;
34578     esac
34579 done
34580 DNS_CRYPTO_LIBS="$NEWFLAGS"
34581
34582
34583
34584
34585
34586
34587
34588 #
34589 # Commands to run at the end of config.status.
34590 # Don't just put these into configure, it won't work right if somebody
34591 # runs config.status directly (which autoconf allows).
34592 #
34593
34594 ac_config_commands="$ac_config_commands chmod"
34595
34596
34597 #
34598 # Files to configure.  These are listed here because we used to
34599 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
34600 # elsewhere if there's a good reason for doing so.
34601 #
34602
34603 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/net/Makefile bin/tests/sockaddr/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/lwresd/Makefile bin/tests/system/tkey/Makefile bin/tests/headerdep_test.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"
34604
34605
34606 #
34607 # Do it
34608 #
34609
34610 cat >confcache <<\_ACEOF
34611 # This file is a shell script that caches the results of configure
34612 # tests run on this system so they can be shared between configure
34613 # scripts and configure runs, see configure's option --config-cache.
34614 # It is not useful on other systems.  If it contains results you don't
34615 # want to keep, you may remove or edit it.
34616 #
34617 # config.status only pays attention to the cache file if you give it
34618 # the --recheck option to rerun configure.
34619 #
34620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34622 # following values.
34623
34624 _ACEOF
34625
34626 # The following way of writing the cache mishandles newlines in values,
34627 # but we know of no workaround that is simple, portable, and efficient.
34628 # So, we kill variables containing newlines.
34629 # Ultrix sh set writes to stderr and can't be redirected directly,
34630 # and sets the high bit in the cache file unless we assign to the vars.
34631 (
34632   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34633     eval ac_val=\$$ac_var
34634     case $ac_val in #(
34635     *${as_nl}*)
34636       case $ac_var in #(
34637       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34638 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34639       esac
34640       case $ac_var in #(
34641       _ | IFS | as_nl) ;; #(
34642       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34643       *) $as_unset $ac_var ;;
34644       esac ;;
34645     esac
34646   done
34647
34648   (set) 2>&1 |
34649     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34650     *${as_nl}ac_space=\ *)
34651       # `set' does not quote correctly, so add quotes (double-quote
34652       # substitution turns \\\\ into \\, and sed turns \\ into \).
34653       sed -n \
34654         "s/'/'\\\\''/g;
34655           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34656       ;; #(
34657     *)
34658       # `set' quotes correctly as required by POSIX, so do not add quotes.
34659       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34660       ;;
34661     esac |
34662     sort
34663 ) |
34664   sed '
34665      /^ac_cv_env_/b end
34666      t clear
34667      :clear
34668      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34669      t end
34670      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34671      :end' >>confcache
34672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34673   if test -w "$cache_file"; then
34674     test "x$cache_file" != "x/dev/null" &&
34675       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
34676 $as_echo "$as_me: updating cache $cache_file" >&6;}
34677     cat confcache >$cache_file
34678   else
34679     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34680 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34681   fi
34682 fi
34683 rm -f confcache
34684
34685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34686 # Let make expand exec_prefix.
34687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34688
34689 DEFS=-DHAVE_CONFIG_H
34690
34691 ac_libobjs=
34692 ac_ltlibobjs=
34693 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34694   # 1. Remove the extension, and $U if already installed.
34695   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34696   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34697   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34698   #    will be set to the directory where LIBOBJS objects are built.
34699   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34700   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34701 done
34702 LIBOBJS=$ac_libobjs
34703
34704 LTLIBOBJS=$ac_ltlibobjs
34705
34706
34707
34708 : ${CONFIG_STATUS=./config.status}
34709 ac_write_fail=0
34710 ac_clean_files_save=$ac_clean_files
34711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34715 #! $SHELL
34716 # Generated by $as_me.
34717 # Run this file to recreate the current configuration.
34718 # Compiler output produced by configure, useful for debugging
34719 # configure, is in config.log if it exists.
34720
34721 debug=false
34722 ac_cs_recheck=false
34723 ac_cs_silent=false
34724 SHELL=\${CONFIG_SHELL-$SHELL}
34725 _ACEOF
34726
34727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34728 ## --------------------- ##
34729 ## M4sh Initialization.  ##
34730 ## --------------------- ##
34731
34732 # Be more Bourne compatible
34733 DUALCASE=1; export DUALCASE # for MKS sh
34734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34735   emulate sh
34736   NULLCMD=:
34737   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34738   # is contrary to our usage.  Disable this feature.
34739   alias -g '${1+"$@"}'='"$@"'
34740   setopt NO_GLOB_SUBST
34741 else
34742   case `(set -o) 2>/dev/null` in
34743   *posix*) set -o posix ;;
34744 esac
34745
34746 fi
34747
34748
34749
34750
34751 # PATH needs CR
34752 # Avoid depending upon Character Ranges.
34753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34756 as_cr_digits='0123456789'
34757 as_cr_alnum=$as_cr_Letters$as_cr_digits
34758
34759 as_nl='
34760 '
34761 export as_nl
34762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34767   as_echo='printf %s\n'
34768   as_echo_n='printf %s'
34769 else
34770   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34771     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34772     as_echo_n='/usr/ucb/echo -n'
34773   else
34774     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34775     as_echo_n_body='eval
34776       arg=$1;
34777       case $arg in
34778       *"$as_nl"*)
34779         expr "X$arg" : "X\\(.*\\)$as_nl";
34780         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34781       esac;
34782       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34783     '
34784     export as_echo_n_body
34785     as_echo_n='sh -c $as_echo_n_body as_echo'
34786   fi
34787   export as_echo_body
34788   as_echo='sh -c $as_echo_body as_echo'
34789 fi
34790
34791 # The user is always right.
34792 if test "${PATH_SEPARATOR+set}" != set; then
34793   PATH_SEPARATOR=:
34794   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34795     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34796       PATH_SEPARATOR=';'
34797   }
34798 fi
34799
34800 # Support unset when possible.
34801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34802   as_unset=unset
34803 else
34804   as_unset=false
34805 fi
34806
34807
34808 # IFS
34809 # We need space, tab and new line, in precisely that order.  Quoting is
34810 # there to prevent editors from complaining about space-tab.
34811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34812 # splitting by setting IFS to empty value.)
34813 IFS=" ""        $as_nl"
34814
34815 # Find who we are.  Look in the path if we contain no directory separator.
34816 case $0 in
34817   *[\\/]* ) as_myself=$0 ;;
34818   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34819 for as_dir in $PATH
34820 do
34821   IFS=$as_save_IFS
34822   test -z "$as_dir" && as_dir=.
34823   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34824 done
34825 IFS=$as_save_IFS
34826
34827      ;;
34828 esac
34829 # We did not find ourselves, most probably we were run as `sh COMMAND'
34830 # in which case we are not to be found in the path.
34831 if test "x$as_myself" = x; then
34832   as_myself=$0
34833 fi
34834 if test ! -f "$as_myself"; then
34835   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34836   { (exit 1); exit 1; }
34837 fi
34838
34839 # Work around bugs in pre-3.0 UWIN ksh.
34840 for as_var in ENV MAIL MAILPATH
34841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34842 done
34843 PS1='$ '
34844 PS2='> '
34845 PS4='+ '
34846
34847 # NLS nuisances.
34848 LC_ALL=C
34849 export LC_ALL
34850 LANGUAGE=C
34851 export LANGUAGE
34852
34853 # Required to use basename.
34854 if expr a : '\(a\)' >/dev/null 2>&1 &&
34855    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34856   as_expr=expr
34857 else
34858   as_expr=false
34859 fi
34860
34861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34862   as_basename=basename
34863 else
34864   as_basename=false
34865 fi
34866
34867
34868 # Name of the executable.
34869 as_me=`$as_basename -- "$0" ||
34870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34871          X"$0" : 'X\(//\)$' \| \
34872          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34873 $as_echo X/"$0" |
34874     sed '/^.*\/\([^/][^/]*\)\/*$/{
34875             s//\1/
34876             q
34877           }
34878           /^X\/\(\/\/\)$/{
34879             s//\1/
34880             q
34881           }
34882           /^X\/\(\/\).*/{
34883             s//\1/
34884             q
34885           }
34886           s/.*/./; q'`
34887
34888 # CDPATH.
34889 $as_unset CDPATH
34890
34891
34892
34893   as_lineno_1=$LINENO
34894   as_lineno_2=$LINENO
34895   test "x$as_lineno_1" != "x$as_lineno_2" &&
34896   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34897
34898   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34899   # uniformly replaced by the line number.  The first 'sed' inserts a
34900   # line-number line after each line using $LINENO; the second 'sed'
34901   # does the real work.  The second script uses 'N' to pair each
34902   # line-number line with the line containing $LINENO, and appends
34903   # trailing '-' during substitution so that $LINENO is not a special
34904   # case at line end.
34905   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34906   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34907   # E. McMahon (1931-1989) for sed's syntax.  :-)
34908   sed -n '
34909     p
34910     /[$]LINENO/=
34911   ' <$as_myself |
34912     sed '
34913       s/[$]LINENO.*/&-/
34914       t lineno
34915       b
34916       :lineno
34917       N
34918       :loop
34919       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34920       t loop
34921       s/-\n.*//
34922     ' >$as_me.lineno &&
34923   chmod +x "$as_me.lineno" ||
34924     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34925    { (exit 1); exit 1; }; }
34926
34927   # Don't try to exec as it changes $[0], causing all sort of problems
34928   # (the dirname of $[0] is not the place where we might find the
34929   # original and so on.  Autoconf is especially sensitive to this).
34930   . "./$as_me.lineno"
34931   # Exit status is that of the last command.
34932   exit
34933 }
34934
34935
34936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34937   as_dirname=dirname
34938 else
34939   as_dirname=false
34940 fi
34941
34942 ECHO_C= ECHO_N= ECHO_T=
34943 case `echo -n x` in
34944 -n*)
34945   case `echo 'x\c'` in
34946   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34947   *)   ECHO_C='\c';;
34948   esac;;
34949 *)
34950   ECHO_N='-n';;
34951 esac
34952 if expr a : '\(a\)' >/dev/null 2>&1 &&
34953    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34954   as_expr=expr
34955 else
34956   as_expr=false
34957 fi
34958
34959 rm -f conf$$ conf$$.exe conf$$.file
34960 if test -d conf$$.dir; then
34961   rm -f conf$$.dir/conf$$.file
34962 else
34963   rm -f conf$$.dir
34964   mkdir conf$$.dir 2>/dev/null
34965 fi
34966 if (echo >conf$$.file) 2>/dev/null; then
34967   if ln -s conf$$.file conf$$ 2>/dev/null; then
34968     as_ln_s='ln -s'
34969     # ... but there are two gotchas:
34970     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34971     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34972     # In both cases, we have to default to `cp -p'.
34973     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34974       as_ln_s='cp -p'
34975   elif ln conf$$.file conf$$ 2>/dev/null; then
34976     as_ln_s=ln
34977   else
34978     as_ln_s='cp -p'
34979   fi
34980 else
34981   as_ln_s='cp -p'
34982 fi
34983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34984 rmdir conf$$.dir 2>/dev/null
34985
34986 if mkdir -p . 2>/dev/null; then
34987   as_mkdir_p=:
34988 else
34989   test -d ./-p && rmdir ./-p
34990   as_mkdir_p=false
34991 fi
34992
34993 if test -x / >/dev/null 2>&1; then
34994   as_test_x='test -x'
34995 else
34996   if ls -dL / >/dev/null 2>&1; then
34997     as_ls_L_option=L
34998   else
34999     as_ls_L_option=
35000   fi
35001   as_test_x='
35002     eval sh -c '\''
35003       if test -d "$1"; then
35004         test -d "$1/.";
35005       else
35006         case $1 in
35007         -*)set "./$1";;
35008         esac;
35009         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35010         ???[sx]*):;;*)false;;esac;fi
35011     '\'' sh
35012   '
35013 fi
35014 as_executable_p=$as_test_x
35015
35016 # Sed expression to map a string onto a valid CPP name.
35017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35018
35019 # Sed expression to map a string onto a valid variable name.
35020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35021
35022
35023 exec 6>&1
35024
35025 # Save the log message, to keep $[0] and so on meaningful, and to
35026 # report actual input values of CONFIG_FILES etc. instead of their
35027 # values after options handling.
35028 ac_log="
35029 This file was extended by $as_me, which was
35030 generated by GNU Autoconf 2.62.  Invocation command line was
35031
35032   CONFIG_FILES    = $CONFIG_FILES
35033   CONFIG_HEADERS  = $CONFIG_HEADERS
35034   CONFIG_LINKS    = $CONFIG_LINKS
35035   CONFIG_COMMANDS = $CONFIG_COMMANDS
35036   $ $0 $@
35037
35038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35039 "
35040
35041 _ACEOF
35042
35043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35044 # Files that config.status was made for.
35045 config_files="$ac_config_files"
35046 config_headers="$ac_config_headers"
35047 config_commands="$ac_config_commands"
35048
35049 _ACEOF
35050
35051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35052 ac_cs_usage="\
35053 \`$as_me' instantiates files from templates according to the
35054 current configuration.
35055
35056 Usage: $0 [OPTIONS] [FILE]...
35057
35058   -h, --help       print this help, then exit
35059   -V, --version    print version number and configuration settings, then exit
35060   -q, --quiet      do not print progress messages
35061   -d, --debug      don't remove temporary files
35062       --recheck    update $as_me by reconfiguring in the same conditions
35063   --file=FILE[:TEMPLATE]
35064                    instantiate the configuration file FILE
35065   --header=FILE[:TEMPLATE]
35066                    instantiate the configuration header FILE
35067
35068 Configuration files:
35069 $config_files
35070
35071 Configuration headers:
35072 $config_headers
35073
35074 Configuration commands:
35075 $config_commands
35076
35077 Report bugs to <bug-autoconf@gnu.org>."
35078
35079 _ACEOF
35080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35081 ac_cs_version="\\
35082 config.status
35083 configured by $0, generated by GNU Autoconf 2.62,
35084   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35085
35086 Copyright (C) 2008 Free Software Foundation, Inc.
35087 This config.status script is free software; the Free Software Foundation
35088 gives unlimited permission to copy, distribute and modify it."
35089
35090 ac_pwd='$ac_pwd'
35091 srcdir='$srcdir'
35092 INSTALL='$INSTALL'
35093 test -n "\$AWK" || AWK=awk
35094 _ACEOF
35095
35096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35097 # The default lists apply if the user does not specify any file.
35098 ac_need_defaults=:
35099 while test $# != 0
35100 do
35101   case $1 in
35102   --*=*)
35103     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35104     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35105     ac_shift=:
35106     ;;
35107   *)
35108     ac_option=$1
35109     ac_optarg=$2
35110     ac_shift=shift
35111     ;;
35112   esac
35113
35114   case $ac_option in
35115   # Handling of the options.
35116   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35117     ac_cs_recheck=: ;;
35118   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35119     $as_echo "$ac_cs_version"; exit ;;
35120   --debug | --debu | --deb | --de | --d | -d )
35121     debug=: ;;
35122   --file | --fil | --fi | --f )
35123     $ac_shift
35124     case $ac_optarg in
35125     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35126     esac
35127     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
35128     ac_need_defaults=false;;
35129   --header | --heade | --head | --hea )
35130     $ac_shift
35131     case $ac_optarg in
35132     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35133     esac
35134     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
35135     ac_need_defaults=false;;
35136   --he | --h)
35137     # Conflict between --help and --header
35138     { $as_echo "$as_me: error: ambiguous option: $1
35139 Try \`$0 --help' for more information." >&2
35140    { (exit 1); exit 1; }; };;
35141   --help | --hel | -h )
35142     $as_echo "$ac_cs_usage"; exit ;;
35143   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35144   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35145     ac_cs_silent=: ;;
35146
35147   # This is an error.
35148   -*) { $as_echo "$as_me: error: unrecognized option: $1
35149 Try \`$0 --help' for more information." >&2
35150    { (exit 1); exit 1; }; } ;;
35151
35152   *) ac_config_targets="$ac_config_targets $1"
35153      ac_need_defaults=false ;;
35154
35155   esac
35156   shift
35157 done
35158
35159 ac_configure_extra_args=
35160
35161 if $ac_cs_silent; then
35162   exec 6>/dev/null
35163   ac_configure_extra_args="$ac_configure_extra_args --silent"
35164 fi
35165
35166 _ACEOF
35167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35168 if \$ac_cs_recheck; then
35169   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35170   shift
35171   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35172   CONFIG_SHELL='$SHELL'
35173   export CONFIG_SHELL
35174   exec "\$@"
35175 fi
35176
35177 _ACEOF
35178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35179 exec 5>>config.log
35180 {
35181   echo
35182   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35183 ## Running $as_me. ##
35184 _ASBOX
35185   $as_echo "$ac_log"
35186 } >&5
35187
35188 _ACEOF
35189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35190 _ACEOF
35191
35192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35193
35194 # Handling of arguments.
35195 for ac_config_target in $ac_config_targets
35196 do
35197   case $ac_config_target in
35198     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35199     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
35200     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
35201     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
35202     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
35203     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
35204     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35205     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
35206     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
35207     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
35208     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
35209     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
35210     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
35211     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
35212     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
35213     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
35214     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
35215     "lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
35216     "lib/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/Makefile" ;;
35217     "lib/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/Makefile" ;;
35218     "lib/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$thread_dir/include/isc/Makefile" ;;
35219     "lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
35220     "lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
35221     "lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
35222     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
35223     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
35224     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
35225     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
35226     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
35227     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
35228     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
35229     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
35230     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
35231     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
35232     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
35233     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
35234     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
35235     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
35236     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
35237     "lib/export/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/Makefile" ;;
35238     "lib/export/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/Makefile" ;;
35239     "lib/export/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/Makefile" ;;
35240     "lib/export/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/include/isc/Makefile" ;;
35241     "lib/export/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/Makefile" ;;
35242     "lib/export/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/Makefile" ;;
35243     "lib/export/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/unix/include/isc/Makefile" ;;
35244     "lib/export/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/nls/Makefile" ;;
35245     "lib/export/isc/$thread_dir/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/Makefile" ;;
35246     "lib/export/isc/$thread_dir/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/Makefile" ;;
35247     "lib/export/isc/$thread_dir/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isc/$thread_dir/include/isc/Makefile" ;;
35248     "lib/export/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/Makefile" ;;
35249     "lib/export/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/Makefile" ;;
35250     "lib/export/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dns/Makefile" ;;
35251     "lib/export/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/dns/include/dst/Makefile" ;;
35252     "lib/export/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/Makefile" ;;
35253     "lib/export/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/Makefile" ;;
35254     "lib/export/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/irs/include/irs/Makefile" ;;
35255     "lib/export/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/Makefile" ;;
35256     "lib/export/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/Makefile" ;;
35257     "lib/export/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/isccfg/include/isccfg/Makefile" ;;
35258     "lib/export/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile" ;;
35259     "lib/export/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/export/samples/Makefile-postinstall" ;;
35260     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
35261     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
35262     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
35263     "lib/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/Makefile" ;;
35264     "lib/lwres/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/Makefile" ;;
35265     "lib/lwres/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/Makefile" ;;
35266     "lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
35267     "lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
35268     "lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
35269     "lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
35270     "lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
35271     "lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
35272     "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;;
35273     "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;;
35274     "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
35275     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
35276     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
35277     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
35278     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
35279     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
35280     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
35281     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
35282     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
35283     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
35284     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
35285     "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;;
35286     "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;;
35287     "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
35288     "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;;
35289     "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
35290     "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;;
35291     "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;;
35292     "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;;
35293     "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;;
35294     "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
35295     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
35296     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
35297     "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
35298     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
35299     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
35300     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
35301     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
35302     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
35303     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35304     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
35305     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
35306     "isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
35307     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
35308     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
35309     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
35310     "doc/xsl/isc-docbook-latex.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-latex.xsl" ;;
35311     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
35312     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
35313     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
35314     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
35315
35316   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35317 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35318    { (exit 1); exit 1; }; };;
35319   esac
35320 done
35321
35322
35323 # If the user did not use the arguments to specify the items to instantiate,
35324 # then the envvar interface is used.  Set only those that are not.
35325 # We use the long form for the default assignment because of an extremely
35326 # bizarre bug on SunOS 4.1.3.
35327 if $ac_need_defaults; then
35328   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35329   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35330   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35331 fi
35332
35333 # Have a temporary directory for convenience.  Make it in the build tree
35334 # simply because there is no reason against having it here, and in addition,
35335 # creating and moving files from /tmp can sometimes cause problems.
35336 # Hook for its removal unless debugging.
35337 # Note that there is a small window in which the directory will not be cleaned:
35338 # after its creation but before its name has been assigned to `$tmp'.
35339 $debug ||
35340 {
35341   tmp=
35342   trap 'exit_status=$?
35343   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35344 ' 0
35345   trap '{ (exit 1); exit 1; }' 1 2 13 15
35346 }
35347 # Create a (secure) tmp directory for tmp files.
35348
35349 {
35350   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35351   test -n "$tmp" && test -d "$tmp"
35352 }  ||
35353 {
35354   tmp=./conf$$-$RANDOM
35355   (umask 077 && mkdir "$tmp")
35356 } ||
35357 {
35358    $as_echo "$as_me: cannot create a temporary directory in ." >&2
35359    { (exit 1); exit 1; }
35360 }
35361
35362 # Set up the scripts for CONFIG_FILES section.
35363 # No need to generate them if there are no CONFIG_FILES.
35364 # This happens for instance with `./config.status config.h'.
35365 if test -n "$CONFIG_FILES"; then
35366
35367 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35368   ac_cs_awk_getline=:
35369   ac_cs_awk_pipe_init=
35370   ac_cs_awk_read_file='
35371       while ((getline aline < (F[key])) > 0)
35372         print(aline)
35373       close(F[key])'
35374   ac_cs_awk_pipe_fini=
35375 else
35376   ac_cs_awk_getline=false
35377   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35378   ac_cs_awk_read_file='
35379       print "|#_!!_#|"
35380       print "cat " F[key] " &&"
35381       '$ac_cs_awk_pipe_init
35382   # The final `:' finishes the AND list.
35383   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35384 fi
35385 ac_cr='\r'
35386 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35387 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35388   ac_cs_awk_cr='\\r'
35389 else
35390   ac_cs_awk_cr=$ac_cr
35391 fi
35392
35393 echo 'BEGIN {' >"$tmp/subs1.awk" &&
35394 _ACEOF
35395
35396 # Create commands to substitute file output variables.
35397 {
35398   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35399   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
35400   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35401   echo "_ACAWK" &&
35402   echo "_ACEOF"
35403 } >conf$$files.sh &&
35404 . ./conf$$files.sh ||
35405   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35406 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35407    { (exit 1); exit 1; }; }
35408 rm -f conf$$files.sh
35409
35410 {
35411   echo "cat >conf$$subs.awk <<_ACEOF" &&
35412   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35413   echo "_ACEOF"
35414 } >conf$$subs.sh ||
35415   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35416 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35417    { (exit 1); exit 1; }; }
35418 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
35419 ac_delim='%!_!# '
35420 for ac_last_try in false false false false false :; do
35421   . ./conf$$subs.sh ||
35422     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35423 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35424    { (exit 1); exit 1; }; }
35425
35426   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
35427     break
35428   elif $ac_last_try; then
35429     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35430 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35431    { (exit 1); exit 1; }; }
35432   else
35433     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35434   fi
35435 done
35436 rm -f conf$$subs.sh
35437
35438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35439 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
35440 _ACEOF
35441 sed -n '
35442 h
35443 s/^/S["/; s/!.*/"]=/
35444 p
35445 g
35446 s/^[^!]*!//
35447 :repl
35448 t repl
35449 s/'"$ac_delim"'$//
35450 t delim
35451 :nl
35452 h
35453 s/\(.\{148\}\).*/\1/
35454 t more1
35455 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35456 p
35457 n
35458 b repl
35459 :more1
35460 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35461 p
35462 g
35463 s/.\{148\}//
35464 t nl
35465 :delim
35466 h
35467 s/\(.\{148\}\).*/\1/
35468 t more2
35469 s/["\\]/\\&/g; s/^/"/; s/$/"/
35470 p
35471 b
35472 :more2
35473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35474 p
35475 g
35476 s/.\{148\}//
35477 t delim
35478 ' <conf$$subs.awk | sed '
35479 /^[^""]/{
35480   N
35481   s/\n//
35482 }
35483 ' >>$CONFIG_STATUS || ac_write_fail=1
35484 rm -f conf$$subs.awk
35485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35486 _ACAWK
35487 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
35488   for (key in S) S_is_set[key] = 1
35489   FS = "\a"
35490   \$ac_cs_awk_pipe_init
35491 }
35492 {
35493   line = $ 0
35494   nfields = split(line, field, "@")
35495   substed = 0
35496   len = length(field[1])
35497   for (i = 2; i < nfields; i++) {
35498     key = field[i]
35499     keylen = length(key)
35500     if (S_is_set[key]) {
35501       value = S[key]
35502       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35503       len += length(value) + length(field[++i])
35504       substed = 1
35505     } else
35506       len += 1 + keylen
35507   }
35508   if (nfields == 3 && !substed) {
35509     key = field[2]
35510     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
35511       \$ac_cs_awk_read_file
35512       next
35513     }
35514   }
35515   print line
35516 }
35517 \$ac_cs_awk_pipe_fini
35518 _ACAWK
35519 _ACEOF
35520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35521 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35522   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35523 else
35524   cat
35525 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
35526   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
35527 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
35528    { (exit 1); exit 1; }; }
35529 _ACEOF
35530
35531 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35532 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35533 # trailing colons and then remove the whole line if VPATH becomes empty
35534 # (actually we leave an empty line to preserve line numbers).
35535 if test "x$srcdir" = x.; then
35536   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35537 s/:*\$(srcdir):*/:/
35538 s/:*\${srcdir}:*/:/
35539 s/:*@srcdir@:*/:/
35540 s/^\([^=]*=[     ]*\):*/\1/
35541 s/:*$//
35542 s/^[^=]*=[       ]*$//
35543 }'
35544 fi
35545
35546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35547 fi # test -n "$CONFIG_FILES"
35548
35549 # Set up the scripts for CONFIG_HEADERS section.
35550 # No need to generate them if there are no CONFIG_HEADERS.
35551 # This happens for instance with `./config.status Makefile'.
35552 if test -n "$CONFIG_HEADERS"; then
35553 cat >"$tmp/defines.awk" <<\_ACAWK ||
35554 BEGIN {
35555 _ACEOF
35556
35557 # Transform confdefs.h into an awk script `defines.awk', embedded as
35558 # here-document in config.status, that substitutes the proper values into
35559 # config.h.in to produce config.h.
35560
35561 # Create a delimiter string that does not exist in confdefs.h, to ease
35562 # handling of long lines.
35563 ac_delim='%!_!# '
35564 for ac_last_try in false false :; do
35565   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
35566   if test -z "$ac_t"; then
35567     break
35568   elif $ac_last_try; then
35569     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
35570 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
35571    { (exit 1); exit 1; }; }
35572   else
35573     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35574   fi
35575 done
35576
35577 # For the awk script, D is an array of macro values keyed by name,
35578 # likewise P contains macro parameters if any.  Preserve backslash
35579 # newline sequences.
35580
35581 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35582 sed -n '
35583 s/.\{148\}/&'"$ac_delim"'/g
35584 t rset
35585 :rset
35586 s/^[     ]*#[    ]*define[       ][      ]*/ /
35587 t def
35588 d
35589 :def
35590 s/\\$//
35591 t bsnl
35592 s/["\\]/\\&/g
35593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35594 D["\1"]=" \3"/p
35595 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
35596 d
35597 :bsnl
35598 s/["\\]/\\&/g
35599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35600 D["\1"]=" \3\\\\\\n"\\/p
35601 t cont
35602 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35603 t cont
35604 d
35605 :cont
35606 n
35607 s/.\{148\}/&'"$ac_delim"'/g
35608 t clear
35609 :clear
35610 s/\\$//
35611 t bsnlc
35612 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35613 d
35614 :bsnlc
35615 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35616 b cont
35617 ' <confdefs.h | sed '
35618 s/'"$ac_delim"'/"\\\
35619 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35620
35621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35622   for (key in D) D_is_set[key] = 1
35623   FS = "\a"
35624 }
35625 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35626   line = \$ 0
35627   split(line, arg, " ")
35628   if (arg[1] == "#") {
35629     defundef = arg[2]
35630     mac1 = arg[3]
35631   } else {
35632     defundef = substr(arg[1], 2)
35633     mac1 = arg[2]
35634   }
35635   split(mac1, mac2, "(") #)
35636   macro = mac2[1]
35637   if (D_is_set[macro]) {
35638     # Preserve the white space surrounding the "#".
35639     prefix = substr(line, 1, index(line, defundef) - 1)
35640     print prefix "define", macro P[macro] D[macro]
35641     next
35642   } else {
35643     # Replace #undef with comments.  This is necessary, for example,
35644     # in the case of _POSIX_SOURCE, which is predefined and required
35645     # on some systems where configure will not decide to define it.
35646     if (defundef == "undef") {
35647       print "/*", line, "*/"
35648       next
35649     }
35650   }
35651 }
35652 { print }
35653 _ACAWK
35654 _ACEOF
35655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35656   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
35657 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
35658    { (exit 1); exit 1; }; }
35659 fi # test -n "$CONFIG_HEADERS"
35660
35661
35662 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
35663 shift
35664 for ac_tag
35665 do
35666   case $ac_tag in
35667   :[FHLC]) ac_mode=$ac_tag; continue;;
35668   esac
35669   case $ac_mode$ac_tag in
35670   :[FHL]*:*);;
35671   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35672 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35673    { (exit 1); exit 1; }; };;
35674   :[FH]-) ac_tag=-:-;;
35675   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35676   esac
35677   ac_save_IFS=$IFS
35678   IFS=:
35679   set x $ac_tag
35680   IFS=$ac_save_IFS
35681   shift
35682   ac_file=$1
35683   shift
35684
35685   case $ac_mode in
35686   :L) ac_source=$1;;
35687   :[FH])
35688     ac_file_inputs=
35689     for ac_f
35690     do
35691       case $ac_f in
35692       -) ac_f="$tmp/stdin";;
35693       *) # Look for the file first in the build tree, then in the source tree
35694          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35695          # because $ac_f cannot contain `:'.
35696          test -f "$ac_f" ||
35697            case $ac_f in
35698            [\\/$]*) false;;
35699            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35700            esac ||
35701            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35702 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35703    { (exit 1); exit 1; }; };;
35704       esac
35705       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35706       ac_file_inputs="$ac_file_inputs '$ac_f'"
35707     done
35708
35709     # Let's still pretend it is `configure' which instantiates (i.e., don't
35710     # use $as_me), people would be surprised to read:
35711     #    /* config.h.  Generated by config.status.  */
35712     configure_input='Generated from '`
35713           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35714         `' by configure.'
35715     if test x"$ac_file" != x-; then
35716       configure_input="$ac_file.  $configure_input"
35717       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
35718 $as_echo "$as_me: creating $ac_file" >&6;}
35719     fi
35720     # Neutralize special characters interpreted by sed in replacement strings.
35721     case $configure_input in #(
35722     *\&* | *\|* | *\\* )
35723        ac_sed_conf_input=`$as_echo "$configure_input" |
35724        sed 's/[\\\\&|]/\\\\&/g'`;; #(
35725     *) ac_sed_conf_input=$configure_input;;
35726     esac
35727
35728     case $ac_tag in
35729     *:-:* | *:-) cat >"$tmp/stdin" \
35730       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35731 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35732    { (exit 1); exit 1; }; } ;;
35733     esac
35734     ;;
35735   esac
35736
35737   ac_dir=`$as_dirname -- "$ac_file" ||
35738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35739          X"$ac_file" : 'X\(//\)[^/]' \| \
35740          X"$ac_file" : 'X\(//\)$' \| \
35741          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35742 $as_echo X"$ac_file" |
35743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35744             s//\1/
35745             q
35746           }
35747           /^X\(\/\/\)[^/].*/{
35748             s//\1/
35749             q
35750           }
35751           /^X\(\/\/\)$/{
35752             s//\1/
35753             q
35754           }
35755           /^X\(\/\).*/{
35756             s//\1/
35757             q
35758           }
35759           s/.*/./; q'`
35760   { as_dir="$ac_dir"
35761   case $as_dir in #(
35762   -*) as_dir=./$as_dir;;
35763   esac
35764   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35765     as_dirs=
35766     while :; do
35767       case $as_dir in #(
35768       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35769       *) as_qdir=$as_dir;;
35770       esac
35771       as_dirs="'$as_qdir' $as_dirs"
35772       as_dir=`$as_dirname -- "$as_dir" ||
35773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35774          X"$as_dir" : 'X\(//\)[^/]' \| \
35775          X"$as_dir" : 'X\(//\)$' \| \
35776          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35777 $as_echo X"$as_dir" |
35778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35779             s//\1/
35780             q
35781           }
35782           /^X\(\/\/\)[^/].*/{
35783             s//\1/
35784             q
35785           }
35786           /^X\(\/\/\)$/{
35787             s//\1/
35788             q
35789           }
35790           /^X\(\/\).*/{
35791             s//\1/
35792             q
35793           }
35794           s/.*/./; q'`
35795       test -d "$as_dir" && break
35796     done
35797     test -z "$as_dirs" || eval "mkdir $as_dirs"
35798   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35799 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
35800    { (exit 1); exit 1; }; }; }
35801   ac_builddir=.
35802
35803 case "$ac_dir" in
35804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35805 *)
35806   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35807   # A ".." for each directory in $ac_dir_suffix.
35808   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35809   case $ac_top_builddir_sub in
35810   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35811   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35812   esac ;;
35813 esac
35814 ac_abs_top_builddir=$ac_pwd
35815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35816 # for backward compatibility:
35817 ac_top_builddir=$ac_top_build_prefix
35818
35819 case $srcdir in
35820   .)  # We are building in place.
35821     ac_srcdir=.
35822     ac_top_srcdir=$ac_top_builddir_sub
35823     ac_abs_top_srcdir=$ac_pwd ;;
35824   [\\/]* | ?:[\\/]* )  # Absolute name.
35825     ac_srcdir=$srcdir$ac_dir_suffix;
35826     ac_top_srcdir=$srcdir
35827     ac_abs_top_srcdir=$srcdir ;;
35828   *) # Relative name.
35829     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35830     ac_top_srcdir=$ac_top_build_prefix$srcdir
35831     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35832 esac
35833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35834
35835
35836   case $ac_mode in
35837   :F)
35838   #
35839   # CONFIG_FILE
35840   #
35841
35842   case $INSTALL in
35843   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35844   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35845   esac
35846 _ACEOF
35847
35848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35849 # If the template does not know about datarootdir, expand it.
35850 # FIXME: This hack should be removed a few years after 2.60.
35851 ac_datarootdir_hack=; ac_datarootdir_seen=
35852
35853 ac_sed_dataroot='
35854 /datarootdir/ {
35855   p
35856   q
35857 }
35858 /@datadir@/p
35859 /@docdir@/p
35860 /@infodir@/p
35861 /@localedir@/p
35862 /@mandir@/p
35863 '
35864 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35865 *datarootdir*) ac_datarootdir_seen=yes;;
35866 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35867   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35868 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35869 _ACEOF
35870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35871   ac_datarootdir_hack='
35872   s&@datadir@&$datadir&g
35873   s&@docdir@&$docdir&g
35874   s&@infodir@&$infodir&g
35875   s&@localedir@&$localedir&g
35876   s&@mandir@&$mandir&g
35877     s&\\\${datarootdir}&$datarootdir&g' ;;
35878 esac
35879 _ACEOF
35880
35881 # Neutralize VPATH when `$srcdir' = `.'.
35882 # Shell code in configure.ac might set extrasub.
35883 # FIXME: do we really want to maintain this feature?
35884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35885 ac_sed_extra="$ac_vpsub
35886 $extrasub
35887 _ACEOF
35888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35889 :t
35890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35891 s|@configure_input@|$ac_sed_conf_input|;t t
35892 s&@top_builddir@&$ac_top_builddir_sub&;t t
35893 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35894 s&@srcdir@&$ac_srcdir&;t t
35895 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35896 s&@top_srcdir@&$ac_top_srcdir&;t t
35897 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35898 s&@builddir@&$ac_builddir&;t t
35899 s&@abs_builddir@&$ac_abs_builddir&;t t
35900 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35901 s&@INSTALL@&$ac_INSTALL&;t t
35902 $ac_datarootdir_hack
35903 "
35904 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35905 if $ac_cs_awk_getline; then
35906   $AWK -f "$tmp/subs.awk"
35907 else
35908   $AWK -f "$tmp/subs.awk" | $SHELL
35909 fi >$tmp/out \
35910   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35912    { (exit 1); exit 1; }; }
35913
35914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35915   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35916   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35917   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35918 which seems to be undefined.  Please make sure it is defined." >&5
35919 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35920 which seems to be undefined.  Please make sure it is defined." >&2;}
35921
35922   rm -f "$tmp/stdin"
35923   case $ac_file in
35924   -) cat "$tmp/out" && rm -f "$tmp/out";;
35925   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
35926   esac \
35927   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35928 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35929    { (exit 1); exit 1; }; }
35930  ;;
35931   :H)
35932   #
35933   # CONFIG_HEADER
35934   #
35935   if test x"$ac_file" != x-; then
35936     {
35937       $as_echo "/* $configure_input  */" \
35938       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
35939     } >"$tmp/config.h" \
35940       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35941 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35942    { (exit 1); exit 1; }; }
35943     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
35944       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35945 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35946     else
35947       rm -f "$ac_file"
35948       mv "$tmp/config.h" "$ac_file" \
35949         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
35950 $as_echo "$as_me: error: could not create $ac_file" >&2;}
35951    { (exit 1); exit 1; }; }
35952     fi
35953   else
35954     $as_echo "/* $configure_input  */" \
35955       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
35956       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
35957 $as_echo "$as_me: error: could not create -" >&2;}
35958    { (exit 1); exit 1; }; }
35959   fi
35960  ;;
35961
35962   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
35963 $as_echo "$as_me: executing $ac_file commands" >&6;}
35964  ;;
35965   esac
35966
35967
35968   case $ac_file$ac_mode in
35969     "chmod":C) chmod a+x isc-config.sh doc/doxygen/doxygen-input-filter ;;
35970
35971   esac
35972 done # for ac_tag
35973
35974
35975 { (exit 0); exit 0; }
35976 _ACEOF
35977 chmod +x $CONFIG_STATUS
35978 ac_clean_files=$ac_clean_files_save
35979
35980 test $ac_write_fail = 0 ||
35981   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
35982 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
35983    { (exit 1); exit 1; }; }
35984
35985
35986 # configure is writing to config.log, and then calls config.status.
35987 # config.status does its own redirection, appending to config.log.
35988 # Unfortunately, on DOS this fails, as config.log is still kept open
35989 # by configure, so config.status won't be able to write to it; its
35990 # output is simply discarded.  So we exec the FD to /dev/null,
35991 # effectively closing config.log, so it can be properly (re)opened and
35992 # appended to by config.status.  When coming back to configure, we
35993 # need to make the FD available again.
35994 if test "$no_create" != yes; then
35995   ac_cs_success=:
35996   ac_config_status_args=
35997   test "$silent" = yes &&
35998     ac_config_status_args="$ac_config_status_args --quiet"
35999   exec 5>/dev/null
36000   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36001   exec 5>>config.log
36002   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36003   # would make configure fail if this is the last instruction.
36004   $ac_cs_success || { (exit 1); exit 1; }
36005 fi
36006 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36007   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
36008 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
36009 fi
36010
36011
36012 #
36013 # Now that the Makefiles exist we can ensure that everything is rebuilt.
36014 #
36015
36016 # Check whether --with-make-clean was given.
36017 if test "${with_make_clean+set}" = set; then
36018   withval=$with_make_clean; make_clean="$withval"
36019 else
36020   make_clean="yes"
36021 fi
36022
36023 case "$make_clean" in
36024 yes)
36025         make clean
36026         ;;
36027 esac
36028
36029 if test "X$USE_OPENSSL" = "X"; then
36030 cat << \EOF
36031 BIND is being built without OpenSSL. This means it will not have DNSSEC support.
36032 EOF
36033 fi
36034
36035 if test "X$OPENSSL_WARNING" != "X"; then
36036 cat << \EOF
36037 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36038 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36039 WARNING                                                                 WARNING
36040 WARNING         Your OpenSSL crypto library may be vulnerable to        WARNING
36041 WARNING         one or more of the the following known security         WARNING
36042 WARNING         flaws:                                                  WARNING
36043 WARNING                                                                 WARNING
36044 WARNING         CAN-2002-0659, CAN-2006-4339, CVE-2006-2937 and         WARNING
36045 WARNING         CVE-2006-2940.                                          WARNING
36046 WARNING                                                                 WARNING
36047 WARNING         It is recommended that you upgrade to OpenSSL           WARNING
36048 WARNING         version 0.9.8d/0.9.7l (or greater).                     WARNING
36049 WARNING                                                                 WARNING
36050 WARNING         You can disable this warning by specifying:             WARNING
36051 WARNING                                                                 WARNING
36052 WARNING               --disable-openssl-version-check                   WARNING
36053 WARNING                                                                 WARNING
36054 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36055 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
36056 EOF
36057 fi
36058
36059 # Tell Emacs to edit this file in shell mode.
36060 # Local Variables:
36061 # mode: sh
36062 # End: