updated version to 1.1.5, and re-generated configure
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 fi
25 BIN_SH=xpg4; export BIN_SH # for Tru64
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28
29 # PATH needs CR
30 # Avoid depending upon Character Ranges.
31 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34 as_cr_digits='0123456789'
35 as_cr_alnum=$as_cr_Letters$as_cr_digits
36
37 # The user is always right.
38 if test "${PATH_SEPARATOR+set}" != set; then
39   echo "#! /bin/sh" >conf$$.sh
40   echo  "exit 0"   >>conf$$.sh
41   chmod +x conf$$.sh
42   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43     PATH_SEPARATOR=';'
44   else
45     PATH_SEPARATOR=:
46   fi
47   rm -f conf$$.sh
48 fi
49
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52   as_unset=unset
53 else
54   as_unset=false
55 fi
56
57
58 # IFS
59 # We need space, tab and new line, in precisely that order.  Quoting is
60 # there to prevent editors from complaining about space-tab.
61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62 # splitting by setting IFS to empty value.)
63 as_nl='
64 '
65 IFS=" ""        $as_nl"
66
67 # Find who we are.  Look in the path if we contain no directory separator.
68 case $0 in
69   *[\\/]* ) as_myself=$0 ;;
70   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71 for as_dir in $PATH
72 do
73   IFS=$as_save_IFS
74   test -z "$as_dir" && as_dir=.
75   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
76 done
77 IFS=$as_save_IFS
78
79      ;;
80 esac
81 # We did not find ourselves, most probably we were run as `sh COMMAND'
82 # in which case we are not to be found in the path.
83 if test "x$as_myself" = x; then
84   as_myself=$0
85 fi
86 if test ! -f "$as_myself"; then
87   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
88   { (exit 1); exit 1; }
89 fi
90
91 # Work around bugs in pre-3.0 UWIN ksh.
92 for as_var in ENV MAIL MAILPATH
93 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
94 done
95 PS1='$ '
96 PS2='> '
97 PS4='+ '
98
99 # NLS nuisances.
100 for as_var in \
101   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
103   LC_TELEPHONE LC_TIME
104 do
105   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106     eval $as_var=C; export $as_var
107   else
108     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109   fi
110 done
111
112 # Required to use basename.
113 if expr a : '\(a\)' >/dev/null 2>&1 &&
114    test "X`expr 00001 : '.*\(...\)'`" = X001; then
115   as_expr=expr
116 else
117   as_expr=false
118 fi
119
120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
121   as_basename=basename
122 else
123   as_basename=false
124 fi
125
126
127 # Name of the executable.
128 as_me=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130          X"$0" : 'X\(//\)$' \| \
131          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 echo X/"$0" |
133     sed '/^.*\/\([^/][^/]*\)\/*$/{
134             s//\1/
135             q
136           }
137           /^X\/\(\/\/\)$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\).*/{
142             s//\1/
143             q
144           }
145           s/.*/./; q'`
146
147 # CDPATH.
148 $as_unset CDPATH
149
150
151 if test "x$CONFIG_SHELL" = x; then
152   if (eval ":") 2>/dev/null; then
153   as_have_required=yes
154 else
155   as_have_required=no
156 fi
157
158   if test $as_have_required = yes &&     (eval ":
159 (as_func_return () {
160   (exit \$1)
161 }
162 as_func_success () {
163   as_func_return 0
164 }
165 as_func_failure () {
166   as_func_return 1
167 }
168 as_func_ret_success () {
169   return 0
170 }
171 as_func_ret_failure () {
172   return 1
173 }
174
175 exitcode=0
176 if as_func_success; then
177   :
178 else
179   exitcode=1
180   echo as_func_success failed.
181 fi
182
183 if as_func_failure; then
184   exitcode=1
185   echo as_func_failure succeeded.
186 fi
187
188 if as_func_ret_success; then
189   :
190 else
191   exitcode=1
192   echo as_func_ret_success failed.
193 fi
194
195 if as_func_ret_failure; then
196   exitcode=1
197   echo as_func_ret_failure succeeded.
198 fi
199
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201   :
202 else
203   exitcode=1
204   echo positional parameters were not saved.
205 fi
206
207 test \$exitcode = 0) || { (exit 1); exit 1; }
208
209 (
210   as_lineno_1=\$LINENO
211   as_lineno_2=\$LINENO
212   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev/null; then
215   :
216 else
217   as_candidate_shells=
218     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 do
221   IFS=$as_save_IFS
222   test -z "$as_dir" && as_dir=.
223   case $as_dir in
224          /*)
225            for as_base in sh bash ksh sh5; do
226              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
227            done;;
228        esac
229 done
230 IFS=$as_save_IFS
231
232
233       for as_shell in $as_candidate_shells $SHELL; do
234          # Try only shells that exist, to save several forks.
235          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236                 { ("$as_shell") 2> /dev/null <<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
239   emulate sh
240   NULLCMD=:
241   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242   # is contrary to our usage.  Disable this feature.
243   alias -g '${1+"$@"}'='"$@"'
244   setopt NO_GLOB_SUBST
245 else
246   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 fi
248 BIN_SH=xpg4; export BIN_SH # for Tru64
249 DUALCASE=1; export DUALCASE # for MKS sh
250
251 :
252 _ASEOF
253 }; then
254   CONFIG_SHELL=$as_shell
255                as_have_required=yes
256                if { "$as_shell" 2> /dev/null <<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259   emulate sh
260   NULLCMD=:
261   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262   # is contrary to our usage.  Disable this feature.
263   alias -g '${1+"$@"}'='"$@"'
264   setopt NO_GLOB_SUBST
265 else
266   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 fi
268 BIN_SH=xpg4; export BIN_SH # for Tru64
269 DUALCASE=1; export DUALCASE # for MKS sh
270
271 :
272 (as_func_return () {
273   (exit $1)
274 }
275 as_func_success () {
276   as_func_return 0
277 }
278 as_func_failure () {
279   as_func_return 1
280 }
281 as_func_ret_success () {
282   return 0
283 }
284 as_func_ret_failure () {
285   return 1
286 }
287
288 exitcode=0
289 if as_func_success; then
290   :
291 else
292   exitcode=1
293   echo as_func_success failed.
294 fi
295
296 if as_func_failure; then
297   exitcode=1
298   echo as_func_failure succeeded.
299 fi
300
301 if as_func_ret_success; then
302   :
303 else
304   exitcode=1
305   echo as_func_ret_success failed.
306 fi
307
308 if as_func_ret_failure; then
309   exitcode=1
310   echo as_func_ret_failure succeeded.
311 fi
312
313 if ( set x; as_func_ret_success y && test x = "$1" ); then
314   :
315 else
316   exitcode=1
317   echo positional parameters were not saved.
318 fi
319
320 test $exitcode = 0) || { (exit 1); exit 1; }
321
322 (
323   as_lineno_1=$LINENO
324   as_lineno_2=$LINENO
325   test "x$as_lineno_1" != "x$as_lineno_2" &&
326   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327
328 _ASEOF
329 }; then
330   break
331 fi
332
333 fi
334
335       done
336
337       if test "x$CONFIG_SHELL" != x; then
338   for as_var in BASH_ENV ENV
339         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
340         done
341         export CONFIG_SHELL
342         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
343 fi
344
345
346     if test $as_have_required = no; then
347   echo This script requires a shell more modern than all the
348       echo shells that I found on your system.  Please install a
349       echo modern shell, or manually run the script under such a
350       echo shell if you do have one.
351       { (exit 1); exit 1; }
352 fi
353
354
355 fi
356
357 fi
358
359
360
361 (eval "as_func_return () {
362   (exit \$1)
363 }
364 as_func_success () {
365   as_func_return 0
366 }
367 as_func_failure () {
368   as_func_return 1
369 }
370 as_func_ret_success () {
371   return 0
372 }
373 as_func_ret_failure () {
374   return 1
375 }
376
377 exitcode=0
378 if as_func_success; then
379   :
380 else
381   exitcode=1
382   echo as_func_success failed.
383 fi
384
385 if as_func_failure; then
386   exitcode=1
387   echo as_func_failure succeeded.
388 fi
389
390 if as_func_ret_success; then
391   :
392 else
393   exitcode=1
394   echo as_func_ret_success failed.
395 fi
396
397 if as_func_ret_failure; then
398   exitcode=1
399   echo as_func_ret_failure succeeded.
400 fi
401
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403   :
404 else
405   exitcode=1
406   echo positional parameters were not saved.
407 fi
408
409 test \$exitcode = 0") || {
410   echo No shell found that supports shell functions.
411   echo Please tell autoconf@gnu.org about your system,
412   echo including any error possibly output before this
413   echo message
414 }
415
416
417
418   as_lineno_1=$LINENO
419   as_lineno_2=$LINENO
420   test "x$as_lineno_1" != "x$as_lineno_2" &&
421   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422
423   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424   # uniformly replaced by the line number.  The first 'sed' inserts a
425   # line-number line after each line using $LINENO; the second 'sed'
426   # does the real work.  The second script uses 'N' to pair each
427   # line-number line with the line containing $LINENO, and appends
428   # trailing '-' during substitution so that $LINENO is not a special
429   # case at line end.
430   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431   # scripts with optimization help from Paolo Bonzini.  Blame Lee
432   # E. McMahon (1931-1989) for sed's syntax.  :-)
433   sed -n '
434     p
435     /[$]LINENO/=
436   ' <$as_myself |
437     sed '
438       s/[$]LINENO.*/&-/
439       t lineno
440       b
441       :lineno
442       N
443       :loop
444       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445       t loop
446       s/-\n.*//
447     ' >$as_me.lineno &&
448   chmod +x "$as_me.lineno" ||
449     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450    { (exit 1); exit 1; }; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
462   as_dirname=dirname
463 else
464   as_dirname=false
465 fi
466
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in
469 -n*)
470   case `echo 'x\c'` in
471   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
472   *)   ECHO_C='\c';;
473   esac;;
474 *)
475   ECHO_N='-n';;
476 esac
477
478 if expr a : '\(a\)' >/dev/null 2>&1 &&
479    test "X`expr 00001 : '.*\(...\)'`" = X001; then
480   as_expr=expr
481 else
482   as_expr=false
483 fi
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir
491 fi
492 echo >conf$$.file
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494   as_ln_s='ln -s'
495   # ... but there are two gotchas:
496   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498   # In both cases, we have to default to `cp -p'.
499   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500     as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s=ln
503 else
504   as_ln_s='cp -p'
505 fi
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
508
509 if mkdir -p . 2>/dev/null; then
510   as_mkdir_p=:
511 else
512   test -d ./-p && rmdir ./-p
513   as_mkdir_p=false
514 fi
515
516 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.file <<_ASEOF
519 #! /bin/sh
520 exit 0
521 _ASEOF
522 chmod +x conf$$.file
523 if test -x conf$$.file >/dev/null 2>&1; then
524   as_executable_p="test -x"
525 else
526   as_executable_p=:
527 fi
528 rm -f conf$$.file
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538
539 # Check that we are running under the correct shell.
540 SHELL=${CONFIG_SHELL-/bin/sh}
541
542 case X$ECHO in
543 X*--fallback-echo)
544   # Remove one level of quotation (which was required for Make).
545   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546   ;;
547 esac
548
549 echo=${ECHO-echo}
550 if test "X$1" = X--no-reexec; then
551   # Discard the --no-reexec flag, and continue.
552   shift
553 elif test "X$1" = X--fallback-echo; then
554   # Avoid inline document here, it may be left over
555   :
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557   # Yippee, $echo works!
558   :
559 else
560   # Restart under the correct shell.
561   exec $SHELL "$0" --no-reexec ${1+"$@"}
562 fi
563
564 if test "X$1" = X--fallback-echo; then
565   # used as fallback echo
566   shift
567   cat <<EOF
568 $*
569 EOF
570   exit 0
571 fi
572
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 # if CDPATH is set.
575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset; then
579 # find a string as large as possible, as long as the shell can cope with it
580   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
583        echo_test_string=`eval $cmd` &&
584        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
585     then
586       break
587     fi
588   done
589 fi
590
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593    test "X$echo_testing_string" = "X$echo_test_string"; then
594   :
595 else
596   # The Solaris, AIX, and Digital Unix default echo programs unquote
597   # backslashes.  This makes it impossible to quote backslashes using
598   #   echo "$something" | sed 's/\\/\\\\/g'
599   #
600   # So, first we look for a working echo in the user's PATH.
601
602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603   for dir in $PATH /usr/ucb; do
604     IFS="$lt_save_ifs"
605     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608        test "X$echo_testing_string" = "X$echo_test_string"; then
609       echo="$dir/echo"
610       break
611     fi
612   done
613   IFS="$lt_save_ifs"
614
615   if test "X$echo" = Xecho; then
616     # We didn't find a better echo, so look for alternatives.
617     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619        test "X$echo_testing_string" = "X$echo_test_string"; then
620       # This shell has a builtin print -r that does the trick.
621       echo='print -r'
622     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623          test "X$CONFIG_SHELL" != X/bin/ksh; then
624       # If we have ksh, try running configure again with it.
625       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626       export ORIGINAL_CONFIG_SHELL
627       CONFIG_SHELL=/bin/ksh
628       export CONFIG_SHELL
629       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
630     else
631       # Try using printf.
632       echo='printf %s\n'
633       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635          test "X$echo_testing_string" = "X$echo_test_string"; then
636         # Cool, printf works
637         :
638       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639            test "X$echo_testing_string" = 'X\t' &&
640            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641            test "X$echo_testing_string" = "X$echo_test_string"; then
642         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643         export CONFIG_SHELL
644         SHELL="$CONFIG_SHELL"
645         export SHELL
646         echo="$CONFIG_SHELL $0 --fallback-echo"
647       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648            test "X$echo_testing_string" = 'X\t' &&
649            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650            test "X$echo_testing_string" = "X$echo_test_string"; then
651         echo="$CONFIG_SHELL $0 --fallback-echo"
652       else
653         # maybe with a smaller string...
654         prev=:
655
656         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
658           then
659             break
660           fi
661           prev="$cmd"
662         done
663
664         if test "$prev" != 'sed 50q "$0"'; then
665           echo_test_string=`eval $prev`
666           export echo_test_string
667           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668         else
669           # Oops.  We lost completely, so just stick with echo.
670           echo=echo
671         fi
672       fi
673     fi
674   fi
675 fi
676 fi
677
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
680 ECHO=$echo
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 fi
684
685
686
687
688 tagnames=${tagnames+${tagnames},}CXX
689
690 tagnames=${tagnames+${tagnames},}F77
691
692 exec 7<&0 </dev/null 6>&1
693
694 # Name of the host.
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
698
699 #
700 # Initializations.
701 #
702 ac_default_prefix=/usr/local
703 ac_clean_files=
704 ac_config_libobj_dir=.
705 LIBOBJS=
706 cross_compiling=no
707 subdirs=
708 MFLAGS=
709 MAKEFLAGS=
710 SHELL=${CONFIG_SHELL-/bin/sh}
711
712 # Identity of this package.
713 PACKAGE_NAME=
714 PACKAGE_TARNAME=
715 PACKAGE_VERSION=
716 PACKAGE_STRING=
717 PACKAGE_BUGREPORT=
718
719 ac_unique_file="src/main/radiusd.c"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 #  include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 #  include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
755
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 CPPFLAGS
797 ac_ct_CC
798 EXEEXT
799 OBJEXT
800 CPP
801 GREP
802 EGREP
803 RANLIB
804 abs_top_builddir
805 GMAKE
806 MAKE
807 LTDL_SUBDIRS
808 LIBTOOL
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 LN_S
818 ECHO
819 AR
820 STRIP
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CXXCPP
825 F77
826 FFLAGS
827 ac_ct_F77
828 logdir
829 radacctdir
830 raddbdir
831 PERL
832 SNMPGET
833 SNMPWALK
834 RUSERS
835 ACLOCAL
836 AUTOCONF
837 AUTOHEADER
838 LOCATE
839 DIRNAME
840 REGEX
841 REGEX_EXTENDED
842 OPENSSL_INCLUDE
843 OPENSSL_LIBS
844 LIBPREFIX
845 CRYPTLIB
846 SNMP_LIBS
847 SNMP_INCLUDE
848 GETCONF
849 LFS_CFLAGS
850 LFS_LDFLAGS
851 LFS_LIBS
852 HOSTINFO
853 LIBLTDL
854 INCLTDL
855 subdirs
856 MODULES
857 INSTALLSTRIP
858 USE_SHARED_LIBS
859 USE_STATIC_LIBS
860 STATIC_MODULES
861 RADIUSD_MAJOR_VERSION
862 RADIUSD_MINOR_VERSION
863 RADIUSD_VERSION
864 LIBOBJS
865 LTLIBOBJS'
866 ac_subst_files=''
867       ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 CPPFLAGS
874 CPP
875 CXX
876 CXXFLAGS
877 CCC
878 CXXCPP
879 F77
880 FFLAGS'
881 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933   # If the previous option needs an argument, assign it.
934   if test -n "$ac_prev"; then
935     eval $ac_prev=\$ac_option
936     ac_prev=
937     continue
938   fi
939
940   case $ac_option in
941   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942   *)    ac_optarg=yes ;;
943   esac
944
945   # Accept the important Cygnus configure options, so we can diagnose typos.
946
947   case $ac_dashdash$ac_option in
948   --)
949     ac_dashdash=yes ;;
950
951   -bindir | --bindir | --bindi | --bind | --bin | --bi)
952     ac_prev=bindir ;;
953   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954     bindir=$ac_optarg ;;
955
956   -build | --build | --buil | --bui | --bu)
957     ac_prev=build_alias ;;
958   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959     build_alias=$ac_optarg ;;
960
961   -cache-file | --cache-file | --cache-fil | --cache-fi \
962   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963     ac_prev=cache_file ;;
964   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966     cache_file=$ac_optarg ;;
967
968   --config-cache | -C)
969     cache_file=config.cache ;;
970
971   -datadir | --datadir | --datadi | --datad)
972     ac_prev=datadir ;;
973   -datadir=* | --datadir=* | --datadi=* | --datad=*)
974     datadir=$ac_optarg ;;
975
976   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977   | --dataroo | --dataro | --datar)
978     ac_prev=datarootdir ;;
979   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981     datarootdir=$ac_optarg ;;
982
983   -disable-* | --disable-*)
984     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985     # Reject names that are not valid shell variable names.
986     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
987       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988    { (exit 1); exit 1; }; }
989     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
990     eval enable_$ac_feature=no ;;
991
992   -docdir | --docdir | --docdi | --doc | --do)
993     ac_prev=docdir ;;
994   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995     docdir=$ac_optarg ;;
996
997   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998     ac_prev=dvidir ;;
999   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000     dvidir=$ac_optarg ;;
1001
1002   -enable-* | --enable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1009     eval enable_$ac_feature=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid package name: $ac_package" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_package=`echo $ac_package| sed 's/-/_/g'`
1206     eval with_$ac_package=\$ac_optarg ;;
1207
1208   -without-* | --without-*)
1209     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/-/_/g'`
1215     eval with_$ac_package=no ;;
1216
1217   --x)
1218     # Obsolete; use --with-x.
1219     with_x=yes ;;
1220
1221   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222   | --x-incl | --x-inc | --x-in | --x-i)
1223     ac_prev=x_includes ;;
1224   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226     x_includes=$ac_optarg ;;
1227
1228   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230     ac_prev=x_libraries ;;
1231   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233     x_libraries=$ac_optarg ;;
1234
1235   -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237    { (exit 1); exit 1; }; }
1238     ;;
1239
1240   *=*)
1241     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245    { (exit 1); exit 1; }; }
1246     eval $ac_envvar=\$ac_optarg
1247     export $ac_envvar ;;
1248
1249   *)
1250     # FIXME: should be removed in autoconf 3.0.
1251     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255     ;;
1256
1257   esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262   { echo "$as_me: error: missing argument to $ac_option" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265
1266 # Be sure to have absolute directory names.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278    { (exit 1); exit 1; }; }
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290   if test "x$build_alias" = x; then
1291     cross_compiling=maybe
1292     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293     If a cross compiler is detected then cross compile mode will be used." >&2
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   { echo "$as_me: error: Working directory cannot be determined" >&2
1309    { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   { echo "$as_me: error: pwd does not report name of working directory" >&2
1312    { (exit 1); exit 1; }; }
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317   ac_srcdir_defaulted=yes
1318   # Try the directory containing this script, then the parent directory.
1319   ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321          X"$0" : 'X\(//\)[^/]' \| \
1322          X"$0" : 'X\(//\)$' \| \
1323          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324 echo X"$0" |
1325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)[^/].*/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\).*/{
1338             s//\1/
1339             q
1340           }
1341           s/.*/./; q'`
1342   srcdir=$ac_confdir
1343   if test ! -r "$srcdir/$ac_unique_file"; then
1344     srcdir=..
1345   fi
1346 else
1347   ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357    { (exit 1); exit 1; }; }
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR           user executables [EPREFIX/bin]
1418   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR       program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR           object code libraries [EPREFIX/lib]
1424   --includedir=DIR       C header files [PREFIX/include]
1425   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR          info documentation [DATAROOTDIR/info]
1429   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR           man documentation [DATAROOTDIR/man]
1431   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1432   --htmldir=DIR          html documentation [DOCDIR]
1433   --dvidir=DIR           dvi documentation [DOCDIR]
1434   --pdfdir=DIR           pdf documentation [DOCDIR]
1435   --psdir=DIR            ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-shared[=PKGS]  build shared libraries [default=yes]
1454   --enable-static[=PKGS]  build static libraries [default=yes]
1455   --enable-fast-install[=PKGS]
1456                           optimize for fast installation [default=yes]
1457   --disable-libtool-lock  avoid locking (might break parallel builds)
1458   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1459   --enable-developer               Enables features of interest to developers.
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-system-libtool              try to use libtool installed in your system default=use our own
1465   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466   --with-pic              try to use only PIC/non-PIC objects [default=use
1467                           both]
1468   --with-tags[=TAGS]      include additional configurations [automatic]
1469   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1470   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1471   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1472   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1473   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1474   --with-threads          Use threads, if available.  (default=yes)
1475   --with-snmp             Compile in SNMP support. (default=yes)
1476   --with-large-files      Compile in large (2G+) file support. (default=no)
1477   --with-static-modules=QUOTED-MODULE-LIST
1478  --with-modules=QUOTED-MODULE-LIST
1479   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1480   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1481   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1482   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1483   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1484   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1485   --with-edir             Enable Novell eDirectory integration.  (default=no)
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CPP         C preprocessor
1495   CXX         C++ compiler command
1496   CXXFLAGS    C++ compiler flags
1497   CXXCPP      C++ preprocessor
1498   F77         Fortran 77 compiler command
1499   FFLAGS      Fortran 77 compiler flags
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" || continue
1512     ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518   # A ".." for each directory in $ac_dir_suffix.
1519   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520   case $ac_top_builddir_sub in
1521   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523   esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531   .)  # We are building in place.
1532     ac_srcdir=.
1533     ac_top_srcdir=$ac_top_builddir_sub
1534     ac_abs_top_srcdir=$ac_pwd ;;
1535   [\\/]* | ?:[\\/]* )  # Absolute name.
1536     ac_srcdir=$srcdir$ac_dir_suffix;
1537     ac_top_srcdir=$srcdir
1538     ac_abs_top_srcdir=$srcdir ;;
1539   *) # Relative name.
1540     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541     ac_top_srcdir=$ac_top_build_prefix$srcdir
1542     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546     cd "$ac_dir" || { ac_status=$?; continue; }
1547     # Check for guested configure.
1548     if test -f "$ac_srcdir/configure.gnu"; then
1549       echo &&
1550       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551     elif test -f "$ac_srcdir/configure"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure" --help=recursive
1554     else
1555       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556     fi || ac_status=$?
1557     cd "$ac_pwd" || { ac_status=$?; break; }
1558   done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563   cat <<\_ACEOF
1564 configure
1565 generated by GNU Autoconf 2.60
1566
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by $as_me, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1924
1925
1926
1927 RADIUSD_MAJOR_VERSION=1
1928 RADIUSD_MINOR_VERSION=1.5
1929 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1930
1931
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1942 if test "${ac_cv_prog_CC+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   if test -n "$CC"; then
1946   ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953   for ac_exec_ext in '' $ac_executable_extensions; do
1954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1955     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957     break 2
1958   fi
1959 done
1960 done
1961 IFS=$as_save_IFS
1962
1963 fi
1964 fi
1965 CC=$ac_cv_prog_CC
1966 if test -n "$CC"; then
1967   { echo "$as_me:$LINENO: result: $CC" >&5
1968 echo "${ECHO_T}$CC" >&6; }
1969 else
1970   { echo "$as_me:$LINENO: result: no" >&5
1971 echo "${ECHO_T}no" >&6; }
1972 fi
1973
1974
1975 fi
1976 if test -z "$ac_cv_prog_CC"; then
1977   ac_ct_CC=$CC
1978   # Extract the first word of "gcc", so it can be a program name with args.
1979 set dummy gcc; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$ac_ct_CC"; then
1986   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995     ac_cv_prog_ac_ct_CC="gcc"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2006 if test -n "$ac_ct_CC"; then
2007   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2008 echo "${ECHO_T}$ac_ct_CC" >&6; }
2009 else
2010   { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014   if test "x$ac_ct_CC" = x; then
2015     CC=""
2016   else
2017     case $cross_compiling:$ac_tool_warned in
2018 yes:)
2019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2020 whose name does not start with the host triplet.  If you think this
2021 configuration is useful to you, please write to autoconf@gnu.org." >&5
2022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2023 whose name does not start with the host triplet.  If you think this
2024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2025 ac_tool_warned=yes ;;
2026 esac
2027     CC=$ac_ct_CC
2028   fi
2029 else
2030   CC="$ac_cv_prog_CC"
2031 fi
2032
2033 if test -z "$CC"; then
2034           if test -n "$ac_tool_prefix"; then
2035     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}cc; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$CC"; then
2043   ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052     ac_cv_prog_CC="${ac_tool_prefix}cc"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060 fi
2061 fi
2062 CC=$ac_cv_prog_CC
2063 if test -n "$CC"; then
2064   { echo "$as_me:$LINENO: result: $CC" >&5
2065 echo "${ECHO_T}$CC" >&6; }
2066 else
2067   { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2069 fi
2070
2071
2072   fi
2073 fi
2074 if test -z "$CC"; then
2075   # Extract the first word of "cc", so it can be a program name with args.
2076 set dummy cc; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_CC+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$CC"; then
2083   ac_cv_prog_CC="$CC" # Let the user override the test.
2084 else
2085   ac_prog_rejected=no
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2093     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2094        ac_prog_rejected=yes
2095        continue
2096      fi
2097     ac_cv_prog_CC="cc"
2098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099     break 2
2100   fi
2101 done
2102 done
2103 IFS=$as_save_IFS
2104
2105 if test $ac_prog_rejected = yes; then
2106   # We found a bogon in the path, so make sure we never use it.
2107   set dummy $ac_cv_prog_CC
2108   shift
2109   if test $# != 0; then
2110     # We chose a different compiler from the bogus one.
2111     # However, it has the same basename, so the bogon will be chosen
2112     # first if we set CC to just the basename; use the full file name.
2113     shift
2114     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2115   fi
2116 fi
2117 fi
2118 fi
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121   { echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6; }
2123 else
2124   { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2126 fi
2127
2128
2129 fi
2130 if test -z "$CC"; then
2131   if test -n "$ac_tool_prefix"; then
2132   for ac_prog in cl.exe
2133   do
2134     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_CC+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   if test -n "$CC"; then
2142   ac_cv_prog_CC="$CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149   for ac_exec_ext in '' $ac_executable_extensions; do
2150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153     break 2
2154   fi
2155 done
2156 done
2157 IFS=$as_save_IFS
2158
2159 fi
2160 fi
2161 CC=$ac_cv_prog_CC
2162 if test -n "$CC"; then
2163   { echo "$as_me:$LINENO: result: $CC" >&5
2164 echo "${ECHO_T}$CC" >&6; }
2165 else
2166   { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2168 fi
2169
2170
2171     test -n "$CC" && break
2172   done
2173 fi
2174 if test -z "$CC"; then
2175   ac_ct_CC=$CC
2176   for ac_prog in cl.exe
2177 do
2178   # Extract the first word of "$ac_prog", so it can be a program name with args.
2179 set dummy $ac_prog; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   if test -n "$ac_ct_CC"; then
2186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191   IFS=$as_save_IFS
2192   test -z "$as_dir" && as_dir=.
2193   for ac_exec_ext in '' $ac_executable_extensions; do
2194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2195     ac_cv_prog_ac_ct_CC="$ac_prog"
2196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197     break 2
2198   fi
2199 done
2200 done
2201 IFS=$as_save_IFS
2202
2203 fi
2204 fi
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6; }
2209 else
2210   { echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6; }
2212 fi
2213
2214
2215   test -n "$ac_ct_CC" && break
2216 done
2217
2218   if test "x$ac_ct_CC" = x; then
2219     CC=""
2220   else
2221     case $cross_compiling:$ac_tool_warned in
2222 yes:)
2223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2224 whose name does not start with the host triplet.  If you think this
2225 configuration is useful to you, please write to autoconf@gnu.org." >&5
2226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2227 whose name does not start with the host triplet.  If you think this
2228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2229 ac_tool_warned=yes ;;
2230 esac
2231     CC=$ac_ct_CC
2232   fi
2233 fi
2234
2235 fi
2236
2237
2238 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: no acceptable C compiler found in \$PATH
2241 See \`config.log' for more details." >&2;}
2242    { (exit 1); exit 1; }; }
2243
2244 # Provide some information about the compiler.
2245 echo "$as_me:$LINENO: checking for C compiler version" >&5
2246 ac_compiler=`set X $ac_compile; echo $2`
2247 { (ac_try="$ac_compiler --version >&5"
2248 case "(($ac_try" in
2249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250   *) ac_try_echo=$ac_try;;
2251 esac
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253   (eval "$ac_compiler --version >&5") 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }
2257 { (ac_try="$ac_compiler -v >&5"
2258 case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263   (eval "$ac_compiler -v >&5") 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }
2267 { (ac_try="$ac_compiler -V >&5"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273   (eval "$ac_compiler -V >&5") 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }
2277
2278 cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284
2285 int
2286 main ()
2287 {
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 ac_clean_files_save=$ac_clean_files
2294 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2295 # Try to create an executable without -o first, disregard a.out.
2296 # It will help us diagnose broken compilers, and finding out an intuition
2297 # of exeext.
2298 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2299 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2300 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 #
2302 # List of possible output files, starting from the most likely.
2303 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2304 # only as a last resort.  b.out is created by i960 compilers.
2305 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2306 #
2307 # The IRIX 6 linker writes into existing files which may not be
2308 # executable, retaining their permissions.  Remove them first so a
2309 # subsequent execution test works.
2310 ac_rmfiles=
2311 for ac_file in $ac_files
2312 do
2313   case $ac_file in
2314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2315     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2316   esac
2317 done
2318 rm -f $ac_rmfiles
2319
2320 if { (ac_try="$ac_link_default"
2321 case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326   (eval "$ac_link_default") 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; then
2330   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2332 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2333 # so that the user can short-circuit this test for compilers unknown to
2334 # Autoconf.
2335 for ac_file in $ac_files
2336 do
2337   test -f "$ac_file" || continue
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2340         ;;
2341     [ab].out )
2342         # We found the default executable, but exeext='' is most
2343         # certainly right.
2344         break;;
2345     *.* )
2346         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2347         then :; else
2348            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349         fi
2350         # We set ac_cv_exeext here because the later test for it is not
2351         # safe: cross compilers may not add the suffix if given an `-o'
2352         # argument, so we may need to know it at that point already.
2353         # Even if this section looks crufty: it has the advantage of
2354         # actually working.
2355         break;;
2356     * )
2357         break;;
2358   esac
2359 done
2360 test "$ac_cv_exeext" = no && ac_cv_exeext=
2361
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: C compiler cannot create executables
2369 See \`config.log' for more details." >&2;}
2370    { (exit 77); exit 77; }; }
2371 fi
2372
2373 ac_exeext=$ac_cv_exeext
2374 { echo "$as_me:$LINENO: result: $ac_file" >&5
2375 echo "${ECHO_T}$ac_file" >&6; }
2376
2377 # Check that the compiler produces executables we can run.  If not, either
2378 # the compiler is broken, or we cross compile.
2379 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2380 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2382 # If not cross compiling, check that we can run a simple program.
2383 if test "$cross_compiling" != yes; then
2384   if { ac_try='./$ac_file'
2385   { (case "(($ac_try" in
2386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387   *) ac_try_echo=$ac_try;;
2388 esac
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390   (eval "$ac_try") 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; }; then
2394     cross_compiling=no
2395   else
2396     if test "$cross_compiling" = maybe; then
2397         cross_compiling=yes
2398     else
2399         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2400 If you meant to cross compile, use \`--host'.
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: cannot run C compiled programs.
2403 If you meant to cross compile, use \`--host'.
2404 See \`config.log' for more details." >&2;}
2405    { (exit 1); exit 1; }; }
2406     fi
2407   fi
2408 fi
2409 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411
2412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2413 ac_clean_files=$ac_clean_files_save
2414 # Check that the compiler produces executables we can run.  If not, either
2415 # the compiler is broken, or we cross compile.
2416 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2418 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2419 echo "${ECHO_T}$cross_compiling" >&6; }
2420
2421 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2423 if { (ac_try="$ac_link"
2424 case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429   (eval "$ac_link") 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; then
2433   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2436 # `rm'.
2437 for ac_file in conftest.exe conftest conftest.*; do
2438   test -f "$ac_file" || continue
2439   case $ac_file in
2440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2441     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442           break;;
2443     * ) break;;
2444   esac
2445 done
2446 else
2447   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2448 See \`config.log' for more details." >&5
2449 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2450 See \`config.log' for more details." >&2;}
2451    { (exit 1); exit 1; }; }
2452 fi
2453
2454 rm -f conftest$ac_cv_exeext
2455 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2456 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2457
2458 rm -f conftest.$ac_ext
2459 EXEEXT=$ac_cv_exeext
2460 ac_exeext=$EXEEXT
2461 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2462 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2463 if test "${ac_cv_objext+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h.  */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h.  */
2472
2473 int
2474 main ()
2475 {
2476
2477   ;
2478   return 0;
2479 }
2480 _ACEOF
2481 rm -f conftest.o conftest.obj
2482 if { (ac_try="$ac_compile"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_compile") 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; then
2492   for ac_file in conftest.o conftest.obj conftest.*; do
2493   test -f "$ac_file" || continue;
2494   case $ac_file in
2495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2496     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2497        break;;
2498   esac
2499 done
2500 else
2501   echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2503
2504 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2507 See \`config.log' for more details." >&2;}
2508    { (exit 1); exit 1; }; }
2509 fi
2510
2511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2512 fi
2513 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2514 echo "${ECHO_T}$ac_cv_objext" >&6; }
2515 OBJEXT=$ac_cv_objext
2516 ac_objext=$OBJEXT
2517 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2518 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2519 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532 #ifndef __GNUC__
2533        choke me
2534 #endif
2535
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (ac_try="$ac_compile"
2542 case "(($ac_try" in
2543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544   *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547   (eval "$ac_compile") 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555   { (case "(($ac_try" in
2556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557   *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560   (eval "$ac_try") 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; } &&
2564          { ac_try='test -s conftest.$ac_objext'
2565   { (case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570   (eval "$ac_try") 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574   ac_compiler_gnu=yes
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579         ac_compiler_gnu=no
2580 fi
2581
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2584
2585 fi
2586 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2588 GCC=`test $ac_compiler_gnu = yes && echo yes`
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2591 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   ac_save_c_werror_flag=$ac_c_werror_flag
2597    ac_c_werror_flag=yes
2598    ac_cv_prog_cc_g=no
2599    CFLAGS="-g"
2600    cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606
2607 int
2608 main ()
2609 {
2610
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622   (eval "$ac_compile") 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2630   { (case "(($ac_try" in
2631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632   *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635   (eval "$ac_try") 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; } &&
2639          { ac_try='test -s conftest.$ac_objext'
2640   { (case "(($ac_try" in
2641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642   *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645   (eval "$ac_try") 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   ac_cv_prog_cc_g=yes
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654         CFLAGS=""
2655       cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_compile") 2>conftest.er1
2678   ac_status=$?
2679   grep -v '^ *+' conftest.er1 >conftest.err
2680   rm -f conftest.er1
2681   cat conftest.err >&5
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); } &&
2684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2685   { (case "(($ac_try" in
2686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687   *) ac_try_echo=$ac_try;;
2688 esac
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690   (eval "$ac_try") 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; } &&
2694          { ac_try='test -s conftest.$ac_objext'
2695   { (case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_try") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; }; then
2704   :
2705 else
2706   echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709         ac_c_werror_flag=$ac_save_c_werror_flag
2710          CFLAGS="-g"
2711          cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (ac_try="$ac_compile"
2728 case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_compile") 2>conftest.er1
2734   ac_status=$?
2735   grep -v '^ *+' conftest.er1 >conftest.err
2736   rm -f conftest.er1
2737   cat conftest.err >&5
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2741   { (case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746   (eval "$ac_try") 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }; } &&
2750          { ac_try='test -s conftest.$ac_objext'
2751   { (case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_try") 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   ac_cv_prog_cc_g=yes
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765
2766 fi
2767
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 fi
2770
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 fi
2773
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775    ac_c_werror_flag=$ac_save_c_werror_flag
2776 fi
2777 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2778 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2779 if test "$ac_test_CFLAGS" = set; then
2780   CFLAGS=$ac_save_CFLAGS
2781 elif test $ac_cv_prog_cc_g = yes; then
2782   if test "$GCC" = yes; then
2783     CFLAGS="-g -O2"
2784   else
2785     CFLAGS="-g"
2786   fi
2787 else
2788   if test "$GCC" = yes; then
2789     CFLAGS="-O2"
2790   else
2791     CFLAGS=
2792   fi
2793 fi
2794 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2795 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_cc_c89+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   ac_cv_prog_cc_c89=no
2800 ac_save_CC=$CC
2801 cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807 #include <stdarg.h>
2808 #include <stdio.h>
2809 #include <sys/types.h>
2810 #include <sys/stat.h>
2811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2812 struct buf { int x; };
2813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2814 static char *e (p, i)
2815      char **p;
2816      int i;
2817 {
2818   return p[i];
2819 }
2820 static char *f (char * (*g) (char **, int), char **p, ...)
2821 {
2822   char *s;
2823   va_list v;
2824   va_start (v,p);
2825   s = g (p, va_arg (v,int));
2826   va_end (v);
2827   return s;
2828 }
2829
2830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2831    function prototypes and stuff, but not '\xHH' hex character constants.
2832    These don't provoke an error unfortunately, instead are silently treated
2833    as 'x'.  The following induces an error, until -std is added to get
2834    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2835    array size at least.  It's necessary to write '\x00'==0 to get something
2836    that's true only with -std.  */
2837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2838
2839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2840    inside strings and character constants.  */
2841 #define FOO(x) 'x'
2842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2843
2844 int test (int i, double x);
2845 struct s1 {int (*f) (int a);};
2846 struct s2 {int (*f) (double a);};
2847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2848 int argc;
2849 char **argv;
2850 int
2851 main ()
2852 {
2853 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2859         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2860 do
2861   CC="$ac_save_CC $ac_arg"
2862   rm -f conftest.$ac_objext
2863 if { (ac_try="$ac_compile"
2864 case "(($ac_try" in
2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866   *) ac_try_echo=$ac_try;;
2867 esac
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869   (eval "$ac_compile") 2>conftest.er1
2870   ac_status=$?
2871   grep -v '^ *+' conftest.er1 >conftest.err
2872   rm -f conftest.er1
2873   cat conftest.err >&5
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2877   { (case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882   (eval "$ac_try") 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; } &&
2886          { ac_try='test -s conftest.$ac_objext'
2887   { (case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_try") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }; }; then
2896   ac_cv_prog_cc_c89=$ac_arg
2897 else
2898   echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901
2902 fi
2903
2904 rm -f core conftest.err conftest.$ac_objext
2905   test "x$ac_cv_prog_cc_c89" != "xno" && break
2906 done
2907 rm -f conftest.$ac_ext
2908 CC=$ac_save_CC
2909
2910 fi
2911 # AC_CACHE_VAL
2912 case "x$ac_cv_prog_cc_c89" in
2913   x)
2914     { echo "$as_me:$LINENO: result: none needed" >&5
2915 echo "${ECHO_T}none needed" >&6; } ;;
2916   xno)
2917     { echo "$as_me:$LINENO: result: unsupported" >&5
2918 echo "${ECHO_T}unsupported" >&6; } ;;
2919   *)
2920     CC="$CC $ac_cv_prog_cc_c89"
2921     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2923 esac
2924
2925
2926 ac_ext=c
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931
2932
2933
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2940 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2941 # On Suns, sometimes $CPP names a directory.
2942 if test -n "$CPP" && test -d "$CPP"; then
2943   CPP=
2944 fi
2945 if test -z "$CPP"; then
2946   if test "${ac_cv_prog_CPP+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949       # Double quotes because CPP needs to be expanded
2950     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951     do
2952       ac_preproc_ok=false
2953 for ac_c_preproc_warn_flag in '' yes
2954 do
2955   # Use a header file that comes with gcc, so configuring glibc
2956   # with a fresh cross-compiler works.
2957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2958   # <limits.h> exists even on freestanding compilers.
2959   # On the NeXT, cc -E runs the code through the compiler's parser,
2960   # not just through cpp. "Syntax error" is here to catch this case.
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967 #ifdef __STDC__
2968 # include <limits.h>
2969 #else
2970 # include <assert.h>
2971 #endif
2972                      Syntax error
2973 _ACEOF
2974 if { (ac_try="$ac_cpp conftest.$ac_ext"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } >/dev/null; then
2987   if test -s conftest.err; then
2988     ac_cpp_err=$ac_c_preproc_warn_flag
2989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2990   else
2991     ac_cpp_err=
2992   fi
2993 else
2994   ac_cpp_err=yes
2995 fi
2996 if test -z "$ac_cpp_err"; then
2997   :
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002   # Broken: fails on valid input.
3003 continue
3004 fi
3005
3006 rm -f conftest.err conftest.$ac_ext
3007
3008   # OK, works on sane cases.  Now check whether nonexistent headers
3009   # can be detected and how.
3010   cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016 #include <ac_nonexistent.h>
3017 _ACEOF
3018 if { (ac_try="$ac_cpp conftest.$ac_ext"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } >/dev/null; then
3031   if test -s conftest.err; then
3032     ac_cpp_err=$ac_c_preproc_warn_flag
3033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034   else
3035     ac_cpp_err=
3036   fi
3037 else
3038   ac_cpp_err=yes
3039 fi
3040 if test -z "$ac_cpp_err"; then
3041   # Broken: success on invalid input.
3042 continue
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047   # Passes both tests.
3048 ac_preproc_ok=:
3049 break
3050 fi
3051
3052 rm -f conftest.err conftest.$ac_ext
3053
3054 done
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3058   break
3059 fi
3060
3061     done
3062     ac_cv_prog_CPP=$CPP
3063
3064 fi
3065   CPP=$ac_cv_prog_CPP
3066 else
3067   ac_cv_prog_CPP=$CPP
3068 fi
3069 { echo "$as_me:$LINENO: result: $CPP" >&5
3070 echo "${ECHO_T}$CPP" >&6; }
3071 ac_preproc_ok=false
3072 for ac_c_preproc_warn_flag in '' yes
3073 do
3074   # Use a header file that comes with gcc, so configuring glibc
3075   # with a fresh cross-compiler works.
3076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077   # <limits.h> exists even on freestanding compilers.
3078   # On the NeXT, cc -E runs the code through the compiler's parser,
3079   # not just through cpp. "Syntax error" is here to catch this case.
3080   cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086 #ifdef __STDC__
3087 # include <limits.h>
3088 #else
3089 # include <assert.h>
3090 #endif
3091                      Syntax error
3092 _ACEOF
3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } >/dev/null; then
3106   if test -s conftest.err; then
3107     ac_cpp_err=$ac_c_preproc_warn_flag
3108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109   else
3110     ac_cpp_err=
3111   fi
3112 else
3113   ac_cpp_err=yes
3114 fi
3115 if test -z "$ac_cpp_err"; then
3116   :
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121   # Broken: fails on valid input.
3122 continue
3123 fi
3124
3125 rm -f conftest.err conftest.$ac_ext
3126
3127   # OK, works on sane cases.  Now check whether nonexistent headers
3128   # can be detected and how.
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 #include <ac_nonexistent.h>
3136 _ACEOF
3137 if { (ac_try="$ac_cpp conftest.$ac_ext"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } >/dev/null; then
3150   if test -s conftest.err; then
3151     ac_cpp_err=$ac_c_preproc_warn_flag
3152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3153   else
3154     ac_cpp_err=
3155   fi
3156 else
3157   ac_cpp_err=yes
3158 fi
3159 if test -z "$ac_cpp_err"; then
3160   # Broken: success on invalid input.
3161 continue
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166   # Passes both tests.
3167 ac_preproc_ok=:
3168 break
3169 fi
3170
3171 rm -f conftest.err conftest.$ac_ext
3172
3173 done
3174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3175 rm -f conftest.err conftest.$ac_ext
3176 if $ac_preproc_ok; then
3177   :
3178 else
3179   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3182 See \`config.log' for more details." >&2;}
3183    { (exit 1); exit 1; }; }
3184 fi
3185
3186 ac_ext=c
3187 ac_cpp='$CPP $CPPFLAGS'
3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3191
3192
3193 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3194 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3195 if test "${ac_cv_path_GREP+set}" = set; then
3196   echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198   # Extract the first word of "grep ggrep" to use in msg output
3199 if test -z "$GREP"; then
3200 set dummy grep ggrep; ac_prog_name=$2
3201 if test "${ac_cv_path_GREP+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   ac_path_GREP_found=false
3205 # Loop through the user's path and test for each of PROGNAME-LIST
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211   for ac_prog in grep ggrep; do
3212   for ac_exec_ext in '' $ac_executable_extensions; do
3213     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3214     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3215     # Check for GNU ac_path_GREP and select it if it is found.
3216   # Check for GNU $ac_path_GREP
3217 case `"$ac_path_GREP" --version 2>&1` in
3218 *GNU*)
3219   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3220 *)
3221   ac_count=0
3222   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3223   while :
3224   do
3225     cat "conftest.in" "conftest.in" >"conftest.tmp"
3226     mv "conftest.tmp" "conftest.in"
3227     cp "conftest.in" "conftest.nl"
3228     echo 'GREP' >> "conftest.nl"
3229     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3230     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3231     ac_count=`expr $ac_count + 1`
3232     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3233       # Best one so far, save it but keep looking for a better one
3234       ac_cv_path_GREP="$ac_path_GREP"
3235       ac_path_GREP_max=$ac_count
3236     fi
3237     # 10*(2^10) chars as input seems more than enough
3238     test $ac_count -gt 10 && break
3239   done
3240   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3241 esac
3242
3243
3244     $ac_path_GREP_found && break 3
3245   done
3246 done
3247
3248 done
3249 IFS=$as_save_IFS
3250
3251
3252 fi
3253
3254 GREP="$ac_cv_path_GREP"
3255 if test -z "$GREP"; then
3256   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3257 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3258    { (exit 1); exit 1; }; }
3259 fi
3260
3261 else
3262   ac_cv_path_GREP=$GREP
3263 fi
3264
3265
3266 fi
3267 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3268 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3269  GREP="$ac_cv_path_GREP"
3270
3271
3272 { echo "$as_me:$LINENO: checking for egrep" >&5
3273 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3274 if test "${ac_cv_path_EGREP+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3278    then ac_cv_path_EGREP="$GREP -E"
3279    else
3280      # Extract the first word of "egrep" to use in msg output
3281 if test -z "$EGREP"; then
3282 set dummy egrep; ac_prog_name=$2
3283 if test "${ac_cv_path_EGREP+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   ac_path_EGREP_found=false
3287 # Loop through the user's path and test for each of PROGNAME-LIST
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   for ac_prog in egrep; do
3294   for ac_exec_ext in '' $ac_executable_extensions; do
3295     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3296     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3297     # Check for GNU ac_path_EGREP and select it if it is found.
3298   # Check for GNU $ac_path_EGREP
3299 case `"$ac_path_EGREP" --version 2>&1` in
3300 *GNU*)
3301   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3302 *)
3303   ac_count=0
3304   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3305   while :
3306   do
3307     cat "conftest.in" "conftest.in" >"conftest.tmp"
3308     mv "conftest.tmp" "conftest.in"
3309     cp "conftest.in" "conftest.nl"
3310     echo 'EGREP' >> "conftest.nl"
3311     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3312     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3313     ac_count=`expr $ac_count + 1`
3314     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3315       # Best one so far, save it but keep looking for a better one
3316       ac_cv_path_EGREP="$ac_path_EGREP"
3317       ac_path_EGREP_max=$ac_count
3318     fi
3319     # 10*(2^10) chars as input seems more than enough
3320     test $ac_count -gt 10 && break
3321   done
3322   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3323 esac
3324
3325
3326     $ac_path_EGREP_found && break 3
3327   done
3328 done
3329
3330 done
3331 IFS=$as_save_IFS
3332
3333
3334 fi
3335
3336 EGREP="$ac_cv_path_EGREP"
3337 if test -z "$EGREP"; then
3338   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3339 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3340    { (exit 1); exit 1; }; }
3341 fi
3342
3343 else
3344   ac_cv_path_EGREP=$EGREP
3345 fi
3346
3347
3348    fi
3349 fi
3350 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3351 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3352  EGREP="$ac_cv_path_EGREP"
3353
3354
3355
3356 { echo "$as_me:$LINENO: checking for AIX" >&5
3357 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #ifdef _AIX
3365   yes
3366 #endif
3367
3368 _ACEOF
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370   $EGREP "yes" >/dev/null 2>&1; then
3371   { echo "$as_me:$LINENO: result: yes" >&5
3372 echo "${ECHO_T}yes" >&6; }
3373 cat >>confdefs.h <<\_ACEOF
3374 #define _ALL_SOURCE 1
3375 _ACEOF
3376
3377 else
3378   { echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6; }
3380 fi
3381 rm -f conftest*
3382
3383
3384
3385 if test $ac_cv_c_compiler_gnu = yes; then
3386     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3387 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3388 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391     ac_pattern="Autoconf.*'x'"
3392   cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h.  */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h.  */
3398 #include <sgtty.h>
3399 Autoconf TIOCGETP
3400 _ACEOF
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3403   ac_cv_prog_gcc_traditional=yes
3404 else
3405   ac_cv_prog_gcc_traditional=no
3406 fi
3407 rm -f conftest*
3408
3409
3410   if test $ac_cv_prog_gcc_traditional = no; then
3411     cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #include <termio.h>
3418 Autoconf TCGETA
3419 _ACEOF
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3422   ac_cv_prog_gcc_traditional=yes
3423 fi
3424 rm -f conftest*
3425
3426   fi
3427 fi
3428 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3429 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3430   if test $ac_cv_prog_gcc_traditional = yes; then
3431     CC="$CC -traditional"
3432   fi
3433 fi
3434
3435 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3436 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_suncc+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   cat > conftest.c <<EOF
3441 #ifdef __SUNPRO_C
3442   yes;
3443 #endif
3444 EOF
3445 if { ac_try='${CC-cc} -E conftest.c'
3446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447   (eval $ac_try) 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3451   ac_cv_prog_suncc=yes
3452 else
3453   ac_cv_prog_suncc=no
3454 fi
3455 fi
3456 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3457 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3458 if test -n "$ac_tool_prefix"; then
3459   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463 if test "${ac_cv_prog_RANLIB+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   if test -n "$RANLIB"; then
3467   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474   for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 RANLIB=$ac_cv_prog_RANLIB
3487 if test -n "$RANLIB"; then
3488   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3489 echo "${ECHO_T}$RANLIB" >&6; }
3490 else
3491   { echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$ac_cv_prog_RANLIB"; then
3498   ac_ct_RANLIB=$RANLIB
3499   # Extract the first word of "ranlib", so it can be a program name with args.
3500 set dummy ranlib; ac_word=$2
3501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   if test -n "$ac_ct_RANLIB"; then
3507   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514   for ac_exec_ext in '' $ac_executable_extensions; do
3515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3516     ac_cv_prog_ac_ct_RANLIB="ranlib"
3517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3527 if test -n "$ac_ct_RANLIB"; then
3528   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3529 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3530 else
3531   { echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6; }
3533 fi
3534
3535   if test "x$ac_ct_RANLIB" = x; then
3536     RANLIB=":"
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3541 whose name does not start with the host triplet.  If you think this
3542 configuration is useful to you, please write to autoconf@gnu.org." >&5
3543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet.  If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548     RANLIB=$ac_ct_RANLIB
3549   fi
3550 else
3551   RANLIB="$ac_cv_prog_RANLIB"
3552 fi
3553
3554
3555 abs_top_builddir=`pwd`
3556
3557
3558
3559 PACKAGE=freeradius
3560
3561 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3562 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3563 if test "${ac_cv_header_stdc+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572 #include <stdlib.h>
3573 #include <stdarg.h>
3574 #include <string.h>
3575 #include <float.h>
3576
3577 int
3578 main ()
3579 {
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_compile") 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } &&
3599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3600   { (case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605   (eval "$ac_try") 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); }; } &&
3609          { ac_try='test -s conftest.$ac_objext'
3610   { (case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_try") 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   ac_cv_header_stdc=yes
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624         ac_cv_header_stdc=no
3625 fi
3626
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628
3629 if test $ac_cv_header_stdc = yes; then
3630   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3631   cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637 #include <string.h>
3638
3639 _ACEOF
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641   $EGREP "memchr" >/dev/null 2>&1; then
3642   :
3643 else
3644   ac_cv_header_stdc=no
3645 fi
3646 rm -f conftest*
3647
3648 fi
3649
3650 if test $ac_cv_header_stdc = yes; then
3651   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3652   cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h.  */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h.  */
3658 #include <stdlib.h>
3659
3660 _ACEOF
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662   $EGREP "free" >/dev/null 2>&1; then
3663   :
3664 else
3665   ac_cv_header_stdc=no
3666 fi
3667 rm -f conftest*
3668
3669 fi
3670
3671 if test $ac_cv_header_stdc = yes; then
3672   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3673   if test "$cross_compiling" = yes; then
3674   :
3675 else
3676   cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682 #include <ctype.h>
3683 #include <stdlib.h>
3684 #if ((' ' & 0x0FF) == 0x020)
3685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3687 #else
3688 # define ISLOWER(c) \
3689                    (('a' <= (c) && (c) <= 'i') \
3690                      || ('j' <= (c) && (c) <= 'r') \
3691                      || ('s' <= (c) && (c) <= 'z'))
3692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3693 #endif
3694
3695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3696 int
3697 main ()
3698 {
3699   int i;
3700   for (i = 0; i < 256; i++)
3701     if (XOR (islower (i), ISLOWER (i))
3702         || toupper (i) != TOUPPER (i))
3703       return 2;
3704   return 0;
3705 }
3706 _ACEOF
3707 rm -f conftest$ac_exeext
3708 if { (ac_try="$ac_link"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714   (eval "$ac_link") 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3718   { (case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_try") 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); }; }; then
3727   :
3728 else
3729   echo "$as_me: program exited with status $ac_status" >&5
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 ( exit $ac_status )
3734 ac_cv_header_stdc=no
3735 fi
3736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3737 fi
3738
3739
3740 fi
3741 fi
3742 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3743 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3744 if test $ac_cv_header_stdc = yes; then
3745
3746 cat >>confdefs.h <<\_ACEOF
3747 #define STDC_HEADERS 1
3748 _ACEOF
3749
3750 fi
3751
3752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3763                   inttypes.h stdint.h unistd.h
3764 do
3765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 $ac_includes_default
3778
3779 #include <$ac_header>
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_compile") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } &&
3795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3796   { (case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801   (eval "$ac_try") 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); }; } &&
3805          { ac_try='test -s conftest.$ac_objext'
3806   { (case "(($ac_try" in
3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808   *) ac_try_echo=$ac_try;;
3809 esac
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811   (eval "$ac_try") 2>&5
3812   ac_status=$?
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); }; }; then
3815   eval "$as_ac_Header=yes"
3816 else
3817   echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820         eval "$as_ac_Header=no"
3821 fi
3822
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 ac_res=`eval echo '${'$as_ac_Header'}'`
3826                { echo "$as_me:$LINENO: result: $ac_res" >&5
3827 echo "${ECHO_T}$ac_res" >&6; }
3828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3829   cat >>confdefs.h <<_ACEOF
3830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3831 _ACEOF
3832
3833 fi
3834
3835 done
3836
3837
3838 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3839 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3840 if test "${ac_cv_c_bigendian+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   # See if sys/param.h defines the BYTE_ORDER macro.
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850 #include <sys/types.h>
3851 #include <sys/param.h>
3852
3853 int
3854 main ()
3855 {
3856 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3857  bogus endian macros
3858 #endif
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.$ac_objext
3865 if { (ac_try="$ac_compile"
3866 case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871   (eval "$ac_compile") 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } &&
3878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3879   { (case "(($ac_try" in
3880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881   *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884   (eval "$ac_try") 2>&5
3885   ac_status=$?
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); }; } &&
3888          { ac_try='test -s conftest.$ac_objext'
3889   { (case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894   (eval "$ac_try") 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); }; }; then
3898   # It does; now see whether it defined to BIG_ENDIAN or not.
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <sys/types.h>
3906 #include <sys/param.h>
3907
3908 int
3909 main ()
3910 {
3911 #if BYTE_ORDER != BIG_ENDIAN
3912  not big endian
3913 #endif
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3921 case "(($ac_try" in
3922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923   *) ac_try_echo=$ac_try;;
3924 esac
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926   (eval "$ac_compile") 2>conftest.er1
3927   ac_status=$?
3928   grep -v '^ *+' conftest.er1 >conftest.err
3929   rm -f conftest.er1
3930   cat conftest.err >&5
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } &&
3933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3934   { (case "(($ac_try" in
3935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936   *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939   (eval "$ac_try") 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; } &&
3943          { ac_try='test -s conftest.$ac_objext'
3944   { (case "(($ac_try" in
3945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946   *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949   (eval "$ac_try") 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }; }; then
3953   ac_cv_c_bigendian=yes
3954 else
3955   echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958         ac_cv_c_bigendian=no
3959 fi
3960
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966         # It does not; compile a test program.
3967 if test "$cross_compiling" = yes; then
3968   # try to guess the endianness by grepping values into an object file
3969   ac_cv_c_bigendian=unknown
3970   cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h.  */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h.  */
3976 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3977 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3978 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3979 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3980 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3981 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3982 int
3983 main ()
3984 {
3985  _ascii (); _ebcdic ();
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3992 case "(($ac_try" in
3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994   *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997   (eval "$ac_compile") 2>conftest.er1
3998   ac_status=$?
3999   grep -v '^ *+' conftest.er1 >conftest.err
4000   rm -f conftest.er1
4001   cat conftest.err >&5
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); } &&
4004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4005   { (case "(($ac_try" in
4006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007   *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010   (eval "$ac_try") 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }; } &&
4014          { ac_try='test -s conftest.$ac_objext'
4015   { (case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020   (eval "$ac_try") 2>&5
4021   ac_status=$?
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); }; }; then
4024   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4025   ac_cv_c_bigendian=yes
4026 fi
4027 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4028   if test "$ac_cv_c_bigendian" = unknown; then
4029     ac_cv_c_bigendian=no
4030   else
4031     # finding both strings is unlikely to happen, but who knows?
4032     ac_cv_c_bigendian=unknown
4033   fi
4034 fi
4035 else
4036   echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 else
4044   cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h.  */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h.  */
4050 $ac_includes_default
4051 int
4052 main ()
4053 {
4054
4055   /* Are we little or big endian?  From Harbison&Steele.  */
4056   union
4057   {
4058     long int l;
4059     char c[sizeof (long int)];
4060   } u;
4061   u.l = 1;
4062   return u.c[sizeof (long int) - 1] == 1;
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest$ac_exeext
4069 if { (ac_try="$ac_link"
4070 case "(($ac_try" in
4071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072   *) ac_try_echo=$ac_try;;
4073 esac
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075   (eval "$ac_link") 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4079   { (case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_try") 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   ac_cv_c_bigendian=no
4089 else
4090   echo "$as_me: program exited with status $ac_status" >&5
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 ( exit $ac_status )
4095 ac_cv_c_bigendian=yes
4096 fi
4097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4098 fi
4099
4100
4101 fi
4102
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 fi
4105 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4106 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4107 case $ac_cv_c_bigendian in
4108   yes)
4109
4110 cat >>confdefs.h <<\_ACEOF
4111 #define WORDS_BIGENDIAN 1
4112 _ACEOF
4113  ;;
4114   no)
4115      ;;
4116   *)
4117     { { echo "$as_me:$LINENO: error: unknown endianness
4118 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4119 echo "$as_me: error: unknown endianness
4120 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4121    { (exit 1); exit 1; }; } ;;
4122 esac
4123
4124
4125 # Extract the first word of "gmake", so it can be a program name with args.
4126 set dummy gmake; ac_word=$2
4127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4129 if test "${ac_cv_prog_GMAKE+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   if test -n "$GMAKE"; then
4133   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140   for ac_exec_ext in '' $ac_executable_extensions; do
4141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4142     ac_cv_prog_GMAKE="yes"
4143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4151 fi
4152 fi
4153 GMAKE=$ac_cv_prog_GMAKE
4154 if test -n "$GMAKE"; then
4155   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4156 echo "${ECHO_T}$GMAKE" >&6; }
4157 else
4158   { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4160 fi
4161
4162
4163 if test $GMAKE = no; then
4164   # Extract the first word of "make", so it can be a program name with args.
4165 set dummy make; ac_word=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_MAKE+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   case $MAKE in
4172   [\\/]* | ?:[\\/]*)
4173   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4174   ;;
4175   *)
4176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181   for ac_exec_ext in '' $ac_executable_extensions; do
4182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4183     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188 done
4189 IFS=$as_save_IFS
4190
4191   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4192   ;;
4193 esac
4194 fi
4195 MAKE=$ac_cv_path_MAKE
4196 if test -n "$MAKE"; then
4197   { echo "$as_me:$LINENO: result: $MAKE" >&5
4198 echo "${ECHO_T}$MAKE" >&6; }
4199 else
4200   { echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6; }
4202 fi
4203
4204
4205 else
4206   # Extract the first word of "gmake", so it can be a program name with args.
4207 set dummy gmake; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_path_MAKE+set}" = set; then
4211   echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213   case $MAKE in
4214   [\\/]* | ?:[\\/]*)
4215   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4216   ;;
4217   *)
4218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223   for ac_exec_ext in '' $ac_executable_extensions; do
4224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4225     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230 done
4231 IFS=$as_save_IFS
4232
4233   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4234   ;;
4235 esac
4236 fi
4237 MAKE=$ac_cv_path_MAKE
4238 if test -n "$MAKE"; then
4239   { echo "$as_me:$LINENO: result: $MAKE" >&5
4240 echo "${ECHO_T}$MAKE" >&6; }
4241 else
4242   { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4244 fi
4245
4246
4247 fi
4248 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4249 if test -z "$makever"; then
4250   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4251                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4252 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4253                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4254    { (exit 1); exit 1; }; }
4255 fi
4256
4257   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4258 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4259 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   ac_check_lib_save_LIBS=$LIBS
4263 LIBS="-lltdl  $LIBS"
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270
4271 /* Override any GCC internal prototype to avoid an error.
4272    Use char because int might match the return type of a GCC
4273    builtin and then its argument prototype would still apply.  */
4274 #ifdef __cplusplus
4275 extern "C"
4276 #endif
4277 char lt_dlinit ();
4278 int
4279 main ()
4280 {
4281 return lt_dlinit ();
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (ac_try="$ac_link"
4288 case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293   (eval "$ac_link") 2>conftest.er1
4294   ac_status=$?
4295   grep -v '^ *+' conftest.er1 >conftest.err
4296   rm -f conftest.er1
4297   cat conftest.err >&5
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4301   { (case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_try") 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; } &&
4310          { ac_try='test -s conftest$ac_exeext'
4311   { (case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316   (eval "$ac_try") 2>&5
4317   ac_status=$?
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); }; }; then
4320   ac_cv_lib_ltdl_lt_dlinit=yes
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325         ac_cv_lib_ltdl_lt_dlinit=no
4326 fi
4327
4328 rm -f core conftest.err conftest.$ac_objext \
4329       conftest$ac_exeext conftest.$ac_ext
4330 LIBS=$ac_check_lib_save_LIBS
4331 fi
4332 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4333 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4334 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4335   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4336 else
4337   if test x"$enable_ltdl_install" = xno; then
4338      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4339 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4340    else
4341      enable_ltdl_install=yes
4342    fi
4343
4344 fi
4345
4346   if test x"$enable_ltdl_install" = x"yes"; then
4347     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4348     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4349     LTDLINCL='-I${top_srcdir}/''libltdl'
4350   else
4351     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4352     LIBLTDL="-lltdl"
4353     LTDLINCL=
4354   fi
4355   # For backwards non-gettext consistent compatibility...
4356   INCLTDL="$LTDLINCL"
4357
4358
4359 if test x"$enable_ltdl_install" = x"yes"; then
4360   LTDL_SUBDIRS=libltdl
4361 fi
4362
4363
4364 # Check whether --enable-shared was given.
4365 if test "${enable_shared+set}" = set; then
4366   enableval=$enable_shared; p=${PACKAGE-default}
4367     case $enableval in
4368     yes) enable_shared=yes ;;
4369     no) enable_shared=no ;;
4370     *)
4371       enable_shared=no
4372       # Look at the argument we got.  We use all the common list separators.
4373       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4374       for pkg in $enableval; do
4375         IFS="$lt_save_ifs"
4376         if test "X$pkg" = "X$p"; then
4377           enable_shared=yes
4378         fi
4379       done
4380       IFS="$lt_save_ifs"
4381       ;;
4382     esac
4383 else
4384   enable_shared=yes
4385 fi
4386
4387
4388 # Check whether --enable-static was given.
4389 if test "${enable_static+set}" = set; then
4390   enableval=$enable_static; p=${PACKAGE-default}
4391     case $enableval in
4392     yes) enable_static=yes ;;
4393     no) enable_static=no ;;
4394     *)
4395      enable_static=no
4396       # Look at the argument we got.  We use all the common list separators.
4397       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4398       for pkg in $enableval; do
4399         IFS="$lt_save_ifs"
4400         if test "X$pkg" = "X$p"; then
4401           enable_static=yes
4402         fi
4403       done
4404       IFS="$lt_save_ifs"
4405       ;;
4406     esac
4407 else
4408   enable_static=yes
4409 fi
4410
4411
4412 # Check whether --enable-fast-install was given.
4413 if test "${enable_fast_install+set}" = set; then
4414   enableval=$enable_fast_install; p=${PACKAGE-default}
4415     case $enableval in
4416     yes) enable_fast_install=yes ;;
4417     no) enable_fast_install=no ;;
4418     *)
4419       enable_fast_install=no
4420       # Look at the argument we got.  We use all the common list separators.
4421       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4422       for pkg in $enableval; do
4423         IFS="$lt_save_ifs"
4424         if test "X$pkg" = "X$p"; then
4425           enable_fast_install=yes
4426         fi
4427       done
4428       IFS="$lt_save_ifs"
4429       ;;
4430     esac
4431 else
4432   enable_fast_install=yes
4433 fi
4434
4435
4436 ac_aux_dir=
4437 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4438   if test -f "$ac_dir/install-sh"; then
4439     ac_aux_dir=$ac_dir
4440     ac_install_sh="$ac_aux_dir/install-sh -c"
4441     break
4442   elif test -f "$ac_dir/install.sh"; then
4443     ac_aux_dir=$ac_dir
4444     ac_install_sh="$ac_aux_dir/install.sh -c"
4445     break
4446   elif test -f "$ac_dir/shtool"; then
4447     ac_aux_dir=$ac_dir
4448     ac_install_sh="$ac_aux_dir/shtool install -c"
4449     break
4450   fi
4451 done
4452 if test -z "$ac_aux_dir"; then
4453   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4454 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4455    { (exit 1); exit 1; }; }
4456 fi
4457
4458 # These three variables are undocumented and unsupported,
4459 # and are intended to be withdrawn in a future Autoconf release.
4460 # They can cause serious problems if a builder's source tree is in a directory
4461 # whose full name contains unusual characters.
4462 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4463 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4464 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4465
4466
4467 # Make sure we can run config.sub.
4468 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4469   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4470 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4471    { (exit 1); exit 1; }; }
4472
4473 { echo "$as_me:$LINENO: checking build system type" >&5
4474 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4475 if test "${ac_cv_build+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   ac_build_alias=$build_alias
4479 test "x$ac_build_alias" = x &&
4480   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4481 test "x$ac_build_alias" = x &&
4482   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4483 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4484    { (exit 1); exit 1; }; }
4485 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4486   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4487 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4488    { (exit 1); exit 1; }; }
4489
4490 fi
4491 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4492 echo "${ECHO_T}$ac_cv_build" >&6; }
4493 case $ac_cv_build in
4494 *-*-*) ;;
4495 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4496 echo "$as_me: error: invalid value of canonical build" >&2;}
4497    { (exit 1); exit 1; }; };;
4498 esac
4499 build=$ac_cv_build
4500 ac_save_IFS=$IFS; IFS='-'
4501 set x $ac_cv_build
4502 shift
4503 build_cpu=$1
4504 build_vendor=$2
4505 shift; shift
4506 # Remember, the first character of IFS is used to create $*,
4507 # except with old shells:
4508 build_os=$*
4509 IFS=$ac_save_IFS
4510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4511
4512
4513 { echo "$as_me:$LINENO: checking host system type" >&5
4514 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4515 if test "${ac_cv_host+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   if test "x$host_alias" = x; then
4519   ac_cv_host=$ac_cv_build
4520 else
4521   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4522     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4523 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4524    { (exit 1); exit 1; }; }
4525 fi
4526
4527 fi
4528 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4529 echo "${ECHO_T}$ac_cv_host" >&6; }
4530 case $ac_cv_host in
4531 *-*-*) ;;
4532 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4533 echo "$as_me: error: invalid value of canonical host" >&2;}
4534    { (exit 1); exit 1; }; };;
4535 esac
4536 host=$ac_cv_host
4537 ac_save_IFS=$IFS; IFS='-'
4538 set x $ac_cv_host
4539 shift
4540 host_cpu=$1
4541 host_vendor=$2
4542 shift; shift
4543 # Remember, the first character of IFS is used to create $*,
4544 # except with old shells:
4545 host_os=$*
4546 IFS=$ac_save_IFS
4547 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4548
4549
4550 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4551 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4552 if test "${lt_cv_path_SED+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   # Loop through the user's path and test for sed and gsed.
4556 # Then use that list of sed's as ones to test for truncation.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   for lt_ac_prog in sed gsed; do
4563     for ac_exec_ext in '' $ac_executable_extensions; do
4564       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4565         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4566       fi
4567     done
4568   done
4569 done
4570 lt_ac_max=0
4571 lt_ac_count=0
4572 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4573 # along with /bin/sed that truncates output.
4574 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4575   test ! -f $lt_ac_sed && continue
4576   cat /dev/null > conftest.in
4577   lt_ac_count=0
4578   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4579   # Check for GNU sed and select it if it is found.
4580   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4581     lt_cv_path_SED=$lt_ac_sed
4582     break
4583   fi
4584   while true; do
4585     cat conftest.in conftest.in >conftest.tmp
4586     mv conftest.tmp conftest.in
4587     cp conftest.in conftest.nl
4588     echo >>conftest.nl
4589     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4590     cmp -s conftest.out conftest.nl || break
4591     # 10000 chars as input seems more than enough
4592     test $lt_ac_count -gt 10 && break
4593     lt_ac_count=`expr $lt_ac_count + 1`
4594     if test $lt_ac_count -gt $lt_ac_max; then
4595       lt_ac_max=$lt_ac_count
4596       lt_cv_path_SED=$lt_ac_sed
4597     fi
4598   done
4599 done
4600
4601 fi
4602
4603 SED=$lt_cv_path_SED
4604 { echo "$as_me:$LINENO: result: $SED" >&5
4605 echo "${ECHO_T}$SED" >&6; }
4606
4607
4608 # Check whether --with-gnu-ld was given.
4609 if test "${with_gnu_ld+set}" = set; then
4610   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4611 else
4612   with_gnu_ld=no
4613 fi
4614
4615 ac_prog=ld
4616 if test "$GCC" = yes; then
4617   # Check if gcc -print-prog-name=ld gives a path.
4618   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4619 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4620   case $host in
4621   *-*-mingw*)
4622     # gcc leaves a trailing carriage return which upsets mingw
4623     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4624   *)
4625     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4626   esac
4627   case $ac_prog in
4628     # Accept absolute paths.
4629     [\\/]* | ?:[\\/]*)
4630       re_direlt='/[^/][^/]*/\.\./'
4631       # Canonicalize the pathname of ld
4632       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4633       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4634         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4635       done
4636       test -z "$LD" && LD="$ac_prog"
4637       ;;
4638   "")
4639     # If it fails, then pretend we aren't using GCC.
4640     ac_prog=ld
4641     ;;
4642   *)
4643     # If it is relative, then search for the first ld in PATH.
4644     with_gnu_ld=unknown
4645     ;;
4646   esac
4647 elif test "$with_gnu_ld" = yes; then
4648   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4649 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4650 else
4651   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4652 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4653 fi
4654 if test "${lt_cv_path_LD+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -z "$LD"; then
4658   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4659   for ac_dir in $PATH; do
4660     IFS="$lt_save_ifs"
4661     test -z "$ac_dir" && ac_dir=.
4662     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4663       lt_cv_path_LD="$ac_dir/$ac_prog"
4664       # Check to see if the program is GNU ld.  I'd rather use --version,
4665       # but apparently some variants of GNU ld only accept -v.
4666       # Break only if it was the GNU/non-GNU ld that we prefer.
4667       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4668       *GNU* | *'with BFD'*)
4669         test "$with_gnu_ld" != no && break
4670         ;;
4671       *)
4672         test "$with_gnu_ld" != yes && break
4673         ;;
4674       esac
4675     fi
4676   done
4677   IFS="$lt_save_ifs"
4678 else
4679   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4680 fi
4681 fi
4682
4683 LD="$lt_cv_path_LD"
4684 if test -n "$LD"; then
4685   { echo "$as_me:$LINENO: result: $LD" >&5
4686 echo "${ECHO_T}$LD" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4692 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4693    { (exit 1); exit 1; }; }
4694 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4695 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4696 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4700 case `$LD -v 2>&1 </dev/null` in
4701 *GNU* | *'with BFD'*)
4702   lt_cv_prog_gnu_ld=yes
4703   ;;
4704 *)
4705   lt_cv_prog_gnu_ld=no
4706   ;;
4707 esac
4708 fi
4709 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4710 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4711 with_gnu_ld=$lt_cv_prog_gnu_ld
4712
4713
4714 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4715 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4716 if test "${lt_cv_ld_reload_flag+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   lt_cv_ld_reload_flag='-r'
4720 fi
4721 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4722 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4723 reload_flag=$lt_cv_ld_reload_flag
4724 case $reload_flag in
4725 "" | " "*) ;;
4726 *) reload_flag=" $reload_flag" ;;
4727 esac
4728 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4729 case $host_os in
4730   darwin*)
4731     if test "$GCC" = yes; then
4732       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4733     else
4734       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4735     fi
4736     ;;
4737 esac
4738
4739 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4740 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4741 if test "${lt_cv_path_NM+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   if test -n "$NM"; then
4745   # Let the user override the test.
4746   lt_cv_path_NM="$NM"
4747 else
4748   lt_nm_to_check="${ac_tool_prefix}nm"
4749   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4750     lt_nm_to_check="$lt_nm_to_check nm"
4751   fi
4752   for lt_tmp_nm in $lt_nm_to_check; do
4753     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4754     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4755       IFS="$lt_save_ifs"
4756       test -z "$ac_dir" && ac_dir=.
4757       tmp_nm="$ac_dir/$lt_tmp_nm"
4758       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4759         # Check to see if the nm accepts a BSD-compat flag.
4760         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4761         #   nm: unknown option "B" ignored
4762         # Tru64's nm complains that /dev/null is an invalid object file
4763         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4764         */dev/null* | *'Invalid file or object type'*)
4765           lt_cv_path_NM="$tmp_nm -B"
4766           break
4767           ;;
4768         *)
4769           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4770           */dev/null*)
4771             lt_cv_path_NM="$tmp_nm -p"
4772             break
4773             ;;
4774           *)
4775             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4776             continue # so that we can try to find one that supports BSD flags
4777             ;;
4778           esac
4779           ;;
4780         esac
4781       fi
4782     done
4783     IFS="$lt_save_ifs"
4784   done
4785   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4786 fi
4787 fi
4788 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4789 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4790 NM="$lt_cv_path_NM"
4791
4792 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4793 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4794 LN_S=$as_ln_s
4795 if test "$LN_S" = "ln -s"; then
4796   { echo "$as_me:$LINENO: result: yes" >&5
4797 echo "${ECHO_T}yes" >&6; }
4798 else
4799   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4800 echo "${ECHO_T}no, using $LN_S" >&6; }
4801 fi
4802
4803 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4804 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4805 if test "${lt_cv_deplibs_check_method+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   lt_cv_file_magic_cmd='$MAGIC_CMD'
4809 lt_cv_file_magic_test_file=
4810 lt_cv_deplibs_check_method='unknown'
4811 # Need to set the preceding variable on all platforms that support
4812 # interlibrary dependencies.
4813 # 'none' -- dependencies not supported.
4814 # `unknown' -- same as none, but documents that we really don't know.
4815 # 'pass_all' -- all dependencies passed with no checks.
4816 # 'test_compile' -- check by making test program.
4817 # 'file_magic [[regex]]' -- check by looking for files in library path
4818 # which responds to the $file_magic_cmd with a given extended regex.
4819 # If you have `file' or equivalent on your system and you're not sure
4820 # whether `pass_all' will *always* work, you probably want this one.
4821
4822 case $host_os in
4823 aix4* | aix5*)
4824   lt_cv_deplibs_check_method=pass_all
4825   ;;
4826
4827 beos*)
4828   lt_cv_deplibs_check_method=pass_all
4829   ;;
4830
4831 bsdi[45]*)
4832   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4833   lt_cv_file_magic_cmd='/usr/bin/file -L'
4834   lt_cv_file_magic_test_file=/shlib/libc.so
4835   ;;
4836
4837 cygwin*)
4838   # func_win32_libid is a shell function defined in ltmain.sh
4839   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4840   lt_cv_file_magic_cmd='func_win32_libid'
4841   ;;
4842
4843 mingw* | pw32*)
4844   # Base MSYS/MinGW do not provide the 'file' command needed by
4845   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4846   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4847   lt_cv_file_magic_cmd='$OBJDUMP -f'
4848   ;;
4849
4850 darwin* | rhapsody*)
4851   lt_cv_deplibs_check_method=pass_all
4852   ;;
4853
4854 freebsd* | kfreebsd*-gnu | dragonfly*)
4855   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4856     case $host_cpu in
4857     i*86 )
4858       # Not sure whether the presence of OpenBSD here was a mistake.
4859       # Let's accept both of them until this is cleared up.
4860       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4861       lt_cv_file_magic_cmd=/usr/bin/file
4862       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4863       ;;
4864     esac
4865   else
4866     lt_cv_deplibs_check_method=pass_all
4867   fi
4868   ;;
4869
4870 gnu*)
4871   lt_cv_deplibs_check_method=pass_all
4872   ;;
4873
4874 hpux10.20* | hpux11*)
4875   lt_cv_file_magic_cmd=/usr/bin/file
4876   case $host_cpu in
4877   ia64*)
4878     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4879     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4880     ;;
4881   hppa*64*)
4882     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]'
4883     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4884     ;;
4885   *)
4886     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4887     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4888     ;;
4889   esac
4890   ;;
4891
4892 interix3*)
4893   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4894   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4895   ;;
4896
4897 irix5* | irix6* | nonstopux*)
4898   case $LD in
4899   *-32|*"-32 ") libmagic=32-bit;;
4900   *-n32|*"-n32 ") libmagic=N32;;
4901   *-64|*"-64 ") libmagic=64-bit;;
4902   *) libmagic=never-match;;
4903   esac
4904   lt_cv_deplibs_check_method=pass_all
4905   ;;
4906
4907 # This must be Linux ELF.
4908 linux*)
4909   lt_cv_deplibs_check_method=pass_all
4910   ;;
4911
4912 netbsd*)
4913   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4914     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4915   else
4916     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4917   fi
4918   ;;
4919
4920 newos6*)
4921   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4922   lt_cv_file_magic_cmd=/usr/bin/file
4923   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4924   ;;
4925
4926 nto-qnx*)
4927   lt_cv_deplibs_check_method=unknown
4928   ;;
4929
4930 openbsd*)
4931   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4932     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4933   else
4934     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4935   fi
4936   ;;
4937
4938 osf3* | osf4* | osf5*)
4939   lt_cv_deplibs_check_method=pass_all
4940   ;;
4941
4942 solaris*)
4943   lt_cv_deplibs_check_method=pass_all
4944   ;;
4945
4946 sysv4 | sysv4.3*)
4947   case $host_vendor in
4948   motorola)
4949     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]'
4950     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4951     ;;
4952   ncr)
4953     lt_cv_deplibs_check_method=pass_all
4954     ;;
4955   sequent)
4956     lt_cv_file_magic_cmd='/bin/file'
4957     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4958     ;;
4959   sni)
4960     lt_cv_file_magic_cmd='/bin/file'
4961     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4962     lt_cv_file_magic_test_file=/lib/libc.so
4963     ;;
4964   siemens)
4965     lt_cv_deplibs_check_method=pass_all
4966     ;;
4967   pc)
4968     lt_cv_deplibs_check_method=pass_all
4969     ;;
4970   esac
4971   ;;
4972
4973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4974   lt_cv_deplibs_check_method=pass_all
4975   ;;
4976 esac
4977
4978 fi
4979 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4980 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4981 file_magic_cmd=$lt_cv_file_magic_cmd
4982 deplibs_check_method=$lt_cv_deplibs_check_method
4983 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4984
4985
4986
4987
4988 # If no C compiler was specified, use CC.
4989 LTCC=${LTCC-"$CC"}
4990
4991 # If no C compiler flags were specified, use CFLAGS.
4992 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4993
4994 # Allow CC to be a program name with arguments.
4995 compiler=$CC
4996
4997 # Check whether --enable-libtool-lock was given.
4998 if test "${enable_libtool_lock+set}" = set; then
4999   enableval=$enable_libtool_lock;
5000 fi
5001
5002 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5003
5004 # Some flags need to be propagated to the compiler or linker for good
5005 # libtool support.
5006 case $host in
5007 ia64-*-hpux*)
5008   # Find out which ABI we are using.
5009   echo 'int i;' > conftest.$ac_ext
5010   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011   (eval $ac_compile) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); }; then
5015     case `/usr/bin/file conftest.$ac_objext` in
5016     *ELF-32*)
5017       HPUX_IA64_MODE="32"
5018       ;;
5019     *ELF-64*)
5020       HPUX_IA64_MODE="64"
5021       ;;
5022     esac
5023   fi
5024   rm -rf conftest*
5025   ;;
5026 *-*-irix6*)
5027   # Find out which ABI we are using.
5028   echo '#line 5028 "configure"' > conftest.$ac_ext
5029   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030   (eval $ac_compile) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); }; then
5034    if test "$lt_cv_prog_gnu_ld" = yes; then
5035     case `/usr/bin/file conftest.$ac_objext` in
5036     *32-bit*)
5037       LD="${LD-ld} -melf32bsmip"
5038       ;;
5039     *N32*)
5040       LD="${LD-ld} -melf32bmipn32"
5041       ;;
5042     *64-bit*)
5043       LD="${LD-ld} -melf64bmip"
5044       ;;
5045     esac
5046    else
5047     case `/usr/bin/file conftest.$ac_objext` in
5048     *32-bit*)
5049       LD="${LD-ld} -32"
5050       ;;
5051     *N32*)
5052       LD="${LD-ld} -n32"
5053       ;;
5054     *64-bit*)
5055       LD="${LD-ld} -64"
5056       ;;
5057     esac
5058    fi
5059   fi
5060   rm -rf conftest*
5061   ;;
5062
5063 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5064   # Find out which ABI we are using.
5065   echo 'int i;' > conftest.$ac_ext
5066   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; then
5071     case `/usr/bin/file conftest.o` in
5072     *32-bit*)
5073       case $host in
5074         x86_64-*linux*)
5075           LD="${LD-ld} -m elf_i386"
5076           ;;
5077         ppc64-*linux*|powerpc64-*linux*)
5078           LD="${LD-ld} -m elf32ppclinux"
5079           ;;
5080         s390x-*linux*)
5081           LD="${LD-ld} -m elf_s390"
5082           ;;
5083         sparc64-*linux*)
5084           LD="${LD-ld} -m elf32_sparc"
5085           ;;
5086       esac
5087       ;;
5088     *64-bit*)
5089       case $host in
5090         x86_64-*linux*)
5091           LD="${LD-ld} -m elf_x86_64"
5092           ;;
5093         ppc*-*linux*|powerpc*-*linux*)
5094           LD="${LD-ld} -m elf64ppc"
5095           ;;
5096         s390*-*linux*)
5097           LD="${LD-ld} -m elf64_s390"
5098           ;;
5099         sparc*-*linux*)
5100           LD="${LD-ld} -m elf64_sparc"
5101           ;;
5102       esac
5103       ;;
5104     esac
5105   fi
5106   rm -rf conftest*
5107   ;;
5108
5109 *-*-sco3.2v5*)
5110   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5111   SAVE_CFLAGS="$CFLAGS"
5112   CFLAGS="$CFLAGS -belf"
5113   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5114 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5115 if test "${lt_cv_cc_needs_belf+set}" = set; then
5116   echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118   ac_ext=c
5119 ac_cpp='$CPP $CPPFLAGS'
5120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123
5124      cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130
5131 int
5132 main ()
5133 {
5134
5135   ;
5136   return 0;
5137 }
5138 _ACEOF
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (ac_try="$ac_link"
5141 case "(($ac_try" in
5142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143   *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146   (eval "$ac_link") 2>conftest.er1
5147   ac_status=$?
5148   grep -v '^ *+' conftest.er1 >conftest.err
5149   rm -f conftest.er1
5150   cat conftest.err >&5
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } &&
5153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5154   { (case "(($ac_try" in
5155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156   *) ac_try_echo=$ac_try;;
5157 esac
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159   (eval "$ac_try") 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; } &&
5163          { ac_try='test -s conftest$ac_exeext'
5164   { (case "(($ac_try" in
5165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166   *) ac_try_echo=$ac_try;;
5167 esac
5168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169   (eval "$ac_try") 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; }; then
5173   lt_cv_cc_needs_belf=yes
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178         lt_cv_cc_needs_belf=no
5179 fi
5180
5181 rm -f core conftest.err conftest.$ac_objext \
5182       conftest$ac_exeext conftest.$ac_ext
5183      ac_ext=c
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188
5189 fi
5190 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5191 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5192   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5193     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5194     CFLAGS="$SAVE_CFLAGS"
5195   fi
5196   ;;
5197 sparc*-*solaris*)
5198   # Find out which ABI we are using.
5199   echo 'int i;' > conftest.$ac_ext
5200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; then
5205     case `/usr/bin/file conftest.o` in
5206     *64-bit*)
5207       case $lt_cv_prog_gnu_ld in
5208       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5209       *)    LD="${LD-ld} -64" ;;
5210       esac
5211       ;;
5212     esac
5213   fi
5214   rm -rf conftest*
5215   ;;
5216
5217
5218 esac
5219
5220 need_locks="$enable_libtool_lock"
5221
5222
5223
5224 for ac_header in dlfcn.h
5225 do
5226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5228   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 fi
5233 ac_res=`eval echo '${'$as_ac_Header'}'`
5234                { echo "$as_me:$LINENO: result: $ac_res" >&5
5235 echo "${ECHO_T}$ac_res" >&6; }
5236 else
5237   # Is the header compilable?
5238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246 $ac_includes_default
5247 #include <$ac_header>
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (ac_try="$ac_compile"
5251 case "(($ac_try" in
5252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253   *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256   (eval "$ac_compile") 2>conftest.er1
5257   ac_status=$?
5258   grep -v '^ *+' conftest.er1 >conftest.err
5259   rm -f conftest.er1
5260   cat conftest.err >&5
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); } &&
5263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5264   { (case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_try") 2>&5
5270   ac_status=$?
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); }; } &&
5273          { ac_try='test -s conftest.$ac_objext'
5274   { (case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_try") 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   ac_header_compiler=yes
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288         ac_header_compiler=no
5289 fi
5290
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5293 echo "${ECHO_T}$ac_header_compiler" >&6; }
5294
5295 # Is the header present?
5296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h.  */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h.  */
5304 #include <$ac_header>
5305 _ACEOF
5306 if { (ac_try="$ac_cpp conftest.$ac_ext"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } >/dev/null; then
5319   if test -s conftest.err; then
5320     ac_cpp_err=$ac_c_preproc_warn_flag
5321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5322   else
5323     ac_cpp_err=
5324   fi
5325 else
5326   ac_cpp_err=yes
5327 fi
5328 if test -z "$ac_cpp_err"; then
5329   ac_header_preproc=yes
5330 else
5331   echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334   ac_header_preproc=no
5335 fi
5336
5337 rm -f conftest.err conftest.$ac_ext
5338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5339 echo "${ECHO_T}$ac_header_preproc" >&6; }
5340
5341 # So?  What about this header?
5342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5343   yes:no: )
5344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5348     ac_header_preproc=yes
5349     ;;
5350   no:yes:* )
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5363
5364     ;;
5365 esac
5366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   eval "$as_ac_Header=\$ac_header_preproc"
5372 fi
5373 ac_res=`eval echo '${'$as_ac_Header'}'`
5374                { echo "$as_me:$LINENO: result: $ac_res" >&5
5375 echo "${ECHO_T}$ac_res" >&6; }
5376
5377 fi
5378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5379   cat >>confdefs.h <<_ACEOF
5380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5381 _ACEOF
5382
5383 fi
5384
5385 done
5386
5387 ac_ext=cpp
5388 ac_cpp='$CXXCPP $CPPFLAGS'
5389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5392 if test -z "$CXX"; then
5393   if test -n "$CCC"; then
5394     CXX=$CCC
5395   else
5396     if test -n "$ac_tool_prefix"; then
5397   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398   do
5399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5403 if test "${ac_cv_prog_CXX+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   if test -n "$CXX"; then
5407   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414   for ac_exec_ext in '' $ac_executable_extensions; do
5415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5416     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418     break 2
5419   fi
5420 done
5421 done
5422 IFS=$as_save_IFS
5423
5424 fi
5425 fi
5426 CXX=$ac_cv_prog_CXX
5427 if test -n "$CXX"; then
5428   { echo "$as_me:$LINENO: result: $CXX" >&5
5429 echo "${ECHO_T}$CXX" >&6; }
5430 else
5431   { echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6; }
5433 fi
5434
5435
5436     test -n "$CXX" && break
5437   done
5438 fi
5439 if test -z "$CXX"; then
5440   ac_ct_CXX=$CXX
5441   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5442 do
5443   # Extract the first word of "$ac_prog", so it can be a program name with args.
5444 set dummy $ac_prog; ac_word=$2
5445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5447 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   if test -n "$ac_ct_CXX"; then
5451   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458   for ac_exec_ext in '' $ac_executable_extensions; do
5459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5460     ac_cv_prog_ac_ct_CXX="$ac_prog"
5461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465 done
5466 IFS=$as_save_IFS
5467
5468 fi
5469 fi
5470 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5471 if test -n "$ac_ct_CXX"; then
5472   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5473 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5474 else
5475   { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5477 fi
5478
5479
5480   test -n "$ac_ct_CXX" && break
5481 done
5482
5483   if test "x$ac_ct_CXX" = x; then
5484     CXX="g++"
5485   else
5486     case $cross_compiling:$ac_tool_warned in
5487 yes:)
5488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5489 whose name does not start with the host triplet.  If you think this
5490 configuration is useful to you, please write to autoconf@gnu.org." >&5
5491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5492 whose name does not start with the host triplet.  If you think this
5493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496     CXX=$ac_ct_CXX
5497   fi
5498 fi
5499
5500   fi
5501 fi
5502 # Provide some information about the compiler.
5503 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5504 ac_compiler=`set X $ac_compile; echo $2`
5505 { (ac_try="$ac_compiler --version >&5"
5506 case "(($ac_try" in
5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508   *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511   (eval "$ac_compiler --version >&5") 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }
5515 { (ac_try="$ac_compiler -v >&5"
5516 case "(($ac_try" in
5517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518   *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521   (eval "$ac_compiler -v >&5") 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }
5525 { (ac_try="$ac_compiler -V >&5"
5526 case "(($ac_try" in
5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528   *) ac_try_echo=$ac_try;;
5529 esac
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531   (eval "$ac_compiler -V >&5") 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }
5535
5536 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5537 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5538 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h.  */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h.  */
5547
5548 int
5549 main ()
5550 {
5551 #ifndef __GNUC__
5552        choke me
5553 #endif
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_compile") 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
5570   cat conftest.err >&5
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } &&
5573          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5574   { (case "(($ac_try" in
5575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576   *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579   (eval "$ac_try") 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); }; } &&
5583          { ac_try='test -s conftest.$ac_objext'
5584   { (case "(($ac_try" in
5585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586   *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589   (eval "$ac_try") 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; }; then
5593   ac_compiler_gnu=yes
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598         ac_compiler_gnu=no
5599 fi
5600
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5603
5604 fi
5605 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5606 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5607 GXX=`test $ac_compiler_gnu = yes && echo yes`
5608 ac_test_CXXFLAGS=${CXXFLAGS+set}
5609 ac_save_CXXFLAGS=$CXXFLAGS
5610 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5611 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cxx_g+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5616    ac_cxx_werror_flag=yes
5617    ac_cv_prog_cxx_g=no
5618    CXXFLAGS="-g"
5619    cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625
5626 int
5627 main ()
5628 {
5629
5630   ;
5631   return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5636 case "(($ac_try" in
5637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638   *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641   (eval "$ac_compile") 2>conftest.er1
5642   ac_status=$?
5643   grep -v '^ *+' conftest.er1 >conftest.err
5644   rm -f conftest.er1
5645   cat conftest.err >&5
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); } &&
5648          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5649   { (case "(($ac_try" in
5650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651   *) ac_try_echo=$ac_try;;
5652 esac
5653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5654   (eval "$ac_try") 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); }; } &&
5658          { ac_try='test -s conftest.$ac_objext'
5659   { (case "(($ac_try" in
5660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661   *) ac_try_echo=$ac_try;;
5662 esac
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664   (eval "$ac_try") 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; }; then
5668   ac_cv_prog_cxx_g=yes
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673         CXXFLAGS=""
5674       cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680
5681 int
5682 main ()
5683 {
5684
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5691 case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696   (eval "$ac_compile") 2>conftest.er1
5697   ac_status=$?
5698   grep -v '^ *+' conftest.er1 >conftest.err
5699   rm -f conftest.er1
5700   cat conftest.err >&5
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); } &&
5703          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5704   { (case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_try") 2>&5
5710   ac_status=$?
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); }; } &&
5713          { ac_try='test -s conftest.$ac_objext'
5714   { (case "(($ac_try" in
5715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716   *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719   (eval "$ac_try") 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; }; then
5723   :
5724 else
5725   echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5729          CXXFLAGS="-g"
5730          cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736
5737 int
5738 main ()
5739 {
5740
5741   ;
5742   return 0;
5743 }
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5747 case "(($ac_try" in
5748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749   *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752   (eval "$ac_compile") 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } &&
5759          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5760   { (case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_try") 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }; } &&
5769          { ac_try='test -s conftest.$ac_objext'
5770   { (case "(($ac_try" in
5771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772   *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775   (eval "$ac_try") 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_cv_prog_cxx_g=yes
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784
5785 fi
5786
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 fi
5789
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 fi
5792
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5795 fi
5796 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5797 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5798 if test "$ac_test_CXXFLAGS" = set; then
5799   CXXFLAGS=$ac_save_CXXFLAGS
5800 elif test $ac_cv_prog_cxx_g = yes; then
5801   if test "$GXX" = yes; then
5802     CXXFLAGS="-g -O2"
5803   else
5804     CXXFLAGS="-g"
5805   fi
5806 else
5807   if test "$GXX" = yes; then
5808     CXXFLAGS="-O2"
5809   else
5810     CXXFLAGS=
5811   fi
5812 fi
5813 ac_ext=cpp
5814 ac_cpp='$CXXCPP $CPPFLAGS'
5815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5818
5819
5820
5821 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5822     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5823     (test "X$CXX" != "Xg++"))) ; then
5824   ac_ext=cpp
5825 ac_cpp='$CXXCPP $CPPFLAGS'
5826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5829 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5830 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5831 if test -z "$CXXCPP"; then
5832   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835       # Double quotes because CXXCPP needs to be expanded
5836     for CXXCPP in "$CXX -E" "/lib/cpp"
5837     do
5838       ac_preproc_ok=false
5839 for ac_cxx_preproc_warn_flag in '' yes
5840 do
5841   # Use a header file that comes with gcc, so configuring glibc
5842   # with a fresh cross-compiler works.
5843   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5844   # <limits.h> exists even on freestanding compilers.
5845   # On the NeXT, cc -E runs the code through the compiler's parser,
5846   # not just through cpp. "Syntax error" is here to catch this case.
5847   cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h.  */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h.  */
5853 #ifdef __STDC__
5854 # include <limits.h>
5855 #else
5856 # include <assert.h>
5857 #endif
5858                      Syntax error
5859 _ACEOF
5860 if { (ac_try="$ac_cpp conftest.$ac_ext"
5861 case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } >/dev/null; then
5873   if test -s conftest.err; then
5874     ac_cpp_err=$ac_cxx_preproc_warn_flag
5875     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5876   else
5877     ac_cpp_err=
5878   fi
5879 else
5880   ac_cpp_err=yes
5881 fi
5882 if test -z "$ac_cpp_err"; then
5883   :
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888   # Broken: fails on valid input.
5889 continue
5890 fi
5891
5892 rm -f conftest.err conftest.$ac_ext
5893
5894   # OK, works on sane cases.  Now check whether nonexistent headers
5895   # can be detected and how.
5896   cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 #include <ac_nonexistent.h>
5903 _ACEOF
5904 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } >/dev/null; then
5917   if test -s conftest.err; then
5918     ac_cpp_err=$ac_cxx_preproc_warn_flag
5919     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5920   else
5921     ac_cpp_err=
5922   fi
5923 else
5924   ac_cpp_err=yes
5925 fi
5926 if test -z "$ac_cpp_err"; then
5927   # Broken: success on invalid input.
5928 continue
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933   # Passes both tests.
5934 ac_preproc_ok=:
5935 break
5936 fi
5937
5938 rm -f conftest.err conftest.$ac_ext
5939
5940 done
5941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5942 rm -f conftest.err conftest.$ac_ext
5943 if $ac_preproc_ok; then
5944   break
5945 fi
5946
5947     done
5948     ac_cv_prog_CXXCPP=$CXXCPP
5949
5950 fi
5951   CXXCPP=$ac_cv_prog_CXXCPP
5952 else
5953   ac_cv_prog_CXXCPP=$CXXCPP
5954 fi
5955 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5956 echo "${ECHO_T}$CXXCPP" >&6; }
5957 ac_preproc_ok=false
5958 for ac_cxx_preproc_warn_flag in '' yes
5959 do
5960   # Use a header file that comes with gcc, so configuring glibc
5961   # with a fresh cross-compiler works.
5962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5963   # <limits.h> exists even on freestanding compilers.
5964   # On the NeXT, cc -E runs the code through the compiler's parser,
5965   # not just through cpp. "Syntax error" is here to catch this case.
5966   cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 #ifdef __STDC__
5973 # include <limits.h>
5974 #else
5975 # include <assert.h>
5976 #endif
5977                      Syntax error
5978 _ACEOF
5979 if { (ac_try="$ac_cpp conftest.$ac_ext"
5980 case "(($ac_try" in
5981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982   *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } >/dev/null; then
5992   if test -s conftest.err; then
5993     ac_cpp_err=$ac_cxx_preproc_warn_flag
5994     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5995   else
5996     ac_cpp_err=
5997   fi
5998 else
5999   ac_cpp_err=yes
6000 fi
6001 if test -z "$ac_cpp_err"; then
6002   :
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007   # Broken: fails on valid input.
6008 continue
6009 fi
6010
6011 rm -f conftest.err conftest.$ac_ext
6012
6013   # OK, works on sane cases.  Now check whether nonexistent headers
6014   # can be detected and how.
6015   cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021 #include <ac_nonexistent.h>
6022 _ACEOF
6023 if { (ac_try="$ac_cpp conftest.$ac_ext"
6024 case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6030   ac_status=$?
6031   grep -v '^ *+' conftest.er1 >conftest.err
6032   rm -f conftest.er1
6033   cat conftest.err >&5
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); } >/dev/null; then
6036   if test -s conftest.err; then
6037     ac_cpp_err=$ac_cxx_preproc_warn_flag
6038     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6039   else
6040     ac_cpp_err=
6041   fi
6042 else
6043   ac_cpp_err=yes
6044 fi
6045 if test -z "$ac_cpp_err"; then
6046   # Broken: success on invalid input.
6047 continue
6048 else
6049   echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6051
6052   # Passes both tests.
6053 ac_preproc_ok=:
6054 break
6055 fi
6056
6057 rm -f conftest.err conftest.$ac_ext
6058
6059 done
6060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6061 rm -f conftest.err conftest.$ac_ext
6062 if $ac_preproc_ok; then
6063   :
6064 else
6065   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6066 See \`config.log' for more details." >&5
6067 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6068 See \`config.log' for more details." >&2;}
6069    { (exit 1); exit 1; }; }
6070 fi
6071
6072 ac_ext=cpp
6073 ac_cpp='$CXXCPP $CPPFLAGS'
6074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6077
6078 fi
6079
6080
6081 ac_ext=f
6082 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6083 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6085 if test -n "$ac_tool_prefix"; then
6086   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6087   do
6088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_F77+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   if test -n "$F77"; then
6096   ac_cv_prog_F77="$F77" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 F77=$ac_cv_prog_F77
6116 if test -n "$F77"; then
6117   { echo "$as_me:$LINENO: result: $F77" >&5
6118 echo "${ECHO_T}$F77" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6122 fi
6123
6124
6125     test -n "$F77" && break
6126   done
6127 fi
6128 if test -z "$F77"; then
6129   ac_ct_F77=$F77
6130   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6131 do
6132   # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy $ac_prog; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   if test -n "$ac_ct_F77"; then
6140   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145   IFS=$as_save_IFS
6146   test -z "$as_dir" && as_dir=.
6147   for ac_exec_ext in '' $ac_executable_extensions; do
6148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149     ac_cv_prog_ac_ct_F77="$ac_prog"
6150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154 done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6160 if test -n "$ac_ct_F77"; then
6161   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6162 echo "${ECHO_T}$ac_ct_F77" >&6; }
6163 else
6164   { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167
6168
6169   test -n "$ac_ct_F77" && break
6170 done
6171
6172   if test "x$ac_ct_F77" = x; then
6173     F77=""
6174   else
6175     case $cross_compiling:$ac_tool_warned in
6176 yes:)
6177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet.  If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&5
6180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet.  If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6183 ac_tool_warned=yes ;;
6184 esac
6185     F77=$ac_ct_F77
6186   fi
6187 fi
6188
6189
6190 # Provide some information about the compiler.
6191 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6192 ac_compiler=`set X $ac_compile; echo $2`
6193 { (ac_try="$ac_compiler --version >&5"
6194 case "(($ac_try" in
6195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196   *) ac_try_echo=$ac_try;;
6197 esac
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199   (eval "$ac_compiler --version >&5") 2>&5
6200   ac_status=$?
6201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202   (exit $ac_status); }
6203 { (ac_try="$ac_compiler -v >&5"
6204 case "(($ac_try" in
6205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206   *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209   (eval "$ac_compiler -v >&5") 2>&5
6210   ac_status=$?
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); }
6213 { (ac_try="$ac_compiler -V >&5"
6214 case "(($ac_try" in
6215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216   *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219   (eval "$ac_compiler -V >&5") 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }
6223 rm -f a.out
6224
6225 # If we don't use `.F' as extension, the preprocessor is not run on the
6226 # input file.  (Note that this only needs to work for GNU compilers.)
6227 ac_save_ext=$ac_ext
6228 ac_ext=F
6229 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6230 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6231 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   cat >conftest.$ac_ext <<_ACEOF
6235       program main
6236 #ifndef __GNUC__
6237        choke me
6238 #endif
6239
6240       end
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6244 case "(($ac_try" in
6245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246   *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249   (eval "$ac_compile") 2>conftest.er1
6250   ac_status=$?
6251   grep -v '^ *+' conftest.er1 >conftest.err
6252   rm -f conftest.er1
6253   cat conftest.err >&5
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); } &&
6256          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6257   { (case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_try") 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; } &&
6266          { ac_try='test -s conftest.$ac_objext'
6267   { (case "(($ac_try" in
6268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269   *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272   (eval "$ac_try") 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_compiler_gnu=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281         ac_compiler_gnu=no
6282 fi
6283
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6286
6287 fi
6288 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6289 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6290 ac_ext=$ac_save_ext
6291 ac_test_FFLAGS=${FFLAGS+set}
6292 ac_save_FFLAGS=$FFLAGS
6293 FFLAGS=
6294 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6295 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6296 if test "${ac_cv_prog_f77_g+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   FFLAGS=-g
6300 cat >conftest.$ac_ext <<_ACEOF
6301       program main
6302
6303       end
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309   *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312   (eval "$ac_compile") 2>conftest.er1
6313   ac_status=$?
6314   grep -v '^ *+' conftest.er1 >conftest.err
6315   rm -f conftest.er1
6316   cat conftest.err >&5
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } &&
6319          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6320   { (case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325   (eval "$ac_try") 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); }; } &&
6329          { ac_try='test -s conftest.$ac_objext'
6330   { (case "(($ac_try" in
6331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332   *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335   (eval "$ac_try") 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_cv_prog_f77_g=yes
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344         ac_cv_prog_f77_g=no
6345 fi
6346
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348
6349 fi
6350 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6351 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6352 if test "$ac_test_FFLAGS" = set; then
6353   FFLAGS=$ac_save_FFLAGS
6354 elif test $ac_cv_prog_f77_g = yes; then
6355   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6356     FFLAGS="-g -O2"
6357   else
6358     FFLAGS="-g"
6359   fi
6360 else
6361   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6362     FFLAGS="-O2"
6363   else
6364     FFLAGS=
6365   fi
6366 fi
6367
6368 G77=`test $ac_compiler_gnu = yes && echo yes`
6369 ac_ext=c
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6374
6375
6376
6377 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6378
6379 # find the maximum length of command line arguments
6380 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6381 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6382 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385     i=0
6386   teststring="ABCD"
6387
6388   case $build_os in
6389   msdosdjgpp*)
6390     # On DJGPP, this test can blow up pretty badly due to problems in libc
6391     # (any single argument exceeding 2000 bytes causes a buffer overrun
6392     # during glob expansion).  Even if it were fixed, the result of this
6393     # check would be larger than it should be.
6394     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6395     ;;
6396
6397   gnu*)
6398     # Under GNU Hurd, this test is not required because there is
6399     # no limit to the length of command line arguments.
6400     # Libtool will interpret -1 as no limit whatsoever
6401     lt_cv_sys_max_cmd_len=-1;
6402     ;;
6403
6404   cygwin* | mingw*)
6405     # On Win9x/ME, this test blows up -- it succeeds, but takes
6406     # about 5 minutes as the teststring grows exponentially.
6407     # Worse, since 9x/ME are not pre-emptively multitasking,
6408     # you end up with a "frozen" computer, even though with patience
6409     # the test eventually succeeds (with a max line length of 256k).
6410     # Instead, let's just punt: use the minimum linelength reported by
6411     # all of the supported platforms: 8192 (on NT/2K/XP).
6412     lt_cv_sys_max_cmd_len=8192;
6413     ;;
6414
6415   amigaos*)
6416     # On AmigaOS with pdksh, this test takes hours, literally.
6417     # So we just punt and use a minimum line length of 8192.
6418     lt_cv_sys_max_cmd_len=8192;
6419     ;;
6420
6421   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6422     # This has been around since 386BSD, at least.  Likely further.
6423     if test -x /sbin/sysctl; then
6424       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6425     elif test -x /usr/sbin/sysctl; then
6426       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6427     else
6428       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6429     fi
6430     # And add a safety zone
6431     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6432     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6433     ;;
6434
6435   interix*)
6436     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6437     lt_cv_sys_max_cmd_len=196608
6438     ;;
6439
6440   osf*)
6441     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6442     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6443     # nice to cause kernel panics so lets avoid the loop below.
6444     # First set a reasonable default.
6445     lt_cv_sys_max_cmd_len=16384
6446     #
6447     if test -x /sbin/sysconfig; then
6448       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6449         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6450       esac
6451     fi
6452     ;;
6453   sco3.2v5*)
6454     lt_cv_sys_max_cmd_len=102400
6455     ;;
6456   sysv5* | sco5v6* | sysv4.2uw2*)
6457     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6458     if test -n "$kargmax"; then
6459       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6460     else
6461       lt_cv_sys_max_cmd_len=32768
6462     fi
6463     ;;
6464   *)
6465     # If test is not a shell built-in, we'll probably end up computing a
6466     # maximum length that is only half of the actual maximum length, but
6467     # we can't tell.
6468     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6469     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6470                = "XX$teststring") >/dev/null 2>&1 &&
6471             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6472             lt_cv_sys_max_cmd_len=$new_result &&
6473             test $i != 17 # 1/2 MB should be enough
6474     do
6475       i=`expr $i + 1`
6476       teststring=$teststring$teststring
6477     done
6478     teststring=
6479     # Add a significant safety factor because C++ compilers can tack on massive
6480     # amounts of additional arguments before passing them to the linker.
6481     # It appears as though 1/2 is a usable value.
6482     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6483     ;;
6484   esac
6485
6486 fi
6487
6488 if test -n $lt_cv_sys_max_cmd_len ; then
6489   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6490 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6491 else
6492   { echo "$as_me:$LINENO: result: none" >&5
6493 echo "${ECHO_T}none" >&6; }
6494 fi
6495
6496
6497
6498
6499 # Check for command to grab the raw symbol name followed by C symbol from nm.
6500 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6501 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6502 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505
6506 # These are sane defaults that work on at least a few old systems.
6507 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6508
6509 # Character class describing NM global symbol codes.
6510 symcode='[BCDEGRST]'
6511
6512 # Regexp to match symbols that can be accessed directly from C.
6513 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6514
6515 # Transform an extracted symbol line into a proper C declaration
6516 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6517
6518 # Transform an extracted symbol line into symbol name and symbol address
6519 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'"
6520
6521 # Define system-specific variables.
6522 case $host_os in
6523 aix*)
6524   symcode='[BCDT]'
6525   ;;
6526 cygwin* | mingw* | pw32*)
6527   symcode='[ABCDGISTW]'
6528   ;;
6529 hpux*) # Its linker distinguishes data from code symbols
6530   if test "$host_cpu" = ia64; then
6531     symcode='[ABCDEGRST]'
6532   fi
6533   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6534   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'"
6535   ;;
6536 linux*)
6537   if test "$host_cpu" = ia64; then
6538     symcode='[ABCDGIRSTW]'
6539     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6540     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'"
6541   fi
6542   ;;
6543 irix* | nonstopux*)
6544   symcode='[BCDEGRST]'
6545   ;;
6546 osf*)
6547   symcode='[BCDEGQRST]'
6548   ;;
6549 solaris*)
6550   symcode='[BDRT]'
6551   ;;
6552 sco3.2v5*)
6553   symcode='[DT]'
6554   ;;
6555 sysv4.2uw2*)
6556   symcode='[DT]'
6557   ;;
6558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6559   symcode='[ABDT]'
6560   ;;
6561 sysv4)
6562   symcode='[DFNSTU]'
6563   ;;
6564 esac
6565
6566 # Handle CRLF in mingw tool chain
6567 opt_cr=
6568 case $build_os in
6569 mingw*)
6570   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6571   ;;
6572 esac
6573
6574 # If we're using GNU nm, then use its standard symbol codes.
6575 case `$NM -V 2>&1` in
6576 *GNU* | *'with BFD'*)
6577   symcode='[ABCDGIRSTW]' ;;
6578 esac
6579
6580 # Try without a prefix undercore, then with it.
6581 for ac_symprfx in "" "_"; do
6582
6583   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6584   symxfrm="\\1 $ac_symprfx\\2 \\2"
6585
6586   # Write the raw and C identifiers.
6587   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6588
6589   # Check to see that the pipe works correctly.
6590   pipe_works=no
6591
6592   rm -f conftest*
6593   cat > conftest.$ac_ext <<EOF
6594 #ifdef __cplusplus
6595 extern "C" {
6596 #endif
6597 char nm_test_var;
6598 void nm_test_func(){}
6599 #ifdef __cplusplus
6600 }
6601 #endif
6602 int main(){nm_test_var='a';nm_test_func();return(0);}
6603 EOF
6604
6605   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; then
6610     # Now try to grab the symbols.
6611     nlist=conftest.nm
6612     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6613   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); } && test -s "$nlist"; then
6617       # Try sorting and uniquifying the output.
6618       if sort "$nlist" | uniq > "$nlist"T; then
6619         mv -f "$nlist"T "$nlist"
6620       else
6621         rm -f "$nlist"T
6622       fi
6623
6624       # Make sure that we snagged all the symbols we need.
6625       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6626         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6627           cat <<EOF > conftest.$ac_ext
6628 #ifdef __cplusplus
6629 extern "C" {
6630 #endif
6631
6632 EOF
6633           # Now generate the symbol file.
6634           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6635
6636           cat <<EOF >> conftest.$ac_ext
6637 #if defined (__STDC__) && __STDC__
6638 # define lt_ptr_t void *
6639 #else
6640 # define lt_ptr_t char *
6641 # define const
6642 #endif
6643
6644 /* The mapping between symbol names and symbols. */
6645 const struct {
6646   const char *name;
6647   lt_ptr_t address;
6648 }
6649 lt_preloaded_symbols[] =
6650 {
6651 EOF
6652           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6653           cat <<\EOF >> conftest.$ac_ext
6654   {0, (lt_ptr_t) 0}
6655 };
6656
6657 #ifdef __cplusplus
6658 }
6659 #endif
6660 EOF
6661           # Now try linking the two files.
6662           mv conftest.$ac_objext conftstm.$ac_objext
6663           lt_save_LIBS="$LIBS"
6664           lt_save_CFLAGS="$CFLAGS"
6665           LIBS="conftstm.$ac_objext"
6666           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6667           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6668   (eval $ac_link) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6672             pipe_works=yes
6673           fi
6674           LIBS="$lt_save_LIBS"
6675           CFLAGS="$lt_save_CFLAGS"
6676         else
6677           echo "cannot find nm_test_func in $nlist" >&5
6678         fi
6679       else
6680         echo "cannot find nm_test_var in $nlist" >&5
6681       fi
6682     else
6683       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6684     fi
6685   else
6686     echo "$progname: failed program was:" >&5
6687     cat conftest.$ac_ext >&5
6688   fi
6689   rm -f conftest* conftst*
6690
6691   # Do not use the global_symbol_pipe unless it works.
6692   if test "$pipe_works" = yes; then
6693     break
6694   else
6695     lt_cv_sys_global_symbol_pipe=
6696   fi
6697 done
6698
6699 fi
6700
6701 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6702   lt_cv_sys_global_symbol_to_cdecl=
6703 fi
6704 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6705   { echo "$as_me:$LINENO: result: failed" >&5
6706 echo "${ECHO_T}failed" >&6; }
6707 else
6708   { echo "$as_me:$LINENO: result: ok" >&5
6709 echo "${ECHO_T}ok" >&6; }
6710 fi
6711
6712 { echo "$as_me:$LINENO: checking for objdir" >&5
6713 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6714 if test "${lt_cv_objdir+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   rm -f .libs 2>/dev/null
6718 mkdir .libs 2>/dev/null
6719 if test -d .libs; then
6720   lt_cv_objdir=.libs
6721 else
6722   # MS-DOS does not allow filenames that begin with a dot.
6723   lt_cv_objdir=_libs
6724 fi
6725 rmdir .libs 2>/dev/null
6726 fi
6727 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6728 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6729 objdir=$lt_cv_objdir
6730
6731
6732
6733
6734
6735 case $host_os in
6736 aix3*)
6737   # AIX sometimes has problems with the GCC collect2 program.  For some
6738   # reason, if we set the COLLECT_NAMES environment variable, the problems
6739   # vanish in a puff of smoke.
6740   if test "X${COLLECT_NAMES+set}" != Xset; then
6741     COLLECT_NAMES=
6742     export COLLECT_NAMES
6743   fi
6744   ;;
6745 esac
6746
6747 # Sed substitution that helps us do robust quoting.  It backslashifies
6748 # metacharacters that are still active within double-quoted strings.
6749 Xsed='sed -e 1s/^X//'
6750 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6751
6752 # Same as above, but do not quote variable references.
6753 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6754
6755 # Sed substitution to delay expansion of an escaped shell variable in a
6756 # double_quote_subst'ed string.
6757 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6758
6759 # Sed substitution to avoid accidental globbing in evaled expressions
6760 no_glob_subst='s/\*/\\\*/g'
6761
6762 # Constants:
6763 rm="rm -f"
6764
6765 # Global variables:
6766 default_ofile=libtool
6767 can_build_shared=yes
6768
6769 # All known linkers require a `.a' archive for static linking (except MSVC,
6770 # which needs '.lib').
6771 libext=a
6772 ltmain="$ac_aux_dir/ltmain.sh"
6773 ofile="$default_ofile"
6774 with_gnu_ld="$lt_cv_prog_gnu_ld"
6775
6776 if test -n "$ac_tool_prefix"; then
6777   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}ar; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_AR+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   if test -n "$AR"; then
6785   ac_cv_prog_AR="$AR" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_prog_AR="${ac_tool_prefix}ar"
6795     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 AR=$ac_cv_prog_AR
6805 if test -n "$AR"; then
6806   { echo "$as_me:$LINENO: result: $AR" >&5
6807 echo "${ECHO_T}$AR" >&6; }
6808 else
6809   { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6812
6813
6814 fi
6815 if test -z "$ac_cv_prog_AR"; then
6816   ac_ct_AR=$AR
6817   # Extract the first word of "ar", so it can be a program name with args.
6818 set dummy ar; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   if test -n "$ac_ct_AR"; then
6825   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_ac_ct_AR="ar"
6835     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_AR=$ac_cv_prog_ac_ct_AR
6845 if test -n "$ac_ct_AR"; then
6846   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6847 echo "${ECHO_T}$ac_ct_AR" >&6; }
6848 else
6849   { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6851 fi
6852
6853   if test "x$ac_ct_AR" = x; then
6854     AR="false"
6855   else
6856     case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { 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 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     AR=$ac_ct_AR
6867   fi
6868 else
6869   AR="$ac_cv_prog_AR"
6870 fi
6871
6872 if test -n "$ac_tool_prefix"; then
6873   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_prog_RANLIB+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   if test -n "$RANLIB"; then
6881   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888   for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 RANLIB=$ac_cv_prog_RANLIB
6901 if test -n "$RANLIB"; then
6902   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6903 echo "${ECHO_T}$RANLIB" >&6; }
6904 else
6905   { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_RANLIB"; then
6912   ac_ct_RANLIB=$RANLIB
6913   # Extract the first word of "ranlib", so it can be a program name with args.
6914 set dummy ranlib; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   if test -n "$ac_ct_RANLIB"; then
6921   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_ac_ct_RANLIB="ranlib"
6931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6941 if test -n "$ac_ct_RANLIB"; then
6942   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6943 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6944 else
6945   { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6947 fi
6948
6949   if test "x$ac_ct_RANLIB" = x; then
6950     RANLIB=":"
6951   else
6952     case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet.  If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&5
6957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6958 whose name does not start with the host triplet.  If you think this
6959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962     RANLIB=$ac_ct_RANLIB
6963   fi
6964 else
6965   RANLIB="$ac_cv_prog_RANLIB"
6966 fi
6967
6968 if test -n "$ac_tool_prefix"; then
6969   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6970 set dummy ${ac_tool_prefix}strip; ac_word=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_prog_STRIP+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   if test -n "$STRIP"; then
6977   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982   IFS=$as_save_IFS
6983   test -z "$as_dir" && as_dir=.
6984   for ac_exec_ext in '' $ac_executable_extensions; do
6985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6986     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988     break 2
6989   fi
6990 done
6991 done
6992 IFS=$as_save_IFS
6993
6994 fi
6995 fi
6996 STRIP=$ac_cv_prog_STRIP
6997 if test -n "$STRIP"; then
6998   { echo "$as_me:$LINENO: result: $STRIP" >&5
6999 echo "${ECHO_T}$STRIP" >&6; }
7000 else
7001   { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7003 fi
7004
7005
7006 fi
7007 if test -z "$ac_cv_prog_STRIP"; then
7008   ac_ct_STRIP=$STRIP
7009   # Extract the first word of "strip", so it can be a program name with args.
7010 set dummy strip; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   if test -n "$ac_ct_STRIP"; then
7017   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024   for ac_exec_ext in '' $ac_executable_extensions; do
7025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7026     ac_cv_prog_ac_ct_STRIP="strip"
7027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031 done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7037 if test -n "$ac_ct_STRIP"; then
7038   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7039 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045   if test "x$ac_ct_STRIP" = x; then
7046     STRIP=":"
7047   else
7048     case $cross_compiling:$ac_tool_warned in
7049 yes:)
7050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7051 whose name does not start with the host triplet.  If you think this
7052 configuration is useful to you, please write to autoconf@gnu.org." >&5
7053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7054 whose name does not start with the host triplet.  If you think this
7055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058     STRIP=$ac_ct_STRIP
7059   fi
7060 else
7061   STRIP="$ac_cv_prog_STRIP"
7062 fi
7063
7064
7065 old_CC="$CC"
7066 old_CFLAGS="$CFLAGS"
7067
7068 # Set sane defaults for various variables
7069 test -z "$AR" && AR=ar
7070 test -z "$AR_FLAGS" && AR_FLAGS=cru
7071 test -z "$AS" && AS=as
7072 test -z "$CC" && CC=cc
7073 test -z "$LTCC" && LTCC=$CC
7074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7075 test -z "$DLLTOOL" && DLLTOOL=dlltool
7076 test -z "$LD" && LD=ld
7077 test -z "$LN_S" && LN_S="ln -s"
7078 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7079 test -z "$NM" && NM=nm
7080 test -z "$SED" && SED=sed
7081 test -z "$OBJDUMP" && OBJDUMP=objdump
7082 test -z "$RANLIB" && RANLIB=:
7083 test -z "$STRIP" && STRIP=:
7084 test -z "$ac_objext" && ac_objext=o
7085
7086 # Determine commands to create old-style static archives.
7087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7088 old_postinstall_cmds='chmod 644 $oldlib'
7089 old_postuninstall_cmds=
7090
7091 if test -n "$RANLIB"; then
7092   case $host_os in
7093   openbsd*)
7094     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7095     ;;
7096   *)
7097     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7098     ;;
7099   esac
7100   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7101 fi
7102
7103 for cc_temp in $compiler""; do
7104   case $cc_temp in
7105     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7106     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7107     \-*) ;;
7108     *) break;;
7109   esac
7110 done
7111 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7112
7113
7114 # Only perform the check for file, if the check method requires it
7115 case $deplibs_check_method in
7116 file_magic*)
7117   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7118     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7119 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   case $MAGIC_CMD in
7124 [\\/*] |  ?:[\\/]*)
7125   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7126   ;;
7127 *)
7128   lt_save_MAGIC_CMD="$MAGIC_CMD"
7129   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7130   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7131   for ac_dir in $ac_dummy; do
7132     IFS="$lt_save_ifs"
7133     test -z "$ac_dir" && ac_dir=.
7134     if test -f $ac_dir/${ac_tool_prefix}file; then
7135       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7136       if test -n "$file_magic_test_file"; then
7137         case $deplibs_check_method in
7138         "file_magic "*)
7139           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7140           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7141           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7142             $EGREP "$file_magic_regex" > /dev/null; then
7143             :
7144           else
7145             cat <<EOF 1>&2
7146
7147 *** Warning: the command libtool uses to detect shared libraries,
7148 *** $file_magic_cmd, produces output that libtool cannot recognize.
7149 *** The result is that libtool may fail to recognize shared libraries
7150 *** as such.  This will affect the creation of libtool libraries that
7151 *** depend on shared libraries, but programs linked with such libtool
7152 *** libraries will work regardless of this problem.  Nevertheless, you
7153 *** may want to report the problem to your system manager and/or to
7154 *** bug-libtool@gnu.org
7155
7156 EOF
7157           fi ;;
7158         esac
7159       fi
7160       break
7161     fi
7162   done
7163   IFS="$lt_save_ifs"
7164   MAGIC_CMD="$lt_save_MAGIC_CMD"
7165   ;;
7166 esac
7167 fi
7168
7169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7170 if test -n "$MAGIC_CMD"; then
7171   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7172 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7173 else
7174   { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7176 fi
7177
7178 if test -z "$lt_cv_path_MAGIC_CMD"; then
7179   if test -n "$ac_tool_prefix"; then
7180     { echo "$as_me:$LINENO: checking for file" >&5
7181 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7182 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   case $MAGIC_CMD in
7186 [\\/*] |  ?:[\\/]*)
7187   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7188   ;;
7189 *)
7190   lt_save_MAGIC_CMD="$MAGIC_CMD"
7191   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7192   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7193   for ac_dir in $ac_dummy; do
7194     IFS="$lt_save_ifs"
7195     test -z "$ac_dir" && ac_dir=.
7196     if test -f $ac_dir/file; then
7197       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7198       if test -n "$file_magic_test_file"; then
7199         case $deplibs_check_method in
7200         "file_magic "*)
7201           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7202           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7203           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7204             $EGREP "$file_magic_regex" > /dev/null; then
7205             :
7206           else
7207             cat <<EOF 1>&2
7208
7209 *** Warning: the command libtool uses to detect shared libraries,
7210 *** $file_magic_cmd, produces output that libtool cannot recognize.
7211 *** The result is that libtool may fail to recognize shared libraries
7212 *** as such.  This will affect the creation of libtool libraries that
7213 *** depend on shared libraries, but programs linked with such libtool
7214 *** libraries will work regardless of this problem.  Nevertheless, you
7215 *** may want to report the problem to your system manager and/or to
7216 *** bug-libtool@gnu.org
7217
7218 EOF
7219           fi ;;
7220         esac
7221       fi
7222       break
7223     fi
7224   done
7225   IFS="$lt_save_ifs"
7226   MAGIC_CMD="$lt_save_MAGIC_CMD"
7227   ;;
7228 esac
7229 fi
7230
7231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7232 if test -n "$MAGIC_CMD"; then
7233   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7234 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7235 else
7236   { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238 fi
7239
7240   else
7241     MAGIC_CMD=:
7242   fi
7243 fi
7244
7245   fi
7246   ;;
7247 esac
7248
7249 enable_dlopen=yes
7250 enable_win32_dll=no
7251
7252 # Check whether --enable-libtool-lock was given.
7253 if test "${enable_libtool_lock+set}" = set; then
7254   enableval=$enable_libtool_lock;
7255 fi
7256
7257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7258
7259
7260 # Check whether --with-pic was given.
7261 if test "${with_pic+set}" = set; then
7262   withval=$with_pic; pic_mode="$withval"
7263 else
7264   pic_mode=default
7265 fi
7266
7267 test -z "$pic_mode" && pic_mode=default
7268
7269 # Use C for the default configuration in the libtool script
7270 tagname=
7271 lt_save_CC="$CC"
7272 ac_ext=c
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278
7279 # Source file extension for C test sources.
7280 ac_ext=c
7281
7282 # Object file extension for compiled C test sources.
7283 objext=o
7284 objext=$objext
7285
7286 # Code to be used in simple compile tests
7287 lt_simple_compile_test_code="int some_variable = 0;\n"
7288
7289 # Code to be used in simple link tests
7290 lt_simple_link_test_code='int main(){return(0);}\n'
7291
7292
7293 # If no C compiler was specified, use CC.
7294 LTCC=${LTCC-"$CC"}
7295
7296 # If no C compiler flags were specified, use CFLAGS.
7297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7298
7299 # Allow CC to be a program name with arguments.
7300 compiler=$CC
7301
7302
7303 # save warnings/boilerplate of simple test code
7304 ac_outfile=conftest.$ac_objext
7305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7307 _lt_compiler_boilerplate=`cat conftest.err`
7308 $rm conftest*
7309
7310 ac_outfile=conftest.$ac_objext
7311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7313 _lt_linker_boilerplate=`cat conftest.err`
7314 $rm conftest*
7315
7316
7317 ## CAVEAT EMPTOR:
7318 ## There is no encapsulation within the following macros, do not change
7319 ## the running order or otherwise move them around unless you know exactly
7320 ## what you are doing...
7321
7322 lt_prog_compiler_no_builtin_flag=
7323
7324 if test "$GCC" = yes; then
7325   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7326
7327
7328 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7329 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   lt_cv_prog_compiler_rtti_exceptions=no
7334   ac_outfile=conftest.$ac_objext
7335    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7336    lt_compiler_flag="-fno-rtti -fno-exceptions"
7337    # Insert the option either (1) after the last *FLAGS variable, or
7338    # (2) before a word containing "conftest.", or (3) at the end.
7339    # Note that $ac_compile itself does not contain backslashes and begins
7340    # with a dollar sign (not a hyphen), so the echo should work correctly.
7341    # The option is referenced via a variable to avoid confusing sed.
7342    lt_compile=`echo "$ac_compile" | $SED \
7343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7345    -e 's:$: $lt_compiler_flag:'`
7346    (eval echo "\"\$as_me:7346: $lt_compile\"" >&5)
7347    (eval "$lt_compile" 2>conftest.err)
7348    ac_status=$?
7349    cat conftest.err >&5
7350    echo "$as_me:7350: \$? = $ac_status" >&5
7351    if (exit $ac_status) && test -s "$ac_outfile"; then
7352      # The compiler can only warn and ignore the option if not recognized
7353      # So say no if there are warnings other than the usual output.
7354      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7357        lt_cv_prog_compiler_rtti_exceptions=yes
7358      fi
7359    fi
7360    $rm conftest*
7361
7362 fi
7363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7364 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7365
7366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7367     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7368 else
7369     :
7370 fi
7371
7372 fi
7373
7374 lt_prog_compiler_wl=
7375 lt_prog_compiler_pic=
7376 lt_prog_compiler_static=
7377
7378 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7380
7381   if test "$GCC" = yes; then
7382     lt_prog_compiler_wl='-Wl,'
7383     lt_prog_compiler_static='-static'
7384
7385     case $host_os in
7386       aix*)
7387       # All AIX code is PIC.
7388       if test "$host_cpu" = ia64; then
7389         # AIX 5 now supports IA64 processor
7390         lt_prog_compiler_static='-Bstatic'
7391       fi
7392       ;;
7393
7394     amigaos*)
7395       # FIXME: we need at least 68020 code to build shared libraries, but
7396       # adding the `-m68020' flag to GCC prevents building anything better,
7397       # like `-m68040'.
7398       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7399       ;;
7400
7401     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7402       # PIC is the default for these OSes.
7403       ;;
7404
7405     mingw* | pw32* | os2*)
7406       # This hack is so that the source file can tell whether it is being
7407       # built for inclusion in a dll (and should export symbols for example).
7408       lt_prog_compiler_pic='-DDLL_EXPORT'
7409       ;;
7410
7411     darwin* | rhapsody*)
7412       # PIC is the default on this platform
7413       # Common symbols not allowed in MH_DYLIB files
7414       lt_prog_compiler_pic='-fno-common'
7415       ;;
7416
7417     interix3*)
7418       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7419       # Instead, we relocate shared libraries at runtime.
7420       ;;
7421
7422     msdosdjgpp*)
7423       # Just because we use GCC doesn't mean we suddenly get shared libraries
7424       # on systems that don't support them.
7425       lt_prog_compiler_can_build_shared=no
7426       enable_shared=no
7427       ;;
7428
7429     sysv4*MP*)
7430       if test -d /usr/nec; then
7431         lt_prog_compiler_pic=-Kconform_pic
7432       fi
7433       ;;
7434
7435     hpux*)
7436       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7437       # not for PA HP-UX.
7438       case $host_cpu in
7439       hppa*64*|ia64*)
7440         # +Z the default
7441         ;;
7442       *)
7443         lt_prog_compiler_pic='-fPIC'
7444         ;;
7445       esac
7446       ;;
7447
7448     *)
7449       lt_prog_compiler_pic='-fPIC'
7450       ;;
7451     esac
7452   else
7453     # PORTME Check for flag to pass linker flags through the system compiler.
7454     case $host_os in
7455     aix*)
7456       lt_prog_compiler_wl='-Wl,'
7457       if test "$host_cpu" = ia64; then
7458         # AIX 5 now supports IA64 processor
7459         lt_prog_compiler_static='-Bstatic'
7460       else
7461         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7462       fi
7463       ;;
7464       darwin*)
7465         # PIC is the default on this platform
7466         # Common symbols not allowed in MH_DYLIB files
7467        case $cc_basename in
7468          xlc*)
7469          lt_prog_compiler_pic='-qnocommon'
7470          lt_prog_compiler_wl='-Wl,'
7471          ;;
7472        esac
7473        ;;
7474
7475     mingw* | pw32* | os2*)
7476       # This hack is so that the source file can tell whether it is being
7477       # built for inclusion in a dll (and should export symbols for example).
7478       lt_prog_compiler_pic='-DDLL_EXPORT'
7479       ;;
7480
7481     hpux9* | hpux10* | hpux11*)
7482       lt_prog_compiler_wl='-Wl,'
7483       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7484       # not for PA HP-UX.
7485       case $host_cpu in
7486       hppa*64*|ia64*)
7487         # +Z the default
7488         ;;
7489       *)
7490         lt_prog_compiler_pic='+Z'
7491         ;;
7492       esac
7493       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7494       lt_prog_compiler_static='${wl}-a ${wl}archive'
7495       ;;
7496
7497     irix5* | irix6* | nonstopux*)
7498       lt_prog_compiler_wl='-Wl,'
7499       # PIC (with -KPIC) is the default.
7500       lt_prog_compiler_static='-non_shared'
7501       ;;
7502
7503     newsos6)
7504       lt_prog_compiler_pic='-KPIC'
7505       lt_prog_compiler_static='-Bstatic'
7506       ;;
7507
7508     linux*)
7509       case $cc_basename in
7510       icc* | ecc*)
7511         lt_prog_compiler_wl='-Wl,'
7512         lt_prog_compiler_pic='-KPIC'
7513         lt_prog_compiler_static='-static'
7514         ;;
7515       pgcc* | pgf77* | pgf90* | pgf95*)
7516         # Portland Group compilers (*not* the Pentium gcc compiler,
7517         # which looks to be a dead project)
7518         lt_prog_compiler_wl='-Wl,'
7519         lt_prog_compiler_pic='-fpic'
7520         lt_prog_compiler_static='-Bstatic'
7521         ;;
7522       ccc*)
7523         lt_prog_compiler_wl='-Wl,'
7524         # All Alpha code is PIC.
7525         lt_prog_compiler_static='-non_shared'
7526         ;;
7527       esac
7528       ;;
7529
7530     osf3* | osf4* | osf5*)
7531       lt_prog_compiler_wl='-Wl,'
7532       # All OSF/1 code is PIC.
7533       lt_prog_compiler_static='-non_shared'
7534       ;;
7535
7536     solaris*)
7537       lt_prog_compiler_pic='-KPIC'
7538       lt_prog_compiler_static='-Bstatic'
7539       case $cc_basename in
7540       f77* | f90* | f95*)
7541         lt_prog_compiler_wl='-Qoption ld ';;
7542       *)
7543         lt_prog_compiler_wl='-Wl,';;
7544       esac
7545       ;;
7546
7547     sunos4*)
7548       lt_prog_compiler_wl='-Qoption ld '
7549       lt_prog_compiler_pic='-PIC'
7550       lt_prog_compiler_static='-Bstatic'
7551       ;;
7552
7553     sysv4 | sysv4.2uw2* | sysv4.3*)
7554       lt_prog_compiler_wl='-Wl,'
7555       lt_prog_compiler_pic='-KPIC'
7556       lt_prog_compiler_static='-Bstatic'
7557       ;;
7558
7559     sysv4*MP*)
7560       if test -d /usr/nec ;then
7561         lt_prog_compiler_pic='-Kconform_pic'
7562         lt_prog_compiler_static='-Bstatic'
7563       fi
7564       ;;
7565
7566     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7567       lt_prog_compiler_wl='-Wl,'
7568       lt_prog_compiler_pic='-KPIC'
7569       lt_prog_compiler_static='-Bstatic'
7570       ;;
7571
7572     unicos*)
7573       lt_prog_compiler_wl='-Wl,'
7574       lt_prog_compiler_can_build_shared=no
7575       ;;
7576
7577     uts4*)
7578       lt_prog_compiler_pic='-pic'
7579       lt_prog_compiler_static='-Bstatic'
7580       ;;
7581
7582     *)
7583       lt_prog_compiler_can_build_shared=no
7584       ;;
7585     esac
7586   fi
7587
7588 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7589 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7590
7591 #
7592 # Check to make sure the PIC flag actually works.
7593 #
7594 if test -n "$lt_prog_compiler_pic"; then
7595
7596 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7597 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7598 if test "${lt_prog_compiler_pic_works+set}" = set; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601   lt_prog_compiler_pic_works=no
7602   ac_outfile=conftest.$ac_objext
7603    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7604    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7605    # Insert the option either (1) after the last *FLAGS variable, or
7606    # (2) before a word containing "conftest.", or (3) at the end.
7607    # Note that $ac_compile itself does not contain backslashes and begins
7608    # with a dollar sign (not a hyphen), so the echo should work correctly.
7609    # The option is referenced via a variable to avoid confusing sed.
7610    lt_compile=`echo "$ac_compile" | $SED \
7611    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7612    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7613    -e 's:$: $lt_compiler_flag:'`
7614    (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
7615    (eval "$lt_compile" 2>conftest.err)
7616    ac_status=$?
7617    cat conftest.err >&5
7618    echo "$as_me:7618: \$? = $ac_status" >&5
7619    if (exit $ac_status) && test -s "$ac_outfile"; then
7620      # The compiler can only warn and ignore the option if not recognized
7621      # So say no if there are warnings other than the usual output.
7622      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7623      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7624      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7625        lt_prog_compiler_pic_works=yes
7626      fi
7627    fi
7628    $rm conftest*
7629
7630 fi
7631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7632 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7633
7634 if test x"$lt_prog_compiler_pic_works" = xyes; then
7635     case $lt_prog_compiler_pic in
7636      "" | " "*) ;;
7637      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7638      esac
7639 else
7640     lt_prog_compiler_pic=
7641      lt_prog_compiler_can_build_shared=no
7642 fi
7643
7644 fi
7645 case $host_os in
7646   # For platforms which do not support PIC, -DPIC is meaningless:
7647   *djgpp*)
7648     lt_prog_compiler_pic=
7649     ;;
7650   *)
7651     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7652     ;;
7653 esac
7654
7655 #
7656 # Check to make sure the static flag actually works.
7657 #
7658 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7659 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7660 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7661 if test "${lt_prog_compiler_static_works+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   lt_prog_compiler_static_works=no
7665    save_LDFLAGS="$LDFLAGS"
7666    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7667    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7668    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7669      # The linker can only warn and ignore the option if not recognized
7670      # So say no if there are warnings
7671      if test -s conftest.err; then
7672        # Append any errors to the config.log.
7673        cat conftest.err 1>&5
7674        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7675        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7676        if diff conftest.exp conftest.er2 >/dev/null; then
7677          lt_prog_compiler_static_works=yes
7678        fi
7679      else
7680        lt_prog_compiler_static_works=yes
7681      fi
7682    fi
7683    $rm conftest*
7684    LDFLAGS="$save_LDFLAGS"
7685
7686 fi
7687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7688 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7689
7690 if test x"$lt_prog_compiler_static_works" = xyes; then
7691     :
7692 else
7693     lt_prog_compiler_static=
7694 fi
7695
7696
7697 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7698 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7699 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   lt_cv_prog_compiler_c_o=no
7703    $rm -r conftest 2>/dev/null
7704    mkdir conftest
7705    cd conftest
7706    mkdir out
7707    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7708
7709    lt_compiler_flag="-o out/conftest2.$ac_objext"
7710    # Insert the option either (1) after the last *FLAGS variable, or
7711    # (2) before a word containing "conftest.", or (3) at the end.
7712    # Note that $ac_compile itself does not contain backslashes and begins
7713    # with a dollar sign (not a hyphen), so the echo should work correctly.
7714    lt_compile=`echo "$ac_compile" | $SED \
7715    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7716    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7717    -e 's:$: $lt_compiler_flag:'`
7718    (eval echo "\"\$as_me:7718: $lt_compile\"" >&5)
7719    (eval "$lt_compile" 2>out/conftest.err)
7720    ac_status=$?
7721    cat out/conftest.err >&5
7722    echo "$as_me:7722: \$? = $ac_status" >&5
7723    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7724    then
7725      # The compiler can only warn and ignore the option if not recognized
7726      # So say no if there are warnings
7727      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7728      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7729      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7730        lt_cv_prog_compiler_c_o=yes
7731      fi
7732    fi
7733    chmod u+w . 2>&5
7734    $rm conftest*
7735    # SGI C++ compiler will create directory out/ii_files/ for
7736    # template instantiation
7737    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7738    $rm out/* && rmdir out
7739    cd ..
7740    rmdir conftest
7741    $rm conftest*
7742
7743 fi
7744 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7745 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7746
7747
7748 hard_links="nottested"
7749 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7750   # do not overwrite the value of need_locks provided by the user
7751   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7752 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7753   hard_links=yes
7754   $rm conftest*
7755   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7756   touch conftest.a
7757   ln conftest.a conftest.b 2>&5 || hard_links=no
7758   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7759   { echo "$as_me:$LINENO: result: $hard_links" >&5
7760 echo "${ECHO_T}$hard_links" >&6; }
7761   if test "$hard_links" = no; then
7762     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7763 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7764     need_locks=warn
7765   fi
7766 else
7767   need_locks=no
7768 fi
7769
7770 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7771 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7772
7773   runpath_var=
7774   allow_undefined_flag=
7775   enable_shared_with_static_runtimes=no
7776   archive_cmds=
7777   archive_expsym_cmds=
7778   old_archive_From_new_cmds=
7779   old_archive_from_expsyms_cmds=
7780   export_dynamic_flag_spec=
7781   whole_archive_flag_spec=
7782   thread_safe_flag_spec=
7783   hardcode_libdir_flag_spec=
7784   hardcode_libdir_flag_spec_ld=
7785   hardcode_libdir_separator=
7786   hardcode_direct=no
7787   hardcode_minus_L=no
7788   hardcode_shlibpath_var=unsupported
7789   link_all_deplibs=unknown
7790   hardcode_automatic=no
7791   module_cmds=
7792   module_expsym_cmds=
7793   always_export_symbols=no
7794   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7795   # include_expsyms should be a list of space-separated symbols to be *always*
7796   # included in the symbol list
7797   include_expsyms=
7798   # exclude_expsyms can be an extended regexp of symbols to exclude
7799   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7800   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7801   # as well as any symbol that contains `d'.
7802   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7803   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7804   # platforms (ab)use it in PIC code, but their linkers get confused if
7805   # the symbol is explicitly referenced.  Since portable code cannot
7806   # rely on this symbol name, it's probably fine to never include it in
7807   # preloaded symbol tables.
7808   extract_expsyms_cmds=
7809   # Just being paranoid about ensuring that cc_basename is set.
7810   for cc_temp in $compiler""; do
7811   case $cc_temp in
7812     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7813     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7814     \-*) ;;
7815     *) break;;
7816   esac
7817 done
7818 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7819
7820   case $host_os in
7821   cygwin* | mingw* | pw32*)
7822     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7823     # When not using gcc, we currently assume that we are using
7824     # Microsoft Visual C++.
7825     if test "$GCC" != yes; then
7826       with_gnu_ld=no
7827     fi
7828     ;;
7829   interix*)
7830     # we just hope/assume this is gcc and not c89 (= MSVC++)
7831     with_gnu_ld=yes
7832     ;;
7833   openbsd*)
7834     with_gnu_ld=no
7835     ;;
7836   esac
7837
7838   ld_shlibs=yes
7839   if test "$with_gnu_ld" = yes; then
7840     # If archive_cmds runs LD, not CC, wlarc should be empty
7841     wlarc='${wl}'
7842
7843     # Set some defaults for GNU ld with shared library support. These
7844     # are reset later if shared libraries are not supported. Putting them
7845     # here allows them to be overridden if necessary.
7846     runpath_var=LD_RUN_PATH
7847     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7848     export_dynamic_flag_spec='${wl}--export-dynamic'
7849     # ancient GNU ld didn't support --whole-archive et. al.
7850     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7851         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7852       else
7853         whole_archive_flag_spec=
7854     fi
7855     supports_anon_versioning=no
7856     case `$LD -v 2>/dev/null` in
7857       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7858       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7859       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7860       *\ 2.11.*) ;; # other 2.11 versions
7861       *) supports_anon_versioning=yes ;;
7862     esac
7863
7864     # See if GNU ld supports shared libraries.
7865     case $host_os in
7866     aix3* | aix4* | aix5*)
7867       # On AIX/PPC, the GNU linker is very broken
7868       if test "$host_cpu" != ia64; then
7869         ld_shlibs=no
7870         cat <<EOF 1>&2
7871
7872 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7873 *** to be unable to reliably create shared libraries on AIX.
7874 *** Therefore, libtool is disabling shared libraries support.  If you
7875 *** really care for shared libraries, you may want to modify your PATH
7876 *** so that a non-GNU linker is found, and then restart.
7877
7878 EOF
7879       fi
7880       ;;
7881
7882     amigaos*)
7883       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)'
7884       hardcode_libdir_flag_spec='-L$libdir'
7885       hardcode_minus_L=yes
7886
7887       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7888       # that the semantics of dynamic libraries on AmigaOS, at least up
7889       # to version 4, is to share data among multiple programs linked
7890       # with the same dynamic library.  Since this doesn't match the
7891       # behavior of shared libraries on other platforms, we can't use
7892       # them.
7893       ld_shlibs=no
7894       ;;
7895
7896     beos*)
7897       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7898         allow_undefined_flag=unsupported
7899         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7900         # support --undefined.  This deserves some investigation.  FIXME
7901         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7902       else
7903         ld_shlibs=no
7904       fi
7905       ;;
7906
7907     cygwin* | mingw* | pw32*)
7908       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7909       # as there is no search path for DLLs.
7910       hardcode_libdir_flag_spec='-L$libdir'
7911       allow_undefined_flag=unsupported
7912       always_export_symbols=no
7913       enable_shared_with_static_runtimes=yes
7914       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7915
7916       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7917         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7918         # If the export-symbols file already is a .def file (1st line
7919         # is EXPORTS), use it as is; otherwise, prepend...
7920         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7921           cp $export_symbols $output_objdir/$soname.def;
7922         else
7923           echo EXPORTS > $output_objdir/$soname.def;
7924           cat $export_symbols >> $output_objdir/$soname.def;
7925         fi~
7926         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7927       else
7928         ld_shlibs=no
7929       fi
7930       ;;
7931
7932     interix3*)
7933       hardcode_direct=no
7934       hardcode_shlibpath_var=no
7935       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7936       export_dynamic_flag_spec='${wl}-E'
7937       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7938       # Instead, shared libraries are loaded at an image base (0x10000000 by
7939       # default) and relocated if they conflict, which is a slow very memory
7940       # consuming and fragmenting process.  To avoid this, we pick a random,
7941       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7942       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7943       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7944       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'
7945       ;;
7946
7947     linux*)
7948       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7949         tmp_addflag=
7950         case $cc_basename,$host_cpu in
7951         pgcc*)                          # Portland Group C compiler
7952           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'
7953           tmp_addflag=' $pic_flag'
7954           ;;
7955         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7956           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'
7957           tmp_addflag=' $pic_flag -Mnomain' ;;
7958         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7959           tmp_addflag=' -i_dynamic' ;;
7960         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7961           tmp_addflag=' -i_dynamic -nofor_main' ;;
7962         ifc* | ifort*)                  # Intel Fortran compiler
7963           tmp_addflag=' -nofor_main' ;;
7964         esac
7965         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966
7967         if test $supports_anon_versioning = yes; then
7968           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7969   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7970   $echo "local: *; };" >> $output_objdir/$libname.ver~
7971           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7972         fi
7973       else
7974         ld_shlibs=no
7975       fi
7976       ;;
7977
7978     netbsd*)
7979       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7980         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7981         wlarc=
7982       else
7983         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7985       fi
7986       ;;
7987
7988     solaris*)
7989       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7990         ld_shlibs=no
7991         cat <<EOF 1>&2
7992
7993 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7994 *** create shared libraries on Solaris systems.  Therefore, libtool
7995 *** is disabling shared libraries support.  We urge you to upgrade GNU
7996 *** binutils to release 2.9.1 or newer.  Another option is to modify
7997 *** your PATH or compiler configuration so that the native linker is
7998 *** used, and then restart.
7999
8000 EOF
8001       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8002         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8003         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8004       else
8005         ld_shlibs=no
8006       fi
8007       ;;
8008
8009     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8010       case `$LD -v 2>&1` in
8011         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8012         ld_shlibs=no
8013         cat <<_LT_EOF 1>&2
8014
8015 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8016 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8017 *** is disabling shared libraries support.  We urge you to upgrade GNU
8018 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8019 *** your PATH or compiler configuration so that the native linker is
8020 *** used, and then restart.
8021
8022 _LT_EOF
8023         ;;
8024         *)
8025           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8026             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8027             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8028             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8029           else
8030             ld_shlibs=no
8031           fi
8032         ;;
8033       esac
8034       ;;
8035
8036     sunos4*)
8037       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8038       wlarc=
8039       hardcode_direct=yes
8040       hardcode_shlibpath_var=no
8041       ;;
8042
8043     *)
8044       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8045         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8047       else
8048         ld_shlibs=no
8049       fi
8050       ;;
8051     esac
8052
8053     if test "$ld_shlibs" = no; then
8054       runpath_var=
8055       hardcode_libdir_flag_spec=
8056       export_dynamic_flag_spec=
8057       whole_archive_flag_spec=
8058     fi
8059   else
8060     # PORTME fill in a description of your system's linker (not GNU ld)
8061     case $host_os in
8062     aix3*)
8063       allow_undefined_flag=unsupported
8064       always_export_symbols=yes
8065       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'
8066       # Note: this linker hardcodes the directories in LIBPATH if there
8067       # are no directories specified by -L.
8068       hardcode_minus_L=yes
8069       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8070         # Neither direct hardcoding nor static linking is supported with a
8071         # broken collect2.
8072         hardcode_direct=unsupported
8073       fi
8074       ;;
8075
8076     aix4* | aix5*)
8077       if test "$host_cpu" = ia64; then
8078         # On IA64, the linker does run time linking by default, so we don't
8079         # have to do anything special.
8080         aix_use_runtimelinking=no
8081         exp_sym_flag='-Bexport'
8082         no_entry_flag=""
8083       else
8084         # If we're using GNU nm, then we don't want the "-C" option.
8085         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8086         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8087           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'
8088         else
8089           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'
8090         fi
8091         aix_use_runtimelinking=no
8092
8093         # Test if we are trying to use run time linking or normal
8094         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8095         # need to do runtime linking.
8096         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8097           for ld_flag in $LDFLAGS; do
8098           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8099             aix_use_runtimelinking=yes
8100             break
8101           fi
8102           done
8103           ;;
8104         esac
8105
8106         exp_sym_flag='-bexport'
8107         no_entry_flag='-bnoentry'
8108       fi
8109
8110       # When large executables or shared objects are built, AIX ld can
8111       # have problems creating the table of contents.  If linking a library
8112       # or program results in "error TOC overflow" add -mminimal-toc to
8113       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8114       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8115
8116       archive_cmds=''
8117       hardcode_direct=yes
8118       hardcode_libdir_separator=':'
8119       link_all_deplibs=yes
8120
8121       if test "$GCC" = yes; then
8122         case $host_os in aix4.[012]|aix4.[012].*)
8123         # We only want to do this on AIX 4.2 and lower, the check
8124         # below for broken collect2 doesn't work under 4.3+
8125           collect2name=`${CC} -print-prog-name=collect2`
8126           if test -f "$collect2name" && \
8127            strings "$collect2name" | grep resolve_lib_name >/dev/null
8128           then
8129           # We have reworked collect2
8130           hardcode_direct=yes
8131           else
8132           # We have old collect2
8133           hardcode_direct=unsupported
8134           # It fails to find uninstalled libraries when the uninstalled
8135           # path is not listed in the libpath.  Setting hardcode_minus_L
8136           # to unsupported forces relinking
8137           hardcode_minus_L=yes
8138           hardcode_libdir_flag_spec='-L$libdir'
8139           hardcode_libdir_separator=
8140           fi
8141           ;;
8142         esac
8143         shared_flag='-shared'
8144         if test "$aix_use_runtimelinking" = yes; then
8145           shared_flag="$shared_flag "'${wl}-G'
8146         fi
8147       else
8148         # not using gcc
8149         if test "$host_cpu" = ia64; then
8150         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8151         # chokes on -Wl,-G. The following line is correct:
8152           shared_flag='-G'
8153         else
8154           if test "$aix_use_runtimelinking" = yes; then
8155             shared_flag='${wl}-G'
8156           else
8157             shared_flag='${wl}-bM:SRE'
8158           fi
8159         fi
8160       fi
8161
8162       # It seems that -bexpall does not export symbols beginning with
8163       # underscore (_), so it is better to generate a list of symbols to export.
8164       always_export_symbols=yes
8165       if test "$aix_use_runtimelinking" = yes; then
8166         # Warning - without using the other runtime loading flags (-brtl),
8167         # -berok will link without error, but may produce a broken library.
8168         allow_undefined_flag='-berok'
8169        # Determine the default libpath from the value encoded in an empty executable.
8170        cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176
8177 int
8178 main ()
8179 {
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext conftest$ac_exeext
8186 if { (ac_try="$ac_link"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192   (eval "$ac_link") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } &&
8199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200   { (case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_try") 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; } &&
8209          { ac_try='test -s conftest$ac_exeext'
8210   { (case "(($ac_try" in
8211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212   *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215   (eval "$ac_try") 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; }; then
8219
8220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8221 }'`
8222 # Check for a 64-bit object if we didn't find anything.
8223 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8224 }'`; fi
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext \
8233       conftest$ac_exeext conftest.$ac_ext
8234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8235
8236        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8237         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"
8238        else
8239         if test "$host_cpu" = ia64; then
8240           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8241           allow_undefined_flag="-z nodefs"
8242           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"
8243         else
8244          # Determine the default libpath from the value encoded in an empty executable.
8245          cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251
8252 int
8253 main ()
8254 {
8255
8256   ;
8257   return 0;
8258 }
8259 _ACEOF
8260 rm -f conftest.$ac_objext conftest$ac_exeext
8261 if { (ac_try="$ac_link"
8262 case "(($ac_try" in
8263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264   *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267   (eval "$ac_link") 2>conftest.er1
8268   ac_status=$?
8269   grep -v '^ *+' conftest.er1 >conftest.err
8270   rm -f conftest.er1
8271   cat conftest.err >&5
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } &&
8274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8275   { (case "(($ac_try" in
8276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277   *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280   (eval "$ac_try") 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; } &&
8284          { ac_try='test -s conftest$ac_exeext'
8285   { (case "(($ac_try" in
8286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287   *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290   (eval "$ac_try") 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; }; then
8294
8295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8296 }'`
8297 # Check for a 64-bit object if we didn't find anything.
8298 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8299 }'`; fi
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304
8305 fi
8306
8307 rm -f core conftest.err conftest.$ac_objext \
8308       conftest$ac_exeext conftest.$ac_ext
8309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8310
8311          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8312           # Warning - without using the other run time loading flags,
8313           # -berok will link without error, but may produce a broken library.
8314           no_undefined_flag=' ${wl}-bernotok'
8315           allow_undefined_flag=' ${wl}-berok'
8316           # Exported symbols can be pulled into shared objects from archives
8317           whole_archive_flag_spec='$convenience'
8318           archive_cmds_need_lc=yes
8319           # This is similar to how AIX traditionally builds its shared libraries.
8320           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'
8321         fi
8322       fi
8323       ;;
8324
8325     amigaos*)
8326       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)'
8327       hardcode_libdir_flag_spec='-L$libdir'
8328       hardcode_minus_L=yes
8329       # see comment about different semantics on the GNU ld section
8330       ld_shlibs=no
8331       ;;
8332
8333     bsdi[45]*)
8334       export_dynamic_flag_spec=-rdynamic
8335       ;;
8336
8337     cygwin* | mingw* | pw32*)
8338       # When not using gcc, we currently assume that we are using
8339       # Microsoft Visual C++.
8340       # hardcode_libdir_flag_spec is actually meaningless, as there is
8341       # no search path for DLLs.
8342       hardcode_libdir_flag_spec=' '
8343       allow_undefined_flag=unsupported
8344       # Tell ltmain to make .lib files, not .a files.
8345       libext=lib
8346       # Tell ltmain to make .dll files, not .so files.
8347       shrext_cmds=".dll"
8348       # FIXME: Setting linknames here is a bad hack.
8349       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8350       # The linker will automatically build a .lib file if we build a DLL.
8351       old_archive_From_new_cmds='true'
8352       # FIXME: Should let the user specify the lib program.
8353       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8354       fix_srcfile_path='`cygpath -w "$srcfile"`'
8355       enable_shared_with_static_runtimes=yes
8356       ;;
8357
8358     darwin* | rhapsody*)
8359       case $host_os in
8360         rhapsody* | darwin1.[012])
8361          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8362          ;;
8363        *) # Darwin 1.3 on
8364          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8365            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8366          else
8367            case ${MACOSX_DEPLOYMENT_TARGET} in
8368              10.[012])
8369                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8370                ;;
8371              10.*)
8372                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8373                ;;
8374            esac
8375          fi
8376          ;;
8377       esac
8378       archive_cmds_need_lc=no
8379       hardcode_direct=no
8380       hardcode_automatic=yes
8381       hardcode_shlibpath_var=unsupported
8382       whole_archive_flag_spec=''
8383       link_all_deplibs=yes
8384     if test "$GCC" = yes ; then
8385         output_verbose_link_cmd='echo'
8386         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8387       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8388       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8389       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8390       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}'
8391     else
8392       case $cc_basename in
8393         xlc*)
8394          output_verbose_link_cmd='echo'
8395          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8396          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8397           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8398          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8399           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}'
8400           ;;
8401        *)
8402          ld_shlibs=no
8403           ;;
8404       esac
8405     fi
8406       ;;
8407
8408     dgux*)
8409       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410       hardcode_libdir_flag_spec='-L$libdir'
8411       hardcode_shlibpath_var=no
8412       ;;
8413
8414     freebsd1*)
8415       ld_shlibs=no
8416       ;;
8417
8418     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8419     # support.  Future versions do this automatically, but an explicit c++rt0.o
8420     # does not break anything, and helps significantly (at the cost of a little
8421     # extra space).
8422     freebsd2.2*)
8423       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8424       hardcode_libdir_flag_spec='-R$libdir'
8425       hardcode_direct=yes
8426       hardcode_shlibpath_var=no
8427       ;;
8428
8429     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8430     freebsd2*)
8431       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8432       hardcode_direct=yes
8433       hardcode_minus_L=yes
8434       hardcode_shlibpath_var=no
8435       ;;
8436
8437     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8438     freebsd* | kfreebsd*-gnu | dragonfly*)
8439       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8440       hardcode_libdir_flag_spec='-R$libdir'
8441       hardcode_direct=yes
8442       hardcode_shlibpath_var=no
8443       ;;
8444
8445     hpux9*)
8446       if test "$GCC" = yes; then
8447         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'
8448       else
8449         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'
8450       fi
8451       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452       hardcode_libdir_separator=:
8453       hardcode_direct=yes
8454
8455       # hardcode_minus_L: Not really in the search PATH,
8456       # but as the default location of the library.
8457       hardcode_minus_L=yes
8458       export_dynamic_flag_spec='${wl}-E'
8459       ;;
8460
8461     hpux10*)
8462       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8463         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8464       else
8465         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8466       fi
8467       if test "$with_gnu_ld" = no; then
8468         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8469         hardcode_libdir_separator=:
8470
8471         hardcode_direct=yes
8472         export_dynamic_flag_spec='${wl}-E'
8473
8474         # hardcode_minus_L: Not really in the search PATH,
8475         # but as the default location of the library.
8476         hardcode_minus_L=yes
8477       fi
8478       ;;
8479
8480     hpux11*)
8481       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8482         case $host_cpu in
8483         hppa*64*)
8484           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485           ;;
8486         ia64*)
8487           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8488           ;;
8489         *)
8490           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8491           ;;
8492         esac
8493       else
8494         case $host_cpu in
8495         hppa*64*)
8496           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8497           ;;
8498         ia64*)
8499           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8500           ;;
8501         *)
8502           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8503           ;;
8504         esac
8505       fi
8506       if test "$with_gnu_ld" = no; then
8507         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8508         hardcode_libdir_separator=:
8509
8510         case $host_cpu in
8511         hppa*64*|ia64*)
8512           hardcode_libdir_flag_spec_ld='+b $libdir'
8513           hardcode_direct=no
8514           hardcode_shlibpath_var=no
8515           ;;
8516         *)
8517           hardcode_direct=yes
8518           export_dynamic_flag_spec='${wl}-E'
8519
8520           # hardcode_minus_L: Not really in the search PATH,
8521           # but as the default location of the library.
8522           hardcode_minus_L=yes
8523           ;;
8524         esac
8525       fi
8526       ;;
8527
8528     irix5* | irix6* | nonstopux*)
8529       if test "$GCC" = yes; then
8530         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'
8531       else
8532         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'
8533         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8534       fi
8535       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536       hardcode_libdir_separator=:
8537       link_all_deplibs=yes
8538       ;;
8539
8540     netbsd*)
8541       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8542         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8543       else
8544         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8545       fi
8546       hardcode_libdir_flag_spec='-R$libdir'
8547       hardcode_direct=yes
8548       hardcode_shlibpath_var=no
8549       ;;
8550
8551     newsos6)
8552       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8553       hardcode_direct=yes
8554       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555       hardcode_libdir_separator=:
8556       hardcode_shlibpath_var=no
8557       ;;
8558
8559     openbsd*)
8560       hardcode_direct=yes
8561       hardcode_shlibpath_var=no
8562       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8563         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8564         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8565         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8566         export_dynamic_flag_spec='${wl}-E'
8567       else
8568        case $host_os in
8569          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8570            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8571            hardcode_libdir_flag_spec='-R$libdir'
8572            ;;
8573          *)
8574            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8575            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8576            ;;
8577        esac
8578       fi
8579       ;;
8580
8581     os2*)
8582       hardcode_libdir_flag_spec='-L$libdir'
8583       hardcode_minus_L=yes
8584       allow_undefined_flag=unsupported
8585       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'
8586       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8587       ;;
8588
8589     osf3*)
8590       if test "$GCC" = yes; then
8591         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8592         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'
8593       else
8594         allow_undefined_flag=' -expect_unresolved \*'
8595         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'
8596       fi
8597       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598       hardcode_libdir_separator=:
8599       ;;
8600
8601     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8602       if test "$GCC" = yes; then
8603         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8604         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'
8605         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8606       else
8607         allow_undefined_flag=' -expect_unresolved \*'
8608         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'
8609         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8610         $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'
8611
8612         # Both c and cxx compiler support -rpath directly
8613         hardcode_libdir_flag_spec='-rpath $libdir'
8614       fi
8615       hardcode_libdir_separator=:
8616       ;;
8617
8618     solaris*)
8619       no_undefined_flag=' -z text'
8620       if test "$GCC" = yes; then
8621         wlarc='${wl}'
8622         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8623         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8624           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8625       else
8626         wlarc=''
8627         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8629         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8630       fi
8631       hardcode_libdir_flag_spec='-R$libdir'
8632       hardcode_shlibpath_var=no
8633       case $host_os in
8634       solaris2.[0-5] | solaris2.[0-5].*) ;;
8635       *)
8636         # The compiler driver will combine linker options so we
8637         # cannot just pass the convience library names through
8638         # without $wl, iff we do not link with $LD.
8639         # Luckily, gcc supports the same syntax we need for Sun Studio.
8640         # Supported since Solaris 2.6 (maybe 2.5.1?)
8641         case $wlarc in
8642         '')
8643           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8644         *)
8645           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8646         esac ;;
8647       esac
8648       link_all_deplibs=yes
8649       ;;
8650
8651     sunos4*)
8652       if test "x$host_vendor" = xsequent; then
8653         # Use $CC to link under sequent, because it throws in some extra .o
8654         # files that make .init and .fini sections work.
8655         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8656       else
8657         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8658       fi
8659       hardcode_libdir_flag_spec='-L$libdir'
8660       hardcode_direct=yes
8661       hardcode_minus_L=yes
8662       hardcode_shlibpath_var=no
8663       ;;
8664
8665     sysv4)
8666       case $host_vendor in
8667         sni)
8668           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669           hardcode_direct=yes # is this really true???
8670         ;;
8671         siemens)
8672           ## LD is ld it makes a PLAMLIB
8673           ## CC just makes a GrossModule.
8674           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8675           reload_cmds='$CC -r -o $output$reload_objs'
8676           hardcode_direct=no
8677         ;;
8678         motorola)
8679           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8681         ;;
8682       esac
8683       runpath_var='LD_RUN_PATH'
8684       hardcode_shlibpath_var=no
8685       ;;
8686
8687     sysv4.3*)
8688       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689       hardcode_shlibpath_var=no
8690       export_dynamic_flag_spec='-Bexport'
8691       ;;
8692
8693     sysv4*MP*)
8694       if test -d /usr/nec; then
8695         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696         hardcode_shlibpath_var=no
8697         runpath_var=LD_RUN_PATH
8698         hardcode_runpath_var=yes
8699         ld_shlibs=yes
8700       fi
8701       ;;
8702
8703     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8704       no_undefined_flag='${wl}-z,text'
8705       archive_cmds_need_lc=no
8706       hardcode_shlibpath_var=no
8707       runpath_var='LD_RUN_PATH'
8708
8709       if test "$GCC" = yes; then
8710         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8711         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8712       else
8713         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8714         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8715       fi
8716       ;;
8717
8718     sysv5* | sco3.2v5* | sco5v6*)
8719       # Note: We can NOT use -z defs as we might desire, because we do not
8720       # link with -lc, and that would cause any symbols used from libc to
8721       # always be unresolved, which means just about no library would
8722       # ever link correctly.  If we're not using GNU ld we use -z text
8723       # though, which does catch some bad symbols but isn't as heavy-handed
8724       # as -z defs.
8725       no_undefined_flag='${wl}-z,text'
8726       allow_undefined_flag='${wl}-z,nodefs'
8727       archive_cmds_need_lc=no
8728       hardcode_shlibpath_var=no
8729       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8730       hardcode_libdir_separator=':'
8731       link_all_deplibs=yes
8732       export_dynamic_flag_spec='${wl}-Bexport'
8733       runpath_var='LD_RUN_PATH'
8734
8735       if test "$GCC" = yes; then
8736         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8737         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738       else
8739         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8740         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8741       fi
8742       ;;
8743
8744     uts4*)
8745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746       hardcode_libdir_flag_spec='-L$libdir'
8747       hardcode_shlibpath_var=no
8748       ;;
8749
8750     *)
8751       ld_shlibs=no
8752       ;;
8753     esac
8754   fi
8755
8756 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8757 echo "${ECHO_T}$ld_shlibs" >&6; }
8758 test "$ld_shlibs" = no && can_build_shared=no
8759
8760 #
8761 # Do we need to explicitly link libc?
8762 #
8763 case "x$archive_cmds_need_lc" in
8764 x|xyes)
8765   # Assume -lc should be added
8766   archive_cmds_need_lc=yes
8767
8768   if test "$enable_shared" = yes && test "$GCC" = yes; then
8769     case $archive_cmds in
8770     *'~'*)
8771       # FIXME: we may have to deal with multi-command sequences.
8772       ;;
8773     '$CC '*)
8774       # Test whether the compiler implicitly links with -lc since on some
8775       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8776       # to ld, don't add -lc before -lgcc.
8777       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8779       $rm conftest*
8780       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8781
8782       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783   (eval $ac_compile) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); } 2>conftest.err; then
8787         soname=conftest
8788         lib=conftest
8789         libobjs=conftest.$ac_objext
8790         deplibs=
8791         wl=$lt_prog_compiler_wl
8792         pic_flag=$lt_prog_compiler_pic
8793         compiler_flags=-v
8794         linker_flags=-v
8795         verstring=
8796         output_objdir=.
8797         libname=conftest
8798         lt_save_allow_undefined_flag=$allow_undefined_flag
8799         allow_undefined_flag=
8800         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8801   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }
8805         then
8806           archive_cmds_need_lc=no
8807         else
8808           archive_cmds_need_lc=yes
8809         fi
8810         allow_undefined_flag=$lt_save_allow_undefined_flag
8811       else
8812         cat conftest.err 1>&5
8813       fi
8814       $rm conftest*
8815       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8816 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8817       ;;
8818     esac
8819   fi
8820   ;;
8821 esac
8822
8823 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8825 library_names_spec=
8826 libname_spec='lib$name'
8827 soname_spec=
8828 shrext_cmds=".so"
8829 postinstall_cmds=
8830 postuninstall_cmds=
8831 finish_cmds=
8832 finish_eval=
8833 shlibpath_var=
8834 shlibpath_overrides_runpath=unknown
8835 version_type=none
8836 dynamic_linker="$host_os ld.so"
8837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8838 if test "$GCC" = yes; then
8839   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8840   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8841     # if the path contains ";" then we assume it to be the separator
8842     # otherwise default to the standard path separator (i.e. ":") - it is
8843     # assumed that no part of a normal pathname contains ";" but that should
8844     # okay in the real world where ";" in dirpaths is itself problematic.
8845     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8846   else
8847     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8848   fi
8849 else
8850   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8851 fi
8852 need_lib_prefix=unknown
8853 hardcode_into_libs=no
8854
8855 # when you set need_version to no, make sure it does not cause -set_version
8856 # flags to be left without arguments
8857 need_version=unknown
8858
8859 case $host_os in
8860 aix3*)
8861   version_type=linux
8862   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8863   shlibpath_var=LIBPATH
8864
8865   # AIX 3 has no versioning support, so we append a major version to the name.
8866   soname_spec='${libname}${release}${shared_ext}$major'
8867   ;;
8868
8869 aix4* | aix5*)
8870   version_type=linux
8871   need_lib_prefix=no
8872   need_version=no
8873   hardcode_into_libs=yes
8874   if test "$host_cpu" = ia64; then
8875     # AIX 5 supports IA64
8876     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8877     shlibpath_var=LD_LIBRARY_PATH
8878   else
8879     # With GCC up to 2.95.x, collect2 would create an import file
8880     # for dependence libraries.  The import file would start with
8881     # the line `#! .'.  This would cause the generated library to
8882     # depend on `.', always an invalid library.  This was fixed in
8883     # development snapshots of GCC prior to 3.0.
8884     case $host_os in
8885       aix4 | aix4.[01] | aix4.[01].*)
8886       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8887            echo ' yes '
8888            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8889         :
8890       else
8891         can_build_shared=no
8892       fi
8893       ;;
8894     esac
8895     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8896     # soname into executable. Probably we can add versioning support to
8897     # collect2, so additional links can be useful in future.
8898     if test "$aix_use_runtimelinking" = yes; then
8899       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8900       # instead of lib<name>.a to let people know that these are not
8901       # typical AIX shared libraries.
8902       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903     else
8904       # We preserve .a as extension for shared libraries through AIX4.2
8905       # and later when we are not doing run time linking.
8906       library_names_spec='${libname}${release}.a $libname.a'
8907       soname_spec='${libname}${release}${shared_ext}$major'
8908     fi
8909     shlibpath_var=LIBPATH
8910   fi
8911   ;;
8912
8913 amigaos*)
8914   library_names_spec='$libname.ixlibrary $libname.a'
8915   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8916   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'
8917   ;;
8918
8919 beos*)
8920   library_names_spec='${libname}${shared_ext}'
8921   dynamic_linker="$host_os ld.so"
8922   shlibpath_var=LIBRARY_PATH
8923   ;;
8924
8925 bsdi[45]*)
8926   version_type=linux
8927   need_version=no
8928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929   soname_spec='${libname}${release}${shared_ext}$major'
8930   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8931   shlibpath_var=LD_LIBRARY_PATH
8932   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8933   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8934   # the default ld.so.conf also contains /usr/contrib/lib and
8935   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8936   # libtool to hard-code these into programs
8937   ;;
8938
8939 cygwin* | mingw* | pw32*)
8940   version_type=windows
8941   shrext_cmds=".dll"
8942   need_version=no
8943   need_lib_prefix=no
8944
8945   case $GCC,$host_os in
8946   yes,cygwin* | yes,mingw* | yes,pw32*)
8947     library_names_spec='$libname.dll.a'
8948     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8949     postinstall_cmds='base_file=`basename \${file}`~
8950       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8951       dldir=$destdir/`dirname \$dlpath`~
8952       test -d \$dldir || mkdir -p \$dldir~
8953       $install_prog $dir/$dlname \$dldir/$dlname~
8954       chmod a+x \$dldir/$dlname'
8955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8956       dlpath=$dir/\$dldll~
8957        $rm \$dlpath'
8958     shlibpath_overrides_runpath=yes
8959
8960     case $host_os in
8961     cygwin*)
8962       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8963       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8964       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8965       ;;
8966     mingw*)
8967       # MinGW DLLs use traditional 'lib' prefix
8968       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8970       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8971         # It is most probably a Windows format PATH printed by
8972         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8973         # path with ; separators, and with drive letters. We can handle the
8974         # drive letters (cygwin fileutils understands them), so leave them,
8975         # especially as we might pass files found there to a mingw objdump,
8976         # which wouldn't understand a cygwinified path. Ahh.
8977         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8978       else
8979         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8980       fi
8981       ;;
8982     pw32*)
8983       # pw32 DLLs use 'pw' prefix rather than 'lib'
8984       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8985       ;;
8986     esac
8987     ;;
8988
8989   *)
8990     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8991     ;;
8992   esac
8993   dynamic_linker='Win32 ld.exe'
8994   # FIXME: first we should search . and the directory the executable is in
8995   shlibpath_var=PATH
8996   ;;
8997
8998 darwin* | rhapsody*)
8999   dynamic_linker="$host_os dyld"
9000   version_type=darwin
9001   need_lib_prefix=no
9002   need_version=no
9003   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9004   soname_spec='${libname}${release}${major}$shared_ext'
9005   shlibpath_overrides_runpath=yes
9006   shlibpath_var=DYLD_LIBRARY_PATH
9007   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9008   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9009   if test "$GCC" = yes; then
9010     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9011   else
9012     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9013   fi
9014   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9015   ;;
9016
9017 dgux*)
9018   version_type=linux
9019   need_lib_prefix=no
9020   need_version=no
9021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9022   soname_spec='${libname}${release}${shared_ext}$major'
9023   shlibpath_var=LD_LIBRARY_PATH
9024   ;;
9025
9026 freebsd1*)
9027   dynamic_linker=no
9028   ;;
9029
9030 kfreebsd*-gnu)
9031   version_type=linux
9032   need_lib_prefix=no
9033   need_version=no
9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035   soname_spec='${libname}${release}${shared_ext}$major'
9036   shlibpath_var=LD_LIBRARY_PATH
9037   shlibpath_overrides_runpath=no
9038   hardcode_into_libs=yes
9039   dynamic_linker='GNU ld.so'
9040   ;;
9041
9042 freebsd* | dragonfly*)
9043   # DragonFly does not have aout.  When/if they implement a new
9044   # versioning mechanism, adjust this.
9045   if test -x /usr/bin/objformat; then
9046     objformat=`/usr/bin/objformat`
9047   else
9048     case $host_os in
9049     freebsd[123]*) objformat=aout ;;
9050     *) objformat=elf ;;
9051     esac
9052   fi
9053   version_type=freebsd-$objformat
9054   case $version_type in
9055     freebsd-elf*)
9056       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9057       need_version=no
9058       need_lib_prefix=no
9059       ;;
9060     freebsd-*)
9061       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9062       need_version=yes
9063       ;;
9064   esac
9065   shlibpath_var=LD_LIBRARY_PATH
9066   case $host_os in
9067   freebsd2*)
9068     shlibpath_overrides_runpath=yes
9069     ;;
9070   freebsd3.[01]* | freebsdelf3.[01]*)
9071     shlibpath_overrides_runpath=yes
9072     hardcode_into_libs=yes
9073     ;;
9074   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9075   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9076     shlibpath_overrides_runpath=no
9077     hardcode_into_libs=yes
9078     ;;
9079   freebsd*) # from 4.6 on
9080     shlibpath_overrides_runpath=yes
9081     hardcode_into_libs=yes
9082     ;;
9083   esac
9084   ;;
9085
9086 gnu*)
9087   version_type=linux
9088   need_lib_prefix=no
9089   need_version=no
9090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9091   soname_spec='${libname}${release}${shared_ext}$major'
9092   shlibpath_var=LD_LIBRARY_PATH
9093   hardcode_into_libs=yes
9094   ;;
9095
9096 hpux9* | hpux10* | hpux11*)
9097   # Give a soname corresponding to the major version so that dld.sl refuses to
9098   # link against other versions.
9099   version_type=sunos
9100   need_lib_prefix=no
9101   need_version=no
9102   case $host_cpu in
9103   ia64*)
9104     shrext_cmds='.so'
9105     hardcode_into_libs=yes
9106     dynamic_linker="$host_os dld.so"
9107     shlibpath_var=LD_LIBRARY_PATH
9108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110     soname_spec='${libname}${release}${shared_ext}$major'
9111     if test "X$HPUX_IA64_MODE" = X32; then
9112       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9113     else
9114       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9115     fi
9116     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9117     ;;
9118    hppa*64*)
9119      shrext_cmds='.sl'
9120      hardcode_into_libs=yes
9121      dynamic_linker="$host_os dld.sl"
9122      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9123      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125      soname_spec='${libname}${release}${shared_ext}$major'
9126      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9127      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9128      ;;
9129    *)
9130     shrext_cmds='.sl'
9131     dynamic_linker="$host_os dld.sl"
9132     shlibpath_var=SHLIB_PATH
9133     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135     soname_spec='${libname}${release}${shared_ext}$major'
9136     ;;
9137   esac
9138   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9139   postinstall_cmds='chmod 555 $lib'
9140   ;;
9141
9142 interix3*)
9143   version_type=linux
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9149   shlibpath_var=LD_LIBRARY_PATH
9150   shlibpath_overrides_runpath=no
9151   hardcode_into_libs=yes
9152   ;;
9153
9154 irix5* | irix6* | nonstopux*)
9155   case $host_os in
9156     nonstopux*) version_type=nonstopux ;;
9157     *)
9158         if test "$lt_cv_prog_gnu_ld" = yes; then
9159                 version_type=linux
9160         else
9161                 version_type=irix
9162         fi ;;
9163   esac
9164   need_lib_prefix=no
9165   need_version=no
9166   soname_spec='${libname}${release}${shared_ext}$major'
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9168   case $host_os in
9169   irix5* | nonstopux*)
9170     libsuff= shlibsuff=
9171     ;;
9172   *)
9173     case $LD in # libtool.m4 will add one of these switches to LD
9174     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9175       libsuff= shlibsuff= libmagic=32-bit;;
9176     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9177       libsuff=32 shlibsuff=N32 libmagic=N32;;
9178     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9179       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9180     *) libsuff= shlibsuff= libmagic=never-match;;
9181     esac
9182     ;;
9183   esac
9184   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9185   shlibpath_overrides_runpath=no
9186   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9187   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9188   hardcode_into_libs=yes
9189   ;;
9190
9191 # No shared lib support for Linux oldld, aout, or coff.
9192 linux*oldld* | linux*aout* | linux*coff*)
9193   dynamic_linker=no
9194   ;;
9195
9196 # This must be Linux ELF.
9197 linux*)
9198   version_type=linux
9199   need_lib_prefix=no
9200   need_version=no
9201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202   soname_spec='${libname}${release}${shared_ext}$major'
9203   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9204   shlibpath_var=LD_LIBRARY_PATH
9205   shlibpath_overrides_runpath=no
9206   # This implies no fast_install, which is unacceptable.
9207   # Some rework will be needed to allow for fast_install
9208   # before this can be enabled.
9209   hardcode_into_libs=yes
9210
9211   # Append ld.so.conf contents to the search path
9212   if test -f /etc/ld.so.conf; then
9213     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9214     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9215   fi
9216
9217   # We used to test for /lib/ld.so.1 and disable shared libraries on
9218   # powerpc, because MkLinux only supported shared libraries with the
9219   # GNU dynamic linker.  Since this was broken with cross compilers,
9220   # most powerpc-linux boxes support dynamic linking these days and
9221   # people can always --disable-shared, the test was removed, and we
9222   # assume the GNU/Linux dynamic linker is in use.
9223   dynamic_linker='GNU/Linux ld.so'
9224   ;;
9225
9226 knetbsd*-gnu)
9227   version_type=linux
9228   need_lib_prefix=no
9229   need_version=no
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   shlibpath_overrides_runpath=no
9234   hardcode_into_libs=yes
9235   dynamic_linker='GNU ld.so'
9236   ;;
9237
9238 netbsd*)
9239   version_type=sunos
9240   need_lib_prefix=no
9241   need_version=no
9242   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9244     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9245     dynamic_linker='NetBSD (a.out) ld.so'
9246   else
9247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248     soname_spec='${libname}${release}${shared_ext}$major'
9249     dynamic_linker='NetBSD ld.elf_so'
9250   fi
9251   shlibpath_var=LD_LIBRARY_PATH
9252   shlibpath_overrides_runpath=yes
9253   hardcode_into_libs=yes
9254   ;;
9255
9256 newsos6)
9257   version_type=linux
9258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259   shlibpath_var=LD_LIBRARY_PATH
9260   shlibpath_overrides_runpath=yes
9261   ;;
9262
9263 nto-qnx*)
9264   version_type=linux
9265   need_lib_prefix=no
9266   need_version=no
9267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268   soname_spec='${libname}${release}${shared_ext}$major'
9269   shlibpath_var=LD_LIBRARY_PATH
9270   shlibpath_overrides_runpath=yes
9271   ;;
9272
9273 openbsd*)
9274   version_type=sunos
9275   sys_lib_dlsearch_path_spec="/usr/lib"
9276   need_lib_prefix=no
9277   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9278   case $host_os in
9279     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9280     *)                         need_version=no  ;;
9281   esac
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9286     case $host_os in
9287       openbsd2.[89] | openbsd2.[89].*)
9288         shlibpath_overrides_runpath=no
9289         ;;
9290       *)
9291         shlibpath_overrides_runpath=yes
9292         ;;
9293       esac
9294   else
9295     shlibpath_overrides_runpath=yes
9296   fi
9297   ;;
9298
9299 os2*)
9300   libname_spec='$name'
9301   shrext_cmds=".dll"
9302   need_lib_prefix=no
9303   library_names_spec='$libname${shared_ext} $libname.a'
9304   dynamic_linker='OS/2 ld.exe'
9305   shlibpath_var=LIBPATH
9306   ;;
9307
9308 osf3* | osf4* | osf5*)
9309   version_type=osf
9310   need_lib_prefix=no
9311   need_version=no
9312   soname_spec='${libname}${release}${shared_ext}$major'
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314   shlibpath_var=LD_LIBRARY_PATH
9315   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9316   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9317   ;;
9318
9319 solaris*)
9320   version_type=linux
9321   need_lib_prefix=no
9322   need_version=no
9323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324   soname_spec='${libname}${release}${shared_ext}$major'
9325   shlibpath_var=LD_LIBRARY_PATH
9326   shlibpath_overrides_runpath=yes
9327   hardcode_into_libs=yes
9328   # ldd complains unless libraries are executable
9329   postinstall_cmds='chmod +x $lib'
9330   ;;
9331
9332 sunos4*)
9333   version_type=sunos
9334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9336   shlibpath_var=LD_LIBRARY_PATH
9337   shlibpath_overrides_runpath=yes
9338   if test "$with_gnu_ld" = yes; then
9339     need_lib_prefix=no
9340   fi
9341   need_version=yes
9342   ;;
9343
9344 sysv4 | sysv4.3*)
9345   version_type=linux
9346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347   soname_spec='${libname}${release}${shared_ext}$major'
9348   shlibpath_var=LD_LIBRARY_PATH
9349   case $host_vendor in
9350     sni)
9351       shlibpath_overrides_runpath=no
9352       need_lib_prefix=no
9353       export_dynamic_flag_spec='${wl}-Blargedynsym'
9354       runpath_var=LD_RUN_PATH
9355       ;;
9356     siemens)
9357       need_lib_prefix=no
9358       ;;
9359     motorola)
9360       need_lib_prefix=no
9361       need_version=no
9362       shlibpath_overrides_runpath=no
9363       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9364       ;;
9365   esac
9366   ;;
9367
9368 sysv4*MP*)
9369   if test -d /usr/nec ;then
9370     version_type=linux
9371     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9372     soname_spec='$libname${shared_ext}.$major'
9373     shlibpath_var=LD_LIBRARY_PATH
9374   fi
9375   ;;
9376
9377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9378   version_type=freebsd-elf
9379   need_lib_prefix=no
9380   need_version=no
9381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9382   soname_spec='${libname}${release}${shared_ext}$major'
9383   shlibpath_var=LD_LIBRARY_PATH
9384   hardcode_into_libs=yes
9385   if test "$with_gnu_ld" = yes; then
9386     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9387     shlibpath_overrides_runpath=no
9388   else
9389     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9390     shlibpath_overrides_runpath=yes
9391     case $host_os in
9392       sco3.2v5*)
9393         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9394         ;;
9395     esac
9396   fi
9397   sys_lib_dlsearch_path_spec='/usr/lib'
9398   ;;
9399
9400 uts4*)
9401   version_type=linux
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   shlibpath_var=LD_LIBRARY_PATH
9405   ;;
9406
9407 *)
9408   dynamic_linker=no
9409   ;;
9410 esac
9411 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9412 echo "${ECHO_T}$dynamic_linker" >&6; }
9413 test "$dynamic_linker" = no && can_build_shared=no
9414
9415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9416 if test "$GCC" = yes; then
9417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9418 fi
9419
9420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9422 hardcode_action=
9423 if test -n "$hardcode_libdir_flag_spec" || \
9424    test -n "$runpath_var" || \
9425    test "X$hardcode_automatic" = "Xyes" ; then
9426
9427   # We can hardcode non-existant directories.
9428   if test "$hardcode_direct" != no &&
9429      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9430      # have to relink, otherwise we might link with an installed library
9431      # when we should be linking with a yet-to-be-installed one
9432      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9433      test "$hardcode_minus_L" != no; then
9434     # Linking always hardcodes the temporary library directory.
9435     hardcode_action=relink
9436   else
9437     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9438     hardcode_action=immediate
9439   fi
9440 else
9441   # We cannot hardcode anything, or else we can only hardcode existing
9442   # directories.
9443   hardcode_action=unsupported
9444 fi
9445 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9446 echo "${ECHO_T}$hardcode_action" >&6; }
9447
9448 if test "$hardcode_action" = relink; then
9449   # Fast installation is not supported
9450   enable_fast_install=no
9451 elif test "$shlibpath_overrides_runpath" = yes ||
9452      test "$enable_shared" = no; then
9453   # Fast installation is not necessary
9454   enable_fast_install=needless
9455 fi
9456
9457 striplib=
9458 old_striplib=
9459 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9460 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9461 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9462   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9463   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9464   { echo "$as_me:$LINENO: result: yes" >&5
9465 echo "${ECHO_T}yes" >&6; }
9466 else
9467 # FIXME - insert some real tests, host_os isn't really good enough
9468   case $host_os in
9469    darwin*)
9470        if test -n "$STRIP" ; then
9471          striplib="$STRIP -x"
9472          { echo "$as_me:$LINENO: result: yes" >&5
9473 echo "${ECHO_T}yes" >&6; }
9474        else
9475   { echo "$as_me:$LINENO: result: no" >&5
9476 echo "${ECHO_T}no" >&6; }
9477 fi
9478        ;;
9479    *)
9480   { echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6; }
9482     ;;
9483   esac
9484 fi
9485
9486 if test "x$enable_dlopen" != xyes; then
9487   enable_dlopen=unknown
9488   enable_dlopen_self=unknown
9489   enable_dlopen_self_static=unknown
9490 else
9491   lt_cv_dlopen=no
9492   lt_cv_dlopen_libs=
9493
9494   case $host_os in
9495   beos*)
9496     lt_cv_dlopen="load_add_on"
9497     lt_cv_dlopen_libs=
9498     lt_cv_dlopen_self=yes
9499     ;;
9500
9501   mingw* | pw32*)
9502     lt_cv_dlopen="LoadLibrary"
9503     lt_cv_dlopen_libs=
9504    ;;
9505
9506   cygwin*)
9507     lt_cv_dlopen="dlopen"
9508     lt_cv_dlopen_libs=
9509    ;;
9510
9511   darwin*)
9512   # if libdl is installed we need to link against it
9513     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9514 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9515 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9516   echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518   ac_check_lib_save_LIBS=$LIBS
9519 LIBS="-ldl  $LIBS"
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526
9527 /* Override any GCC internal prototype to avoid an error.
9528    Use char because int might match the return type of a GCC
9529    builtin and then its argument prototype would still apply.  */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char dlopen ();
9534 int
9535 main ()
9536 {
9537 return dlopen ();
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (ac_try="$ac_link"
9544 case "(($ac_try" in
9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546   *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549   (eval "$ac_link") 2>conftest.er1
9550   ac_status=$?
9551   grep -v '^ *+' conftest.er1 >conftest.err
9552   rm -f conftest.er1
9553   cat conftest.err >&5
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); } &&
9556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557   { (case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562   (eval "$ac_try") 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; } &&
9566          { ac_try='test -s conftest$ac_exeext'
9567   { (case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_try") 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_cv_lib_dl_dlopen=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581         ac_cv_lib_dl_dlopen=no
9582 fi
9583
9584 rm -f core conftest.err conftest.$ac_objext \
9585       conftest$ac_exeext conftest.$ac_ext
9586 LIBS=$ac_check_lib_save_LIBS
9587 fi
9588 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9589 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9590 if test $ac_cv_lib_dl_dlopen = yes; then
9591   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9592 else
9593
9594     lt_cv_dlopen="dyld"
9595     lt_cv_dlopen_libs=
9596     lt_cv_dlopen_self=yes
9597
9598 fi
9599
9600    ;;
9601
9602   *)
9603     { echo "$as_me:$LINENO: checking for shl_load" >&5
9604 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9605 if test "${ac_cv_func_shl_load+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9616 #define shl_load innocuous_shl_load
9617
9618 /* System header to define __stub macros and hopefully few prototypes,
9619     which can conflict with char shl_load (); below.
9620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621     <limits.h> exists even on freestanding compilers.  */
9622
9623 #ifdef __STDC__
9624 # include <limits.h>
9625 #else
9626 # include <assert.h>
9627 #endif
9628
9629 #undef shl_load
9630
9631 /* Override any GCC internal prototype to avoid an error.
9632    Use char because int might match the return type of a GCC
9633    builtin and then its argument prototype would still apply.  */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char shl_load ();
9638 /* The GNU C library defines this for functions which it implements
9639     to always fail with ENOSYS.  Some functions are actually named
9640     something starting with __ and the normal name is an alias.  */
9641 #if defined __stub_shl_load || defined __stub___shl_load
9642 choke me
9643 #endif
9644
9645 int
9646 main ()
9647 {
9648 return shl_load ();
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_link") 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } &&
9667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9668   { (case "(($ac_try" in
9669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670   *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673   (eval "$ac_try") 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; } &&
9677          { ac_try='test -s conftest$ac_exeext'
9678   { (case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_try") 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; }; then
9687   ac_cv_func_shl_load=yes
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692         ac_cv_func_shl_load=no
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext \
9696       conftest$ac_exeext conftest.$ac_ext
9697 fi
9698 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9699 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9700 if test $ac_cv_func_shl_load = yes; then
9701   lt_cv_dlopen="shl_load"
9702 else
9703   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9704 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9705 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   ac_check_lib_save_LIBS=$LIBS
9709 LIBS="-ldld  $LIBS"
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h.  */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h.  */
9716
9717 /* Override any GCC internal prototype to avoid an error.
9718    Use char because int might match the return type of a GCC
9719    builtin and then its argument prototype would still apply.  */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char shl_load ();
9724 int
9725 main ()
9726 {
9727 return shl_load ();
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9734 case "(($ac_try" in
9735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736   *) ac_try_echo=$ac_try;;
9737 esac
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739   (eval "$ac_link") 2>conftest.er1
9740   ac_status=$?
9741   grep -v '^ *+' conftest.er1 >conftest.err
9742   rm -f conftest.er1
9743   cat conftest.err >&5
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747   { (case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_try") 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; } &&
9756          { ac_try='test -s conftest$ac_exeext'
9757   { (case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_try") 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766   ac_cv_lib_dld_shl_load=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771         ac_cv_lib_dld_shl_load=no
9772 fi
9773
9774 rm -f core conftest.err conftest.$ac_objext \
9775       conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9777 fi
9778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9779 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9780 if test $ac_cv_lib_dld_shl_load = yes; then
9781   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9782 else
9783   { echo "$as_me:$LINENO: checking for dlopen" >&5
9784 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9785 if test "${ac_cv_func_dlopen+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9796 #define dlopen innocuous_dlopen
9797
9798 /* System header to define __stub macros and hopefully few prototypes,
9799     which can conflict with char dlopen (); below.
9800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801     <limits.h> exists even on freestanding compilers.  */
9802
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9808
9809 #undef dlopen
9810
9811 /* Override any GCC internal prototype to avoid an error.
9812    Use char because int might match the return type of a GCC
9813    builtin and then its argument prototype would still apply.  */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char dlopen ();
9818 /* The GNU C library defines this for functions which it implements
9819     to always fail with ENOSYS.  Some functions are actually named
9820     something starting with __ and the normal name is an alias.  */
9821 #if defined __stub_dlopen || defined __stub___dlopen
9822 choke me
9823 #endif
9824
9825 int
9826 main ()
9827 {
9828 return dlopen ();
9829   ;
9830   return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_link") 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } &&
9847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9848   { (case "(($ac_try" in
9849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850   *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853   (eval "$ac_try") 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; } &&
9857          { ac_try='test -s conftest$ac_exeext'
9858   { (case "(($ac_try" in
9859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860   *) ac_try_echo=$ac_try;;
9861 esac
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863   (eval "$ac_try") 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   ac_cv_func_dlopen=yes
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872         ac_cv_func_dlopen=no
9873 fi
9874
9875 rm -f core conftest.err conftest.$ac_objext \
9876       conftest$ac_exeext conftest.$ac_ext
9877 fi
9878 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9879 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9880 if test $ac_cv_func_dlopen = yes; then
9881   lt_cv_dlopen="dlopen"
9882 else
9883   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9884 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   ac_check_lib_save_LIBS=$LIBS
9889 LIBS="-ldl  $LIBS"
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896
9897 /* Override any GCC internal prototype to avoid an error.
9898    Use char because int might match the return type of a GCC
9899    builtin and then its argument prototype would still apply.  */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char dlopen ();
9904 int
9905 main ()
9906 {
9907 return dlopen ();
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9914 case "(($ac_try" in
9915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916   *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919   (eval "$ac_link") 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } &&
9926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927   { (case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_try") 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; } &&
9936          { ac_try='test -s conftest$ac_exeext'
9937   { (case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_try") 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_cv_lib_dl_dlopen=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951         ac_cv_lib_dl_dlopen=no
9952 fi
9953
9954 rm -f core conftest.err conftest.$ac_objext \
9955       conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9957 fi
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9960 if test $ac_cv_lib_dl_dlopen = yes; then
9961   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9962 else
9963   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9964 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9965 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   ac_check_lib_save_LIBS=$LIBS
9969 LIBS="-lsvld  $LIBS"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978    Use char because int might match the return type of a GCC
9979    builtin and then its argument prototype would still apply.  */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char dlopen ();
9984 int
9985 main ()
9986 {
9987 return dlopen ();
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9994 case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_link") 2>conftest.er1
10000   ac_status=$?
10001   grep -v '^ *+' conftest.er1 >conftest.err
10002   rm -f conftest.er1
10003   cat conftest.err >&5
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } &&
10006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10007   { (case "(($ac_try" in
10008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009   *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012   (eval "$ac_try") 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; } &&
10016          { ac_try='test -s conftest$ac_exeext'
10017   { (case "(($ac_try" in
10018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019   *) ac_try_echo=$ac_try;;
10020 esac
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022   (eval "$ac_try") 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; }; then
10026   ac_cv_lib_svld_dlopen=yes
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031         ac_cv_lib_svld_dlopen=no
10032 fi
10033
10034 rm -f core conftest.err conftest.$ac_objext \
10035       conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10037 fi
10038 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10039 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10040 if test $ac_cv_lib_svld_dlopen = yes; then
10041   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10042 else
10043   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10044 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10045 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048   ac_check_lib_save_LIBS=$LIBS
10049 LIBS="-ldld  $LIBS"
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h.  */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h.  */
10056
10057 /* Override any GCC internal prototype to avoid an error.
10058    Use char because int might match the return type of a GCC
10059    builtin and then its argument prototype would still apply.  */
10060 #ifdef __cplusplus
10061 extern "C"
10062 #endif
10063 char dld_link ();
10064 int
10065 main ()
10066 {
10067 return dld_link ();
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (ac_try="$ac_link"
10074 case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079   (eval "$ac_link") 2>conftest.er1
10080   ac_status=$?
10081   grep -v '^ *+' conftest.er1 >conftest.err
10082   rm -f conftest.er1
10083   cat conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } &&
10086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10087   { (case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_try") 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; } &&
10096          { ac_try='test -s conftest$ac_exeext'
10097   { (case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102   (eval "$ac_try") 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; }; then
10106   ac_cv_lib_dld_dld_link=yes
10107 else
10108   echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10110
10111         ac_cv_lib_dld_dld_link=no
10112 fi
10113
10114 rm -f core conftest.err conftest.$ac_objext \
10115       conftest$ac_exeext conftest.$ac_ext
10116 LIBS=$ac_check_lib_save_LIBS
10117 fi
10118 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10119 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10120 if test $ac_cv_lib_dld_dld_link = yes; then
10121   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10122 fi
10123
10124
10125 fi
10126
10127
10128 fi
10129
10130
10131 fi
10132
10133
10134 fi
10135
10136
10137 fi
10138
10139     ;;
10140   esac
10141
10142   if test "x$lt_cv_dlopen" != xno; then
10143     enable_dlopen=yes
10144   else
10145     enable_dlopen=no
10146   fi
10147
10148   case $lt_cv_dlopen in
10149   dlopen)
10150     save_CPPFLAGS="$CPPFLAGS"
10151     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10152
10153     save_LDFLAGS="$LDFLAGS"
10154     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10155
10156     save_LIBS="$LIBS"
10157     LIBS="$lt_cv_dlopen_libs $LIBS"
10158
10159     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10160 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10161 if test "${lt_cv_dlopen_self+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164           if test "$cross_compiling" = yes; then :
10165   lt_cv_dlopen_self=cross
10166 else
10167   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10168   lt_status=$lt_dlunknown
10169   cat > conftest.$ac_ext <<EOF
10170 #line 10170 "configure"
10171 #include "confdefs.h"
10172
10173 #if HAVE_DLFCN_H
10174 #include <dlfcn.h>
10175 #endif
10176
10177 #include <stdio.h>
10178
10179 #ifdef RTLD_GLOBAL
10180 #  define LT_DLGLOBAL           RTLD_GLOBAL
10181 #else
10182 #  ifdef DL_GLOBAL
10183 #    define LT_DLGLOBAL         DL_GLOBAL
10184 #  else
10185 #    define LT_DLGLOBAL         0
10186 #  endif
10187 #endif
10188
10189 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10190    find out it does not work in some platform. */
10191 #ifndef LT_DLLAZY_OR_NOW
10192 #  ifdef RTLD_LAZY
10193 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10194 #  else
10195 #    ifdef DL_LAZY
10196 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10197 #    else
10198 #      ifdef RTLD_NOW
10199 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10200 #      else
10201 #        ifdef DL_NOW
10202 #          define LT_DLLAZY_OR_NOW      DL_NOW
10203 #        else
10204 #          define LT_DLLAZY_OR_NOW      0
10205 #        endif
10206 #      endif
10207 #    endif
10208 #  endif
10209 #endif
10210
10211 #ifdef __cplusplus
10212 extern "C" void exit (int);
10213 #endif
10214
10215 void fnord() { int i=42;}
10216 int main ()
10217 {
10218   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10219   int status = $lt_dlunknown;
10220
10221   if (self)
10222     {
10223       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10224       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10225       /* dlclose (self); */
10226     }
10227   else
10228     puts (dlerror ());
10229
10230     exit (status);
10231 }
10232 EOF
10233   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234   (eval $ac_link) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10238     (./conftest; exit; ) >&5 2>/dev/null
10239     lt_status=$?
10240     case x$lt_status in
10241       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10242       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10243       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10244     esac
10245   else :
10246     # compilation failed
10247     lt_cv_dlopen_self=no
10248   fi
10249 fi
10250 rm -fr conftest*
10251
10252
10253 fi
10254 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10255 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10256
10257     if test "x$lt_cv_dlopen_self" = xyes; then
10258       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10259       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10260 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10261 if test "${lt_cv_dlopen_self_static+set}" = set; then
10262   echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264           if test "$cross_compiling" = yes; then :
10265   lt_cv_dlopen_self_static=cross
10266 else
10267   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10268   lt_status=$lt_dlunknown
10269   cat > conftest.$ac_ext <<EOF
10270 #line 10270 "configure"
10271 #include "confdefs.h"
10272
10273 #if HAVE_DLFCN_H
10274 #include <dlfcn.h>
10275 #endif
10276
10277 #include <stdio.h>
10278
10279 #ifdef RTLD_GLOBAL
10280 #  define LT_DLGLOBAL           RTLD_GLOBAL
10281 #else
10282 #  ifdef DL_GLOBAL
10283 #    define LT_DLGLOBAL         DL_GLOBAL
10284 #  else
10285 #    define LT_DLGLOBAL         0
10286 #  endif
10287 #endif
10288
10289 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10290    find out it does not work in some platform. */
10291 #ifndef LT_DLLAZY_OR_NOW
10292 #  ifdef RTLD_LAZY
10293 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10294 #  else
10295 #    ifdef DL_LAZY
10296 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10297 #    else
10298 #      ifdef RTLD_NOW
10299 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10300 #      else
10301 #        ifdef DL_NOW
10302 #          define LT_DLLAZY_OR_NOW      DL_NOW
10303 #        else
10304 #          define LT_DLLAZY_OR_NOW      0
10305 #        endif
10306 #      endif
10307 #    endif
10308 #  endif
10309 #endif
10310
10311 #ifdef __cplusplus
10312 extern "C" void exit (int);
10313 #endif
10314
10315 void fnord() { int i=42;}
10316 int main ()
10317 {
10318   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10319   int status = $lt_dlunknown;
10320
10321   if (self)
10322     {
10323       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10324       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10325       /* dlclose (self); */
10326     }
10327   else
10328     puts (dlerror ());
10329
10330     exit (status);
10331 }
10332 EOF
10333   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334   (eval $ac_link) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10338     (./conftest; exit; ) >&5 2>/dev/null
10339     lt_status=$?
10340     case x$lt_status in
10341       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10342       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10343       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10344     esac
10345   else :
10346     # compilation failed
10347     lt_cv_dlopen_self_static=no
10348   fi
10349 fi
10350 rm -fr conftest*
10351
10352
10353 fi
10354 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10355 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10356     fi
10357
10358     CPPFLAGS="$save_CPPFLAGS"
10359     LDFLAGS="$save_LDFLAGS"
10360     LIBS="$save_LIBS"
10361     ;;
10362   esac
10363
10364   case $lt_cv_dlopen_self in
10365   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10366   *) enable_dlopen_self=unknown ;;
10367   esac
10368
10369   case $lt_cv_dlopen_self_static in
10370   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10371   *) enable_dlopen_self_static=unknown ;;
10372   esac
10373 fi
10374
10375
10376 # Report which library types will actually be built
10377 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10378 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10379 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10380 echo "${ECHO_T}$can_build_shared" >&6; }
10381
10382 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10383 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10384 test "$can_build_shared" = "no" && enable_shared=no
10385
10386 # On AIX, shared libraries and static libraries use the same namespace, and
10387 # are all built from PIC.
10388 case $host_os in
10389 aix3*)
10390   test "$enable_shared" = yes && enable_static=no
10391   if test -n "$RANLIB"; then
10392     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10393     postinstall_cmds='$RANLIB $lib'
10394   fi
10395   ;;
10396
10397 aix4* | aix5*)
10398   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10399     test "$enable_shared" = yes && enable_static=no
10400   fi
10401     ;;
10402 esac
10403 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10404 echo "${ECHO_T}$enable_shared" >&6; }
10405
10406 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10407 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10408 # Make sure either enable_shared or enable_static is yes.
10409 test "$enable_shared" = yes || enable_static=yes
10410 { echo "$as_me:$LINENO: result: $enable_static" >&5
10411 echo "${ECHO_T}$enable_static" >&6; }
10412
10413 # The else clause should only fire when bootstrapping the
10414 # libtool distribution, otherwise you forgot to ship ltmain.sh
10415 # with your package, and you will get complaints that there are
10416 # no rules to generate ltmain.sh.
10417 if test -f "$ltmain"; then
10418   # See if we are running on zsh, and set the options which allow our commands through
10419   # without removal of \ escapes.
10420   if test -n "${ZSH_VERSION+set}" ; then
10421     setopt NO_GLOB_SUBST
10422   fi
10423   # Now quote all the things that may contain metacharacters while being
10424   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10425   # variables and quote the copies for generation of the libtool script.
10426   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10427     SED SHELL STRIP \
10428     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10429     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10430     deplibs_check_method reload_flag reload_cmds need_locks \
10431     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10432     lt_cv_sys_global_symbol_to_c_name_address \
10433     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10434     old_postinstall_cmds old_postuninstall_cmds \
10435     compiler \
10436     CC \
10437     LD \
10438     lt_prog_compiler_wl \
10439     lt_prog_compiler_pic \
10440     lt_prog_compiler_static \
10441     lt_prog_compiler_no_builtin_flag \
10442     export_dynamic_flag_spec \
10443     thread_safe_flag_spec \
10444     whole_archive_flag_spec \
10445     enable_shared_with_static_runtimes \
10446     old_archive_cmds \
10447     old_archive_from_new_cmds \
10448     predep_objects \
10449     postdep_objects \
10450     predeps \
10451     postdeps \
10452     compiler_lib_search_path \
10453     archive_cmds \
10454     archive_expsym_cmds \
10455     postinstall_cmds \
10456     postuninstall_cmds \
10457     old_archive_from_expsyms_cmds \
10458     allow_undefined_flag \
10459     no_undefined_flag \
10460     export_symbols_cmds \
10461     hardcode_libdir_flag_spec \
10462     hardcode_libdir_flag_spec_ld \
10463     hardcode_libdir_separator \
10464     hardcode_automatic \
10465     module_cmds \
10466     module_expsym_cmds \
10467     lt_cv_prog_compiler_c_o \
10468     exclude_expsyms \
10469     include_expsyms; do
10470
10471     case $var in
10472     old_archive_cmds | \
10473     old_archive_from_new_cmds | \
10474     archive_cmds | \
10475     archive_expsym_cmds | \
10476     module_cmds | \
10477     module_expsym_cmds | \
10478     old_archive_from_expsyms_cmds | \
10479     export_symbols_cmds | \
10480     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10481     postinstall_cmds | postuninstall_cmds | \
10482     old_postinstall_cmds | old_postuninstall_cmds | \
10483     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10484       # Double-quote double-evaled strings.
10485       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10486       ;;
10487     *)
10488       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10489       ;;
10490     esac
10491   done
10492
10493   case $lt_echo in
10494   *'\$0 --fallback-echo"')
10495     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10496     ;;
10497   esac
10498
10499 cfgfile="${ofile}T"
10500   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10501   $rm -f "$cfgfile"
10502   { echo "$as_me:$LINENO: creating $ofile" >&5
10503 echo "$as_me: creating $ofile" >&6;}
10504
10505   cat <<__EOF__ >> "$cfgfile"
10506 #! $SHELL
10507
10508 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10509 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10510 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10511 #
10512 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10513 # Free Software Foundation, Inc.
10514 #
10515 # This file is part of GNU Libtool:
10516 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10517 #
10518 # This program is free software; you can redistribute it and/or modify
10519 # it under the terms of the GNU General Public License as published by
10520 # the Free Software Foundation; either version 2 of the License, or
10521 # (at your option) any later version.
10522 #
10523 # This program is distributed in the hope that it will be useful, but
10524 # WITHOUT ANY WARRANTY; without even the implied warranty of
10525 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10526 # General Public License for more details.
10527 #
10528 # You should have received a copy of the GNU General Public License
10529 # along with this program; if not, write to the Free Software
10530 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10531 #
10532 # As a special exception to the GNU General Public License, if you
10533 # distribute this file as part of a program that contains a
10534 # configuration script generated by Autoconf, you may include it under
10535 # the same distribution terms that you use for the rest of that program.
10536
10537 # A sed program that does not truncate output.
10538 SED=$lt_SED
10539
10540 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10541 Xsed="$SED -e 1s/^X//"
10542
10543 # The HP-UX ksh and POSIX shell print the target directory to stdout
10544 # if CDPATH is set.
10545 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10546
10547 # The names of the tagged configurations supported by this script.
10548 available_tags=
10549
10550 # ### BEGIN LIBTOOL CONFIG
10551
10552 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10553
10554 # Shell to use when invoking shell scripts.
10555 SHELL=$lt_SHELL
10556
10557 # Whether or not to build shared libraries.
10558 build_libtool_libs=$enable_shared
10559
10560 # Whether or not to build static libraries.
10561 build_old_libs=$enable_static
10562
10563 # Whether or not to add -lc for building shared libraries.
10564 build_libtool_need_lc=$archive_cmds_need_lc
10565
10566 # Whether or not to disallow shared libs when runtime libs are static
10567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10568
10569 # Whether or not to optimize for fast installation.
10570 fast_install=$enable_fast_install
10571
10572 # The host system.
10573 host_alias=$host_alias
10574 host=$host
10575 host_os=$host_os
10576
10577 # The build system.
10578 build_alias=$build_alias
10579 build=$build
10580 build_os=$build_os
10581
10582 # An echo program that does not interpret backslashes.
10583 echo=$lt_echo
10584
10585 # The archiver.
10586 AR=$lt_AR
10587 AR_FLAGS=$lt_AR_FLAGS
10588
10589 # A C compiler.
10590 LTCC=$lt_LTCC
10591
10592 # LTCC compiler flags.
10593 LTCFLAGS=$lt_LTCFLAGS
10594
10595 # A language-specific compiler.
10596 CC=$lt_compiler
10597
10598 # Is the compiler the GNU C compiler?
10599 with_gcc=$GCC
10600
10601 # An ERE matcher.
10602 EGREP=$lt_EGREP
10603
10604 # The linker used to build libraries.
10605 LD=$lt_LD
10606
10607 # Whether we need hard or soft links.
10608 LN_S=$lt_LN_S
10609
10610 # A BSD-compatible nm program.
10611 NM=$lt_NM
10612
10613 # A symbol stripping program
10614 STRIP=$lt_STRIP
10615
10616 # Used to examine libraries when file_magic_cmd begins "file"
10617 MAGIC_CMD=$MAGIC_CMD
10618
10619 # Used on cygwin: DLL creation program.
10620 DLLTOOL="$DLLTOOL"
10621
10622 # Used on cygwin: object dumper.
10623 OBJDUMP="$OBJDUMP"
10624
10625 # Used on cygwin: assembler.
10626 AS="$AS"
10627
10628 # The name of the directory that contains temporary libtool files.
10629 objdir=$objdir
10630
10631 # How to create reloadable object files.
10632 reload_flag=$lt_reload_flag
10633 reload_cmds=$lt_reload_cmds
10634
10635 # How to pass a linker flag through the compiler.
10636 wl=$lt_lt_prog_compiler_wl
10637
10638 # Object file suffix (normally "o").
10639 objext="$ac_objext"
10640
10641 # Old archive suffix (normally "a").
10642 libext="$libext"
10643
10644 # Shared library suffix (normally ".so").
10645 shrext_cmds='$shrext_cmds'
10646
10647 # Executable file suffix (normally "").
10648 exeext="$exeext"
10649
10650 # Additional compiler flags for building library objects.
10651 pic_flag=$lt_lt_prog_compiler_pic
10652 pic_mode=$pic_mode
10653
10654 # What is the maximum length of a command?
10655 max_cmd_len=$lt_cv_sys_max_cmd_len
10656
10657 # Does compiler simultaneously support -c and -o options?
10658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10659
10660 # Must we lock files when doing compilation?
10661 need_locks=$lt_need_locks
10662
10663 # Do we need the lib prefix for modules?
10664 need_lib_prefix=$need_lib_prefix
10665
10666 # Do we need a version for libraries?
10667 need_version=$need_version
10668
10669 # Whether dlopen is supported.
10670 dlopen_support=$enable_dlopen
10671
10672 # Whether dlopen of programs is supported.
10673 dlopen_self=$enable_dlopen_self
10674
10675 # Whether dlopen of statically linked programs is supported.
10676 dlopen_self_static=$enable_dlopen_self_static
10677
10678 # Compiler flag to prevent dynamic linking.
10679 link_static_flag=$lt_lt_prog_compiler_static
10680
10681 # Compiler flag to turn off builtin functions.
10682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10683
10684 # Compiler flag to allow reflexive dlopens.
10685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10686
10687 # Compiler flag to generate shared objects directly from archives.
10688 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10689
10690 # Compiler flag to generate thread-safe objects.
10691 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10692
10693 # Library versioning type.
10694 version_type=$version_type
10695
10696 # Format of library name prefix.
10697 libname_spec=$lt_libname_spec
10698
10699 # List of archive names.  First name is the real one, the rest are links.
10700 # The last name is the one that the linker finds with -lNAME.
10701 library_names_spec=$lt_library_names_spec
10702
10703 # The coded name of the library, if different from the real name.
10704 soname_spec=$lt_soname_spec
10705
10706 # Commands used to build and install an old-style archive.
10707 RANLIB=$lt_RANLIB
10708 old_archive_cmds=$lt_old_archive_cmds
10709 old_postinstall_cmds=$lt_old_postinstall_cmds
10710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10711
10712 # Create an old-style archive from a shared archive.
10713 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10714
10715 # Create a temporary old-style archive to link instead of a shared archive.
10716 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10717
10718 # Commands used to build and install a shared archive.
10719 archive_cmds=$lt_archive_cmds
10720 archive_expsym_cmds=$lt_archive_expsym_cmds
10721 postinstall_cmds=$lt_postinstall_cmds
10722 postuninstall_cmds=$lt_postuninstall_cmds
10723
10724 # Commands used to build a loadable module (assumed same as above if empty)
10725 module_cmds=$lt_module_cmds
10726 module_expsym_cmds=$lt_module_expsym_cmds
10727
10728 # Commands to strip libraries.
10729 old_striplib=$lt_old_striplib
10730 striplib=$lt_striplib
10731
10732 # Dependencies to place before the objects being linked to create a
10733 # shared library.
10734 predep_objects=$lt_predep_objects
10735
10736 # Dependencies to place after the objects being linked to create a
10737 # shared library.
10738 postdep_objects=$lt_postdep_objects
10739
10740 # Dependencies to place before the objects being linked to create a
10741 # shared library.
10742 predeps=$lt_predeps
10743
10744 # Dependencies to place after the objects being linked to create a
10745 # shared library.
10746 postdeps=$lt_postdeps
10747
10748 # The library search path used internally by the compiler when linking
10749 # a shared library.
10750 compiler_lib_search_path=$lt_compiler_lib_search_path
10751
10752 # Method to check whether dependent libraries are shared objects.
10753 deplibs_check_method=$lt_deplibs_check_method
10754
10755 # Command to use when deplibs_check_method == file_magic.
10756 file_magic_cmd=$lt_file_magic_cmd
10757
10758 # Flag that allows shared libraries with undefined symbols to be built.
10759 allow_undefined_flag=$lt_allow_undefined_flag
10760
10761 # Flag that forces no undefined symbols.
10762 no_undefined_flag=$lt_no_undefined_flag
10763
10764 # Commands used to finish a libtool library installation in a directory.
10765 finish_cmds=$lt_finish_cmds
10766
10767 # Same as above, but a single script fragment to be evaled but not shown.
10768 finish_eval=$lt_finish_eval
10769
10770 # Take the output of nm and produce a listing of raw symbols and C names.
10771 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10772
10773 # Transform the output of nm in a proper C declaration
10774 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10775
10776 # Transform the output of nm in a C name address pair
10777 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10778
10779 # This is the shared library runtime path variable.
10780 runpath_var=$runpath_var
10781
10782 # This is the shared library path variable.
10783 shlibpath_var=$shlibpath_var
10784
10785 # Is shlibpath searched before the hard-coded library search path?
10786 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10787
10788 # How to hardcode a shared library path into an executable.
10789 hardcode_action=$hardcode_action
10790
10791 # Whether we should hardcode library paths into libraries.
10792 hardcode_into_libs=$hardcode_into_libs
10793
10794 # Flag to hardcode \$libdir into a binary during linking.
10795 # This must work even if \$libdir does not exist.
10796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10797
10798 # If ld is used when linking, flag to hardcode \$libdir into
10799 # a binary during linking. This must work even if \$libdir does
10800 # not exist.
10801 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10802
10803 # Whether we need a single -rpath flag with a separated argument.
10804 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10805
10806 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10807 # resulting binary.
10808 hardcode_direct=$hardcode_direct
10809
10810 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10811 # resulting binary.
10812 hardcode_minus_L=$hardcode_minus_L
10813
10814 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10815 # the resulting binary.
10816 hardcode_shlibpath_var=$hardcode_shlibpath_var
10817
10818 # Set to yes if building a shared library automatically hardcodes DIR into the library
10819 # and all subsequent libraries and executables linked against it.
10820 hardcode_automatic=$hardcode_automatic
10821
10822 # Variables whose values should be saved in libtool wrapper scripts and
10823 # restored at relink time.
10824 variables_saved_for_relink="$variables_saved_for_relink"
10825
10826 # Whether libtool must link a program against all its dependency libraries.
10827 link_all_deplibs=$link_all_deplibs
10828
10829 # Compile-time system search path for libraries
10830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10831
10832 # Run-time system search path for libraries
10833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10834
10835 # Fix the shell variable \$srcfile for the compiler.
10836 fix_srcfile_path="$fix_srcfile_path"
10837
10838 # Set to yes if exported symbols are required.
10839 always_export_symbols=$always_export_symbols
10840
10841 # The commands to list exported symbols.
10842 export_symbols_cmds=$lt_export_symbols_cmds
10843
10844 # The commands to extract the exported symbol list from a shared archive.
10845 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10846
10847 # Symbols that should not be listed in the preloaded symbols.
10848 exclude_expsyms=$lt_exclude_expsyms
10849
10850 # Symbols that must always be exported.
10851 include_expsyms=$lt_include_expsyms
10852
10853 # ### END LIBTOOL CONFIG
10854
10855 __EOF__
10856
10857
10858   case $host_os in
10859   aix3*)
10860     cat <<\EOF >> "$cfgfile"
10861
10862 # AIX sometimes has problems with the GCC collect2 program.  For some
10863 # reason, if we set the COLLECT_NAMES environment variable, the problems
10864 # vanish in a puff of smoke.
10865 if test "X${COLLECT_NAMES+set}" != Xset; then
10866   COLLECT_NAMES=
10867   export COLLECT_NAMES
10868 fi
10869 EOF
10870     ;;
10871   esac
10872
10873   # We use sed instead of cat because bash on DJGPP gets confused if
10874   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10875   # text mode, it properly converts lines to CR/LF.  This bash problem
10876   # is reportedly fixed, but why not run on old versions too?
10877   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10878
10879   mv -f "$cfgfile" "$ofile" || \
10880     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10881   chmod +x "$ofile"
10882
10883 else
10884   # If there is no Makefile yet, we rely on a make rule to execute
10885   # `config.status --recheck' to rerun these tests and create the
10886   # libtool script then.
10887   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10888   if test -f "$ltmain_in"; then
10889     test -f Makefile && make "$ltmain"
10890   fi
10891 fi
10892
10893
10894 ac_ext=c
10895 ac_cpp='$CPP $CPPFLAGS'
10896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10899
10900 CC="$lt_save_CC"
10901
10902
10903 # Check whether --with-tags was given.
10904 if test "${with_tags+set}" = set; then
10905   withval=$with_tags; tagnames="$withval"
10906 fi
10907
10908
10909 if test -f "$ltmain" && test -n "$tagnames"; then
10910   if test ! -f "${ofile}"; then
10911     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10912 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10913   fi
10914
10915   if test -z "$LTCC"; then
10916     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10917     if test -z "$LTCC"; then
10918       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10919 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10920     else
10921       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10922 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10923     fi
10924   fi
10925   if test -z "$LTCFLAGS"; then
10926     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10927   fi
10928
10929   # Extract list of available tagged configurations in $ofile.
10930   # Note that this assumes the entire list is on one line.
10931   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10932
10933   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10934   for tagname in $tagnames; do
10935     IFS="$lt_save_ifs"
10936     # Check whether tagname contains only valid characters
10937     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10938     "") ;;
10939     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10940 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10941    { (exit 1); exit 1; }; }
10942         ;;
10943     esac
10944
10945     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10946     then
10947       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10948 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10949    { (exit 1); exit 1; }; }
10950     fi
10951
10952     # Update the list of available tags.
10953     if test -n "$tagname"; then
10954       echo appending configuration tag \"$tagname\" to $ofile
10955
10956       case $tagname in
10957       CXX)
10958         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10959             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10960             (test "X$CXX" != "Xg++"))) ; then
10961           ac_ext=cpp
10962 ac_cpp='$CXXCPP $CPPFLAGS'
10963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10966
10967
10968
10969
10970 archive_cmds_need_lc_CXX=no
10971 allow_undefined_flag_CXX=
10972 always_export_symbols_CXX=no
10973 archive_expsym_cmds_CXX=
10974 export_dynamic_flag_spec_CXX=
10975 hardcode_direct_CXX=no
10976 hardcode_libdir_flag_spec_CXX=
10977 hardcode_libdir_flag_spec_ld_CXX=
10978 hardcode_libdir_separator_CXX=
10979 hardcode_minus_L_CXX=no
10980 hardcode_shlibpath_var_CXX=unsupported
10981 hardcode_automatic_CXX=no
10982 module_cmds_CXX=
10983 module_expsym_cmds_CXX=
10984 link_all_deplibs_CXX=unknown
10985 old_archive_cmds_CXX=$old_archive_cmds
10986 no_undefined_flag_CXX=
10987 whole_archive_flag_spec_CXX=
10988 enable_shared_with_static_runtimes_CXX=no
10989
10990 # Dependencies to place before and after the object being linked:
10991 predep_objects_CXX=
10992 postdep_objects_CXX=
10993 predeps_CXX=
10994 postdeps_CXX=
10995 compiler_lib_search_path_CXX=
10996
10997 # Source file extension for C++ test sources.
10998 ac_ext=cpp
10999
11000 # Object file extension for compiled C++ test sources.
11001 objext=o
11002 objext_CXX=$objext
11003
11004 # Code to be used in simple compile tests
11005 lt_simple_compile_test_code="int some_variable = 0;\n"
11006
11007 # Code to be used in simple link tests
11008 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11009
11010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11011
11012 # If no C compiler was specified, use CC.
11013 LTCC=${LTCC-"$CC"}
11014
11015 # If no C compiler flags were specified, use CFLAGS.
11016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11017
11018 # Allow CC to be a program name with arguments.
11019 compiler=$CC
11020
11021
11022 # save warnings/boilerplate of simple test code
11023 ac_outfile=conftest.$ac_objext
11024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11026 _lt_compiler_boilerplate=`cat conftest.err`
11027 $rm conftest*
11028
11029 ac_outfile=conftest.$ac_objext
11030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11032 _lt_linker_boilerplate=`cat conftest.err`
11033 $rm conftest*
11034
11035
11036 # Allow CC to be a program name with arguments.
11037 lt_save_CC=$CC
11038 lt_save_LD=$LD
11039 lt_save_GCC=$GCC
11040 GCC=$GXX
11041 lt_save_with_gnu_ld=$with_gnu_ld
11042 lt_save_path_LD=$lt_cv_path_LD
11043 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11044   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11045 else
11046   $as_unset lt_cv_prog_gnu_ld
11047 fi
11048 if test -n "${lt_cv_path_LDCXX+set}"; then
11049   lt_cv_path_LD=$lt_cv_path_LDCXX
11050 else
11051   $as_unset lt_cv_path_LD
11052 fi
11053 test -z "${LDCXX+set}" || LD=$LDCXX
11054 CC=${CXX-"c++"}
11055 compiler=$CC
11056 compiler_CXX=$CC
11057 for cc_temp in $compiler""; do
11058   case $cc_temp in
11059     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11060     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11061     \-*) ;;
11062     *) break;;
11063   esac
11064 done
11065 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11066
11067
11068 # We don't want -fno-exception wen compiling C++ code, so set the
11069 # no_builtin_flag separately
11070 if test "$GXX" = yes; then
11071   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11072 else
11073   lt_prog_compiler_no_builtin_flag_CXX=
11074 fi
11075
11076 if test "$GXX" = yes; then
11077   # Set up default GNU C++ configuration
11078
11079
11080 # Check whether --with-gnu-ld was given.
11081 if test "${with_gnu_ld+set}" = set; then
11082   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11083 else
11084   with_gnu_ld=no
11085 fi
11086
11087 ac_prog=ld
11088 if test "$GCC" = yes; then
11089   # Check if gcc -print-prog-name=ld gives a path.
11090   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11092   case $host in
11093   *-*-mingw*)
11094     # gcc leaves a trailing carriage return which upsets mingw
11095     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11096   *)
11097     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11098   esac
11099   case $ac_prog in
11100     # Accept absolute paths.
11101     [\\/]* | ?:[\\/]*)
11102       re_direlt='/[^/][^/]*/\.\./'
11103       # Canonicalize the pathname of ld
11104       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11105       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11106         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11107       done
11108       test -z "$LD" && LD="$ac_prog"
11109       ;;
11110   "")
11111     # If it fails, then pretend we aren't using GCC.
11112     ac_prog=ld
11113     ;;
11114   *)
11115     # If it is relative, then search for the first ld in PATH.
11116     with_gnu_ld=unknown
11117     ;;
11118   esac
11119 elif test "$with_gnu_ld" = yes; then
11120   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11122 else
11123   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11125 fi
11126 if test "${lt_cv_path_LD+set}" = set; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129   if test -z "$LD"; then
11130   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11131   for ac_dir in $PATH; do
11132     IFS="$lt_save_ifs"
11133     test -z "$ac_dir" && ac_dir=.
11134     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11135       lt_cv_path_LD="$ac_dir/$ac_prog"
11136       # Check to see if the program is GNU ld.  I'd rather use --version,
11137       # but apparently some variants of GNU ld only accept -v.
11138       # Break only if it was the GNU/non-GNU ld that we prefer.
11139       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11140       *GNU* | *'with BFD'*)
11141         test "$with_gnu_ld" != no && break
11142         ;;
11143       *)
11144         test "$with_gnu_ld" != yes && break
11145         ;;
11146       esac
11147     fi
11148   done
11149   IFS="$lt_save_ifs"
11150 else
11151   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11152 fi
11153 fi
11154
11155 LD="$lt_cv_path_LD"
11156 if test -n "$LD"; then
11157   { echo "$as_me:$LINENO: result: $LD" >&5
11158 echo "${ECHO_T}$LD" >&6; }
11159 else
11160   { echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6; }
11162 fi
11163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11165    { (exit 1); exit 1; }; }
11166 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11169   echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11172 case `$LD -v 2>&1 </dev/null` in
11173 *GNU* | *'with BFD'*)
11174   lt_cv_prog_gnu_ld=yes
11175   ;;
11176 *)
11177   lt_cv_prog_gnu_ld=no
11178   ;;
11179 esac
11180 fi
11181 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11183 with_gnu_ld=$lt_cv_prog_gnu_ld
11184
11185
11186
11187   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11188   # archiving commands below assume that GNU ld is being used.
11189   if test "$with_gnu_ld" = yes; then
11190     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11191     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'
11192
11193     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11194     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11195
11196     # If archive_cmds runs LD, not CC, wlarc should be empty
11197     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11198     #     investigate it a little bit more. (MM)
11199     wlarc='${wl}'
11200
11201     # ancient GNU ld didn't support --whole-archive et. al.
11202     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11203         grep 'no-whole-archive' > /dev/null; then
11204       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11205     else
11206       whole_archive_flag_spec_CXX=
11207     fi
11208   else
11209     with_gnu_ld=no
11210     wlarc=
11211
11212     # A generic and very simple default shared library creation
11213     # command for GNU C++ for the case where it uses the native
11214     # linker, instead of GNU ld.  If possible, this setting should
11215     # overridden to take advantage of the native linker features on
11216     # the platform it is being used on.
11217     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11218   fi
11219
11220   # Commands to make compiler produce verbose output that lists
11221   # what "hidden" libraries, object files and flags are used when
11222   # linking a shared library.
11223   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11224
11225 else
11226   GXX=no
11227   with_gnu_ld=no
11228   wlarc=
11229 fi
11230
11231 # PORTME: fill in a description of your system's C++ link characteristics
11232 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11233 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11234 ld_shlibs_CXX=yes
11235 case $host_os in
11236   aix3*)
11237     # FIXME: insert proper C++ library support
11238     ld_shlibs_CXX=no
11239     ;;
11240   aix4* | aix5*)
11241     if test "$host_cpu" = ia64; then
11242       # On IA64, the linker does run time linking by default, so we don't
11243       # have to do anything special.
11244       aix_use_runtimelinking=no
11245       exp_sym_flag='-Bexport'
11246       no_entry_flag=""
11247     else
11248       aix_use_runtimelinking=no
11249
11250       # Test if we are trying to use run time linking or normal
11251       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11252       # need to do runtime linking.
11253       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11254         for ld_flag in $LDFLAGS; do
11255           case $ld_flag in
11256           *-brtl*)
11257             aix_use_runtimelinking=yes
11258             break
11259             ;;
11260           esac
11261         done
11262         ;;
11263       esac
11264
11265       exp_sym_flag='-bexport'
11266       no_entry_flag='-bnoentry'
11267     fi
11268
11269     # When large executables or shared objects are built, AIX ld can
11270     # have problems creating the table of contents.  If linking a library
11271     # or program results in "error TOC overflow" add -mminimal-toc to
11272     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11273     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11274
11275     archive_cmds_CXX=''
11276     hardcode_direct_CXX=yes
11277     hardcode_libdir_separator_CXX=':'
11278     link_all_deplibs_CXX=yes
11279
11280     if test "$GXX" = yes; then
11281       case $host_os in aix4.[012]|aix4.[012].*)
11282       # We only want to do this on AIX 4.2 and lower, the check
11283       # below for broken collect2 doesn't work under 4.3+
11284         collect2name=`${CC} -print-prog-name=collect2`
11285         if test -f "$collect2name" && \
11286            strings "$collect2name" | grep resolve_lib_name >/dev/null
11287         then
11288           # We have reworked collect2
11289           hardcode_direct_CXX=yes
11290         else
11291           # We have old collect2
11292           hardcode_direct_CXX=unsupported
11293           # It fails to find uninstalled libraries when the uninstalled
11294           # path is not listed in the libpath.  Setting hardcode_minus_L
11295           # to unsupported forces relinking
11296           hardcode_minus_L_CXX=yes
11297           hardcode_libdir_flag_spec_CXX='-L$libdir'
11298           hardcode_libdir_separator_CXX=
11299         fi
11300         ;;
11301       esac
11302       shared_flag='-shared'
11303       if test "$aix_use_runtimelinking" = yes; then
11304         shared_flag="$shared_flag "'${wl}-G'
11305       fi
11306     else
11307       # not using gcc
11308       if test "$host_cpu" = ia64; then
11309         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11310         # chokes on -Wl,-G. The following line is correct:
11311         shared_flag='-G'
11312       else
11313         if test "$aix_use_runtimelinking" = yes; then
11314           shared_flag='${wl}-G'
11315         else
11316           shared_flag='${wl}-bM:SRE'
11317         fi
11318       fi
11319     fi
11320
11321     # It seems that -bexpall does not export symbols beginning with
11322     # underscore (_), so it is better to generate a list of symbols to export.
11323     always_export_symbols_CXX=yes
11324     if test "$aix_use_runtimelinking" = yes; then
11325       # Warning - without using the other runtime loading flags (-brtl),
11326       # -berok will link without error, but may produce a broken library.
11327       allow_undefined_flag_CXX='-berok'
11328       # Determine the default libpath from the value encoded in an empty executable.
11329       cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335
11336 int
11337 main ()
11338 {
11339
11340   ;
11341   return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (ac_try="$ac_link"
11346 case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_link") 2>conftest.er1
11352   ac_status=$?
11353   grep -v '^ *+' conftest.er1 >conftest.err
11354   rm -f conftest.er1
11355   cat conftest.err >&5
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } &&
11358          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11359   { (case "(($ac_try" in
11360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361   *) ac_try_echo=$ac_try;;
11362 esac
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364   (eval "$ac_try") 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; } &&
11368          { ac_try='test -s conftest$ac_exeext'
11369   { (case "(($ac_try" in
11370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371   *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374   (eval "$ac_try") 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; }; then
11378
11379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11380 }'`
11381 # Check for a 64-bit object if we didn't find anything.
11382 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11383 }'`; fi
11384 else
11385   echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388
11389 fi
11390
11391 rm -f core conftest.err conftest.$ac_objext \
11392       conftest$ac_exeext conftest.$ac_ext
11393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11394
11395       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11396
11397       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"
11398      else
11399       if test "$host_cpu" = ia64; then
11400         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11401         allow_undefined_flag_CXX="-z nodefs"
11402         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"
11403       else
11404         # Determine the default libpath from the value encoded in an empty executable.
11405         cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411
11412 int
11413 main ()
11414 {
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (ac_try="$ac_link"
11422 case "(($ac_try" in
11423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424   *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427   (eval "$ac_link") 2>conftest.er1
11428   ac_status=$?
11429   grep -v '^ *+' conftest.er1 >conftest.err
11430   rm -f conftest.er1
11431   cat conftest.err >&5
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } &&
11434          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11435   { (case "(($ac_try" in
11436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437   *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440   (eval "$ac_try") 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; } &&
11444          { ac_try='test -s conftest$ac_exeext'
11445   { (case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_try") 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; }; then
11454
11455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11456 }'`
11457 # Check for a 64-bit object if we didn't find anything.
11458 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11459 }'`; fi
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464
11465 fi
11466
11467 rm -f core conftest.err conftest.$ac_objext \
11468       conftest$ac_exeext conftest.$ac_ext
11469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11470
11471         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11472         # Warning - without using the other run time loading flags,
11473         # -berok will link without error, but may produce a broken library.
11474         no_undefined_flag_CXX=' ${wl}-bernotok'
11475         allow_undefined_flag_CXX=' ${wl}-berok'
11476         # Exported symbols can be pulled into shared objects from archives
11477         whole_archive_flag_spec_CXX='$convenience'
11478         archive_cmds_need_lc_CXX=yes
11479         # This is similar to how AIX traditionally builds its shared libraries.
11480         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'
11481       fi
11482     fi
11483     ;;
11484
11485   beos*)
11486     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11487       allow_undefined_flag_CXX=unsupported
11488       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11489       # support --undefined.  This deserves some investigation.  FIXME
11490       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11491     else
11492       ld_shlibs_CXX=no
11493     fi
11494     ;;
11495
11496   chorus*)
11497     case $cc_basename in
11498       *)
11499         # FIXME: insert proper C++ library support
11500         ld_shlibs_CXX=no
11501         ;;
11502     esac
11503     ;;
11504
11505   cygwin* | mingw* | pw32*)
11506     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11507     # as there is no search path for DLLs.
11508     hardcode_libdir_flag_spec_CXX='-L$libdir'
11509     allow_undefined_flag_CXX=unsupported
11510     always_export_symbols_CXX=no
11511     enable_shared_with_static_runtimes_CXX=yes
11512
11513     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11514       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'
11515       # If the export-symbols file already is a .def file (1st line
11516       # is EXPORTS), use it as is; otherwise, prepend...
11517       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11518         cp $export_symbols $output_objdir/$soname.def;
11519       else
11520         echo EXPORTS > $output_objdir/$soname.def;
11521         cat $export_symbols >> $output_objdir/$soname.def;
11522       fi~
11523       $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'
11524     else
11525       ld_shlibs_CXX=no
11526     fi
11527   ;;
11528       darwin* | rhapsody*)
11529         case $host_os in
11530         rhapsody* | darwin1.[012])
11531          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11532          ;;
11533        *) # Darwin 1.3 on
11534          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11535            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11536          else
11537            case ${MACOSX_DEPLOYMENT_TARGET} in
11538              10.[012])
11539                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11540                ;;
11541              10.*)
11542                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11543                ;;
11544            esac
11545          fi
11546          ;;
11547         esac
11548       archive_cmds_need_lc_CXX=no
11549       hardcode_direct_CXX=no
11550       hardcode_automatic_CXX=yes
11551       hardcode_shlibpath_var_CXX=unsupported
11552       whole_archive_flag_spec_CXX=''
11553       link_all_deplibs_CXX=yes
11554
11555     if test "$GXX" = yes ; then
11556       lt_int_apple_cc_single_mod=no
11557       output_verbose_link_cmd='echo'
11558       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11559        lt_int_apple_cc_single_mod=yes
11560       fi
11561       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11562        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11563       else
11564           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'
11565         fi
11566         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11567         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11568           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11569             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11570           else
11571             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11572           fi
11573             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}'
11574       else
11575       case $cc_basename in
11576         xlc*)
11577          output_verbose_link_cmd='echo'
11578           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11579           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11580           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11581           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11582           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}'
11583           ;;
11584        *)
11585          ld_shlibs_CXX=no
11586           ;;
11587       esac
11588       fi
11589         ;;
11590
11591   dgux*)
11592     case $cc_basename in
11593       ec++*)
11594         # FIXME: insert proper C++ library support
11595         ld_shlibs_CXX=no
11596         ;;
11597       ghcx*)
11598         # Green Hills C++ Compiler
11599         # FIXME: insert proper C++ library support
11600         ld_shlibs_CXX=no
11601         ;;
11602       *)
11603         # FIXME: insert proper C++ library support
11604         ld_shlibs_CXX=no
11605         ;;
11606     esac
11607     ;;
11608   freebsd[12]*)
11609     # C++ shared libraries reported to be fairly broken before switch to ELF
11610     ld_shlibs_CXX=no
11611     ;;
11612   freebsd-elf*)
11613     archive_cmds_need_lc_CXX=no
11614     ;;
11615   freebsd* | kfreebsd*-gnu | dragonfly*)
11616     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11617     # conventions
11618     ld_shlibs_CXX=yes
11619     ;;
11620   gnu*)
11621     ;;
11622   hpux9*)
11623     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11624     hardcode_libdir_separator_CXX=:
11625     export_dynamic_flag_spec_CXX='${wl}-E'
11626     hardcode_direct_CXX=yes
11627     hardcode_minus_L_CXX=yes # Not in the search PATH,
11628                                 # but as the default
11629                                 # location of the library.
11630
11631     case $cc_basename in
11632     CC*)
11633       # FIXME: insert proper C++ library support
11634       ld_shlibs_CXX=no
11635       ;;
11636     aCC*)
11637       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'
11638       # Commands to make compiler produce verbose output that lists
11639       # what "hidden" libraries, object files and flags are used when
11640       # linking a shared library.
11641       #
11642       # There doesn't appear to be a way to prevent this compiler from
11643       # explicitly linking system object files so we need to strip them
11644       # from the output so that they don't get included in the library
11645       # dependencies.
11646       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'
11647       ;;
11648     *)
11649       if test "$GXX" = yes; then
11650         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'
11651       else
11652         # FIXME: insert proper C++ library support
11653         ld_shlibs_CXX=no
11654       fi
11655       ;;
11656     esac
11657     ;;
11658   hpux10*|hpux11*)
11659     if test $with_gnu_ld = no; then
11660       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11661       hardcode_libdir_separator_CXX=:
11662
11663       case $host_cpu in
11664       hppa*64*|ia64*)
11665         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11666         ;;
11667       *)
11668         export_dynamic_flag_spec_CXX='${wl}-E'
11669         ;;
11670       esac
11671     fi
11672     case $host_cpu in
11673     hppa*64*|ia64*)
11674       hardcode_direct_CXX=no
11675       hardcode_shlibpath_var_CXX=no
11676       ;;
11677     *)
11678       hardcode_direct_CXX=yes
11679       hardcode_minus_L_CXX=yes # Not in the search PATH,
11680                                               # but as the default
11681                                               # location of the library.
11682       ;;
11683     esac
11684
11685     case $cc_basename in
11686       CC*)
11687         # FIXME: insert proper C++ library support
11688         ld_shlibs_CXX=no
11689         ;;
11690       aCC*)
11691         case $host_cpu in
11692         hppa*64*)
11693           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694           ;;
11695         ia64*)
11696           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697           ;;
11698         *)
11699           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700           ;;
11701         esac
11702         # Commands to make compiler produce verbose output that lists
11703         # what "hidden" libraries, object files and flags are used when
11704         # linking a shared library.
11705         #
11706         # There doesn't appear to be a way to prevent this compiler from
11707         # explicitly linking system object files so we need to strip them
11708         # from the output so that they don't get included in the library
11709         # dependencies.
11710         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'
11711         ;;
11712       *)
11713         if test "$GXX" = yes; then
11714           if test $with_gnu_ld = no; then
11715             case $host_cpu in
11716             hppa*64*)
11717               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718               ;;
11719             ia64*)
11720               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721               ;;
11722             *)
11723               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'
11724               ;;
11725             esac
11726           fi
11727         else
11728           # FIXME: insert proper C++ library support
11729           ld_shlibs_CXX=no
11730         fi
11731         ;;
11732     esac
11733     ;;
11734   interix3*)
11735     hardcode_direct_CXX=no
11736     hardcode_shlibpath_var_CXX=no
11737     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738     export_dynamic_flag_spec_CXX='${wl}-E'
11739     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11740     # Instead, shared libraries are loaded at an image base (0x10000000 by
11741     # default) and relocated if they conflict, which is a slow very memory
11742     # consuming and fragmenting process.  To avoid this, we pick a random,
11743     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11744     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11745     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'
11746     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'
11747     ;;
11748   irix5* | irix6*)
11749     case $cc_basename in
11750       CC*)
11751         # SGI C++
11752         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'
11753
11754         # Archives containing C++ object files must be created using
11755         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11756         # necessary to make sure instantiated templates are included
11757         # in the archive.
11758         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11759         ;;
11760       *)
11761         if test "$GXX" = yes; then
11762           if test "$with_gnu_ld" = no; then
11763             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'
11764           else
11765             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'
11766           fi
11767         fi
11768         link_all_deplibs_CXX=yes
11769         ;;
11770     esac
11771     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11772     hardcode_libdir_separator_CXX=:
11773     ;;
11774   linux*)
11775     case $cc_basename in
11776       KCC*)
11777         # Kuck and Associates, Inc. (KAI) C++ Compiler
11778
11779         # KCC will only create a shared library if the output file
11780         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11781         # to its proper name (with version) after linking.
11782         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'
11783         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'
11784         # Commands to make compiler produce verbose output that lists
11785         # what "hidden" libraries, object files and flags are used when
11786         # linking a shared library.
11787         #
11788         # There doesn't appear to be a way to prevent this compiler from
11789         # explicitly linking system object files so we need to strip them
11790         # from the output so that they don't get included in the library
11791         # dependencies.
11792         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'
11793
11794         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11795         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11796
11797         # Archives containing C++ object files must be created using
11798         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11799         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11800         ;;
11801       icpc*)
11802         # Intel C++
11803         with_gnu_ld=yes
11804         # version 8.0 and above of icpc choke on multiply defined symbols
11805         # if we add $predep_objects and $postdep_objects, however 7.1 and
11806         # earlier do not add the objects themselves.
11807         case `$CC -V 2>&1` in
11808         *"Version 7."*)
11809           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810           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'
11811           ;;
11812         *)  # Version 8.0 or newer
11813           tmp_idyn=
11814           case $host_cpu in
11815             ia64*) tmp_idyn=' -i_dynamic';;
11816           esac
11817           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818           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'
11819           ;;
11820         esac
11821         archive_cmds_need_lc_CXX=no
11822         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11823         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11824         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11825         ;;
11826       pgCC*)
11827         # Portland Group C++ compiler
11828         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11829         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'
11830
11831         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11832         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11833         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'
11834         ;;
11835       cxx*)
11836         # Compaq C++
11837         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838         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'
11839
11840         runpath_var=LD_RUN_PATH
11841         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11842         hardcode_libdir_separator_CXX=:
11843
11844         # Commands to make compiler produce verbose output that lists
11845         # what "hidden" libraries, object files and flags are used when
11846         # linking a shared library.
11847         #
11848         # There doesn't appear to be a way to prevent this compiler from
11849         # explicitly linking system object files so we need to strip them
11850         # from the output so that they don't get included in the library
11851         # dependencies.
11852         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'
11853         ;;
11854     esac
11855     ;;
11856   lynxos*)
11857     # FIXME: insert proper C++ library support
11858     ld_shlibs_CXX=no
11859     ;;
11860   m88k*)
11861     # FIXME: insert proper C++ library support
11862     ld_shlibs_CXX=no
11863     ;;
11864   mvs*)
11865     case $cc_basename in
11866       cxx*)
11867         # FIXME: insert proper C++ library support
11868         ld_shlibs_CXX=no
11869         ;;
11870       *)
11871         # FIXME: insert proper C++ library support
11872         ld_shlibs_CXX=no
11873         ;;
11874     esac
11875     ;;
11876   netbsd*)
11877     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11878       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11879       wlarc=
11880       hardcode_libdir_flag_spec_CXX='-R$libdir'
11881       hardcode_direct_CXX=yes
11882       hardcode_shlibpath_var_CXX=no
11883     fi
11884     # Workaround some broken pre-1.5 toolchains
11885     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11886     ;;
11887   openbsd2*)
11888     # C++ shared libraries are fairly broken
11889     ld_shlibs_CXX=no
11890     ;;
11891   openbsd*)
11892     hardcode_direct_CXX=yes
11893     hardcode_shlibpath_var_CXX=no
11894     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11895     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11896     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11897       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11898       export_dynamic_flag_spec_CXX='${wl}-E'
11899       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11900     fi
11901     output_verbose_link_cmd='echo'
11902     ;;
11903   osf3*)
11904     case $cc_basename in
11905       KCC*)
11906         # Kuck and Associates, Inc. (KAI) C++ Compiler
11907
11908         # KCC will only create a shared library if the output file
11909         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11910         # to its proper name (with version) after linking.
11911         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'
11912
11913         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11914         hardcode_libdir_separator_CXX=:
11915
11916         # Archives containing C++ object files must be created using
11917         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11918         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11919
11920         ;;
11921       RCC*)
11922         # Rational C++ 2.4.1
11923         # FIXME: insert proper C++ library support
11924         ld_shlibs_CXX=no
11925         ;;
11926       cxx*)
11927         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11928         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'
11929
11930         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11931         hardcode_libdir_separator_CXX=:
11932
11933         # Commands to make compiler produce verbose output that lists
11934         # what "hidden" libraries, object files and flags are used when
11935         # linking a shared library.
11936         #
11937         # There doesn't appear to be a way to prevent this compiler from
11938         # explicitly linking system object files so we need to strip them
11939         # from the output so that they don't get included in the library
11940         # dependencies.
11941         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'
11942         ;;
11943       *)
11944         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11945           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11946           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'
11947
11948           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11949           hardcode_libdir_separator_CXX=:
11950
11951           # Commands to make compiler produce verbose output that lists
11952           # what "hidden" libraries, object files and flags are used when
11953           # linking a shared library.
11954           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11955
11956         else
11957           # FIXME: insert proper C++ library support
11958           ld_shlibs_CXX=no
11959         fi
11960         ;;
11961     esac
11962     ;;
11963   osf4* | osf5*)
11964     case $cc_basename in
11965       KCC*)
11966         # Kuck and Associates, Inc. (KAI) C++ Compiler
11967
11968         # KCC will only create a shared library if the output file
11969         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11970         # to its proper name (with version) after linking.
11971         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'
11972
11973         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974         hardcode_libdir_separator_CXX=:
11975
11976         # Archives containing C++ object files must be created using
11977         # the KAI C++ compiler.
11978         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11979         ;;
11980       RCC*)
11981         # Rational C++ 2.4.1
11982         # FIXME: insert proper C++ library support
11983         ld_shlibs_CXX=no
11984         ;;
11985       cxx*)
11986         allow_undefined_flag_CXX=' -expect_unresolved \*'
11987         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'
11988         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11989           echo "-hidden">> $lib.exp~
11990           $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~
11991           $rm $lib.exp'
11992
11993         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11994         hardcode_libdir_separator_CXX=:
11995
11996         # Commands to make compiler produce verbose output that lists
11997         # what "hidden" libraries, object files and flags are used when
11998         # linking a shared library.
11999         #
12000         # There doesn't appear to be a way to prevent this compiler from
12001         # explicitly linking system object files so we need to strip them
12002         # from the output so that they don't get included in the library
12003         # dependencies.
12004         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'
12005         ;;
12006       *)
12007         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12008           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12009          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'
12010
12011           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12012           hardcode_libdir_separator_CXX=:
12013
12014           # Commands to make compiler produce verbose output that lists
12015           # what "hidden" libraries, object files and flags are used when
12016           # linking a shared library.
12017           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12018
12019         else
12020           # FIXME: insert proper C++ library support
12021           ld_shlibs_CXX=no
12022         fi
12023         ;;
12024     esac
12025     ;;
12026   psos*)
12027     # FIXME: insert proper C++ library support
12028     ld_shlibs_CXX=no
12029     ;;
12030   sunos4*)
12031     case $cc_basename in
12032       CC*)
12033         # Sun C++ 4.x
12034         # FIXME: insert proper C++ library support
12035         ld_shlibs_CXX=no
12036         ;;
12037       lcc*)
12038         # Lucid
12039         # FIXME: insert proper C++ library support
12040         ld_shlibs_CXX=no
12041         ;;
12042       *)
12043         # FIXME: insert proper C++ library support
12044         ld_shlibs_CXX=no
12045         ;;
12046     esac
12047     ;;
12048   solaris*)
12049     case $cc_basename in
12050       CC*)
12051         # Sun C++ 4.2, 5.x and Centerline C++
12052         archive_cmds_need_lc_CXX=yes
12053         no_undefined_flag_CXX=' -zdefs'
12054         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12055         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12056         $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'
12057
12058         hardcode_libdir_flag_spec_CXX='-R$libdir'
12059         hardcode_shlibpath_var_CXX=no
12060         case $host_os in
12061           solaris2.[0-5] | solaris2.[0-5].*) ;;
12062           *)
12063             # The C++ compiler is used as linker so we must use $wl
12064             # flag to pass the commands to the underlying system
12065             # linker. We must also pass each convience library through
12066             # to the system linker between allextract/defaultextract.
12067             # The C++ compiler will combine linker options so we
12068             # cannot just pass the convience library names through
12069             # without $wl.
12070             # Supported since Solaris 2.6 (maybe 2.5.1?)
12071             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12072             ;;
12073         esac
12074         link_all_deplibs_CXX=yes
12075
12076         output_verbose_link_cmd='echo'
12077
12078         # Archives containing C++ object files must be created using
12079         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12080         # necessary to make sure instantiated templates are included
12081         # in the archive.
12082         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12083         ;;
12084       gcx*)
12085         # Green Hills C++ Compiler
12086         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12087
12088         # The C++ compiler must be used to create the archive.
12089         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12090         ;;
12091       *)
12092         # GNU C++ compiler with Solaris linker
12093         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12094           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12095           if $CC --version | grep -v '^2\.7' > /dev/null; then
12096             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12097             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12098                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12099
12100             # Commands to make compiler produce verbose output that lists
12101             # what "hidden" libraries, object files and flags are used when
12102             # linking a shared library.
12103             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12104           else
12105             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12106             # platform.
12107             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12108             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12109                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12110
12111             # Commands to make compiler produce verbose output that lists
12112             # what "hidden" libraries, object files and flags are used when
12113             # linking a shared library.
12114             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12115           fi
12116
12117           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12118         fi
12119         ;;
12120     esac
12121     ;;
12122   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12123     no_undefined_flag_CXX='${wl}-z,text'
12124     archive_cmds_need_lc_CXX=no
12125     hardcode_shlibpath_var_CXX=no
12126     runpath_var='LD_RUN_PATH'
12127
12128     case $cc_basename in
12129       CC*)
12130         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12131         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12132         ;;
12133       *)
12134         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12135         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136         ;;
12137     esac
12138     ;;
12139   sysv5* | sco3.2v5* | sco5v6*)
12140     # Note: We can NOT use -z defs as we might desire, because we do not
12141     # link with -lc, and that would cause any symbols used from libc to
12142     # always be unresolved, which means just about no library would
12143     # ever link correctly.  If we're not using GNU ld we use -z text
12144     # though, which does catch some bad symbols but isn't as heavy-handed
12145     # as -z defs.
12146     # For security reasons, it is highly recommended that you always
12147     # use absolute paths for naming shared libraries, and exclude the
12148     # DT_RUNPATH tag from executables and libraries.  But doing so
12149     # requires that you compile everything twice, which is a pain.
12150     # So that behaviour is only enabled if SCOABSPATH is set to a
12151     # non-empty value in the environment.  Most likely only useful for
12152     # creating official distributions of packages.
12153     # This is a hack until libtool officially supports absolute path
12154     # names for shared libraries.
12155     no_undefined_flag_CXX='${wl}-z,text'
12156     allow_undefined_flag_CXX='${wl}-z,nodefs'
12157     archive_cmds_need_lc_CXX=no
12158     hardcode_shlibpath_var_CXX=no
12159     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12160     hardcode_libdir_separator_CXX=':'
12161     link_all_deplibs_CXX=yes
12162     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12163     runpath_var='LD_RUN_PATH'
12164
12165     case $cc_basename in
12166       CC*)
12167         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12168         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12169         ;;
12170       *)
12171         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12172         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12173         ;;
12174     esac
12175     ;;
12176   tandem*)
12177     case $cc_basename in
12178       NCC*)
12179         # NonStop-UX NCC 3.20
12180         # FIXME: insert proper C++ library support
12181         ld_shlibs_CXX=no
12182         ;;
12183       *)
12184         # FIXME: insert proper C++ library support
12185         ld_shlibs_CXX=no
12186         ;;
12187     esac
12188     ;;
12189   vxworks*)
12190     # FIXME: insert proper C++ library support
12191     ld_shlibs_CXX=no
12192     ;;
12193   *)
12194     # FIXME: insert proper C++ library support
12195     ld_shlibs_CXX=no
12196     ;;
12197 esac
12198 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12199 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12200 test "$ld_shlibs_CXX" = no && can_build_shared=no
12201
12202 GCC_CXX="$GXX"
12203 LD_CXX="$LD"
12204
12205 ## CAVEAT EMPTOR:
12206 ## There is no encapsulation within the following macros, do not change
12207 ## the running order or otherwise move them around unless you know exactly
12208 ## what you are doing...
12209
12210 cat > conftest.$ac_ext <<EOF
12211 class Foo
12212 {
12213 public:
12214   Foo (void) { a = 0; }
12215 private:
12216   int a;
12217 };
12218 EOF
12219
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221   (eval $ac_compile) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; then
12225   # Parse the compiler output and extract the necessary
12226   # objects, libraries and library flags.
12227
12228   # Sentinel used to keep track of whether or not we are before
12229   # the conftest object file.
12230   pre_test_object_deps_done=no
12231
12232   # The `*' in the case matches for architectures that use `case' in
12233   # $output_verbose_cmd can trigger glob expansion during the loop
12234   # eval without this substitution.
12235   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12236
12237   for p in `eval $output_verbose_link_cmd`; do
12238     case $p in
12239
12240     -L* | -R* | -l*)
12241        # Some compilers place space between "-{L,R}" and the path.
12242        # Remove the space.
12243        if test $p = "-L" \
12244           || test $p = "-R"; then
12245          prev=$p
12246          continue
12247        else
12248          prev=
12249        fi
12250
12251        if test "$pre_test_object_deps_done" = no; then
12252          case $p in
12253          -L* | -R*)
12254            # Internal compiler library paths should come after those
12255            # provided the user.  The postdeps already come after the
12256            # user supplied libs so there is no need to process them.
12257            if test -z "$compiler_lib_search_path_CXX"; then
12258              compiler_lib_search_path_CXX="${prev}${p}"
12259            else
12260              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12261            fi
12262            ;;
12263          # The "-l" case would never come before the object being
12264          # linked, so don't bother handling this case.
12265          esac
12266        else
12267          if test -z "$postdeps_CXX"; then
12268            postdeps_CXX="${prev}${p}"
12269          else
12270            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12271          fi
12272        fi
12273        ;;
12274
12275     *.$objext)
12276        # This assumes that the test object file only shows up
12277        # once in the compiler output.
12278        if test "$p" = "conftest.$objext"; then
12279          pre_test_object_deps_done=yes
12280          continue
12281        fi
12282
12283        if test "$pre_test_object_deps_done" = no; then
12284          if test -z "$predep_objects_CXX"; then
12285            predep_objects_CXX="$p"
12286          else
12287            predep_objects_CXX="$predep_objects_CXX $p"
12288          fi
12289        else
12290          if test -z "$postdep_objects_CXX"; then
12291            postdep_objects_CXX="$p"
12292          else
12293            postdep_objects_CXX="$postdep_objects_CXX $p"
12294          fi
12295        fi
12296        ;;
12297
12298     *) ;; # Ignore the rest.
12299
12300     esac
12301   done
12302
12303   # Clean up.
12304   rm -f a.out a.exe
12305 else
12306   echo "libtool.m4: error: problem compiling CXX test program"
12307 fi
12308
12309 $rm -f confest.$objext
12310
12311 # PORTME: override above test on systems where it is broken
12312 case $host_os in
12313 interix3*)
12314   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12315   # hack all around it, let's just trust "g++" to DTRT.
12316   predep_objects_CXX=
12317   postdep_objects_CXX=
12318   postdeps_CXX=
12319   ;;
12320
12321 solaris*)
12322   case $cc_basename in
12323   CC*)
12324     # Adding this requires a known-good setup of shared libraries for
12325     # Sun compiler versions before 5.6, else PIC objects from an old
12326     # archive will be linked into the output, leading to subtle bugs.
12327     postdeps_CXX='-lCstd -lCrun'
12328     ;;
12329   esac
12330   ;;
12331 esac
12332
12333
12334 case " $postdeps_CXX " in
12335 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12336 esac
12337
12338 lt_prog_compiler_wl_CXX=
12339 lt_prog_compiler_pic_CXX=
12340 lt_prog_compiler_static_CXX=
12341
12342 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12344
12345   # C++ specific cases for pic, static, wl, etc.
12346   if test "$GXX" = yes; then
12347     lt_prog_compiler_wl_CXX='-Wl,'
12348     lt_prog_compiler_static_CXX='-static'
12349
12350     case $host_os in
12351     aix*)
12352       # All AIX code is PIC.
12353       if test "$host_cpu" = ia64; then
12354         # AIX 5 now supports IA64 processor
12355         lt_prog_compiler_static_CXX='-Bstatic'
12356       fi
12357       ;;
12358     amigaos*)
12359       # FIXME: we need at least 68020 code to build shared libraries, but
12360       # adding the `-m68020' flag to GCC prevents building anything better,
12361       # like `-m68040'.
12362       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12363       ;;
12364     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12365       # PIC is the default for these OSes.
12366       ;;
12367     mingw* | os2* | pw32*)
12368       # This hack is so that the source file can tell whether it is being
12369       # built for inclusion in a dll (and should export symbols for example).
12370       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12371       ;;
12372     darwin* | rhapsody*)
12373       # PIC is the default on this platform
12374       # Common symbols not allowed in MH_DYLIB files
12375       lt_prog_compiler_pic_CXX='-fno-common'
12376       ;;
12377     *djgpp*)
12378       # DJGPP does not support shared libraries at all
12379       lt_prog_compiler_pic_CXX=
12380       ;;
12381     interix3*)
12382       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12383       # Instead, we relocate shared libraries at runtime.
12384       ;;
12385     sysv4*MP*)
12386       if test -d /usr/nec; then
12387         lt_prog_compiler_pic_CXX=-Kconform_pic
12388       fi
12389       ;;
12390     hpux*)
12391       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12392       # not for PA HP-UX.
12393       case $host_cpu in
12394       hppa*64*|ia64*)
12395         ;;
12396       *)
12397         lt_prog_compiler_pic_CXX='-fPIC'
12398         ;;
12399       esac
12400       ;;
12401     *)
12402       lt_prog_compiler_pic_CXX='-fPIC'
12403       ;;
12404     esac
12405   else
12406     case $host_os in
12407       aix4* | aix5*)
12408         # All AIX code is PIC.
12409         if test "$host_cpu" = ia64; then
12410           # AIX 5 now supports IA64 processor
12411           lt_prog_compiler_static_CXX='-Bstatic'
12412         else
12413           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12414         fi
12415         ;;
12416       chorus*)
12417         case $cc_basename in
12418         cxch68*)
12419           # Green Hills C++ Compiler
12420           # _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"
12421           ;;
12422         esac
12423         ;;
12424        darwin*)
12425          # PIC is the default on this platform
12426          # Common symbols not allowed in MH_DYLIB files
12427          case $cc_basename in
12428            xlc*)
12429            lt_prog_compiler_pic_CXX='-qnocommon'
12430            lt_prog_compiler_wl_CXX='-Wl,'
12431            ;;
12432          esac
12433        ;;
12434       dgux*)
12435         case $cc_basename in
12436           ec++*)
12437             lt_prog_compiler_pic_CXX='-KPIC'
12438             ;;
12439           ghcx*)
12440             # Green Hills C++ Compiler
12441             lt_prog_compiler_pic_CXX='-pic'
12442             ;;
12443           *)
12444             ;;
12445         esac
12446         ;;
12447       freebsd* | kfreebsd*-gnu | dragonfly*)
12448         # FreeBSD uses GNU C++
12449         ;;
12450       hpux9* | hpux10* | hpux11*)
12451         case $cc_basename in
12452           CC*)
12453             lt_prog_compiler_wl_CXX='-Wl,'
12454             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12455             if test "$host_cpu" != ia64; then
12456               lt_prog_compiler_pic_CXX='+Z'
12457             fi
12458             ;;
12459           aCC*)
12460             lt_prog_compiler_wl_CXX='-Wl,'
12461             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12462             case $host_cpu in
12463             hppa*64*|ia64*)
12464               # +Z the default
12465               ;;
12466             *)
12467               lt_prog_compiler_pic_CXX='+Z'
12468               ;;
12469             esac
12470             ;;
12471           *)
12472             ;;
12473         esac
12474         ;;
12475       interix*)
12476         # This is c89, which is MS Visual C++ (no shared libs)
12477         # Anyone wants to do a port?
12478         ;;
12479       irix5* | irix6* | nonstopux*)
12480         case $cc_basename in
12481           CC*)
12482             lt_prog_compiler_wl_CXX='-Wl,'
12483             lt_prog_compiler_static_CXX='-non_shared'
12484             # CC pic flag -KPIC is the default.
12485             ;;
12486           *)
12487             ;;
12488         esac
12489         ;;
12490       linux*)
12491         case $cc_basename in
12492           KCC*)
12493             # KAI C++ Compiler
12494             lt_prog_compiler_wl_CXX='--backend -Wl,'
12495             lt_prog_compiler_pic_CXX='-fPIC'
12496             ;;
12497           icpc* | ecpc*)
12498             # Intel C++
12499             lt_prog_compiler_wl_CXX='-Wl,'
12500             lt_prog_compiler_pic_CXX='-KPIC'
12501             lt_prog_compiler_static_CXX='-static'
12502             ;;
12503           pgCC*)
12504             # Portland Group C++ compiler.
12505             lt_prog_compiler_wl_CXX='-Wl,'
12506             lt_prog_compiler_pic_CXX='-fpic'
12507             lt_prog_compiler_static_CXX='-Bstatic'
12508             ;;
12509           cxx*)
12510             # Compaq C++
12511             # Make sure the PIC flag is empty.  It appears that all Alpha
12512             # Linux and Compaq Tru64 Unix objects are PIC.
12513             lt_prog_compiler_pic_CXX=
12514             lt_prog_compiler_static_CXX='-non_shared'
12515             ;;
12516           *)
12517             ;;
12518         esac
12519         ;;
12520       lynxos*)
12521         ;;
12522       m88k*)
12523         ;;
12524       mvs*)
12525         case $cc_basename in
12526           cxx*)
12527             lt_prog_compiler_pic_CXX='-W c,exportall'
12528             ;;
12529           *)
12530             ;;
12531         esac
12532         ;;
12533       netbsd*)
12534         ;;
12535       osf3* | osf4* | osf5*)
12536         case $cc_basename in
12537           KCC*)
12538             lt_prog_compiler_wl_CXX='--backend -Wl,'
12539             ;;
12540           RCC*)
12541             # Rational C++ 2.4.1
12542             lt_prog_compiler_pic_CXX='-pic'
12543             ;;
12544           cxx*)
12545             # Digital/Compaq C++
12546             lt_prog_compiler_wl_CXX='-Wl,'
12547             # Make sure the PIC flag is empty.  It appears that all Alpha
12548             # Linux and Compaq Tru64 Unix objects are PIC.
12549             lt_prog_compiler_pic_CXX=
12550             lt_prog_compiler_static_CXX='-non_shared'
12551             ;;
12552           *)
12553             ;;
12554         esac
12555         ;;
12556       psos*)
12557         ;;
12558       solaris*)
12559         case $cc_basename in
12560           CC*)
12561             # Sun C++ 4.2, 5.x and Centerline C++
12562             lt_prog_compiler_pic_CXX='-KPIC'
12563             lt_prog_compiler_static_CXX='-Bstatic'
12564             lt_prog_compiler_wl_CXX='-Qoption ld '
12565             ;;
12566           gcx*)
12567             # Green Hills C++ Compiler
12568             lt_prog_compiler_pic_CXX='-PIC'
12569             ;;
12570           *)
12571             ;;
12572         esac
12573         ;;
12574       sunos4*)
12575         case $cc_basename in
12576           CC*)
12577             # Sun C++ 4.x
12578             lt_prog_compiler_pic_CXX='-pic'
12579             lt_prog_compiler_static_CXX='-Bstatic'
12580             ;;
12581           lcc*)
12582             # Lucid
12583             lt_prog_compiler_pic_CXX='-pic'
12584             ;;
12585           *)
12586             ;;
12587         esac
12588         ;;
12589       tandem*)
12590         case $cc_basename in
12591           NCC*)
12592             # NonStop-UX NCC 3.20
12593             lt_prog_compiler_pic_CXX='-KPIC'
12594             ;;
12595           *)
12596             ;;
12597         esac
12598         ;;
12599       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12600         case $cc_basename in
12601           CC*)
12602             lt_prog_compiler_wl_CXX='-Wl,'
12603             lt_prog_compiler_pic_CXX='-KPIC'
12604             lt_prog_compiler_static_CXX='-Bstatic'
12605             ;;
12606         esac
12607         ;;
12608       vxworks*)
12609         ;;
12610       *)
12611         lt_prog_compiler_can_build_shared_CXX=no
12612         ;;
12613     esac
12614   fi
12615
12616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12617 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12618
12619 #
12620 # Check to make sure the PIC flag actually works.
12621 #
12622 if test -n "$lt_prog_compiler_pic_CXX"; then
12623
12624 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12625 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12626 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629   lt_prog_compiler_pic_works_CXX=no
12630   ac_outfile=conftest.$ac_objext
12631    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12632    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12633    # Insert the option either (1) after the last *FLAGS variable, or
12634    # (2) before a word containing "conftest.", or (3) at the end.
12635    # Note that $ac_compile itself does not contain backslashes and begins
12636    # with a dollar sign (not a hyphen), so the echo should work correctly.
12637    # The option is referenced via a variable to avoid confusing sed.
12638    lt_compile=`echo "$ac_compile" | $SED \
12639    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12640    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12641    -e 's:$: $lt_compiler_flag:'`
12642    (eval echo "\"\$as_me:12642: $lt_compile\"" >&5)
12643    (eval "$lt_compile" 2>conftest.err)
12644    ac_status=$?
12645    cat conftest.err >&5
12646    echo "$as_me:12646: \$? = $ac_status" >&5
12647    if (exit $ac_status) && test -s "$ac_outfile"; then
12648      # The compiler can only warn and ignore the option if not recognized
12649      # So say no if there are warnings other than the usual output.
12650      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12651      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12652      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12653        lt_prog_compiler_pic_works_CXX=yes
12654      fi
12655    fi
12656    $rm conftest*
12657
12658 fi
12659 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12660 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12661
12662 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12663     case $lt_prog_compiler_pic_CXX in
12664      "" | " "*) ;;
12665      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12666      esac
12667 else
12668     lt_prog_compiler_pic_CXX=
12669      lt_prog_compiler_can_build_shared_CXX=no
12670 fi
12671
12672 fi
12673 case $host_os in
12674   # For platforms which do not support PIC, -DPIC is meaningless:
12675   *djgpp*)
12676     lt_prog_compiler_pic_CXX=
12677     ;;
12678   *)
12679     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12680     ;;
12681 esac
12682
12683 #
12684 # Check to make sure the static flag actually works.
12685 #
12686 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12687 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12688 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12689 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   lt_prog_compiler_static_works_CXX=no
12693    save_LDFLAGS="$LDFLAGS"
12694    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12695    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12696    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12697      # The linker can only warn and ignore the option if not recognized
12698      # So say no if there are warnings
12699      if test -s conftest.err; then
12700        # Append any errors to the config.log.
12701        cat conftest.err 1>&5
12702        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12703        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12704        if diff conftest.exp conftest.er2 >/dev/null; then
12705          lt_prog_compiler_static_works_CXX=yes
12706        fi
12707      else
12708        lt_prog_compiler_static_works_CXX=yes
12709      fi
12710    fi
12711    $rm conftest*
12712    LDFLAGS="$save_LDFLAGS"
12713
12714 fi
12715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12716 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12717
12718 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12719     :
12720 else
12721     lt_prog_compiler_static_CXX=
12722 fi
12723
12724
12725 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12726 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12727 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   lt_cv_prog_compiler_c_o_CXX=no
12731    $rm -r conftest 2>/dev/null
12732    mkdir conftest
12733    cd conftest
12734    mkdir out
12735    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12736
12737    lt_compiler_flag="-o out/conftest2.$ac_objext"
12738    # Insert the option either (1) after the last *FLAGS variable, or
12739    # (2) before a word containing "conftest.", or (3) at the end.
12740    # Note that $ac_compile itself does not contain backslashes and begins
12741    # with a dollar sign (not a hyphen), so the echo should work correctly.
12742    lt_compile=`echo "$ac_compile" | $SED \
12743    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12744    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12745    -e 's:$: $lt_compiler_flag:'`
12746    (eval echo "\"\$as_me:12746: $lt_compile\"" >&5)
12747    (eval "$lt_compile" 2>out/conftest.err)
12748    ac_status=$?
12749    cat out/conftest.err >&5
12750    echo "$as_me:12750: \$? = $ac_status" >&5
12751    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12752    then
12753      # The compiler can only warn and ignore the option if not recognized
12754      # So say no if there are warnings
12755      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12756      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12757      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12758        lt_cv_prog_compiler_c_o_CXX=yes
12759      fi
12760    fi
12761    chmod u+w . 2>&5
12762    $rm conftest*
12763    # SGI C++ compiler will create directory out/ii_files/ for
12764    # template instantiation
12765    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12766    $rm out/* && rmdir out
12767    cd ..
12768    rmdir conftest
12769    $rm conftest*
12770
12771 fi
12772 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12773 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12774
12775
12776 hard_links="nottested"
12777 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12778   # do not overwrite the value of need_locks provided by the user
12779   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12780 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12781   hard_links=yes
12782   $rm conftest*
12783   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12784   touch conftest.a
12785   ln conftest.a conftest.b 2>&5 || hard_links=no
12786   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12787   { echo "$as_me:$LINENO: result: $hard_links" >&5
12788 echo "${ECHO_T}$hard_links" >&6; }
12789   if test "$hard_links" = no; then
12790     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12791 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12792     need_locks=warn
12793   fi
12794 else
12795   need_locks=no
12796 fi
12797
12798 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12800
12801   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12802   case $host_os in
12803   aix4* | aix5*)
12804     # If we're using GNU nm, then we don't want the "-C" option.
12805     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12806     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12807       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'
12808     else
12809       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'
12810     fi
12811     ;;
12812   pw32*)
12813     export_symbols_cmds_CXX="$ltdll_cmds"
12814   ;;
12815   cygwin* | mingw*)
12816     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'
12817   ;;
12818   *)
12819     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12820   ;;
12821   esac
12822
12823 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12824 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12825 test "$ld_shlibs_CXX" = no && can_build_shared=no
12826
12827 #
12828 # Do we need to explicitly link libc?
12829 #
12830 case "x$archive_cmds_need_lc_CXX" in
12831 x|xyes)
12832   # Assume -lc should be added
12833   archive_cmds_need_lc_CXX=yes
12834
12835   if test "$enable_shared" = yes && test "$GCC" = yes; then
12836     case $archive_cmds_CXX in
12837     *'~'*)
12838       # FIXME: we may have to deal with multi-command sequences.
12839       ;;
12840     '$CC '*)
12841       # Test whether the compiler implicitly links with -lc since on some
12842       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12843       # to ld, don't add -lc before -lgcc.
12844       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12846       $rm conftest*
12847       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12848
12849       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850   (eval $ac_compile) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } 2>conftest.err; then
12854         soname=conftest
12855         lib=conftest
12856         libobjs=conftest.$ac_objext
12857         deplibs=
12858         wl=$lt_prog_compiler_wl_CXX
12859         pic_flag=$lt_prog_compiler_pic_CXX
12860         compiler_flags=-v
12861         linker_flags=-v
12862         verstring=
12863         output_objdir=.
12864         libname=conftest
12865         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12866         allow_undefined_flag_CXX=
12867         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12868   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }
12872         then
12873           archive_cmds_need_lc_CXX=no
12874         else
12875           archive_cmds_need_lc_CXX=yes
12876         fi
12877         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12878       else
12879         cat conftest.err 1>&5
12880       fi
12881       $rm conftest*
12882       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12883 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12884       ;;
12885     esac
12886   fi
12887   ;;
12888 esac
12889
12890 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12892 library_names_spec=
12893 libname_spec='lib$name'
12894 soname_spec=
12895 shrext_cmds=".so"
12896 postinstall_cmds=
12897 postuninstall_cmds=
12898 finish_cmds=
12899 finish_eval=
12900 shlibpath_var=
12901 shlibpath_overrides_runpath=unknown
12902 version_type=none
12903 dynamic_linker="$host_os ld.so"
12904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12905 if test "$GCC" = yes; then
12906   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12907   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12908     # if the path contains ";" then we assume it to be the separator
12909     # otherwise default to the standard path separator (i.e. ":") - it is
12910     # assumed that no part of a normal pathname contains ";" but that should
12911     # okay in the real world where ";" in dirpaths is itself problematic.
12912     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12913   else
12914     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12915   fi
12916 else
12917   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12918 fi
12919 need_lib_prefix=unknown
12920 hardcode_into_libs=no
12921
12922 # when you set need_version to no, make sure it does not cause -set_version
12923 # flags to be left without arguments
12924 need_version=unknown
12925
12926 case $host_os in
12927 aix3*)
12928   version_type=linux
12929   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12930   shlibpath_var=LIBPATH
12931
12932   # AIX 3 has no versioning support, so we append a major version to the name.
12933   soname_spec='${libname}${release}${shared_ext}$major'
12934   ;;
12935
12936 aix4* | aix5*)
12937   version_type=linux
12938   need_lib_prefix=no
12939   need_version=no
12940   hardcode_into_libs=yes
12941   if test "$host_cpu" = ia64; then
12942     # AIX 5 supports IA64
12943     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12944     shlibpath_var=LD_LIBRARY_PATH
12945   else
12946     # With GCC up to 2.95.x, collect2 would create an import file
12947     # for dependence libraries.  The import file would start with
12948     # the line `#! .'.  This would cause the generated library to
12949     # depend on `.', always an invalid library.  This was fixed in
12950     # development snapshots of GCC prior to 3.0.
12951     case $host_os in
12952       aix4 | aix4.[01] | aix4.[01].*)
12953       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12954            echo ' yes '
12955            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12956         :
12957       else
12958         can_build_shared=no
12959       fi
12960       ;;
12961     esac
12962     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12963     # soname into executable. Probably we can add versioning support to
12964     # collect2, so additional links can be useful in future.
12965     if test "$aix_use_runtimelinking" = yes; then
12966       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12967       # instead of lib<name>.a to let people know that these are not
12968       # typical AIX shared libraries.
12969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12970     else
12971       # We preserve .a as extension for shared libraries through AIX4.2
12972       # and later when we are not doing run time linking.
12973       library_names_spec='${libname}${release}.a $libname.a'
12974       soname_spec='${libname}${release}${shared_ext}$major'
12975     fi
12976     shlibpath_var=LIBPATH
12977   fi
12978   ;;
12979
12980 amigaos*)
12981   library_names_spec='$libname.ixlibrary $libname.a'
12982   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12983   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'
12984   ;;
12985
12986 beos*)
12987   library_names_spec='${libname}${shared_ext}'
12988   dynamic_linker="$host_os ld.so"
12989   shlibpath_var=LIBRARY_PATH
12990   ;;
12991
12992 bsdi[45]*)
12993   version_type=linux
12994   need_version=no
12995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996   soname_spec='${libname}${release}${shared_ext}$major'
12997   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12998   shlibpath_var=LD_LIBRARY_PATH
12999   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13000   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13001   # the default ld.so.conf also contains /usr/contrib/lib and
13002   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13003   # libtool to hard-code these into programs
13004   ;;
13005
13006 cygwin* | mingw* | pw32*)
13007   version_type=windows
13008   shrext_cmds=".dll"
13009   need_version=no
13010   need_lib_prefix=no
13011
13012   case $GCC,$host_os in
13013   yes,cygwin* | yes,mingw* | yes,pw32*)
13014     library_names_spec='$libname.dll.a'
13015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13016     postinstall_cmds='base_file=`basename \${file}`~
13017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13018       dldir=$destdir/`dirname \$dlpath`~
13019       test -d \$dldir || mkdir -p \$dldir~
13020       $install_prog $dir/$dlname \$dldir/$dlname~
13021       chmod a+x \$dldir/$dlname'
13022     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13023       dlpath=$dir/\$dldll~
13024        $rm \$dlpath'
13025     shlibpath_overrides_runpath=yes
13026
13027     case $host_os in
13028     cygwin*)
13029       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13030       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13031       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13032       ;;
13033     mingw*)
13034       # MinGW DLLs use traditional 'lib' prefix
13035       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13036       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13037       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13038         # It is most probably a Windows format PATH printed by
13039         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13040         # path with ; separators, and with drive letters. We can handle the
13041         # drive letters (cygwin fileutils understands them), so leave them,
13042         # especially as we might pass files found there to a mingw objdump,
13043         # which wouldn't understand a cygwinified path. Ahh.
13044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13045       else
13046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13047       fi
13048       ;;
13049     pw32*)
13050       # pw32 DLLs use 'pw' prefix rather than 'lib'
13051       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13052       ;;
13053     esac
13054     ;;
13055
13056   *)
13057     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13058     ;;
13059   esac
13060   dynamic_linker='Win32 ld.exe'
13061   # FIXME: first we should search . and the directory the executable is in
13062   shlibpath_var=PATH
13063   ;;
13064
13065 darwin* | rhapsody*)
13066   dynamic_linker="$host_os dyld"
13067   version_type=darwin
13068   need_lib_prefix=no
13069   need_version=no
13070   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13071   soname_spec='${libname}${release}${major}$shared_ext'
13072   shlibpath_overrides_runpath=yes
13073   shlibpath_var=DYLD_LIBRARY_PATH
13074   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13075   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13076   if test "$GCC" = yes; then
13077     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13078   else
13079     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13080   fi
13081   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13082   ;;
13083
13084 dgux*)
13085   version_type=linux
13086   need_lib_prefix=no
13087   need_version=no
13088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13089   soname_spec='${libname}${release}${shared_ext}$major'
13090   shlibpath_var=LD_LIBRARY_PATH
13091   ;;
13092
13093 freebsd1*)
13094   dynamic_linker=no
13095   ;;
13096
13097 kfreebsd*-gnu)
13098   version_type=linux
13099   need_lib_prefix=no
13100   need_version=no
13101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13102   soname_spec='${libname}${release}${shared_ext}$major'
13103   shlibpath_var=LD_LIBRARY_PATH
13104   shlibpath_overrides_runpath=no
13105   hardcode_into_libs=yes
13106   dynamic_linker='GNU ld.so'
13107   ;;
13108
13109 freebsd* | dragonfly*)
13110   # DragonFly does not have aout.  When/if they implement a new
13111   # versioning mechanism, adjust this.
13112   if test -x /usr/bin/objformat; then
13113     objformat=`/usr/bin/objformat`
13114   else
13115     case $host_os in
13116     freebsd[123]*) objformat=aout ;;
13117     *) objformat=elf ;;
13118     esac
13119   fi
13120   version_type=freebsd-$objformat
13121   case $version_type in
13122     freebsd-elf*)
13123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13124       need_version=no
13125       need_lib_prefix=no
13126       ;;
13127     freebsd-*)
13128       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13129       need_version=yes
13130       ;;
13131   esac
13132   shlibpath_var=LD_LIBRARY_PATH
13133   case $host_os in
13134   freebsd2*)
13135     shlibpath_overrides_runpath=yes
13136     ;;
13137   freebsd3.[01]* | freebsdelf3.[01]*)
13138     shlibpath_overrides_runpath=yes
13139     hardcode_into_libs=yes
13140     ;;
13141   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13142   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13143     shlibpath_overrides_runpath=no
13144     hardcode_into_libs=yes
13145     ;;
13146   freebsd*) # from 4.6 on
13147     shlibpath_overrides_runpath=yes
13148     hardcode_into_libs=yes
13149     ;;
13150   esac
13151   ;;
13152
13153 gnu*)
13154   version_type=linux
13155   need_lib_prefix=no
13156   need_version=no
13157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13158   soname_spec='${libname}${release}${shared_ext}$major'
13159   shlibpath_var=LD_LIBRARY_PATH
13160   hardcode_into_libs=yes
13161   ;;
13162
13163 hpux9* | hpux10* | hpux11*)
13164   # Give a soname corresponding to the major version so that dld.sl refuses to
13165   # link against other versions.
13166   version_type=sunos
13167   need_lib_prefix=no
13168   need_version=no
13169   case $host_cpu in
13170   ia64*)
13171     shrext_cmds='.so'
13172     hardcode_into_libs=yes
13173     dynamic_linker="$host_os dld.so"
13174     shlibpath_var=LD_LIBRARY_PATH
13175     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177     soname_spec='${libname}${release}${shared_ext}$major'
13178     if test "X$HPUX_IA64_MODE" = X32; then
13179       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13180     else
13181       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13182     fi
13183     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13184     ;;
13185    hppa*64*)
13186      shrext_cmds='.sl'
13187      hardcode_into_libs=yes
13188      dynamic_linker="$host_os dld.sl"
13189      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13190      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13191      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192      soname_spec='${libname}${release}${shared_ext}$major'
13193      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13194      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13195      ;;
13196    *)
13197     shrext_cmds='.sl'
13198     dynamic_linker="$host_os dld.sl"
13199     shlibpath_var=SHLIB_PATH
13200     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202     soname_spec='${libname}${release}${shared_ext}$major'
13203     ;;
13204   esac
13205   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13206   postinstall_cmds='chmod 555 $lib'
13207   ;;
13208
13209 interix3*)
13210   version_type=linux
13211   need_lib_prefix=no
13212   need_version=no
13213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13214   soname_spec='${libname}${release}${shared_ext}$major'
13215   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13216   shlibpath_var=LD_LIBRARY_PATH
13217   shlibpath_overrides_runpath=no
13218   hardcode_into_libs=yes
13219   ;;
13220
13221 irix5* | irix6* | nonstopux*)
13222   case $host_os in
13223     nonstopux*) version_type=nonstopux ;;
13224     *)
13225         if test "$lt_cv_prog_gnu_ld" = yes; then
13226                 version_type=linux
13227         else
13228                 version_type=irix
13229         fi ;;
13230   esac
13231   need_lib_prefix=no
13232   need_version=no
13233   soname_spec='${libname}${release}${shared_ext}$major'
13234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13235   case $host_os in
13236   irix5* | nonstopux*)
13237     libsuff= shlibsuff=
13238     ;;
13239   *)
13240     case $LD in # libtool.m4 will add one of these switches to LD
13241     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13242       libsuff= shlibsuff= libmagic=32-bit;;
13243     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13244       libsuff=32 shlibsuff=N32 libmagic=N32;;
13245     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13246       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13247     *) libsuff= shlibsuff= libmagic=never-match;;
13248     esac
13249     ;;
13250   esac
13251   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13252   shlibpath_overrides_runpath=no
13253   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13254   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13255   hardcode_into_libs=yes
13256   ;;
13257
13258 # No shared lib support for Linux oldld, aout, or coff.
13259 linux*oldld* | linux*aout* | linux*coff*)
13260   dynamic_linker=no
13261   ;;
13262
13263 # This must be Linux ELF.
13264 linux*)
13265   version_type=linux
13266   need_lib_prefix=no
13267   need_version=no
13268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269   soname_spec='${libname}${release}${shared_ext}$major'
13270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13271   shlibpath_var=LD_LIBRARY_PATH
13272   shlibpath_overrides_runpath=no
13273   # This implies no fast_install, which is unacceptable.
13274   # Some rework will be needed to allow for fast_install
13275   # before this can be enabled.
13276   hardcode_into_libs=yes
13277
13278   # Append ld.so.conf contents to the search path
13279   if test -f /etc/ld.so.conf; then
13280     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13281     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13282   fi
13283
13284   # We used to test for /lib/ld.so.1 and disable shared libraries on
13285   # powerpc, because MkLinux only supported shared libraries with the
13286   # GNU dynamic linker.  Since this was broken with cross compilers,
13287   # most powerpc-linux boxes support dynamic linking these days and
13288   # people can always --disable-shared, the test was removed, and we
13289   # assume the GNU/Linux dynamic linker is in use.
13290   dynamic_linker='GNU/Linux ld.so'
13291   ;;
13292
13293 knetbsd*-gnu)
13294   version_type=linux
13295   need_lib_prefix=no
13296   need_version=no
13297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13298   soname_spec='${libname}${release}${shared_ext}$major'
13299   shlibpath_var=LD_LIBRARY_PATH
13300   shlibpath_overrides_runpath=no
13301   hardcode_into_libs=yes
13302   dynamic_linker='GNU ld.so'
13303   ;;
13304
13305 netbsd*)
13306   version_type=sunos
13307   need_lib_prefix=no
13308   need_version=no
13309   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13311     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13312     dynamic_linker='NetBSD (a.out) ld.so'
13313   else
13314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13315     soname_spec='${libname}${release}${shared_ext}$major'
13316     dynamic_linker='NetBSD ld.elf_so'
13317   fi
13318   shlibpath_var=LD_LIBRARY_PATH
13319   shlibpath_overrides_runpath=yes
13320   hardcode_into_libs=yes
13321   ;;
13322
13323 newsos6)
13324   version_type=linux
13325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326   shlibpath_var=LD_LIBRARY_PATH
13327   shlibpath_overrides_runpath=yes
13328   ;;
13329
13330 nto-qnx*)
13331   version_type=linux
13332   need_lib_prefix=no
13333   need_version=no
13334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335   soname_spec='${libname}${release}${shared_ext}$major'
13336   shlibpath_var=LD_LIBRARY_PATH
13337   shlibpath_overrides_runpath=yes
13338   ;;
13339
13340 openbsd*)
13341   version_type=sunos
13342   sys_lib_dlsearch_path_spec="/usr/lib"
13343   need_lib_prefix=no
13344   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13345   case $host_os in
13346     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13347     *)                         need_version=no  ;;
13348   esac
13349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13351   shlibpath_var=LD_LIBRARY_PATH
13352   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13353     case $host_os in
13354       openbsd2.[89] | openbsd2.[89].*)
13355         shlibpath_overrides_runpath=no
13356         ;;
13357       *)
13358         shlibpath_overrides_runpath=yes
13359         ;;
13360       esac
13361   else
13362     shlibpath_overrides_runpath=yes
13363   fi
13364   ;;
13365
13366 os2*)
13367   libname_spec='$name'
13368   shrext_cmds=".dll"
13369   need_lib_prefix=no
13370   library_names_spec='$libname${shared_ext} $libname.a'
13371   dynamic_linker='OS/2 ld.exe'
13372   shlibpath_var=LIBPATH
13373   ;;
13374
13375 osf3* | osf4* | osf5*)
13376   version_type=osf
13377   need_lib_prefix=no
13378   need_version=no
13379   soname_spec='${libname}${release}${shared_ext}$major'
13380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381   shlibpath_var=LD_LIBRARY_PATH
13382   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13383   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13384   ;;
13385
13386 solaris*)
13387   version_type=linux
13388   need_lib_prefix=no
13389   need_version=no
13390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13391   soname_spec='${libname}${release}${shared_ext}$major'
13392   shlibpath_var=LD_LIBRARY_PATH
13393   shlibpath_overrides_runpath=yes
13394   hardcode_into_libs=yes
13395   # ldd complains unless libraries are executable
13396   postinstall_cmds='chmod +x $lib'
13397   ;;
13398
13399 sunos4*)
13400   version_type=sunos
13401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13402   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13403   shlibpath_var=LD_LIBRARY_PATH
13404   shlibpath_overrides_runpath=yes
13405   if test "$with_gnu_ld" = yes; then
13406     need_lib_prefix=no
13407   fi
13408   need_version=yes
13409   ;;
13410
13411 sysv4 | sysv4.3*)
13412   version_type=linux
13413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414   soname_spec='${libname}${release}${shared_ext}$major'
13415   shlibpath_var=LD_LIBRARY_PATH
13416   case $host_vendor in
13417     sni)
13418       shlibpath_overrides_runpath=no
13419       need_lib_prefix=no
13420       export_dynamic_flag_spec='${wl}-Blargedynsym'
13421       runpath_var=LD_RUN_PATH
13422       ;;
13423     siemens)
13424       need_lib_prefix=no
13425       ;;
13426     motorola)
13427       need_lib_prefix=no
13428       need_version=no
13429       shlibpath_overrides_runpath=no
13430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13431       ;;
13432   esac
13433   ;;
13434
13435 sysv4*MP*)
13436   if test -d /usr/nec ;then
13437     version_type=linux
13438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13439     soname_spec='$libname${shared_ext}.$major'
13440     shlibpath_var=LD_LIBRARY_PATH
13441   fi
13442   ;;
13443
13444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13445   version_type=freebsd-elf
13446   need_lib_prefix=no
13447   need_version=no
13448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13449   soname_spec='${libname}${release}${shared_ext}$major'
13450   shlibpath_var=LD_LIBRARY_PATH
13451   hardcode_into_libs=yes
13452   if test "$with_gnu_ld" = yes; then
13453     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13454     shlibpath_overrides_runpath=no
13455   else
13456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13457     shlibpath_overrides_runpath=yes
13458     case $host_os in
13459       sco3.2v5*)
13460         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13461         ;;
13462     esac
13463   fi
13464   sys_lib_dlsearch_path_spec='/usr/lib'
13465   ;;
13466
13467 uts4*)
13468   version_type=linux
13469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470   soname_spec='${libname}${release}${shared_ext}$major'
13471   shlibpath_var=LD_LIBRARY_PATH
13472   ;;
13473
13474 *)
13475   dynamic_linker=no
13476   ;;
13477 esac
13478 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13479 echo "${ECHO_T}$dynamic_linker" >&6; }
13480 test "$dynamic_linker" = no && can_build_shared=no
13481
13482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13483 if test "$GCC" = yes; then
13484   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13485 fi
13486
13487 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13489 hardcode_action_CXX=
13490 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13491    test -n "$runpath_var_CXX" || \
13492    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13493
13494   # We can hardcode non-existant directories.
13495   if test "$hardcode_direct_CXX" != no &&
13496      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13497      # have to relink, otherwise we might link with an installed library
13498      # when we should be linking with a yet-to-be-installed one
13499      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13500      test "$hardcode_minus_L_CXX" != no; then
13501     # Linking always hardcodes the temporary library directory.
13502     hardcode_action_CXX=relink
13503   else
13504     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13505     hardcode_action_CXX=immediate
13506   fi
13507 else
13508   # We cannot hardcode anything, or else we can only hardcode existing
13509   # directories.
13510   hardcode_action_CXX=unsupported
13511 fi
13512 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13513 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13514
13515 if test "$hardcode_action_CXX" = relink; then
13516   # Fast installation is not supported
13517   enable_fast_install=no
13518 elif test "$shlibpath_overrides_runpath" = yes ||
13519      test "$enable_shared" = no; then
13520   # Fast installation is not necessary
13521   enable_fast_install=needless
13522 fi
13523
13524
13525 # The else clause should only fire when bootstrapping the
13526 # libtool distribution, otherwise you forgot to ship ltmain.sh
13527 # with your package, and you will get complaints that there are
13528 # no rules to generate ltmain.sh.
13529 if test -f "$ltmain"; then
13530   # See if we are running on zsh, and set the options which allow our commands through
13531   # without removal of \ escapes.
13532   if test -n "${ZSH_VERSION+set}" ; then
13533     setopt NO_GLOB_SUBST
13534   fi
13535   # Now quote all the things that may contain metacharacters while being
13536   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13537   # variables and quote the copies for generation of the libtool script.
13538   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13539     SED SHELL STRIP \
13540     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13541     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13542     deplibs_check_method reload_flag reload_cmds need_locks \
13543     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13544     lt_cv_sys_global_symbol_to_c_name_address \
13545     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13546     old_postinstall_cmds old_postuninstall_cmds \
13547     compiler_CXX \
13548     CC_CXX \
13549     LD_CXX \
13550     lt_prog_compiler_wl_CXX \
13551     lt_prog_compiler_pic_CXX \
13552     lt_prog_compiler_static_CXX \
13553     lt_prog_compiler_no_builtin_flag_CXX \
13554     export_dynamic_flag_spec_CXX \
13555     thread_safe_flag_spec_CXX \
13556     whole_archive_flag_spec_CXX \
13557     enable_shared_with_static_runtimes_CXX \
13558     old_archive_cmds_CXX \
13559     old_archive_from_new_cmds_CXX \
13560     predep_objects_CXX \
13561     postdep_objects_CXX \
13562     predeps_CXX \
13563     postdeps_CXX \
13564     compiler_lib_search_path_CXX \
13565     archive_cmds_CXX \
13566     archive_expsym_cmds_CXX \
13567     postinstall_cmds_CXX \
13568     postuninstall_cmds_CXX \
13569     old_archive_from_expsyms_cmds_CXX \
13570     allow_undefined_flag_CXX \
13571     no_undefined_flag_CXX \
13572     export_symbols_cmds_CXX \
13573     hardcode_libdir_flag_spec_CXX \
13574     hardcode_libdir_flag_spec_ld_CXX \
13575     hardcode_libdir_separator_CXX \
13576     hardcode_automatic_CXX \
13577     module_cmds_CXX \
13578     module_expsym_cmds_CXX \
13579     lt_cv_prog_compiler_c_o_CXX \
13580     exclude_expsyms_CXX \
13581     include_expsyms_CXX; do
13582
13583     case $var in
13584     old_archive_cmds_CXX | \
13585     old_archive_from_new_cmds_CXX | \
13586     archive_cmds_CXX | \
13587     archive_expsym_cmds_CXX | \
13588     module_cmds_CXX | \
13589     module_expsym_cmds_CXX | \
13590     old_archive_from_expsyms_cmds_CXX | \
13591     export_symbols_cmds_CXX | \
13592     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13593     postinstall_cmds | postuninstall_cmds | \
13594     old_postinstall_cmds | old_postuninstall_cmds | \
13595     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13596       # Double-quote double-evaled strings.
13597       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13598       ;;
13599     *)
13600       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13601       ;;
13602     esac
13603   done
13604
13605   case $lt_echo in
13606   *'\$0 --fallback-echo"')
13607     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13608     ;;
13609   esac
13610
13611 cfgfile="$ofile"
13612
13613   cat <<__EOF__ >> "$cfgfile"
13614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13615
13616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13617
13618 # Shell to use when invoking shell scripts.
13619 SHELL=$lt_SHELL
13620
13621 # Whether or not to build shared libraries.
13622 build_libtool_libs=$enable_shared
13623
13624 # Whether or not to build static libraries.
13625 build_old_libs=$enable_static
13626
13627 # Whether or not to add -lc for building shared libraries.
13628 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13629
13630 # Whether or not to disallow shared libs when runtime libs are static
13631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13632
13633 # Whether or not to optimize for fast installation.
13634 fast_install=$enable_fast_install
13635
13636 # The host system.
13637 host_alias=$host_alias
13638 host=$host
13639 host_os=$host_os
13640
13641 # The build system.
13642 build_alias=$build_alias
13643 build=$build
13644 build_os=$build_os
13645
13646 # An echo program that does not interpret backslashes.
13647 echo=$lt_echo
13648
13649 # The archiver.
13650 AR=$lt_AR
13651 AR_FLAGS=$lt_AR_FLAGS
13652
13653 # A C compiler.
13654 LTCC=$lt_LTCC
13655
13656 # LTCC compiler flags.
13657 LTCFLAGS=$lt_LTCFLAGS
13658
13659 # A language-specific compiler.
13660 CC=$lt_compiler_CXX
13661
13662 # Is the compiler the GNU C compiler?
13663 with_gcc=$GCC_CXX
13664
13665 # An ERE matcher.
13666 EGREP=$lt_EGREP
13667
13668 # The linker used to build libraries.
13669 LD=$lt_LD_CXX
13670
13671 # Whether we need hard or soft links.
13672 LN_S=$lt_LN_S
13673
13674 # A BSD-compatible nm program.
13675 NM=$lt_NM
13676
13677 # A symbol stripping program
13678 STRIP=$lt_STRIP
13679
13680 # Used to examine libraries when file_magic_cmd begins "file"
13681 MAGIC_CMD=$MAGIC_CMD
13682
13683 # Used on cygwin: DLL creation program.
13684 DLLTOOL="$DLLTOOL"
13685
13686 # Used on cygwin: object dumper.
13687 OBJDUMP="$OBJDUMP"
13688
13689 # Used on cygwin: assembler.
13690 AS="$AS"
13691
13692 # The name of the directory that contains temporary libtool files.
13693 objdir=$objdir
13694
13695 # How to create reloadable object files.
13696 reload_flag=$lt_reload_flag
13697 reload_cmds=$lt_reload_cmds
13698
13699 # How to pass a linker flag through the compiler.
13700 wl=$lt_lt_prog_compiler_wl_CXX
13701
13702 # Object file suffix (normally "o").
13703 objext="$ac_objext"
13704
13705 # Old archive suffix (normally "a").
13706 libext="$libext"
13707
13708 # Shared library suffix (normally ".so").
13709 shrext_cmds='$shrext_cmds'
13710
13711 # Executable file suffix (normally "").
13712 exeext="$exeext"
13713
13714 # Additional compiler flags for building library objects.
13715 pic_flag=$lt_lt_prog_compiler_pic_CXX
13716 pic_mode=$pic_mode
13717
13718 # What is the maximum length of a command?
13719 max_cmd_len=$lt_cv_sys_max_cmd_len
13720
13721 # Does compiler simultaneously support -c and -o options?
13722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13723
13724 # Must we lock files when doing compilation?
13725 need_locks=$lt_need_locks
13726
13727 # Do we need the lib prefix for modules?
13728 need_lib_prefix=$need_lib_prefix
13729
13730 # Do we need a version for libraries?
13731 need_version=$need_version
13732
13733 # Whether dlopen is supported.
13734 dlopen_support=$enable_dlopen
13735
13736 # Whether dlopen of programs is supported.
13737 dlopen_self=$enable_dlopen_self
13738
13739 # Whether dlopen of statically linked programs is supported.
13740 dlopen_self_static=$enable_dlopen_self_static
13741
13742 # Compiler flag to prevent dynamic linking.
13743 link_static_flag=$lt_lt_prog_compiler_static_CXX
13744
13745 # Compiler flag to turn off builtin functions.
13746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13747
13748 # Compiler flag to allow reflexive dlopens.
13749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13750
13751 # Compiler flag to generate shared objects directly from archives.
13752 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13753
13754 # Compiler flag to generate thread-safe objects.
13755 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13756
13757 # Library versioning type.
13758 version_type=$version_type
13759
13760 # Format of library name prefix.
13761 libname_spec=$lt_libname_spec
13762
13763 # List of archive names.  First name is the real one, the rest are links.
13764 # The last name is the one that the linker finds with -lNAME.
13765 library_names_spec=$lt_library_names_spec
13766
13767 # The coded name of the library, if different from the real name.
13768 soname_spec=$lt_soname_spec
13769
13770 # Commands used to build and install an old-style archive.
13771 RANLIB=$lt_RANLIB
13772 old_archive_cmds=$lt_old_archive_cmds_CXX
13773 old_postinstall_cmds=$lt_old_postinstall_cmds
13774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13775
13776 # Create an old-style archive from a shared archive.
13777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13778
13779 # Create a temporary old-style archive to link instead of a shared archive.
13780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13781
13782 # Commands used to build and install a shared archive.
13783 archive_cmds=$lt_archive_cmds_CXX
13784 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13785 postinstall_cmds=$lt_postinstall_cmds
13786 postuninstall_cmds=$lt_postuninstall_cmds
13787
13788 # Commands used to build a loadable module (assumed same as above if empty)
13789 module_cmds=$lt_module_cmds_CXX
13790 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13791
13792 # Commands to strip libraries.
13793 old_striplib=$lt_old_striplib
13794 striplib=$lt_striplib
13795
13796 # Dependencies to place before the objects being linked to create a
13797 # shared library.
13798 predep_objects=$lt_predep_objects_CXX
13799
13800 # Dependencies to place after the objects being linked to create a
13801 # shared library.
13802 postdep_objects=$lt_postdep_objects_CXX
13803
13804 # Dependencies to place before the objects being linked to create a
13805 # shared library.
13806 predeps=$lt_predeps_CXX
13807
13808 # Dependencies to place after the objects being linked to create a
13809 # shared library.
13810 postdeps=$lt_postdeps_CXX
13811
13812 # The library search path used internally by the compiler when linking
13813 # a shared library.
13814 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13815
13816 # Method to check whether dependent libraries are shared objects.
13817 deplibs_check_method=$lt_deplibs_check_method
13818
13819 # Command to use when deplibs_check_method == file_magic.
13820 file_magic_cmd=$lt_file_magic_cmd
13821
13822 # Flag that allows shared libraries with undefined symbols to be built.
13823 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13824
13825 # Flag that forces no undefined symbols.
13826 no_undefined_flag=$lt_no_undefined_flag_CXX
13827
13828 # Commands used to finish a libtool library installation in a directory.
13829 finish_cmds=$lt_finish_cmds
13830
13831 # Same as above, but a single script fragment to be evaled but not shown.
13832 finish_eval=$lt_finish_eval
13833
13834 # Take the output of nm and produce a listing of raw symbols and C names.
13835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13836
13837 # Transform the output of nm in a proper C declaration
13838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13839
13840 # Transform the output of nm in a C name address pair
13841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13842
13843 # This is the shared library runtime path variable.
13844 runpath_var=$runpath_var
13845
13846 # This is the shared library path variable.
13847 shlibpath_var=$shlibpath_var
13848
13849 # Is shlibpath searched before the hard-coded library search path?
13850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13851
13852 # How to hardcode a shared library path into an executable.
13853 hardcode_action=$hardcode_action_CXX
13854
13855 # Whether we should hardcode library paths into libraries.
13856 hardcode_into_libs=$hardcode_into_libs
13857
13858 # Flag to hardcode \$libdir into a binary during linking.
13859 # This must work even if \$libdir does not exist.
13860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13861
13862 # If ld is used when linking, flag to hardcode \$libdir into
13863 # a binary during linking. This must work even if \$libdir does
13864 # not exist.
13865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13866
13867 # Whether we need a single -rpath flag with a separated argument.
13868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13869
13870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13871 # resulting binary.
13872 hardcode_direct=$hardcode_direct_CXX
13873
13874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13875 # resulting binary.
13876 hardcode_minus_L=$hardcode_minus_L_CXX
13877
13878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13879 # the resulting binary.
13880 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13881
13882 # Set to yes if building a shared library automatically hardcodes DIR into the library
13883 # and all subsequent libraries and executables linked against it.
13884 hardcode_automatic=$hardcode_automatic_CXX
13885
13886 # Variables whose values should be saved in libtool wrapper scripts and
13887 # restored at relink time.
13888 variables_saved_for_relink="$variables_saved_for_relink"
13889
13890 # Whether libtool must link a program against all its dependency libraries.
13891 link_all_deplibs=$link_all_deplibs_CXX
13892
13893 # Compile-time system search path for libraries
13894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13895
13896 # Run-time system search path for libraries
13897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13898
13899 # Fix the shell variable \$srcfile for the compiler.
13900 fix_srcfile_path="$fix_srcfile_path_CXX"
13901
13902 # Set to yes if exported symbols are required.
13903 always_export_symbols=$always_export_symbols_CXX
13904
13905 # The commands to list exported symbols.
13906 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13907
13908 # The commands to extract the exported symbol list from a shared archive.
13909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13910
13911 # Symbols that should not be listed in the preloaded symbols.
13912 exclude_expsyms=$lt_exclude_expsyms_CXX
13913
13914 # Symbols that must always be exported.
13915 include_expsyms=$lt_include_expsyms_CXX
13916
13917 # ### END LIBTOOL TAG CONFIG: $tagname
13918
13919 __EOF__
13920
13921
13922 else
13923   # If there is no Makefile yet, we rely on a make rule to execute
13924   # `config.status --recheck' to rerun these tests and create the
13925   # libtool script then.
13926   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13927   if test -f "$ltmain_in"; then
13928     test -f Makefile && make "$ltmain"
13929   fi
13930 fi
13931
13932
13933 ac_ext=c
13934 ac_cpp='$CPP $CPPFLAGS'
13935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13938
13939 CC=$lt_save_CC
13940 LDCXX=$LD
13941 LD=$lt_save_LD
13942 GCC=$lt_save_GCC
13943 with_gnu_ldcxx=$with_gnu_ld
13944 with_gnu_ld=$lt_save_with_gnu_ld
13945 lt_cv_path_LDCXX=$lt_cv_path_LD
13946 lt_cv_path_LD=$lt_save_path_LD
13947 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13948 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13949
13950         else
13951           tagname=""
13952         fi
13953         ;;
13954
13955       F77)
13956         if test -n "$F77" && test "X$F77" != "Xno"; then
13957
13958 ac_ext=f
13959 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13960 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13961 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13962
13963
13964 archive_cmds_need_lc_F77=no
13965 allow_undefined_flag_F77=
13966 always_export_symbols_F77=no
13967 archive_expsym_cmds_F77=
13968 export_dynamic_flag_spec_F77=
13969 hardcode_direct_F77=no
13970 hardcode_libdir_flag_spec_F77=
13971 hardcode_libdir_flag_spec_ld_F77=
13972 hardcode_libdir_separator_F77=
13973 hardcode_minus_L_F77=no
13974 hardcode_automatic_F77=no
13975 module_cmds_F77=
13976 module_expsym_cmds_F77=
13977 link_all_deplibs_F77=unknown
13978 old_archive_cmds_F77=$old_archive_cmds
13979 no_undefined_flag_F77=
13980 whole_archive_flag_spec_F77=
13981 enable_shared_with_static_runtimes_F77=no
13982
13983 # Source file extension for f77 test sources.
13984 ac_ext=f
13985
13986 # Object file extension for compiled f77 test sources.
13987 objext=o
13988 objext_F77=$objext
13989
13990 # Code to be used in simple compile tests
13991 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13992
13993 # Code to be used in simple link tests
13994 lt_simple_link_test_code="      program t\n      end\n"
13995
13996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13997
13998 # If no C compiler was specified, use CC.
13999 LTCC=${LTCC-"$CC"}
14000
14001 # If no C compiler flags were specified, use CFLAGS.
14002 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14003
14004 # Allow CC to be a program name with arguments.
14005 compiler=$CC
14006
14007
14008 # save warnings/boilerplate of simple test code
14009 ac_outfile=conftest.$ac_objext
14010 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14011 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14012 _lt_compiler_boilerplate=`cat conftest.err`
14013 $rm conftest*
14014
14015 ac_outfile=conftest.$ac_objext
14016 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14017 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14018 _lt_linker_boilerplate=`cat conftest.err`
14019 $rm conftest*
14020
14021
14022 # Allow CC to be a program name with arguments.
14023 lt_save_CC="$CC"
14024 CC=${F77-"f77"}
14025 compiler=$CC
14026 compiler_F77=$CC
14027 for cc_temp in $compiler""; do
14028   case $cc_temp in
14029     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14030     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14031     \-*) ;;
14032     *) break;;
14033   esac
14034 done
14035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14036
14037
14038 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14039 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14040 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14041 echo "${ECHO_T}$can_build_shared" >&6; }
14042
14043 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14044 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14045 test "$can_build_shared" = "no" && enable_shared=no
14046
14047 # On AIX, shared libraries and static libraries use the same namespace, and
14048 # are all built from PIC.
14049 case $host_os in
14050 aix3*)
14051   test "$enable_shared" = yes && enable_static=no
14052   if test -n "$RANLIB"; then
14053     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14054     postinstall_cmds='$RANLIB $lib'
14055   fi
14056   ;;
14057 aix4* | aix5*)
14058   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14059     test "$enable_shared" = yes && enable_static=no
14060   fi
14061   ;;
14062 esac
14063 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14064 echo "${ECHO_T}$enable_shared" >&6; }
14065
14066 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14067 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14068 # Make sure either enable_shared or enable_static is yes.
14069 test "$enable_shared" = yes || enable_static=yes
14070 { echo "$as_me:$LINENO: result: $enable_static" >&5
14071 echo "${ECHO_T}$enable_static" >&6; }
14072
14073 GCC_F77="$G77"
14074 LD_F77="$LD"
14075
14076 lt_prog_compiler_wl_F77=
14077 lt_prog_compiler_pic_F77=
14078 lt_prog_compiler_static_F77=
14079
14080 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14082
14083   if test "$GCC" = yes; then
14084     lt_prog_compiler_wl_F77='-Wl,'
14085     lt_prog_compiler_static_F77='-static'
14086
14087     case $host_os in
14088       aix*)
14089       # All AIX code is PIC.
14090       if test "$host_cpu" = ia64; then
14091         # AIX 5 now supports IA64 processor
14092         lt_prog_compiler_static_F77='-Bstatic'
14093       fi
14094       ;;
14095
14096     amigaos*)
14097       # FIXME: we need at least 68020 code to build shared libraries, but
14098       # adding the `-m68020' flag to GCC prevents building anything better,
14099       # like `-m68040'.
14100       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14101       ;;
14102
14103     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14104       # PIC is the default for these OSes.
14105       ;;
14106
14107     mingw* | pw32* | os2*)
14108       # This hack is so that the source file can tell whether it is being
14109       # built for inclusion in a dll (and should export symbols for example).
14110       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14111       ;;
14112
14113     darwin* | rhapsody*)
14114       # PIC is the default on this platform
14115       # Common symbols not allowed in MH_DYLIB files
14116       lt_prog_compiler_pic_F77='-fno-common'
14117       ;;
14118
14119     interix3*)
14120       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14121       # Instead, we relocate shared libraries at runtime.
14122       ;;
14123
14124     msdosdjgpp*)
14125       # Just because we use GCC doesn't mean we suddenly get shared libraries
14126       # on systems that don't support them.
14127       lt_prog_compiler_can_build_shared_F77=no
14128       enable_shared=no
14129       ;;
14130
14131     sysv4*MP*)
14132       if test -d /usr/nec; then
14133         lt_prog_compiler_pic_F77=-Kconform_pic
14134       fi
14135       ;;
14136
14137     hpux*)
14138       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14139       # not for PA HP-UX.
14140       case $host_cpu in
14141       hppa*64*|ia64*)
14142         # +Z the default
14143         ;;
14144       *)
14145         lt_prog_compiler_pic_F77='-fPIC'
14146         ;;
14147       esac
14148       ;;
14149
14150     *)
14151       lt_prog_compiler_pic_F77='-fPIC'
14152       ;;
14153     esac
14154   else
14155     # PORTME Check for flag to pass linker flags through the system compiler.
14156     case $host_os in
14157     aix*)
14158       lt_prog_compiler_wl_F77='-Wl,'
14159       if test "$host_cpu" = ia64; then
14160         # AIX 5 now supports IA64 processor
14161         lt_prog_compiler_static_F77='-Bstatic'
14162       else
14163         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14164       fi
14165       ;;
14166       darwin*)
14167         # PIC is the default on this platform
14168         # Common symbols not allowed in MH_DYLIB files
14169        case $cc_basename in
14170          xlc*)
14171          lt_prog_compiler_pic_F77='-qnocommon'
14172          lt_prog_compiler_wl_F77='-Wl,'
14173          ;;
14174        esac
14175        ;;
14176
14177     mingw* | pw32* | os2*)
14178       # This hack is so that the source file can tell whether it is being
14179       # built for inclusion in a dll (and should export symbols for example).
14180       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14181       ;;
14182
14183     hpux9* | hpux10* | hpux11*)
14184       lt_prog_compiler_wl_F77='-Wl,'
14185       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14186       # not for PA HP-UX.
14187       case $host_cpu in
14188       hppa*64*|ia64*)
14189         # +Z the default
14190         ;;
14191       *)
14192         lt_prog_compiler_pic_F77='+Z'
14193         ;;
14194       esac
14195       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14196       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14197       ;;
14198
14199     irix5* | irix6* | nonstopux*)
14200       lt_prog_compiler_wl_F77='-Wl,'
14201       # PIC (with -KPIC) is the default.
14202       lt_prog_compiler_static_F77='-non_shared'
14203       ;;
14204
14205     newsos6)
14206       lt_prog_compiler_pic_F77='-KPIC'
14207       lt_prog_compiler_static_F77='-Bstatic'
14208       ;;
14209
14210     linux*)
14211       case $cc_basename in
14212       icc* | ecc*)
14213         lt_prog_compiler_wl_F77='-Wl,'
14214         lt_prog_compiler_pic_F77='-KPIC'
14215         lt_prog_compiler_static_F77='-static'
14216         ;;
14217       pgcc* | pgf77* | pgf90* | pgf95*)
14218         # Portland Group compilers (*not* the Pentium gcc compiler,
14219         # which looks to be a dead project)
14220         lt_prog_compiler_wl_F77='-Wl,'
14221         lt_prog_compiler_pic_F77='-fpic'
14222         lt_prog_compiler_static_F77='-Bstatic'
14223         ;;
14224       ccc*)
14225         lt_prog_compiler_wl_F77='-Wl,'
14226         # All Alpha code is PIC.
14227         lt_prog_compiler_static_F77='-non_shared'
14228         ;;
14229       esac
14230       ;;
14231
14232     osf3* | osf4* | osf5*)
14233       lt_prog_compiler_wl_F77='-Wl,'
14234       # All OSF/1 code is PIC.
14235       lt_prog_compiler_static_F77='-non_shared'
14236       ;;
14237
14238     solaris*)
14239       lt_prog_compiler_pic_F77='-KPIC'
14240       lt_prog_compiler_static_F77='-Bstatic'
14241       case $cc_basename in
14242       f77* | f90* | f95*)
14243         lt_prog_compiler_wl_F77='-Qoption ld ';;
14244       *)
14245         lt_prog_compiler_wl_F77='-Wl,';;
14246       esac
14247       ;;
14248
14249     sunos4*)
14250       lt_prog_compiler_wl_F77='-Qoption ld '
14251       lt_prog_compiler_pic_F77='-PIC'
14252       lt_prog_compiler_static_F77='-Bstatic'
14253       ;;
14254
14255     sysv4 | sysv4.2uw2* | sysv4.3*)
14256       lt_prog_compiler_wl_F77='-Wl,'
14257       lt_prog_compiler_pic_F77='-KPIC'
14258       lt_prog_compiler_static_F77='-Bstatic'
14259       ;;
14260
14261     sysv4*MP*)
14262       if test -d /usr/nec ;then
14263         lt_prog_compiler_pic_F77='-Kconform_pic'
14264         lt_prog_compiler_static_F77='-Bstatic'
14265       fi
14266       ;;
14267
14268     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14269       lt_prog_compiler_wl_F77='-Wl,'
14270       lt_prog_compiler_pic_F77='-KPIC'
14271       lt_prog_compiler_static_F77='-Bstatic'
14272       ;;
14273
14274     unicos*)
14275       lt_prog_compiler_wl_F77='-Wl,'
14276       lt_prog_compiler_can_build_shared_F77=no
14277       ;;
14278
14279     uts4*)
14280       lt_prog_compiler_pic_F77='-pic'
14281       lt_prog_compiler_static_F77='-Bstatic'
14282       ;;
14283
14284     *)
14285       lt_prog_compiler_can_build_shared_F77=no
14286       ;;
14287     esac
14288   fi
14289
14290 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14291 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14292
14293 #
14294 # Check to make sure the PIC flag actually works.
14295 #
14296 if test -n "$lt_prog_compiler_pic_F77"; then
14297
14298 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14299 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14300 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   lt_prog_compiler_pic_works_F77=no
14304   ac_outfile=conftest.$ac_objext
14305    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14306    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14307    # Insert the option either (1) after the last *FLAGS variable, or
14308    # (2) before a word containing "conftest.", or (3) at the end.
14309    # Note that $ac_compile itself does not contain backslashes and begins
14310    # with a dollar sign (not a hyphen), so the echo should work correctly.
14311    # The option is referenced via a variable to avoid confusing sed.
14312    lt_compile=`echo "$ac_compile" | $SED \
14313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315    -e 's:$: $lt_compiler_flag:'`
14316    (eval echo "\"\$as_me:14316: $lt_compile\"" >&5)
14317    (eval "$lt_compile" 2>conftest.err)
14318    ac_status=$?
14319    cat conftest.err >&5
14320    echo "$as_me:14320: \$? = $ac_status" >&5
14321    if (exit $ac_status) && test -s "$ac_outfile"; then
14322      # The compiler can only warn and ignore the option if not recognized
14323      # So say no if there are warnings other than the usual output.
14324      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327        lt_prog_compiler_pic_works_F77=yes
14328      fi
14329    fi
14330    $rm conftest*
14331
14332 fi
14333 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14334 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14335
14336 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14337     case $lt_prog_compiler_pic_F77 in
14338      "" | " "*) ;;
14339      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14340      esac
14341 else
14342     lt_prog_compiler_pic_F77=
14343      lt_prog_compiler_can_build_shared_F77=no
14344 fi
14345
14346 fi
14347 case $host_os in
14348   # For platforms which do not support PIC, -DPIC is meaningless:
14349   *djgpp*)
14350     lt_prog_compiler_pic_F77=
14351     ;;
14352   *)
14353     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14354     ;;
14355 esac
14356
14357 #
14358 # Check to make sure the static flag actually works.
14359 #
14360 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14361 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14362 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14363 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366   lt_prog_compiler_static_works_F77=no
14367    save_LDFLAGS="$LDFLAGS"
14368    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14369    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14370    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14371      # The linker can only warn and ignore the option if not recognized
14372      # So say no if there are warnings
14373      if test -s conftest.err; then
14374        # Append any errors to the config.log.
14375        cat conftest.err 1>&5
14376        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14377        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14378        if diff conftest.exp conftest.er2 >/dev/null; then
14379          lt_prog_compiler_static_works_F77=yes
14380        fi
14381      else
14382        lt_prog_compiler_static_works_F77=yes
14383      fi
14384    fi
14385    $rm conftest*
14386    LDFLAGS="$save_LDFLAGS"
14387
14388 fi
14389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14390 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14391
14392 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14393     :
14394 else
14395     lt_prog_compiler_static_F77=
14396 fi
14397
14398
14399 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14401 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404   lt_cv_prog_compiler_c_o_F77=no
14405    $rm -r conftest 2>/dev/null
14406    mkdir conftest
14407    cd conftest
14408    mkdir out
14409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14410
14411    lt_compiler_flag="-o out/conftest2.$ac_objext"
14412    # Insert the option either (1) after the last *FLAGS variable, or
14413    # (2) before a word containing "conftest.", or (3) at the end.
14414    # Note that $ac_compile itself does not contain backslashes and begins
14415    # with a dollar sign (not a hyphen), so the echo should work correctly.
14416    lt_compile=`echo "$ac_compile" | $SED \
14417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14419    -e 's:$: $lt_compiler_flag:'`
14420    (eval echo "\"\$as_me:14420: $lt_compile\"" >&5)
14421    (eval "$lt_compile" 2>out/conftest.err)
14422    ac_status=$?
14423    cat out/conftest.err >&5
14424    echo "$as_me:14424: \$? = $ac_status" >&5
14425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14426    then
14427      # The compiler can only warn and ignore the option if not recognized
14428      # So say no if there are warnings
14429      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14430      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14431      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14432        lt_cv_prog_compiler_c_o_F77=yes
14433      fi
14434    fi
14435    chmod u+w . 2>&5
14436    $rm conftest*
14437    # SGI C++ compiler will create directory out/ii_files/ for
14438    # template instantiation
14439    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14440    $rm out/* && rmdir out
14441    cd ..
14442    rmdir conftest
14443    $rm conftest*
14444
14445 fi
14446 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14447 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14448
14449
14450 hard_links="nottested"
14451 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14452   # do not overwrite the value of need_locks provided by the user
14453   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14454 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14455   hard_links=yes
14456   $rm conftest*
14457   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14458   touch conftest.a
14459   ln conftest.a conftest.b 2>&5 || hard_links=no
14460   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14461   { echo "$as_me:$LINENO: result: $hard_links" >&5
14462 echo "${ECHO_T}$hard_links" >&6; }
14463   if test "$hard_links" = no; then
14464     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14465 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14466     need_locks=warn
14467   fi
14468 else
14469   need_locks=no
14470 fi
14471
14472 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14473 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14474
14475   runpath_var=
14476   allow_undefined_flag_F77=
14477   enable_shared_with_static_runtimes_F77=no
14478   archive_cmds_F77=
14479   archive_expsym_cmds_F77=
14480   old_archive_From_new_cmds_F77=
14481   old_archive_from_expsyms_cmds_F77=
14482   export_dynamic_flag_spec_F77=
14483   whole_archive_flag_spec_F77=
14484   thread_safe_flag_spec_F77=
14485   hardcode_libdir_flag_spec_F77=
14486   hardcode_libdir_flag_spec_ld_F77=
14487   hardcode_libdir_separator_F77=
14488   hardcode_direct_F77=no
14489   hardcode_minus_L_F77=no
14490   hardcode_shlibpath_var_F77=unsupported
14491   link_all_deplibs_F77=unknown
14492   hardcode_automatic_F77=no
14493   module_cmds_F77=
14494   module_expsym_cmds_F77=
14495   always_export_symbols_F77=no
14496   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14497   # include_expsyms should be a list of space-separated symbols to be *always*
14498   # included in the symbol list
14499   include_expsyms_F77=
14500   # exclude_expsyms can be an extended regexp of symbols to exclude
14501   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14502   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14503   # as well as any symbol that contains `d'.
14504   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14505   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14506   # platforms (ab)use it in PIC code, but their linkers get confused if
14507   # the symbol is explicitly referenced.  Since portable code cannot
14508   # rely on this symbol name, it's probably fine to never include it in
14509   # preloaded symbol tables.
14510   extract_expsyms_cmds=
14511   # Just being paranoid about ensuring that cc_basename is set.
14512   for cc_temp in $compiler""; do
14513   case $cc_temp in
14514     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14515     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14516     \-*) ;;
14517     *) break;;
14518   esac
14519 done
14520 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14521
14522   case $host_os in
14523   cygwin* | mingw* | pw32*)
14524     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14525     # When not using gcc, we currently assume that we are using
14526     # Microsoft Visual C++.
14527     if test "$GCC" != yes; then
14528       with_gnu_ld=no
14529     fi
14530     ;;
14531   interix*)
14532     # we just hope/assume this is gcc and not c89 (= MSVC++)
14533     with_gnu_ld=yes
14534     ;;
14535   openbsd*)
14536     with_gnu_ld=no
14537     ;;
14538   esac
14539
14540   ld_shlibs_F77=yes
14541   if test "$with_gnu_ld" = yes; then
14542     # If archive_cmds runs LD, not CC, wlarc should be empty
14543     wlarc='${wl}'
14544
14545     # Set some defaults for GNU ld with shared library support. These
14546     # are reset later if shared libraries are not supported. Putting them
14547     # here allows them to be overridden if necessary.
14548     runpath_var=LD_RUN_PATH
14549     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14550     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14551     # ancient GNU ld didn't support --whole-archive et. al.
14552     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14553         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14554       else
14555         whole_archive_flag_spec_F77=
14556     fi
14557     supports_anon_versioning=no
14558     case `$LD -v 2>/dev/null` in
14559       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14560       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14561       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14562       *\ 2.11.*) ;; # other 2.11 versions
14563       *) supports_anon_versioning=yes ;;
14564     esac
14565
14566     # See if GNU ld supports shared libraries.
14567     case $host_os in
14568     aix3* | aix4* | aix5*)
14569       # On AIX/PPC, the GNU linker is very broken
14570       if test "$host_cpu" != ia64; then
14571         ld_shlibs_F77=no
14572         cat <<EOF 1>&2
14573
14574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14575 *** to be unable to reliably create shared libraries on AIX.
14576 *** Therefore, libtool is disabling shared libraries support.  If you
14577 *** really care for shared libraries, you may want to modify your PATH
14578 *** so that a non-GNU linker is found, and then restart.
14579
14580 EOF
14581       fi
14582       ;;
14583
14584     amigaos*)
14585       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)'
14586       hardcode_libdir_flag_spec_F77='-L$libdir'
14587       hardcode_minus_L_F77=yes
14588
14589       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14590       # that the semantics of dynamic libraries on AmigaOS, at least up
14591       # to version 4, is to share data among multiple programs linked
14592       # with the same dynamic library.  Since this doesn't match the
14593       # behavior of shared libraries on other platforms, we can't use
14594       # them.
14595       ld_shlibs_F77=no
14596       ;;
14597
14598     beos*)
14599       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14600         allow_undefined_flag_F77=unsupported
14601         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14602         # support --undefined.  This deserves some investigation.  FIXME
14603         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14604       else
14605         ld_shlibs_F77=no
14606       fi
14607       ;;
14608
14609     cygwin* | mingw* | pw32*)
14610       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14611       # as there is no search path for DLLs.
14612       hardcode_libdir_flag_spec_F77='-L$libdir'
14613       allow_undefined_flag_F77=unsupported
14614       always_export_symbols_F77=no
14615       enable_shared_with_static_runtimes_F77=yes
14616       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14617
14618       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14619         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14620         # If the export-symbols file already is a .def file (1st line
14621         # is EXPORTS), use it as is; otherwise, prepend...
14622         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14623           cp $export_symbols $output_objdir/$soname.def;
14624         else
14625           echo EXPORTS > $output_objdir/$soname.def;
14626           cat $export_symbols >> $output_objdir/$soname.def;
14627         fi~
14628         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14629       else
14630         ld_shlibs_F77=no
14631       fi
14632       ;;
14633
14634     interix3*)
14635       hardcode_direct_F77=no
14636       hardcode_shlibpath_var_F77=no
14637       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14638       export_dynamic_flag_spec_F77='${wl}-E'
14639       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14640       # Instead, shared libraries are loaded at an image base (0x10000000 by
14641       # default) and relocated if they conflict, which is a slow very memory
14642       # consuming and fragmenting process.  To avoid this, we pick a random,
14643       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14644       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14645       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'
14646       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'
14647       ;;
14648
14649     linux*)
14650       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14651         tmp_addflag=
14652         case $cc_basename,$host_cpu in
14653         pgcc*)                          # Portland Group C compiler
14654           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'
14655           tmp_addflag=' $pic_flag'
14656           ;;
14657         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14658           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'
14659           tmp_addflag=' $pic_flag -Mnomain' ;;
14660         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14661           tmp_addflag=' -i_dynamic' ;;
14662         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14663           tmp_addflag=' -i_dynamic -nofor_main' ;;
14664         ifc* | ifort*)                  # Intel Fortran compiler
14665           tmp_addflag=' -nofor_main' ;;
14666         esac
14667         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14668
14669         if test $supports_anon_versioning = yes; then
14670           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14671   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14672   $echo "local: *; };" >> $output_objdir/$libname.ver~
14673           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14674         fi
14675       else
14676         ld_shlibs_F77=no
14677       fi
14678       ;;
14679
14680     netbsd*)
14681       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14682         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14683         wlarc=
14684       else
14685         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14686         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14687       fi
14688       ;;
14689
14690     solaris*)
14691       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14692         ld_shlibs_F77=no
14693         cat <<EOF 1>&2
14694
14695 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14696 *** create shared libraries on Solaris systems.  Therefore, libtool
14697 *** is disabling shared libraries support.  We urge you to upgrade GNU
14698 *** binutils to release 2.9.1 or newer.  Another option is to modify
14699 *** your PATH or compiler configuration so that the native linker is
14700 *** used, and then restart.
14701
14702 EOF
14703       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14704         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14705         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14706       else
14707         ld_shlibs_F77=no
14708       fi
14709       ;;
14710
14711     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14712       case `$LD -v 2>&1` in
14713         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14714         ld_shlibs_F77=no
14715         cat <<_LT_EOF 1>&2
14716
14717 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14718 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14719 *** is disabling shared libraries support.  We urge you to upgrade GNU
14720 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14721 *** your PATH or compiler configuration so that the native linker is
14722 *** used, and then restart.
14723
14724 _LT_EOF
14725         ;;
14726         *)
14727           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14728             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14729             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14730             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14731           else
14732             ld_shlibs_F77=no
14733           fi
14734         ;;
14735       esac
14736       ;;
14737
14738     sunos4*)
14739       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14740       wlarc=
14741       hardcode_direct_F77=yes
14742       hardcode_shlibpath_var_F77=no
14743       ;;
14744
14745     *)
14746       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14747         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14748         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14749       else
14750         ld_shlibs_F77=no
14751       fi
14752       ;;
14753     esac
14754
14755     if test "$ld_shlibs_F77" = no; then
14756       runpath_var=
14757       hardcode_libdir_flag_spec_F77=
14758       export_dynamic_flag_spec_F77=
14759       whole_archive_flag_spec_F77=
14760     fi
14761   else
14762     # PORTME fill in a description of your system's linker (not GNU ld)
14763     case $host_os in
14764     aix3*)
14765       allow_undefined_flag_F77=unsupported
14766       always_export_symbols_F77=yes
14767       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'
14768       # Note: this linker hardcodes the directories in LIBPATH if there
14769       # are no directories specified by -L.
14770       hardcode_minus_L_F77=yes
14771       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14772         # Neither direct hardcoding nor static linking is supported with a
14773         # broken collect2.
14774         hardcode_direct_F77=unsupported
14775       fi
14776       ;;
14777
14778     aix4* | aix5*)
14779       if test "$host_cpu" = ia64; then
14780         # On IA64, the linker does run time linking by default, so we don't
14781         # have to do anything special.
14782         aix_use_runtimelinking=no
14783         exp_sym_flag='-Bexport'
14784         no_entry_flag=""
14785       else
14786         # If we're using GNU nm, then we don't want the "-C" option.
14787         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14788         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14789           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'
14790         else
14791           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'
14792         fi
14793         aix_use_runtimelinking=no
14794
14795         # Test if we are trying to use run time linking or normal
14796         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14797         # need to do runtime linking.
14798         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14799           for ld_flag in $LDFLAGS; do
14800           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14801             aix_use_runtimelinking=yes
14802             break
14803           fi
14804           done
14805           ;;
14806         esac
14807
14808         exp_sym_flag='-bexport'
14809         no_entry_flag='-bnoentry'
14810       fi
14811
14812       # When large executables or shared objects are built, AIX ld can
14813       # have problems creating the table of contents.  If linking a library
14814       # or program results in "error TOC overflow" add -mminimal-toc to
14815       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14816       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14817
14818       archive_cmds_F77=''
14819       hardcode_direct_F77=yes
14820       hardcode_libdir_separator_F77=':'
14821       link_all_deplibs_F77=yes
14822
14823       if test "$GCC" = yes; then
14824         case $host_os in aix4.[012]|aix4.[012].*)
14825         # We only want to do this on AIX 4.2 and lower, the check
14826         # below for broken collect2 doesn't work under 4.3+
14827           collect2name=`${CC} -print-prog-name=collect2`
14828           if test -f "$collect2name" && \
14829            strings "$collect2name" | grep resolve_lib_name >/dev/null
14830           then
14831           # We have reworked collect2
14832           hardcode_direct_F77=yes
14833           else
14834           # We have old collect2
14835           hardcode_direct_F77=unsupported
14836           # It fails to find uninstalled libraries when the uninstalled
14837           # path is not listed in the libpath.  Setting hardcode_minus_L
14838           # to unsupported forces relinking
14839           hardcode_minus_L_F77=yes
14840           hardcode_libdir_flag_spec_F77='-L$libdir'
14841           hardcode_libdir_separator_F77=
14842           fi
14843           ;;
14844         esac
14845         shared_flag='-shared'
14846         if test "$aix_use_runtimelinking" = yes; then
14847           shared_flag="$shared_flag "'${wl}-G'
14848         fi
14849       else
14850         # not using gcc
14851         if test "$host_cpu" = ia64; then
14852         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14853         # chokes on -Wl,-G. The following line is correct:
14854           shared_flag='-G'
14855         else
14856           if test "$aix_use_runtimelinking" = yes; then
14857             shared_flag='${wl}-G'
14858           else
14859             shared_flag='${wl}-bM:SRE'
14860           fi
14861         fi
14862       fi
14863
14864       # It seems that -bexpall does not export symbols beginning with
14865       # underscore (_), so it is better to generate a list of symbols to export.
14866       always_export_symbols_F77=yes
14867       if test "$aix_use_runtimelinking" = yes; then
14868         # Warning - without using the other runtime loading flags (-brtl),
14869         # -berok will link without error, but may produce a broken library.
14870         allow_undefined_flag_F77='-berok'
14871        # Determine the default libpath from the value encoded in an empty executable.
14872        cat >conftest.$ac_ext <<_ACEOF
14873       program main
14874
14875       end
14876 _ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_link") 2>conftest.er1
14885   ac_status=$?
14886   grep -v '^ *+' conftest.er1 >conftest.err
14887   rm -f conftest.er1
14888   cat conftest.err >&5
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); } &&
14891          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14892   { (case "(($ac_try" in
14893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894   *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897   (eval "$ac_try") 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; } &&
14901          { ac_try='test -s conftest$ac_exeext'
14902   { (case "(($ac_try" in
14903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904   *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907   (eval "$ac_try") 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); }; }; then
14911
14912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14913 }'`
14914 # Check for a 64-bit object if we didn't find anything.
14915 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14916 }'`; fi
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921
14922 fi
14923
14924 rm -f core conftest.err conftest.$ac_objext \
14925       conftest$ac_exeext conftest.$ac_ext
14926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14927
14928        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14929         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"
14930        else
14931         if test "$host_cpu" = ia64; then
14932           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14933           allow_undefined_flag_F77="-z nodefs"
14934           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"
14935         else
14936          # Determine the default libpath from the value encoded in an empty executable.
14937          cat >conftest.$ac_ext <<_ACEOF
14938       program main
14939
14940       end
14941 _ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (ac_try="$ac_link"
14944 case "(($ac_try" in
14945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946   *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949   (eval "$ac_link") 2>conftest.er1
14950   ac_status=$?
14951   grep -v '^ *+' conftest.er1 >conftest.err
14952   rm -f conftest.er1
14953   cat conftest.err >&5
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } &&
14956          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14957   { (case "(($ac_try" in
14958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959   *) ac_try_echo=$ac_try;;
14960 esac
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962   (eval "$ac_try") 2>&5
14963   ac_status=$?
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); }; } &&
14966          { ac_try='test -s conftest$ac_exeext'
14967   { (case "(($ac_try" in
14968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969   *) ac_try_echo=$ac_try;;
14970 esac
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972   (eval "$ac_try") 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; }; then
14976
14977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14978 }'`
14979 # Check for a 64-bit object if we didn't find anything.
14980 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14981 }'`; fi
14982 else
14983   echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985
14986
14987 fi
14988
14989 rm -f core conftest.err conftest.$ac_objext \
14990       conftest$ac_exeext conftest.$ac_ext
14991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14992
14993          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14994           # Warning - without using the other run time loading flags,
14995           # -berok will link without error, but may produce a broken library.
14996           no_undefined_flag_F77=' ${wl}-bernotok'
14997           allow_undefined_flag_F77=' ${wl}-berok'
14998           # Exported symbols can be pulled into shared objects from archives
14999           whole_archive_flag_spec_F77='$convenience'
15000           archive_cmds_need_lc_F77=yes
15001           # This is similar to how AIX traditionally builds its shared libraries.
15002           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'
15003         fi
15004       fi
15005       ;;
15006
15007     amigaos*)
15008       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)'
15009       hardcode_libdir_flag_spec_F77='-L$libdir'
15010       hardcode_minus_L_F77=yes
15011       # see comment about different semantics on the GNU ld section
15012       ld_shlibs_F77=no
15013       ;;
15014
15015     bsdi[45]*)
15016       export_dynamic_flag_spec_F77=-rdynamic
15017       ;;
15018
15019     cygwin* | mingw* | pw32*)
15020       # When not using gcc, we currently assume that we are using
15021       # Microsoft Visual C++.
15022       # hardcode_libdir_flag_spec is actually meaningless, as there is
15023       # no search path for DLLs.
15024       hardcode_libdir_flag_spec_F77=' '
15025       allow_undefined_flag_F77=unsupported
15026       # Tell ltmain to make .lib files, not .a files.
15027       libext=lib
15028       # Tell ltmain to make .dll files, not .so files.
15029       shrext_cmds=".dll"
15030       # FIXME: Setting linknames here is a bad hack.
15031       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15032       # The linker will automatically build a .lib file if we build a DLL.
15033       old_archive_From_new_cmds_F77='true'
15034       # FIXME: Should let the user specify the lib program.
15035       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15036       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15037       enable_shared_with_static_runtimes_F77=yes
15038       ;;
15039
15040     darwin* | rhapsody*)
15041       case $host_os in
15042         rhapsody* | darwin1.[012])
15043          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15044          ;;
15045        *) # Darwin 1.3 on
15046          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15047            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15048          else
15049            case ${MACOSX_DEPLOYMENT_TARGET} in
15050              10.[012])
15051                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15052                ;;
15053              10.*)
15054                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15055                ;;
15056            esac
15057          fi
15058          ;;
15059       esac
15060       archive_cmds_need_lc_F77=no
15061       hardcode_direct_F77=no
15062       hardcode_automatic_F77=yes
15063       hardcode_shlibpath_var_F77=unsupported
15064       whole_archive_flag_spec_F77=''
15065       link_all_deplibs_F77=yes
15066     if test "$GCC" = yes ; then
15067         output_verbose_link_cmd='echo'
15068         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15069       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15070       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15071       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15072       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}'
15073     else
15074       case $cc_basename in
15075         xlc*)
15076          output_verbose_link_cmd='echo'
15077          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15078          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15079           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15080          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15081           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}'
15082           ;;
15083        *)
15084          ld_shlibs_F77=no
15085           ;;
15086       esac
15087     fi
15088       ;;
15089
15090     dgux*)
15091       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15092       hardcode_libdir_flag_spec_F77='-L$libdir'
15093       hardcode_shlibpath_var_F77=no
15094       ;;
15095
15096     freebsd1*)
15097       ld_shlibs_F77=no
15098       ;;
15099
15100     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15101     # support.  Future versions do this automatically, but an explicit c++rt0.o
15102     # does not break anything, and helps significantly (at the cost of a little
15103     # extra space).
15104     freebsd2.2*)
15105       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15106       hardcode_libdir_flag_spec_F77='-R$libdir'
15107       hardcode_direct_F77=yes
15108       hardcode_shlibpath_var_F77=no
15109       ;;
15110
15111     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15112     freebsd2*)
15113       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15114       hardcode_direct_F77=yes
15115       hardcode_minus_L_F77=yes
15116       hardcode_shlibpath_var_F77=no
15117       ;;
15118
15119     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15120     freebsd* | kfreebsd*-gnu | dragonfly*)
15121       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15122       hardcode_libdir_flag_spec_F77='-R$libdir'
15123       hardcode_direct_F77=yes
15124       hardcode_shlibpath_var_F77=no
15125       ;;
15126
15127     hpux9*)
15128       if test "$GCC" = yes; then
15129         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'
15130       else
15131         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'
15132       fi
15133       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15134       hardcode_libdir_separator_F77=:
15135       hardcode_direct_F77=yes
15136
15137       # hardcode_minus_L: Not really in the search PATH,
15138       # but as the default location of the library.
15139       hardcode_minus_L_F77=yes
15140       export_dynamic_flag_spec_F77='${wl}-E'
15141       ;;
15142
15143     hpux10*)
15144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15145         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15146       else
15147         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15148       fi
15149       if test "$with_gnu_ld" = no; then
15150         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151         hardcode_libdir_separator_F77=:
15152
15153         hardcode_direct_F77=yes
15154         export_dynamic_flag_spec_F77='${wl}-E'
15155
15156         # hardcode_minus_L: Not really in the search PATH,
15157         # but as the default location of the library.
15158         hardcode_minus_L_F77=yes
15159       fi
15160       ;;
15161
15162     hpux11*)
15163       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15164         case $host_cpu in
15165         hppa*64*)
15166           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15167           ;;
15168         ia64*)
15169           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15170           ;;
15171         *)
15172           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15173           ;;
15174         esac
15175       else
15176         case $host_cpu in
15177         hppa*64*)
15178           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15179           ;;
15180         ia64*)
15181           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15182           ;;
15183         *)
15184           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15185           ;;
15186         esac
15187       fi
15188       if test "$with_gnu_ld" = no; then
15189         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15190         hardcode_libdir_separator_F77=:
15191
15192         case $host_cpu in
15193         hppa*64*|ia64*)
15194           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15195           hardcode_direct_F77=no
15196           hardcode_shlibpath_var_F77=no
15197           ;;
15198         *)
15199           hardcode_direct_F77=yes
15200           export_dynamic_flag_spec_F77='${wl}-E'
15201
15202           # hardcode_minus_L: Not really in the search PATH,
15203           # but as the default location of the library.
15204           hardcode_minus_L_F77=yes
15205           ;;
15206         esac
15207       fi
15208       ;;
15209
15210     irix5* | irix6* | nonstopux*)
15211       if test "$GCC" = yes; then
15212         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'
15213       else
15214         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'
15215         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15216       fi
15217       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15218       hardcode_libdir_separator_F77=:
15219       link_all_deplibs_F77=yes
15220       ;;
15221
15222     netbsd*)
15223       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15224         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15225       else
15226         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15227       fi
15228       hardcode_libdir_flag_spec_F77='-R$libdir'
15229       hardcode_direct_F77=yes
15230       hardcode_shlibpath_var_F77=no
15231       ;;
15232
15233     newsos6)
15234       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15235       hardcode_direct_F77=yes
15236       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15237       hardcode_libdir_separator_F77=:
15238       hardcode_shlibpath_var_F77=no
15239       ;;
15240
15241     openbsd*)
15242       hardcode_direct_F77=yes
15243       hardcode_shlibpath_var_F77=no
15244       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15245         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15246         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15247         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15248         export_dynamic_flag_spec_F77='${wl}-E'
15249       else
15250        case $host_os in
15251          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15252            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15253            hardcode_libdir_flag_spec_F77='-R$libdir'
15254            ;;
15255          *)
15256            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15257            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15258            ;;
15259        esac
15260       fi
15261       ;;
15262
15263     os2*)
15264       hardcode_libdir_flag_spec_F77='-L$libdir'
15265       hardcode_minus_L_F77=yes
15266       allow_undefined_flag_F77=unsupported
15267       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'
15268       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15269       ;;
15270
15271     osf3*)
15272       if test "$GCC" = yes; then
15273         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15274         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'
15275       else
15276         allow_undefined_flag_F77=' -expect_unresolved \*'
15277         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'
15278       fi
15279       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15280       hardcode_libdir_separator_F77=:
15281       ;;
15282
15283     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15284       if test "$GCC" = yes; then
15285         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15286         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'
15287         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15288       else
15289         allow_undefined_flag_F77=' -expect_unresolved \*'
15290         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'
15291         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~
15292         $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'
15293
15294         # Both c and cxx compiler support -rpath directly
15295         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15296       fi
15297       hardcode_libdir_separator_F77=:
15298       ;;
15299
15300     solaris*)
15301       no_undefined_flag_F77=' -z text'
15302       if test "$GCC" = yes; then
15303         wlarc='${wl}'
15304         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15305         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15306           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15307       else
15308         wlarc=''
15309         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15310         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15311         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15312       fi
15313       hardcode_libdir_flag_spec_F77='-R$libdir'
15314       hardcode_shlibpath_var_F77=no
15315       case $host_os in
15316       solaris2.[0-5] | solaris2.[0-5].*) ;;
15317       *)
15318         # The compiler driver will combine linker options so we
15319         # cannot just pass the convience library names through
15320         # without $wl, iff we do not link with $LD.
15321         # Luckily, gcc supports the same syntax we need for Sun Studio.
15322         # Supported since Solaris 2.6 (maybe 2.5.1?)
15323         case $wlarc in
15324         '')
15325           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15326         *)
15327           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15328         esac ;;
15329       esac
15330       link_all_deplibs_F77=yes
15331       ;;
15332
15333     sunos4*)
15334       if test "x$host_vendor" = xsequent; then
15335         # Use $CC to link under sequent, because it throws in some extra .o
15336         # files that make .init and .fini sections work.
15337         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15338       else
15339         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15340       fi
15341       hardcode_libdir_flag_spec_F77='-L$libdir'
15342       hardcode_direct_F77=yes
15343       hardcode_minus_L_F77=yes
15344       hardcode_shlibpath_var_F77=no
15345       ;;
15346
15347     sysv4)
15348       case $host_vendor in
15349         sni)
15350           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15351           hardcode_direct_F77=yes # is this really true???
15352         ;;
15353         siemens)
15354           ## LD is ld it makes a PLAMLIB
15355           ## CC just makes a GrossModule.
15356           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15357           reload_cmds_F77='$CC -r -o $output$reload_objs'
15358           hardcode_direct_F77=no
15359         ;;
15360         motorola)
15361           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15363         ;;
15364       esac
15365       runpath_var='LD_RUN_PATH'
15366       hardcode_shlibpath_var_F77=no
15367       ;;
15368
15369     sysv4.3*)
15370       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371       hardcode_shlibpath_var_F77=no
15372       export_dynamic_flag_spec_F77='-Bexport'
15373       ;;
15374
15375     sysv4*MP*)
15376       if test -d /usr/nec; then
15377         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15378         hardcode_shlibpath_var_F77=no
15379         runpath_var=LD_RUN_PATH
15380         hardcode_runpath_var=yes
15381         ld_shlibs_F77=yes
15382       fi
15383       ;;
15384
15385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15386       no_undefined_flag_F77='${wl}-z,text'
15387       archive_cmds_need_lc_F77=no
15388       hardcode_shlibpath_var_F77=no
15389       runpath_var='LD_RUN_PATH'
15390
15391       if test "$GCC" = yes; then
15392         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15393         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15394       else
15395         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15396         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15397       fi
15398       ;;
15399
15400     sysv5* | sco3.2v5* | sco5v6*)
15401       # Note: We can NOT use -z defs as we might desire, because we do not
15402       # link with -lc, and that would cause any symbols used from libc to
15403       # always be unresolved, which means just about no library would
15404       # ever link correctly.  If we're not using GNU ld we use -z text
15405       # though, which does catch some bad symbols but isn't as heavy-handed
15406       # as -z defs.
15407       no_undefined_flag_F77='${wl}-z,text'
15408       allow_undefined_flag_F77='${wl}-z,nodefs'
15409       archive_cmds_need_lc_F77=no
15410       hardcode_shlibpath_var_F77=no
15411       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15412       hardcode_libdir_separator_F77=':'
15413       link_all_deplibs_F77=yes
15414       export_dynamic_flag_spec_F77='${wl}-Bexport'
15415       runpath_var='LD_RUN_PATH'
15416
15417       if test "$GCC" = yes; then
15418         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15419         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15420       else
15421         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15423       fi
15424       ;;
15425
15426     uts4*)
15427       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428       hardcode_libdir_flag_spec_F77='-L$libdir'
15429       hardcode_shlibpath_var_F77=no
15430       ;;
15431
15432     *)
15433       ld_shlibs_F77=no
15434       ;;
15435     esac
15436   fi
15437
15438 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15439 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15440 test "$ld_shlibs_F77" = no && can_build_shared=no
15441
15442 #
15443 # Do we need to explicitly link libc?
15444 #
15445 case "x$archive_cmds_need_lc_F77" in
15446 x|xyes)
15447   # Assume -lc should be added
15448   archive_cmds_need_lc_F77=yes
15449
15450   if test "$enable_shared" = yes && test "$GCC" = yes; then
15451     case $archive_cmds_F77 in
15452     *'~'*)
15453       # FIXME: we may have to deal with multi-command sequences.
15454       ;;
15455     '$CC '*)
15456       # Test whether the compiler implicitly links with -lc since on some
15457       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15458       # to ld, don't add -lc before -lgcc.
15459       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15461       $rm conftest*
15462       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15463
15464       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465   (eval $ac_compile) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); } 2>conftest.err; then
15469         soname=conftest
15470         lib=conftest
15471         libobjs=conftest.$ac_objext
15472         deplibs=
15473         wl=$lt_prog_compiler_wl_F77
15474         pic_flag=$lt_prog_compiler_pic_F77
15475         compiler_flags=-v
15476         linker_flags=-v
15477         verstring=
15478         output_objdir=.
15479         libname=conftest
15480         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15481         allow_undefined_flag_F77=
15482         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15483   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15484   ac_status=$?
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); }
15487         then
15488           archive_cmds_need_lc_F77=no
15489         else
15490           archive_cmds_need_lc_F77=yes
15491         fi
15492         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15493       else
15494         cat conftest.err 1>&5
15495       fi
15496       $rm conftest*
15497       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15498 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15499       ;;
15500     esac
15501   fi
15502   ;;
15503 esac
15504
15505 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15506 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15507 library_names_spec=
15508 libname_spec='lib$name'
15509 soname_spec=
15510 shrext_cmds=".so"
15511 postinstall_cmds=
15512 postuninstall_cmds=
15513 finish_cmds=
15514 finish_eval=
15515 shlibpath_var=
15516 shlibpath_overrides_runpath=unknown
15517 version_type=none
15518 dynamic_linker="$host_os ld.so"
15519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15520 if test "$GCC" = yes; then
15521   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15522   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15523     # if the path contains ";" then we assume it to be the separator
15524     # otherwise default to the standard path separator (i.e. ":") - it is
15525     # assumed that no part of a normal pathname contains ";" but that should
15526     # okay in the real world where ";" in dirpaths is itself problematic.
15527     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15528   else
15529     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15530   fi
15531 else
15532   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15533 fi
15534 need_lib_prefix=unknown
15535 hardcode_into_libs=no
15536
15537 # when you set need_version to no, make sure it does not cause -set_version
15538 # flags to be left without arguments
15539 need_version=unknown
15540
15541 case $host_os in
15542 aix3*)
15543   version_type=linux
15544   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15545   shlibpath_var=LIBPATH
15546
15547   # AIX 3 has no versioning support, so we append a major version to the name.
15548   soname_spec='${libname}${release}${shared_ext}$major'
15549   ;;
15550
15551 aix4* | aix5*)
15552   version_type=linux
15553   need_lib_prefix=no
15554   need_version=no
15555   hardcode_into_libs=yes
15556   if test "$host_cpu" = ia64; then
15557     # AIX 5 supports IA64
15558     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15559     shlibpath_var=LD_LIBRARY_PATH
15560   else
15561     # With GCC up to 2.95.x, collect2 would create an import file
15562     # for dependence libraries.  The import file would start with
15563     # the line `#! .'.  This would cause the generated library to
15564     # depend on `.', always an invalid library.  This was fixed in
15565     # development snapshots of GCC prior to 3.0.
15566     case $host_os in
15567       aix4 | aix4.[01] | aix4.[01].*)
15568       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15569            echo ' yes '
15570            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15571         :
15572       else
15573         can_build_shared=no
15574       fi
15575       ;;
15576     esac
15577     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15578     # soname into executable. Probably we can add versioning support to
15579     # collect2, so additional links can be useful in future.
15580     if test "$aix_use_runtimelinking" = yes; then
15581       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15582       # instead of lib<name>.a to let people know that these are not
15583       # typical AIX shared libraries.
15584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585     else
15586       # We preserve .a as extension for shared libraries through AIX4.2
15587       # and later when we are not doing run time linking.
15588       library_names_spec='${libname}${release}.a $libname.a'
15589       soname_spec='${libname}${release}${shared_ext}$major'
15590     fi
15591     shlibpath_var=LIBPATH
15592   fi
15593   ;;
15594
15595 amigaos*)
15596   library_names_spec='$libname.ixlibrary $libname.a'
15597   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15598   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'
15599   ;;
15600
15601 beos*)
15602   library_names_spec='${libname}${shared_ext}'
15603   dynamic_linker="$host_os ld.so"
15604   shlibpath_var=LIBRARY_PATH
15605   ;;
15606
15607 bsdi[45]*)
15608   version_type=linux
15609   need_version=no
15610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611   soname_spec='${libname}${release}${shared_ext}$major'
15612   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15613   shlibpath_var=LD_LIBRARY_PATH
15614   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15615   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15616   # the default ld.so.conf also contains /usr/contrib/lib and
15617   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15618   # libtool to hard-code these into programs
15619   ;;
15620
15621 cygwin* | mingw* | pw32*)
15622   version_type=windows
15623   shrext_cmds=".dll"
15624   need_version=no
15625   need_lib_prefix=no
15626
15627   case $GCC,$host_os in
15628   yes,cygwin* | yes,mingw* | yes,pw32*)
15629     library_names_spec='$libname.dll.a'
15630     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15631     postinstall_cmds='base_file=`basename \${file}`~
15632       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15633       dldir=$destdir/`dirname \$dlpath`~
15634       test -d \$dldir || mkdir -p \$dldir~
15635       $install_prog $dir/$dlname \$dldir/$dlname~
15636       chmod a+x \$dldir/$dlname'
15637     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15638       dlpath=$dir/\$dldll~
15639        $rm \$dlpath'
15640     shlibpath_overrides_runpath=yes
15641
15642     case $host_os in
15643     cygwin*)
15644       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15645       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15646       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15647       ;;
15648     mingw*)
15649       # MinGW DLLs use traditional 'lib' prefix
15650       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15652       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15653         # It is most probably a Windows format PATH printed by
15654         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15655         # path with ; separators, and with drive letters. We can handle the
15656         # drive letters (cygwin fileutils understands them), so leave them,
15657         # especially as we might pass files found there to a mingw objdump,
15658         # which wouldn't understand a cygwinified path. Ahh.
15659         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15660       else
15661         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15662       fi
15663       ;;
15664     pw32*)
15665       # pw32 DLLs use 'pw' prefix rather than 'lib'
15666       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15667       ;;
15668     esac
15669     ;;
15670
15671   *)
15672     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15673     ;;
15674   esac
15675   dynamic_linker='Win32 ld.exe'
15676   # FIXME: first we should search . and the directory the executable is in
15677   shlibpath_var=PATH
15678   ;;
15679
15680 darwin* | rhapsody*)
15681   dynamic_linker="$host_os dyld"
15682   version_type=darwin
15683   need_lib_prefix=no
15684   need_version=no
15685   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15686   soname_spec='${libname}${release}${major}$shared_ext'
15687   shlibpath_overrides_runpath=yes
15688   shlibpath_var=DYLD_LIBRARY_PATH
15689   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15690   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15691   if test "$GCC" = yes; then
15692     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15693   else
15694     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15695   fi
15696   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15697   ;;
15698
15699 dgux*)
15700   version_type=linux
15701   need_lib_prefix=no
15702   need_version=no
15703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15704   soname_spec='${libname}${release}${shared_ext}$major'
15705   shlibpath_var=LD_LIBRARY_PATH
15706   ;;
15707
15708 freebsd1*)
15709   dynamic_linker=no
15710   ;;
15711
15712 kfreebsd*-gnu)
15713   version_type=linux
15714   need_lib_prefix=no
15715   need_version=no
15716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15717   soname_spec='${libname}${release}${shared_ext}$major'
15718   shlibpath_var=LD_LIBRARY_PATH
15719   shlibpath_overrides_runpath=no
15720   hardcode_into_libs=yes
15721   dynamic_linker='GNU ld.so'
15722   ;;
15723
15724 freebsd* | dragonfly*)
15725   # DragonFly does not have aout.  When/if they implement a new
15726   # versioning mechanism, adjust this.
15727   if test -x /usr/bin/objformat; then
15728     objformat=`/usr/bin/objformat`
15729   else
15730     case $host_os in
15731     freebsd[123]*) objformat=aout ;;
15732     *) objformat=elf ;;
15733     esac
15734   fi
15735   version_type=freebsd-$objformat
15736   case $version_type in
15737     freebsd-elf*)
15738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15739       need_version=no
15740       need_lib_prefix=no
15741       ;;
15742     freebsd-*)
15743       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15744       need_version=yes
15745       ;;
15746   esac
15747   shlibpath_var=LD_LIBRARY_PATH
15748   case $host_os in
15749   freebsd2*)
15750     shlibpath_overrides_runpath=yes
15751     ;;
15752   freebsd3.[01]* | freebsdelf3.[01]*)
15753     shlibpath_overrides_runpath=yes
15754     hardcode_into_libs=yes
15755     ;;
15756   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15757   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15758     shlibpath_overrides_runpath=no
15759     hardcode_into_libs=yes
15760     ;;
15761   freebsd*) # from 4.6 on
15762     shlibpath_overrides_runpath=yes
15763     hardcode_into_libs=yes
15764     ;;
15765   esac
15766   ;;
15767
15768 gnu*)
15769   version_type=linux
15770   need_lib_prefix=no
15771   need_version=no
15772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15773   soname_spec='${libname}${release}${shared_ext}$major'
15774   shlibpath_var=LD_LIBRARY_PATH
15775   hardcode_into_libs=yes
15776   ;;
15777
15778 hpux9* | hpux10* | hpux11*)
15779   # Give a soname corresponding to the major version so that dld.sl refuses to
15780   # link against other versions.
15781   version_type=sunos
15782   need_lib_prefix=no
15783   need_version=no
15784   case $host_cpu in
15785   ia64*)
15786     shrext_cmds='.so'
15787     hardcode_into_libs=yes
15788     dynamic_linker="$host_os dld.so"
15789     shlibpath_var=LD_LIBRARY_PATH
15790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792     soname_spec='${libname}${release}${shared_ext}$major'
15793     if test "X$HPUX_IA64_MODE" = X32; then
15794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15795     else
15796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15797     fi
15798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15799     ;;
15800    hppa*64*)
15801      shrext_cmds='.sl'
15802      hardcode_into_libs=yes
15803      dynamic_linker="$host_os dld.sl"
15804      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15805      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15806      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807      soname_spec='${libname}${release}${shared_ext}$major'
15808      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15809      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15810      ;;
15811    *)
15812     shrext_cmds='.sl'
15813     dynamic_linker="$host_os dld.sl"
15814     shlibpath_var=SHLIB_PATH
15815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
15819   esac
15820   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15821   postinstall_cmds='chmod 555 $lib'
15822   ;;
15823
15824 interix3*)
15825   version_type=linux
15826   need_lib_prefix=no
15827   need_version=no
15828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15829   soname_spec='${libname}${release}${shared_ext}$major'
15830   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15831   shlibpath_var=LD_LIBRARY_PATH
15832   shlibpath_overrides_runpath=no
15833   hardcode_into_libs=yes
15834   ;;
15835
15836 irix5* | irix6* | nonstopux*)
15837   case $host_os in
15838     nonstopux*) version_type=nonstopux ;;
15839     *)
15840         if test "$lt_cv_prog_gnu_ld" = yes; then
15841                 version_type=linux
15842         else
15843                 version_type=irix
15844         fi ;;
15845   esac
15846   need_lib_prefix=no
15847   need_version=no
15848   soname_spec='${libname}${release}${shared_ext}$major'
15849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15850   case $host_os in
15851   irix5* | nonstopux*)
15852     libsuff= shlibsuff=
15853     ;;
15854   *)
15855     case $LD in # libtool.m4 will add one of these switches to LD
15856     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15857       libsuff= shlibsuff= libmagic=32-bit;;
15858     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15859       libsuff=32 shlibsuff=N32 libmagic=N32;;
15860     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15861       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15862     *) libsuff= shlibsuff= libmagic=never-match;;
15863     esac
15864     ;;
15865   esac
15866   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15867   shlibpath_overrides_runpath=no
15868   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15869   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15870   hardcode_into_libs=yes
15871   ;;
15872
15873 # No shared lib support for Linux oldld, aout, or coff.
15874 linux*oldld* | linux*aout* | linux*coff*)
15875   dynamic_linker=no
15876   ;;
15877
15878 # This must be Linux ELF.
15879 linux*)
15880   version_type=linux
15881   need_lib_prefix=no
15882   need_version=no
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15886   shlibpath_var=LD_LIBRARY_PATH
15887   shlibpath_overrides_runpath=no
15888   # This implies no fast_install, which is unacceptable.
15889   # Some rework will be needed to allow for fast_install
15890   # before this can be enabled.
15891   hardcode_into_libs=yes
15892
15893   # Append ld.so.conf contents to the search path
15894   if test -f /etc/ld.so.conf; then
15895     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15896     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15897   fi
15898
15899   # We used to test for /lib/ld.so.1 and disable shared libraries on
15900   # powerpc, because MkLinux only supported shared libraries with the
15901   # GNU dynamic linker.  Since this was broken with cross compilers,
15902   # most powerpc-linux boxes support dynamic linking these days and
15903   # people can always --disable-shared, the test was removed, and we
15904   # assume the GNU/Linux dynamic linker is in use.
15905   dynamic_linker='GNU/Linux ld.so'
15906   ;;
15907
15908 knetbsd*-gnu)
15909   version_type=linux
15910   need_lib_prefix=no
15911   need_version=no
15912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15913   soname_spec='${libname}${release}${shared_ext}$major'
15914   shlibpath_var=LD_LIBRARY_PATH
15915   shlibpath_overrides_runpath=no
15916   hardcode_into_libs=yes
15917   dynamic_linker='GNU ld.so'
15918   ;;
15919
15920 netbsd*)
15921   version_type=sunos
15922   need_lib_prefix=no
15923   need_version=no
15924   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15926     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15927     dynamic_linker='NetBSD (a.out) ld.so'
15928   else
15929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15930     soname_spec='${libname}${release}${shared_ext}$major'
15931     dynamic_linker='NetBSD ld.elf_so'
15932   fi
15933   shlibpath_var=LD_LIBRARY_PATH
15934   shlibpath_overrides_runpath=yes
15935   hardcode_into_libs=yes
15936   ;;
15937
15938 newsos6)
15939   version_type=linux
15940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941   shlibpath_var=LD_LIBRARY_PATH
15942   shlibpath_overrides_runpath=yes
15943   ;;
15944
15945 nto-qnx*)
15946   version_type=linux
15947   need_lib_prefix=no
15948   need_version=no
15949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950   soname_spec='${libname}${release}${shared_ext}$major'
15951   shlibpath_var=LD_LIBRARY_PATH
15952   shlibpath_overrides_runpath=yes
15953   ;;
15954
15955 openbsd*)
15956   version_type=sunos
15957   sys_lib_dlsearch_path_spec="/usr/lib"
15958   need_lib_prefix=no
15959   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15960   case $host_os in
15961     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15962     *)                         need_version=no  ;;
15963   esac
15964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15965   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15966   shlibpath_var=LD_LIBRARY_PATH
15967   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15968     case $host_os in
15969       openbsd2.[89] | openbsd2.[89].*)
15970         shlibpath_overrides_runpath=no
15971         ;;
15972       *)
15973         shlibpath_overrides_runpath=yes
15974         ;;
15975       esac
15976   else
15977     shlibpath_overrides_runpath=yes
15978   fi
15979   ;;
15980
15981 os2*)
15982   libname_spec='$name'
15983   shrext_cmds=".dll"
15984   need_lib_prefix=no
15985   library_names_spec='$libname${shared_ext} $libname.a'
15986   dynamic_linker='OS/2 ld.exe'
15987   shlibpath_var=LIBPATH
15988   ;;
15989
15990 osf3* | osf4* | osf5*)
15991   version_type=osf
15992   need_lib_prefix=no
15993   need_version=no
15994   soname_spec='${libname}${release}${shared_ext}$major'
15995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996   shlibpath_var=LD_LIBRARY_PATH
15997   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15998   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15999   ;;
16000
16001 solaris*)
16002   version_type=linux
16003   need_lib_prefix=no
16004   need_version=no
16005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006   soname_spec='${libname}${release}${shared_ext}$major'
16007   shlibpath_var=LD_LIBRARY_PATH
16008   shlibpath_overrides_runpath=yes
16009   hardcode_into_libs=yes
16010   # ldd complains unless libraries are executable
16011   postinstall_cmds='chmod +x $lib'
16012   ;;
16013
16014 sunos4*)
16015   version_type=sunos
16016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16017   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16018   shlibpath_var=LD_LIBRARY_PATH
16019   shlibpath_overrides_runpath=yes
16020   if test "$with_gnu_ld" = yes; then
16021     need_lib_prefix=no
16022   fi
16023   need_version=yes
16024   ;;
16025
16026 sysv4 | sysv4.3*)
16027   version_type=linux
16028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029   soname_spec='${libname}${release}${shared_ext}$major'
16030   shlibpath_var=LD_LIBRARY_PATH
16031   case $host_vendor in
16032     sni)
16033       shlibpath_overrides_runpath=no
16034       need_lib_prefix=no
16035       export_dynamic_flag_spec='${wl}-Blargedynsym'
16036       runpath_var=LD_RUN_PATH
16037       ;;
16038     siemens)
16039       need_lib_prefix=no
16040       ;;
16041     motorola)
16042       need_lib_prefix=no
16043       need_version=no
16044       shlibpath_overrides_runpath=no
16045       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16046       ;;
16047   esac
16048   ;;
16049
16050 sysv4*MP*)
16051   if test -d /usr/nec ;then
16052     version_type=linux
16053     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16054     soname_spec='$libname${shared_ext}.$major'
16055     shlibpath_var=LD_LIBRARY_PATH
16056   fi
16057   ;;
16058
16059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16060   version_type=freebsd-elf
16061   need_lib_prefix=no
16062   need_version=no
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16064   soname_spec='${libname}${release}${shared_ext}$major'
16065   shlibpath_var=LD_LIBRARY_PATH
16066   hardcode_into_libs=yes
16067   if test "$with_gnu_ld" = yes; then
16068     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16069     shlibpath_overrides_runpath=no
16070   else
16071     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16072     shlibpath_overrides_runpath=yes
16073     case $host_os in
16074       sco3.2v5*)
16075         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16076         ;;
16077     esac
16078   fi
16079   sys_lib_dlsearch_path_spec='/usr/lib'
16080   ;;
16081
16082 uts4*)
16083   version_type=linux
16084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085   soname_spec='${libname}${release}${shared_ext}$major'
16086   shlibpath_var=LD_LIBRARY_PATH
16087   ;;
16088
16089 *)
16090   dynamic_linker=no
16091   ;;
16092 esac
16093 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16094 echo "${ECHO_T}$dynamic_linker" >&6; }
16095 test "$dynamic_linker" = no && can_build_shared=no
16096
16097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16098 if test "$GCC" = yes; then
16099   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16100 fi
16101
16102 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16104 hardcode_action_F77=
16105 if test -n "$hardcode_libdir_flag_spec_F77" || \
16106    test -n "$runpath_var_F77" || \
16107    test "X$hardcode_automatic_F77" = "Xyes" ; then
16108
16109   # We can hardcode non-existant directories.
16110   if test "$hardcode_direct_F77" != no &&
16111      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16112      # have to relink, otherwise we might link with an installed library
16113      # when we should be linking with a yet-to-be-installed one
16114      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16115      test "$hardcode_minus_L_F77" != no; then
16116     # Linking always hardcodes the temporary library directory.
16117     hardcode_action_F77=relink
16118   else
16119     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16120     hardcode_action_F77=immediate
16121   fi
16122 else
16123   # We cannot hardcode anything, or else we can only hardcode existing
16124   # directories.
16125   hardcode_action_F77=unsupported
16126 fi
16127 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16128 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16129
16130 if test "$hardcode_action_F77" = relink; then
16131   # Fast installation is not supported
16132   enable_fast_install=no
16133 elif test "$shlibpath_overrides_runpath" = yes ||
16134      test "$enable_shared" = no; then
16135   # Fast installation is not necessary
16136   enable_fast_install=needless
16137 fi
16138
16139
16140 # The else clause should only fire when bootstrapping the
16141 # libtool distribution, otherwise you forgot to ship ltmain.sh
16142 # with your package, and you will get complaints that there are
16143 # no rules to generate ltmain.sh.
16144 if test -f "$ltmain"; then
16145   # See if we are running on zsh, and set the options which allow our commands through
16146   # without removal of \ escapes.
16147   if test -n "${ZSH_VERSION+set}" ; then
16148     setopt NO_GLOB_SUBST
16149   fi
16150   # Now quote all the things that may contain metacharacters while being
16151   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16152   # variables and quote the copies for generation of the libtool script.
16153   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16154     SED SHELL STRIP \
16155     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16156     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16157     deplibs_check_method reload_flag reload_cmds need_locks \
16158     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16159     lt_cv_sys_global_symbol_to_c_name_address \
16160     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16161     old_postinstall_cmds old_postuninstall_cmds \
16162     compiler_F77 \
16163     CC_F77 \
16164     LD_F77 \
16165     lt_prog_compiler_wl_F77 \
16166     lt_prog_compiler_pic_F77 \
16167     lt_prog_compiler_static_F77 \
16168     lt_prog_compiler_no_builtin_flag_F77 \
16169     export_dynamic_flag_spec_F77 \
16170     thread_safe_flag_spec_F77 \
16171     whole_archive_flag_spec_F77 \
16172     enable_shared_with_static_runtimes_F77 \
16173     old_archive_cmds_F77 \
16174     old_archive_from_new_cmds_F77 \
16175     predep_objects_F77 \
16176     postdep_objects_F77 \
16177     predeps_F77 \
16178     postdeps_F77 \
16179     compiler_lib_search_path_F77 \
16180     archive_cmds_F77 \
16181     archive_expsym_cmds_F77 \
16182     postinstall_cmds_F77 \
16183     postuninstall_cmds_F77 \
16184     old_archive_from_expsyms_cmds_F77 \
16185     allow_undefined_flag_F77 \
16186     no_undefined_flag_F77 \
16187     export_symbols_cmds_F77 \
16188     hardcode_libdir_flag_spec_F77 \
16189     hardcode_libdir_flag_spec_ld_F77 \
16190     hardcode_libdir_separator_F77 \
16191     hardcode_automatic_F77 \
16192     module_cmds_F77 \
16193     module_expsym_cmds_F77 \
16194     lt_cv_prog_compiler_c_o_F77 \
16195     exclude_expsyms_F77 \
16196     include_expsyms_F77; do
16197
16198     case $var in
16199     old_archive_cmds_F77 | \
16200     old_archive_from_new_cmds_F77 | \
16201     archive_cmds_F77 | \
16202     archive_expsym_cmds_F77 | \
16203     module_cmds_F77 | \
16204     module_expsym_cmds_F77 | \
16205     old_archive_from_expsyms_cmds_F77 | \
16206     export_symbols_cmds_F77 | \
16207     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16208     postinstall_cmds | postuninstall_cmds | \
16209     old_postinstall_cmds | old_postuninstall_cmds | \
16210     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16211       # Double-quote double-evaled strings.
16212       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16213       ;;
16214     *)
16215       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16216       ;;
16217     esac
16218   done
16219
16220   case $lt_echo in
16221   *'\$0 --fallback-echo"')
16222     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16223     ;;
16224   esac
16225
16226 cfgfile="$ofile"
16227
16228   cat <<__EOF__ >> "$cfgfile"
16229 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16230
16231 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16232
16233 # Shell to use when invoking shell scripts.
16234 SHELL=$lt_SHELL
16235
16236 # Whether or not to build shared libraries.
16237 build_libtool_libs=$enable_shared
16238
16239 # Whether or not to build static libraries.
16240 build_old_libs=$enable_static
16241
16242 # Whether or not to add -lc for building shared libraries.
16243 build_libtool_need_lc=$archive_cmds_need_lc_F77
16244
16245 # Whether or not to disallow shared libs when runtime libs are static
16246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16247
16248 # Whether or not to optimize for fast installation.
16249 fast_install=$enable_fast_install
16250
16251 # The host system.
16252 host_alias=$host_alias
16253 host=$host
16254 host_os=$host_os
16255
16256 # The build system.
16257 build_alias=$build_alias
16258 build=$build
16259 build_os=$build_os
16260
16261 # An echo program that does not interpret backslashes.
16262 echo=$lt_echo
16263
16264 # The archiver.
16265 AR=$lt_AR
16266 AR_FLAGS=$lt_AR_FLAGS
16267
16268 # A C compiler.
16269 LTCC=$lt_LTCC
16270
16271 # LTCC compiler flags.
16272 LTCFLAGS=$lt_LTCFLAGS
16273
16274 # A language-specific compiler.
16275 CC=$lt_compiler_F77
16276
16277 # Is the compiler the GNU C compiler?
16278 with_gcc=$GCC_F77
16279
16280 # An ERE matcher.
16281 EGREP=$lt_EGREP
16282
16283 # The linker used to build libraries.
16284 LD=$lt_LD_F77
16285
16286 # Whether we need hard or soft links.
16287 LN_S=$lt_LN_S
16288
16289 # A BSD-compatible nm program.
16290 NM=$lt_NM
16291
16292 # A symbol stripping program
16293 STRIP=$lt_STRIP
16294
16295 # Used to examine libraries when file_magic_cmd begins "file"
16296 MAGIC_CMD=$MAGIC_CMD
16297
16298 # Used on cygwin: DLL creation program.
16299 DLLTOOL="$DLLTOOL"
16300
16301 # Used on cygwin: object dumper.
16302 OBJDUMP="$OBJDUMP"
16303
16304 # Used on cygwin: assembler.
16305 AS="$AS"
16306
16307 # The name of the directory that contains temporary libtool files.
16308 objdir=$objdir
16309
16310 # How to create reloadable object files.
16311 reload_flag=$lt_reload_flag
16312 reload_cmds=$lt_reload_cmds
16313
16314 # How to pass a linker flag through the compiler.
16315 wl=$lt_lt_prog_compiler_wl_F77
16316
16317 # Object file suffix (normally "o").
16318 objext="$ac_objext"
16319
16320 # Old archive suffix (normally "a").
16321 libext="$libext"
16322
16323 # Shared library suffix (normally ".so").
16324 shrext_cmds='$shrext_cmds'
16325
16326 # Executable file suffix (normally "").
16327 exeext="$exeext"
16328
16329 # Additional compiler flags for building library objects.
16330 pic_flag=$lt_lt_prog_compiler_pic_F77
16331 pic_mode=$pic_mode
16332
16333 # What is the maximum length of a command?
16334 max_cmd_len=$lt_cv_sys_max_cmd_len
16335
16336 # Does compiler simultaneously support -c and -o options?
16337 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16338
16339 # Must we lock files when doing compilation?
16340 need_locks=$lt_need_locks
16341
16342 # Do we need the lib prefix for modules?
16343 need_lib_prefix=$need_lib_prefix
16344
16345 # Do we need a version for libraries?
16346 need_version=$need_version
16347
16348 # Whether dlopen is supported.
16349 dlopen_support=$enable_dlopen
16350
16351 # Whether dlopen of programs is supported.
16352 dlopen_self=$enable_dlopen_self
16353
16354 # Whether dlopen of statically linked programs is supported.
16355 dlopen_self_static=$enable_dlopen_self_static
16356
16357 # Compiler flag to prevent dynamic linking.
16358 link_static_flag=$lt_lt_prog_compiler_static_F77
16359
16360 # Compiler flag to turn off builtin functions.
16361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16362
16363 # Compiler flag to allow reflexive dlopens.
16364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16365
16366 # Compiler flag to generate shared objects directly from archives.
16367 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16368
16369 # Compiler flag to generate thread-safe objects.
16370 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16371
16372 # Library versioning type.
16373 version_type=$version_type
16374
16375 # Format of library name prefix.
16376 libname_spec=$lt_libname_spec
16377
16378 # List of archive names.  First name is the real one, the rest are links.
16379 # The last name is the one that the linker finds with -lNAME.
16380 library_names_spec=$lt_library_names_spec
16381
16382 # The coded name of the library, if different from the real name.
16383 soname_spec=$lt_soname_spec
16384
16385 # Commands used to build and install an old-style archive.
16386 RANLIB=$lt_RANLIB
16387 old_archive_cmds=$lt_old_archive_cmds_F77
16388 old_postinstall_cmds=$lt_old_postinstall_cmds
16389 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16390
16391 # Create an old-style archive from a shared archive.
16392 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16393
16394 # Create a temporary old-style archive to link instead of a shared archive.
16395 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16396
16397 # Commands used to build and install a shared archive.
16398 archive_cmds=$lt_archive_cmds_F77
16399 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16400 postinstall_cmds=$lt_postinstall_cmds
16401 postuninstall_cmds=$lt_postuninstall_cmds
16402
16403 # Commands used to build a loadable module (assumed same as above if empty)
16404 module_cmds=$lt_module_cmds_F77
16405 module_expsym_cmds=$lt_module_expsym_cmds_F77
16406
16407 # Commands to strip libraries.
16408 old_striplib=$lt_old_striplib
16409 striplib=$lt_striplib
16410
16411 # Dependencies to place before the objects being linked to create a
16412 # shared library.
16413 predep_objects=$lt_predep_objects_F77
16414
16415 # Dependencies to place after the objects being linked to create a
16416 # shared library.
16417 postdep_objects=$lt_postdep_objects_F77
16418
16419 # Dependencies to place before the objects being linked to create a
16420 # shared library.
16421 predeps=$lt_predeps_F77
16422
16423 # Dependencies to place after the objects being linked to create a
16424 # shared library.
16425 postdeps=$lt_postdeps_F77
16426
16427 # The library search path used internally by the compiler when linking
16428 # a shared library.
16429 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16430
16431 # Method to check whether dependent libraries are shared objects.
16432 deplibs_check_method=$lt_deplibs_check_method
16433
16434 # Command to use when deplibs_check_method == file_magic.
16435 file_magic_cmd=$lt_file_magic_cmd
16436
16437 # Flag that allows shared libraries with undefined symbols to be built.
16438 allow_undefined_flag=$lt_allow_undefined_flag_F77
16439
16440 # Flag that forces no undefined symbols.
16441 no_undefined_flag=$lt_no_undefined_flag_F77
16442
16443 # Commands used to finish a libtool library installation in a directory.
16444 finish_cmds=$lt_finish_cmds
16445
16446 # Same as above, but a single script fragment to be evaled but not shown.
16447 finish_eval=$lt_finish_eval
16448
16449 # Take the output of nm and produce a listing of raw symbols and C names.
16450 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16451
16452 # Transform the output of nm in a proper C declaration
16453 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16454
16455 # Transform the output of nm in a C name address pair
16456 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16457
16458 # This is the shared library runtime path variable.
16459 runpath_var=$runpath_var
16460
16461 # This is the shared library path variable.
16462 shlibpath_var=$shlibpath_var
16463
16464 # Is shlibpath searched before the hard-coded library search path?
16465 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16466
16467 # How to hardcode a shared library path into an executable.
16468 hardcode_action=$hardcode_action_F77
16469
16470 # Whether we should hardcode library paths into libraries.
16471 hardcode_into_libs=$hardcode_into_libs
16472
16473 # Flag to hardcode \$libdir into a binary during linking.
16474 # This must work even if \$libdir does not exist.
16475 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16476
16477 # If ld is used when linking, flag to hardcode \$libdir into
16478 # a binary during linking. This must work even if \$libdir does
16479 # not exist.
16480 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16481
16482 # Whether we need a single -rpath flag with a separated argument.
16483 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16484
16485 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16486 # resulting binary.
16487 hardcode_direct=$hardcode_direct_F77
16488
16489 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16490 # resulting binary.
16491 hardcode_minus_L=$hardcode_minus_L_F77
16492
16493 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16494 # the resulting binary.
16495 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16496
16497 # Set to yes if building a shared library automatically hardcodes DIR into the library
16498 # and all subsequent libraries and executables linked against it.
16499 hardcode_automatic=$hardcode_automatic_F77
16500
16501 # Variables whose values should be saved in libtool wrapper scripts and
16502 # restored at relink time.
16503 variables_saved_for_relink="$variables_saved_for_relink"
16504
16505 # Whether libtool must link a program against all its dependency libraries.
16506 link_all_deplibs=$link_all_deplibs_F77
16507
16508 # Compile-time system search path for libraries
16509 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16510
16511 # Run-time system search path for libraries
16512 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16513
16514 # Fix the shell variable \$srcfile for the compiler.
16515 fix_srcfile_path="$fix_srcfile_path_F77"
16516
16517 # Set to yes if exported symbols are required.
16518 always_export_symbols=$always_export_symbols_F77
16519
16520 # The commands to list exported symbols.
16521 export_symbols_cmds=$lt_export_symbols_cmds_F77
16522
16523 # The commands to extract the exported symbol list from a shared archive.
16524 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16525
16526 # Symbols that should not be listed in the preloaded symbols.
16527 exclude_expsyms=$lt_exclude_expsyms_F77
16528
16529 # Symbols that must always be exported.
16530 include_expsyms=$lt_include_expsyms_F77
16531
16532 # ### END LIBTOOL TAG CONFIG: $tagname
16533
16534 __EOF__
16535
16536
16537 else
16538   # If there is no Makefile yet, we rely on a make rule to execute
16539   # `config.status --recheck' to rerun these tests and create the
16540   # libtool script then.
16541   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16542   if test -f "$ltmain_in"; then
16543     test -f Makefile && make "$ltmain"
16544   fi
16545 fi
16546
16547
16548 ac_ext=c
16549 ac_cpp='$CPP $CPPFLAGS'
16550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16553
16554 CC="$lt_save_CC"
16555
16556         else
16557           tagname=""
16558         fi
16559         ;;
16560
16561       GCJ)
16562         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16563
16564
16565 # Source file extension for Java test sources.
16566 ac_ext=java
16567
16568 # Object file extension for compiled Java test sources.
16569 objext=o
16570 objext_GCJ=$objext
16571
16572 # Code to be used in simple compile tests
16573 lt_simple_compile_test_code="class foo {}\n"
16574
16575 # Code to be used in simple link tests
16576 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16577
16578 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16579
16580 # If no C compiler was specified, use CC.
16581 LTCC=${LTCC-"$CC"}
16582
16583 # If no C compiler flags were specified, use CFLAGS.
16584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16585
16586 # Allow CC to be a program name with arguments.
16587 compiler=$CC
16588
16589
16590 # save warnings/boilerplate of simple test code
16591 ac_outfile=conftest.$ac_objext
16592 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16594 _lt_compiler_boilerplate=`cat conftest.err`
16595 $rm conftest*
16596
16597 ac_outfile=conftest.$ac_objext
16598 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16600 _lt_linker_boilerplate=`cat conftest.err`
16601 $rm conftest*
16602
16603
16604 # Allow CC to be a program name with arguments.
16605 lt_save_CC="$CC"
16606 CC=${GCJ-"gcj"}
16607 compiler=$CC
16608 compiler_GCJ=$CC
16609 for cc_temp in $compiler""; do
16610   case $cc_temp in
16611     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16612     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16613     \-*) ;;
16614     *) break;;
16615   esac
16616 done
16617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16618
16619
16620 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16621 archive_cmds_need_lc_GCJ=no
16622
16623 old_archive_cmds_GCJ=$old_archive_cmds
16624
16625 ## CAVEAT EMPTOR:
16626 ## There is no encapsulation within the following macros, do not change
16627 ## the running order or otherwise move them around unless you know exactly
16628 ## what you are doing...
16629
16630 lt_prog_compiler_no_builtin_flag_GCJ=
16631
16632 if test "$GCC" = yes; then
16633   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16634
16635
16636 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16637 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16638 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   lt_cv_prog_compiler_rtti_exceptions=no
16642   ac_outfile=conftest.$ac_objext
16643    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16644    lt_compiler_flag="-fno-rtti -fno-exceptions"
16645    # Insert the option either (1) after the last *FLAGS variable, or
16646    # (2) before a word containing "conftest.", or (3) at the end.
16647    # Note that $ac_compile itself does not contain backslashes and begins
16648    # with a dollar sign (not a hyphen), so the echo should work correctly.
16649    # The option is referenced via a variable to avoid confusing sed.
16650    lt_compile=`echo "$ac_compile" | $SED \
16651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16653    -e 's:$: $lt_compiler_flag:'`
16654    (eval echo "\"\$as_me:16654: $lt_compile\"" >&5)
16655    (eval "$lt_compile" 2>conftest.err)
16656    ac_status=$?
16657    cat conftest.err >&5
16658    echo "$as_me:16658: \$? = $ac_status" >&5
16659    if (exit $ac_status) && test -s "$ac_outfile"; then
16660      # The compiler can only warn and ignore the option if not recognized
16661      # So say no if there are warnings other than the usual output.
16662      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16663      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16664      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16665        lt_cv_prog_compiler_rtti_exceptions=yes
16666      fi
16667    fi
16668    $rm conftest*
16669
16670 fi
16671 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16672 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16673
16674 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16675     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16676 else
16677     :
16678 fi
16679
16680 fi
16681
16682 lt_prog_compiler_wl_GCJ=
16683 lt_prog_compiler_pic_GCJ=
16684 lt_prog_compiler_static_GCJ=
16685
16686 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16687 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16688
16689   if test "$GCC" = yes; then
16690     lt_prog_compiler_wl_GCJ='-Wl,'
16691     lt_prog_compiler_static_GCJ='-static'
16692
16693     case $host_os in
16694       aix*)
16695       # All AIX code is PIC.
16696       if test "$host_cpu" = ia64; then
16697         # AIX 5 now supports IA64 processor
16698         lt_prog_compiler_static_GCJ='-Bstatic'
16699       fi
16700       ;;
16701
16702     amigaos*)
16703       # FIXME: we need at least 68020 code to build shared libraries, but
16704       # adding the `-m68020' flag to GCC prevents building anything better,
16705       # like `-m68040'.
16706       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16707       ;;
16708
16709     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16710       # PIC is the default for these OSes.
16711       ;;
16712
16713     mingw* | pw32* | os2*)
16714       # This hack is so that the source file can tell whether it is being
16715       # built for inclusion in a dll (and should export symbols for example).
16716       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16717       ;;
16718
16719     darwin* | rhapsody*)
16720       # PIC is the default on this platform
16721       # Common symbols not allowed in MH_DYLIB files
16722       lt_prog_compiler_pic_GCJ='-fno-common'
16723       ;;
16724
16725     interix3*)
16726       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16727       # Instead, we relocate shared libraries at runtime.
16728       ;;
16729
16730     msdosdjgpp*)
16731       # Just because we use GCC doesn't mean we suddenly get shared libraries
16732       # on systems that don't support them.
16733       lt_prog_compiler_can_build_shared_GCJ=no
16734       enable_shared=no
16735       ;;
16736
16737     sysv4*MP*)
16738       if test -d /usr/nec; then
16739         lt_prog_compiler_pic_GCJ=-Kconform_pic
16740       fi
16741       ;;
16742
16743     hpux*)
16744       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16745       # not for PA HP-UX.
16746       case $host_cpu in
16747       hppa*64*|ia64*)
16748         # +Z the default
16749         ;;
16750       *)
16751         lt_prog_compiler_pic_GCJ='-fPIC'
16752         ;;
16753       esac
16754       ;;
16755
16756     *)
16757       lt_prog_compiler_pic_GCJ='-fPIC'
16758       ;;
16759     esac
16760   else
16761     # PORTME Check for flag to pass linker flags through the system compiler.
16762     case $host_os in
16763     aix*)
16764       lt_prog_compiler_wl_GCJ='-Wl,'
16765       if test "$host_cpu" = ia64; then
16766         # AIX 5 now supports IA64 processor
16767         lt_prog_compiler_static_GCJ='-Bstatic'
16768       else
16769         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16770       fi
16771       ;;
16772       darwin*)
16773         # PIC is the default on this platform
16774         # Common symbols not allowed in MH_DYLIB files
16775        case $cc_basename in
16776          xlc*)
16777          lt_prog_compiler_pic_GCJ='-qnocommon'
16778          lt_prog_compiler_wl_GCJ='-Wl,'
16779          ;;
16780        esac
16781        ;;
16782
16783     mingw* | pw32* | os2*)
16784       # This hack is so that the source file can tell whether it is being
16785       # built for inclusion in a dll (and should export symbols for example).
16786       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16787       ;;
16788
16789     hpux9* | hpux10* | hpux11*)
16790       lt_prog_compiler_wl_GCJ='-Wl,'
16791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16792       # not for PA HP-UX.
16793       case $host_cpu in
16794       hppa*64*|ia64*)
16795         # +Z the default
16796         ;;
16797       *)
16798         lt_prog_compiler_pic_GCJ='+Z'
16799         ;;
16800       esac
16801       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16802       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16803       ;;
16804
16805     irix5* | irix6* | nonstopux*)
16806       lt_prog_compiler_wl_GCJ='-Wl,'
16807       # PIC (with -KPIC) is the default.
16808       lt_prog_compiler_static_GCJ='-non_shared'
16809       ;;
16810
16811     newsos6)
16812       lt_prog_compiler_pic_GCJ='-KPIC'
16813       lt_prog_compiler_static_GCJ='-Bstatic'
16814       ;;
16815
16816     linux*)
16817       case $cc_basename in
16818       icc* | ecc*)
16819         lt_prog_compiler_wl_GCJ='-Wl,'
16820         lt_prog_compiler_pic_GCJ='-KPIC'
16821         lt_prog_compiler_static_GCJ='-static'
16822         ;;
16823       pgcc* | pgf77* | pgf90* | pgf95*)
16824         # Portland Group compilers (*not* the Pentium gcc compiler,
16825         # which looks to be a dead project)
16826         lt_prog_compiler_wl_GCJ='-Wl,'
16827         lt_prog_compiler_pic_GCJ='-fpic'
16828         lt_prog_compiler_static_GCJ='-Bstatic'
16829         ;;
16830       ccc*)
16831         lt_prog_compiler_wl_GCJ='-Wl,'
16832         # All Alpha code is PIC.
16833         lt_prog_compiler_static_GCJ='-non_shared'
16834         ;;
16835       esac
16836       ;;
16837
16838     osf3* | osf4* | osf5*)
16839       lt_prog_compiler_wl_GCJ='-Wl,'
16840       # All OSF/1 code is PIC.
16841       lt_prog_compiler_static_GCJ='-non_shared'
16842       ;;
16843
16844     solaris*)
16845       lt_prog_compiler_pic_GCJ='-KPIC'
16846       lt_prog_compiler_static_GCJ='-Bstatic'
16847       case $cc_basename in
16848       f77* | f90* | f95*)
16849         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16850       *)
16851         lt_prog_compiler_wl_GCJ='-Wl,';;
16852       esac
16853       ;;
16854
16855     sunos4*)
16856       lt_prog_compiler_wl_GCJ='-Qoption ld '
16857       lt_prog_compiler_pic_GCJ='-PIC'
16858       lt_prog_compiler_static_GCJ='-Bstatic'
16859       ;;
16860
16861     sysv4 | sysv4.2uw2* | sysv4.3*)
16862       lt_prog_compiler_wl_GCJ='-Wl,'
16863       lt_prog_compiler_pic_GCJ='-KPIC'
16864       lt_prog_compiler_static_GCJ='-Bstatic'
16865       ;;
16866
16867     sysv4*MP*)
16868       if test -d /usr/nec ;then
16869         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16870         lt_prog_compiler_static_GCJ='-Bstatic'
16871       fi
16872       ;;
16873
16874     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16875       lt_prog_compiler_wl_GCJ='-Wl,'
16876       lt_prog_compiler_pic_GCJ='-KPIC'
16877       lt_prog_compiler_static_GCJ='-Bstatic'
16878       ;;
16879
16880     unicos*)
16881       lt_prog_compiler_wl_GCJ='-Wl,'
16882       lt_prog_compiler_can_build_shared_GCJ=no
16883       ;;
16884
16885     uts4*)
16886       lt_prog_compiler_pic_GCJ='-pic'
16887       lt_prog_compiler_static_GCJ='-Bstatic'
16888       ;;
16889
16890     *)
16891       lt_prog_compiler_can_build_shared_GCJ=no
16892       ;;
16893     esac
16894   fi
16895
16896 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16897 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16898
16899 #
16900 # Check to make sure the PIC flag actually works.
16901 #
16902 if test -n "$lt_prog_compiler_pic_GCJ"; then
16903
16904 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16905 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16906 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16907   echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909   lt_prog_compiler_pic_works_GCJ=no
16910   ac_outfile=conftest.$ac_objext
16911    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16912    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16913    # Insert the option either (1) after the last *FLAGS variable, or
16914    # (2) before a word containing "conftest.", or (3) at the end.
16915    # Note that $ac_compile itself does not contain backslashes and begins
16916    # with a dollar sign (not a hyphen), so the echo should work correctly.
16917    # The option is referenced via a variable to avoid confusing sed.
16918    lt_compile=`echo "$ac_compile" | $SED \
16919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16921    -e 's:$: $lt_compiler_flag:'`
16922    (eval echo "\"\$as_me:16922: $lt_compile\"" >&5)
16923    (eval "$lt_compile" 2>conftest.err)
16924    ac_status=$?
16925    cat conftest.err >&5
16926    echo "$as_me:16926: \$? = $ac_status" >&5
16927    if (exit $ac_status) && test -s "$ac_outfile"; then
16928      # The compiler can only warn and ignore the option if not recognized
16929      # So say no if there are warnings other than the usual output.
16930      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16933        lt_prog_compiler_pic_works_GCJ=yes
16934      fi
16935    fi
16936    $rm conftest*
16937
16938 fi
16939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16940 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16941
16942 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16943     case $lt_prog_compiler_pic_GCJ in
16944      "" | " "*) ;;
16945      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16946      esac
16947 else
16948     lt_prog_compiler_pic_GCJ=
16949      lt_prog_compiler_can_build_shared_GCJ=no
16950 fi
16951
16952 fi
16953 case $host_os in
16954   # For platforms which do not support PIC, -DPIC is meaningless:
16955   *djgpp*)
16956     lt_prog_compiler_pic_GCJ=
16957     ;;
16958   *)
16959     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16960     ;;
16961 esac
16962
16963 #
16964 # Check to make sure the static flag actually works.
16965 #
16966 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16967 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16968 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16969 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16970   echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972   lt_prog_compiler_static_works_GCJ=no
16973    save_LDFLAGS="$LDFLAGS"
16974    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16975    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16976    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16977      # The linker can only warn and ignore the option if not recognized
16978      # So say no if there are warnings
16979      if test -s conftest.err; then
16980        # Append any errors to the config.log.
16981        cat conftest.err 1>&5
16982        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16983        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16984        if diff conftest.exp conftest.er2 >/dev/null; then
16985          lt_prog_compiler_static_works_GCJ=yes
16986        fi
16987      else
16988        lt_prog_compiler_static_works_GCJ=yes
16989      fi
16990    fi
16991    $rm conftest*
16992    LDFLAGS="$save_LDFLAGS"
16993
16994 fi
16995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16996 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16997
16998 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16999     :
17000 else
17001     lt_prog_compiler_static_GCJ=
17002 fi
17003
17004
17005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17007 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17008   echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010   lt_cv_prog_compiler_c_o_GCJ=no
17011    $rm -r conftest 2>/dev/null
17012    mkdir conftest
17013    cd conftest
17014    mkdir out
17015    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17016
17017    lt_compiler_flag="-o out/conftest2.$ac_objext"
17018    # Insert the option either (1) after the last *FLAGS variable, or
17019    # (2) before a word containing "conftest.", or (3) at the end.
17020    # Note that $ac_compile itself does not contain backslashes and begins
17021    # with a dollar sign (not a hyphen), so the echo should work correctly.
17022    lt_compile=`echo "$ac_compile" | $SED \
17023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17025    -e 's:$: $lt_compiler_flag:'`
17026    (eval echo "\"\$as_me:17026: $lt_compile\"" >&5)
17027    (eval "$lt_compile" 2>out/conftest.err)
17028    ac_status=$?
17029    cat out/conftest.err >&5
17030    echo "$as_me:17030: \$? = $ac_status" >&5
17031    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17032    then
17033      # The compiler can only warn and ignore the option if not recognized
17034      # So say no if there are warnings
17035      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17036      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17037      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17038        lt_cv_prog_compiler_c_o_GCJ=yes
17039      fi
17040    fi
17041    chmod u+w . 2>&5
17042    $rm conftest*
17043    # SGI C++ compiler will create directory out/ii_files/ for
17044    # template instantiation
17045    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17046    $rm out/* && rmdir out
17047    cd ..
17048    rmdir conftest
17049    $rm conftest*
17050
17051 fi
17052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17054
17055
17056 hard_links="nottested"
17057 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17058   # do not overwrite the value of need_locks provided by the user
17059   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17061   hard_links=yes
17062   $rm conftest*
17063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17064   touch conftest.a
17065   ln conftest.a conftest.b 2>&5 || hard_links=no
17066   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17067   { echo "$as_me:$LINENO: result: $hard_links" >&5
17068 echo "${ECHO_T}$hard_links" >&6; }
17069   if test "$hard_links" = no; then
17070     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17072     need_locks=warn
17073   fi
17074 else
17075   need_locks=no
17076 fi
17077
17078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17080
17081   runpath_var=
17082   allow_undefined_flag_GCJ=
17083   enable_shared_with_static_runtimes_GCJ=no
17084   archive_cmds_GCJ=
17085   archive_expsym_cmds_GCJ=
17086   old_archive_From_new_cmds_GCJ=
17087   old_archive_from_expsyms_cmds_GCJ=
17088   export_dynamic_flag_spec_GCJ=
17089   whole_archive_flag_spec_GCJ=
17090   thread_safe_flag_spec_GCJ=
17091   hardcode_libdir_flag_spec_GCJ=
17092   hardcode_libdir_flag_spec_ld_GCJ=
17093   hardcode_libdir_separator_GCJ=
17094   hardcode_direct_GCJ=no
17095   hardcode_minus_L_GCJ=no
17096   hardcode_shlibpath_var_GCJ=unsupported
17097   link_all_deplibs_GCJ=unknown
17098   hardcode_automatic_GCJ=no
17099   module_cmds_GCJ=
17100   module_expsym_cmds_GCJ=
17101   always_export_symbols_GCJ=no
17102   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17103   # include_expsyms should be a list of space-separated symbols to be *always*
17104   # included in the symbol list
17105   include_expsyms_GCJ=
17106   # exclude_expsyms can be an extended regexp of symbols to exclude
17107   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17108   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17109   # as well as any symbol that contains `d'.
17110   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17111   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17112   # platforms (ab)use it in PIC code, but their linkers get confused if
17113   # the symbol is explicitly referenced.  Since portable code cannot
17114   # rely on this symbol name, it's probably fine to never include it in
17115   # preloaded symbol tables.
17116   extract_expsyms_cmds=
17117   # Just being paranoid about ensuring that cc_basename is set.
17118   for cc_temp in $compiler""; do
17119   case $cc_temp in
17120     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17121     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17122     \-*) ;;
17123     *) break;;
17124   esac
17125 done
17126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17127
17128   case $host_os in
17129   cygwin* | mingw* | pw32*)
17130     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17131     # When not using gcc, we currently assume that we are using
17132     # Microsoft Visual C++.
17133     if test "$GCC" != yes; then
17134       with_gnu_ld=no
17135     fi
17136     ;;
17137   interix*)
17138     # we just hope/assume this is gcc and not c89 (= MSVC++)
17139     with_gnu_ld=yes
17140     ;;
17141   openbsd*)
17142     with_gnu_ld=no
17143     ;;
17144   esac
17145
17146   ld_shlibs_GCJ=yes
17147   if test "$with_gnu_ld" = yes; then
17148     # If archive_cmds runs LD, not CC, wlarc should be empty
17149     wlarc='${wl}'
17150
17151     # Set some defaults for GNU ld with shared library support. These
17152     # are reset later if shared libraries are not supported. Putting them
17153     # here allows them to be overridden if necessary.
17154     runpath_var=LD_RUN_PATH
17155     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17156     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17157     # ancient GNU ld didn't support --whole-archive et. al.
17158     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17159         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17160       else
17161         whole_archive_flag_spec_GCJ=
17162     fi
17163     supports_anon_versioning=no
17164     case `$LD -v 2>/dev/null` in
17165       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17166       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17167       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17168       *\ 2.11.*) ;; # other 2.11 versions
17169       *) supports_anon_versioning=yes ;;
17170     esac
17171
17172     # See if GNU ld supports shared libraries.
17173     case $host_os in
17174     aix3* | aix4* | aix5*)
17175       # On AIX/PPC, the GNU linker is very broken
17176       if test "$host_cpu" != ia64; then
17177         ld_shlibs_GCJ=no
17178         cat <<EOF 1>&2
17179
17180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17181 *** to be unable to reliably create shared libraries on AIX.
17182 *** Therefore, libtool is disabling shared libraries support.  If you
17183 *** really care for shared libraries, you may want to modify your PATH
17184 *** so that a non-GNU linker is found, and then restart.
17185
17186 EOF
17187       fi
17188       ;;
17189
17190     amigaos*)
17191       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)'
17192       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17193       hardcode_minus_L_GCJ=yes
17194
17195       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17196       # that the semantics of dynamic libraries on AmigaOS, at least up
17197       # to version 4, is to share data among multiple programs linked
17198       # with the same dynamic library.  Since this doesn't match the
17199       # behavior of shared libraries on other platforms, we can't use
17200       # them.
17201       ld_shlibs_GCJ=no
17202       ;;
17203
17204     beos*)
17205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17206         allow_undefined_flag_GCJ=unsupported
17207         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17208         # support --undefined.  This deserves some investigation.  FIXME
17209         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17210       else
17211         ld_shlibs_GCJ=no
17212       fi
17213       ;;
17214
17215     cygwin* | mingw* | pw32*)
17216       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17217       # as there is no search path for DLLs.
17218       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17219       allow_undefined_flag_GCJ=unsupported
17220       always_export_symbols_GCJ=no
17221       enable_shared_with_static_runtimes_GCJ=yes
17222       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17223
17224       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17225         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17226         # If the export-symbols file already is a .def file (1st line
17227         # is EXPORTS), use it as is; otherwise, prepend...
17228         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17229           cp $export_symbols $output_objdir/$soname.def;
17230         else
17231           echo EXPORTS > $output_objdir/$soname.def;
17232           cat $export_symbols >> $output_objdir/$soname.def;
17233         fi~
17234         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17235       else
17236         ld_shlibs_GCJ=no
17237       fi
17238       ;;
17239
17240     interix3*)
17241       hardcode_direct_GCJ=no
17242       hardcode_shlibpath_var_GCJ=no
17243       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17244       export_dynamic_flag_spec_GCJ='${wl}-E'
17245       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17246       # Instead, shared libraries are loaded at an image base (0x10000000 by
17247       # default) and relocated if they conflict, which is a slow very memory
17248       # consuming and fragmenting process.  To avoid this, we pick a random,
17249       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17250       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17251       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'
17252       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'
17253       ;;
17254
17255     linux*)
17256       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17257         tmp_addflag=
17258         case $cc_basename,$host_cpu in
17259         pgcc*)                          # Portland Group C compiler
17260           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'
17261           tmp_addflag=' $pic_flag'
17262           ;;
17263         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17264           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'
17265           tmp_addflag=' $pic_flag -Mnomain' ;;
17266         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17267           tmp_addflag=' -i_dynamic' ;;
17268         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17269           tmp_addflag=' -i_dynamic -nofor_main' ;;
17270         ifc* | ifort*)                  # Intel Fortran compiler
17271           tmp_addflag=' -nofor_main' ;;
17272         esac
17273         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17274
17275         if test $supports_anon_versioning = yes; then
17276           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17277   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17278   $echo "local: *; };" >> $output_objdir/$libname.ver~
17279           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17280         fi
17281       else
17282         ld_shlibs_GCJ=no
17283       fi
17284       ;;
17285
17286     netbsd*)
17287       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17288         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17289         wlarc=
17290       else
17291         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17292         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17293       fi
17294       ;;
17295
17296     solaris*)
17297       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17298         ld_shlibs_GCJ=no
17299         cat <<EOF 1>&2
17300
17301 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17302 *** create shared libraries on Solaris systems.  Therefore, libtool
17303 *** is disabling shared libraries support.  We urge you to upgrade GNU
17304 *** binutils to release 2.9.1 or newer.  Another option is to modify
17305 *** your PATH or compiler configuration so that the native linker is
17306 *** used, and then restart.
17307
17308 EOF
17309       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17310         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17311         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17312       else
17313         ld_shlibs_GCJ=no
17314       fi
17315       ;;
17316
17317     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17318       case `$LD -v 2>&1` in
17319         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17320         ld_shlibs_GCJ=no
17321         cat <<_LT_EOF 1>&2
17322
17323 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17324 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17325 *** is disabling shared libraries support.  We urge you to upgrade GNU
17326 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17327 *** your PATH or compiler configuration so that the native linker is
17328 *** used, and then restart.
17329
17330 _LT_EOF
17331         ;;
17332         *)
17333           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17334             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17335             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17336             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17337           else
17338             ld_shlibs_GCJ=no
17339           fi
17340         ;;
17341       esac
17342       ;;
17343
17344     sunos4*)
17345       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17346       wlarc=
17347       hardcode_direct_GCJ=yes
17348       hardcode_shlibpath_var_GCJ=no
17349       ;;
17350
17351     *)
17352       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17353         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17354         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17355       else
17356         ld_shlibs_GCJ=no
17357       fi
17358       ;;
17359     esac
17360
17361     if test "$ld_shlibs_GCJ" = no; then
17362       runpath_var=
17363       hardcode_libdir_flag_spec_GCJ=
17364       export_dynamic_flag_spec_GCJ=
17365       whole_archive_flag_spec_GCJ=
17366     fi
17367   else
17368     # PORTME fill in a description of your system's linker (not GNU ld)
17369     case $host_os in
17370     aix3*)
17371       allow_undefined_flag_GCJ=unsupported
17372       always_export_symbols_GCJ=yes
17373       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'
17374       # Note: this linker hardcodes the directories in LIBPATH if there
17375       # are no directories specified by -L.
17376       hardcode_minus_L_GCJ=yes
17377       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17378         # Neither direct hardcoding nor static linking is supported with a
17379         # broken collect2.
17380         hardcode_direct_GCJ=unsupported
17381       fi
17382       ;;
17383
17384     aix4* | aix5*)
17385       if test "$host_cpu" = ia64; then
17386         # On IA64, the linker does run time linking by default, so we don't
17387         # have to do anything special.
17388         aix_use_runtimelinking=no
17389         exp_sym_flag='-Bexport'
17390         no_entry_flag=""
17391       else
17392         # If we're using GNU nm, then we don't want the "-C" option.
17393         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17394         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17395           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'
17396         else
17397           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'
17398         fi
17399         aix_use_runtimelinking=no
17400
17401         # Test if we are trying to use run time linking or normal
17402         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17403         # need to do runtime linking.
17404         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17405           for ld_flag in $LDFLAGS; do
17406           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17407             aix_use_runtimelinking=yes
17408             break
17409           fi
17410           done
17411           ;;
17412         esac
17413
17414         exp_sym_flag='-bexport'
17415         no_entry_flag='-bnoentry'
17416       fi
17417
17418       # When large executables or shared objects are built, AIX ld can
17419       # have problems creating the table of contents.  If linking a library
17420       # or program results in "error TOC overflow" add -mminimal-toc to
17421       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17422       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17423
17424       archive_cmds_GCJ=''
17425       hardcode_direct_GCJ=yes
17426       hardcode_libdir_separator_GCJ=':'
17427       link_all_deplibs_GCJ=yes
17428
17429       if test "$GCC" = yes; then
17430         case $host_os in aix4.[012]|aix4.[012].*)
17431         # We only want to do this on AIX 4.2 and lower, the check
17432         # below for broken collect2 doesn't work under 4.3+
17433           collect2name=`${CC} -print-prog-name=collect2`
17434           if test -f "$collect2name" && \
17435            strings "$collect2name" | grep resolve_lib_name >/dev/null
17436           then
17437           # We have reworked collect2
17438           hardcode_direct_GCJ=yes
17439           else
17440           # We have old collect2
17441           hardcode_direct_GCJ=unsupported
17442           # It fails to find uninstalled libraries when the uninstalled
17443           # path is not listed in the libpath.  Setting hardcode_minus_L
17444           # to unsupported forces relinking
17445           hardcode_minus_L_GCJ=yes
17446           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17447           hardcode_libdir_separator_GCJ=
17448           fi
17449           ;;
17450         esac
17451         shared_flag='-shared'
17452         if test "$aix_use_runtimelinking" = yes; then
17453           shared_flag="$shared_flag "'${wl}-G'
17454         fi
17455       else
17456         # not using gcc
17457         if test "$host_cpu" = ia64; then
17458         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17459         # chokes on -Wl,-G. The following line is correct:
17460           shared_flag='-G'
17461         else
17462           if test "$aix_use_runtimelinking" = yes; then
17463             shared_flag='${wl}-G'
17464           else
17465             shared_flag='${wl}-bM:SRE'
17466           fi
17467         fi
17468       fi
17469
17470       # It seems that -bexpall does not export symbols beginning with
17471       # underscore (_), so it is better to generate a list of symbols to export.
17472       always_export_symbols_GCJ=yes
17473       if test "$aix_use_runtimelinking" = yes; then
17474         # Warning - without using the other runtime loading flags (-brtl),
17475         # -berok will link without error, but may produce a broken library.
17476         allow_undefined_flag_GCJ='-berok'
17477        # Determine the default libpath from the value encoded in an empty executable.
17478        cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484
17485 int
17486 main ()
17487 {
17488
17489   ;
17490   return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497   *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500   (eval "$ac_link") 2>conftest.er1
17501   ac_status=$?
17502   grep -v '^ *+' conftest.er1 >conftest.err
17503   rm -f conftest.er1
17504   cat conftest.err >&5
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } &&
17507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17508   { (case "(($ac_try" in
17509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510   *) ac_try_echo=$ac_try;;
17511 esac
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513   (eval "$ac_try") 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; } &&
17517          { ac_try='test -s conftest$ac_exeext'
17518   { (case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523   (eval "$ac_try") 2>&5
17524   ac_status=$?
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); }; }; then
17527
17528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17529 }'`
17530 # Check for a 64-bit object if we didn't find anything.
17531 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17532 }'`; fi
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537
17538 fi
17539
17540 rm -f core conftest.err conftest.$ac_objext \
17541       conftest$ac_exeext conftest.$ac_ext
17542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17543
17544        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17545         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"
17546        else
17547         if test "$host_cpu" = ia64; then
17548           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17549           allow_undefined_flag_GCJ="-z nodefs"
17550           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"
17551         else
17552          # Determine the default libpath from the value encoded in an empty executable.
17553          cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559
17560 int
17561 main ()
17562 {
17563
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_link") 2>conftest.er1
17576   ac_status=$?
17577   grep -v '^ *+' conftest.er1 >conftest.err
17578   rm -f conftest.er1
17579   cat conftest.err >&5
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } &&
17582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583   { (case "(($ac_try" in
17584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585   *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588   (eval "$ac_try") 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; } &&
17592          { ac_try='test -s conftest$ac_exeext'
17593   { (case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_try") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; }; then
17602
17603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17604 }'`
17605 # Check for a 64-bit object if we didn't find anything.
17606 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17607 }'`; fi
17608 else
17609   echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17611
17612
17613 fi
17614
17615 rm -f core conftest.err conftest.$ac_objext \
17616       conftest$ac_exeext conftest.$ac_ext
17617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17618
17619          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17620           # Warning - without using the other run time loading flags,
17621           # -berok will link without error, but may produce a broken library.
17622           no_undefined_flag_GCJ=' ${wl}-bernotok'
17623           allow_undefined_flag_GCJ=' ${wl}-berok'
17624           # Exported symbols can be pulled into shared objects from archives
17625           whole_archive_flag_spec_GCJ='$convenience'
17626           archive_cmds_need_lc_GCJ=yes
17627           # This is similar to how AIX traditionally builds its shared libraries.
17628           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'
17629         fi
17630       fi
17631       ;;
17632
17633     amigaos*)
17634       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)'
17635       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17636       hardcode_minus_L_GCJ=yes
17637       # see comment about different semantics on the GNU ld section
17638       ld_shlibs_GCJ=no
17639       ;;
17640
17641     bsdi[45]*)
17642       export_dynamic_flag_spec_GCJ=-rdynamic
17643       ;;
17644
17645     cygwin* | mingw* | pw32*)
17646       # When not using gcc, we currently assume that we are using
17647       # Microsoft Visual C++.
17648       # hardcode_libdir_flag_spec is actually meaningless, as there is
17649       # no search path for DLLs.
17650       hardcode_libdir_flag_spec_GCJ=' '
17651       allow_undefined_flag_GCJ=unsupported
17652       # Tell ltmain to make .lib files, not .a files.
17653       libext=lib
17654       # Tell ltmain to make .dll files, not .so files.
17655       shrext_cmds=".dll"
17656       # FIXME: Setting linknames here is a bad hack.
17657       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17658       # The linker will automatically build a .lib file if we build a DLL.
17659       old_archive_From_new_cmds_GCJ='true'
17660       # FIXME: Should let the user specify the lib program.
17661       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17662       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17663       enable_shared_with_static_runtimes_GCJ=yes
17664       ;;
17665
17666     darwin* | rhapsody*)
17667       case $host_os in
17668         rhapsody* | darwin1.[012])
17669          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17670          ;;
17671        *) # Darwin 1.3 on
17672          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17673            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17674          else
17675            case ${MACOSX_DEPLOYMENT_TARGET} in
17676              10.[012])
17677                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17678                ;;
17679              10.*)
17680                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17681                ;;
17682            esac
17683          fi
17684          ;;
17685       esac
17686       archive_cmds_need_lc_GCJ=no
17687       hardcode_direct_GCJ=no
17688       hardcode_automatic_GCJ=yes
17689       hardcode_shlibpath_var_GCJ=unsupported
17690       whole_archive_flag_spec_GCJ=''
17691       link_all_deplibs_GCJ=yes
17692     if test "$GCC" = yes ; then
17693         output_verbose_link_cmd='echo'
17694         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17695       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17696       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17697       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17698       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}'
17699     else
17700       case $cc_basename in
17701         xlc*)
17702          output_verbose_link_cmd='echo'
17703          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17704          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17705           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17706          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17707           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}'
17708           ;;
17709        *)
17710          ld_shlibs_GCJ=no
17711           ;;
17712       esac
17713     fi
17714       ;;
17715
17716     dgux*)
17717       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17718       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17719       hardcode_shlibpath_var_GCJ=no
17720       ;;
17721
17722     freebsd1*)
17723       ld_shlibs_GCJ=no
17724       ;;
17725
17726     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17727     # support.  Future versions do this automatically, but an explicit c++rt0.o
17728     # does not break anything, and helps significantly (at the cost of a little
17729     # extra space).
17730     freebsd2.2*)
17731       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17732       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17733       hardcode_direct_GCJ=yes
17734       hardcode_shlibpath_var_GCJ=no
17735       ;;
17736
17737     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17738     freebsd2*)
17739       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17740       hardcode_direct_GCJ=yes
17741       hardcode_minus_L_GCJ=yes
17742       hardcode_shlibpath_var_GCJ=no
17743       ;;
17744
17745     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17746     freebsd* | kfreebsd*-gnu | dragonfly*)
17747       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17748       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17749       hardcode_direct_GCJ=yes
17750       hardcode_shlibpath_var_GCJ=no
17751       ;;
17752
17753     hpux9*)
17754       if test "$GCC" = yes; then
17755         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'
17756       else
17757         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'
17758       fi
17759       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17760       hardcode_libdir_separator_GCJ=:
17761       hardcode_direct_GCJ=yes
17762
17763       # hardcode_minus_L: Not really in the search PATH,
17764       # but as the default location of the library.
17765       hardcode_minus_L_GCJ=yes
17766       export_dynamic_flag_spec_GCJ='${wl}-E'
17767       ;;
17768
17769     hpux10*)
17770       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17771         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17772       else
17773         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17774       fi
17775       if test "$with_gnu_ld" = no; then
17776         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17777         hardcode_libdir_separator_GCJ=:
17778
17779         hardcode_direct_GCJ=yes
17780         export_dynamic_flag_spec_GCJ='${wl}-E'
17781
17782         # hardcode_minus_L: Not really in the search PATH,
17783         # but as the default location of the library.
17784         hardcode_minus_L_GCJ=yes
17785       fi
17786       ;;
17787
17788     hpux11*)
17789       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17790         case $host_cpu in
17791         hppa*64*)
17792           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17793           ;;
17794         ia64*)
17795           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17796           ;;
17797         *)
17798           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17799           ;;
17800         esac
17801       else
17802         case $host_cpu in
17803         hppa*64*)
17804           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17805           ;;
17806         ia64*)
17807           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17808           ;;
17809         *)
17810           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17811           ;;
17812         esac
17813       fi
17814       if test "$with_gnu_ld" = no; then
17815         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17816         hardcode_libdir_separator_GCJ=:
17817
17818         case $host_cpu in
17819         hppa*64*|ia64*)
17820           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17821           hardcode_direct_GCJ=no
17822           hardcode_shlibpath_var_GCJ=no
17823           ;;
17824         *)
17825           hardcode_direct_GCJ=yes
17826           export_dynamic_flag_spec_GCJ='${wl}-E'
17827
17828           # hardcode_minus_L: Not really in the search PATH,
17829           # but as the default location of the library.
17830           hardcode_minus_L_GCJ=yes
17831           ;;
17832         esac
17833       fi
17834       ;;
17835
17836     irix5* | irix6* | nonstopux*)
17837       if test "$GCC" = yes; then
17838         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'
17839       else
17840         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'
17841         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17842       fi
17843       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17844       hardcode_libdir_separator_GCJ=:
17845       link_all_deplibs_GCJ=yes
17846       ;;
17847
17848     netbsd*)
17849       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17850         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17851       else
17852         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17853       fi
17854       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17855       hardcode_direct_GCJ=yes
17856       hardcode_shlibpath_var_GCJ=no
17857       ;;
17858
17859     newsos6)
17860       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17861       hardcode_direct_GCJ=yes
17862       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17863       hardcode_libdir_separator_GCJ=:
17864       hardcode_shlibpath_var_GCJ=no
17865       ;;
17866
17867     openbsd*)
17868       hardcode_direct_GCJ=yes
17869       hardcode_shlibpath_var_GCJ=no
17870       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17871         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17872         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17873         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17874         export_dynamic_flag_spec_GCJ='${wl}-E'
17875       else
17876        case $host_os in
17877          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17878            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17879            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17880            ;;
17881          *)
17882            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17883            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17884            ;;
17885        esac
17886       fi
17887       ;;
17888
17889     os2*)
17890       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17891       hardcode_minus_L_GCJ=yes
17892       allow_undefined_flag_GCJ=unsupported
17893       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'
17894       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17895       ;;
17896
17897     osf3*)
17898       if test "$GCC" = yes; then
17899         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17900         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'
17901       else
17902         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17903         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'
17904       fi
17905       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17906       hardcode_libdir_separator_GCJ=:
17907       ;;
17908
17909     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17910       if test "$GCC" = yes; then
17911         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17912         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'
17913         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17914       else
17915         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17916         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'
17917         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~
17918         $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'
17919
17920         # Both c and cxx compiler support -rpath directly
17921         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17922       fi
17923       hardcode_libdir_separator_GCJ=:
17924       ;;
17925
17926     solaris*)
17927       no_undefined_flag_GCJ=' -z text'
17928       if test "$GCC" = yes; then
17929         wlarc='${wl}'
17930         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17931         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17932           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17933       else
17934         wlarc=''
17935         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17936         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17937         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17938       fi
17939       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17940       hardcode_shlibpath_var_GCJ=no
17941       case $host_os in
17942       solaris2.[0-5] | solaris2.[0-5].*) ;;
17943       *)
17944         # The compiler driver will combine linker options so we
17945         # cannot just pass the convience library names through
17946         # without $wl, iff we do not link with $LD.
17947         # Luckily, gcc supports the same syntax we need for Sun Studio.
17948         # Supported since Solaris 2.6 (maybe 2.5.1?)
17949         case $wlarc in
17950         '')
17951           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17952         *)
17953           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17954         esac ;;
17955       esac
17956       link_all_deplibs_GCJ=yes
17957       ;;
17958
17959     sunos4*)
17960       if test "x$host_vendor" = xsequent; then
17961         # Use $CC to link under sequent, because it throws in some extra .o
17962         # files that make .init and .fini sections work.
17963         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17964       else
17965         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17966       fi
17967       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968       hardcode_direct_GCJ=yes
17969       hardcode_minus_L_GCJ=yes
17970       hardcode_shlibpath_var_GCJ=no
17971       ;;
17972
17973     sysv4)
17974       case $host_vendor in
17975         sni)
17976           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977           hardcode_direct_GCJ=yes # is this really true???
17978         ;;
17979         siemens)
17980           ## LD is ld it makes a PLAMLIB
17981           ## CC just makes a GrossModule.
17982           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17983           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17984           hardcode_direct_GCJ=no
17985         ;;
17986         motorola)
17987           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17988           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17989         ;;
17990       esac
17991       runpath_var='LD_RUN_PATH'
17992       hardcode_shlibpath_var_GCJ=no
17993       ;;
17994
17995     sysv4.3*)
17996       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17997       hardcode_shlibpath_var_GCJ=no
17998       export_dynamic_flag_spec_GCJ='-Bexport'
17999       ;;
18000
18001     sysv4*MP*)
18002       if test -d /usr/nec; then
18003         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18004         hardcode_shlibpath_var_GCJ=no
18005         runpath_var=LD_RUN_PATH
18006         hardcode_runpath_var=yes
18007         ld_shlibs_GCJ=yes
18008       fi
18009       ;;
18010
18011     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18012       no_undefined_flag_GCJ='${wl}-z,text'
18013       archive_cmds_need_lc_GCJ=no
18014       hardcode_shlibpath_var_GCJ=no
18015       runpath_var='LD_RUN_PATH'
18016
18017       if test "$GCC" = yes; then
18018         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18019         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18020       else
18021         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18022         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18023       fi
18024       ;;
18025
18026     sysv5* | sco3.2v5* | sco5v6*)
18027       # Note: We can NOT use -z defs as we might desire, because we do not
18028       # link with -lc, and that would cause any symbols used from libc to
18029       # always be unresolved, which means just about no library would
18030       # ever link correctly.  If we're not using GNU ld we use -z text
18031       # though, which does catch some bad symbols but isn't as heavy-handed
18032       # as -z defs.
18033       no_undefined_flag_GCJ='${wl}-z,text'
18034       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18035       archive_cmds_need_lc_GCJ=no
18036       hardcode_shlibpath_var_GCJ=no
18037       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18038       hardcode_libdir_separator_GCJ=':'
18039       link_all_deplibs_GCJ=yes
18040       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18041       runpath_var='LD_RUN_PATH'
18042
18043       if test "$GCC" = yes; then
18044         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18045         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18046       else
18047         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18048         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18049       fi
18050       ;;
18051
18052     uts4*)
18053       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18054       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18055       hardcode_shlibpath_var_GCJ=no
18056       ;;
18057
18058     *)
18059       ld_shlibs_GCJ=no
18060       ;;
18061     esac
18062   fi
18063
18064 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18065 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18066 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18067
18068 #
18069 # Do we need to explicitly link libc?
18070 #
18071 case "x$archive_cmds_need_lc_GCJ" in
18072 x|xyes)
18073   # Assume -lc should be added
18074   archive_cmds_need_lc_GCJ=yes
18075
18076   if test "$enable_shared" = yes && test "$GCC" = yes; then
18077     case $archive_cmds_GCJ in
18078     *'~'*)
18079       # FIXME: we may have to deal with multi-command sequences.
18080       ;;
18081     '$CC '*)
18082       # Test whether the compiler implicitly links with -lc since on some
18083       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18084       # to ld, don't add -lc before -lgcc.
18085       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18086 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18087       $rm conftest*
18088       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18089
18090       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18091   (eval $ac_compile) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); } 2>conftest.err; then
18095         soname=conftest
18096         lib=conftest
18097         libobjs=conftest.$ac_objext
18098         deplibs=
18099         wl=$lt_prog_compiler_wl_GCJ
18100         pic_flag=$lt_prog_compiler_pic_GCJ
18101         compiler_flags=-v
18102         linker_flags=-v
18103         verstring=
18104         output_objdir=.
18105         libname=conftest
18106         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18107         allow_undefined_flag_GCJ=
18108         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18109   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }
18113         then
18114           archive_cmds_need_lc_GCJ=no
18115         else
18116           archive_cmds_need_lc_GCJ=yes
18117         fi
18118         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18119       else
18120         cat conftest.err 1>&5
18121       fi
18122       $rm conftest*
18123       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18124 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18125       ;;
18126     esac
18127   fi
18128   ;;
18129 esac
18130
18131 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18132 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18133 library_names_spec=
18134 libname_spec='lib$name'
18135 soname_spec=
18136 shrext_cmds=".so"
18137 postinstall_cmds=
18138 postuninstall_cmds=
18139 finish_cmds=
18140 finish_eval=
18141 shlibpath_var=
18142 shlibpath_overrides_runpath=unknown
18143 version_type=none
18144 dynamic_linker="$host_os ld.so"
18145 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18146 if test "$GCC" = yes; then
18147   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18148   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18149     # if the path contains ";" then we assume it to be the separator
18150     # otherwise default to the standard path separator (i.e. ":") - it is
18151     # assumed that no part of a normal pathname contains ";" but that should
18152     # okay in the real world where ";" in dirpaths is itself problematic.
18153     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18154   else
18155     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18156   fi
18157 else
18158   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18159 fi
18160 need_lib_prefix=unknown
18161 hardcode_into_libs=no
18162
18163 # when you set need_version to no, make sure it does not cause -set_version
18164 # flags to be left without arguments
18165 need_version=unknown
18166
18167 case $host_os in
18168 aix3*)
18169   version_type=linux
18170   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18171   shlibpath_var=LIBPATH
18172
18173   # AIX 3 has no versioning support, so we append a major version to the name.
18174   soname_spec='${libname}${release}${shared_ext}$major'
18175   ;;
18176
18177 aix4* | aix5*)
18178   version_type=linux
18179   need_lib_prefix=no
18180   need_version=no
18181   hardcode_into_libs=yes
18182   if test "$host_cpu" = ia64; then
18183     # AIX 5 supports IA64
18184     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18185     shlibpath_var=LD_LIBRARY_PATH
18186   else
18187     # With GCC up to 2.95.x, collect2 would create an import file
18188     # for dependence libraries.  The import file would start with
18189     # the line `#! .'.  This would cause the generated library to
18190     # depend on `.', always an invalid library.  This was fixed in
18191     # development snapshots of GCC prior to 3.0.
18192     case $host_os in
18193       aix4 | aix4.[01] | aix4.[01].*)
18194       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18195            echo ' yes '
18196            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18197         :
18198       else
18199         can_build_shared=no
18200       fi
18201       ;;
18202     esac
18203     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18204     # soname into executable. Probably we can add versioning support to
18205     # collect2, so additional links can be useful in future.
18206     if test "$aix_use_runtimelinking" = yes; then
18207       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18208       # instead of lib<name>.a to let people know that these are not
18209       # typical AIX shared libraries.
18210       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211     else
18212       # We preserve .a as extension for shared libraries through AIX4.2
18213       # and later when we are not doing run time linking.
18214       library_names_spec='${libname}${release}.a $libname.a'
18215       soname_spec='${libname}${release}${shared_ext}$major'
18216     fi
18217     shlibpath_var=LIBPATH
18218   fi
18219   ;;
18220
18221 amigaos*)
18222   library_names_spec='$libname.ixlibrary $libname.a'
18223   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18224   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'
18225   ;;
18226
18227 beos*)
18228   library_names_spec='${libname}${shared_ext}'
18229   dynamic_linker="$host_os ld.so"
18230   shlibpath_var=LIBRARY_PATH
18231   ;;
18232
18233 bsdi[45]*)
18234   version_type=linux
18235   need_version=no
18236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237   soname_spec='${libname}${release}${shared_ext}$major'
18238   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18239   shlibpath_var=LD_LIBRARY_PATH
18240   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18241   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18242   # the default ld.so.conf also contains /usr/contrib/lib and
18243   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18244   # libtool to hard-code these into programs
18245   ;;
18246
18247 cygwin* | mingw* | pw32*)
18248   version_type=windows
18249   shrext_cmds=".dll"
18250   need_version=no
18251   need_lib_prefix=no
18252
18253   case $GCC,$host_os in
18254   yes,cygwin* | yes,mingw* | yes,pw32*)
18255     library_names_spec='$libname.dll.a'
18256     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18257     postinstall_cmds='base_file=`basename \${file}`~
18258       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18259       dldir=$destdir/`dirname \$dlpath`~
18260       test -d \$dldir || mkdir -p \$dldir~
18261       $install_prog $dir/$dlname \$dldir/$dlname~
18262       chmod a+x \$dldir/$dlname'
18263     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18264       dlpath=$dir/\$dldll~
18265        $rm \$dlpath'
18266     shlibpath_overrides_runpath=yes
18267
18268     case $host_os in
18269     cygwin*)
18270       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18271       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18272       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18273       ;;
18274     mingw*)
18275       # MinGW DLLs use traditional 'lib' prefix
18276       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18277       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18278       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18279         # It is most probably a Windows format PATH printed by
18280         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18281         # path with ; separators, and with drive letters. We can handle the
18282         # drive letters (cygwin fileutils understands them), so leave them,
18283         # especially as we might pass files found there to a mingw objdump,
18284         # which wouldn't understand a cygwinified path. Ahh.
18285         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18286       else
18287         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18288       fi
18289       ;;
18290     pw32*)
18291       # pw32 DLLs use 'pw' prefix rather than 'lib'
18292       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18293       ;;
18294     esac
18295     ;;
18296
18297   *)
18298     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18299     ;;
18300   esac
18301   dynamic_linker='Win32 ld.exe'
18302   # FIXME: first we should search . and the directory the executable is in
18303   shlibpath_var=PATH
18304   ;;
18305
18306 darwin* | rhapsody*)
18307   dynamic_linker="$host_os dyld"
18308   version_type=darwin
18309   need_lib_prefix=no
18310   need_version=no
18311   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18312   soname_spec='${libname}${release}${major}$shared_ext'
18313   shlibpath_overrides_runpath=yes
18314   shlibpath_var=DYLD_LIBRARY_PATH
18315   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18316   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18317   if test "$GCC" = yes; then
18318     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18319   else
18320     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18321   fi
18322   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18323   ;;
18324
18325 dgux*)
18326   version_type=linux
18327   need_lib_prefix=no
18328   need_version=no
18329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18330   soname_spec='${libname}${release}${shared_ext}$major'
18331   shlibpath_var=LD_LIBRARY_PATH
18332   ;;
18333
18334 freebsd1*)
18335   dynamic_linker=no
18336   ;;
18337
18338 kfreebsd*-gnu)
18339   version_type=linux
18340   need_lib_prefix=no
18341   need_version=no
18342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18343   soname_spec='${libname}${release}${shared_ext}$major'
18344   shlibpath_var=LD_LIBRARY_PATH
18345   shlibpath_overrides_runpath=no
18346   hardcode_into_libs=yes
18347   dynamic_linker='GNU ld.so'
18348   ;;
18349
18350 freebsd* | dragonfly*)
18351   # DragonFly does not have aout.  When/if they implement a new
18352   # versioning mechanism, adjust this.
18353   if test -x /usr/bin/objformat; then
18354     objformat=`/usr/bin/objformat`
18355   else
18356     case $host_os in
18357     freebsd[123]*) objformat=aout ;;
18358     *) objformat=elf ;;
18359     esac
18360   fi
18361   version_type=freebsd-$objformat
18362   case $version_type in
18363     freebsd-elf*)
18364       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18365       need_version=no
18366       need_lib_prefix=no
18367       ;;
18368     freebsd-*)
18369       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18370       need_version=yes
18371       ;;
18372   esac
18373   shlibpath_var=LD_LIBRARY_PATH
18374   case $host_os in
18375   freebsd2*)
18376     shlibpath_overrides_runpath=yes
18377     ;;
18378   freebsd3.[01]* | freebsdelf3.[01]*)
18379     shlibpath_overrides_runpath=yes
18380     hardcode_into_libs=yes
18381     ;;
18382   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18383   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18384     shlibpath_overrides_runpath=no
18385     hardcode_into_libs=yes
18386     ;;
18387   freebsd*) # from 4.6 on
18388     shlibpath_overrides_runpath=yes
18389     hardcode_into_libs=yes
18390     ;;
18391   esac
18392   ;;
18393
18394 gnu*)
18395   version_type=linux
18396   need_lib_prefix=no
18397   need_version=no
18398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18399   soname_spec='${libname}${release}${shared_ext}$major'
18400   shlibpath_var=LD_LIBRARY_PATH
18401   hardcode_into_libs=yes
18402   ;;
18403
18404 hpux9* | hpux10* | hpux11*)
18405   # Give a soname corresponding to the major version so that dld.sl refuses to
18406   # link against other versions.
18407   version_type=sunos
18408   need_lib_prefix=no
18409   need_version=no
18410   case $host_cpu in
18411   ia64*)
18412     shrext_cmds='.so'
18413     hardcode_into_libs=yes
18414     dynamic_linker="$host_os dld.so"
18415     shlibpath_var=LD_LIBRARY_PATH
18416     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18418     soname_spec='${libname}${release}${shared_ext}$major'
18419     if test "X$HPUX_IA64_MODE" = X32; then
18420       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18421     else
18422       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18423     fi
18424     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18425     ;;
18426    hppa*64*)
18427      shrext_cmds='.sl'
18428      hardcode_into_libs=yes
18429      dynamic_linker="$host_os dld.sl"
18430      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18431      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18432      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433      soname_spec='${libname}${release}${shared_ext}$major'
18434      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18435      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18436      ;;
18437    *)
18438     shrext_cmds='.sl'
18439     dynamic_linker="$host_os dld.sl"
18440     shlibpath_var=SHLIB_PATH
18441     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443     soname_spec='${libname}${release}${shared_ext}$major'
18444     ;;
18445   esac
18446   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18447   postinstall_cmds='chmod 555 $lib'
18448   ;;
18449
18450 interix3*)
18451   version_type=linux
18452   need_lib_prefix=no
18453   need_version=no
18454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18455   soname_spec='${libname}${release}${shared_ext}$major'
18456   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18457   shlibpath_var=LD_LIBRARY_PATH
18458   shlibpath_overrides_runpath=no
18459   hardcode_into_libs=yes
18460   ;;
18461
18462 irix5* | irix6* | nonstopux*)
18463   case $host_os in
18464     nonstopux*) version_type=nonstopux ;;
18465     *)
18466         if test "$lt_cv_prog_gnu_ld" = yes; then
18467                 version_type=linux
18468         else
18469                 version_type=irix
18470         fi ;;
18471   esac
18472   need_lib_prefix=no
18473   need_version=no
18474   soname_spec='${libname}${release}${shared_ext}$major'
18475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18476   case $host_os in
18477   irix5* | nonstopux*)
18478     libsuff= shlibsuff=
18479     ;;
18480   *)
18481     case $LD in # libtool.m4 will add one of these switches to LD
18482     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18483       libsuff= shlibsuff= libmagic=32-bit;;
18484     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18485       libsuff=32 shlibsuff=N32 libmagic=N32;;
18486     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18487       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18488     *) libsuff= shlibsuff= libmagic=never-match;;
18489     esac
18490     ;;
18491   esac
18492   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18493   shlibpath_overrides_runpath=no
18494   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18495   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18496   hardcode_into_libs=yes
18497   ;;
18498
18499 # No shared lib support for Linux oldld, aout, or coff.
18500 linux*oldld* | linux*aout* | linux*coff*)
18501   dynamic_linker=no
18502   ;;
18503
18504 # This must be Linux ELF.
18505 linux*)
18506   version_type=linux
18507   need_lib_prefix=no
18508   need_version=no
18509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18510   soname_spec='${libname}${release}${shared_ext}$major'
18511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18512   shlibpath_var=LD_LIBRARY_PATH
18513   shlibpath_overrides_runpath=no
18514   # This implies no fast_install, which is unacceptable.
18515   # Some rework will be needed to allow for fast_install
18516   # before this can be enabled.
18517   hardcode_into_libs=yes
18518
18519   # Append ld.so.conf contents to the search path
18520   if test -f /etc/ld.so.conf; then
18521     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18522     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18523   fi
18524
18525   # We used to test for /lib/ld.so.1 and disable shared libraries on
18526   # powerpc, because MkLinux only supported shared libraries with the
18527   # GNU dynamic linker.  Since this was broken with cross compilers,
18528   # most powerpc-linux boxes support dynamic linking these days and
18529   # people can always --disable-shared, the test was removed, and we
18530   # assume the GNU/Linux dynamic linker is in use.
18531   dynamic_linker='GNU/Linux ld.so'
18532   ;;
18533
18534 knetbsd*-gnu)
18535   version_type=linux
18536   need_lib_prefix=no
18537   need_version=no
18538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18539   soname_spec='${libname}${release}${shared_ext}$major'
18540   shlibpath_var=LD_LIBRARY_PATH
18541   shlibpath_overrides_runpath=no
18542   hardcode_into_libs=yes
18543   dynamic_linker='GNU ld.so'
18544   ;;
18545
18546 netbsd*)
18547   version_type=sunos
18548   need_lib_prefix=no
18549   need_version=no
18550   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18552     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18553     dynamic_linker='NetBSD (a.out) ld.so'
18554   else
18555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18556     soname_spec='${libname}${release}${shared_ext}$major'
18557     dynamic_linker='NetBSD ld.elf_so'
18558   fi
18559   shlibpath_var=LD_LIBRARY_PATH
18560   shlibpath_overrides_runpath=yes
18561   hardcode_into_libs=yes
18562   ;;
18563
18564 newsos6)
18565   version_type=linux
18566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18567   shlibpath_var=LD_LIBRARY_PATH
18568   shlibpath_overrides_runpath=yes
18569   ;;
18570
18571 nto-qnx*)
18572   version_type=linux
18573   need_lib_prefix=no
18574   need_version=no
18575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576   soname_spec='${libname}${release}${shared_ext}$major'
18577   shlibpath_var=LD_LIBRARY_PATH
18578   shlibpath_overrides_runpath=yes
18579   ;;
18580
18581 openbsd*)
18582   version_type=sunos
18583   sys_lib_dlsearch_path_spec="/usr/lib"
18584   need_lib_prefix=no
18585   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18586   case $host_os in
18587     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18588     *)                         need_version=no  ;;
18589   esac
18590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18591   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18592   shlibpath_var=LD_LIBRARY_PATH
18593   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18594     case $host_os in
18595       openbsd2.[89] | openbsd2.[89].*)
18596         shlibpath_overrides_runpath=no
18597         ;;
18598       *)
18599         shlibpath_overrides_runpath=yes
18600         ;;
18601       esac
18602   else
18603     shlibpath_overrides_runpath=yes
18604   fi
18605   ;;
18606
18607 os2*)
18608   libname_spec='$name'
18609   shrext_cmds=".dll"
18610   need_lib_prefix=no
18611   library_names_spec='$libname${shared_ext} $libname.a'
18612   dynamic_linker='OS/2 ld.exe'
18613   shlibpath_var=LIBPATH
18614   ;;
18615
18616 osf3* | osf4* | osf5*)
18617   version_type=osf
18618   need_lib_prefix=no
18619   need_version=no
18620   soname_spec='${libname}${release}${shared_ext}$major'
18621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622   shlibpath_var=LD_LIBRARY_PATH
18623   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18624   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18625   ;;
18626
18627 solaris*)
18628   version_type=linux
18629   need_lib_prefix=no
18630   need_version=no
18631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632   soname_spec='${libname}${release}${shared_ext}$major'
18633   shlibpath_var=LD_LIBRARY_PATH
18634   shlibpath_overrides_runpath=yes
18635   hardcode_into_libs=yes
18636   # ldd complains unless libraries are executable
18637   postinstall_cmds='chmod +x $lib'
18638   ;;
18639
18640 sunos4*)
18641   version_type=sunos
18642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18644   shlibpath_var=LD_LIBRARY_PATH
18645   shlibpath_overrides_runpath=yes
18646   if test "$with_gnu_ld" = yes; then
18647     need_lib_prefix=no
18648   fi
18649   need_version=yes
18650   ;;
18651
18652 sysv4 | sysv4.3*)
18653   version_type=linux
18654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655   soname_spec='${libname}${release}${shared_ext}$major'
18656   shlibpath_var=LD_LIBRARY_PATH
18657   case $host_vendor in
18658     sni)
18659       shlibpath_overrides_runpath=no
18660       need_lib_prefix=no
18661       export_dynamic_flag_spec='${wl}-Blargedynsym'
18662       runpath_var=LD_RUN_PATH
18663       ;;
18664     siemens)
18665       need_lib_prefix=no
18666       ;;
18667     motorola)
18668       need_lib_prefix=no
18669       need_version=no
18670       shlibpath_overrides_runpath=no
18671       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18672       ;;
18673   esac
18674   ;;
18675
18676 sysv4*MP*)
18677   if test -d /usr/nec ;then
18678     version_type=linux
18679     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18680     soname_spec='$libname${shared_ext}.$major'
18681     shlibpath_var=LD_LIBRARY_PATH
18682   fi
18683   ;;
18684
18685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18686   version_type=freebsd-elf
18687   need_lib_prefix=no
18688   need_version=no
18689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18690   soname_spec='${libname}${release}${shared_ext}$major'
18691   shlibpath_var=LD_LIBRARY_PATH
18692   hardcode_into_libs=yes
18693   if test "$with_gnu_ld" = yes; then
18694     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18695     shlibpath_overrides_runpath=no
18696   else
18697     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18698     shlibpath_overrides_runpath=yes
18699     case $host_os in
18700       sco3.2v5*)
18701         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18702         ;;
18703     esac
18704   fi
18705   sys_lib_dlsearch_path_spec='/usr/lib'
18706   ;;
18707
18708 uts4*)
18709   version_type=linux
18710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711   soname_spec='${libname}${release}${shared_ext}$major'
18712   shlibpath_var=LD_LIBRARY_PATH
18713   ;;
18714
18715 *)
18716   dynamic_linker=no
18717   ;;
18718 esac
18719 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18720 echo "${ECHO_T}$dynamic_linker" >&6; }
18721 test "$dynamic_linker" = no && can_build_shared=no
18722
18723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18724 if test "$GCC" = yes; then
18725   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18726 fi
18727
18728 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18729 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18730 hardcode_action_GCJ=
18731 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18732    test -n "$runpath_var_GCJ" || \
18733    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18734
18735   # We can hardcode non-existant directories.
18736   if test "$hardcode_direct_GCJ" != no &&
18737      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18738      # have to relink, otherwise we might link with an installed library
18739      # when we should be linking with a yet-to-be-installed one
18740      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18741      test "$hardcode_minus_L_GCJ" != no; then
18742     # Linking always hardcodes the temporary library directory.
18743     hardcode_action_GCJ=relink
18744   else
18745     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18746     hardcode_action_GCJ=immediate
18747   fi
18748 else
18749   # We cannot hardcode anything, or else we can only hardcode existing
18750   # directories.
18751   hardcode_action_GCJ=unsupported
18752 fi
18753 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18754 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18755
18756 if test "$hardcode_action_GCJ" = relink; then
18757   # Fast installation is not supported
18758   enable_fast_install=no
18759 elif test "$shlibpath_overrides_runpath" = yes ||
18760      test "$enable_shared" = no; then
18761   # Fast installation is not necessary
18762   enable_fast_install=needless
18763 fi
18764
18765
18766 # The else clause should only fire when bootstrapping the
18767 # libtool distribution, otherwise you forgot to ship ltmain.sh
18768 # with your package, and you will get complaints that there are
18769 # no rules to generate ltmain.sh.
18770 if test -f "$ltmain"; then
18771   # See if we are running on zsh, and set the options which allow our commands through
18772   # without removal of \ escapes.
18773   if test -n "${ZSH_VERSION+set}" ; then
18774     setopt NO_GLOB_SUBST
18775   fi
18776   # Now quote all the things that may contain metacharacters while being
18777   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18778   # variables and quote the copies for generation of the libtool script.
18779   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18780     SED SHELL STRIP \
18781     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18782     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18783     deplibs_check_method reload_flag reload_cmds need_locks \
18784     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18785     lt_cv_sys_global_symbol_to_c_name_address \
18786     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18787     old_postinstall_cmds old_postuninstall_cmds \
18788     compiler_GCJ \
18789     CC_GCJ \
18790     LD_GCJ \
18791     lt_prog_compiler_wl_GCJ \
18792     lt_prog_compiler_pic_GCJ \
18793     lt_prog_compiler_static_GCJ \
18794     lt_prog_compiler_no_builtin_flag_GCJ \
18795     export_dynamic_flag_spec_GCJ \
18796     thread_safe_flag_spec_GCJ \
18797     whole_archive_flag_spec_GCJ \
18798     enable_shared_with_static_runtimes_GCJ \
18799     old_archive_cmds_GCJ \
18800     old_archive_from_new_cmds_GCJ \
18801     predep_objects_GCJ \
18802     postdep_objects_GCJ \
18803     predeps_GCJ \
18804     postdeps_GCJ \
18805     compiler_lib_search_path_GCJ \
18806     archive_cmds_GCJ \
18807     archive_expsym_cmds_GCJ \
18808     postinstall_cmds_GCJ \
18809     postuninstall_cmds_GCJ \
18810     old_archive_from_expsyms_cmds_GCJ \
18811     allow_undefined_flag_GCJ \
18812     no_undefined_flag_GCJ \
18813     export_symbols_cmds_GCJ \
18814     hardcode_libdir_flag_spec_GCJ \
18815     hardcode_libdir_flag_spec_ld_GCJ \
18816     hardcode_libdir_separator_GCJ \
18817     hardcode_automatic_GCJ \
18818     module_cmds_GCJ \
18819     module_expsym_cmds_GCJ \
18820     lt_cv_prog_compiler_c_o_GCJ \
18821     exclude_expsyms_GCJ \
18822     include_expsyms_GCJ; do
18823
18824     case $var in
18825     old_archive_cmds_GCJ | \
18826     old_archive_from_new_cmds_GCJ | \
18827     archive_cmds_GCJ | \
18828     archive_expsym_cmds_GCJ | \
18829     module_cmds_GCJ | \
18830     module_expsym_cmds_GCJ | \
18831     old_archive_from_expsyms_cmds_GCJ | \
18832     export_symbols_cmds_GCJ | \
18833     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18834     postinstall_cmds | postuninstall_cmds | \
18835     old_postinstall_cmds | old_postuninstall_cmds | \
18836     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18837       # Double-quote double-evaled strings.
18838       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18839       ;;
18840     *)
18841       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18842       ;;
18843     esac
18844   done
18845
18846   case $lt_echo in
18847   *'\$0 --fallback-echo"')
18848     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18849     ;;
18850   esac
18851
18852 cfgfile="$ofile"
18853
18854   cat <<__EOF__ >> "$cfgfile"
18855 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18856
18857 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18858
18859 # Shell to use when invoking shell scripts.
18860 SHELL=$lt_SHELL
18861
18862 # Whether or not to build shared libraries.
18863 build_libtool_libs=$enable_shared
18864
18865 # Whether or not to build static libraries.
18866 build_old_libs=$enable_static
18867
18868 # Whether or not to add -lc for building shared libraries.
18869 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18870
18871 # Whether or not to disallow shared libs when runtime libs are static
18872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18873
18874 # Whether or not to optimize for fast installation.
18875 fast_install=$enable_fast_install
18876
18877 # The host system.
18878 host_alias=$host_alias
18879 host=$host
18880 host_os=$host_os
18881
18882 # The build system.
18883 build_alias=$build_alias
18884 build=$build
18885 build_os=$build_os
18886
18887 # An echo program that does not interpret backslashes.
18888 echo=$lt_echo
18889
18890 # The archiver.
18891 AR=$lt_AR
18892 AR_FLAGS=$lt_AR_FLAGS
18893
18894 # A C compiler.
18895 LTCC=$lt_LTCC
18896
18897 # LTCC compiler flags.
18898 LTCFLAGS=$lt_LTCFLAGS
18899
18900 # A language-specific compiler.
18901 CC=$lt_compiler_GCJ
18902
18903 # Is the compiler the GNU C compiler?
18904 with_gcc=$GCC_GCJ
18905
18906 # An ERE matcher.
18907 EGREP=$lt_EGREP
18908
18909 # The linker used to build libraries.
18910 LD=$lt_LD_GCJ
18911
18912 # Whether we need hard or soft links.
18913 LN_S=$lt_LN_S
18914
18915 # A BSD-compatible nm program.
18916 NM=$lt_NM
18917
18918 # A symbol stripping program
18919 STRIP=$lt_STRIP
18920
18921 # Used to examine libraries when file_magic_cmd begins "file"
18922 MAGIC_CMD=$MAGIC_CMD
18923
18924 # Used on cygwin: DLL creation program.
18925 DLLTOOL="$DLLTOOL"
18926
18927 # Used on cygwin: object dumper.
18928 OBJDUMP="$OBJDUMP"
18929
18930 # Used on cygwin: assembler.
18931 AS="$AS"
18932
18933 # The name of the directory that contains temporary libtool files.
18934 objdir=$objdir
18935
18936 # How to create reloadable object files.
18937 reload_flag=$lt_reload_flag
18938 reload_cmds=$lt_reload_cmds
18939
18940 # How to pass a linker flag through the compiler.
18941 wl=$lt_lt_prog_compiler_wl_GCJ
18942
18943 # Object file suffix (normally "o").
18944 objext="$ac_objext"
18945
18946 # Old archive suffix (normally "a").
18947 libext="$libext"
18948
18949 # Shared library suffix (normally ".so").
18950 shrext_cmds='$shrext_cmds'
18951
18952 # Executable file suffix (normally "").
18953 exeext="$exeext"
18954
18955 # Additional compiler flags for building library objects.
18956 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18957 pic_mode=$pic_mode
18958
18959 # What is the maximum length of a command?
18960 max_cmd_len=$lt_cv_sys_max_cmd_len
18961
18962 # Does compiler simultaneously support -c and -o options?
18963 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18964
18965 # Must we lock files when doing compilation?
18966 need_locks=$lt_need_locks
18967
18968 # Do we need the lib prefix for modules?
18969 need_lib_prefix=$need_lib_prefix
18970
18971 # Do we need a version for libraries?
18972 need_version=$need_version
18973
18974 # Whether dlopen is supported.
18975 dlopen_support=$enable_dlopen
18976
18977 # Whether dlopen of programs is supported.
18978 dlopen_self=$enable_dlopen_self
18979
18980 # Whether dlopen of statically linked programs is supported.
18981 dlopen_self_static=$enable_dlopen_self_static
18982
18983 # Compiler flag to prevent dynamic linking.
18984 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18985
18986 # Compiler flag to turn off builtin functions.
18987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18988
18989 # Compiler flag to allow reflexive dlopens.
18990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18991
18992 # Compiler flag to generate shared objects directly from archives.
18993 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18994
18995 # Compiler flag to generate thread-safe objects.
18996 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18997
18998 # Library versioning type.
18999 version_type=$version_type
19000
19001 # Format of library name prefix.
19002 libname_spec=$lt_libname_spec
19003
19004 # List of archive names.  First name is the real one, the rest are links.
19005 # The last name is the one that the linker finds with -lNAME.
19006 library_names_spec=$lt_library_names_spec
19007
19008 # The coded name of the library, if different from the real name.
19009 soname_spec=$lt_soname_spec
19010
19011 # Commands used to build and install an old-style archive.
19012 RANLIB=$lt_RANLIB
19013 old_archive_cmds=$lt_old_archive_cmds_GCJ
19014 old_postinstall_cmds=$lt_old_postinstall_cmds
19015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19016
19017 # Create an old-style archive from a shared archive.
19018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19019
19020 # Create a temporary old-style archive to link instead of a shared archive.
19021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19022
19023 # Commands used to build and install a shared archive.
19024 archive_cmds=$lt_archive_cmds_GCJ
19025 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19026 postinstall_cmds=$lt_postinstall_cmds
19027 postuninstall_cmds=$lt_postuninstall_cmds
19028
19029 # Commands used to build a loadable module (assumed same as above if empty)
19030 module_cmds=$lt_module_cmds_GCJ
19031 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19032
19033 # Commands to strip libraries.
19034 old_striplib=$lt_old_striplib
19035 striplib=$lt_striplib
19036
19037 # Dependencies to place before the objects being linked to create a
19038 # shared library.
19039 predep_objects=$lt_predep_objects_GCJ
19040
19041 # Dependencies to place after the objects being linked to create a
19042 # shared library.
19043 postdep_objects=$lt_postdep_objects_GCJ
19044
19045 # Dependencies to place before the objects being linked to create a
19046 # shared library.
19047 predeps=$lt_predeps_GCJ
19048
19049 # Dependencies to place after the objects being linked to create a
19050 # shared library.
19051 postdeps=$lt_postdeps_GCJ
19052
19053 # The library search path used internally by the compiler when linking
19054 # a shared library.
19055 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19056
19057 # Method to check whether dependent libraries are shared objects.
19058 deplibs_check_method=$lt_deplibs_check_method
19059
19060 # Command to use when deplibs_check_method == file_magic.
19061 file_magic_cmd=$lt_file_magic_cmd
19062
19063 # Flag that allows shared libraries with undefined symbols to be built.
19064 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19065
19066 # Flag that forces no undefined symbols.
19067 no_undefined_flag=$lt_no_undefined_flag_GCJ
19068
19069 # Commands used to finish a libtool library installation in a directory.
19070 finish_cmds=$lt_finish_cmds
19071
19072 # Same as above, but a single script fragment to be evaled but not shown.
19073 finish_eval=$lt_finish_eval
19074
19075 # Take the output of nm and produce a listing of raw symbols and C names.
19076 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19077
19078 # Transform the output of nm in a proper C declaration
19079 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19080
19081 # Transform the output of nm in a C name address pair
19082 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19083
19084 # This is the shared library runtime path variable.
19085 runpath_var=$runpath_var
19086
19087 # This is the shared library path variable.
19088 shlibpath_var=$shlibpath_var
19089
19090 # Is shlibpath searched before the hard-coded library search path?
19091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19092
19093 # How to hardcode a shared library path into an executable.
19094 hardcode_action=$hardcode_action_GCJ
19095
19096 # Whether we should hardcode library paths into libraries.
19097 hardcode_into_libs=$hardcode_into_libs
19098
19099 # Flag to hardcode \$libdir into a binary during linking.
19100 # This must work even if \$libdir does not exist.
19101 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19102
19103 # If ld is used when linking, flag to hardcode \$libdir into
19104 # a binary during linking. This must work even if \$libdir does
19105 # not exist.
19106 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19107
19108 # Whether we need a single -rpath flag with a separated argument.
19109 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19110
19111 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19112 # resulting binary.
19113 hardcode_direct=$hardcode_direct_GCJ
19114
19115 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19116 # resulting binary.
19117 hardcode_minus_L=$hardcode_minus_L_GCJ
19118
19119 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19120 # the resulting binary.
19121 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19122
19123 # Set to yes if building a shared library automatically hardcodes DIR into the library
19124 # and all subsequent libraries and executables linked against it.
19125 hardcode_automatic=$hardcode_automatic_GCJ
19126
19127 # Variables whose values should be saved in libtool wrapper scripts and
19128 # restored at relink time.
19129 variables_saved_for_relink="$variables_saved_for_relink"
19130
19131 # Whether libtool must link a program against all its dependency libraries.
19132 link_all_deplibs=$link_all_deplibs_GCJ
19133
19134 # Compile-time system search path for libraries
19135 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19136
19137 # Run-time system search path for libraries
19138 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19139
19140 # Fix the shell variable \$srcfile for the compiler.
19141 fix_srcfile_path="$fix_srcfile_path_GCJ"
19142
19143 # Set to yes if exported symbols are required.
19144 always_export_symbols=$always_export_symbols_GCJ
19145
19146 # The commands to list exported symbols.
19147 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19148
19149 # The commands to extract the exported symbol list from a shared archive.
19150 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19151
19152 # Symbols that should not be listed in the preloaded symbols.
19153 exclude_expsyms=$lt_exclude_expsyms_GCJ
19154
19155 # Symbols that must always be exported.
19156 include_expsyms=$lt_include_expsyms_GCJ
19157
19158 # ### END LIBTOOL TAG CONFIG: $tagname
19159
19160 __EOF__
19161
19162
19163 else
19164   # If there is no Makefile yet, we rely on a make rule to execute
19165   # `config.status --recheck' to rerun these tests and create the
19166   # libtool script then.
19167   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19168   if test -f "$ltmain_in"; then
19169     test -f Makefile && make "$ltmain"
19170   fi
19171 fi
19172
19173
19174 ac_ext=c
19175 ac_cpp='$CPP $CPPFLAGS'
19176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19179
19180 CC="$lt_save_CC"
19181
19182         else
19183           tagname=""
19184         fi
19185         ;;
19186
19187       RC)
19188
19189
19190 # Source file extension for RC test sources.
19191 ac_ext=rc
19192
19193 # Object file extension for compiled RC test sources.
19194 objext=o
19195 objext_RC=$objext
19196
19197 # Code to be used in simple compile tests
19198 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19199
19200 # Code to be used in simple link tests
19201 lt_simple_link_test_code="$lt_simple_compile_test_code"
19202
19203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19204
19205 # If no C compiler was specified, use CC.
19206 LTCC=${LTCC-"$CC"}
19207
19208 # If no C compiler flags were specified, use CFLAGS.
19209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19210
19211 # Allow CC to be a program name with arguments.
19212 compiler=$CC
19213
19214
19215 # save warnings/boilerplate of simple test code
19216 ac_outfile=conftest.$ac_objext
19217 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19219 _lt_compiler_boilerplate=`cat conftest.err`
19220 $rm conftest*
19221
19222 ac_outfile=conftest.$ac_objext
19223 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19225 _lt_linker_boilerplate=`cat conftest.err`
19226 $rm conftest*
19227
19228
19229 # Allow CC to be a program name with arguments.
19230 lt_save_CC="$CC"
19231 CC=${RC-"windres"}
19232 compiler=$CC
19233 compiler_RC=$CC
19234 for cc_temp in $compiler""; do
19235   case $cc_temp in
19236     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19237     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19238     \-*) ;;
19239     *) break;;
19240   esac
19241 done
19242 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19243
19244 lt_cv_prog_compiler_c_o_RC=yes
19245
19246 # The else clause should only fire when bootstrapping the
19247 # libtool distribution, otherwise you forgot to ship ltmain.sh
19248 # with your package, and you will get complaints that there are
19249 # no rules to generate ltmain.sh.
19250 if test -f "$ltmain"; then
19251   # See if we are running on zsh, and set the options which allow our commands through
19252   # without removal of \ escapes.
19253   if test -n "${ZSH_VERSION+set}" ; then
19254     setopt NO_GLOB_SUBST
19255   fi
19256   # Now quote all the things that may contain metacharacters while being
19257   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19258   # variables and quote the copies for generation of the libtool script.
19259   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19260     SED SHELL STRIP \
19261     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19262     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19263     deplibs_check_method reload_flag reload_cmds need_locks \
19264     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19265     lt_cv_sys_global_symbol_to_c_name_address \
19266     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19267     old_postinstall_cmds old_postuninstall_cmds \
19268     compiler_RC \
19269     CC_RC \
19270     LD_RC \
19271     lt_prog_compiler_wl_RC \
19272     lt_prog_compiler_pic_RC \
19273     lt_prog_compiler_static_RC \
19274     lt_prog_compiler_no_builtin_flag_RC \
19275     export_dynamic_flag_spec_RC \
19276     thread_safe_flag_spec_RC \
19277     whole_archive_flag_spec_RC \
19278     enable_shared_with_static_runtimes_RC \
19279     old_archive_cmds_RC \
19280     old_archive_from_new_cmds_RC \
19281     predep_objects_RC \
19282     postdep_objects_RC \
19283     predeps_RC \
19284     postdeps_RC \
19285     compiler_lib_search_path_RC \
19286     archive_cmds_RC \
19287     archive_expsym_cmds_RC \
19288     postinstall_cmds_RC \
19289     postuninstall_cmds_RC \
19290     old_archive_from_expsyms_cmds_RC \
19291     allow_undefined_flag_RC \
19292     no_undefined_flag_RC \
19293     export_symbols_cmds_RC \
19294     hardcode_libdir_flag_spec_RC \
19295     hardcode_libdir_flag_spec_ld_RC \
19296     hardcode_libdir_separator_RC \
19297     hardcode_automatic_RC \
19298     module_cmds_RC \
19299     module_expsym_cmds_RC \
19300     lt_cv_prog_compiler_c_o_RC \
19301     exclude_expsyms_RC \
19302     include_expsyms_RC; do
19303
19304     case $var in
19305     old_archive_cmds_RC | \
19306     old_archive_from_new_cmds_RC | \
19307     archive_cmds_RC | \
19308     archive_expsym_cmds_RC | \
19309     module_cmds_RC | \
19310     module_expsym_cmds_RC | \
19311     old_archive_from_expsyms_cmds_RC | \
19312     export_symbols_cmds_RC | \
19313     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19314     postinstall_cmds | postuninstall_cmds | \
19315     old_postinstall_cmds | old_postuninstall_cmds | \
19316     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19317       # Double-quote double-evaled strings.
19318       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19319       ;;
19320     *)
19321       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19322       ;;
19323     esac
19324   done
19325
19326   case $lt_echo in
19327   *'\$0 --fallback-echo"')
19328     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19329     ;;
19330   esac
19331
19332 cfgfile="$ofile"
19333
19334   cat <<__EOF__ >> "$cfgfile"
19335 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19336
19337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19338
19339 # Shell to use when invoking shell scripts.
19340 SHELL=$lt_SHELL
19341
19342 # Whether or not to build shared libraries.
19343 build_libtool_libs=$enable_shared
19344
19345 # Whether or not to build static libraries.
19346 build_old_libs=$enable_static
19347
19348 # Whether or not to add -lc for building shared libraries.
19349 build_libtool_need_lc=$archive_cmds_need_lc_RC
19350
19351 # Whether or not to disallow shared libs when runtime libs are static
19352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19353
19354 # Whether or not to optimize for fast installation.
19355 fast_install=$enable_fast_install
19356
19357 # The host system.
19358 host_alias=$host_alias
19359 host=$host
19360 host_os=$host_os
19361
19362 # The build system.
19363 build_alias=$build_alias
19364 build=$build
19365 build_os=$build_os
19366
19367 # An echo program that does not interpret backslashes.
19368 echo=$lt_echo
19369
19370 # The archiver.
19371 AR=$lt_AR
19372 AR_FLAGS=$lt_AR_FLAGS
19373
19374 # A C compiler.
19375 LTCC=$lt_LTCC
19376
19377 # LTCC compiler flags.
19378 LTCFLAGS=$lt_LTCFLAGS
19379
19380 # A language-specific compiler.
19381 CC=$lt_compiler_RC
19382
19383 # Is the compiler the GNU C compiler?
19384 with_gcc=$GCC_RC
19385
19386 # An ERE matcher.
19387 EGREP=$lt_EGREP
19388
19389 # The linker used to build libraries.
19390 LD=$lt_LD_RC
19391
19392 # Whether we need hard or soft links.
19393 LN_S=$lt_LN_S
19394
19395 # A BSD-compatible nm program.
19396 NM=$lt_NM
19397
19398 # A symbol stripping program
19399 STRIP=$lt_STRIP
19400
19401 # Used to examine libraries when file_magic_cmd begins "file"
19402 MAGIC_CMD=$MAGIC_CMD
19403
19404 # Used on cygwin: DLL creation program.
19405 DLLTOOL="$DLLTOOL"
19406
19407 # Used on cygwin: object dumper.
19408 OBJDUMP="$OBJDUMP"
19409
19410 # Used on cygwin: assembler.
19411 AS="$AS"
19412
19413 # The name of the directory that contains temporary libtool files.
19414 objdir=$objdir
19415
19416 # How to create reloadable object files.
19417 reload_flag=$lt_reload_flag
19418 reload_cmds=$lt_reload_cmds
19419
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl_RC
19422
19423 # Object file suffix (normally "o").
19424 objext="$ac_objext"
19425
19426 # Old archive suffix (normally "a").
19427 libext="$libext"
19428
19429 # Shared library suffix (normally ".so").
19430 shrext_cmds='$shrext_cmds'
19431
19432 # Executable file suffix (normally "").
19433 exeext="$exeext"
19434
19435 # Additional compiler flags for building library objects.
19436 pic_flag=$lt_lt_prog_compiler_pic_RC
19437 pic_mode=$pic_mode
19438
19439 # What is the maximum length of a command?
19440 max_cmd_len=$lt_cv_sys_max_cmd_len
19441
19442 # Does compiler simultaneously support -c and -o options?
19443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19444
19445 # Must we lock files when doing compilation?
19446 need_locks=$lt_need_locks
19447
19448 # Do we need the lib prefix for modules?
19449 need_lib_prefix=$need_lib_prefix
19450
19451 # Do we need a version for libraries?
19452 need_version=$need_version
19453
19454 # Whether dlopen is supported.
19455 dlopen_support=$enable_dlopen
19456
19457 # Whether dlopen of programs is supported.
19458 dlopen_self=$enable_dlopen_self
19459
19460 # Whether dlopen of statically linked programs is supported.
19461 dlopen_self_static=$enable_dlopen_self_static
19462
19463 # Compiler flag to prevent dynamic linking.
19464 link_static_flag=$lt_lt_prog_compiler_static_RC
19465
19466 # Compiler flag to turn off builtin functions.
19467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19468
19469 # Compiler flag to allow reflexive dlopens.
19470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19471
19472 # Compiler flag to generate shared objects directly from archives.
19473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19474
19475 # Compiler flag to generate thread-safe objects.
19476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19477
19478 # Library versioning type.
19479 version_type=$version_type
19480
19481 # Format of library name prefix.
19482 libname_spec=$lt_libname_spec
19483
19484 # List of archive names.  First name is the real one, the rest are links.
19485 # The last name is the one that the linker finds with -lNAME.
19486 library_names_spec=$lt_library_names_spec
19487
19488 # The coded name of the library, if different from the real name.
19489 soname_spec=$lt_soname_spec
19490
19491 # Commands used to build and install an old-style archive.
19492 RANLIB=$lt_RANLIB
19493 old_archive_cmds=$lt_old_archive_cmds_RC
19494 old_postinstall_cmds=$lt_old_postinstall_cmds
19495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19496
19497 # Create an old-style archive from a shared archive.
19498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19499
19500 # Create a temporary old-style archive to link instead of a shared archive.
19501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19502
19503 # Commands used to build and install a shared archive.
19504 archive_cmds=$lt_archive_cmds_RC
19505 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19506 postinstall_cmds=$lt_postinstall_cmds
19507 postuninstall_cmds=$lt_postuninstall_cmds
19508
19509 # Commands used to build a loadable module (assumed same as above if empty)
19510 module_cmds=$lt_module_cmds_RC
19511 module_expsym_cmds=$lt_module_expsym_cmds_RC
19512
19513 # Commands to strip libraries.
19514 old_striplib=$lt_old_striplib
19515 striplib=$lt_striplib
19516
19517 # Dependencies to place before the objects being linked to create a
19518 # shared library.
19519 predep_objects=$lt_predep_objects_RC
19520
19521 # Dependencies to place after the objects being linked to create a
19522 # shared library.
19523 postdep_objects=$lt_postdep_objects_RC
19524
19525 # Dependencies to place before the objects being linked to create a
19526 # shared library.
19527 predeps=$lt_predeps_RC
19528
19529 # Dependencies to place after the objects being linked to create a
19530 # shared library.
19531 postdeps=$lt_postdeps_RC
19532
19533 # The library search path used internally by the compiler when linking
19534 # a shared library.
19535 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19536
19537 # Method to check whether dependent libraries are shared objects.
19538 deplibs_check_method=$lt_deplibs_check_method
19539
19540 # Command to use when deplibs_check_method == file_magic.
19541 file_magic_cmd=$lt_file_magic_cmd
19542
19543 # Flag that allows shared libraries with undefined symbols to be built.
19544 allow_undefined_flag=$lt_allow_undefined_flag_RC
19545
19546 # Flag that forces no undefined symbols.
19547 no_undefined_flag=$lt_no_undefined_flag_RC
19548
19549 # Commands used to finish a libtool library installation in a directory.
19550 finish_cmds=$lt_finish_cmds
19551
19552 # Same as above, but a single script fragment to be evaled but not shown.
19553 finish_eval=$lt_finish_eval
19554
19555 # Take the output of nm and produce a listing of raw symbols and C names.
19556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19557
19558 # Transform the output of nm in a proper C declaration
19559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19560
19561 # Transform the output of nm in a C name address pair
19562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19563
19564 # This is the shared library runtime path variable.
19565 runpath_var=$runpath_var
19566
19567 # This is the shared library path variable.
19568 shlibpath_var=$shlibpath_var
19569
19570 # Is shlibpath searched before the hard-coded library search path?
19571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19572
19573 # How to hardcode a shared library path into an executable.
19574 hardcode_action=$hardcode_action_RC
19575
19576 # Whether we should hardcode library paths into libraries.
19577 hardcode_into_libs=$hardcode_into_libs
19578
19579 # Flag to hardcode \$libdir into a binary during linking.
19580 # This must work even if \$libdir does not exist.
19581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19582
19583 # If ld is used when linking, flag to hardcode \$libdir into
19584 # a binary during linking. This must work even if \$libdir does
19585 # not exist.
19586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19587
19588 # Whether we need a single -rpath flag with a separated argument.
19589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19590
19591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19592 # resulting binary.
19593 hardcode_direct=$hardcode_direct_RC
19594
19595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19596 # resulting binary.
19597 hardcode_minus_L=$hardcode_minus_L_RC
19598
19599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19600 # the resulting binary.
19601 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19602
19603 # Set to yes if building a shared library automatically hardcodes DIR into the library
19604 # and all subsequent libraries and executables linked against it.
19605 hardcode_automatic=$hardcode_automatic_RC
19606
19607 # Variables whose values should be saved in libtool wrapper scripts and
19608 # restored at relink time.
19609 variables_saved_for_relink="$variables_saved_for_relink"
19610
19611 # Whether libtool must link a program against all its dependency libraries.
19612 link_all_deplibs=$link_all_deplibs_RC
19613
19614 # Compile-time system search path for libraries
19615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19616
19617 # Run-time system search path for libraries
19618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19619
19620 # Fix the shell variable \$srcfile for the compiler.
19621 fix_srcfile_path="$fix_srcfile_path_RC"
19622
19623 # Set to yes if exported symbols are required.
19624 always_export_symbols=$always_export_symbols_RC
19625
19626 # The commands to list exported symbols.
19627 export_symbols_cmds=$lt_export_symbols_cmds_RC
19628
19629 # The commands to extract the exported symbol list from a shared archive.
19630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19631
19632 # Symbols that should not be listed in the preloaded symbols.
19633 exclude_expsyms=$lt_exclude_expsyms_RC
19634
19635 # Symbols that must always be exported.
19636 include_expsyms=$lt_include_expsyms_RC
19637
19638 # ### END LIBTOOL TAG CONFIG: $tagname
19639
19640 __EOF__
19641
19642
19643 else
19644   # If there is no Makefile yet, we rely on a make rule to execute
19645   # `config.status --recheck' to rerun these tests and create the
19646   # libtool script then.
19647   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19648   if test -f "$ltmain_in"; then
19649     test -f Makefile && make "$ltmain"
19650   fi
19651 fi
19652
19653
19654 ac_ext=c
19655 ac_cpp='$CPP $CPPFLAGS'
19656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19659
19660 CC="$lt_save_CC"
19661
19662         ;;
19663
19664       *)
19665         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19666 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19667    { (exit 1); exit 1; }; }
19668         ;;
19669       esac
19670
19671       # Append the new tag name to the list of available tags.
19672       if test -n "$tagname" ; then
19673       available_tags="$available_tags $tagname"
19674     fi
19675     fi
19676   done
19677   IFS="$lt_save_ifs"
19678
19679   # Now substitute the updated list of available tags.
19680   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19681     mv "${ofile}T" "$ofile"
19682     chmod +x "$ofile"
19683   else
19684     rm -f "${ofile}T"
19685     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19686 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19687    { (exit 1); exit 1; }; }
19688   fi
19689 fi
19690
19691
19692
19693 # This can be used to rebuild libtool when needed
19694 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19695
19696 # Always use our own libtool.
19697 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19698
19699 # Prevent multiple expansion
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712 # Check whether --with-system-libtool was given.
19713 if test "${with_system_libtool+set}" = set; then
19714   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19715 set dummy libtool; ac_word=$2
19716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19718 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   case $LIBTOOL in
19722   [\\/]* | ?:[\\/]*)
19723   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19724   ;;
19725   *)
19726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19727 as_dummy="$PATH:/usr/local/bin"
19728 for as_dir in $as_dummy
19729 do
19730   IFS=$as_save_IFS
19731   test -z "$as_dir" && as_dir=.
19732   for ac_exec_ext in '' $ac_executable_extensions; do
19733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19734     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19736     break 2
19737   fi
19738 done
19739 done
19740 IFS=$as_save_IFS
19741
19742   ;;
19743 esac
19744 fi
19745 LIBTOOL=$ac_cv_path_LIBTOOL
19746 if test -n "$LIBTOOL"; then
19747   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19748 echo "${ECHO_T}$LIBTOOL" >&6; }
19749 else
19750   { echo "$as_me:$LINENO: result: no" >&5
19751 echo "${ECHO_T}no" >&6; }
19752 fi
19753
19754
19755 else
19756
19757   LIBTOOL="`pwd`/libtool"
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772 fi
19773
19774
19775
19776
19777 # Check whether --enable-strict-dependencies was given.
19778 if test "${enable_strict_dependencies+set}" = set; then
19779   enableval=$enable_strict_dependencies;
19780 fi
19781
19782
19783 docdir='${datadir}/doc/freeradius'
19784 { echo "$as_me:$LINENO: checking docdir" >&5
19785 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19786
19787 # Check whether --with-docdir was given.
19788 if test "${with_docdir+set}" = set; then
19789   withval=$with_docdir;  case "$withval" in
19790     no)
19791         { { echo "$as_me:$LINENO: error: Need docdir" >&5
19792 echo "$as_me: error: Need docdir" >&2;}
19793    { (exit 1); exit 1; }; }
19794         ;;
19795     yes)
19796         ;;
19797     [\\/$]* | ?:[\\/]* )
19798         docdir="$withval"
19799         ;;
19800     *)
19801         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19802 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19803    { (exit 1); exit 1; }; }
19804         ;;
19805   esac
19806
19807 fi
19808
19809
19810 { echo "$as_me:$LINENO: result: $docdir" >&5
19811 echo "${ECHO_T}$docdir" >&6; }
19812
19813 logdir='${localstatedir}/log/radius'
19814 { echo "$as_me:$LINENO: checking logdir" >&5
19815 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19816
19817 # Check whether --with-logdir was given.
19818 if test "${with_logdir+set}" = set; then
19819   withval=$with_logdir;  case "$withval" in
19820     no)
19821         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19822 echo "$as_me: error: Need logdir" >&2;}
19823    { (exit 1); exit 1; }; }
19824         ;;
19825     yes)
19826         ;;
19827     [\\/$]* | ?:[\\/]* )
19828         logdir="$withval"
19829         ;;
19830     *)
19831         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19832 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19833    { (exit 1); exit 1; }; }
19834         ;;
19835   esac
19836
19837 fi
19838
19839
19840 { echo "$as_me:$LINENO: result: $logdir" >&5
19841 echo "${ECHO_T}$logdir" >&6; }
19842
19843 radacctdir='${logdir}/radacct'
19844 { echo "$as_me:$LINENO: checking radacctdir" >&5
19845 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19846
19847 # Check whether --with-radacctdir was given.
19848 if test "${with_radacctdir+set}" = set; then
19849   withval=$with_radacctdir;  case "$withval" in
19850     no)
19851         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19852 echo "$as_me: error: Need radacctdir" >&2;}
19853    { (exit 1); exit 1; }; }
19854         ;;
19855     yes)
19856         ;;
19857     [\\/$]* | ?:[\\/]* )
19858         radacctdir="$withval"
19859         ;;
19860     *)
19861         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19862 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19863    { (exit 1); exit 1; }; }
19864         ;;
19865   esac
19866
19867 fi
19868
19869
19870 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19871 echo "${ECHO_T}$radacctdir" >&6; }
19872
19873 raddbdir='${sysconfdir}/raddb'
19874 { echo "$as_me:$LINENO: checking raddbdir" >&5
19875 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19876
19877 # Check whether --with-raddbdir was given.
19878 if test "${with_raddbdir+set}" = set; then
19879   withval=$with_raddbdir;  case "$withval" in
19880     no)
19881         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19882 echo "$as_me: error: Need raddbdir" >&2;}
19883    { (exit 1); exit 1; }; }
19884         ;;
19885     yes)
19886         ;;
19887     [\\/$]* | ?:[\\/]* )
19888         raddbdir="$withval"
19889         ;;
19890     *)
19891         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19892 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19893    { (exit 1); exit 1; }; }
19894         ;;
19895   esac
19896
19897 fi
19898
19899
19900 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19901 echo "${ECHO_T}$raddbdir" >&6; }
19902
19903 ASCEND_BINARY=yes
19904
19905 # Check whether --with-ascend-binary was given.
19906 if test "${with_ascend_binary+set}" = set; then
19907   withval=$with_ascend_binary;  case "$withval" in
19908     yes)
19909         ;;
19910     *)
19911         ASCEND_BINARY=""
19912   esac
19913
19914 fi
19915
19916 if test "X$ASCEND_BINARY" = "Xyes"; then
19917   cat >>confdefs.h <<\_ACEOF
19918 #define ASCEND_BINARY 1
19919 _ACEOF
19920
19921 fi
19922
19923 WITH_THREADS=yes
19924
19925 # Check whether --with-threads was given.
19926 if test "${with_threads+set}" = set; then
19927   withval=$with_threads;  case "$withval" in
19928     yes)
19929         ;;
19930     *)
19931         WITH_THREADS=""
19932   esac
19933
19934 fi
19935
19936
19937 WITH_SNMP=yes
19938
19939 # Check whether --with-snmp was given.
19940 if test "${with_snmp+set}" = set; then
19941   withval=$with_snmp;  case "$withval" in
19942     yes)
19943         ;;
19944     *)
19945         WITH_SNMP=no
19946   esac
19947
19948 fi
19949
19950
19951 rad_enable_largefiles=no
19952
19953 # Check whether --with-large-files was given.
19954 if test "${with_large_files+set}" = set; then
19955   withval=$with_large_files;  case "$withval" in
19956     yes)
19957         rad_enable_largefiles=yes
19958         ;;
19959     *)
19960         ;;
19961   esac
19962
19963 fi
19964
19965
19966
19967 STATIC_MODULES=
19968
19969 # Check whether --with-static_modules was given.
19970 if test "${with_static_modules+set}" = set; then
19971   withval=$with_static_modules;
19972   for i in $withval; do
19973     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19974   done
19975
19976 fi
19977
19978
19979 MODULES=
19980
19981 # Check whether --with-modules was given.
19982 if test "${with_modules+set}" = set; then
19983   withval=$with_modules;
19984  for i in $withval; do
19985    MODULES="$MODULES $i"
19986  done
19987
19988 fi
19989
19990
19991 # Check whether --enable-developer was given.
19992 if test "${enable_developer+set}" = set; then
19993   enableval=$enable_developer;  case "$enableval" in
19994     no)
19995         developer=no
19996         ;;
19997     *)
19998         developer=yes
19999   esac
20000
20001 fi
20002
20003
20004 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20005     developer="yes"
20006 fi
20007
20008 EXPERIMENTAL=
20009
20010 # Check whether --with-experimental-modules was given.
20011 if test "${with_experimental_modules+set}" = set; then
20012   withval=$with_experimental_modules;  case "$withval" in
20013     yes)
20014         EXPERIMENTAL=yes
20015         ;;
20016     *)
20017   esac
20018
20019 fi
20020
20021
20022 OPENSSL_INCLUDE_DIR=
20023
20024 # Check whether --with-openssl-includes was given.
20025 if test "${with_openssl_includes+set}" = set; then
20026   withval=$with_openssl_includes;  case "$withval" in
20027     *) OPENSSL_INCLUDE_DIR="$withval"
20028         ;;
20029   esac
20030
20031 fi
20032
20033
20034 OPENSSL_LIB_DIR=
20035
20036 # Check whether --with-openssl-libraries was given.
20037 if test "${with_openssl_libraries+set}" = set; then
20038   withval=$with_openssl_libraries;  case "$withval" in
20039     *) OPENSSL_LIB_DIR="$withval"
20040         ;;
20041   esac
20042
20043 fi
20044
20045
20046
20047
20048 # Check whether --with-rlm-FOO-lib-dir was given.
20049 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20050   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20051     *)
20052         ;;
20053   esac
20054
20055 fi
20056
20057
20058
20059 # Check whether --with-rlm-FOO-include-dir was given.
20060 if test "${with_rlm_FOO_include_dir+set}" = set; then
20061   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20062     *)
20063         ;;
20064   esac
20065
20066 fi
20067
20068
20069
20070 WITH_UDPFROMTO=no
20071
20072 # Check whether --with-udpfromto was given.
20073 if test "${with_udpfromto+set}" = set; then
20074   withval=$with_udpfromto;  case "$withval" in
20075     yes)
20076         WITH_UDPFROMTO=yes
20077         ;;
20078     *)
20079         WITH_UDPFROMTO=no
20080   esac
20081
20082 fi
20083
20084
20085 if test "x$WITH_UDPFROMTO" = "xyes"; then
20086         cat >>confdefs.h <<\_ACEOF
20087 #define WITH_UDPFROMTO 1
20088 _ACEOF
20089
20090 fi
20091
20092
20093 # Check whether --with-edir was given.
20094 if test "${with_edir+set}" = set; then
20095   withval=$with_edir;
20096 fi
20097
20098
20099
20100 CHECKRAD=checkrad.pl
20101 # Extract the first word of "perl", so it can be a program name with args.
20102 set dummy perl; ac_word=$2
20103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20105 if test "${ac_cv_path_PERL+set}" = set; then
20106   echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108   case $PERL in
20109   [\\/]* | ?:[\\/]*)
20110   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20111   ;;
20112   *)
20113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20114 for as_dir in $PATH
20115 do
20116   IFS=$as_save_IFS
20117   test -z "$as_dir" && as_dir=.
20118   for ac_exec_ext in '' $ac_executable_extensions; do
20119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20120     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20122     break 2
20123   fi
20124 done
20125 done
20126 IFS=$as_save_IFS
20127
20128   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20129   ;;
20130 esac
20131 fi
20132 PERL=$ac_cv_path_PERL
20133 if test -n "$PERL"; then
20134   { echo "$as_me:$LINENO: result: $PERL" >&5
20135 echo "${ECHO_T}$PERL" >&6; }
20136 else
20137   { echo "$as_me:$LINENO: result: no" >&5
20138 echo "${ECHO_T}no" >&6; }
20139 fi
20140
20141
20142 if test "x$ac_cv_path_PERL" = "x"; then
20143   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20144 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20145 fi
20146 # Extract the first word of "snmpget", so it can be a program name with args.
20147 set dummy snmpget; ac_word=$2
20148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20150 if test "${ac_cv_path_SNMPGET+set}" = set; then
20151   echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153   case $SNMPGET in
20154   [\\/]* | ?:[\\/]*)
20155   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20156   ;;
20157   *)
20158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20159 for as_dir in $PATH
20160 do
20161   IFS=$as_save_IFS
20162   test -z "$as_dir" && as_dir=.
20163   for ac_exec_ext in '' $ac_executable_extensions; do
20164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20165     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20167     break 2
20168   fi
20169 done
20170 done
20171 IFS=$as_save_IFS
20172
20173   ;;
20174 esac
20175 fi
20176 SNMPGET=$ac_cv_path_SNMPGET
20177 if test -n "$SNMPGET"; then
20178   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20179 echo "${ECHO_T}$SNMPGET" >&6; }
20180 else
20181   { echo "$as_me:$LINENO: result: no" >&5
20182 echo "${ECHO_T}no" >&6; }
20183 fi
20184
20185
20186 if test "x$ac_cv_path_SNMPGET" = "x"; then
20187   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20188 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20189 fi
20190
20191 # Extract the first word of "snmpwalk", so it can be a program name with args.
20192 set dummy snmpwalk; ac_word=$2
20193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20195 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   case $SNMPWALK in
20199   [\\/]* | ?:[\\/]*)
20200   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20201   ;;
20202   *)
20203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20204 for as_dir in $PATH
20205 do
20206   IFS=$as_save_IFS
20207   test -z "$as_dir" && as_dir=.
20208   for ac_exec_ext in '' $ac_executable_extensions; do
20209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20210     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20212     break 2
20213   fi
20214 done
20215 done
20216 IFS=$as_save_IFS
20217
20218   ;;
20219 esac
20220 fi
20221 SNMPWALK=$ac_cv_path_SNMPWALK
20222 if test -n "$SNMPWALK"; then
20223   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20224 echo "${ECHO_T}$SNMPWALK" >&6; }
20225 else
20226   { echo "$as_me:$LINENO: result: no" >&5
20227 echo "${ECHO_T}no" >&6; }
20228 fi
20229
20230
20231 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20232   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20233 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20234 fi
20235
20236 # Extract the first word of "rusers", so it can be a program name with args.
20237 set dummy rusers; ac_word=$2
20238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20240 if test "${ac_cv_path_RUSERS+set}" = set; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243   case $RUSERS in
20244   [\\/]* | ?:[\\/]*)
20245   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20246   ;;
20247   *)
20248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20249 for as_dir in $PATH
20250 do
20251   IFS=$as_save_IFS
20252   test -z "$as_dir" && as_dir=.
20253   for ac_exec_ext in '' $ac_executable_extensions; do
20254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20255     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20257     break 2
20258   fi
20259 done
20260 done
20261 IFS=$as_save_IFS
20262
20263   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20264   ;;
20265 esac
20266 fi
20267 RUSERS=$ac_cv_path_RUSERS
20268 if test -n "$RUSERS"; then
20269   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20270 echo "${ECHO_T}$RUSERS" >&6; }
20271 else
20272   { echo "$as_me:$LINENO: result: no" >&5
20273 echo "${ECHO_T}no" >&6; }
20274 fi
20275
20276
20277
20278 missing_dir=`cd $ac_aux_dir && pwd`
20279 { echo "$as_me:$LINENO: checking for working aclocal" >&5
20280 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
20281 # Run test in a subshell; some versions of sh will print an error if
20282 # an executable is not found, even if stderr is redirected.
20283 # Redirect stdin to placate older versions of autoconf.  Sigh.
20284 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
20285    ACLOCAL=aclocal
20286    { echo "$as_me:$LINENO: result: found" >&5
20287 echo "${ECHO_T}found" >&6; }
20288 else
20289    ACLOCAL="$missing_dir/missing aclocal"
20290    { echo "$as_me:$LINENO: result: missing" >&5
20291 echo "${ECHO_T}missing" >&6; }
20292 fi
20293
20294 { echo "$as_me:$LINENO: checking for working autoconf" >&5
20295 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
20296 # Run test in a subshell; some versions of sh will print an error if
20297 # an executable is not found, even if stderr is redirected.
20298 # Redirect stdin to placate older versions of autoconf.  Sigh.
20299 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
20300    AUTOCONF=autoconf
20301    { echo "$as_me:$LINENO: result: found" >&5
20302 echo "${ECHO_T}found" >&6; }
20303 else
20304    AUTOCONF="$missing_dir/missing autoconf"
20305    { echo "$as_me:$LINENO: result: missing" >&5
20306 echo "${ECHO_T}missing" >&6; }
20307 fi
20308
20309 { echo "$as_me:$LINENO: checking for working autoheader" >&5
20310 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
20311 # Run test in a subshell; some versions of sh will print an error if
20312 # an executable is not found, even if stderr is redirected.
20313 # Redirect stdin to placate older versions of autoconf.  Sigh.
20314 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
20315    AUTOHEADER=autoheader
20316    { echo "$as_me:$LINENO: result: found" >&5
20317 echo "${ECHO_T}found" >&6; }
20318 else
20319    AUTOHEADER="$missing_dir/missing autoheader"
20320    { echo "$as_me:$LINENO: result: missing" >&5
20321 echo "${ECHO_T}missing" >&6; }
20322 fi
20323
20324
20325 # Extract the first word of "locate", so it can be a program name with args.
20326 set dummy locate; ac_word=$2
20327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20329 if test "${ac_cv_path_LOCATE+set}" = set; then
20330   echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332   case $LOCATE in
20333   [\\/]* | ?:[\\/]*)
20334   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20335   ;;
20336   *)
20337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20338 for as_dir in $PATH
20339 do
20340   IFS=$as_save_IFS
20341   test -z "$as_dir" && as_dir=.
20342   for ac_exec_ext in '' $ac_executable_extensions; do
20343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20344     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20346     break 2
20347   fi
20348 done
20349 done
20350 IFS=$as_save_IFS
20351
20352   ;;
20353 esac
20354 fi
20355 LOCATE=$ac_cv_path_LOCATE
20356 if test -n "$LOCATE"; then
20357   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20358 echo "${ECHO_T}$LOCATE" >&6; }
20359 else
20360   { echo "$as_me:$LINENO: result: no" >&5
20361 echo "${ECHO_T}no" >&6; }
20362 fi
20363
20364
20365 # Extract the first word of "dirname", so it can be a program name with args.
20366 set dummy dirname; ac_word=$2
20367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20369 if test "${ac_cv_path_DIRNAME+set}" = set; then
20370   echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372   case $DIRNAME in
20373   [\\/]* | ?:[\\/]*)
20374   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20375   ;;
20376   *)
20377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378 for as_dir in $PATH
20379 do
20380   IFS=$as_save_IFS
20381   test -z "$as_dir" && as_dir=.
20382   for ac_exec_ext in '' $ac_executable_extensions; do
20383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20384     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20386     break 2
20387   fi
20388 done
20389 done
20390 IFS=$as_save_IFS
20391
20392   ;;
20393 esac
20394 fi
20395 DIRNAME=$ac_cv_path_DIRNAME
20396 if test -n "$DIRNAME"; then
20397   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20398 echo "${ECHO_T}$DIRNAME" >&6; }
20399 else
20400   { echo "$as_me:$LINENO: result: no" >&5
20401 echo "${ECHO_T}no" >&6; }
20402 fi
20403
20404
20405 # Extract the first word of "grep", so it can be a program name with args.
20406 set dummy grep; ac_word=$2
20407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20409 if test "${ac_cv_path_GREP+set}" = set; then
20410   echo $ECHO_N "(cached) $ECHO_C" >&6
20411 else
20412   case $GREP in
20413   [\\/]* | ?:[\\/]*)
20414   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20415   ;;
20416   *)
20417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20418 for as_dir in $PATH
20419 do
20420   IFS=$as_save_IFS
20421   test -z "$as_dir" && as_dir=.
20422   for ac_exec_ext in '' $ac_executable_extensions; do
20423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20424     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20426     break 2
20427   fi
20428 done
20429 done
20430 IFS=$as_save_IFS
20431
20432   ;;
20433 esac
20434 fi
20435 GREP=$ac_cv_path_GREP
20436 if test -n "$GREP"; then
20437   { echo "$as_me:$LINENO: result: $GREP" >&5
20438 echo "${ECHO_T}$GREP" >&6; }
20439 else
20440   { echo "$as_me:$LINENO: result: no" >&5
20441 echo "${ECHO_T}no" >&6; }
20442 fi
20443
20444
20445
20446
20447 old_CFLAGS=$CFLAGS
20448 if test "x$WITH_THREADS" = "xyes"; then
20449   if test $ac_cv_prog_suncc = "yes"; then
20450     CFLAGS="$CFLAGS -mt"
20451   fi
20452
20453
20454 for ac_header in pthread.h
20455 do
20456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20458   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 fi
20463 ac_res=`eval echo '${'$as_ac_Header'}'`
20464                { echo "$as_me:$LINENO: result: $ac_res" >&5
20465 echo "${ECHO_T}$ac_res" >&6; }
20466 else
20467   # Is the header compilable?
20468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20470 cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476 $ac_includes_default
20477 #include <$ac_header>
20478 _ACEOF
20479 rm -f conftest.$ac_objext
20480 if { (ac_try="$ac_compile"
20481 case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486   (eval "$ac_compile") 2>conftest.er1
20487   ac_status=$?
20488   grep -v '^ *+' conftest.er1 >conftest.err
20489   rm -f conftest.er1
20490   cat conftest.err >&5
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); } &&
20493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20494   { (case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_try") 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; } &&
20503          { ac_try='test -s conftest.$ac_objext'
20504   { (case "(($ac_try" in
20505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506   *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509   (eval "$ac_try") 2>&5
20510   ac_status=$?
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); }; }; then
20513   ac_header_compiler=yes
20514 else
20515   echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20517
20518         ac_header_compiler=no
20519 fi
20520
20521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20523 echo "${ECHO_T}$ac_header_compiler" >&6; }
20524
20525 # Is the header present?
20526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 #include <$ac_header>
20535 _ACEOF
20536 if { (ac_try="$ac_cpp conftest.$ac_ext"
20537 case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } >/dev/null; then
20549   if test -s conftest.err; then
20550     ac_cpp_err=$ac_c_preproc_warn_flag
20551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20552   else
20553     ac_cpp_err=
20554   fi
20555 else
20556   ac_cpp_err=yes
20557 fi
20558 if test -z "$ac_cpp_err"; then
20559   ac_header_preproc=yes
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564   ac_header_preproc=no
20565 fi
20566
20567 rm -f conftest.err conftest.$ac_ext
20568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20569 echo "${ECHO_T}$ac_header_preproc" >&6; }
20570
20571 # So?  What about this header?
20572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20573   yes:no: )
20574     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20578     ac_header_preproc=yes
20579     ;;
20580   no:yes:* )
20581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20583     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20584 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20585     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20587     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20588 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20591     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20593
20594     ;;
20595 esac
20596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20599   echo $ECHO_N "(cached) $ECHO_C" >&6
20600 else
20601   eval "$as_ac_Header=\$ac_header_preproc"
20602 fi
20603 ac_res=`eval echo '${'$as_ac_Header'}'`
20604                { echo "$as_me:$LINENO: result: $ac_res" >&5
20605 echo "${ECHO_T}$ac_res" >&6; }
20606
20607 fi
20608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20609   cat >>confdefs.h <<_ACEOF
20610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20611 _ACEOF
20612
20613 else
20614    WITH_THREADS="no"
20615 fi
20616
20617 done
20618
20619
20620   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20621 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20622 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20623   echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625   ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-lpthread  $LIBS"
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h.  */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h.  */
20633
20634 /* Override any GCC internal prototype to avoid an error.
20635    Use char because int might match the return type of a GCC
20636    builtin and then its argument prototype would still apply.  */
20637 #ifdef __cplusplus
20638 extern "C"
20639 #endif
20640 char pthread_create ();
20641 int
20642 main ()
20643 {
20644 return pthread_create ();
20645   ;
20646   return 0;
20647 }
20648 _ACEOF
20649 rm -f conftest.$ac_objext conftest$ac_exeext
20650 if { (ac_try="$ac_link"
20651 case "(($ac_try" in
20652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653   *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656   (eval "$ac_link") 2>conftest.er1
20657   ac_status=$?
20658   grep -v '^ *+' conftest.er1 >conftest.err
20659   rm -f conftest.er1
20660   cat conftest.err >&5
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } &&
20663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20664   { (case "(($ac_try" in
20665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666   *) ac_try_echo=$ac_try;;
20667 esac
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669   (eval "$ac_try") 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; } &&
20673          { ac_try='test -s conftest$ac_exeext'
20674   { (case "(($ac_try" in
20675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676   *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679   (eval "$ac_try") 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; }; then
20683   ac_cv_lib_pthread_pthread_create=yes
20684 else
20685   echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688         ac_cv_lib_pthread_pthread_create=no
20689 fi
20690
20691 rm -f core conftest.err conftest.$ac_objext \
20692       conftest$ac_exeext conftest.$ac_ext
20693 LIBS=$ac_check_lib_save_LIBS
20694 fi
20695 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20697 if test $ac_cv_lib_pthread_pthread_create = yes; then
20698    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20699                   LIBS="$LIBS -lpthread"
20700 else
20701   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20702 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20703 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706   ac_check_lib_save_LIBS=$LIBS
20707 LIBS="-lc_r  $LIBS"
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714
20715 /* Override any GCC internal prototype to avoid an error.
20716    Use char because int might match the return type of a GCC
20717    builtin and then its argument prototype would still apply.  */
20718 #ifdef __cplusplus
20719 extern "C"
20720 #endif
20721 char pthread_create ();
20722 int
20723 main ()
20724 {
20725 return pthread_create ();
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (ac_try="$ac_link"
20732 case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_link") 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } &&
20744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20745   { (case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_try") 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; } &&
20754          { ac_try='test -s conftest$ac_exeext'
20755   { (case "(($ac_try" in
20756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757   *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760   (eval "$ac_try") 2>&5
20761   ac_status=$?
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); }; }; then
20764   ac_cv_lib_c_r_pthread_create=yes
20765 else
20766   echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769         ac_cv_lib_c_r_pthread_create=no
20770 fi
20771
20772 rm -f core conftest.err conftest.$ac_objext \
20773       conftest$ac_exeext conftest.$ac_ext
20774 LIBS=$ac_check_lib_save_LIBS
20775 fi
20776 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20777 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20778 if test $ac_cv_lib_c_r_pthread_create = yes; then
20779    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20780 else
20781    WITH_THREADS="no"
20782
20783 fi
20784
20785
20786 fi
20787
20788 fi
20789
20790 if test "x$WITH_THREADS" != "xyes"; then
20791   CFLAGS=$old_CFLAGS
20792   ac_cv_header_pthread_h="no"
20793   WITH_THREADS=no
20794 else
20795
20796   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20797 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20798 if test "${ac_cv_search_sem_init+set}" = set; then
20799   echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801   ac_func_search_save_LIBS=$LIBS
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808
20809 /* Override any GCC internal prototype to avoid an error.
20810    Use char because int might match the return type of a GCC
20811    builtin and then its argument prototype would still apply.  */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 char sem_init ();
20816 int
20817 main ()
20818 {
20819 return sem_init ();
20820   ;
20821   return 0;
20822 }
20823 _ACEOF
20824 for ac_lib in '' pthread sem posix4 rt; do
20825   if test -z "$ac_lib"; then
20826     ac_res="none required"
20827   else
20828     ac_res=-l$ac_lib
20829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20830   fi
20831   rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835   *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838   (eval "$ac_link") 2>conftest.er1
20839   ac_status=$?
20840   grep -v '^ *+' conftest.er1 >conftest.err
20841   rm -f conftest.er1
20842   cat conftest.err >&5
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } &&
20845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20846   { (case "(($ac_try" in
20847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848   *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851   (eval "$ac_try") 2>&5
20852   ac_status=$?
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); }; } &&
20855          { ac_try='test -s conftest$ac_exeext'
20856   { (case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_try") 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; }; then
20865   ac_cv_search_sem_init=$ac_res
20866 else
20867   echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870
20871 fi
20872
20873 rm -f core conftest.err conftest.$ac_objext \
20874       conftest$ac_exeext
20875   if test "${ac_cv_search_sem_init+set}" = set; then
20876   break
20877 fi
20878 done
20879 if test "${ac_cv_search_sem_init+set}" = set; then
20880   :
20881 else
20882   ac_cv_search_sem_init=no
20883 fi
20884 rm conftest.$ac_ext
20885 LIBS=$ac_func_search_save_LIBS
20886 fi
20887 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20888 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20889 ac_res=$ac_cv_search_sem_init
20890 if test "$ac_res" != no; then
20891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20892
20893 else
20894   { { echo "$as_me:$LINENO: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
20895 echo "$as_me: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
20896    { (exit 1); exit 1; }; }
20897
20898 fi
20899
20900 fi
20901
20902
20903 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20904 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20905 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20906   echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908   ac_check_lib_save_LIBS=$LIBS
20909 LIBS="-lsocket  $LIBS"
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h.  */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h.  */
20916
20917 /* Override any GCC internal prototype to avoid an error.
20918    Use char because int might match the return type of a GCC
20919    builtin and then its argument prototype would still apply.  */
20920 #ifdef __cplusplus
20921 extern "C"
20922 #endif
20923 char getsockname ();
20924 int
20925 main ()
20926 {
20927 return getsockname ();
20928   ;
20929   return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_link") 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } &&
20946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20947   { (case "(($ac_try" in
20948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949   *) ac_try_echo=$ac_try;;
20950 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952   (eval "$ac_try") 2>&5
20953   ac_status=$?
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); }; } &&
20956          { ac_try='test -s conftest$ac_exeext'
20957   { (case "(($ac_try" in
20958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959   *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962   (eval "$ac_try") 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); }; }; then
20966   ac_cv_lib_socket_getsockname=yes
20967 else
20968   echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         ac_cv_lib_socket_getsockname=no
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext \
20975       conftest$ac_exeext conftest.$ac_ext
20976 LIBS=$ac_check_lib_save_LIBS
20977 fi
20978 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20979 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20980 if test $ac_cv_lib_socket_getsockname = yes; then
20981   cat >>confdefs.h <<_ACEOF
20982 #define HAVE_LIBSOCKET 1
20983 _ACEOF
20984
20985   LIBS="-lsocket $LIBS"
20986
20987 fi
20988
20989
20990
20991 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20992 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20993 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 else
20996   ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lresolv  $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h.  */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h.  */
21004
21005 /* Override any GCC internal prototype to avoid an error.
21006    Use char because int might match the return type of a GCC
21007    builtin and then its argument prototype would still apply.  */
21008 #ifdef __cplusplus
21009 extern "C"
21010 #endif
21011 char inet_aton ();
21012 int
21013 main ()
21014 {
21015 return inet_aton ();
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027   (eval "$ac_link") 2>conftest.er1
21028   ac_status=$?
21029   grep -v '^ *+' conftest.er1 >conftest.err
21030   rm -f conftest.er1
21031   cat conftest.err >&5
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); } &&
21034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21035   { (case "(($ac_try" in
21036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037   *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040   (eval "$ac_try") 2>&5
21041   ac_status=$?
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); }; } &&
21044          { ac_try='test -s conftest$ac_exeext'
21045   { (case "(($ac_try" in
21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047   *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050   (eval "$ac_try") 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; }; then
21054   ac_cv_lib_resolv_inet_aton=yes
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059         ac_cv_lib_resolv_inet_aton=no
21060 fi
21061
21062 rm -f core conftest.err conftest.$ac_objext \
21063       conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21065 fi
21066 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21067 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21068 if test $ac_cv_lib_resolv_inet_aton = yes; then
21069   cat >>confdefs.h <<_ACEOF
21070 #define HAVE_LIBRESOLV 1
21071 _ACEOF
21072
21073   LIBS="-lresolv $LIBS"
21074
21075 fi
21076
21077
21078
21079 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21080 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21081 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21082   echo $ECHO_N "(cached) $ECHO_C" >&6
21083 else
21084   ac_check_lib_save_LIBS=$LIBS
21085 LIBS="-lnsl  $LIBS"
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h.  */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h.  */
21092
21093 /* Override any GCC internal prototype to avoid an error.
21094    Use char because int might match the return type of a GCC
21095    builtin and then its argument prototype would still apply.  */
21096 #ifdef __cplusplus
21097 extern "C"
21098 #endif
21099 char inet_ntoa ();
21100 int
21101 main ()
21102 {
21103 return inet_ntoa ();
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_link") 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } &&
21122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21123   { (case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_try") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; } &&
21132          { ac_try='test -s conftest$ac_exeext'
21133   { (case "(($ac_try" in
21134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135   *) ac_try_echo=$ac_try;;
21136 esac
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138   (eval "$ac_try") 2>&5
21139   ac_status=$?
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); }; }; then
21142   ac_cv_lib_nsl_inet_ntoa=yes
21143 else
21144   echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147         ac_cv_lib_nsl_inet_ntoa=no
21148 fi
21149
21150 rm -f core conftest.err conftest.$ac_objext \
21151       conftest$ac_exeext conftest.$ac_ext
21152 LIBS=$ac_check_lib_save_LIBS
21153 fi
21154 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21155 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21156 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21157   cat >>confdefs.h <<_ACEOF
21158 #define HAVE_LIBNSL 1
21159 _ACEOF
21160
21161   LIBS="-lnsl $LIBS"
21162
21163 fi
21164
21165
21166 OPENSSL_LIBS=
21167 old_LIBS=$LIBS
21168 if test "x$OPENSSL_LIB_DIR" != "x"; then
21169     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21170 fi
21171 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21172 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21173 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176   ac_check_lib_save_LIBS=$LIBS
21177 LIBS="-lcrypto  $LIBS"
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184
21185 /* Override any GCC internal prototype to avoid an error.
21186    Use char because int might match the return type of a GCC
21187    builtin and then its argument prototype would still apply.  */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char DH_new ();
21192 int
21193 main ()
21194 {
21195 return DH_new ();
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204   *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207   (eval "$ac_link") 2>conftest.er1
21208   ac_status=$?
21209   grep -v '^ *+' conftest.er1 >conftest.err
21210   rm -f conftest.er1
21211   cat conftest.err >&5
21212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213   (exit $ac_status); } &&
21214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21215   { (case "(($ac_try" in
21216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217   *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220   (eval "$ac_try") 2>&5
21221   ac_status=$?
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); }; } &&
21224          { ac_try='test -s conftest$ac_exeext'
21225   { (case "(($ac_try" in
21226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227   *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230   (eval "$ac_try") 2>&5
21231   ac_status=$?
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); }; }; then
21234   ac_cv_lib_crypto_DH_new=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239         ac_cv_lib_crypto_DH_new=no
21240 fi
21241
21242 rm -f core conftest.err conftest.$ac_objext \
21243       conftest$ac_exeext conftest.$ac_ext
21244 LIBS=$ac_check_lib_save_LIBS
21245 fi
21246 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21247 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21248 if test $ac_cv_lib_crypto_DH_new = yes; then
21249
21250
21251 cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_LIBCRYPTO 1
21253 _ACEOF
21254
21255         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21256 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21257 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21258   echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260   ac_check_lib_save_LIBS=$LIBS
21261 LIBS="-lssl  $LIBS"
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h.  */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h.  */
21268
21269 /* Override any GCC internal prototype to avoid an error.
21270    Use char because int might match the return type of a GCC
21271    builtin and then its argument prototype would still apply.  */
21272 #ifdef __cplusplus
21273 extern "C"
21274 #endif
21275 char SSL_new ();
21276 int
21277 main ()
21278 {
21279 return SSL_new ();
21280   ;
21281   return 0;
21282 }
21283 _ACEOF
21284 rm -f conftest.$ac_objext conftest$ac_exeext
21285 if { (ac_try="$ac_link"
21286 case "(($ac_try" in
21287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288   *) ac_try_echo=$ac_try;;
21289 esac
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291   (eval "$ac_link") 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } &&
21298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21299   { (case "(($ac_try" in
21300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301   *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304   (eval "$ac_try") 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); }; } &&
21308          { ac_try='test -s conftest$ac_exeext'
21309   { (case "(($ac_try" in
21310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311   *) ac_try_echo=$ac_try;;
21312 esac
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314   (eval "$ac_try") 2>&5
21315   ac_status=$?
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); }; }; then
21318   ac_cv_lib_ssl_SSL_new=yes
21319 else
21320   echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21322
21323         ac_cv_lib_ssl_SSL_new=no
21324 fi
21325
21326 rm -f core conftest.err conftest.$ac_objext \
21327       conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21329 fi
21330 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21331 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21332 if test $ac_cv_lib_ssl_SSL_new = yes; then
21333
21334
21335 cat >>confdefs.h <<\_ACEOF
21336 #define HAVE_LIBSSL 1
21337 _ACEOF
21338
21339                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21340                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21341                 fi
21342                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21343
21344 fi
21345
21346
21347 fi
21348
21349 LIBS=$old_LIBS
21350
21351
21352 case "$host" in
21353 *-interix*)
21354         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21355         ;;
21356 *-darwin*)
21357         CFLAGS="$CFLAGS -DDARWIN"
21358         ;;
21359 esac
21360
21361
21362
21363
21364
21365
21366 ac_header_dirent=no
21367 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21368   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21369 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21370 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374   cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 #include <sys/types.h>
21381 #include <$ac_hdr>
21382
21383 int
21384 main ()
21385 {
21386 if ((DIR *) 0)
21387 return 0;
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext
21393 if { (ac_try="$ac_compile"
21394 case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_compile") 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } &&
21406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21407   { (case "(($ac_try" in
21408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409   *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412   (eval "$ac_try") 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; } &&
21416          { ac_try='test -s conftest.$ac_objext'
21417   { (case "(($ac_try" in
21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419   *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422   (eval "$ac_try") 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; }; then
21426   eval "$as_ac_Header=yes"
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431         eval "$as_ac_Header=no"
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 fi
21436 ac_res=`eval echo '${'$as_ac_Header'}'`
21437                { echo "$as_me:$LINENO: result: $ac_res" >&5
21438 echo "${ECHO_T}$ac_res" >&6; }
21439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21440   cat >>confdefs.h <<_ACEOF
21441 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21442 _ACEOF
21443
21444 ac_header_dirent=$ac_hdr; break
21445 fi
21446
21447 done
21448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21449 if test $ac_header_dirent = dirent.h; then
21450   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21452 if test "${ac_cv_search_opendir+set}" = set; then
21453   echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455   ac_func_search_save_LIBS=$LIBS
21456 cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h.  */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h.  */
21462
21463 /* Override any GCC internal prototype to avoid an error.
21464    Use char because int might match the return type of a GCC
21465    builtin and then its argument prototype would still apply.  */
21466 #ifdef __cplusplus
21467 extern "C"
21468 #endif
21469 char opendir ();
21470 int
21471 main ()
21472 {
21473 return opendir ();
21474   ;
21475   return 0;
21476 }
21477 _ACEOF
21478 for ac_lib in '' dir; do
21479   if test -z "$ac_lib"; then
21480     ac_res="none required"
21481   else
21482     ac_res=-l$ac_lib
21483     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21484   fi
21485   rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (ac_try="$ac_link"
21487 case "(($ac_try" in
21488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489   *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492   (eval "$ac_link") 2>conftest.er1
21493   ac_status=$?
21494   grep -v '^ *+' conftest.er1 >conftest.err
21495   rm -f conftest.er1
21496   cat conftest.err >&5
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); } &&
21499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21500   { (case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_try") 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); }; } &&
21509          { ac_try='test -s conftest$ac_exeext'
21510   { (case "(($ac_try" in
21511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512   *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515   (eval "$ac_try") 2>&5
21516   ac_status=$?
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); }; }; then
21519   ac_cv_search_opendir=$ac_res
21520 else
21521   echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524
21525 fi
21526
21527 rm -f core conftest.err conftest.$ac_objext \
21528       conftest$ac_exeext
21529   if test "${ac_cv_search_opendir+set}" = set; then
21530   break
21531 fi
21532 done
21533 if test "${ac_cv_search_opendir+set}" = set; then
21534   :
21535 else
21536   ac_cv_search_opendir=no
21537 fi
21538 rm conftest.$ac_ext
21539 LIBS=$ac_func_search_save_LIBS
21540 fi
21541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21543 ac_res=$ac_cv_search_opendir
21544 if test "$ac_res" != no; then
21545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21546
21547 fi
21548
21549 else
21550   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21552 if test "${ac_cv_search_opendir+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555   ac_func_search_save_LIBS=$LIBS
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562
21563 /* Override any GCC internal prototype to avoid an error.
21564    Use char because int might match the return type of a GCC
21565    builtin and then its argument prototype would still apply.  */
21566 #ifdef __cplusplus
21567 extern "C"
21568 #endif
21569 char opendir ();
21570 int
21571 main ()
21572 {
21573 return opendir ();
21574   ;
21575   return 0;
21576 }
21577 _ACEOF
21578 for ac_lib in '' x; do
21579   if test -z "$ac_lib"; then
21580     ac_res="none required"
21581   else
21582     ac_res=-l$ac_lib
21583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21584   fi
21585   rm -f conftest.$ac_objext conftest$ac_exeext
21586 if { (ac_try="$ac_link"
21587 case "(($ac_try" in
21588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589   *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592   (eval "$ac_link") 2>conftest.er1
21593   ac_status=$?
21594   grep -v '^ *+' conftest.er1 >conftest.err
21595   rm -f conftest.er1
21596   cat conftest.err >&5
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); } &&
21599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21600   { (case "(($ac_try" in
21601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602   *) ac_try_echo=$ac_try;;
21603 esac
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605   (eval "$ac_try") 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; } &&
21609          { ac_try='test -s conftest$ac_exeext'
21610   { (case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615   (eval "$ac_try") 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); }; }; then
21619   ac_cv_search_opendir=$ac_res
21620 else
21621   echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624
21625 fi
21626
21627 rm -f core conftest.err conftest.$ac_objext \
21628       conftest$ac_exeext
21629   if test "${ac_cv_search_opendir+set}" = set; then
21630   break
21631 fi
21632 done
21633 if test "${ac_cv_search_opendir+set}" = set; then
21634   :
21635 else
21636   ac_cv_search_opendir=no
21637 fi
21638 rm conftest.$ac_ext
21639 LIBS=$ac_func_search_save_LIBS
21640 fi
21641 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21642 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21643 ac_res=$ac_cv_search_opendir
21644 if test "$ac_res" != no; then
21645   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21646
21647 fi
21648
21649 fi
21650
21651 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21653 if test "${ac_cv_header_stdc+set}" = set; then
21654   echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656   cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h.  */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h.  */
21662 #include <stdlib.h>
21663 #include <stdarg.h>
21664 #include <string.h>
21665 #include <float.h>
21666
21667 int
21668 main ()
21669 {
21670
21671   ;
21672   return 0;
21673 }
21674 _ACEOF
21675 rm -f conftest.$ac_objext
21676 if { (ac_try="$ac_compile"
21677 case "(($ac_try" in
21678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679   *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682   (eval "$ac_compile") 2>conftest.er1
21683   ac_status=$?
21684   grep -v '^ *+' conftest.er1 >conftest.err
21685   rm -f conftest.er1
21686   cat conftest.err >&5
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); } &&
21689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21690   { (case "(($ac_try" in
21691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692   *) ac_try_echo=$ac_try;;
21693 esac
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695   (eval "$ac_try") 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); }; } &&
21699          { ac_try='test -s conftest.$ac_objext'
21700   { (case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705   (eval "$ac_try") 2>&5
21706   ac_status=$?
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); }; }; then
21709   ac_cv_header_stdc=yes
21710 else
21711   echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21713
21714         ac_cv_header_stdc=no
21715 fi
21716
21717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21718
21719 if test $ac_cv_header_stdc = yes; then
21720   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21721   cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h.  */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h.  */
21727 #include <string.h>
21728
21729 _ACEOF
21730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21731   $EGREP "memchr" >/dev/null 2>&1; then
21732   :
21733 else
21734   ac_cv_header_stdc=no
21735 fi
21736 rm -f conftest*
21737
21738 fi
21739
21740 if test $ac_cv_header_stdc = yes; then
21741   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21742   cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h.  */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h.  */
21748 #include <stdlib.h>
21749
21750 _ACEOF
21751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21752   $EGREP "free" >/dev/null 2>&1; then
21753   :
21754 else
21755   ac_cv_header_stdc=no
21756 fi
21757 rm -f conftest*
21758
21759 fi
21760
21761 if test $ac_cv_header_stdc = yes; then
21762   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21763   if test "$cross_compiling" = yes; then
21764   :
21765 else
21766   cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772 #include <ctype.h>
21773 #include <stdlib.h>
21774 #if ((' ' & 0x0FF) == 0x020)
21775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21777 #else
21778 # define ISLOWER(c) \
21779                    (('a' <= (c) && (c) <= 'i') \
21780                      || ('j' <= (c) && (c) <= 'r') \
21781                      || ('s' <= (c) && (c) <= 'z'))
21782 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21783 #endif
21784
21785 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21786 int
21787 main ()
21788 {
21789   int i;
21790   for (i = 0; i < 256; i++)
21791     if (XOR (islower (i), ISLOWER (i))
21792         || toupper (i) != TOUPPER (i))
21793       return 2;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801   *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804   (eval "$ac_link") 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21808   { (case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_try") 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); }; }; then
21817   :
21818 else
21819   echo "$as_me: program exited with status $ac_status" >&5
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 ( exit $ac_status )
21824 ac_cv_header_stdc=no
21825 fi
21826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21827 fi
21828
21829
21830 fi
21831 fi
21832 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21833 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21834 if test $ac_cv_header_stdc = yes; then
21835
21836 cat >>confdefs.h <<\_ACEOF
21837 #define STDC_HEADERS 1
21838 _ACEOF
21839
21840 fi
21841
21842 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21843 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21844 if test "${ac_cv_header_time+set}" = set; then
21845   echo $ECHO_N "(cached) $ECHO_C" >&6
21846 else
21847   cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h.  */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h.  */
21853 #include <sys/types.h>
21854 #include <sys/time.h>
21855 #include <time.h>
21856
21857 int
21858 main ()
21859 {
21860 if ((struct tm *) 0)
21861 return 0;
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873   (eval "$ac_compile") 2>conftest.er1
21874   ac_status=$?
21875   grep -v '^ *+' conftest.er1 >conftest.err
21876   rm -f conftest.er1
21877   cat conftest.err >&5
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); } &&
21880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21881   { (case "(($ac_try" in
21882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883   *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886   (eval "$ac_try") 2>&5
21887   ac_status=$?
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); }; } &&
21890          { ac_try='test -s conftest.$ac_objext'
21891   { (case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896   (eval "$ac_try") 2>&5
21897   ac_status=$?
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); }; }; then
21900   ac_cv_header_time=yes
21901 else
21902   echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905         ac_cv_header_time=no
21906 fi
21907
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 fi
21910 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21911 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21912 if test $ac_cv_header_time = yes; then
21913
21914 cat >>confdefs.h <<\_ACEOF
21915 #define TIME_WITH_SYS_TIME 1
21916 _ACEOF
21917
21918 fi
21919
21920 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21921 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21922 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21923   echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925   cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931 #include <sys/types.h>
21932 #include <sys/wait.h>
21933 #ifndef WEXITSTATUS
21934 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21935 #endif
21936 #ifndef WIFEXITED
21937 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21938 #endif
21939
21940 int
21941 main ()
21942 {
21943   int s;
21944   wait (&s);
21945   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21946   ;
21947   return 0;
21948 }
21949 _ACEOF
21950 rm -f conftest.$ac_objext
21951 if { (ac_try="$ac_compile"
21952 case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_compile") 2>conftest.er1
21958   ac_status=$?
21959   grep -v '^ *+' conftest.er1 >conftest.err
21960   rm -f conftest.er1
21961   cat conftest.err >&5
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); } &&
21964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21965   { (case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970   (eval "$ac_try") 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); }; } &&
21974          { ac_try='test -s conftest.$ac_objext'
21975   { (case "(($ac_try" in
21976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977   *) ac_try_echo=$ac_try;;
21978 esac
21979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21980   (eval "$ac_try") 2>&5
21981   ac_status=$?
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); }; }; then
21984   ac_cv_header_sys_wait_h=yes
21985 else
21986   echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989         ac_cv_header_sys_wait_h=no
21990 fi
21991
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993 fi
21994 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21995 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21996 if test $ac_cv_header_sys_wait_h = yes; then
21997
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_SYS_WAIT_H 1
22000 _ACEOF
22001
22002 fi
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035 for ac_header in \
22036         unistd.h \
22037         crypt.h \
22038         errno.h \
22039         resource.h \
22040         getopt.h \
22041         malloc.h \
22042         utmp.h \
22043         utmpx.h \
22044         signal.h \
22045         sys/select.h \
22046         syslog.h \
22047         inttypes.h \
22048         stdint.h \
22049         stdio.h \
22050         netdb.h \
22051         semaphore.h \
22052         arpa/inet.h \
22053         netinet/in.h \
22054         sys/types.h \
22055         sys/socket.h \
22056         sys/time.h \
22057         sys/wait.h \
22058         sys/security.h \
22059         fcntl.h \
22060         sys/fcntl.h \
22061         sys/stat.h \
22062         sys/prctl.h \
22063         prot.h \
22064         sia.h \
22065         siad.h
22066
22067 do
22068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22070   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073   echo $ECHO_N "(cached) $ECHO_C" >&6
22074 fi
22075 ac_res=`eval echo '${'$as_ac_Header'}'`
22076                { echo "$as_me:$LINENO: result: $ac_res" >&5
22077 echo "${ECHO_T}$ac_res" >&6; }
22078 else
22079   # Is the header compilable?
22080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22082 cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088 $ac_includes_default
22089 #include <$ac_header>
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095   *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098   (eval "$ac_compile") 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } &&
22105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22106   { (case "(($ac_try" in
22107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108   *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111   (eval "$ac_try") 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; } &&
22115          { ac_try='test -s conftest.$ac_objext'
22116   { (case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_try") 2>&5
22122   ac_status=$?
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); }; }; then
22125   ac_header_compiler=yes
22126 else
22127   echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22129
22130         ac_header_compiler=no
22131 fi
22132
22133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22135 echo "${ECHO_T}$ac_header_compiler" >&6; }
22136
22137 # Is the header present?
22138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22140 cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h.  */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h.  */
22146 #include <$ac_header>
22147 _ACEOF
22148 if { (ac_try="$ac_cpp conftest.$ac_ext"
22149 case "(($ac_try" in
22150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151   *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } >/dev/null; then
22161   if test -s conftest.err; then
22162     ac_cpp_err=$ac_c_preproc_warn_flag
22163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22164   else
22165     ac_cpp_err=
22166   fi
22167 else
22168   ac_cpp_err=yes
22169 fi
22170 if test -z "$ac_cpp_err"; then
22171   ac_header_preproc=yes
22172 else
22173   echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176   ac_header_preproc=no
22177 fi
22178
22179 rm -f conftest.err conftest.$ac_ext
22180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22181 echo "${ECHO_T}$ac_header_preproc" >&6; }
22182
22183 # So?  What about this header?
22184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22185   yes:no: )
22186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22190     ac_header_preproc=yes
22191     ;;
22192   no:yes:* )
22193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22205
22206     ;;
22207 esac
22208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22211   echo $ECHO_N "(cached) $ECHO_C" >&6
22212 else
22213   eval "$as_ac_Header=\$ac_header_preproc"
22214 fi
22215 ac_res=`eval echo '${'$as_ac_Header'}'`
22216                { echo "$as_me:$LINENO: result: $ac_res" >&5
22217 echo "${ECHO_T}$ac_res" >&6; }
22218
22219 fi
22220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22221   cat >>confdefs.h <<_ACEOF
22222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22223 _ACEOF
22224
22225 fi
22226
22227 done
22228
22229
22230 REGEX=no
22231 if test "${ac_cv_header_regex_h+set}" = set; then
22232   { echo "$as_me:$LINENO: checking for regex.h" >&5
22233 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22234 if test "${ac_cv_header_regex_h+set}" = set; then
22235   echo $ECHO_N "(cached) $ECHO_C" >&6
22236 fi
22237 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22238 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22239 else
22240   # Is the header compilable?
22241 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22242 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 $ac_includes_default
22250 #include <regex.h>
22251 _ACEOF
22252 rm -f conftest.$ac_objext
22253 if { (ac_try="$ac_compile"
22254 case "(($ac_try" in
22255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256   *) ac_try_echo=$ac_try;;
22257 esac
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259   (eval "$ac_compile") 2>conftest.er1
22260   ac_status=$?
22261   grep -v '^ *+' conftest.er1 >conftest.err
22262   rm -f conftest.er1
22263   cat conftest.err >&5
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); } &&
22266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22267   { (case "(($ac_try" in
22268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269   *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272   (eval "$ac_try") 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; } &&
22276          { ac_try='test -s conftest.$ac_objext'
22277   { (case "(($ac_try" in
22278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279   *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282   (eval "$ac_try") 2>&5
22283   ac_status=$?
22284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); }; }; then
22286   ac_header_compiler=yes
22287 else
22288   echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291         ac_header_compiler=no
22292 fi
22293
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22296 echo "${ECHO_T}$ac_header_compiler" >&6; }
22297
22298 # Is the header present?
22299 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22300 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h.  */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h.  */
22307 #include <regex.h>
22308 _ACEOF
22309 if { (ac_try="$ac_cpp conftest.$ac_ext"
22310 case "(($ac_try" in
22311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312   *) ac_try_echo=$ac_try;;
22313 esac
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22316   ac_status=$?
22317   grep -v '^ *+' conftest.er1 >conftest.err
22318   rm -f conftest.er1
22319   cat conftest.err >&5
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); } >/dev/null; then
22322   if test -s conftest.err; then
22323     ac_cpp_err=$ac_c_preproc_warn_flag
22324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22325   else
22326     ac_cpp_err=
22327   fi
22328 else
22329   ac_cpp_err=yes
22330 fi
22331 if test -z "$ac_cpp_err"; then
22332   ac_header_preproc=yes
22333 else
22334   echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22336
22337   ac_header_preproc=no
22338 fi
22339
22340 rm -f conftest.err conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22342 echo "${ECHO_T}$ac_header_preproc" >&6; }
22343
22344 # So?  What about this header?
22345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22346   yes:no: )
22347     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22348 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22349     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22350 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22351     ac_header_preproc=yes
22352     ;;
22353   no:yes:* )
22354     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22355 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22356     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22357 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22358     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22359 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22360     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22361 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22362     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22363 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22364     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22365 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22366
22367     ;;
22368 esac
22369 { echo "$as_me:$LINENO: checking for regex.h" >&5
22370 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22371 if test "${ac_cv_header_regex_h+set}" = set; then
22372   echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374   ac_cv_header_regex_h=$ac_header_preproc
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22377 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22378
22379 fi
22380 if test $ac_cv_header_regex_h = yes; then
22381   cat >>confdefs.h <<\_ACEOF
22382 #define HAVE_REGEX_H 1
22383 _ACEOF
22384
22385 fi
22386
22387
22388 if test "x$ac_cv_header_regex_h" = "xyes"; then
22389   REGEX_EXTENDED=no
22390   REGEX=yes
22391   cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h.  */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h.  */
22397 #include <regex.h>
22398      #ifdef REG_EXTENDED
22399        yes
22400      #endif
22401
22402 _ACEOF
22403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22404   $EGREP "yes" >/dev/null 2>&1; then
22405   cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_REG_EXTENDED 1
22407 _ACEOF
22408  REGEX_EXTENDED=yes
22409 fi
22410 rm -f conftest*
22411
22412 fi
22413
22414
22415
22416 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22417 then
22418   cat >>confdefs.h <<\_ACEOF
22419 #define OSFC2 1
22420 _ACEOF
22421
22422 fi
22423
22424 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22425 then
22426   cat >>confdefs.h <<\_ACEOF
22427 #define OSFSIA 1
22428 _ACEOF
22429
22430 fi
22431
22432 OPENSSL_INCLUDE="-DNO_OPENSSL"
22433 if test "x$OPENSSL_LIBS" = "x"; then
22434     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
22435 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
22436 else
22437     old_CPPFLAGS=$CPPFLAGS
22438     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22439         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22440     fi
22441         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22442
22443
22444
22445
22446 for ac_header in \
22447         openssl/ssl.h \
22448         openssl/crypto.h \
22449         openssl/err.h \
22450         openssl/engine.h
22451 do
22452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22454   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22457   echo $ECHO_N "(cached) $ECHO_C" >&6
22458 fi
22459 ac_res=`eval echo '${'$as_ac_Header'}'`
22460                { echo "$as_me:$LINENO: result: $ac_res" >&5
22461 echo "${ECHO_T}$ac_res" >&6; }
22462 else
22463   # Is the header compilable?
22464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22466 cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h.  */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h.  */
22472 $ac_includes_default
22473 #include <$ac_header>
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_compile") 2>conftest.er1
22483   ac_status=$?
22484   grep -v '^ *+' conftest.er1 >conftest.err
22485   rm -f conftest.er1
22486   cat conftest.err >&5
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } &&
22489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22490   { (case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_try") 2>&5
22496   ac_status=$?
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); }; } &&
22499          { ac_try='test -s conftest.$ac_objext'
22500   { (case "(($ac_try" in
22501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502   *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505   (eval "$ac_try") 2>&5
22506   ac_status=$?
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); }; }; then
22509   ac_header_compiler=yes
22510 else
22511   echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22513
22514         ac_header_compiler=no
22515 fi
22516
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22519 echo "${ECHO_T}$ac_header_compiler" >&6; }
22520
22521 # Is the header present?
22522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22524 cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h.  */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h.  */
22530 #include <$ac_header>
22531 _ACEOF
22532 if { (ac_try="$ac_cpp conftest.$ac_ext"
22533 case "(($ac_try" in
22534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535   *) ac_try_echo=$ac_try;;
22536 esac
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22539   ac_status=$?
22540   grep -v '^ *+' conftest.er1 >conftest.err
22541   rm -f conftest.er1
22542   cat conftest.err >&5
22543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); } >/dev/null; then
22545   if test -s conftest.err; then
22546     ac_cpp_err=$ac_c_preproc_warn_flag
22547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22548   else
22549     ac_cpp_err=
22550   fi
22551 else
22552   ac_cpp_err=yes
22553 fi
22554 if test -z "$ac_cpp_err"; then
22555   ac_header_preproc=yes
22556 else
22557   echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560   ac_header_preproc=no
22561 fi
22562
22563 rm -f conftest.err conftest.$ac_ext
22564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22565 echo "${ECHO_T}$ac_header_preproc" >&6; }
22566
22567 # So?  What about this header?
22568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22569   yes:no: )
22570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22574     ac_header_preproc=yes
22575     ;;
22576   no:yes:* )
22577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22589
22590     ;;
22591 esac
22592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22595   echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597   eval "$as_ac_Header=\$ac_header_preproc"
22598 fi
22599 ac_res=`eval echo '${'$as_ac_Header'}'`
22600                { echo "$as_me:$LINENO: result: $ac_res" >&5
22601 echo "${ECHO_T}$ac_res" >&6; }
22602
22603 fi
22604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22605   cat >>confdefs.h <<_ACEOF
22606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22607 _ACEOF
22608
22609 else
22610   OPENSSL_LIBS=
22611
22612 fi
22613
22614 done
22615
22616     if test "x$OPENSSL_LIBS" != "x"; then
22617         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22618 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22619         cat >conftest.$ac_ext <<_ACEOF
22620 /* confdefs.h.  */
22621 _ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h.  */
22625 #include <openssl/crypto.h>
22626              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22627              yes
22628              #endif
22629
22630 _ACEOF
22631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22632   $EGREP "yes" >/dev/null 2>&1; then
22633   goodssl="yes"
22634 fi
22635 rm -f conftest*
22636
22637         if test "x$goodssl" != "xyes"; then
22638             { echo "$as_me:$LINENO: result: no" >&5
22639 echo "${ECHO_T}no" >&6; }
22640             OPENSSL_LIBS=
22641         else
22642             { echo "$as_me:$LINENO: result: yes" >&5
22643 echo "${ECHO_T}yes" >&6; }
22644             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22645                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22646             else
22647                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22648             fi
22649         fi
22650     fi
22651     CPPFLAGS=$old_CPPFLAGS
22652 fi
22653
22654
22655 export OPENSSL_LIBS
22656
22657
22658 { echo "$as_me:$LINENO: checking for off_t" >&5
22659 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22660 if test "${ac_cv_type_off_t+set}" = set; then
22661   echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663   cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669 $ac_includes_default
22670 typedef off_t ac__type_new_;
22671 int
22672 main ()
22673 {
22674 if ((ac__type_new_ *) 0)
22675   return 0;
22676 if (sizeof (ac__type_new_))
22677   return 0;
22678   ;
22679   return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext
22683 if { (ac_try="$ac_compile"
22684 case "(($ac_try" in
22685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686   *) ac_try_echo=$ac_try;;
22687 esac
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689   (eval "$ac_compile") 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } &&
22696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22697   { (case "(($ac_try" in
22698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699   *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702   (eval "$ac_try") 2>&5
22703   ac_status=$?
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); }; } &&
22706          { ac_try='test -s conftest.$ac_objext'
22707   { (case "(($ac_try" in
22708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709   *) ac_try_echo=$ac_try;;
22710 esac
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712   (eval "$ac_try") 2>&5
22713   ac_status=$?
22714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715   (exit $ac_status); }; }; then
22716   ac_cv_type_off_t=yes
22717 else
22718   echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721         ac_cv_type_off_t=no
22722 fi
22723
22724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22725 fi
22726 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22727 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22728 if test $ac_cv_type_off_t = yes; then
22729   :
22730 else
22731
22732 cat >>confdefs.h <<_ACEOF
22733 #define off_t long int
22734 _ACEOF
22735
22736 fi
22737
22738 { echo "$as_me:$LINENO: checking for pid_t" >&5
22739 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22740 if test "${ac_cv_type_pid_t+set}" = set; then
22741   echo $ECHO_N "(cached) $ECHO_C" >&6
22742 else
22743   cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h.  */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h.  */
22749 $ac_includes_default
22750 typedef pid_t ac__type_new_;
22751 int
22752 main ()
22753 {
22754 if ((ac__type_new_ *) 0)
22755   return 0;
22756 if (sizeof (ac__type_new_))
22757   return 0;
22758   ;
22759   return 0;
22760 }
22761 _ACEOF
22762 rm -f conftest.$ac_objext
22763 if { (ac_try="$ac_compile"
22764 case "(($ac_try" in
22765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766   *) ac_try_echo=$ac_try;;
22767 esac
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769   (eval "$ac_compile") 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } &&
22776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22777   { (case "(($ac_try" in
22778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779   *) ac_try_echo=$ac_try;;
22780 esac
22781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22782   (eval "$ac_try") 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; } &&
22786          { ac_try='test -s conftest.$ac_objext'
22787   { (case "(($ac_try" in
22788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789   *) ac_try_echo=$ac_try;;
22790 esac
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792   (eval "$ac_try") 2>&5
22793   ac_status=$?
22794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795   (exit $ac_status); }; }; then
22796   ac_cv_type_pid_t=yes
22797 else
22798   echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22800
22801         ac_cv_type_pid_t=no
22802 fi
22803
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22805 fi
22806 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22807 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22808 if test $ac_cv_type_pid_t = yes; then
22809   :
22810 else
22811
22812 cat >>confdefs.h <<_ACEOF
22813 #define pid_t int
22814 _ACEOF
22815
22816 fi
22817
22818 { echo "$as_me:$LINENO: checking for size_t" >&5
22819 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22820 if test "${ac_cv_type_size_t+set}" = set; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829 $ac_includes_default
22830 typedef size_t ac__type_new_;
22831 int
22832 main ()
22833 {
22834 if ((ac__type_new_ *) 0)
22835   return 0;
22836 if (sizeof (ac__type_new_))
22837   return 0;
22838   ;
22839   return 0;
22840 }
22841 _ACEOF
22842 rm -f conftest.$ac_objext
22843 if { (ac_try="$ac_compile"
22844 case "(($ac_try" in
22845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846   *) ac_try_echo=$ac_try;;
22847 esac
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849   (eval "$ac_compile") 2>conftest.er1
22850   ac_status=$?
22851   grep -v '^ *+' conftest.er1 >conftest.err
22852   rm -f conftest.er1
22853   cat conftest.err >&5
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); } &&
22856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22857   { (case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_try") 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; } &&
22866          { ac_try='test -s conftest.$ac_objext'
22867   { (case "(($ac_try" in
22868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869   *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872   (eval "$ac_try") 2>&5
22873   ac_status=$?
22874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); }; }; then
22876   ac_cv_type_size_t=yes
22877 else
22878   echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881         ac_cv_type_size_t=no
22882 fi
22883
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 fi
22886 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22887 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22888 if test $ac_cv_type_size_t = yes; then
22889   :
22890 else
22891
22892 cat >>confdefs.h <<_ACEOF
22893 #define size_t unsigned int
22894 _ACEOF
22895
22896 fi
22897
22898 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22899 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22900 if test "${ac_cv_type_uid_t+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903   cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909 #include <sys/types.h>
22910
22911 _ACEOF
22912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22913   $EGREP "uid_t" >/dev/null 2>&1; then
22914   ac_cv_type_uid_t=yes
22915 else
22916   ac_cv_type_uid_t=no
22917 fi
22918 rm -f conftest*
22919
22920 fi
22921 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22922 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22923 if test $ac_cv_type_uid_t = no; then
22924
22925 cat >>confdefs.h <<\_ACEOF
22926 #define uid_t int
22927 _ACEOF
22928
22929
22930 cat >>confdefs.h <<\_ACEOF
22931 #define gid_t int
22932 _ACEOF
22933
22934 fi
22935
22936
22937
22938   { echo "$as_me:$LINENO: checking for socklen_t" >&5
22939 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22940 if test "${ac_cv_type_socklen_t+set}" = set; then
22941   echo $ECHO_N "(cached) $ECHO_C" >&6
22942 else
22943    ac_cv_type_socklen_t=no
22944       cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h.  */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h.  */
22950 #ifdef HAVE_SYS_TYPES_H
22951 #include <sys/types.h>
22952 #endif
22953 #ifdef HAVE_SYS_SOCKET_H
22954 #include <sys/socket.h>
22955 #endif
22956
22957 int
22958 main ()
22959 {
22960 socklen_t foo
22961   ;
22962   return 0;
22963 }
22964 _ACEOF
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969   *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972   (eval "$ac_compile") 2>conftest.er1
22973   ac_status=$?
22974   grep -v '^ *+' conftest.er1 >conftest.err
22975   rm -f conftest.er1
22976   cat conftest.err >&5
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); } &&
22979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22980   { (case "(($ac_try" in
22981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982   *) ac_try_echo=$ac_try;;
22983 esac
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985   (eval "$ac_try") 2>&5
22986   ac_status=$?
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); }; } &&
22989          { ac_try='test -s conftest.$ac_objext'
22990   { (case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_try") 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); }; }; then
22999   ac_cv_type_socklen_t=yes
23000 else
23001   echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004
23005 fi
23006
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008
23009
23010 fi
23011 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23012 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23013
23014   if test "$ac_cv_type_socklen_t" != "yes"; then
23015          cat >>confdefs.h <<\_ACEOF
23016 #define socklen_t int
23017 _ACEOF
23018
23019   fi
23020
23021
23022
23023   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23024 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23025 if test "${ac_cv_type_uint8_t+set}" = set; then
23026   echo $ECHO_N "(cached) $ECHO_C" >&6
23027 else
23028    ac_cv_type_uint8_t=no
23029       cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035 #ifdef HAVE_INTTYPES_H
23036 #include <inttypes.h>
23037 #endif
23038 #ifdef HAVE_STDINT_H
23039 #include <stdint.h>
23040 #endif
23041
23042 int
23043 main ()
23044 {
23045 uint8_t foo
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
23052 case "(($ac_try" in
23053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054   *) ac_try_echo=$ac_try;;
23055 esac
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057   (eval "$ac_compile") 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } &&
23064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23065   { (case "(($ac_try" in
23066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067   *) ac_try_echo=$ac_try;;
23068 esac
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070   (eval "$ac_try") 2>&5
23071   ac_status=$?
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); }; } &&
23074          { ac_try='test -s conftest.$ac_objext'
23075   { (case "(($ac_try" in
23076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077   *) ac_try_echo=$ac_try;;
23078 esac
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080   (eval "$ac_try") 2>&5
23081   ac_status=$?
23082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083   (exit $ac_status); }; }; then
23084   ac_cv_type_uint8_t=yes
23085 else
23086   echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089
23090 fi
23091
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093
23094
23095 fi
23096 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23097 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23098
23099   if test "$ac_cv_type_uint8_t" != "yes"; then
23100          cat >>confdefs.h <<\_ACEOF
23101 #define uint8_t unsigned char
23102 _ACEOF
23103
23104   fi
23105
23106
23107
23108   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23109 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23110 if test "${ac_cv_type_uint16_t+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113    ac_cv_type_uint16_t=no
23114       cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 #ifdef HAVE_INTTYPES_H
23121 #include <inttypes.h>
23122 #endif
23123 #ifdef HAVE_STDINT_H
23124 #include <stdint.h>
23125 #endif
23126
23127 int
23128 main ()
23129 {
23130 uint16_t foo
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest.$ac_objext
23136 if { (ac_try="$ac_compile"
23137 case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_compile") 2>conftest.er1
23143   ac_status=$?
23144   grep -v '^ *+' conftest.er1 >conftest.err
23145   rm -f conftest.er1
23146   cat conftest.err >&5
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } &&
23149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23150   { (case "(($ac_try" in
23151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152   *) ac_try_echo=$ac_try;;
23153 esac
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155   (eval "$ac_try") 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; } &&
23159          { ac_try='test -s conftest.$ac_objext'
23160   { (case "(($ac_try" in
23161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162   *) ac_try_echo=$ac_try;;
23163 esac
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165   (eval "$ac_try") 2>&5
23166   ac_status=$?
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); }; }; then
23169   ac_cv_type_uint16_t=yes
23170 else
23171   echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23173
23174
23175 fi
23176
23177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23178
23179
23180 fi
23181 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23182 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23183
23184   if test "$ac_cv_type_uint16_t" != "yes"; then
23185          cat >>confdefs.h <<\_ACEOF
23186 #define uint16_t unsigned short
23187 _ACEOF
23188
23189   fi
23190
23191
23192
23193   { echo "$as_me:$LINENO: checking for uint32_t" >&5
23194 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23195 if test "${ac_cv_type_uint32_t+set}" = set; then
23196   echo $ECHO_N "(cached) $ECHO_C" >&6
23197 else
23198    ac_cv_type_uint32_t=no
23199       cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 #ifdef HAVE_INTTYPES_H
23206 #include <inttypes.h>
23207 #endif
23208 #ifdef HAVE_STDINT_H
23209 #include <stdint.h>
23210 #endif
23211
23212 int
23213 main ()
23214 {
23215 uint32_t foo
23216   ;
23217   return 0;
23218 }
23219 _ACEOF
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224   *) ac_try_echo=$ac_try;;
23225 esac
23226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23227   (eval "$ac_compile") 2>conftest.er1
23228   ac_status=$?
23229   grep -v '^ *+' conftest.er1 >conftest.err
23230   rm -f conftest.er1
23231   cat conftest.err >&5
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); } &&
23234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23235   { (case "(($ac_try" in
23236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237   *) ac_try_echo=$ac_try;;
23238 esac
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240   (eval "$ac_try") 2>&5
23241   ac_status=$?
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); }; } &&
23244          { ac_try='test -s conftest.$ac_objext'
23245   { (case "(($ac_try" in
23246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247   *) ac_try_echo=$ac_try;;
23248 esac
23249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23250   (eval "$ac_try") 2>&5
23251   ac_status=$?
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); }; }; then
23254   ac_cv_type_uint32_t=yes
23255 else
23256   echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259
23260 fi
23261
23262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23263
23264
23265 fi
23266 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23267 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23268
23269   if test "$ac_cv_type_uint32_t" != "yes"; then
23270          cat >>confdefs.h <<\_ACEOF
23271 #define uint32_t unsigned int
23272 _ACEOF
23273
23274   fi
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301 for ac_func in \
23302         getopt_long \
23303         lockf \
23304         strsignal \
23305         sigaction \
23306         sigprocmask \
23307         pthread_sigmask \
23308         snprintf \
23309         vsnprintf \
23310         setsid \
23311         strncasecmp \
23312         strcasecmp \
23313         localtime_r \
23314         ctime_r \
23315         gmtime_r \
23316         strsep \
23317         inet_aton \
23318         inet_pton \
23319         inet_ntop \
23320         gethostname \
23321         setlinebuf \
23322         setvbuf \
23323         getusershell \
23324         initgroups \
23325         closefrom
23326
23327 do
23328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23332   echo $ECHO_N "(cached) $ECHO_C" >&6
23333 else
23334   cat >conftest.$ac_ext <<_ACEOF
23335 /* confdefs.h.  */
23336 _ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h.  */
23340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23342 #define $ac_func innocuous_$ac_func
23343
23344 /* System header to define __stub macros and hopefully few prototypes,
23345     which can conflict with char $ac_func (); below.
23346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23347     <limits.h> exists even on freestanding compilers.  */
23348
23349 #ifdef __STDC__
23350 # include <limits.h>
23351 #else
23352 # include <assert.h>
23353 #endif
23354
23355 #undef $ac_func
23356
23357 /* Override any GCC internal prototype to avoid an error.
23358    Use char because int might match the return type of a GCC
23359    builtin and then its argument prototype would still apply.  */
23360 #ifdef __cplusplus
23361 extern "C"
23362 #endif
23363 char $ac_func ();
23364 /* The GNU C library defines this for functions which it implements
23365     to always fail with ENOSYS.  Some functions are actually named
23366     something starting with __ and the normal name is an alias.  */
23367 #if defined __stub_$ac_func || defined __stub___$ac_func
23368 choke me
23369 #endif
23370
23371 int
23372 main ()
23373 {
23374 return $ac_func ();
23375   ;
23376   return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (ac_try="$ac_link"
23381 case "(($ac_try" in
23382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383   *) ac_try_echo=$ac_try;;
23384 esac
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386   (eval "$ac_link") 2>conftest.er1
23387   ac_status=$?
23388   grep -v '^ *+' conftest.er1 >conftest.err
23389   rm -f conftest.er1
23390   cat conftest.err >&5
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); } &&
23393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23394   { (case "(($ac_try" in
23395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396   *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399   (eval "$ac_try") 2>&5
23400   ac_status=$?
23401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402   (exit $ac_status); }; } &&
23403          { ac_try='test -s conftest$ac_exeext'
23404   { (case "(($ac_try" in
23405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406   *) ac_try_echo=$ac_try;;
23407 esac
23408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23409   (eval "$ac_try") 2>&5
23410   ac_status=$?
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); }; }; then
23413   eval "$as_ac_var=yes"
23414 else
23415   echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23417
23418         eval "$as_ac_var=no"
23419 fi
23420
23421 rm -f core conftest.err conftest.$ac_objext \
23422       conftest$ac_exeext conftest.$ac_ext
23423 fi
23424 ac_res=`eval echo '${'$as_ac_var'}'`
23425                { echo "$as_me:$LINENO: result: $ac_res" >&5
23426 echo "${ECHO_T}$ac_res" >&6; }
23427 if test `eval echo '${'$as_ac_var'}'` = yes; then
23428   cat >>confdefs.h <<_ACEOF
23429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23430 _ACEOF
23431
23432 fi
23433 done
23434
23435 for ac_func in \
23436         crypt \
23437         strncasecmp \
23438         strcasecmp \
23439         inet_aton \
23440         gethostname \
23441         setlinebuf \
23442         getusershell \
23443         endusershell
23444
23445 do
23446 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23447 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23448 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23449   echo $ECHO_N "(cached) $ECHO_C" >&6
23450 else
23451   cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h.  */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h.  */
23457
23458 #include <stdio.h>
23459 #include <string.h>
23460 #ifdef HAVE_UNISTD_H
23461 #include <unistd.h>
23462 #endif
23463 #ifdef HAVE_CRYPT_H
23464 #include <crypt.h>
23465 #endif
23466 #ifdef HAVE_ERRNO_H
23467 #include <errno.h>
23468 #endif
23469 #ifdef HAVE_RESOURCE_H
23470 #include <resource.h>
23471 #endif
23472 #ifdef HAVE_GETOPT_H
23473 #include <getopt.h>
23474 #endif
23475 #ifdef HAVE_MALLOC_H
23476 #include <malloc.h>
23477 #endif
23478 #ifdef HAVE_UTMP_H
23479 #include <utmp.h>
23480 #endif
23481 #ifdef HAVE_UTMPX_H
23482 #include <utmpx.h>
23483 #endif
23484 #ifdef HAVE_SYS_SELECT_H
23485 #include <sys/select.h>
23486 #endif
23487 #ifdef HAVE_DLFCN_H
23488 #include <dlfcn.h>
23489 #endif
23490 #ifdef HAVE_REGEX_H
23491 #include <regex.h>
23492 #endif
23493 #ifdef HAVE_SYSLOG_H
23494 #include <syslog.h>
23495 #endif
23496 #ifdef HAVE_INTTYPES_H
23497 #include <inttypes.h>
23498 #endif
23499 #ifdef HAVE_STDINT_H
23500 #include <stdint.h>
23501 #endif
23502 #ifdef HAVE_ARPA_INET_H
23503 #include <arpa/inet.h>
23504 #endif
23505
23506 int
23507 main ()
23508 {
23509 char *(*pfn) = (char *(*)) $ac_func
23510   ;
23511   return 0;
23512 }
23513 _ACEOF
23514 rm -f conftest.$ac_objext
23515 if { (ac_try="$ac_compile"
23516 case "(($ac_try" in
23517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518   *) ac_try_echo=$ac_try;;
23519 esac
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521   (eval "$ac_compile") 2>conftest.er1
23522   ac_status=$?
23523   grep -v '^ *+' conftest.er1 >conftest.err
23524   rm -f conftest.er1
23525   cat conftest.err >&5
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } &&
23528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23529   { (case "(($ac_try" in
23530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531   *) ac_try_echo=$ac_try;;
23532 esac
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534   (eval "$ac_try") 2>&5
23535   ac_status=$?
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); }; } &&
23538          { ac_try='test -s conftest.$ac_objext'
23539   { (case "(($ac_try" in
23540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541   *) ac_try_echo=$ac_try;;
23542 esac
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544   (eval "$ac_try") 2>&5
23545   ac_status=$?
23546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); }; }; then
23548   eval "radius_cv_decl_needed_$ac_func=no"
23549 else
23550   echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23552
23553         eval "radius_cv_decl_needed_$ac_func=yes"
23554 fi
23555
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 fi
23558
23559 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23560   { echo "$as_me:$LINENO: result: yes" >&5
23561 echo "${ECHO_T}yes" >&6; }
23562   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23563   cat >>confdefs.h <<_ACEOF
23564 #define $radius_tr_decl 1
23565 _ACEOF
23566
23567 else
23568   { echo "$as_me:$LINENO: result: no" >&5
23569 echo "${ECHO_T}no" >&6; }
23570 fi
23571
23572 done
23573
23574
23575 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23576 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23577 if test "${ac_cv_type_signal+set}" = set; then
23578   echo $ECHO_N "(cached) $ECHO_C" >&6
23579 else
23580   cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h.  */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h.  */
23586 #include <sys/types.h>
23587 #include <signal.h>
23588
23589 int
23590 main ()
23591 {
23592 return *(signal (0, 0)) (0) == 1;
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext
23598 if { (ac_try="$ac_compile"
23599 case "(($ac_try" in
23600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601   *) ac_try_echo=$ac_try;;
23602 esac
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604   (eval "$ac_compile") 2>conftest.er1
23605   ac_status=$?
23606   grep -v '^ *+' conftest.er1 >conftest.err
23607   rm -f conftest.er1
23608   cat conftest.err >&5
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } &&
23611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23612   { (case "(($ac_try" in
23613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614   *) ac_try_echo=$ac_try;;
23615 esac
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617   (eval "$ac_try") 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; } &&
23621          { ac_try='test -s conftest.$ac_objext'
23622   { (case "(($ac_try" in
23623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624   *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627   (eval "$ac_try") 2>&5
23628   ac_status=$?
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); }; }; then
23631   ac_cv_type_signal=int
23632 else
23633   echo "$as_me: failed program was:" >&5
23634 sed 's/^/| /' conftest.$ac_ext >&5
23635
23636         ac_cv_type_signal=void
23637 fi
23638
23639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 fi
23641 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23642 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23643
23644 cat >>confdefs.h <<_ACEOF
23645 #define RETSIGTYPE $ac_cv_type_signal
23646 _ACEOF
23647
23648
23649
23650 if test "x$ac_cv_header_utmpx_h" = "xyes"
23651 then
23652
23653   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23654 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23655
23656
23657   cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h.  */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h.  */
23663
23664 #include <utmpx.h>
23665 #ifndef offsetof
23666 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23667 #endif
23668
23669 int
23670 main ()
23671 {
23672  int foo = offsetof(struct utmpx, ut_xtime)
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext
23678 if { (ac_try="$ac_compile"
23679 case "(($ac_try" in
23680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681   *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684   (eval "$ac_compile") 2>conftest.er1
23685   ac_status=$?
23686   grep -v '^ *+' conftest.er1 >conftest.err
23687   rm -f conftest.er1
23688   cat conftest.err >&5
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); } &&
23691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23692   { (case "(($ac_try" in
23693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694   *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697   (eval "$ac_try") 2>&5
23698   ac_status=$?
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); }; } &&
23701          { ac_try='test -s conftest.$ac_objext'
23702   { (case "(($ac_try" in
23703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704   *) ac_try_echo=$ac_try;;
23705 esac
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707   (eval "$ac_try") 2>&5
23708   ac_status=$?
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); }; }; then
23711   has_element=" "
23712 else
23713   echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23715
23716         has_element=
23717 fi
23718
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720
23721   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23722   if test "x$has_element" != "x"; then
23723     { echo "$as_me:$LINENO: result: yes" >&5
23724 echo "${ECHO_T}yes" >&6; }
23725     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23726   else
23727     { echo "$as_me:$LINENO: result: no" >&5
23728 echo "${ECHO_T}no" >&6; }
23729     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23730  fi
23731
23732  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23733  then
23734    cat >>confdefs.h <<\_ACEOF
23735 #define ut_xtime ut_tv.tv_sec
23736 _ACEOF
23737
23738  fi
23739 fi
23740
23741
23742   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23743 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23744
23745
23746   cat >conftest.$ac_ext <<_ACEOF
23747 /* confdefs.h.  */
23748 _ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h.  */
23752
23753 #include <netinet/in.h>
23754 #ifndef offsetof
23755 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23756 #endif
23757
23758 int
23759 main ()
23760 {
23761  int foo = offsetof(struct in_pktinfo, ipi_addr)
23762   ;
23763   return 0;
23764 }
23765 _ACEOF
23766 rm -f conftest.$ac_objext
23767 if { (ac_try="$ac_compile"
23768 case "(($ac_try" in
23769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770   *) ac_try_echo=$ac_try;;
23771 esac
23772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23773   (eval "$ac_compile") 2>conftest.er1
23774   ac_status=$?
23775   grep -v '^ *+' conftest.er1 >conftest.err
23776   rm -f conftest.er1
23777   cat conftest.err >&5
23778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779   (exit $ac_status); } &&
23780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23781   { (case "(($ac_try" in
23782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783   *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786   (eval "$ac_try") 2>&5
23787   ac_status=$?
23788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); }; } &&
23790          { ac_try='test -s conftest.$ac_objext'
23791   { (case "(($ac_try" in
23792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23793   *) ac_try_echo=$ac_try;;
23794 esac
23795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23796   (eval "$ac_try") 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }; }; then
23800   has_element=" "
23801 else
23802   echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805         has_element=
23806 fi
23807
23808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809
23810   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23811   if test "x$has_element" != "x"; then
23812     { echo "$as_me:$LINENO: result: yes" >&5
23813 echo "${ECHO_T}yes" >&6; }
23814     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23815   else
23816     { echo "$as_me:$LINENO: result: no" >&5
23817 echo "${ECHO_T}no" >&6; }
23818     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23819  fi
23820
23821 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23822 then
23823         cat >>confdefs.h <<\_ACEOF
23824 #define HAVE_IP_PKTINFO 1
23825 _ACEOF
23826
23827 fi
23828
23829
23830 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23831 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23832 if test "${ac_cv_c_const+set}" = set; then
23833   echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835   cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841
23842 int
23843 main ()
23844 {
23845 /* FIXME: Include the comments suggested by Paul. */
23846 #ifndef __cplusplus
23847   /* Ultrix mips cc rejects this.  */
23848   typedef int charset[2];
23849   const charset x;
23850   /* SunOS 4.1.1 cc rejects this.  */
23851   char const *const *ccp;
23852   char **p;
23853   /* NEC SVR4.0.2 mips cc rejects this.  */
23854   struct point {int x, y;};
23855   static struct point const zero = {0,0};
23856   /* AIX XL C 1.02.0.0 rejects this.
23857      It does not let you subtract one const X* pointer from another in
23858      an arm of an if-expression whose if-part is not a constant
23859      expression */
23860   const char *g = "string";
23861   ccp = &g + (g ? g-g : 0);
23862   /* HPUX 7.0 cc rejects these. */
23863   ++ccp;
23864   p = (char**) ccp;
23865   ccp = (char const *const *) p;
23866   { /* SCO 3.2v4 cc rejects this.  */
23867     char *t;
23868     char const *s = 0 ? (char *) 0 : (char const *) 0;
23869
23870     *t++ = 0;
23871     if (s) return 0;
23872   }
23873   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23874     int x[] = {25, 17};
23875     const int *foo = &x[0];
23876     ++foo;
23877   }
23878   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23879     typedef const int *iptr;
23880     iptr p = 0;
23881     ++p;
23882   }
23883   { /* AIX XL C 1.02.0.0 rejects this saying
23884        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23885     struct s { int j; const int *ap[3]; };
23886     struct s *b; b->j = 5;
23887   }
23888   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23889     const int foo = 10;
23890     if (!foo) return 0;
23891   }
23892   return !x[0] && !zero.x;
23893 #endif
23894
23895   ;
23896   return 0;
23897 }
23898 _ACEOF
23899 rm -f conftest.$ac_objext
23900 if { (ac_try="$ac_compile"
23901 case "(($ac_try" in
23902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23903   *) ac_try_echo=$ac_try;;
23904 esac
23905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23906   (eval "$ac_compile") 2>conftest.er1
23907   ac_status=$?
23908   grep -v '^ *+' conftest.er1 >conftest.err
23909   rm -f conftest.er1
23910   cat conftest.err >&5
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); } &&
23913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23914   { (case "(($ac_try" in
23915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916   *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919   (eval "$ac_try") 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; } &&
23923          { ac_try='test -s conftest.$ac_objext'
23924   { (case "(($ac_try" in
23925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926   *) ac_try_echo=$ac_try;;
23927 esac
23928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23929   (eval "$ac_try") 2>&5
23930   ac_status=$?
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); }; }; then
23933   ac_cv_c_const=yes
23934 else
23935   echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938         ac_cv_c_const=no
23939 fi
23940
23941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942 fi
23943 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23944 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23945 if test $ac_cv_c_const = no; then
23946
23947 cat >>confdefs.h <<\_ACEOF
23948 #define const
23949 _ACEOF
23950
23951 fi
23952
23953
23954 { echo "$as_me:$LINENO: checking type of OS" >&5
23955 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23956 OS=`uname -s`
23957 { echo "$as_me:$LINENO: result: $OS" >&5
23958 echo "${ECHO_T}$OS" >&6; }
23959 if test "$OS" = "OS/2"; then
23960         LIBPREFIX=
23961 else
23962         LIBPREFIX=lib
23963 fi
23964
23965
23966 if test "x$GCC" = "xyes"; then
23967     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23968 fi
23969
23970 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23971 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23972 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23973   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23974   CFLAGS="$CFLAGS $devflags"
23975   INSTALLSTRIP=""
23976   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23977 echo "${ECHO_T}yes.  Using $devflags" >&6; }
23978 else
23979   devflags=""
23980   CFLAGS="$CFLAGS -DNDEBUG"
23981   INSTALLSTRIP="-s"
23982   { echo "$as_me:$LINENO: result: no." >&5
23983 echo "${ECHO_T}no." >&6; }
23984 fi
23985
23986
23987 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23988 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23989 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23990   echo $ECHO_N "(cached) $ECHO_C" >&6
23991 else
23992   ac_check_lib_save_LIBS=$LIBS
23993 LIBS="-lcrypt  $LIBS"
23994 cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000
24001 /* Override any GCC internal prototype to avoid an error.
24002    Use char because int might match the return type of a GCC
24003    builtin and then its argument prototype would still apply.  */
24004 #ifdef __cplusplus
24005 extern "C"
24006 #endif
24007 char crypt ();
24008 int
24009 main ()
24010 {
24011 return crypt ();
24012   ;
24013   return 0;
24014 }
24015 _ACEOF
24016 rm -f conftest.$ac_objext conftest$ac_exeext
24017 if { (ac_try="$ac_link"
24018 case "(($ac_try" in
24019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020   *) ac_try_echo=$ac_try;;
24021 esac
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023   (eval "$ac_link") 2>conftest.er1
24024   ac_status=$?
24025   grep -v '^ *+' conftest.er1 >conftest.err
24026   rm -f conftest.er1
24027   cat conftest.err >&5
24028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029   (exit $ac_status); } &&
24030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24031   { (case "(($ac_try" in
24032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033   *) ac_try_echo=$ac_try;;
24034 esac
24035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24036   (eval "$ac_try") 2>&5
24037   ac_status=$?
24038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039   (exit $ac_status); }; } &&
24040          { ac_try='test -s conftest$ac_exeext'
24041   { (case "(($ac_try" in
24042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043   *) ac_try_echo=$ac_try;;
24044 esac
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046   (eval "$ac_try") 2>&5
24047   ac_status=$?
24048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); }; }; then
24050   ac_cv_lib_crypt_crypt=yes
24051 else
24052   echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24054
24055         ac_cv_lib_crypt_crypt=no
24056 fi
24057
24058 rm -f core conftest.err conftest.$ac_objext \
24059       conftest$ac_exeext conftest.$ac_ext
24060 LIBS=$ac_check_lib_save_LIBS
24061 fi
24062 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24063 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24064 if test $ac_cv_lib_crypt_crypt = yes; then
24065   CRYPTLIB="-lcrypt"
24066
24067 fi
24068
24069 if test "$CRYPTLIB" != ""; then
24070   cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_CRYPT 1
24072 _ACEOF
24073
24074 else
24075   { echo "$as_me:$LINENO: checking for crypt" >&5
24076 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24077 if test "${ac_cv_func_crypt+set}" = set; then
24078   echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080   cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24088 #define crypt innocuous_crypt
24089
24090 /* System header to define __stub macros and hopefully few prototypes,
24091     which can conflict with char crypt (); below.
24092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24093     <limits.h> exists even on freestanding compilers.  */
24094
24095 #ifdef __STDC__
24096 # include <limits.h>
24097 #else
24098 # include <assert.h>
24099 #endif
24100
24101 #undef crypt
24102
24103 /* Override any GCC internal prototype to avoid an error.
24104    Use char because int might match the return type of a GCC
24105    builtin and then its argument prototype would still apply.  */
24106 #ifdef __cplusplus
24107 extern "C"
24108 #endif
24109 char crypt ();
24110 /* The GNU C library defines this for functions which it implements
24111     to always fail with ENOSYS.  Some functions are actually named
24112     something starting with __ and the normal name is an alias.  */
24113 #if defined __stub_crypt || defined __stub___crypt
24114 choke me
24115 #endif
24116
24117 int
24118 main ()
24119 {
24120 return crypt ();
24121   ;
24122   return 0;
24123 }
24124 _ACEOF
24125 rm -f conftest.$ac_objext conftest$ac_exeext
24126 if { (ac_try="$ac_link"
24127 case "(($ac_try" in
24128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129   *) ac_try_echo=$ac_try;;
24130 esac
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132   (eval "$ac_link") 2>conftest.er1
24133   ac_status=$?
24134   grep -v '^ *+' conftest.er1 >conftest.err
24135   rm -f conftest.er1
24136   cat conftest.err >&5
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); } &&
24139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24140   { (case "(($ac_try" in
24141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142   *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145   (eval "$ac_try") 2>&5
24146   ac_status=$?
24147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148   (exit $ac_status); }; } &&
24149          { ac_try='test -s conftest$ac_exeext'
24150   { (case "(($ac_try" in
24151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152   *) ac_try_echo=$ac_try;;
24153 esac
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155   (eval "$ac_try") 2>&5
24156   ac_status=$?
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); }; }; then
24159   ac_cv_func_crypt=yes
24160 else
24161   echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24163
24164         ac_cv_func_crypt=no
24165 fi
24166
24167 rm -f core conftest.err conftest.$ac_objext \
24168       conftest$ac_exeext conftest.$ac_ext
24169 fi
24170 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24171 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24172 if test $ac_cv_func_crypt = yes; then
24173   cat >>confdefs.h <<\_ACEOF
24174 #define HAVE_CRYPT 1
24175 _ACEOF
24176
24177 fi
24178
24179 fi
24180
24181 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24182 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24183 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24184   echo $ECHO_N "(cached) $ECHO_C" >&6
24185 else
24186   ac_check_lib_save_LIBS=$LIBS
24187 LIBS="-lcipher  $LIBS"
24188 cat >conftest.$ac_ext <<_ACEOF
24189 /* confdefs.h.  */
24190 _ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h.  */
24194
24195 /* Override any GCC internal prototype to avoid an error.
24196    Use char because int might match the return type of a GCC
24197    builtin and then its argument prototype would still apply.  */
24198 #ifdef __cplusplus
24199 extern "C"
24200 #endif
24201 char setkey ();
24202 int
24203 main ()
24204 {
24205 return setkey ();
24206   ;
24207   return 0;
24208 }
24209 _ACEOF
24210 rm -f conftest.$ac_objext conftest$ac_exeext
24211 if { (ac_try="$ac_link"
24212 case "(($ac_try" in
24213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214   *) ac_try_echo=$ac_try;;
24215 esac
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217   (eval "$ac_link") 2>conftest.er1
24218   ac_status=$?
24219   grep -v '^ *+' conftest.er1 >conftest.err
24220   rm -f conftest.er1
24221   cat conftest.err >&5
24222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223   (exit $ac_status); } &&
24224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24225   { (case "(($ac_try" in
24226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227   *) ac_try_echo=$ac_try;;
24228 esac
24229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24230   (eval "$ac_try") 2>&5
24231   ac_status=$?
24232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233   (exit $ac_status); }; } &&
24234          { ac_try='test -s conftest$ac_exeext'
24235   { (case "(($ac_try" in
24236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237   *) ac_try_echo=$ac_try;;
24238 esac
24239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24240   (eval "$ac_try") 2>&5
24241   ac_status=$?
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); }; }; then
24244   ac_cv_lib_cipher_setkey=yes
24245 else
24246   echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24248
24249         ac_cv_lib_cipher_setkey=no
24250 fi
24251
24252 rm -f core conftest.err conftest.$ac_objext \
24253       conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24255 fi
24256 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24257 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24258 if test $ac_cv_lib_cipher_setkey = yes; then
24259   CRYPTLIB="${CRYPTLIB} -lcipher"
24260
24261 fi
24262
24263
24264
24265 if test "x$WITH_SNMP" = "xyes"; then
24266
24267
24268
24269
24270 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24271 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24272
24273 cat >conftest.$ac_ext <<_ACEOF
24274 /* confdefs.h.  */
24275 _ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h.  */
24279
24280 #ifdef HAVE_SYS_TYPES_H
24281 #include <sys/types.h>
24282 #endif
24283 #ifdef HAVE_STDINT_H
24284 #include <stdint.h>
24285 #endif
24286 #ifdef HAVE_STDIO_H
24287 #include <stdio.h>
24288 #endif
24289 #ifdef HAVE_NETDB_H
24290 #include <netdb.h>
24291 #endif
24292 #ifdef HAVE_UNISTD_H
24293 #include <unistd.h>
24294 #endif
24295 #include <ucd-snmp/ucd-snmp-config.h>
24296 #include <ucd-snmp/asn1.h>
24297 #include <ucd-snmp/snmp.h>
24298 #include <ucd-snmp/snmp_impl.h>
24299 int
24300 main ()
24301 {
24302  int a = 1;
24303   ;
24304   return 0;
24305 }
24306 _ACEOF
24307 rm -f conftest.$ac_objext
24308 if { (ac_try="$ac_compile"
24309 case "(($ac_try" in
24310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311   *) ac_try_echo=$ac_try;;
24312 esac
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314   (eval "$ac_compile") 2>conftest.er1
24315   ac_status=$?
24316   grep -v '^ *+' conftest.er1 >conftest.err
24317   rm -f conftest.er1
24318   cat conftest.err >&5
24319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); } &&
24321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24322   { (case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_try") 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; } &&
24331          { ac_try='test -s conftest.$ac_objext'
24332   { (case "(($ac_try" in
24333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334   *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337   (eval "$ac_try") 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; }; then
24341   SNMP_INCLUDE="";ucdsnmp=yes
24342 else
24343   echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24345
24346         ucdsnmp=
24347 fi
24348
24349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350
24351 if test "x$ucdsnmp" = "x"; then
24352   old_CFLAGS="$CFLAGS"
24353   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
24354     CFLAGS="$old_CFLAGS -I$try"
24355     cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h.  */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h.  */
24361
24362 #ifdef HAVE_SYS_TYPES_H
24363 #include <sys/types.h>
24364 #endif
24365 #ifdef HAVE_STDINT_H
24366 #include <stdint.h>
24367 #endif
24368 #ifdef HAVE_STDIO_H
24369 #include <stdio.h>
24370 #endif
24371 #ifdef HAVE_NETDB_H
24372 #include <netdb.h>
24373 #endif
24374 #ifdef HAVE_UNISTD_H
24375 #include <unistd.h>
24376 #endif
24377 #include <ucd-snmp/ucd-snmp-config.h>
24378 #include <ucd-snmp/asn1.h>
24379 #include <ucd-snmp/snmp.h>
24380 #include <ucd-snmp/snmp_impl.h>
24381 int
24382 main ()
24383 {
24384  int a = 1;
24385   ;
24386   return 0;
24387 }
24388 _ACEOF
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393   *) ac_try_echo=$ac_try;;
24394 esac
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396   (eval "$ac_compile") 2>conftest.er1
24397   ac_status=$?
24398   grep -v '^ *+' conftest.er1 >conftest.err
24399   rm -f conftest.er1
24400   cat conftest.err >&5
24401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402   (exit $ac_status); } &&
24403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24404   { (case "(($ac_try" in
24405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406   *) ac_try_echo=$ac_try;;
24407 esac
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409   (eval "$ac_try") 2>&5
24410   ac_status=$?
24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412   (exit $ac_status); }; } &&
24413          { ac_try='test -s conftest.$ac_objext'
24414   { (case "(($ac_try" in
24415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416   *) ac_try_echo=$ac_try;;
24417 esac
24418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24419   (eval "$ac_try") 2>&5
24420   ac_status=$?
24421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); }; }; then
24423   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24424 else
24425   echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24427
24428         ucdsnmp=
24429 fi
24430
24431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432     if test "x$ucdsnmp" != "x"; then
24433       break;
24434     fi
24435   done
24436   CFLAGS="$old_CFLAGS"
24437 fi
24438
24439 if test "x$ucdsnmp" = "x"; then
24440   old_CFLAGS="$CFLAGS"
24441   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24442     CFLAGS="$old_CFLAGS -I$try"
24443 cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h.  */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h.  */
24449
24450 #ifdef HAVE_SYS_TYPES_H
24451 #include <sys/types.h>
24452 #endif
24453 #ifdef HAVE_STDINT_H
24454 #include <stdint.h>
24455 #endif
24456 #ifdef HAVE_STDIO_H
24457 #include <stdio.h>
24458 #endif
24459 #ifdef HAVE_NETDB_H
24460 #include <netdb.h>
24461 #endif
24462 #ifdef HAVE_UNISTD_H
24463 #include <unistd.h>
24464 #endif
24465 #include <asn1.h>
24466 #include <snmp.h>
24467 #include <snmp_impl.h>
24468 int
24469 main ()
24470 {
24471  int a = 1;
24472   ;
24473   return 0;
24474 }
24475 _ACEOF
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480   *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483   (eval "$ac_compile") 2>conftest.er1
24484   ac_status=$?
24485   grep -v '^ *+' conftest.er1 >conftest.err
24486   rm -f conftest.er1
24487   cat conftest.err >&5
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } &&
24490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24491   { (case "(($ac_try" in
24492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493   *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496   (eval "$ac_try") 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; } &&
24500          { ac_try='test -s conftest.$ac_objext'
24501   { (case "(($ac_try" in
24502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503   *) ac_try_echo=$ac_try;;
24504 esac
24505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506   (eval "$ac_try") 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); }; }; then
24510   SNMP_INCLUDE="";ucdsnmp=no
24511 else
24512   echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24514
24515         ucdsnmp=
24516 fi
24517
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519     if test "x$ucdsnmp" != "x"; then
24520       break;
24521     fi
24522   done
24523   CFLAGS="$old_CFLAGS"
24524 fi
24525
24526 if test "x$ucdsnmp" = "x"; then
24527   old_CFLAGS="$CFLAGS"
24528   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
24529     CFLAGS="$old_CFLAGS -I$try"
24530     cat >conftest.$ac_ext <<_ACEOF
24531 /* confdefs.h.  */
24532 _ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h.  */
24536
24537 #ifdef HAVE_SYS_TYPES_H
24538 #include <sys/types.h>
24539 #endif
24540 #ifdef HAVE_STDINT_H
24541 #include <stdint.h>
24542 #endif
24543 #ifdef HAVE_STDIO_H
24544 #include <stdio.h>
24545 #endif
24546 #ifdef HAVE_NETDB_H
24547 #include <netdb.h>
24548 #endif
24549 #ifdef HAVE_UNISTD_H
24550 #include <unistd.h>
24551 #endif
24552 #include <asn1.h>
24553 #include <snmp.h>
24554 #include <snmp_impl.h>
24555 int
24556 main ()
24557 {
24558  int a = 1;
24559   ;
24560   return 0;
24561 }
24562 _ACEOF
24563 rm -f conftest.$ac_objext
24564 if { (ac_try="$ac_compile"
24565 case "(($ac_try" in
24566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567   *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570   (eval "$ac_compile") 2>conftest.er1
24571   ac_status=$?
24572   grep -v '^ *+' conftest.er1 >conftest.err
24573   rm -f conftest.er1
24574   cat conftest.err >&5
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); } &&
24577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24578   { (case "(($ac_try" in
24579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580   *) ac_try_echo=$ac_try;;
24581 esac
24582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583   (eval "$ac_try") 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); }; } &&
24587          { ac_try='test -s conftest.$ac_objext'
24588   { (case "(($ac_try" in
24589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590   *) ac_try_echo=$ac_try;;
24591 esac
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593   (eval "$ac_try") 2>&5
24594   ac_status=$?
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); }; }; then
24597   SNMP_INCLUDE="-I$try";ucdsnmp=no
24598 else
24599   echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24601
24602         ucdsnmp=
24603 fi
24604
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606     if test "x$ucdsnmp" != "x"; then
24607       break;
24608     fi
24609   done
24610   CFLAGS="$old_CFLAGS"
24611 fi
24612
24613 if test "x$ucdsnmp" = "x"; then
24614   { echo "$as_me:$LINENO: result: no" >&5
24615 echo "${ECHO_T}no" >&6; }
24616 else
24617   if test "x$ucdsnmp" = "xyes"; then
24618     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24619 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24620     cat >>confdefs.h <<\_ACEOF
24621 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
24622 _ACEOF
24623
24624   else
24625     { echo "$as_me:$LINENO: result: yes" >&5
24626 echo "${ECHO_T}yes" >&6; }
24627     cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
24629 _ACEOF
24630
24631   fi
24632   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24633 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24634
24635   old_LIBS="$LIBS"
24636   LIBS="$old_LIBS -lsnmp"
24637   cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h.  */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h.  */
24643 extern char snmp_build_var_op();
24644 int
24645 main ()
24646 {
24647  snmp_build_var_op()
24648   ;
24649   return 0;
24650 }
24651 _ACEOF
24652 rm -f conftest.$ac_objext conftest$ac_exeext
24653 if { (ac_try="$ac_link"
24654 case "(($ac_try" in
24655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656   *) ac_try_echo=$ac_try;;
24657 esac
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659   (eval "$ac_link") 2>conftest.er1
24660   ac_status=$?
24661   grep -v '^ *+' conftest.er1 >conftest.err
24662   rm -f conftest.er1
24663   cat conftest.err >&5
24664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); } &&
24666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24667   { (case "(($ac_try" in
24668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669   *) ac_try_echo=$ac_try;;
24670 esac
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672   (eval "$ac_try") 2>&5
24673   ac_status=$?
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); }; } &&
24676          { ac_try='test -s conftest$ac_exeext'
24677   { (case "(($ac_try" in
24678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679   *) ac_try_echo=$ac_try;;
24680 esac
24681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682   (eval "$ac_try") 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; }; then
24686   SNMP_LIBS="-lsnmp"
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691         SNMP_LIBS=
24692 fi
24693
24694 rm -f core conftest.err conftest.$ac_objext \
24695       conftest$ac_exeext conftest.$ac_ext
24696
24697   if test "x$SNMP_LIBS" = "x"; then
24698     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24699       LIBS="$old_LIBS -L$try -lsnmp"
24700       cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706 extern char snmp_build_var_op();
24707 int
24708 main ()
24709 {
24710  snmp_build_var_op()
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719   *) ac_try_echo=$ac_try;;
24720 esac
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722   (eval "$ac_link") 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } &&
24729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24730   { (case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735   (eval "$ac_try") 2>&5
24736   ac_status=$?
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); }; } &&
24739          { ac_try='test -s conftest$ac_exeext'
24740   { (case "(($ac_try" in
24741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742   *) ac_try_echo=$ac_try;;
24743 esac
24744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24745   (eval "$ac_try") 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; }; then
24749   SNMP_LIBS="-L$try -lsnmp"
24750 else
24751   echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.$ac_ext >&5
24753
24754         SNMP_LIBS=
24755 fi
24756
24757 rm -f core conftest.err conftest.$ac_objext \
24758       conftest$ac_exeext conftest.$ac_ext
24759       if test "x$SNMP_LIBS" != "x"; then
24760         break;
24761       fi
24762       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24763       cat >conftest.$ac_ext <<_ACEOF
24764 /* confdefs.h.  */
24765 _ACEOF
24766 cat confdefs.h >>conftest.$ac_ext
24767 cat >>conftest.$ac_ext <<_ACEOF
24768 /* end confdefs.h.  */
24769 extern char snmp_build_var_op();
24770 int
24771 main ()
24772 {
24773  snmp_build_var_op()
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785   (eval "$ac_link") 2>conftest.er1
24786   ac_status=$?
24787   grep -v '^ *+' conftest.er1 >conftest.err
24788   rm -f conftest.er1
24789   cat conftest.err >&5
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); } &&
24792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24793   { (case "(($ac_try" in
24794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795   *) ac_try_echo=$ac_try;;
24796 esac
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798   (eval "$ac_try") 2>&5
24799   ac_status=$?
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); }; } &&
24802          { ac_try='test -s conftest$ac_exeext'
24803   { (case "(($ac_try" in
24804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805   *) ac_try_echo=$ac_try;;
24806 esac
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808   (eval "$ac_try") 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); }; }; then
24812   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24813 else
24814   echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24816
24817         SNMP_LIBS=
24818 fi
24819
24820 rm -f core conftest.err conftest.$ac_objext \
24821       conftest$ac_exeext conftest.$ac_ext
24822       if test "x$SNMP_LIBS" != "x"; then
24823         break;
24824       fi
24825       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24826       cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h.  */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h.  */
24832 extern char snmp_build_var_op();
24833 int
24834 main ()
24835 {
24836  snmp_build_var_op()
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext conftest$ac_exeext
24842 if { (ac_try="$ac_link"
24843 case "(($ac_try" in
24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845   *) ac_try_echo=$ac_try;;
24846 esac
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848   (eval "$ac_link") 2>conftest.er1
24849   ac_status=$?
24850   grep -v '^ *+' conftest.er1 >conftest.err
24851   rm -f conftest.er1
24852   cat conftest.err >&5
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } &&
24855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24856   { (case "(($ac_try" in
24857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858   *) ac_try_echo=$ac_try;;
24859 esac
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861   (eval "$ac_try") 2>&5
24862   ac_status=$?
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); }; } &&
24865          { ac_try='test -s conftest$ac_exeext'
24866   { (case "(($ac_try" in
24867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868   *) ac_try_echo=$ac_try;;
24869 esac
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871   (eval "$ac_try") 2>&5
24872   ac_status=$?
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); }; }; then
24875   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880         SNMP_LIBS=
24881 fi
24882
24883 rm -f core conftest.err conftest.$ac_objext \
24884       conftest$ac_exeext conftest.$ac_ext
24885       if test "x$SNMP_LIBS" != "x"; then
24886         break;
24887       fi
24888     done
24889   fi
24890   LIBS="$old_LIBS"
24891
24892           CFLAGS="$old_CFLAGS"
24893   if test "x$SNMP_LIBS" = "x"; then
24894     { echo "$as_me:$LINENO: result: no" >&5
24895 echo "${ECHO_T}no" >&6; }
24896     SNMP_INCLUDE=
24897   else
24898     { echo "$as_me:$LINENO: result: yes" >&5
24899 echo "${ECHO_T}yes" >&6; }
24900     cat >>confdefs.h <<\_ACEOF
24901 #define WITH_SNMP 1
24902 _ACEOF
24903
24904     cat >>confdefs.h <<\_ACEOF
24905 #define HAVE_LIBSNMP 1
24906 _ACEOF
24907
24908   fi
24909 fi
24910
24911 fi
24912
24913 gethostbyaddrrstyle=""
24914 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24915 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24916 case "$host" in
24917 *-freebsd*)
24918         cat >>confdefs.h <<\_ACEOF
24919 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24920 _ACEOF
24921
24922         gethostbyaddrrstyle=BSD
24923         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24924 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24925         ;;
24926 esac
24927 if test "x$gethostbyaddrrstyle" = "x"; then
24928         cat >conftest.$ac_ext <<_ACEOF
24929 /* confdefs.h.  */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h.  */
24934
24935 #include <stdio.h>
24936 #include <netdb.h>
24937
24938 int
24939 main ()
24940 {
24941  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24942   ;
24943   return 0;
24944 }
24945 _ACEOF
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (ac_try="$ac_link"
24948 case "(($ac_try" in
24949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950   *) ac_try_echo=$ac_try;;
24951 esac
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953   (eval "$ac_link") 2>conftest.er1
24954   ac_status=$?
24955   grep -v '^ *+' conftest.er1 >conftest.err
24956   rm -f conftest.er1
24957   cat conftest.err >&5
24958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959   (exit $ac_status); } &&
24960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24961   { (case "(($ac_try" in
24962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963   *) ac_try_echo=$ac_try;;
24964 esac
24965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966   (eval "$ac_try") 2>&5
24967   ac_status=$?
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); }; } &&
24970          { ac_try='test -s conftest$ac_exeext'
24971   { (case "(($ac_try" in
24972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973   *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976   (eval "$ac_try") 2>&5
24977   ac_status=$?
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); }; }; then
24980
24981         cat >>confdefs.h <<\_ACEOF
24982 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24983 _ACEOF
24984
24985         gethostbyaddrrstyle=GNU
24986
24987 else
24988   echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24990
24991
24992 fi
24993
24994 rm -f core conftest.err conftest.$ac_objext \
24995       conftest$ac_exeext conftest.$ac_ext
24996 fi
24997 if test "x$gethostbyaddrrstyle" = "x"; then
24998         cat >conftest.$ac_ext <<_ACEOF
24999 /* confdefs.h.  */
25000 _ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h.  */
25004
25005 #include <stdio.h>
25006 #include <netdb.h>
25007
25008 int
25009 main ()
25010 {
25011  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25012   ;
25013   return 0;
25014 }
25015 _ACEOF
25016 rm -f conftest.$ac_objext conftest$ac_exeext
25017 if { (ac_try="$ac_link"
25018 case "(($ac_try" in
25019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020   *) ac_try_echo=$ac_try;;
25021 esac
25022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023   (eval "$ac_link") 2>conftest.er1
25024   ac_status=$?
25025   grep -v '^ *+' conftest.er1 >conftest.err
25026   rm -f conftest.er1
25027   cat conftest.err >&5
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); } &&
25030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25031   { (case "(($ac_try" in
25032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033   *) ac_try_echo=$ac_try;;
25034 esac
25035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25036   (eval "$ac_try") 2>&5
25037   ac_status=$?
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); }; } &&
25040          { ac_try='test -s conftest$ac_exeext'
25041   { (case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_try") 2>&5
25047   ac_status=$?
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); }; }; then
25050
25051                 cat >>confdefs.h <<\_ACEOF
25052 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25053 _ACEOF
25054
25055                 gethostbyaddrrstyle=SYSV
25056
25057 else
25058   echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061
25062 fi
25063
25064 rm -f core conftest.err conftest.$ac_objext \
25065       conftest$ac_exeext conftest.$ac_ext
25066 fi
25067 if test "x$gethostbyaddrrstyle" = "x"; then
25068         cat >conftest.$ac_ext <<_ACEOF
25069 /* confdefs.h.  */
25070 _ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h.  */
25074
25075 #include <stdio.h>
25076 #include <netdb.h>
25077
25078 int
25079 main ()
25080 {
25081  gethostbyaddr(NULL, 0, 0)
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 rm -f conftest.$ac_objext conftest$ac_exeext
25087 if { (ac_try="$ac_link"
25088 case "(($ac_try" in
25089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090   *) ac_try_echo=$ac_try;;
25091 esac
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093   (eval "$ac_link") 2>conftest.er1
25094   ac_status=$?
25095   grep -v '^ *+' conftest.er1 >conftest.err
25096   rm -f conftest.er1
25097   cat conftest.err >&5
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } &&
25100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25101   { (case "(($ac_try" in
25102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103   *) ac_try_echo=$ac_try;;
25104 esac
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106   (eval "$ac_try") 2>&5
25107   ac_status=$?
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); }; } &&
25110          { ac_try='test -s conftest$ac_exeext'
25111   { (case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_try") 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; }; then
25120
25121                 cat >>confdefs.h <<\_ACEOF
25122 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25123 _ACEOF
25124
25125                 gethostbyaddrrstyle=BSD
25126
25127 else
25128   echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25130
25131
25132 fi
25133
25134 rm -f core conftest.err conftest.$ac_objext \
25135       conftest$ac_exeext conftest.$ac_ext
25136 fi
25137
25138 if test "x$gethostbyaddrrstyle" = "x"; then
25139         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25140 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25141 else
25142         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25143 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25144 fi
25145
25146 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25147         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25148 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25149 fi
25150
25151 gethostbynamerstyle=""
25152 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25153 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25154 cat >conftest.$ac_ext <<_ACEOF
25155 /* confdefs.h.  */
25156 _ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h.  */
25160
25161 #include <stdio.h>
25162 #include <netdb.h>
25163
25164 int
25165 main ()
25166 {
25167  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25168   ;
25169   return 0;
25170 }
25171 _ACEOF
25172 rm -f conftest.$ac_objext conftest$ac_exeext
25173 if { (ac_try="$ac_link"
25174 case "(($ac_try" in
25175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176   *) ac_try_echo=$ac_try;;
25177 esac
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179   (eval "$ac_link") 2>conftest.er1
25180   ac_status=$?
25181   grep -v '^ *+' conftest.er1 >conftest.err
25182   rm -f conftest.er1
25183   cat conftest.err >&5
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); } &&
25186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25187   { (case "(($ac_try" in
25188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189   *) ac_try_echo=$ac_try;;
25190 esac
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192   (eval "$ac_try") 2>&5
25193   ac_status=$?
25194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); }; } &&
25196          { ac_try='test -s conftest$ac_exeext'
25197   { (case "(($ac_try" in
25198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199   *) ac_try_echo=$ac_try;;
25200 esac
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202   (eval "$ac_try") 2>&5
25203   ac_status=$?
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); }; }; then
25206
25207         cat >>confdefs.h <<\_ACEOF
25208 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25209 _ACEOF
25210
25211         gethostbynamerstyle=GNU
25212
25213 else
25214   echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25216
25217
25218 fi
25219
25220 rm -f core conftest.err conftest.$ac_objext \
25221       conftest$ac_exeext conftest.$ac_ext
25222 if test "x$gethostbynamerstyle" = "x"; then
25223         cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h.  */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h.  */
25229
25230 #include <stdio.h>
25231 #include <netdb.h>
25232
25233 int
25234 main ()
25235 {
25236  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25237   ;
25238   return 0;
25239 }
25240 _ACEOF
25241 rm -f conftest.$ac_objext conftest$ac_exeext
25242 if { (ac_try="$ac_link"
25243 case "(($ac_try" in
25244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245   *) ac_try_echo=$ac_try;;
25246 esac
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248   (eval "$ac_link") 2>conftest.er1
25249   ac_status=$?
25250   grep -v '^ *+' conftest.er1 >conftest.err
25251   rm -f conftest.er1
25252   cat conftest.err >&5
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); } &&
25255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25256   { (case "(($ac_try" in
25257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25258   *) ac_try_echo=$ac_try;;
25259 esac
25260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25261   (eval "$ac_try") 2>&5
25262   ac_status=$?
25263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264   (exit $ac_status); }; } &&
25265          { ac_try='test -s conftest$ac_exeext'
25266   { (case "(($ac_try" in
25267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268   *) ac_try_echo=$ac_try;;
25269 esac
25270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25271   (eval "$ac_try") 2>&5
25272   ac_status=$?
25273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274   (exit $ac_status); }; }; then
25275
25276                 cat >>confdefs.h <<\_ACEOF
25277 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25278 _ACEOF
25279
25280                 gethostbynamerstyle=SYSV
25281
25282 else
25283   echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286
25287 fi
25288
25289 rm -f core conftest.err conftest.$ac_objext \
25290       conftest$ac_exeext conftest.$ac_ext
25291 fi
25292 if test "x$gethostbynamerstyle" = "x"; then
25293         cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299
25300 #include <stdio.h>
25301 #include <netdb.h>
25302
25303 int
25304 main ()
25305 {
25306  gethostbyname(NULL)
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (ac_try="$ac_link"
25313 case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318   (eval "$ac_link") 2>conftest.er1
25319   ac_status=$?
25320   grep -v '^ *+' conftest.er1 >conftest.err
25321   rm -f conftest.er1
25322   cat conftest.err >&5
25323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); } &&
25325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25326   { (case "(($ac_try" in
25327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328   *) ac_try_echo=$ac_try;;
25329 esac
25330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25331   (eval "$ac_try") 2>&5
25332   ac_status=$?
25333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334   (exit $ac_status); }; } &&
25335          { ac_try='test -s conftest$ac_exeext'
25336   { (case "(($ac_try" in
25337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338   *) ac_try_echo=$ac_try;;
25339 esac
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341   (eval "$ac_try") 2>&5
25342   ac_status=$?
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); }; }; then
25345
25346                 cat >>confdefs.h <<\_ACEOF
25347 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25348 _ACEOF
25349
25350                 gethostbynamerstyle=BSD
25351
25352 else
25353   echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25355
25356
25357 fi
25358
25359 rm -f core conftest.err conftest.$ac_objext \
25360       conftest$ac_exeext conftest.$ac_ext
25361 fi
25362
25363 if test "x$gethostbynamerstyle" = "x"; then
25364         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25365 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25366 else
25367         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25368 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25369 fi
25370
25371 if test "x$gethostbynamerstyle" = "xBSD"; then
25372         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25373 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25374 fi
25375
25376 ctimerstyle=""
25377 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25378 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25379 cat >conftest.$ac_ext <<_ACEOF
25380 /* confdefs.h.  */
25381 _ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h.  */
25385
25386 #include <time.h>
25387
25388 int
25389 main ()
25390 {
25391  ctime_r(NULL, NULL, 0)
25392   ;
25393   return 0;
25394 }
25395 _ACEOF
25396 rm -f conftest.$ac_objext conftest$ac_exeext
25397 if { (ac_try="$ac_link"
25398 case "(($ac_try" in
25399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25400   *) ac_try_echo=$ac_try;;
25401 esac
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403   (eval "$ac_link") 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } &&
25410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25411   { (case "(($ac_try" in
25412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413   *) ac_try_echo=$ac_try;;
25414 esac
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416   (eval "$ac_try") 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; } &&
25420          { ac_try='test -s conftest$ac_exeext'
25421   { (case "(($ac_try" in
25422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423   *) ac_try_echo=$ac_try;;
25424 esac
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426   (eval "$ac_try") 2>&5
25427   ac_status=$?
25428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429   (exit $ac_status); }; }; then
25430
25431         cat >>confdefs.h <<\_ACEOF
25432 #define CTIMERSTYLE SOLARISSTYLE
25433 _ACEOF
25434
25435         ctimerstyle="SOLARIS"
25436
25437 else
25438   echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25440
25441
25442 fi
25443
25444 rm -f core conftest.err conftest.$ac_objext \
25445       conftest$ac_exeext conftest.$ac_ext
25446 if test "x$ctimerstyle" = "x"; then
25447         cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453
25454 #include <time.h>
25455
25456 int
25457 main ()
25458 {
25459  ctime_r(NULL, NULL)
25460   ;
25461   return 0;
25462 }
25463 _ACEOF
25464 rm -f conftest.$ac_objext conftest$ac_exeext
25465 if { (ac_try="$ac_link"
25466 case "(($ac_try" in
25467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468   *) ac_try_echo=$ac_try;;
25469 esac
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471   (eval "$ac_link") 2>conftest.er1
25472   ac_status=$?
25473   grep -v '^ *+' conftest.er1 >conftest.err
25474   rm -f conftest.er1
25475   cat conftest.err >&5
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); } &&
25478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25479   { (case "(($ac_try" in
25480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481   *) ac_try_echo=$ac_try;;
25482 esac
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484   (eval "$ac_try") 2>&5
25485   ac_status=$?
25486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487   (exit $ac_status); }; } &&
25488          { ac_try='test -s conftest$ac_exeext'
25489   { (case "(($ac_try" in
25490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491   *) ac_try_echo=$ac_try;;
25492 esac
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494   (eval "$ac_try") 2>&5
25495   ac_status=$?
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); }; }; then
25498
25499                 cat >>confdefs.h <<\_ACEOF
25500 #define CTIMERSTYLE POSIXSTYLE
25501 _ACEOF
25502
25503                 ctimerstyle="POSIX"
25504
25505 else
25506   echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25508
25509
25510 fi
25511
25512 rm -f core conftest.err conftest.$ac_objext \
25513       conftest$ac_exeext conftest.$ac_ext
25514 fi
25515
25516 if test "x$ctimerstyle" = "x"; then
25517         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25518 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25519 else
25520         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25521 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25522 fi
25523
25524
25525 if test x"$rad_enable_largefiles" = xyes ; then
25526     { echo "$as_me:$LINENO: checking for largefile linkage" >&5
25527 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
25528     case "$host" in
25529     *-aix4.01*)
25530         { echo "$as_me:$LINENO: result: no" >&5
25531 echo "${ECHO_T}no" >&6; }
25532         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
25533 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
25534    { (exit 1); exit 1; }; }
25535         ;;
25536     *-aix4*)
25537         { echo "$as_me:$LINENO: result: ok" >&5
25538 echo "${ECHO_T}ok" >&6; }
25539         LFS_CFLAGS="-D_LARGE_FILES"
25540         LFS_LDFLAGS=""
25541         LFS_LIBS=""
25542         ;;
25543     *-hpux*)
25544         { echo "$as_me:$LINENO: result: ok" >&5
25545 echo "${ECHO_T}ok" >&6; }
25546         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25547         LFS_LDFLAGS=""
25548         LFS_LIBS=""
25549         ;;
25550     *-irix*)
25551         { echo "$as_me:$LINENO: result: no" >&5
25552 echo "${ECHO_T}no" >&6; }
25553         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
25554 echo "$as_me: error: Large files not supported on this platform" >&2;}
25555    { (exit 1); exit 1; }; }
25556         ;;
25557     *-linux*)
25558         { echo "$as_me:$LINENO: result: maybe" >&5
25559 echo "${ECHO_T}maybe" >&6; }
25560         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25561         LFS_LDFLAGS=""
25562         LFS_LIBS=""
25563
25564 cat >>confdefs.h <<\_ACEOF
25565 #define _GNU_SOURCE 1
25566 _ACEOF
25567
25568         ;;
25569     *-solaris*)
25570         { echo "$as_me:$LINENO: result: ok" >&5
25571 echo "${ECHO_T}ok" >&6; }
25572         # Extract the first word of "getconf", so it can be a program name with args.
25573 set dummy getconf; ac_word=$2
25574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25576 if test "${ac_cv_path_GETCONF+set}" = set; then
25577   echo $ECHO_N "(cached) $ECHO_C" >&6
25578 else
25579   case $GETCONF in
25580   [\\/]* | ?:[\\/]*)
25581   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
25582   ;;
25583   *)
25584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25585 for as_dir in $PATH
25586 do
25587   IFS=$as_save_IFS
25588   test -z "$as_dir" && as_dir=.
25589   for ac_exec_ext in '' $ac_executable_extensions; do
25590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
25591     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
25592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25593     break 2
25594   fi
25595 done
25596 done
25597 IFS=$as_save_IFS
25598
25599   ;;
25600 esac
25601 fi
25602 GETCONF=$ac_cv_path_GETCONF
25603 if test -n "$GETCONF"; then
25604   { echo "$as_me:$LINENO: result: $GETCONF" >&5
25605 echo "${ECHO_T}$GETCONF" >&6; }
25606 else
25607   { echo "$as_me:$LINENO: result: no" >&5
25608 echo "${ECHO_T}no" >&6; }
25609 fi
25610
25611
25612         if test -z "$GETCONF" ; then
25613             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
25614 echo "$as_me: error: getconf required to configure large file support" >&2;}
25615    { (exit 1); exit 1; }; }
25616         fi
25617         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
25618         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
25619         LFS_LIBS=`$GETCONF LFS_LIBS`
25620         ;;
25621     *)
25622         { echo "$as_me:$LINENO: result: maybe" >&5
25623 echo "${ECHO_T}maybe" >&6; }
25624         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
25625         LFS_LDFLAGS=""
25626         LFS_LIBS=""
25627         ;;
25628     esac
25629
25630
25631
25632 fi
25633
25634 HOSTINFO=$host
25635
25636
25637
25638 top_builddir=`pwd`
25639 export top_builddir
25640 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25641 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25642
25643
25644
25645
25646
25647 mysubdirs=
25648 if test "x$EXPERIMENTAL" = "xyes"; then
25649   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
25650     mysubdirs=`echo $bar`
25651 else
25652         for bar in `cat src/modules/stable`; do
25653     if test -f src/modules/$bar/configure; then
25654       mysubdirs="$mysubdirs src/modules/$bar"
25655     fi
25656   done
25657 fi
25658
25659 if test "x$EXPERIMENTAL" = "xyes"; then
25660   for foo in `ls -1 src/modules | grep rlm_`; do
25661     MODULES="$MODULES $foo"
25662   done
25663 else
25664             for foo in `cat src/modules/stable`; do
25665     MODULES="$MODULES $foo"
25666    done
25667 fi
25668
25669 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25670
25671
25672
25673
25674
25675
25676
25677 USE_SHARED_LIBS=$enable_shared
25678
25679 USE_STATIC_LIBS=$enable_static
25680
25681
25682
25683
25684
25685 export CFLAGS LIBS
25686
25687 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
25688
25689 cat >confcache <<\_ACEOF
25690 # This file is a shell script that caches the results of configure
25691 # tests run on this system so they can be shared between configure
25692 # scripts and configure runs, see configure's option --config-cache.
25693 # It is not useful on other systems.  If it contains results you don't
25694 # want to keep, you may remove or edit it.
25695 #
25696 # config.status only pays attention to the cache file if you give it
25697 # the --recheck option to rerun configure.
25698 #
25699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25701 # following values.
25702
25703 _ACEOF
25704
25705 # The following way of writing the cache mishandles newlines in values,
25706 # but we know of no workaround that is simple, portable, and efficient.
25707 # So, we kill variables containing newlines.
25708 # Ultrix sh set writes to stderr and can't be redirected directly,
25709 # and sets the high bit in the cache file unless we assign to the vars.
25710 (
25711   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25712     eval ac_val=\$$ac_var
25713     case $ac_val in #(
25714     *${as_nl}*)
25715       case $ac_var in #(
25716       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25718       esac
25719       case $ac_var in #(
25720       _ | IFS | as_nl) ;; #(
25721       *) $as_unset $ac_var ;;
25722       esac ;;
25723     esac
25724   done
25725
25726   (set) 2>&1 |
25727     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25728     *${as_nl}ac_space=\ *)
25729       # `set' does not quote correctly, so add quotes (double-quote
25730       # substitution turns \\\\ into \\, and sed turns \\ into \).
25731       sed -n \
25732         "s/'/'\\\\''/g;
25733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25734       ;; #(
25735     *)
25736       # `set' quotes correctly as required by POSIX, so do not add quotes.
25737       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25738       ;;
25739     esac |
25740     sort
25741 ) |
25742   sed '
25743      /^ac_cv_env_/b end
25744      t clear
25745      :clear
25746      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25747      t end
25748      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25749      :end' >>confcache
25750 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25751   if test -w "$cache_file"; then
25752     test "x$cache_file" != "x/dev/null" &&
25753       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25754 echo "$as_me: updating cache $cache_file" >&6;}
25755     cat confcache >$cache_file
25756   else
25757     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25758 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25759   fi
25760 fi
25761 rm -f confcache
25762
25763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25764 # Let make expand exec_prefix.
25765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25766
25767 DEFS=-DHAVE_CONFIG_H
25768
25769 ac_libobjs=
25770 ac_ltlibobjs=
25771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25772   # 1. Remove the extension, and $U if already installed.
25773   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25774   ac_i=`echo "$ac_i" | sed "$ac_script"`
25775   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25776   #    will be set to the directory where LIBOBJS objects are built.
25777   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25778   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25779 done
25780 LIBOBJS=$ac_libobjs
25781
25782 LTLIBOBJS=$ac_ltlibobjs
25783
25784
25785
25786 : ${CONFIG_STATUS=./config.status}
25787 ac_clean_files_save=$ac_clean_files
25788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25791 cat >$CONFIG_STATUS <<_ACEOF
25792 #! $SHELL
25793 # Generated by $as_me.
25794 # Run this file to recreate the current configuration.
25795 # Compiler output produced by configure, useful for debugging
25796 # configure, is in config.log if it exists.
25797
25798 debug=false
25799 ac_cs_recheck=false
25800 ac_cs_silent=false
25801 SHELL=\${CONFIG_SHELL-$SHELL}
25802 _ACEOF
25803
25804 cat >>$CONFIG_STATUS <<\_ACEOF
25805 ## --------------------- ##
25806 ## M4sh Initialization.  ##
25807 ## --------------------- ##
25808
25809 # Be Bourne compatible
25810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25811   emulate sh
25812   NULLCMD=:
25813   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25814   # is contrary to our usage.  Disable this feature.
25815   alias -g '${1+"$@"}'='"$@"'
25816   setopt NO_GLOB_SUBST
25817 else
25818   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25819 fi
25820 BIN_SH=xpg4; export BIN_SH # for Tru64
25821 DUALCASE=1; export DUALCASE # for MKS sh
25822
25823
25824 # PATH needs CR
25825 # Avoid depending upon Character Ranges.
25826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25829 as_cr_digits='0123456789'
25830 as_cr_alnum=$as_cr_Letters$as_cr_digits
25831
25832 # The user is always right.
25833 if test "${PATH_SEPARATOR+set}" != set; then
25834   echo "#! /bin/sh" >conf$$.sh
25835   echo  "exit 0"   >>conf$$.sh
25836   chmod +x conf$$.sh
25837   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25838     PATH_SEPARATOR=';'
25839   else
25840     PATH_SEPARATOR=:
25841   fi
25842   rm -f conf$$.sh
25843 fi
25844
25845 # Support unset when possible.
25846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25847   as_unset=unset
25848 else
25849   as_unset=false
25850 fi
25851
25852
25853 # IFS
25854 # We need space, tab and new line, in precisely that order.  Quoting is
25855 # there to prevent editors from complaining about space-tab.
25856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25857 # splitting by setting IFS to empty value.)
25858 as_nl='
25859 '
25860 IFS=" ""        $as_nl"
25861
25862 # Find who we are.  Look in the path if we contain no directory separator.
25863 case $0 in
25864   *[\\/]* ) as_myself=$0 ;;
25865   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866 for as_dir in $PATH
25867 do
25868   IFS=$as_save_IFS
25869   test -z "$as_dir" && as_dir=.
25870   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25871 done
25872 IFS=$as_save_IFS
25873
25874      ;;
25875 esac
25876 # We did not find ourselves, most probably we were run as `sh COMMAND'
25877 # in which case we are not to be found in the path.
25878 if test "x$as_myself" = x; then
25879   as_myself=$0
25880 fi
25881 if test ! -f "$as_myself"; then
25882   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25883   { (exit 1); exit 1; }
25884 fi
25885
25886 # Work around bugs in pre-3.0 UWIN ksh.
25887 for as_var in ENV MAIL MAILPATH
25888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25889 done
25890 PS1='$ '
25891 PS2='> '
25892 PS4='+ '
25893
25894 # NLS nuisances.
25895 for as_var in \
25896   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25897   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25898   LC_TELEPHONE LC_TIME
25899 do
25900   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25901     eval $as_var=C; export $as_var
25902   else
25903     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25904   fi
25905 done
25906
25907 # Required to use basename.
25908 if expr a : '\(a\)' >/dev/null 2>&1 &&
25909    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25910   as_expr=expr
25911 else
25912   as_expr=false
25913 fi
25914
25915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25916   as_basename=basename
25917 else
25918   as_basename=false
25919 fi
25920
25921
25922 # Name of the executable.
25923 as_me=`$as_basename -- "$0" ||
25924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25925          X"$0" : 'X\(//\)$' \| \
25926          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25927 echo X/"$0" |
25928     sed '/^.*\/\([^/][^/]*\)\/*$/{
25929             s//\1/
25930             q
25931           }
25932           /^X\/\(\/\/\)$/{
25933             s//\1/
25934             q
25935           }
25936           /^X\/\(\/\).*/{
25937             s//\1/
25938             q
25939           }
25940           s/.*/./; q'`
25941
25942 # CDPATH.
25943 $as_unset CDPATH
25944
25945
25946
25947   as_lineno_1=$LINENO
25948   as_lineno_2=$LINENO
25949   test "x$as_lineno_1" != "x$as_lineno_2" &&
25950   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25951
25952   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25953   # uniformly replaced by the line number.  The first 'sed' inserts a
25954   # line-number line after each line using $LINENO; the second 'sed'
25955   # does the real work.  The second script uses 'N' to pair each
25956   # line-number line with the line containing $LINENO, and appends
25957   # trailing '-' during substitution so that $LINENO is not a special
25958   # case at line end.
25959   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25960   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25961   # E. McMahon (1931-1989) for sed's syntax.  :-)
25962   sed -n '
25963     p
25964     /[$]LINENO/=
25965   ' <$as_myself |
25966     sed '
25967       s/[$]LINENO.*/&-/
25968       t lineno
25969       b
25970       :lineno
25971       N
25972       :loop
25973       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25974       t loop
25975       s/-\n.*//
25976     ' >$as_me.lineno &&
25977   chmod +x "$as_me.lineno" ||
25978     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25979    { (exit 1); exit 1; }; }
25980
25981   # Don't try to exec as it changes $[0], causing all sort of problems
25982   # (the dirname of $[0] is not the place where we might find the
25983   # original and so on.  Autoconf is especially sensitive to this).
25984   . "./$as_me.lineno"
25985   # Exit status is that of the last command.
25986   exit
25987 }
25988
25989
25990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25991   as_dirname=dirname
25992 else
25993   as_dirname=false
25994 fi
25995
25996 ECHO_C= ECHO_N= ECHO_T=
25997 case `echo -n x` in
25998 -n*)
25999   case `echo 'x\c'` in
26000   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26001   *)   ECHO_C='\c';;
26002   esac;;
26003 *)
26004   ECHO_N='-n';;
26005 esac
26006
26007 if expr a : '\(a\)' >/dev/null 2>&1 &&
26008    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26009   as_expr=expr
26010 else
26011   as_expr=false
26012 fi
26013
26014 rm -f conf$$ conf$$.exe conf$$.file
26015 if test -d conf$$.dir; then
26016   rm -f conf$$.dir/conf$$.file
26017 else
26018   rm -f conf$$.dir
26019   mkdir conf$$.dir
26020 fi
26021 echo >conf$$.file
26022 if ln -s conf$$.file conf$$ 2>/dev/null; then
26023   as_ln_s='ln -s'
26024   # ... but there are two gotchas:
26025   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26026   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26027   # In both cases, we have to default to `cp -p'.
26028   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26029     as_ln_s='cp -p'
26030 elif ln conf$$.file conf$$ 2>/dev/null; then
26031   as_ln_s=ln
26032 else
26033   as_ln_s='cp -p'
26034 fi
26035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26036 rmdir conf$$.dir 2>/dev/null
26037
26038 if mkdir -p . 2>/dev/null; then
26039   as_mkdir_p=:
26040 else
26041   test -d ./-p && rmdir ./-p
26042   as_mkdir_p=false
26043 fi
26044
26045 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
26046 # systems may use methods other than mode bits to determine executability.
26047 cat >conf$$.file <<_ASEOF
26048 #! /bin/sh
26049 exit 0
26050 _ASEOF
26051 chmod +x conf$$.file
26052 if test -x conf$$.file >/dev/null 2>&1; then
26053   as_executable_p="test -x"
26054 else
26055   as_executable_p=:
26056 fi
26057 rm -f conf$$.file
26058
26059 # Sed expression to map a string onto a valid CPP name.
26060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26061
26062 # Sed expression to map a string onto a valid variable name.
26063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26064
26065
26066 exec 6>&1
26067
26068 # Save the log message, to keep $[0] and so on meaningful, and to
26069 # report actual input values of CONFIG_FILES etc. instead of their
26070 # values after options handling.
26071 ac_log="
26072 This file was extended by $as_me, which was
26073 generated by GNU Autoconf 2.60.  Invocation command line was
26074
26075   CONFIG_FILES    = $CONFIG_FILES
26076   CONFIG_HEADERS  = $CONFIG_HEADERS
26077   CONFIG_LINKS    = $CONFIG_LINKS
26078   CONFIG_COMMANDS = $CONFIG_COMMANDS
26079   $ $0 $@
26080
26081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26082 "
26083
26084 _ACEOF
26085
26086 cat >>$CONFIG_STATUS <<_ACEOF
26087 # Files that config.status was made for.
26088 config_files="$ac_config_files"
26089 config_headers="$ac_config_headers"
26090
26091 _ACEOF
26092
26093 cat >>$CONFIG_STATUS <<\_ACEOF
26094 ac_cs_usage="\
26095 \`$as_me' instantiates files from templates according to the
26096 current configuration.
26097
26098 Usage: $0 [OPTIONS] [FILE]...
26099
26100   -h, --help       print this help, then exit
26101   -V, --version    print version number, then exit
26102   -q, --quiet      do not print progress messages
26103   -d, --debug      don't remove temporary files
26104       --recheck    update $as_me by reconfiguring in the same conditions
26105   --file=FILE[:TEMPLATE]
26106                    instantiate the configuration file FILE
26107   --header=FILE[:TEMPLATE]
26108                    instantiate the configuration header FILE
26109
26110 Configuration files:
26111 $config_files
26112
26113 Configuration headers:
26114 $config_headers
26115
26116 Report bugs to <bug-autoconf@gnu.org>."
26117
26118 _ACEOF
26119 cat >>$CONFIG_STATUS <<_ACEOF
26120 ac_cs_version="\\
26121 config.status
26122 configured by $0, generated by GNU Autoconf 2.60,
26123   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26124
26125 Copyright (C) 2006 Free Software Foundation, Inc.
26126 This config.status script is free software; the Free Software Foundation
26127 gives unlimited permission to copy, distribute and modify it."
26128
26129 ac_pwd='$ac_pwd'
26130 srcdir='$srcdir'
26131 _ACEOF
26132
26133 cat >>$CONFIG_STATUS <<\_ACEOF
26134 # If no file are specified by the user, then we need to provide default
26135 # value.  By we need to know if files were specified by the user.
26136 ac_need_defaults=:
26137 while test $# != 0
26138 do
26139   case $1 in
26140   --*=*)
26141     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26142     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26143     ac_shift=:
26144     ;;
26145   *)
26146     ac_option=$1
26147     ac_optarg=$2
26148     ac_shift=shift
26149     ;;
26150   esac
26151
26152   case $ac_option in
26153   # Handling of the options.
26154   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26155     ac_cs_recheck=: ;;
26156   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26157     echo "$ac_cs_version"; exit ;;
26158   --debug | --debu | --deb | --de | --d | -d )
26159     debug=: ;;
26160   --file | --fil | --fi | --f )
26161     $ac_shift
26162     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26163     ac_need_defaults=false;;
26164   --header | --heade | --head | --hea )
26165     $ac_shift
26166     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26167     ac_need_defaults=false;;
26168   --he | --h)
26169     # Conflict between --help and --header
26170     { echo "$as_me: error: ambiguous option: $1
26171 Try \`$0 --help' for more information." >&2
26172    { (exit 1); exit 1; }; };;
26173   --help | --hel | -h )
26174     echo "$ac_cs_usage"; exit ;;
26175   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26176   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26177     ac_cs_silent=: ;;
26178
26179   # This is an error.
26180   -*) { echo "$as_me: error: unrecognized option: $1
26181 Try \`$0 --help' for more information." >&2
26182    { (exit 1); exit 1; }; } ;;
26183
26184   *) ac_config_targets="$ac_config_targets $1"
26185      ac_need_defaults=false ;;
26186
26187   esac
26188   shift
26189 done
26190
26191 ac_configure_extra_args=
26192
26193 if $ac_cs_silent; then
26194   exec 6>/dev/null
26195   ac_configure_extra_args="$ac_configure_extra_args --silent"
26196 fi
26197
26198 _ACEOF
26199 cat >>$CONFIG_STATUS <<_ACEOF
26200 if \$ac_cs_recheck; then
26201   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26202   CONFIG_SHELL=$SHELL
26203   export CONFIG_SHELL
26204   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26205 fi
26206
26207 _ACEOF
26208 cat >>$CONFIG_STATUS <<\_ACEOF
26209 exec 5>>config.log
26210 {
26211   echo
26212   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26213 ## Running $as_me. ##
26214 _ASBOX
26215   echo "$ac_log"
26216 } >&5
26217
26218 _ACEOF
26219 cat >>$CONFIG_STATUS <<_ACEOF
26220 _ACEOF
26221
26222 cat >>$CONFIG_STATUS <<\_ACEOF
26223
26224 # Handling of arguments.
26225 for ac_config_target in $ac_config_targets
26226 do
26227   case $ac_config_target in
26228     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26229     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26230     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26231     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26232     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26233     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26234     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26235     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26236     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26237     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
26238     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26239     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26240     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26241     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26242     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26243
26244   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26245 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26246    { (exit 1); exit 1; }; };;
26247   esac
26248 done
26249
26250
26251 # If the user did not use the arguments to specify the items to instantiate,
26252 # then the envvar interface is used.  Set only those that are not.
26253 # We use the long form for the default assignment because of an extremely
26254 # bizarre bug on SunOS 4.1.3.
26255 if $ac_need_defaults; then
26256   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26257   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26258 fi
26259
26260 # Have a temporary directory for convenience.  Make it in the build tree
26261 # simply because there is no reason against having it here, and in addition,
26262 # creating and moving files from /tmp can sometimes cause problems.
26263 # Hook for its removal unless debugging.
26264 # Note that there is a small window in which the directory will not be cleaned:
26265 # after its creation but before its name has been assigned to `$tmp'.
26266 $debug ||
26267 {
26268   tmp=
26269   trap 'exit_status=$?
26270   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26271 ' 0
26272   trap '{ (exit 1); exit 1; }' 1 2 13 15
26273 }
26274 # Create a (secure) tmp directory for tmp files.
26275
26276 {
26277   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26278   test -n "$tmp" && test -d "$tmp"
26279 }  ||
26280 {
26281   tmp=./conf$$-$RANDOM
26282   (umask 077 && mkdir "$tmp")
26283 } ||
26284 {
26285    echo "$me: cannot create a temporary directory in ." >&2
26286    { (exit 1); exit 1; }
26287 }
26288
26289 #
26290 # Set up the sed scripts for CONFIG_FILES section.
26291 #
26292
26293 # No need to generate the scripts if there are no CONFIG_FILES.
26294 # This happens for instance when ./config.status config.h
26295 if test -n "$CONFIG_FILES"; then
26296
26297 _ACEOF
26298
26299
26300
26301 ac_delim='%!_!# '
26302 for ac_last_try in false false false false false :; do
26303   cat >conf$$subs.sed <<_ACEOF
26304 SHELL!$SHELL$ac_delim
26305 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26306 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26307 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26308 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26309 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26310 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26311 exec_prefix!$exec_prefix$ac_delim
26312 prefix!$prefix$ac_delim
26313 program_transform_name!$program_transform_name$ac_delim
26314 bindir!$bindir$ac_delim
26315 sbindir!$sbindir$ac_delim
26316 libexecdir!$libexecdir$ac_delim
26317 datarootdir!$datarootdir$ac_delim
26318 datadir!$datadir$ac_delim
26319 sysconfdir!$sysconfdir$ac_delim
26320 sharedstatedir!$sharedstatedir$ac_delim
26321 localstatedir!$localstatedir$ac_delim
26322 includedir!$includedir$ac_delim
26323 oldincludedir!$oldincludedir$ac_delim
26324 docdir!$docdir$ac_delim
26325 infodir!$infodir$ac_delim
26326 htmldir!$htmldir$ac_delim
26327 dvidir!$dvidir$ac_delim
26328 pdfdir!$pdfdir$ac_delim
26329 psdir!$psdir$ac_delim
26330 libdir!$libdir$ac_delim
26331 localedir!$localedir$ac_delim
26332 mandir!$mandir$ac_delim
26333 DEFS!$DEFS$ac_delim
26334 ECHO_C!$ECHO_C$ac_delim
26335 ECHO_N!$ECHO_N$ac_delim
26336 ECHO_T!$ECHO_T$ac_delim
26337 LIBS!$LIBS$ac_delim
26338 build_alias!$build_alias$ac_delim
26339 host_alias!$host_alias$ac_delim
26340 target_alias!$target_alias$ac_delim
26341 CC!$CC$ac_delim
26342 CFLAGS!$CFLAGS$ac_delim
26343 LDFLAGS!$LDFLAGS$ac_delim
26344 CPPFLAGS!$CPPFLAGS$ac_delim
26345 ac_ct_CC!$ac_ct_CC$ac_delim
26346 EXEEXT!$EXEEXT$ac_delim
26347 OBJEXT!$OBJEXT$ac_delim
26348 CPP!$CPP$ac_delim
26349 GREP!$GREP$ac_delim
26350 EGREP!$EGREP$ac_delim
26351 RANLIB!$RANLIB$ac_delim
26352 abs_top_builddir!$abs_top_builddir$ac_delim
26353 GMAKE!$GMAKE$ac_delim
26354 MAKE!$MAKE$ac_delim
26355 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26356 LIBTOOL!$LIBTOOL$ac_delim
26357 build!$build$ac_delim
26358 build_cpu!$build_cpu$ac_delim
26359 build_vendor!$build_vendor$ac_delim
26360 build_os!$build_os$ac_delim
26361 host!$host$ac_delim
26362 host_cpu!$host_cpu$ac_delim
26363 host_vendor!$host_vendor$ac_delim
26364 host_os!$host_os$ac_delim
26365 LN_S!$LN_S$ac_delim
26366 ECHO!$ECHO$ac_delim
26367 AR!$AR$ac_delim
26368 STRIP!$STRIP$ac_delim
26369 CXX!$CXX$ac_delim
26370 CXXFLAGS!$CXXFLAGS$ac_delim
26371 ac_ct_CXX!$ac_ct_CXX$ac_delim
26372 CXXCPP!$CXXCPP$ac_delim
26373 F77!$F77$ac_delim
26374 FFLAGS!$FFLAGS$ac_delim
26375 ac_ct_F77!$ac_ct_F77$ac_delim
26376 logdir!$logdir$ac_delim
26377 radacctdir!$radacctdir$ac_delim
26378 raddbdir!$raddbdir$ac_delim
26379 PERL!$PERL$ac_delim
26380 SNMPGET!$SNMPGET$ac_delim
26381 SNMPWALK!$SNMPWALK$ac_delim
26382 RUSERS!$RUSERS$ac_delim
26383 ACLOCAL!$ACLOCAL$ac_delim
26384 AUTOCONF!$AUTOCONF$ac_delim
26385 AUTOHEADER!$AUTOHEADER$ac_delim
26386 LOCATE!$LOCATE$ac_delim
26387 DIRNAME!$DIRNAME$ac_delim
26388 REGEX!$REGEX$ac_delim
26389 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26390 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26391 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26392 LIBPREFIX!$LIBPREFIX$ac_delim
26393 CRYPTLIB!$CRYPTLIB$ac_delim
26394 SNMP_LIBS!$SNMP_LIBS$ac_delim
26395 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26396 GETCONF!$GETCONF$ac_delim
26397 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
26398 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
26399 LFS_LIBS!$LFS_LIBS$ac_delim
26400 HOSTINFO!$HOSTINFO$ac_delim
26401 _ACEOF
26402
26403   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26404     break
26405   elif $ac_last_try; then
26406     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26407 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26408    { (exit 1); exit 1; }; }
26409   else
26410     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26411   fi
26412 done
26413
26414 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26415 if test -n "$ac_eof"; then
26416   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26417   ac_eof=`expr $ac_eof + 1`
26418 fi
26419
26420 cat >>$CONFIG_STATUS <<_ACEOF
26421 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26423 _ACEOF
26424 sed '
26425 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26426 s/^/s,@/; s/!/@,|#_!!_#|/
26427 :n
26428 t n
26429 s/'"$ac_delim"'$/,g/; t
26430 s/$/\\/; p
26431 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26432 ' >>$CONFIG_STATUS <conf$$subs.sed
26433 rm -f conf$$subs.sed
26434 cat >>$CONFIG_STATUS <<_ACEOF
26435 CEOF$ac_eof
26436 _ACEOF
26437
26438
26439 ac_delim='%!_!# '
26440 for ac_last_try in false false false false false :; do
26441   cat >conf$$subs.sed <<_ACEOF
26442 LIBLTDL!$LIBLTDL$ac_delim
26443 INCLTDL!$INCLTDL$ac_delim
26444 subdirs!$subdirs$ac_delim
26445 MODULES!$MODULES$ac_delim
26446 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26447 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26448 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26449 STATIC_MODULES!$STATIC_MODULES$ac_delim
26450 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26451 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26452 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26453 LIBOBJS!$LIBOBJS$ac_delim
26454 LTLIBOBJS!$LTLIBOBJS$ac_delim
26455 _ACEOF
26456
26457   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
26458     break
26459   elif $ac_last_try; then
26460     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26461 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26462    { (exit 1); exit 1; }; }
26463   else
26464     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26465   fi
26466 done
26467
26468 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26469 if test -n "$ac_eof"; then
26470   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26471   ac_eof=`expr $ac_eof + 1`
26472 fi
26473
26474 cat >>$CONFIG_STATUS <<_ACEOF
26475 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26477 _ACEOF
26478 sed '
26479 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26480 s/^/s,@/; s/!/@,|#_!!_#|/
26481 :n
26482 t n
26483 s/'"$ac_delim"'$/,g/; t
26484 s/$/\\/; p
26485 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26486 ' >>$CONFIG_STATUS <conf$$subs.sed
26487 rm -f conf$$subs.sed
26488 cat >>$CONFIG_STATUS <<_ACEOF
26489 :end
26490 s/|#_!!_#|//g
26491 CEOF$ac_eof
26492 _ACEOF
26493
26494
26495 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26496 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26497 # trailing colons and then remove the whole line if VPATH becomes empty
26498 # (actually we leave an empty line to preserve line numbers).
26499 if test "x$srcdir" = x.; then
26500   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26501 s/:*\$(srcdir):*/:/
26502 s/:*\${srcdir}:*/:/
26503 s/:*@srcdir@:*/:/
26504 s/^\([^=]*=[     ]*\):*/\1/
26505 s/:*$//
26506 s/^[^=]*=[       ]*$//
26507 }'
26508 fi
26509
26510 cat >>$CONFIG_STATUS <<\_ACEOF
26511 fi # test -n "$CONFIG_FILES"
26512
26513
26514 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
26515 do
26516   case $ac_tag in
26517   :[FHLC]) ac_mode=$ac_tag; continue;;
26518   esac
26519   case $ac_mode$ac_tag in
26520   :[FHL]*:*);;
26521   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26522 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26523    { (exit 1); exit 1; }; };;
26524   :[FH]-) ac_tag=-:-;;
26525   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26526   esac
26527   ac_save_IFS=$IFS
26528   IFS=:
26529   set x $ac_tag
26530   IFS=$ac_save_IFS
26531   shift
26532   ac_file=$1
26533   shift
26534
26535   case $ac_mode in
26536   :L) ac_source=$1;;
26537   :[FH])
26538     ac_file_inputs=
26539     for ac_f
26540     do
26541       case $ac_f in
26542       -) ac_f="$tmp/stdin";;
26543       *) # Look for the file first in the build tree, then in the source tree
26544          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26545          # because $ac_f cannot contain `:'.
26546          test -f "$ac_f" ||
26547            case $ac_f in
26548            [\\/$]*) false;;
26549            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26550            esac ||
26551            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26552 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26553    { (exit 1); exit 1; }; };;
26554       esac
26555       ac_file_inputs="$ac_file_inputs $ac_f"
26556     done
26557
26558     # Let's still pretend it is `configure' which instantiates (i.e., don't
26559     # use $as_me), people would be surprised to read:
26560     #    /* config.h.  Generated by config.status.  */
26561     configure_input="Generated from "`IFS=:
26562           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26563     if test x"$ac_file" != x-; then
26564       configure_input="$ac_file.  $configure_input"
26565       { echo "$as_me:$LINENO: creating $ac_file" >&5
26566 echo "$as_me: creating $ac_file" >&6;}
26567     fi
26568
26569     case $ac_tag in
26570     *:-:* | *:-) cat >"$tmp/stdin";;
26571     esac
26572     ;;
26573   esac
26574
26575   ac_dir=`$as_dirname -- "$ac_file" ||
26576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26577          X"$ac_file" : 'X\(//\)[^/]' \| \
26578          X"$ac_file" : 'X\(//\)$' \| \
26579          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26580 echo X"$ac_file" |
26581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26582             s//\1/
26583             q
26584           }
26585           /^X\(\/\/\)[^/].*/{
26586             s//\1/
26587             q
26588           }
26589           /^X\(\/\/\)$/{
26590             s//\1/
26591             q
26592           }
26593           /^X\(\/\).*/{
26594             s//\1/
26595             q
26596           }
26597           s/.*/./; q'`
26598   { as_dir="$ac_dir"
26599   case $as_dir in #(
26600   -*) as_dir=./$as_dir;;
26601   esac
26602   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26603     as_dirs=
26604     while :; do
26605       case $as_dir in #(
26606       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26607       *) as_qdir=$as_dir;;
26608       esac
26609       as_dirs="'$as_qdir' $as_dirs"
26610       as_dir=`$as_dirname -- "$as_dir" ||
26611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26612          X"$as_dir" : 'X\(//\)[^/]' \| \
26613          X"$as_dir" : 'X\(//\)$' \| \
26614          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26615 echo X"$as_dir" |
26616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26617             s//\1/
26618             q
26619           }
26620           /^X\(\/\/\)[^/].*/{
26621             s//\1/
26622             q
26623           }
26624           /^X\(\/\/\)$/{
26625             s//\1/
26626             q
26627           }
26628           /^X\(\/\).*/{
26629             s//\1/
26630             q
26631           }
26632           s/.*/./; q'`
26633       test -d "$as_dir" && break
26634     done
26635     test -z "$as_dirs" || eval "mkdir $as_dirs"
26636   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26637 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26638    { (exit 1); exit 1; }; }; }
26639   ac_builddir=.
26640
26641 case "$ac_dir" in
26642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26643 *)
26644   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26645   # A ".." for each directory in $ac_dir_suffix.
26646   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26647   case $ac_top_builddir_sub in
26648   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26649   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26650   esac ;;
26651 esac
26652 ac_abs_top_builddir=$ac_pwd
26653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26654 # for backward compatibility:
26655 ac_top_builddir=$ac_top_build_prefix
26656
26657 case $srcdir in
26658   .)  # We are building in place.
26659     ac_srcdir=.
26660     ac_top_srcdir=$ac_top_builddir_sub
26661     ac_abs_top_srcdir=$ac_pwd ;;
26662   [\\/]* | ?:[\\/]* )  # Absolute name.
26663     ac_srcdir=$srcdir$ac_dir_suffix;
26664     ac_top_srcdir=$srcdir
26665     ac_abs_top_srcdir=$srcdir ;;
26666   *) # Relative name.
26667     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26668     ac_top_srcdir=$ac_top_build_prefix$srcdir
26669     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26670 esac
26671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26672
26673
26674   case $ac_mode in
26675   :F)
26676   #
26677   # CONFIG_FILE
26678   #
26679
26680 _ACEOF
26681
26682 cat >>$CONFIG_STATUS <<\_ACEOF
26683 # If the template does not know about datarootdir, expand it.
26684 # FIXME: This hack should be removed a few years after 2.60.
26685 ac_datarootdir_hack=; ac_datarootdir_seen=
26686
26687 case `sed -n '/datarootdir/ {
26688   p
26689   q
26690 }
26691 /@datadir@/p
26692 /@docdir@/p
26693 /@infodir@/p
26694 /@localedir@/p
26695 /@mandir@/p
26696 ' $ac_file_inputs` in
26697 *datarootdir*) ac_datarootdir_seen=yes;;
26698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26699   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26700 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26701 _ACEOF
26702 cat >>$CONFIG_STATUS <<_ACEOF
26703   ac_datarootdir_hack='
26704   s&@datadir@&$datadir&g
26705   s&@docdir@&$docdir&g
26706   s&@infodir@&$infodir&g
26707   s&@localedir@&$localedir&g
26708   s&@mandir@&$mandir&g
26709     s&\\\${datarootdir}&$datarootdir&g' ;;
26710 esac
26711 _ACEOF
26712
26713 # Neutralize VPATH when `$srcdir' = `.'.
26714 # Shell code in configure.ac might set extrasub.
26715 # FIXME: do we really want to maintain this feature?
26716 cat >>$CONFIG_STATUS <<_ACEOF
26717   sed "$ac_vpsub
26718 $extrasub
26719 _ACEOF
26720 cat >>$CONFIG_STATUS <<\_ACEOF
26721 :t
26722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26723 s&@configure_input@&$configure_input&;t t
26724 s&@top_builddir@&$ac_top_builddir_sub&;t t
26725 s&@srcdir@&$ac_srcdir&;t t
26726 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26727 s&@top_srcdir@&$ac_top_srcdir&;t t
26728 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26729 s&@builddir@&$ac_builddir&;t t
26730 s&@abs_builddir@&$ac_abs_builddir&;t t
26731 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26732 $ac_datarootdir_hack
26733 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26734
26735 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26736   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26737   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26738   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26739 which seems to be undefined.  Please make sure it is defined." >&5
26740 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26741 which seems to be undefined.  Please make sure it is defined." >&2;}
26742
26743   rm -f "$tmp/stdin"
26744   case $ac_file in
26745   -) cat "$tmp/out"; rm -f "$tmp/out";;
26746   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26747   esac
26748  ;;
26749   :H)
26750   #
26751   # CONFIG_HEADER
26752   #
26753 _ACEOF
26754
26755 # Transform confdefs.h into a sed script `conftest.defines', that
26756 # substitutes the proper values into config.h.in to produce config.h.
26757 rm -f conftest.defines conftest.tail
26758 # First, append a space to every undef/define line, to ease matching.
26759 echo 's/$/ /' >conftest.defines
26760 # Then, protect against being on the right side of a sed subst, or in
26761 # an unquoted here document, in config.status.  If some macros were
26762 # called several times there might be several #defines for the same
26763 # symbol, which is useless.  But do not sort them, since the last
26764 # AC_DEFINE must be honored.
26765 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26766 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26767 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26768 # PARAMS is the parameter list in the macro definition--in most cases, it's
26769 # just an empty string.
26770 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26771 ac_dB='\\)[      (].*,\\1define\\2'
26772 ac_dC=' '
26773 ac_dD=' ,'
26774
26775 uniq confdefs.h |
26776   sed -n '
26777         t rset
26778         :rset
26779         s/^[     ]*#[    ]*define[       ][      ]*//
26780         t ok
26781         d
26782         :ok
26783         s/[\\&,]/\\&/g
26784         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26785         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26786   ' >>conftest.defines
26787
26788 # Remove the space that was appended to ease matching.
26789 # Then replace #undef with comments.  This is necessary, for
26790 # example, in the case of _POSIX_SOURCE, which is predefined and required
26791 # on some systems where configure will not decide to define it.
26792 # (The regexp can be short, since the line contains either #define or #undef.)
26793 echo 's/ $//
26794 s,^[     #]*u.*,/* & */,' >>conftest.defines
26795
26796 # Break up conftest.defines:
26797 ac_max_sed_lines=50
26798
26799 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26800 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26801 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26802 # et cetera.
26803 ac_in='$ac_file_inputs'
26804 ac_out='"$tmp/out1"'
26805 ac_nxt='"$tmp/out2"'
26806
26807 while :
26808 do
26809   # Write a here document:
26810     cat >>$CONFIG_STATUS <<_ACEOF
26811     # First, check the format of the line:
26812     cat >"\$tmp/defines.sed" <<\\CEOF
26813 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26814 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26815 b
26816 :def
26817 _ACEOF
26818   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26819   echo 'CEOF
26820     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26821   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26822   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26823   grep . conftest.tail >/dev/null || break
26824   rm -f conftest.defines
26825   mv conftest.tail conftest.defines
26826 done
26827 rm -f conftest.defines conftest.tail
26828
26829 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26830 cat >>$CONFIG_STATUS <<\_ACEOF
26831   if test x"$ac_file" != x-; then
26832     echo "/* $configure_input  */" >"$tmp/config.h"
26833     cat "$ac_result" >>"$tmp/config.h"
26834     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26835       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26836 echo "$as_me: $ac_file is unchanged" >&6;}
26837     else
26838       rm -f $ac_file
26839       mv "$tmp/config.h" $ac_file
26840     fi
26841   else
26842     echo "/* $configure_input  */"
26843     cat "$ac_result"
26844   fi
26845   rm -f "$tmp/out12"
26846  ;;
26847
26848
26849   esac
26850
26851 done # for ac_tag
26852
26853
26854 { (exit 0); exit 0; }
26855 _ACEOF
26856 chmod +x $CONFIG_STATUS
26857 ac_clean_files=$ac_clean_files_save
26858
26859
26860 # configure is writing to config.log, and then calls config.status.
26861 # config.status does its own redirection, appending to config.log.
26862 # Unfortunately, on DOS this fails, as config.log is still kept open
26863 # by configure, so config.status won't be able to write to it; its
26864 # output is simply discarded.  So we exec the FD to /dev/null,
26865 # effectively closing config.log, so it can be properly (re)opened and
26866 # appended to by config.status.  When coming back to configure, we
26867 # need to make the FD available again.
26868 if test "$no_create" != yes; then
26869   ac_cs_success=:
26870   ac_config_status_args=
26871   test "$silent" = yes &&
26872     ac_config_status_args="$ac_config_status_args --quiet"
26873   exec 5>/dev/null
26874   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26875   exec 5>>config.log
26876   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26877   # would make configure fail if this is the last instruction.
26878   $ac_cs_success || { (exit 1); exit 1; }
26879 fi
26880
26881 #
26882 # CONFIG_SUBDIRS section.
26883 #
26884 if test "$no_recursion" != yes; then
26885
26886   # Remove --cache-file and --srcdir arguments so they do not pile up.
26887   ac_sub_configure_args=
26888   ac_prev=
26889   eval "set x $ac_configure_args"
26890   shift
26891   for ac_arg
26892   do
26893     if test -n "$ac_prev"; then
26894       ac_prev=
26895       continue
26896     fi
26897     case $ac_arg in
26898     -cache-file | --cache-file | --cache-fil | --cache-fi \
26899     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26900       ac_prev=cache_file ;;
26901     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26902     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26903     | --c=*)
26904       ;;
26905     --config-cache | -C)
26906       ;;
26907     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26908       ac_prev=srcdir ;;
26909     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26910       ;;
26911     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26912       ac_prev=prefix ;;
26913     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26914       ;;
26915     *)
26916       case $ac_arg in
26917       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26918       esac
26919       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26920     esac
26921   done
26922
26923   # Always prepend --prefix to ensure using the same prefix
26924   # in subdir configurations.
26925   ac_arg="--prefix=$prefix"
26926   case $ac_arg in
26927   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26928   esac
26929   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
26930
26931   ac_popdir=`pwd`
26932   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26933
26934     # Do not complain, so a configure script can configure whichever
26935     # parts of a large source tree are present.
26936     test -d "$srcdir/$ac_dir" || continue
26937
26938     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26939     echo "$as_me:$LINENO: $ac_msg" >&5
26940     echo "$ac_msg" >&6
26941     { as_dir="$ac_dir"
26942   case $as_dir in #(
26943   -*) as_dir=./$as_dir;;
26944   esac
26945   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26946     as_dirs=
26947     while :; do
26948       case $as_dir in #(
26949       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26950       *) as_qdir=$as_dir;;
26951       esac
26952       as_dirs="'$as_qdir' $as_dirs"
26953       as_dir=`$as_dirname -- "$as_dir" ||
26954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26955          X"$as_dir" : 'X\(//\)[^/]' \| \
26956          X"$as_dir" : 'X\(//\)$' \| \
26957          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26958 echo X"$as_dir" |
26959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26960             s//\1/
26961             q
26962           }
26963           /^X\(\/\/\)[^/].*/{
26964             s//\1/
26965             q
26966           }
26967           /^X\(\/\/\)$/{
26968             s//\1/
26969             q
26970           }
26971           /^X\(\/\).*/{
26972             s//\1/
26973             q
26974           }
26975           s/.*/./; q'`
26976       test -d "$as_dir" && break
26977     done
26978     test -z "$as_dirs" || eval "mkdir $as_dirs"
26979   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26980 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26981    { (exit 1); exit 1; }; }; }
26982     ac_builddir=.
26983
26984 case "$ac_dir" in
26985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26986 *)
26987   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26988   # A ".." for each directory in $ac_dir_suffix.
26989   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26990   case $ac_top_builddir_sub in
26991   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26992   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26993   esac ;;
26994 esac
26995 ac_abs_top_builddir=$ac_pwd
26996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26997 # for backward compatibility:
26998 ac_top_builddir=$ac_top_build_prefix
26999
27000 case $srcdir in
27001   .)  # We are building in place.
27002     ac_srcdir=.
27003     ac_top_srcdir=$ac_top_builddir_sub
27004     ac_abs_top_srcdir=$ac_pwd ;;
27005   [\\/]* | ?:[\\/]* )  # Absolute name.
27006     ac_srcdir=$srcdir$ac_dir_suffix;
27007     ac_top_srcdir=$srcdir
27008     ac_abs_top_srcdir=$srcdir ;;
27009   *) # Relative name.
27010     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27011     ac_top_srcdir=$ac_top_build_prefix$srcdir
27012     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27013 esac
27014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27015
27016
27017     cd "$ac_dir"
27018
27019     # Check for guested configure; otherwise get Cygnus style configure.
27020     if test -f "$ac_srcdir/configure.gnu"; then
27021       ac_sub_configure=$ac_srcdir/configure.gnu
27022     elif test -f "$ac_srcdir/configure"; then
27023       ac_sub_configure=$ac_srcdir/configure
27024     elif test -f "$ac_srcdir/configure.in"; then
27025       # This should be Cygnus configure.
27026       ac_sub_configure=$ac_aux_dir/configure
27027     else
27028       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27029 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27030       ac_sub_configure=
27031     fi
27032
27033     # The recursion is here.
27034     if test -n "$ac_sub_configure"; then
27035       # Make the cache file name correct relative to the subdirectory.
27036       case $cache_file in
27037       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27038       *) # Relative name.
27039         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27040       esac
27041
27042       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27043 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27044       # The eval makes quoting arguments work.
27045       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27046            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27047         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27048 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27049    { (exit 1); exit 1; }; }
27050     fi
27051
27052     cd "$ac_popdir"
27053   done
27054 fi
27055
27056
27057 ac_config_commands="$ac_config_commands default-1"
27058
27059 ac_config_commands="$ac_config_commands default-2"
27060
27061 ac_config_commands="$ac_config_commands default-3"
27062
27063 ac_config_commands="$ac_config_commands default-4"
27064